/* ================================================================
   INSIGHTS / BLOG
   Scoped to the posts index and standard article pages only.
   ================================================================ */

.injurease-insights-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 88% 22%, rgba(179,206,27,.12), transparent 28%),
    linear-gradient(145deg,#f8faf6 0%,#eef4e8 100%);
}

.injurease-insights-hero::after { display: none; }

.injurease-insights-hero__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  opacity: .12;
  pointer-events: none;
}

.injurease-insights-hero__background-picture,
.injurease-insights-hero__background-image {
  display: block;
  width: 100%;
  height: 100%;
}

.injurease-insights-hero__background-image {
  object-fit: cover;
  object-position: center;
}

.injurease-insights-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-top: clamp(54px,5.5vw,76px);
  padding-bottom: clamp(54px,5.5vw,76px);
}

.injurease-insights-hero__inner h1 { max-width: 860px; }
.injurease-insights-hero__inner .injurease-page-hero__lead { max-width: 720px; margin-top: 18px; }

.injurease-insights-index {
  padding-block: clamp(68px,7vw,104px);
  background: #fff;
}

.injurease-insights-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: clamp(42px,5vw,72px);
  align-items: start;
}

.injurease-insights-main { min-width: 0; }

.injurease-insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.injurease-insights-filters a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: #f2f6ef;
  color: #31513a;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}

.injurease-insights-filters a:hover,
.injurease-insights-filters a:focus-visible,
.injurease-insights-filters a.is-active {
  background: linear-gradient(135deg,#5f8f49,#81af60);
  color: #fff;
}

.injurease-insights-query-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 28px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f8f4;
  color: var(--inj-muted);
  font-size: .84rem;
}

.injurease-insights-query-state a { color: var(--inj-primary); font-weight: 750; text-decoration: none; }

.injurease-insights-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.injurease-insights-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e9e0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20,54,32,.035);
  transform: translate3d(0,0,0);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease, box-shadow 240ms ease;
}

.injurease-insights-card__stretched-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  cursor: pointer;
  text-decoration: none;
}

.injurease-insights-card__stretched-link:focus-visible {
  outline: 3px solid rgba(95,143,73,.38);
  outline-offset: -4px;
}


.injurease-insights-card:hover,
.injurease-insights-card:focus-within {
  transform: translate3d(0,-2px,0);
  border-color: #d8e2d6;
  box-shadow: 0 6px 18px rgba(20,54,32,.045);
}

/* Keep the first hover as responsive as every later hover after scroll reveal. */
.injurease-main .injurease-insights-card.injurease-reveal.is-revealed {
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease, box-shadow 240ms ease;
}
.injurease-main .injurease-insights-card.injurease-reveal.is-revealed:hover,
.injurease-main .injurease-insights-card.injurease-reveal.is-revealed:focus-within {
  transform: translate3d(0,-2px,0);
}

.injurease-insights-card__media-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e9efe5;
}

.injurease-insights-card__media {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.injurease-insights-card__media img,
.injurease-insights-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transform: none !important;
  transition: none !important;
}

.injurease-insights-card__placeholder {
  background:
    radial-gradient(circle at 78% 26%,rgba(179,206,27,.52) 0 10%,transparent 11%),
    linear-gradient(145deg,#dce8d4,#6e9b5b);
}

.injurease-insights-card__category {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #24492d;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(7px);
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.injurease-insights-card__category:hover,
.injurease-insights-card__category:focus-visible {
  background: #fff;
  color: var(--inj-primary);
}


.injurease-insights-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 22px;
}

.injurease-insights-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: #6d7b70;
  font-size: .72rem;
  font-weight: 700;
}

.injurease-insights-card h2 {
  margin: 0;
  color: #12381d;
  font-size: clamp(1.3rem,1.8vw,1.62rem);
  line-height: 1.18;
}

.injurease-insights-card__body > p {
  margin: 13px 0 0;
  color: var(--inj-muted);
  font-size: .9rem;
  line-height: 1.62;
}

.injurease-insights-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  color: #315f36;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  pointer-events: none;
}

.injurease-insights-card__link > span:last-child {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #5f8f49;
  transition: background 220ms ease, color 220ms ease;
}

.injurease-insights-card__link .injurease-icon { width: 15px; height: 15px; transform: none; }
.injurease-insights-card:hover .injurease-insights-card__link > span:last-child,
.injurease-insights-card:focus-within .injurease-insights-card__link > span:last-child {
  background: linear-gradient(135deg,#5f8f49,#81af60);
  color: #fff;
}

.injurease-insights-sidebar {
  position: sticky;
  top: 118px;
  display: block;
  align-self: start;
  overflow: hidden;
  border: 1px solid #e2e9e0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(20,54,32,.035);
}

.injurease-insights-sidebar__panel {
  padding: 22px;
  border-radius: 0;
  background: transparent;
}

.injurease-insights-sidebar__panel + .injurease-insights-sidebar__panel {
  border-top: 1px solid #edf1eb;
}

.injurease-insights-sidebar__panel h2 {
  margin: 0 0 17px;
  color: #173b21;
  font-size: 1.08rem;
  line-height: 1.2;
}

.injurease-insights-search > label {
  display: block;
  margin-bottom: 12px;
  color: #173b21;
  font-size: 1.08rem;
  font-weight: 800;
}

.injurease-insights-search > div { position: relative; }
.injurease-insights-search input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 10px 48px 10px 15px;
  border: 1px solid #e2e9e0;
  border-radius: 15px;
  outline: 0;
  background: #f7f9f6;
  color: var(--inj-ink);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.injurease-insights-search input[type="search"]:focus {
  border-color: rgba(95,143,73,.48);
  box-shadow: 0 0 0 3px rgba(95,143,73,.10);
}

.injurease-insights-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,#5f8f49,#81af60);
  color: #fff;
  cursor: pointer;
}
.injurease-insights-search button .injurease-icon { width: 17px; height: 17px; }

.injurease-insights-sidebar__categories { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.injurease-insights-sidebar__categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 11px 8px 13px;
  border-radius: 12px;
  color: #3d5443;
  font-size: .83rem;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.injurease-insights-sidebar__categories a:hover,
.injurease-insights-sidebar__categories a.is-active { background: #f4f7f2; color: var(--inj-primary); }
.injurease-insights-sidebar__categories strong { display: grid; place-items: center; min-width: 27px; height: 27px; border-radius: 999px; background: #e7efe1; color: #527f46; font-size: .68rem; }

.injurease-insights-sidebar__latest { display: grid; gap: 13px; }
.injurease-insights-sidebar__latest > a {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.injurease-insights-sidebar__thumb { display: block; width: 62px; height: 58px; overflow: hidden; border-radius: 13px; background: #e5ecdf; }
.injurease-insights-sidebar__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.injurease-insights-sidebar__thumb.is-placeholder { background: linear-gradient(145deg,#dce8d4,#7da26a); }
.injurease-insights-sidebar__latest strong { display: -webkit-box; overflow: hidden; color: #24432b; font-size: .82rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.injurease-insights-sidebar__latest small { display: block; margin-top: 5px; color: #7a867d; font-size: .68rem; }

.injurease-insights-sidebar__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.injurease-insights-sidebar__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e7ece5;
  background: #f6f8f4;
  color: #58705d;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.injurease-insights-sidebar__tags a:hover,
.injurease-insights-sidebar__tags a.is-active { background: #dfeada; color: #24492d; }

.injurease-insights-empty {
  padding: clamp(34px,5vw,58px);
  border-radius: 24px;
  background: #f6f8f4;
  text-align: center;
}
.injurease-insights-empty h2 { margin-bottom: 10px; font-size: 1.7rem; }
.injurease-insights-empty p { margin: 0 0 22px; color: var(--inj-muted); }

/* Compact article hero: reduce empty vertical space while preserving the feature image size. */
.single-post .injurease-article-hero {
  padding-block: clamp(30px,3.4vw,46px);
}

.single-post .injurease-article-hero__inner {
  gap: clamp(34px,5vw,72px);
}

/* Keep the full excerpt visually contained below the title, including long unbroken text. */
.single-post .injurease-article-hero__excerpt {
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Standard Insights article sidebar + ratings + comments. */
.single-post .injurease-article__grid { grid-template-columns: minmax(0,var(--inj-content-width,760px)) 320px; gap: clamp(46px,6vw,76px); }
.single-post .injurease-article__main { min-width: 0; }
.single-post .injurease-insights-sidebar { top: 118px; }

.injurease-article-rating { display: inline-flex; align-items: center; gap: 7px; }
.injurease-article-rating strong { color: #38573f; font-size: .8rem; }
.injurease-article-rating small { color: #7a867d; font-size: .72rem; }
.injurease-rating-stars { display: inline-flex; gap: 2px; color: #c7d0c7; line-height: 1; }
.injurease-rating-stars .is-filled { color: #6f9d59; }

.injurease-comments { margin-top: clamp(58px,7vw,88px); padding-top: clamp(42px,5vw,62px); border-top: 1px solid #e2e9df; }
.injurease-comments__head { margin-bottom: 26px; }
.injurease-comments__head h2,
.injurease-comment-form__head h2 { margin: 0; font-size: clamp(1.65rem,2.7vw,2.3rem); }

.injurease-comment-list { display: grid; gap: 14px; margin: 0 0 38px; padding: 0; list-style: none; }
.injurease-comment-list .comment { padding: 20px; border-radius: 18px; background: #f6f8f4; }
.injurease-comment-list .children { display: grid; gap: 12px; margin: 14px 0 0 22px; padding: 0; list-style: none; }
.injurease-comment-list .comment-body { position: relative; }
.injurease-comment-list .comment-meta { margin-bottom: 12px; }
.injurease-comment-list .comment-author { display: flex; align-items: center; gap: 10px; }
.injurease-comment-list .comment-author img { border-radius: 50%; }
.injurease-comment-list .comment-author .fn { color: #24432b; font-style: normal; font-weight: 800; }
.injurease-comment-list .comment-metadata { margin: 5px 0 0 54px; font-size: .7rem; }
.injurease-comment-list .comment-metadata a { color: #78847b; text-decoration: none; }
.injurease-comment-list .comment-content p { color: #4c5d50; font-size: .9rem; line-height: 1.65; }
.injurease-comment-list .reply a { color: #4f7d47; font-size: .75rem; font-weight: 800; text-decoration: none; }
.injurease-comment__rating { margin: 0 0 10px; }

.injurease-comment-form-wrap { margin-top: 34px; padding: clamp(24px,4vw,36px); border-radius: 24px; background: #f6f8f4; }
.injurease-comment-form__head { margin-bottom: 10px; }
.injurease-comment-form__note { margin: 0 0 22px; color: var(--inj-muted); font-size: .84rem; }
.injurease-comment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.injurease-comment-form > p { margin: 0; }
.injurease-comment-form .comment-form-comment,
.injurease-comment-form .comment-form-cookies-consent,
.injurease-comment-form .form-submit,
.injurease-comment-form .logged-in-as,
.injurease-comment-form .must-log-in,
.injurease-comment-rating { grid-column: 1 / -1; }
.injurease-comment-form label { display: block; margin-bottom: 7px; color: #31513a; font-size: .78rem; font-weight: 750; }
.injurease-comment-form input:not([type="checkbox"]):not([type="radio"]),
.injurease-comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--inj-ink);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.injurease-comment-form input:not([type="checkbox"]):not([type="radio"]):focus,
.injurease-comment-form textarea:focus {
  border-color: rgba(95,143,73,.48);
  box-shadow: 0 0 0 3px rgba(95,143,73,.10);
}
.injurease-comment-form textarea { min-height: 150px; resize: vertical; }
.injurease-comment-form .form-submit input[type="submit"] { width: auto; min-height: 46px; padding: 10px 20px; border: 0; border-radius: var(--inj-button-radius,14px); background: var(--inj-primary); color: #fff; cursor: pointer; font-weight: 800; }

.injurease-comment-rating { margin: 0; padding: 0; border: 0; }
.injurease-comment-rating legend { margin-bottom: 8px; color: #31513a; font-size: .78rem; font-weight: 750; }
.injurease-comment-rating__options { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.injurease-comment-rating__options input { position: absolute; opacity: 0; pointer-events: none; }
.injurease-comment-rating__options label { margin: 0; color: #cad2c9; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: color 160ms ease; }
.injurease-comment-rating__options label:hover,
.injurease-comment-rating__options label:hover ~ label,
.injurease-comment-rating__options input:checked ~ label { color: #6f9d59; }
.injurease-comment-rating__options input:focus-visible + label { outline: 2px solid rgba(95,143,73,.45); outline-offset: 3px; }


/* Insights pagination: compact numbered navigation with directional arrows. */
.injurease-insights-pagination {
  margin-top: clamp(34px,4.5vw,52px);
}

.injurease-insights-pagination .navigation.pagination { margin: 0; }
.injurease-insights-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.injurease-insights-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e0e8de;
  border-radius: 13px;
  background: #fff;
  color: #3d5b43;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20,54,32,.025);
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.injurease-insights-pagination a.page-numbers:hover,
.injurease-insights-pagination a.page-numbers:focus-visible {
  border-color: rgba(95,143,73,.42);
  background: #f4f8f1;
  color: #315f36;
  transform: translateY(-1px);
}

.injurease-insights-pagination .page-numbers.current {
  border-color: #5f8f49;
  background: linear-gradient(135deg,#5f8f49,#81af60);
  color: #fff;
  box-shadow: 0 5px 14px rgba(55,103,61,.14);
}

.injurease-insights-pagination .page-numbers.dots {
  min-width: 30px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #8b978d;
}

.injurease-insights-pagination .prev,
.injurease-insights-pagination .next {
  padding: 0;
  border-radius: 50%;
}

.injurease-pagination__arrow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.injurease-pagination__arrow .injurease-icon {
  width: 17px;
  height: 17px;
}

.injurease-pagination__arrow--prev .injurease-icon { transform: rotate(180deg); }

@media (max-width: 1080px) {
  .injurease-insights-layout,
  .single-post .injurease-article__grid { grid-template-columns: minmax(0,1fr) 286px; gap: 34px; }
  .injurease-insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .injurease-insights-layout,
  .single-post .injurease-article__grid { grid-template-columns: 1fr; }
  .injurease-insights-sidebar,
  .single-post .injurease-insights-sidebar { position: static; }
}

@media (max-width: 680px) {
  .injurease-insights-hero__inner { padding-top: 48px; padding-bottom: 48px; }
  .single-post .injurease-article-hero { padding-block: 26px; }
  .injurease-insights-index { padding-block: 52px; }
  .injurease-insights-filters { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .injurease-insights-filters::-webkit-scrollbar { display: none; }
  .injurease-insights-filters a { flex: 0 0 auto; }
  .injurease-insights-card { border-radius: 22px; }
  .injurease-insights-card__body { padding: 21px 20px 20px; }
  .injurease-comment-form { grid-template-columns: 1fr; }
  .injurease-comment-form > p { grid-column: 1 / -1; }
  .injurease-comment-list .children { margin-left: 10px; }
}
