/* ==========================================================================
   Learn Hair Loss — shared stylesheet
   Palette: blue and its variations
   ========================================================================== */

:root {
  /* Blue scale */
  --blue-950: #04122b;
  --blue-900: #071d3f;
  --blue-800: #0b2d63;
  --blue-700: #103f8a;
  --blue-600: #1554b0;
  --blue-500: #1e6fd9;
  --blue-400: #4a92ec;
  --blue-300: #7db4f5;
  --blue-200: #b0d2fa;
  --blue-100: #d9e9fd;
  --blue-50:  #eff6ff;

  /* Semantic (light theme) */
  --bg: #f5f9ff;
  --bg-elevated: #ffffff;
  --bg-sunken: var(--blue-50);
  --ink: #0a1c33;
  --ink-soft: #3f5470;
  --ink-faint: #6b7f99;
  --line: #d5e4f7;
  --line-strong: #b6cff0;
  --brand: var(--blue-600);
  --brand-strong: var(--blue-800);
  --brand-soft: var(--blue-100);
  --accent: var(--blue-400);
  --shadow: 0 1px 2px rgba(10, 40, 90, .06), 0 8px 24px rgba(10, 40, 90, .08);
  --shadow-lift: 0 2px 6px rgba(10, 40, 90, .10), 0 18px 44px rgba(10, 40, 90, .16);

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --readw: 720px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Georgia", "Iowan Old Style", "Times New Roman", serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050f22;
    --bg-elevated: #0a1c38;
    --bg-sunken: #071630;
    --ink: #e8f1ff;
    --ink-soft: #a8c2e3;
    --ink-faint: #7d99bd;
    --line: #14305c;
    --line-strong: #1d4478;
    --brand: var(--blue-400);
    --brand-strong: var(--blue-300);
    --brand-soft: #0e2749;
    --accent: var(--blue-300);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 8px rgba(0, 0, 0, .45), 0 20px 48px rgba(0, 0, 0, .5);
  }
}

/* Manual override via the theme toggle — must beat the media query. */
:root[data-theme="light"] {
  --bg: #f5f9ff;
  --bg-elevated: #ffffff;
  --bg-sunken: var(--blue-50);
  --ink: #0a1c33;
  --ink-soft: #3f5470;
  --ink-faint: #6b7f99;
  --line: #d5e4f7;
  --line-strong: #b6cff0;
  --brand: var(--blue-600);
  --brand-strong: var(--blue-800);
  --brand-soft: var(--blue-100);
  --accent: var(--blue-400);
  --shadow: 0 1px 2px rgba(10, 40, 90, .06), 0 8px 24px rgba(10, 40, 90, .08);
  --shadow-lift: 0 2px 6px rgba(10, 40, 90, .10), 0 18px 44px rgba(10, 40, 90, .16);
}

:root[data-theme="dark"] {
  --bg: #050f22;
  --bg-elevated: #0a1c38;
  --bg-sunken: #071630;
  --ink: #e8f1ff;
  --ink-soft: #a8c2e3;
  --ink-faint: #7d99bd;
  --line: #14305c;
  --line-strong: #1d4478;
  --brand: var(--blue-400);
  --brand-strong: var(--blue-300);
  --brand-soft: #0e2749;
  --accent: var(--blue-300);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 8px rgba(0, 0, 0, .45), 0 20px 48px rgba(0, 0, 0, .5);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: 80px;  /* clears the sticky header on anchor jumps */
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -0.018em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------- header -- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--blue-400), var(--blue-700));
  display: grid; place-items: center;
  color: #fff; font-size: .82rem; font-weight: 800;
  box-shadow: 0 3px 10px rgba(21, 84, 176, .35);
}
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.head-nav a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.head-nav a:hover { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.theme-btn {
  appearance: none; border: 1px solid var(--line-strong); background: var(--bg-elevated);
  color: var(--ink-soft); width: 36px; height: 34px; border-radius: 9px;
  cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) {
  .head-nav a { display: none; }
  .head-nav .theme-btn { display: grid; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding: 76px 0 60px;
  background:
    radial-gradient(1000px 460px at 12% -12%, color-mix(in srgb, var(--blue-400) 24%, transparent), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, color-mix(in srgb, var(--blue-600) 20%, transparent), transparent 60%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft);
  border: 1px solid var(--line-strong);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  max-width: 17ch;
  margin-bottom: .35em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-500), var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.6em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(160deg, var(--blue-500), var(--blue-700));
  color: #fff; box-shadow: 0 4px 14px rgba(21, 84, 176, .35);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-elevated); color: var(--brand-strong); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); }

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-top: 46px;
}

/* ------------------------------------------------------- hero trust row -- */

.hero-trust {
  grid-column: 1 / -1;
  list-style: none; margin: 32px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 16px 30px;
  grid-template-columns: repeat(auto-fit, minmax(190px, max-content));
  justify-content: start;
}
.hero-trust li { display: flex; align-items: flex-start; gap: 11px; margin: 0; }
.hero-trust svg {
  width: 21px; height: 21px; flex: none; margin-top: 3px;
  fill: none; stroke: var(--brand); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-trust span { font-size: .83rem; line-height: 1.45; color: var(--ink-faint); }
.hero-trust b { display: block; font-size: .92rem; font-weight: 650; color: var(--ink); }

/* the numbers keep their own quiet band directly under the hero */
.stat-band {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 30px;
}
.stat-band .stat-strip { margin-top: 0; }

/* ------------------------------------------------- hero photo composite -- */
/* Split hero: the editorial column on the left, the operating room on the
   right. The photograph is a pre-graded cut-out with feathered edges, so it
   needs a dark navy "stage" behind it in both themes to sit in.             */

.hero-grid {
  --bleed: max(22px, calc((100vw - var(--maxw)) / 2 + 22px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.hero-copy { min-width: 0; }
.hero .stat-strip { grid-column: 1 / -1; }

.hero-media {
  position: relative;
  min-width: 0;
  margin: 26px -22px 0;          /* edge to edge on small screens */
}
.hero-media::before {            /* the navy stage — feathered, never a rectangle */
  content: "";
  position: absolute;
  inset: -3% 0 -1% 0;
  background:
    radial-gradient(54% 42% at 60% 26%, rgba(17, 66, 143, .5), transparent 72%),
    radial-gradient(72% 62% at 52% 46%, rgba(4, 18, 43, .97), rgba(4, 18, 43, .84) 56%,
                                        rgba(4, 18, 43, 0) 82%);
  pointer-events: none;
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  object-position: 50% 0;
  margin-inline: auto;
  filter: drop-shadow(0 26px 54px rgba(2, 10, 26, .5));
}

.hero-tags {
  position: absolute; z-index: 2;
  top: 11%; right: 3%;
  margin: 0; padding: 0; list-style: none; text-align: right;
}
.hero-tags li {
  margin: 0 0 11px;
  font-size: .63rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(206, 225, 250, .82);
  text-shadow: 0 1px 6px rgba(2, 10, 26, .75);
}
.hero-tags li:last-child { margin-bottom: 0; }
.hero-tags::after {
  content: ""; display: block; width: 38px; height: 1px; margin: 13px 0 0 auto;
  background: linear-gradient(90deg, transparent, rgba(125, 180, 245, .6));
}

.hero-sig {
  position: absolute; z-index: 2;
  right: 4%; bottom: 5%;
  text-align: right; margin: 0;
}
.hero-sig::before {
  content: ""; display: block; width: 44px; height: 1px; margin: 0 0 12px auto;
  background: linear-gradient(90deg, transparent, rgba(125, 180, 245, .55));
}
.hero-sig .sig-name {
  display: block;
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Bradley Hand",
               "Brush Script MT", var(--font-display), cursive;
  font-style: italic; font-size: 1.85rem; line-height: 1.1;
  color: #f2f7ff; text-shadow: 0 2px 12px rgba(2, 10, 26, .85);
}
.hero-sig .sig-role {
  display: block; margin-top: 7px;
  font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(173, 200, 236, .82); text-shadow: 0 1px 6px rgba(2, 10, 26, .8);
}

@media (max-width: 899px) {
  .hero-photo { max-height: 54vh; }
}
@media (max-width: 700px) {
  .hero-tags { display: none; }
  .hero-photo { max-height: 58vh; }
  .hero-sig {                       /* clear of the gloves: sits under the photo */
    position: static;
    margin: 6px 22px 0 0;
  }
  .hero-sig::before { background: linear-gradient(90deg, transparent, var(--line-strong)); }
  .hero-sig .sig-name { font-size: 1.6rem; color: var(--ink); text-shadow: none; }
  .hero-sig .sig-role { color: var(--ink-faint); text-shadow: none; }
}

@media (min-width: 900px) {
  .hero { padding: 62px 0 56px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    column-gap: 34px;
    align-items: center;
  }
  .hero-media {
    margin: -18px calc(-1 * var(--bleed)) -26px 0;
    align-self: stretch;
    display: flex; align-items: center;
  }
  .hero-media::before {          /* a soft-edged navy stage, feathered on every side */
    inset: -18% -8% -2% -6%;
    background:
      radial-gradient(84% 104% at 74% 38%,
        rgba(4, 18, 43, .98) 0%, rgba(4, 18, 43, .96) 42%,
        rgba(4, 18, 43, .55) 70%, rgba(4, 18, 43, 0) 90%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 97%);
            mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 97%);
  }
  .hero-media::after {           /* the cool key light, high and to the right */
    content: ""; position: absolute; inset: -14% -8% 26% 0;
    background: radial-gradient(58% 60% at 62% 44%, rgba(19, 72, 154, .45), transparent 70%);
    pointer-events: none; z-index: 0;
  }
  .hero-photo {
    max-height: min(660px, 78vh);
    object-position: 100% 50%;
  }
  .hero .lede { max-width: 46ch; }
  .hero-tags { top: 7%; right: 28px; }
  .hero-sig { bottom: 9%; right: 28px; }
  .hero .stat-strip { margin-top: 34px; }
}

@media (min-width: 1200px) {
  .hero-grid { column-gap: 52px; }
  .hero-sig .sig-name { font-size: 2.1rem; }
}
.stat {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.55rem; color: var(--brand); letter-spacing: -.03em; line-height: 1.2; }
.stat span { font-size: .84rem; color: var(--ink-faint); }

/* -------------------------------------------------------------- layout -- */

section { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); }
.section-head p { color: var(--ink-soft); margin: 0; }
.kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* --------------------------------------------------------------- index -- */

.topic-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.topic-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: var(--shadow); color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.topic-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-700));
  opacity: 0; transition: opacity .18s ease;
}
.topic-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: var(--line-strong); text-decoration: none;
}
.topic-card:hover::before { opacity: 1; }
.topic-num {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 14px;
}
.topic-card h3 { font-size: 1.12rem; margin-bottom: .45em; color: var(--ink); }
.topic-card p { font-size: .93rem; color: var(--ink-soft); margin: 0 0 16px; }
.topic-meta {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--ink-faint);
}
.pill {
  background: var(--bg-sunken); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; font-weight: 600; color: var(--brand-strong);
  font-size: .74rem;
}
.topic-card .go { margin-left: auto; color: var(--brand); font-weight: 600; }

/* ----------------------------------------------------------- highlight -- */

.band { background: var(--bg-sunken); border-block: 1px solid var(--line); }
.two-col {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.05rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: .7em;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
}

/* ------------------------------------------------------------- byline -- */

.byline {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 1.5em;
}
.byline-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  box-shadow: var(--shadow);
}
.byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.byline-text b { color: var(--ink); font-weight: 650; font-size: .95rem; }
.byline-text span { color: var(--ink-faint); font-size: .84rem; }
.hero .byline { margin: 0 0 26px; }
.hero .byline-text span { max-width: 46ch; line-height: 1.5; }

/* --------------------------------------------------------- photography -- */

.figure {
  margin: 0 0 1.8em;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.figure img {
  display: block; width: 100%; height: auto;
  border-bottom: 1px solid var(--line);
}
.figure figcaption {
  padding: 14px 18px; font-size: .84rem; line-height: 1.55; color: var(--ink-faint);
}
.figure figcaption b { color: var(--brand-strong); font-weight: 650; }
.figure-hero { margin-bottom: 2.4em; }

.gallery {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery .figure { margin: 0; height: 100%; }
.gallery .figure img { aspect-ratio: 3 / 2; object-fit: cover; }

/* -------------------------------------------------------- article page -- */

.article { padding: 48px 0 20px; }
.article-inner { max-width: var(--readw); margin: 0 auto; }
.crumbs { font-size: .86rem; color: var(--ink-faint); margin-bottom: 20px; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--brand); }
.article h1 { font-size: clamp(1.85rem, 5vw, 2.6rem); margin-bottom: .3em; }
.article .dek { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-faint);
}
.article h2 {
  font-size: 1.42rem; margin-top: 2.2em;
  padding-top: .2em;
}
.article h3 { font-size: 1.1rem; margin-top: 1.8em; color: var(--brand-strong); }
.article p, .article li { color: var(--ink-soft); }
.article strong { color: var(--ink); font-weight: 650; }

.callout {
  border: 1px solid var(--line-strong); border-left: 4px solid var(--brand);
  background: var(--bg-sunken); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 1.8em 0;
}
.callout .callout-title {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 8px;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.takeaways {
  background: linear-gradient(150deg, var(--brand-soft), transparent 75%);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 24px 26px; margin: 2.6em 0 1.4em;
}
.takeaways h2 { margin-top: 0; font-size: 1.15rem; }

.table-scroll { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .93rem; background: var(--bg-elevated); }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-sunken); color: var(--brand-strong); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-soft); }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-elevated); padding: 0; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--brand); font-weight: 800; font-size: 1.1rem;
  width: 18px; flex: none;
}
.faq details[open] summary::before { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 15px 18px 4px 46px; }
.faq .faq-body p { margin-bottom: 1em; }

/* ------------------------------------------------------------ pagenav -- */

.pager {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 44px 0 10px;
}
.pager a {
  border: 1px solid var(--line); background: var(--bg-elevated);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  color: inherit;
}
.pager a:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.pager span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 5px; }
.pager b { font-size: .97rem; color: var(--brand-strong); font-weight: 650; }
.pager .next { text-align: right; }

.mini-index { margin-top: 10px; }
.mini-index ol { columns: 2; column-gap: 26px; padding-left: 1.15em; }
.mini-index li { font-size: .9rem; margin-bottom: .55em; break-inside: avoid; }
@media (max-width: 560px) { .mini-index ol { columns: 1; } }

/* ------------------------------------------------------------ disclaim -- */

.disclaimer {
  border: 1px dashed var(--line-strong); background: var(--bg-sunken);
  border-radius: var(--radius); padding: 20px 22px;
  font-size: .88rem; color: var(--ink-faint);
}
.disclaimer strong { color: var(--brand-strong); }

/* -------------------------------------------------------------- footer -- */

.site-foot {
  border-top: 1px solid var(--line); background: var(--bg-elevated);
  padding: 42px 0 34px; margin-top: 20px;
}
.foot-grid {
  display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); margin-bottom: 12px;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .5em; font-size: .9rem; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--brand); }
.foot-bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* -------------------------------------------------------- progress bar -- */

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  z-index: 60; transition: width .1s linear;
}

/* ------------------------------------------------------------- motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .topic-card:hover, .pager a:hover, .btn-primary:hover { transform: none; }
}

@media print {
  .site-head, .site-foot, .pager, .progress, .cta-row, .hero-media { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .figure { break-inside: avoid; box-shadow: none; }
  .figure img { max-height: 8cm; object-fit: contain; }
}
