/* Open Longevity — editorial evidence review. Paper, ink, one accent.
   System font stacks only — no network font requests, no CDNs, no build step. */

:root {
  --ink: #15181b;
  --navy: #0d2338;
  --navy-light: #1c3b57;
  --navy-deep: #081422;
  --teal: #0e7490;
  --teal-deep: #0a5568;
  --teal-pale: #e7f2f4;
  --bg: #f7f4ee;
  --card: #fffefb;
  --text: #211f1a;
  --muted: #6b6455;
  --border: #e3dbc9;
  --border-strong: #c9bfa8;
  --strong: #15803d;
  --strong-bg: #eafaf1;
  --moderate: #1d4ed8;
  --moderate-bg: #eaf1fd;
  --weak: #b45309;
  --weak-bg: #fdf3e7;
  --emerging: #6d28d9;
  --emerging-bg: #f2ecfb;
  --focus: #0e7490;

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Type scale */
  --fs-xs: 0.72rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.22rem;
  --fs-xl: 1.7rem;

  /* Radii — small and deliberate, not bubble-rounded */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* Shadows — restrained, no glow */
  --shadow-sm: 0 1px 2px rgba(21,24,27,0.06);
  --shadow-md: 0 6px 20px rgba(21,24,27,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* Accessible focus ring */
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared micro-label ("eyebrow") above section headings */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #9fc6d3;
  margin: 0 0 14px;
}
.eyebrow.dark { color: var(--teal); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Consent banner */
#consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: #eef1f2;
  padding: 14px 16px;
  font-size: 0.88rem;
  display: none;
  z-index: 200;
  box-shadow: 0 -2px 24px rgba(0,0,0,0.3);
}
#consent-banner.show { display: block; }
#consent-banner .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
#consent-banner p { margin: 0; max-width: 640px; }
#consent-banner a { color: #8fd2e2; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 0.86rem;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: #eef1f2; border: 1px solid #47494c; }
.btn-ghost:hover { border-color: #6c6f73; }

/* Header — sticky, condenses on scroll */
header.site-header {
  background: rgba(21,24,27,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .25s ease, border-color .25s ease;
}
header.site-header.scrolled {
  background: rgba(13,35,56,0.98);
  border-bottom-color: rgba(14,116,144,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  transition: padding .25s ease;
}
header.site-header.scrolled .header-inner { padding: 10px 0; }
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  color: #8fb9c8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
nav.main-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
nav.main-nav a {
  position: relative;
  color: #c3d4e3;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: color .18s ease;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: #fff; text-decoration: none; }
nav.main-nav a:hover::after, nav.main-nav a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #3a3d40;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
}

/* Mobile nav — full-height slide-in panel */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,17,19,0.55);
  z-index: 205;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-backdrop.show { opacity: 1; }
.nav-close { display: none; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { display: block; }

  nav.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 360px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 88px 30px 40px;
    background: var(--ink);
    box-shadow: -20px 0 50px rgba(0,0,0,0.35);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 210;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a {
    font-size: 1.08rem;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    border-radius: 0;
  }
  nav.main-nav a::after { display: none; }

  .nav-close {
    display: block;
    position: absolute;
    top: 22px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
  }
}

/* Not-medical-advice ribbon */
.advice-ribbon {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #cfe0ee;
  font-size: 0.79rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 12px;
}
.advice-ribbon a { color: #8fd2e2; text-decoration: underline; }

/* ── Hero — full-bleed photograph, single centred claim ─────
   The overlay is deliberately heavy: white text sits on a photo, so the
   scrim has to guarantee contrast regardless of what part of the image
   lands behind the words at a given viewport size. */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,20,34,0.80) 0%, rgba(8,20,34,0.72) 45%, rgba(8,20,34,0.92) 100%),
    url("../img/hero-lab.jpg") center 40% / cover no-repeat;
  color: #eaf1f8;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 96px 0;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 22px;
  color: #fff;
  max-width: 16ch;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #8fd2e2;
}
.hero p.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #b9cdde;
  max-width: 56ch;
  margin: 0 0 32px;
  padding-left: 18px;
  border-left: 2px solid rgba(14,116,144,0.6);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions a.btn-solid {
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: background .18s ease, border-color .18s ease;
}
.hero-actions a.btn-solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); text-decoration: none; }
.hero-actions a.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: #eaf1f8;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  transition: border-color .18s ease, background .18s ease;
}
.hero-actions a.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }

/* Hero side panel — evidence-at-a-glance, styled as a small spec sheet */
.hero-panel {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  padding: 26px 28px;
}
.hero-panel-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #8fb9c8;
  margin-bottom: 18px;
}
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-stats li {
  padding: 14px 16px 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats li:nth-child(1), .hero-stats li:nth-child(2) { border-top: none; }
.hero-stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.12); }
.hero-stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stat-lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #90a7bb;
  font-weight: 500;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; }
}

/* ── Homepage hero overrides: one centred claim, no side panel ───── */
.hero-lede { max-width: 22ch; }
.hero h1.hero-claim {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero h1.hero-claim b {
  font-weight: 600;
  color: #7fe0c0;
}
.hero p.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #c8d8e4;
  max-width: 48ch;
  margin: 0 0 36px;
  padding: 0;
  border: 0;
}

/* ── Statement band — full-bleed photo, one sentence ─────────────── */
.statement-band {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,20,34,0.86), rgba(8,20,34,0.86)),
    url("../img/band-microscope.jpg") center 55% / cover no-repeat;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.statement-band p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}
.statement-band .statement-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9fc6d3;
  margin-top: 26px;
  max-width: none;
}

/* ── Evidence distribution chart ─────────────────────────────────
   Four marks, every one directly labelled, so the chart doubles as its
   own data table and identity is never carried by colour alone. */
.evidence-chart { margin: 0; }
.ec-rows { list-style: none; margin: 0; padding: 0; }
.ec-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
}
.ec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.ec-track {
  display: block;
  background: rgba(21,24,27,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ec-bar {
  display: block;
  height: 30px;
  width: 0;
  /* square at the baseline, rounded only at the data end */
  border-radius: 0 4px 4px 0;
  transition: width .85s cubic-bezier(.22,.8,.3,1);
}
.reveal.in .ec-bar, .no-anim .ec-bar { width: var(--w); }
.ec-strong   { background: var(--strong); }
.ec-moderate { background: var(--moderate); }
.ec-weak     { background: var(--weak); }
.ec-emerging { background: var(--emerging); }
.ec-val {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
}
.ec-val b {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 6px;
}
.ec-foot {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 700px) {
  .ec-row { grid-template-columns: 92px minmax(0,1fr); row-gap: 6px; }
  .ec-val { grid-column: 2 / 3; }
}

/* Compact homepage lists: the index rows carry a name and a price only.
   Descriptions live on the test pages, not here. */
.spotlight-list.compact .spotlight-row { grid-template-columns: 96px minmax(0,1fr) 110px 22px; padding: 15px 14px; }
.tier-mini-grid.compact .tier-mini-card { padding: 30px 26px; }

/* ── Full-bleed section bands ─────────────────────────── */
.band { padding: 76px 0; }
.band-light { background: var(--bg); }
.band-white { background: var(--card); }
.band-dark { background: var(--navy); color: #dce8f2; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-intro, .band-dark p { color: #b9cdde; }
.band-dark a { color: #8fd2e2; }
.band + .band { border-top: 1px solid var(--border); }
.band-dark + .band, .band + .band-dark { border-top: none; }

/* ── Sections / editorial two-column heads ────────────── */
main { padding: 60px 0 84px; }
section { margin-bottom: 64px; }
main > .wrap > section:last-child { margin-bottom: 0; }

main.banded { padding: 0; }
main.banded section { margin-bottom: 0; }

main > .wrap > h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 18px;
  max-width: 20ch;
}
main > .wrap > h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--teal);
  margin-top: 20px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: -0.025em;
}
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px 48px;
  align-items: start;
  margin-bottom: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.band-dark .section-head { border-top-color: rgba(255,255,255,0.14); }
.section-head h2 { margin: 0; }
.section-head .section-intro { margin: 0; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
}

.section-intro { color: var(--muted); max-width: 68ch; margin-bottom: 26px; font-size: 1.02rem; }

/* ── Step list — numbered rule-columns, not cards ──────── */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.step-item {
  padding: 4px 30px 4px 0;
  border-left: 1px solid var(--border);
}
.step-item:first-child { border-left: none; padding-left: 0; }
.step-item:not(:first-child) { padding-left: 30px; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--border-strong);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.step-item h3 { margin: 0 0 8px; }
.step-item p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.step-item a.step-link { font-weight: 600; font-size: 0.88rem; }
@media (max-width: 780px) {
  .step-list { grid-template-columns: 1fr; }
  .step-item { border-left: none; padding-left: 0 !important; border-top: 1px solid var(--border); padding-top: 26px; margin-top: 26px; }
  .step-item:first-child { border-top: none; padding-top: 0; margin-top: 0; }
}

/* ── Highest-value test index list ─────────────────────── */
.spotlight-list {
  border-top: 1px solid var(--border);
}
.spotlight-row {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) 100px 22px;
  align-items: center;
  gap: 18px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background .16s ease;
}
.spotlight-row:hover { background: var(--teal-pale); text-decoration: none; }
.spotlight-row:hover .spotlight-title { text-decoration: underline; }
.spotlight-title-wrap { display: block; }
.spotlight-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.spotlight-desc { display: block; margin-top: 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.spotlight-price { font-size: 0.85rem; color: var(--muted); font-weight: 600; text-align: right; white-space: nowrap; }
.spotlight-arrow { color: var(--teal); font-size: 1.05rem; transition: transform .16s ease; }
.spotlight-row:hover .spotlight-arrow { transform: translateX(5px); }
@media (max-width: 700px) {
  .spotlight-row { grid-template-columns: 1fr 22px; row-gap: 8px; }
  .spotlight-row .spotlight-grade { order: 1; }
  .spotlight-row .spotlight-title-wrap { order: 2; grid-column: 1 / 2; }
  .spotlight-price { order: 3; grid-column: 1 / 2; text-align: left; }
  .spotlight-arrow { order: 4; grid-row: 1 / 4; align-self: start; }
}

/* ── Homepage protocol-tier comparison strip ───────────── */
.tier-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}
.tier-mini-card {
  display: block;
  padding: 28px 26px;
  color: var(--text);
  border-left: 1px solid var(--border);
  transition: background .16s ease;
}
.tier-mini-card:first-child { border-left: none; }
.tier-mini-card:hover { background: var(--teal-pale); text-decoration: none; }
.tier-mini-card:hover h3 { text-decoration: underline; }
.tier-mini-card h3 { margin: 0 0 4px; }
.tier-mini-price { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.tier-mini-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 780px) {
  .tier-mini-grid { grid-template-columns: 1fr; }
  .tier-mini-card { border-left: none; border-top: 1px solid var(--border); }
  .tier-mini-card:first-child { border-top: none; }
}

/* ── Final "every test" card grid — asymmetric, flat hover ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.nav-card {
  position: relative;
  background: var(--card);
  padding: 30px 28px 48px;
  display: block;
  color: var(--text);
  transition: background .18s ease;
}
.nav-card:nth-child(1) { grid-column: span 2; }
@media (max-width: 700px) { .nav-card:nth-child(1) { grid-column: span 1; } }
.nav-card::after {
  content: "→";
  position: absolute;
  left: 28px; bottom: 22px;
  font-size: 1.05rem;
  color: var(--teal);
  transition: transform .18s ease;
}
.nav-card:hover {
  text-decoration: none;
  background: var(--teal-pale);
}
.nav-card:hover h3 { text-decoration: underline; }
.nav-card:hover::after { transform: translateX(6px); }
.nav-card h3 { margin: 0 0 10px; }
.nav-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.band-dark .nav-card { background: var(--navy); color: #dce8f2; }
.band-dark .nav-card p { color: #a8becf; }
.band-dark .nav-card:hover { background: var(--navy-light); }
.band-dark .nav-card::after { color: #8fd2e2; }

/* ── Grade badges — rectangular design objects, not pills ── */
.grade {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid currentColor;
  background: var(--card);
  white-space: nowrap;
}
.count {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.band-dark .count { background: rgba(255,255,255,0.08); color: #b9cdde; border-color: rgba(255,255,255,0.16); }

.grade-strong { color: var(--strong); background: var(--strong-bg); }
.grade-moderate { color: var(--moderate); background: var(--moderate-bg); }
.grade-weak { color: var(--weak); background: var(--weak-bg); }
.grade-emerging { color: var(--emerging); background: var(--emerging-bg); }

/* ── Test card ────────────────────────────────────────── */
.test-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin-bottom: 20px;
  transition: border-color .18s ease;
}
.test-card:hover { border-color: var(--border-strong); }
.test-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.test-card-head h3 { margin: 0; font-size: 1.3rem; }
.test-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 24px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.test-meta div span.label {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  margin-bottom: 4px;
}
.test-card p { margin: 10px 0; }
.test-card .evidence { font-size: 0.96rem; }
.test-card .citation {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--teal);
  padding-left: 14px;
  margin-top: 14px;
}

.flag-box {
  background: var(--weak-bg);
  border: 1px solid #f0dcbc;
  border-left: 3px solid var(--weak);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #7a5300;
  margin-top: 14px;
}

/* ── Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 22px 0 4px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .crumb-sep { color: var(--border-strong); }
.breadcrumbs .crumb-current { color: var(--text); font-weight: 600; }

/* ── Prev/next "Continue reading" nav ────────────────────── */
.page-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.page-nav a.page-nav-link {
  flex: 1 1 260px;
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  color: var(--text);
  transition: border-color .18s ease, background .18s ease;
}
.page-nav a.page-nav-link:hover {
  border-color: var(--border-strong);
  background: var(--teal-pale);
  text-decoration: none;
}
.page-nav a.next { text-align: right; }
.page-nav-label {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.page-nav-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── Tables — published research-table treatment ───────── */
.table-wrap {
  overflow: auto;
  max-height: 480px;
  margin-bottom: var(--space-5);
}
.table-wrap table { margin-bottom: 0; }
.table-wrap thead th { position: sticky; top: 0; z-index: 2; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--card);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border-bottom: 2px solid var(--navy);
}
tbody tr { transition: background .15s ease; }
tbody tr:nth-child(even) { background: #faf6ee; }
tbody tr:hover { background: var(--teal-pale); }
tr:last-child td { border-bottom: none; }
.band-dark td { color: var(--text); }

/* ── Protocol tiers (full page) ───────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.tier-card {
  background: var(--card);
  padding: 30px 28px;
  transition: background .18s ease;
}
.tier-card:hover { background: #fcfaf5; }
.tier-card h3 { margin-top: 0; font-size: 1.3rem; }
.tier-price {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 6px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tier-card ul { padding-left: 0; margin: 14px 0; list-style: none; }
.tier-card li {
  margin-bottom: 9px;
  font-size: 0.91rem;
  padding-left: 20px;
  position: relative;
}
.tier-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ── Ad slots ─────────────────────────────────────────── */
.ad-slot {
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: #97907e;
  font-size: 0.7rem;
  margin: 40px 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ── Callouts ─────────────────────────────────────────── */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--moderate);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 0.96rem;
}
.callout.warn { background: var(--weak-bg); border-color: #f0dcbc; border-left-color: var(--weak); }
.band-dark .callout {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  border-left-color: var(--teal);
  color: #cfe0ee;
}

/* ── Footer ───────────────────────────────────────────── */
footer.site-footer {
  background: var(--ink);
  color: #97a0a6;
  padding: 56px 0 30px;
  font-size: 0.87rem;
  border-top: 1px solid rgba(14,116,144,0.4);
}
footer.site-footer .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 32px;
}
footer.site-footer .foot-grid strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
footer.site-footer a { color: #cfe0ee; }
footer.site-footer a:hover { color: #8fd2e2; }
footer.site-footer .disclaimer-strip {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.79rem;
  line-height: 1.65;
  color: #7d8489;
}
.foot-col { min-width: 150px; }
.foot-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6c7378;
  font-weight: 600;
  margin-bottom: 14px;
}
footer.site-footer nav { display: flex; flex-direction: column; gap: 10px; }

/* ── Prose pages ──────────────────────────────────────── */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 44px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
/* Editorial drop cap on the article's opening paragraph — some prose pages
   lead with a p.last-updated meta line before the real opening paragraph,
   so both patterns need covering without double-applying the effect. */
.prose > p:first-of-type:not(.last-updated)::first-letter,
.prose > p.last-updated + p::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 600;
  line-height: 0.82;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--navy);
}
.last-updated {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  margin-bottom: 30px;
}

/* ── Utility ──────────────────────────────────────────── */
.small { font-size: 0.85rem; color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Inner pages have no .hero — .page-head reserved for any page that
   wants the dark editorial band treatment. */
.page-head {
  background: linear-gradient(155deg, var(--ink) 0%, var(--navy-deep) 60%, var(--navy) 100%);
  color: #eaf1f8;
  padding: 62px 0 50px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 14px;
  max-width: 20ch;
}
.page-head p {
  color: #b9cdde;
  max-width: 64ch;
  margin: 0;
  font-size: 1.05rem;
}
