/* Lifebuff peptide label pages: scan-from-the-vial quick reference.
   Tokens mirror site/styles.css (warm stone, glass cards, Fraunces display). */

:root {
  --bg: #ebe4d8;
  --ink: #1c1915;
  --ink-soft: #4f4a41;
  --ink-faint: #5f584d;
  --line: rgba(28, 25, 21, 0.14);
  --metal: #a68456;
  --metal-ink: #775a33;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --shadow: 0 18px 44px rgba(28, 25, 21, 0.08);
  --well: rgba(166, 132, 86, 0.1);
  --cue: rgba(28, 25, 21, 0.16);
  --btn-bg: #1c1915;
  --btn-ink: #f6f1e8;
  /* Hero dose card: the brand's navy CTA ink */
  --dose-bg: linear-gradient(165deg, #2c4068 0%, #152440 100%);
  --dose-ink: #f6f1e8;
  --dose-soft: #d5d9e4;
  --dose-line: rgba(246, 241, 232, 0.2);
  --liquid: #e9c88f;
  --barrel: rgba(246, 241, 232, 0.1);
  --barrel-edge: rgba(246, 241, 232, 0.55);
  --tick: rgba(246, 241, 232, 0.85);
  --stopper: #0b1222;
  --rod: rgba(246, 241, 232, 0.5);
  --hub: #e2a03c;
  --mark: #f3d39b;
  --fig-a: #fbf8f2;
  --fig-b: #ddd3c3;
  --fig-shade: rgba(120, 96, 66, 0.3);
  --fig-line: rgba(28, 25, 21, 0.09);
  --pill-bg: #fffdf8;
  --mk-bg: #9c4f1f;
  --mk-ink: #ffffff;
  --hot: #b5642e;
  --hot-glow: rgba(181, 100, 46, 0.18);
  --zone: rgba(44, 64, 104, 0.2);
  --zone-edge: #2c4068;
  --on: #2c4068;
  --off: rgba(28, 25, 21, 0.1);
  --stop: #9b2c1f;
  --stop-bg: rgba(155, 44, 31, 0.07);
  --ev-fda: #1f5f3a; --ev-fda-bg: rgba(31, 95, 58, 0.11);
  --ev-trial: #1d5470; --ev-trial-bg: rgba(29, 84, 112, 0.11);
  --ev-human: #2c4068; --ev-human-bg: rgba(44, 64, 104, 0.11);
  --ev-animal: #7a4d17; --ev-animal-bg: rgba(166, 112, 40, 0.14);
  --ev-community: #5d3f6b; --ev-community-bg: rgba(93, 63, 107, 0.11);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --page-wash:
    radial-gradient(ellipse 80% 40% at 0% -5%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(ellipse 60% 36% at 100% 0%, rgba(186, 204, 214, 0.45), transparent 55%);
  color-scheme: light;
}

/* Dark tokens: explicit choice, or the device setting when none is stored. */
html[data-theme="dark"] {
  --bg: #0e0f12;
  --ink: #f3efe6;
  --ink-soft: #cdc6b8;
  --ink-faint: #a39d91;
  --line: rgba(243, 239, 230, 0.15);
  --metal-ink: #c4a476;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --well: rgba(166, 132, 86, 0.12);
  --cue: rgba(0, 0, 0, 0.55);
  --btn-bg: #f3efe6;
  --btn-ink: #1c1915;
  --dose-bg: linear-gradient(165deg, #1d2840 0%, #121827 100%);
  --dose-line: rgba(246, 241, 232, 0.16);
  --fig-a: #4a453e;
  --fig-b: #2c2925;
  --fig-shade: rgba(0, 0, 0, 0.45);
  --fig-line: rgba(243, 239, 230, 0.08);
  --pill-bg: #24221f;
  --mk-bg: #e8935a;
  --mk-ink: #1c1915;
  --hot: #e8935a;
  --hot-glow: rgba(232, 147, 90, 0.22);
  --zone: rgba(143, 168, 214, 0.22);
  --zone-edge: #a9bfe6;
  --on: #8fa8d6;
  --off: rgba(243, 239, 230, 0.12);
  --stop: #f19a8b;
  --stop-bg: rgba(241, 154, 139, 0.08);
  --ev-fda: #8fd3a8; --ev-fda-bg: rgba(143, 211, 168, 0.12);
  --ev-trial: #8ccbe6; --ev-trial-bg: rgba(140, 203, 230, 0.12);
  --ev-human: #a9bfe6; --ev-human-bg: rgba(169, 191, 230, 0.12);
  --ev-animal: #e7bf85; --ev-animal-bg: rgba(231, 191, 133, 0.12);
  --ev-community: #d2b3e0; --ev-community-bg: rgba(210, 179, 224, 0.12);
  --page-wash:
    radial-gradient(ellipse 70% 36% at 100% -6%, rgba(166, 132, 86, 0.2), transparent 56%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(150, 170, 184, 0.08), transparent 52%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0e0f12;
    --ink: #f3efe6;
    --ink-soft: #cdc6b8;
    --ink-faint: #a39d91;
    --line: rgba(243, 239, 230, 0.15);
    --metal-ink: #c4a476;
    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(255, 255, 255, 0.09);
    --glass-edge: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    --well: rgba(166, 132, 86, 0.12);
    --cue: rgba(0, 0, 0, 0.55);
    --btn-bg: #f3efe6;
    --btn-ink: #1c1915;
    --dose-bg: linear-gradient(165deg, #1d2840 0%, #121827 100%);
    --dose-line: rgba(246, 241, 232, 0.16);
    --fig-a: #4a453e;
    --fig-b: #2c2925;
    --fig-shade: rgba(0, 0, 0, 0.45);
    --fig-line: rgba(243, 239, 230, 0.08);
    --pill-bg: #24221f;
    --mk-bg: #e8935a;
    --mk-ink: #1c1915;
    --hot: #e8935a;
    --hot-glow: rgba(232, 147, 90, 0.22);
    --zone: rgba(143, 168, 214, 0.22);
    --zone-edge: #a9bfe6;
    --on: #8fa8d6;
    --off: rgba(243, 239, 230, 0.12);
    --stop: #f19a8b;
    --stop-bg: rgba(241, 154, 139, 0.08);
    --ev-fda: #8fd3a8; --ev-fda-bg: rgba(143, 211, 168, 0.12);
    --ev-trial: #8ccbe6; --ev-trial-bg: rgba(140, 203, 230, 0.12);
    --ev-human: #a9bfe6; --ev-human-bg: rgba(169, 191, 230, 0.12);
    --ev-animal: #e7bf85; --ev-animal-bg: rgba(231, 191, 133, 0.12);
    --ev-community: #d2b3e0; --ev-community-bg: rgba(210, 179, 224, 0.12);
    --page-wash:
      radial-gradient(ellipse 70% 36% at 100% -6%, rgba(166, 132, 86, 0.2), transparent 56%),
      radial-gradient(ellipse 60% 40% at 0% 30%, rgba(150, 170, 184, 0.08), transparent 52%);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--page-wash);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--metal); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-faint); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; background: var(--btn-bg); color: var(--btn-ink); z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.page { width: min(100% - 32px, 1040px); margin-inline: auto; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none;
}
.theme {
  min-height: 44px; min-width: 64px; padding: 0 16px;
  font: 500 0.9rem/1 var(--font); color: var(--ink);
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { padding: 4px 0 14px; }
.hero .eyebrow { margin-bottom: 8px; }
h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 11vw, 3.6rem);
  line-height: 0.95; letter-spacing: -0.035em;
}
.one { margin-top: 8px; font-size: 1.0625rem; line-height: 1.45; color: var(--ink-soft); max-width: 36em; }

/* status + evidence strip under the quick guide */
.trust {
  display: grid; gap: 6px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--metal) 55%, transparent);
}
.trust div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: baseline; }
.trust dt { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--metal-ink); }
.trust dd { margin: 0; }

/* ---------- quick glance ---------- */
.quick { display: grid; gap: 10px; }
.dose-card {
  position: relative; overflow: hidden;
  padding: 16px 18px 14px; border-radius: 24px;
  background: var(--dose-bg); color: var(--dose-ink);
  box-shadow: 0 24px 50px rgba(21, 36, 64, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.dose-card::before {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgba(233, 200, 143, 0.18), transparent); pointer-events: none;
}
.dose-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dose-label, .mix-label {
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mark);
}
.dose-label { line-height: 1.35; }
.dose-amount { margin-top: 8px; font-family: var(--display); font-size: 2.1rem; line-height: 1; letter-spacing: -0.02em; }
.dose-blend { margin-top: 4px; font-size: 1rem; line-height: 1.3; color: var(--dose-soft); }
.dose-units { display: flex; align-items: baseline; gap: 6px; text-align: right; }
.dose-units-n { font-family: var(--display); font-weight: 600; font-size: 4rem; line-height: 0.8; letter-spacing: -0.04em; color: var(--mark); }
.dose-units-u { font-size: 1rem; color: var(--dose-soft); }
.dose-mark { margin-top: 8px; font-size: 1rem; text-align: right; text-wrap: balance; color: var(--dose-ink); }
.dose-draw { font-size: 1rem; color: var(--dose-ink); }
.dose-draw strong { color: var(--mark); }
.dose-range { margin-top: 2px; font-size: 1rem; color: var(--dose-soft); }
.mix { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--dose-line); }
.mix-text { margin-top: 5px; font-size: 1rem; line-height: 1.45; color: var(--dose-soft); }
.mix-text strong { color: var(--dose-ink); font-weight: 600; }
.dose-note { margin-top: 10px; font-size: 1rem; color: var(--dose-soft); }
.dose-note a { color: var(--dose-ink); }
.dose-warn strong { color: var(--mark); }

/* syringe drawing */
.syringe { display: block; width: 100%; max-width: 440px; height: auto; margin: 8px 0 4px; overflow: visible; }
.sy-needle { stroke: var(--tick); stroke-width: 1.6; stroke-linecap: round; }
.sy-hub { fill: var(--hub); }
.sy-barrel { fill: var(--barrel); stroke: var(--barrel-edge); stroke-width: 1.2; }
.sy-liquid { fill: var(--liquid); opacity: 0.9; }
.sy-ticks line { stroke: var(--tick); stroke-width: 1; }
.sy-ticks text { fill: var(--dose-soft); font: 500 12px var(--mono); text-anchor: middle; }
.sy-stopper { fill: var(--stopper); stroke: var(--barrel-edge); stroke-width: 0.8; }
.sy-rod, .sy-thumb, .sy-flange { fill: var(--rod); }
.sy-mark { fill: var(--mark); }
.sy-mark-label { fill: var(--mark); font: 600 13px var(--mono); text-anchor: middle; }

/* tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  padding: 11px 13px 12px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.tile-label {
  display: flex; align-items: center; gap: 6px;
  font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--metal-ink);
}
.ico { width: 16px; height: 16px; flex: none; }
.tile-value { margin-top: 5px; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.tile-sub { margin-top: 2px; font-size: 1rem; line-height: 1.35; color: var(--ink-soft); }
.tile-dim { color: var(--ink-faint); font-weight: 400; }
.tile-cycle { grid-column: 1 / -1; }
.tile-cycle .tile-value { display: flex; flex-wrap: wrap; gap: 0 6px; }
.cycle-bar { display: flex; gap: 4px; height: 8px; margin-top: 10px; }
.cycle-bar span { border-radius: 4px; }
.cb-on { background: var(--on); }
.cb-off { background: repeating-linear-gradient(135deg, var(--off) 0 4px, transparent 4px 7px); border: 1px solid var(--line); }

/* ---------- jump nav ---------- */
.jump {
  position: sticky; top: 0; z-index: 20; margin: 22px -16px 4px; padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.jump ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
}
.jump a[aria-current="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }

/* ---------- sections ---------- */
.sec { border-bottom: 1px solid var(--line); }
.sec > summary {
  display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px;
  min-height: 44px; padding: 26px 0 14px; cursor: pointer; list-style: none;
}
.sec > summary::-webkit-details-marker { display: none; }
.sec-kicker { grid-column: 1; font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--metal-ink); }
.sec h2 { grid-column: 1; margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; }
.chev {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative;
}
.chev::after {
  content: ""; position: absolute; left: 13px; top: 11px; width: 8px; height: 8px;
  border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg);
  transition: transform 0.2s;
}
.sec:not([open]) .chev::after { transform: rotate(-45deg); left: 11px; top: 13px; }
.sec-body { padding-bottom: 28px; display: grid; gap: 14px; }
.lead { font-size: 1.0625rem; }
.note { font-size: 1rem; color: var(--ink-soft); }
.sub { font-family: var(--font); font-weight: 600; font-size: 1.0625rem; margin-top: 8px; }
.sub-first { margin-top: 0; }
.sub-stop { color: var(--stop); }
.sub-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 8px; }
.sub-row .sub { margin-top: 0; }

/* grouped list: one glass panel, hairline rows (iOS settings style) */
.group {
  display: block; border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
}
.group > li, .group > div { padding: 13px 16px; border-radius: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.group > li + li, .group > div + div { border-top: 1px solid var(--line) !important; }

.cites { white-space: nowrap; }
.cite {
  display: inline; margin-left: 3px; padding: 1px 6px; border-radius: 999px;
  font: 500 0.75rem/1 var(--mono); vertical-align: 2px; text-decoration: none;
  background: var(--well); color: var(--metal-ink);
}

/* evidence labels */
.ev {
  display: inline-block; flex: none; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.02em;
}
.ev-fda { color: var(--ev-fda); background: var(--ev-fda-bg); }
.ev-trial { color: var(--ev-trial); background: var(--ev-trial-bg); }
.ev-human { color: var(--ev-human); background: var(--ev-human-bg); }
.ev-animal { color: var(--ev-animal); background: var(--ev-animal-bg); }
.ev-community { color: var(--ev-community); background: var(--ev-community-bg); }

/* timeline, after the owner's "What to Expect" card */
.timeline {
  display: grid; gap: 12px; padding: 18px 18px 18px 20px; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
}
.timeline li { position: relative; padding-left: 20px; line-height: 1.45; color: var(--ink-soft); }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--on);
}
.timeline strong { font-weight: 600; color: var(--ink); }
.tl-fx::before { background: var(--hot) !important; }
.tl-more > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 500;
}
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tl-more > summary::after { content: "+"; font-weight: 400; color: var(--ink-faint); }
.tl-more[open] > summary::after { content: "–"; }
.tl-more dl { display: grid; gap: 10px; margin: 4px 0 0; }
.tl-more dt { font: 600 0.8125rem/1.4 var(--mono); letter-spacing: 0.04em; }
.tl-more dd { margin: 0; color: var(--ink-soft); }

/* cards and rows */
.cards { display: grid; gap: 10px; }
.card {
  padding: 15px 16px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
}
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.card h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; }
.card p { color: var(--ink-soft); }
.pair h3 a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 500; font-size: 1.35rem; }
.rows li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }

/* body maps */
.map { display: grid; gap: 14px; }
.map-fig {
  padding: 10px 6px 4px; border-radius: 22px;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--glass-strong), transparent 75%), var(--glass);
  border: 1px solid var(--glass-edge);
}
.bodymap { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.fig-edge { fill: none; stroke: var(--fig-edge, rgba(28, 25, 21, 0.12)); stroke-width: 1; }
html[data-theme="dark"] .fig-edge { stroke: rgba(243, 239, 230, 0.14); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .fig-edge { stroke: rgba(243, 239, 230, 0.14); } }
.leader { fill: none; stroke: var(--ink-faint); stroke-width: 1; }
.pill { fill: var(--pill-bg); stroke: var(--line); }
.pill-text { fill: var(--ink); font: 500 15px var(--font); text-anchor: middle; }
.map-cap { padding: 2px 12px 8px; text-align: center; font-size: 0.875rem; color: var(--ink-faint); }
.fig-shade { fill: none; stroke: var(--fig-shade); stroke-width: 16; }
.fig-lines { fill: none; stroke: var(--fig-line); stroke-width: 1.1; stroke-linecap: round; }
/* mechanism marks: numbered dots; the selected one glows and gets the callout */
.mk-zone { fill: var(--hot-glow); opacity: 0; transition: opacity 0.25s; }
.mk-dot { fill: var(--pill-bg); stroke: var(--hot); stroke-width: 1.6; transition: fill 0.2s; }
.mk-n { fill: var(--ink); font: 700 11.5px var(--font); text-anchor: middle; pointer-events: none; }
.mk .hot-ring { display: none; }
.mk.on .mk-zone { opacity: 1; }
.mk.on .mk-dot { fill: var(--mk-bg); stroke: var(--mk-bg); }
.mk.on .mk-n { fill: var(--mk-ink); }
.mk.on .hot-ring { display: inline; }
.co { display: none; }
.co.on { display: inline; }
.co .pill { filter: drop-shadow(0 4px 10px rgba(28, 25, 21, 0.14)); }
.hot-ring { fill: none; stroke: var(--hot); stroke-width: 1.2; opacity: 0.6; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hot-ring { animation: none; } html { scroll-behavior: auto; } }
.zone ellipse { fill: var(--zone); stroke: var(--zone-edge); stroke-width: 1.4; }
.zone circle { fill: var(--zone-edge); }
.zone-dashed ellipse { fill: none; stroke-dasharray: 4 4; }
.targets {
  border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
}
.targets li { padding: 4px 16px 12px; transition: background 0.2s; }
.targets li + li { border-top: 1px solid var(--line); }
.targets li.on { background: var(--well); }
.targets h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; }
.tg {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer;
}
.num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 700 0.75rem/1 var(--font); border: 1.6px solid var(--hot); background: var(--pill-bg);
}
.targets li.on .num { background: var(--mk-bg); border-color: var(--mk-bg); color: var(--mk-ink); }
.targets p { margin-top: -2px; padding-left: 34px; color: var(--ink-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); flex: none; box-shadow: 0 0 0 4px var(--hot-glow); }
.site-list .dot { background: var(--zone-edge); box-shadow: 0 0 0 4px var(--zone); }
.route { font-size: 1.0625rem; }
.site-list { display: grid; gap: 8px; margin: 10px 0; }
.site-list li { display: flex; align-items: center; gap: 10px; }

/* PK stats */
.stats { margin: 0; }
.stats div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: baseline; }
.stats dt { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--metal-ink); }
.stats dd { margin: 0; font-weight: 500; }
.pk-chart { margin: 0 0 18px; padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); }
.pk-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-soft); }
.pk-stats strong { color: var(--ink); font-weight: 600; }
.pk-svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.pk-svg text { font: 500 12.5px var(--font); fill: var(--ink-faint); }
.pk-y { text-anchor: end; }
.pk-x { text-anchor: middle; }
.pk-grid { fill: none; stroke: var(--line); stroke-dasharray: 3 4; }
.pk-axis { fill: none; stroke: var(--line); }
.pk-area { fill: var(--on); opacity: 0.1; }
.pk-line { fill: none; stroke: var(--on); stroke-width: 2.5; stroke-linejoin: round; }
.pk-hl-line { fill: none; stroke: var(--hot); stroke-dasharray: 3 3; }
.pk-peak, .pk-key-peak { fill: var(--ev-fda); background: var(--ev-fda); }
.pk-hl, .pk-key-hl { fill: var(--hot); background: var(--hot); }
.pk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-soft); }
.pk-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }
.pk-est { margin-left: auto; font: 500 0.75rem/1.3 var(--mono); color: var(--ink-faint); }

/* dosing */
.ladder { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.rung { padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); }
.rung-main { background: var(--dose-bg); color: var(--dose-ink); border-color: transparent; }
.rung-tag { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--metal-ink); }
.rung-main .rung-tag { color: var(--mark); }
.rung-dose { margin-top: 6px; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.rung-units { margin-top: 2px; font-size: 1rem; color: var(--ink-soft); }
.rung-main .rung-units { color: var(--dose-soft); }
.rung-mark { margin-top: 4px; font-size: 0.875rem; line-height: 1.3; color: var(--ink-soft); }
.rung-main .rung-mark { color: var(--dose-soft); }
.protos p { color: var(--ink-soft); }
.proto-ctx { margin-bottom: 2px; color: var(--metal-ink) !important; font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.02em; }
.proto-dose { color: var(--ink) !important; font-family: var(--display); font-size: 1.25rem; }
.callout-note { padding: 14px 16px; border-radius: 16px; background: var(--well); color: var(--ink); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.table td + td { white-space: nowrap; } /* "37.5 units" stays on one line */
.table th { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--metal-ink); }
.step-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--well); color: var(--ink); font: 500 0.75rem/1.5 var(--mono); white-space: nowrap; }

/* cycling weeks */
.weeks { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 5px; }
.weeks li {
  display: grid; place-items: center; height: 40px; border-radius: 10px;
  font: 500 0.8125rem/1 var(--mono);
}
.wk-on { background: var(--on); color: #f6f1e8; }
html[data-theme="dark"] .wk-on { color: #0e0f12; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .wk-on { color: #0e0f12; } }
.wk-off { color: var(--ink-soft); border: 1px dashed var(--ink-faint); background: repeating-linear-gradient(135deg, var(--off) 0 4px, transparent 4px 8px); }
.weeks-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1rem; color: var(--ink-soft); }
.key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.key-on { background: var(--on); }
.key-off { border: 1px dashed var(--ink-faint); }

/* side effects */
.fx { display: grid; gap: 8px; }
.fx li { padding: 13px 15px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); }
.fx li p + p { margin-top: 4px; color: var(--ink-soft); }
.fx-effect { font-weight: 600; }
.group-stop { background: var(--stop-bg); border-color: color-mix(in srgb, var(--stop) 35%, transparent); box-shadow: none; }
.fx-serious .fx-effect { color: var(--stop); }
.fx-do-label { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--metal-ink); margin-right: 4px; }
.avoid { display: grid; gap: 6px; }
.avoid li { position: relative; padding-left: 22px; }
.avoid li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 2px; background: var(--stop); }

/* drawing steps */
.draw-syringe {
  padding: 8px 14px 14px; border-radius: 18px; background: var(--dose-bg); color: var(--dose-soft);
}
.draw-syringe strong { color: var(--mark); }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 600 0.8125rem/1 var(--mono); background: var(--btn-bg); color: var(--btn-ink);
}

/* references */
.videos { display: grid; gap: 8px; }
.video {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; min-height: 44px;
  padding: 8px; border-radius: 16px; text-decoration: none; background: var(--glass); border: 1px solid var(--glass-edge);
}
.video img { width: 112px; height: 63px; object-fit: cover; border-radius: 10px; background: var(--well); }
.video-title { display: block; font-weight: 500; line-height: 1.35; }
.video-meta { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--ink-faint); }
.sources { display: grid; gap: 2px; }
.sources li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 6px 0; scroll-margin-top: 80px; }
.sources li:target { background: var(--well); border-radius: 10px; }
.src-n { font: 600 0.8125rem/1.9 var(--mono); color: var(--metal-ink); text-align: right; }
.sources a { display: inline; line-height: 1.6; }
.src-kind { display: block; font-size: 0.875rem; color: var(--ink-faint); }
.links { display: grid; gap: 6px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }

/* footer */
.foot { padding: 26px 0 48px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 1rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--font); background: var(--btn-bg); color: var(--btn-ink);
}

/* shared mono eyebrow */
.eyebrow { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--metal-ink); }

/* ---------- disclaimer step: sits under the name, guide hidden until agreed ---------- */
html:not(.gate-done) main > :not(.hero, .gate),
html:not(.gate-done) .foot { display: none; }
html.gate-done .gate, .gate[hidden] { display: none; }
/* One glass card sized to the first phone screen; the five parts scroll inside it. */
.gate {
  margin-bottom: 40px; padding: 18px 16px 16px; border-radius: 24px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
}
.gate-eyebrow { display: flex; align-items: center; gap: 8px; }
.gate-eyebrow .ico { width: 16px; height: 16px; flex: none; }
.gate-title { margin-top: 8px; font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.05; letter-spacing: -0.03em; }
.gate-intro { margin-top: 6px; color: var(--ink-soft); line-height: 1.45; }
.gate-body {
  margin: 12px 0 14px; padding: 14px; border-radius: 16px; overflow-y: auto; overscroll-behavior: contain;
  height: clamp(170px, calc(100svh - 550px), 340px);
  background: var(--well); border: 1px solid var(--line);
  font-size: 1rem; line-height: 1.5; color: var(--ink-soft);
}
/* More to read: an inner shadow along the bottom edge (painted under the text, so it never dims it) and a hint line. */
.gate-body.more { box-shadow: inset 0 -22px 16px -14px var(--cue); }
.gate-hint { margin: -6px 0 2px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.gate-body:not(.more) + .gate-hint { visibility: hidden; }
.gate-body:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gate-section + .gate-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.gate-section h3 {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font: 600 0.8125rem/1.3 var(--mono); letter-spacing: 0.05em; color: var(--ink);
}
.gate-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; background: var(--well); color: var(--metal-ink);
}
.gate-section p + p, .gate-section ul + p, .gate-section p + ul { margin-top: 6px; }
.gate-section ul { list-style: disc; padding-left: 20px; }
.gate-form { display: grid; gap: 12px; }
.gate-form .gate-body { margin: 12px 0 0; }
.gate-check { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; min-height: 44px; cursor: pointer; font-size: 1rem; line-height: 1.4; }
.gate-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--btn-bg); }
.gate .btn { width: 100%; min-height: 52px; margin-top: 14px; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .hero { padding: 28px 0 22px; }
  .quick { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 16px; }
  .dose-card { padding: 24px; }
  .map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .sec-body { max-width: 900px; }
  .jump { margin-inline: 0; border-radius: 0 0 16px 16px; }
  .gate { max-width: 720px; padding: 24px; }
  .gate-body { height: clamp(220px, calc(100svh - 560px), 360px); }
}
