/* HealthLine 2026 — Blog category finishing pass v0.21.2
 * Category-only overrides. Single article presentation remains unchanged.
 */

/* Reclaim the first viewport now that visible breadcrumbs are intentionally gone. */
.hl-blog-category-page .hl-cat-hero {
  padding-top: clamp(1.65rem, 2.8vw, 2.8rem);
  padding-bottom: clamp(2.65rem, 4.8vw, 4.35rem);
}

.hl-blog-category-page .hl-cat-hero__grid {
  gap: clamp(2rem, 5.5vw, 5.5rem);
}

.hl-blog-category-page .hl-cat-hero__lead {
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
}

.hl-blog-category-page .hl-cat-hero__note {
  margin-top: 0.75rem;
}

/* Latest story: the artwork is editorial content, not a crop target. */
.hl-blog-category-page .hl-feature-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(.2,.7,.25,1),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.hl-blog-category-page .hl-feature-story::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--hl-blog-red), var(--hl-blog-blue), var(--hl-blog-red));
  background-size: 220% 100%;
  animation: hlCategoryFeatureRail 6s linear infinite;
  pointer-events: none;
}

.hl-blog-category-page .hl-feature-story:hover,
.hl-blog-category-page .hl-feature-story:focus-within {
  transform: translateY(-4px);
  border-color: #ccdbe7;
  box-shadow: 0 30px 70px rgba(11, 41, 72, 0.14);
}

.hl-blog-category-page .hl-feature-story__media {
  display: grid;
  min-height: 500px;
  padding: clamp(0.9rem, 1.5vw, 1.35rem);
  place-items: center;
  background:
    radial-gradient(circle at 25% 18%, rgba(27,128,243,.07), transparent 18rem),
    linear-gradient(145deg, #f4f7f9, #eef3f7);
}

.hl-blog-category-page .hl-feature-story__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  transform: none !important;
  transition: filter 220ms ease, box-shadow 220ms ease;
}

.hl-blog-category-page .hl-feature-story:hover .hl-feature-story__media img,
.hl-blog-category-page .hl-feature-story:focus-within .hl-feature-story__media img {
  transform: none !important;
  filter: saturate(1.02) contrast(1.01);
  box-shadow: 0 12px 30px rgba(11, 41, 72, 0.08);
}

.hl-blog-category-page .hl-feature-story .hl-text-link span {
  transition: transform 180ms ease;
}

.hl-blog-category-page .hl-feature-story:hover .hl-text-link span,
.hl-blog-category-page .hl-feature-story:focus-within .hl-text-link span {
  transform: translateX(5px);
}

@keyframes hlCategoryFeatureRail {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}


/* v0.22.81 desktop alignment: use fixed content bands so every link row lines up across sibling cards. */
@media (min-width: 1021px) {
  .hl-blog-category-page .hl-topic-pathways-grid--4 .hl-topic-pathway-card h3 {
    height: 3.6rem;
  }

  .hl-blog-category-page .hl-topic-pathways-grid--4 .hl-topic-pathway-card > p {
    height: 10.5rem;
  }

  .hl-blog-category-page .hl-topic-pathways-grid--3 .hl-topic-pathway-card h3 {
    height: 3.6rem;
  }

  .hl-blog-category-page .hl-topic-pathways-grid--3 .hl-topic-pathway-card > p {
    height: 8.25rem;
  }

  .hl-blog-category-page .hl-topic-pathway-card__links {
    grid-auto-rows: 4.15rem;
  }

  .hl-blog-category-page .hl-topic-pathway-card__links a,
  .hl-blog-category-page .hl-topic-pathway-card__links a:visited {
    height: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1020px) {
  .hl-blog-category-page .hl-cat-hero {
    padding-top: 1.9rem;
    padding-bottom: 3rem;
  }

  .hl-blog-category-page .hl-cat-hero__grid {
    gap: 2rem;
  }

  .hl-blog-category-page .hl-feature-story__media {
    min-height: 340px;
  }

  .hl-blog-category-page .hl-feature-story__media img {
    max-height: 500px;
  }
}

@media (max-width: 760px) {
  .hl-blog-category-page .hl-cat-hero {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .hl-blog-category-page .hl-cat-hero__copy h1 {
    font-size: clamp(2.85rem, 16vw, 4.85rem);
  }

  .hl-blog-category-page .hl-feature-story__media {
    min-height: 0;
    padding: 0.65rem;
  }

  .hl-blog-category-page .hl-feature-story__media img {
    max-height: none;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-blog-category-page .hl-feature-story,
  .hl-blog-category-page .hl-feature-story__media img,
  .hl-blog-category-page .hl-feature-story .hl-text-link span {
    transition: none;
  }

  .hl-blog-category-page .hl-feature-story::before {
    animation: none;
    background-position: 50% 50%;
  }
}


/* v0.22.81 — curated topic pathways with row-locked cross-card alignment. */
.hl-blog-category-page .hl-cat-topic-pathways {
  padding: clamp(4rem, 7vw, 6.4rem) 0;
  background: #f4f7fa;
  border-top: 1px solid rgba(11,41,72,.055);
  border-bottom: 1px solid rgba(11,41,72,.055);
}

.hl-blog-category-page .hl-topic-pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.hl-blog-category-page .hl-topic-pathway-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  overflow: hidden;
  border: 1px solid #dbe5ed;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11,41,72,.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hl-blog-category-page .hl-topic-pathway-card::after {
  position: absolute;
  top: -56px;
  right: -56px;
  width: 132px;
  height: 132px;
  content: "";
  border: 1px solid rgba(27,128,243,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(27,128,243,.025);
  pointer-events: none;
}

.hl-blog-category-page .hl-topic-pathway-card:hover,
.hl-blog-category-page .hl-topic-pathway-card:focus-within {
  transform: translateY(-3px);
  border-color: #cbdbe7;
  box-shadow: 0 18px 42px rgba(11,41,72,.085);
}

.hl-blog-category-page .hl-topic-pathway-card__index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--hl-blog-red);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .12em;
}

.hl-blog-category-page .hl-topic-pathway-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--hl-blog-navy);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.hl-blog-category-page .hl-topic-pathway-card > p {
  position: relative;
  z-index: 1;
  margin: .8rem 0 1.2rem;
  color: var(--hl-blog-muted);
  line-height: 1.62;
}

.hl-blog-category-page .hl-topic-pathway-card__links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .15rem;
  margin-top: 0;
}

.hl-blog-category-page .hl-topic-pathway-card__links a,
.hl-blog-category-page .hl-topic-pathway-card__links a:visited {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .55rem;
  align-items: center;
  padding: .78rem 0;
  border-top: 1px solid #e7edf2;
  color: #24384c !important;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.hl-blog-category-page .hl-topic-pathway-card__links small {
  padding: .25rem .45rem;
  border: 1px solid #d8e5ef;
  border-radius: 999px;
  background: #f7fafc;
  color: #65798d;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.hl-blog-category-page .hl-topic-pathway-card__links i {
  color: var(--hl-blog-blue);
  font-size: 1rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.hl-blog-category-page .hl-topic-pathway-card__links a:hover,
.hl-blog-category-page .hl-topic-pathway-card__links a:focus-visible {
  color: var(--hl-blog-blue) !important;
}

.hl-blog-category-page .hl-topic-pathway-card__links a:hover i,
.hl-blog-category-page .hl-topic-pathway-card__links a:focus-visible i {
  transform: translateX(3px);
}

@media (min-width: 761px) and (max-width: 1020px) {
  .hl-blog-category-page .hl-topic-pathways-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hl-blog-category-page .hl-topic-pathway-card h3 {
    height: 3.6rem;
  }

  .hl-blog-category-page .hl-topic-pathway-card > p {
    height: 8.25rem;
  }

  .hl-blog-category-page .hl-topic-pathway-card__links {
    grid-auto-rows: 4.15rem;
  }

  .hl-blog-category-page .hl-topic-pathway-card__links a,
  .hl-blog-category-page .hl-topic-pathway-card__links a:visited {
    height: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 760px) {
  .hl-blog-category-page .hl-cat-topic-pathways {
    padding: 3.3rem 0;
  }

  .hl-blog-category-page .hl-topic-pathways-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    align-items: start;
  }

  .hl-blog-category-page .hl-topic-pathway-card {
    min-height: 0;
    height: auto;
    align-self: start;
    padding: 1.35rem;
  }

  .hl-blog-category-page .hl-topic-pathway-card h3,
  .hl-blog-category-page .hl-topic-pathway-card > p {
    height: auto;
    min-height: 0;
  }

  .hl-blog-category-page .hl-topic-pathway-card__links {
    grid-auto-rows: auto;
  }

  .hl-blog-category-page .hl-topic-pathway-card__links a,
  .hl-blog-category-page .hl-topic-pathway-card__links a:visited {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-blog-category-page .hl-topic-pathway-card,
  .hl-blog-category-page .hl-topic-pathway-card__links i {
    transition: none;
  }
}
