@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url(fonts/dm-sans.woff2) format("woff2")}@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4.woff2) format("woff2")}@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4-italic.woff2) format("woff2")}
/* The Weight Loss Atlas. Portable styles: no hard-coded domain, system font fallbacks. */
/* Palette: white page, ice-blue panels, sapphire as the one accent. Token names are kept from earlier versions. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf3fa;
  --ink: #0f1b2d;
  --muted: #506178;
  --line: #d6e0ec;
  --teal: #1b4f9c;
  --teal-ink: #133b78;
  --teal-wash: #e3ecf8;
  --ok: #177a52;
  --ok-wash: #e2f3eb;
  --inv: #4f5488;
  --inv-wash: #e9eaf6;
  --saffron: #d99a14;
  --saffron-wash: #fcefd2;
  --saffron-ink: #7a4f00;
  --danger-wash: #fbe9e7;
  --danger-ink: #8a2c20;
  --bar-drug: #1b4f9c;
  --bar-placebo: #9aa8b6;
  --contour: #1b4f9c;
  --focus: #c98a0a;
  --panel-1: #edf3fa;
  --panel-2: #dde8f5;
  --on-panel: #0f1b2d;
  --on-panel-strong: #0f1b2d;
  --on-panel-muted: #506178;
  --panel-line: rgba(15, 27, 45, .14);
  --panel-fill: rgba(255, 255, 255, .72);
  --panel-mark: rgba(15, 27, 45, .55);
  --panel-btn-bg: #1b4f9c;
  --panel-btn-bg-hover: #133b78;
  --panel-btn-ink: #ffffff;
  --panel-big: #133b78;
  --ghost-line: rgba(15, 27, 45, .28);
  --fill-on: #1b4f9c;
  --hero-bg: radial-gradient(44rem 32rem at 82% 40%, rgba(27, 79, 156, .10), transparent 70%), linear-gradient(180deg, #edf3fa 0%, #f6f9fd 70%, #ffffff 100%);
  --halo: #edf3fa;
  --pin-bg: #ffffff;
  --pin-ink: #0f1b2d;
  --pin-shadow: 0 8px 18px -10px rgba(15, 27, 45, .45);
  --pin-hover-bg: #1b4f9c;
  --pin-hover-ink: #ffffff;
  --dot-ok: #177a52;
  --readout-bg: rgba(255, 255, 255, .92);
  --band: #133b78;
  --on-band: #ffffff;
  --on-band-muted: #bcd0ea;
  --foot-bg: #edf3fa;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 26px -14px rgba(15, 27, 45, .22);
  --shadow-lg: 0 2px 4px rgba(15, 27, 45, .06), 0 22px 44px -18px rgba(15, 27, 45, .32);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --header-h: 4.2rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09121f; --surface: #101d31; --surface-2: #162842;
    --ink: #e8eff9; --muted: #a5b6cc; --line: #24395a;
    --teal: #7fb0f0; --teal-ink: #a9cbf8; --teal-wash: #172c4d; --focus: #f0b94a;
    --ok: #62d3a2; --ok-wash: #11342a; --inv: #b4b8ec; --inv-wash: #25284d;
    --saffron: #f0b94a; --saffron-wash: #3a2e10; --saffron-ink: #f6d58b;
    --danger-wash: #3b1d1a; --danger-ink: #f4b4aa;
    --bar-drug: #7fb0f0; --bar-placebo: #6f8399; --contour: #7fb0f0;
    --panel-1: #0d1a2e; --panel-2: #142a4a; --on-panel: #e8eff9; --on-panel-strong: #ffffff; --on-panel-muted: #b5c7dc; --panel-line: rgba(255, 255, 255, .16); --panel-fill: rgba(255, 255, 255, .05); --panel-mark: rgba(255, 255, 255, .55);
    --panel-btn-bg: #7fb0f0; --panel-btn-bg-hover: #a9cbf8; --panel-btn-ink: #06142a; --panel-big: #a9cbf8; --ghost-line: rgba(255, 255, 255, .3); --fill-on: #7fb0f0;
    --hero-bg: linear-gradient(180deg, #0d1a2e 0%, #09121f 100%); --halo: #0d1a2e;
    --pin-bg: rgba(10, 24, 46, .9); --pin-ink: #e8eff9; --pin-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); --pin-hover-bg: #ffffff; --pin-hover-ink: #0f1b2d; --dot-ok: #62d3a2; --readout-bg: rgba(10, 24, 46, .7);
    --band: #0d2347; --on-band: #ffffff; --on-band-muted: #b5c7dc; --foot-bg: #0d1a2e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 26px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 22px 44px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09121f; --surface: #101d31; --surface-2: #162842;
  --ink: #e8eff9; --muted: #a5b6cc; --line: #24395a;
  --teal: #7fb0f0; --teal-ink: #a9cbf8; --teal-wash: #172c4d; --focus: #f0b94a;
  --ok: #62d3a2; --ok-wash: #11342a; --inv: #b4b8ec; --inv-wash: #25284d;
  --saffron: #f0b94a; --saffron-wash: #3a2e10; --saffron-ink: #f6d58b;
  --danger-wash: #3b1d1a; --danger-ink: #f4b4aa;
  --bar-drug: #7fb0f0; --bar-placebo: #6f8399; --contour: #7fb0f0;
  --panel-1: #0d1a2e; --panel-2: #142a4a; --on-panel: #e8eff9; --on-panel-strong: #ffffff; --on-panel-muted: #b5c7dc; --panel-line: rgba(255, 255, 255, .16); --panel-fill: rgba(255, 255, 255, .05); --panel-mark: rgba(255, 255, 255, .55);
  --panel-btn-bg: #7fb0f0; --panel-btn-bg-hover: #a9cbf8; --panel-btn-ink: #06142a; --panel-big: #a9cbf8; --ghost-line: rgba(255, 255, 255, .3); --fill-on: #7fb0f0;
  --hero-bg: linear-gradient(180deg, #0d1a2e 0%, #09121f 100%); --halo: #0d1a2e;
  --pin-bg: rgba(10, 24, 46, .9); --pin-ink: #e8eff9; --pin-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); --pin-hover-bg: #ffffff; --pin-hover-ink: #0f1b2d; --dot-ok: #62d3a2; --readout-bg: rgba(10, 24, 46, .7);
  --band: #0d2347; --on-band: #ffffff; --on-band-muted: #b5c7dc; --foot-bg: #0d1a2e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 26px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 22px 44px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 40; }
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 500; letter-spacing: -.018em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header */
.site-header { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: .6rem; min-height: var(--header-h); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand svg { flex: none; }
.nav { display: flex; gap: .15rem; align-items: center; }
.nav-link, .nav-trigger { color: var(--ink); text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font: inherit; font-weight: 500; font-size: .98rem; background: none; border: 0; cursor: pointer; line-height: 1.2; }
.nav-link:hover, .nav-trigger:hover, .nav-group.open .nav-trigger { background: var(--surface-2); }
.nav-link[aria-current="page"], .nav-group.is-current .nav-trigger { color: var(--teal-ink); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 8px 8px 0 0; }
.nav-trigger::after { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-left: .45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-.18rem) rotate(45deg); opacity: .7; }
.nav-group { position: relative; }
.nav-menu { display: none; position: absolute; left: -.4rem; top: 100%; min-width: 19.5rem; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 40; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu { display: grid; gap: .1rem; }
.nav-menu a { display: grid; gap: .05rem; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu a[aria-current="page"] { background: var(--teal-wash); }
.nm-t { font-weight: 600; font-size: .98rem; }
.nm-d { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.nav-cta { margin-left: .5rem; background: var(--teal); color: #fff; text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .96rem; white-space: nowrap; }
:root[data-theme="dark"] .nav-cta { color: #06142a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-cta { color: #06142a; } }
.nav-cta:hover { filter: brightness(1.1); }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px var(--teal-wash); }
.icon-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); width: 2.5rem; height: 2.5rem; border-radius: 999px; cursor: pointer; font: inherit; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); bottom: 0; flex-direction: column; align-items: stretch; gap: .2rem; overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); padding: .8rem max(16px, env(safe-area-inset-left, 0px)) 2rem; }
  .nav.open { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav-link { padding: .9rem .6rem; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none !important; }
  .nav-group { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
  .nav-trigger { display: block; width: 100%; text-align: left; padding: .9rem .6rem .3rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); pointer-events: none; box-shadow: none !important; }
  .nav-trigger::after { display: none; }
  .nav-menu, .nav-group:hover .nav-menu { display: grid; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .nav-menu::before { display: none; }
  .nav-menu a { padding: .65rem .6rem; }
  .nav-cta { margin: .8rem 0 0; text-align: center; padding: .85rem 1rem; font-size: 1.05rem; }
}

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-panel); background: var(--hero-bg); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4.5rem, 8vw, 6.5rem); margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero h1 { max-width: 15ch; color: var(--on-panel-strong); }
.hero .lede { color: var(--on-panel-muted); }

/* hero atlas map */
.hero-inner { display: grid; gap: 2.2rem; align-items: center; }
.hero-copy { min-width: 0; }
.atlas-map { min-width: 0; width: 100%; max-width: 38rem; margin-inline: auto; }
.am-stage { position: relative; aspect-ratio: 640 / 580; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.map-svg path { fill: none; stroke: var(--contour); stroke-width: 1.1; }
.map-svg .map-rings { opacity: .2; }
.map-svg .zone { stroke: var(--saffron); stroke-width: 1.8; stroke-dasharray: 7 6; opacity: .95; }
.map-svg .zone-label { fill: var(--on-panel-muted); font: 600 13.5px/1 var(--sans); paint-order: stroke; stroke: var(--halo); stroke-width: 7px; stroke-linejoin: round; }
.am-group, .am-pins { display: contents; margin: 0; padding: 0; list-style: none; }
.am-zone { display: none; }
.am-pins li { position: absolute; transform: translate(-50%, -50%); margin: 0; }
.am-pin { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .8rem .42rem .65rem; border-radius: 999px; background: var(--pin-bg); border: 1px solid var(--panel-line); color: var(--pin-ink); font-weight: 600; font-size: .83rem; line-height: 1.1; text-decoration: none; white-space: nowrap; box-shadow: var(--pin-shadow); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.am-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; background: var(--dot-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-ok) 24%, transparent); }
.am-pin[data-zone="under-review"] .am-dot { background: var(--saffron); box-shadow: 0 0 0 3px rgba(224, 162, 27, .25); }
.am-pin[data-zone="investigational"] .am-dot { background: transparent; border: 2px solid var(--pin-ink); box-shadow: none; }
.am-pin:hover, .am-pin.is-on { background: var(--pin-hover-bg); color: var(--pin-hover-ink); border-color: var(--pin-hover-bg); transform: scale(1.05); }
.am-pin:hover .am-dot, .am-pin.is-on .am-dot { background: var(--pin-hover-ink); box-shadow: none; border-color: var(--pin-hover-ink); }
.am-pin:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.am-readout { min-height: 8.6rem; margin-top: .6rem; padding: .9rem 1.1rem; border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--readout-bg); box-shadow: var(--shadow); }
.am-readout h2 { margin: 0 0 .15rem; font-size: 1.25rem; color: var(--on-panel-strong); }
.am-readout h2 a { color: inherit; text-decoration: none; }
.am-readout h2 a:hover { text-decoration: underline; }
.am-readout .am-meta { margin: 0 0 .45rem; font-size: .88rem; color: var(--saffron-ink); font-weight: 600; }
.am-readout p { margin: 0; color: var(--on-panel-muted); font-size: .93rem; line-height: 1.45; }
.am-readout .am-go { display: inline-block; margin-top: .55rem; color: var(--teal-ink); font-weight: 600; font-size: .92rem; }
.am-readout .am-hint { color: var(--on-panel-muted); }
.am-foot { margin: .5rem 0 0; font-size: .88rem; color: var(--on-panel-muted); }
.am-foot a { color: var(--teal-ink); }
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); gap: 2rem; }
}
@media (max-width: 979px) {
  .map-svg, .am-readout { display: none; }
  .atlas-map { max-width: none; margin-top: .4rem; }
  .am-stage { aspect-ratio: auto; display: grid; gap: 1.1rem; }
  .am-group, .am-pins { display: block; }
  .am-zone { display: block; margin: 0 0 .5rem; font-size: .88rem; font-weight: 600; color: var(--on-panel-muted); }
  .am-pins { display: flex; flex-wrap: wrap; gap: .5rem; }
  .am-pins li { position: static; transform: none; left: auto !important; top: auto !important; }
  .am-pin { padding: .6rem .95rem .6rem .75rem; font-size: .95rem; }
  .am-pin:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .am-pin { transition: none; } .am-pin:hover, .am-pin.is-on { transform: none; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #06142a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06142a; } }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.hero .btn-primary { background: var(--panel-btn-bg); color: var(--panel-btn-ink); }
.hero .btn-primary:hover { background: var(--panel-btn-bg-hover); filter: none; }
.hero .btn-ghost { color: var(--on-panel-strong); border-color: var(--ghost-line); }
.hero .btn-ghost:hover { background: var(--panel-fill); }
.hero .find label { color: var(--on-panel-strong); }
.hero .find .search { border: 1px solid var(--line); box-shadow: 0 12px 30px -16px rgba(10, 35, 66, .35); }
.hero .find-results li { border-color: var(--line); }

/* the Atlas in numbers */
.statbar { position: relative; z-index: 2; margin-top: -3.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 1.2rem 1.4rem; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat dt { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums; }
.stat dd { margin: .45rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
section.block { padding-block: clamp(1.4rem, 4vw, 2.6rem); }
.page-head { padding-block: clamp(2rem, 5vw, 3.4rem) 1.2rem; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 24ch; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card-link:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); }
a.card-link .go { color: var(--teal-ink); font-weight: 600; }

/* journey navigator */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45rem .95rem; font: inherit; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.js .journey[hidden] { display: none; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .84rem; font-weight: 600; line-height: 1.4; border: 1px solid transparent; max-width: 100%; }
.badge::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.b-approved { background: var(--teal-wash); color: var(--teal-ink); }
.b-other { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.b-review { background: var(--saffron-wash); color: var(--saffron-ink); }
.b-invest { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.v-pubmed { background: var(--teal-wash); color: var(--teal-ink); }
.v-verified { background: var(--teal-wash); color: var(--teal-ink); border-color: currentColor; font-weight: 700; }
.v-secondary, .v-pending { background: var(--saffron-wash); color: var(--saffron-ink); }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }

/* callouts */
.note { border-left: 4px solid var(--saffron); background: var(--saffron-wash); color: var(--ink); padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.2rem 0; }
.note strong { color: var(--saffron-ink); }
.note p:last-child { margin-bottom: 0; }
.note.info { border-color: var(--teal); background: var(--teal-wash); }
.note.info strong { color: var(--teal-ink); }

/* tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 1rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; padding: .7rem .85rem; font-weight: 600; caption-side: top; }

/* library */
.toolbar { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.search { width: 100%; font: inherit; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.result-count { color: var(--muted); font-size: .95rem; }
.med-card h3 a { color: var(--ink); text-decoration: none; }
.med-card h3 a:hover { text-decoration: underline; }
.med-card .aliases { color: var(--muted); font-size: .9rem; }
.med-card[hidden] { display: none; }

/* bars */
.bars { list-style: none; margin: .6rem 0 1rem; padding: 0; display: grid; gap: .7rem; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; align-items: center; }
.bars .bl { grid-column: 1 / -1; font-size: .94rem; }
.bars .track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bars .bar { display: block; height: 100%; width: var(--w); background: var(--bar-drug); border-radius: 999px; }
.bars .placebo .bar { background: var(--bar-placebo); }
.bars .bv { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5ch; text-align: right; }
.axis-note { font-size: .85rem; color: var(--muted); }

/* guide layout */
.guide { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .guide { grid-template-columns: 270px 1fr; } }
.chapter-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.4rem); align-self: start; }
@media (max-width: 899px) { .chapter-nav { position: static; } }
.chapter-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.chapter-nav a { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .4rem; padding: .45rem .5rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.chapter-nav a:hover { background: var(--surface-2); }
.chapter-nav a.active { background: var(--teal-wash); color: var(--teal-ink); }
.chapter-nav .done { color: var(--teal-ink); font-weight: 700; visibility: hidden; }
.chapter-nav .done.on { visibility: visible; }
.chapter-nav .soon { color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .5rem 0 1rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.chapter { padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.chapter:first-of-type { border-top: 0; padding-top: 0; }
.chapter h2 { margin-bottom: .3em; }
.chapter .meta { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-top: 1.2rem; }
.takeaways h3 { font-family: var(--sans); font-size: 1rem; margin-bottom: .4rem; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.read-btn { margin-top: 1rem; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); }
.outline-list { color: var(--muted); }

/* glossary popover */
button.gl { font: inherit; color: var(--teal-ink); background: none; border: 0; border-bottom: 1.5px dotted var(--teal); padding: 0; cursor: help; }
.pop { position: absolute; z-index: 60; max-width: min(320px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); padding: .8rem 1rem; border-radius: 10px; font-size: .94rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.pop strong { display: block; margin-bottom: .2rem; }
dl.terms dt { font-weight: 600; margin-top: .8rem; }
dl.terms dd { margin: 0; color: var(--muted); max-width: 68ch; }

/* tools */
.tool { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .tool { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .field legend { font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.input { font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
select.input { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg label { padding: .45rem 1rem; cursor: pointer; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { font-weight: 700; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: -3px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); min-height: 9rem; }
.result .big { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1; margin: .2rem 0 .5rem; }
.result .err { color: var(--danger-ink); background: var(--danger-wash); padding: .6rem .8rem; border-radius: 8px; }
.scale { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: .8rem 0 .3rem; background: var(--surface-2); }
.scale i { flex: 1; border-right: 2px solid var(--surface); }
.scale i.on { background: var(--teal); }
.scale i:last-child { border-right: 0; }

/* compare */
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; margin-bottom: 1rem; }
.cmp td:first-child, .cmp th:first-child { position: sticky; left: 0; background: var(--surface-2); font-weight: 600; min-width: 8rem; }
.cmp td:first-child { background: var(--surface); }

/* footer */
.site-footer { margin-top: 4rem; background: var(--foot-bg); border-top: 1px solid var(--line); color: var(--on-panel-muted); font-size: .95rem; padding-block: 3rem 2.4rem; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.site-footer a { color: var(--on-panel); text-decoration-color: var(--panel-line); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer .brand { color: var(--on-panel-strong); margin-bottom: .8rem; }
.site-footer .brand svg { color: var(--on-panel-strong); }
.site-footer h2 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-panel-strong); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer p { max-width: 38ch; }
.foot-legal { margin: 2.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--panel-line); font-size: .86rem; max-width: 80ch !important; }

details.faq { border-top: 1px solid var(--line); padding: .9rem 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details.faq p { margin-top: .6rem; color: var(--muted); }

.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: .55rem; }
.kind { color: var(--muted); font-size: .85rem; }

@media print {
  .site-header, .site-footer, .chapter-nav, .cta-row, .menu-btn, .no-print, body::before { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .card, .result { box-shadow: none; }
}

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: .5rem 0 1rem; font-size: .96rem; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; color: var(--muted); min-width: 0; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: .6rem; } }
.block h2 { margin-top: 0; }

@media (max-width: 640px) {
  }
a.chip { display: inline-flex; text-decoration: none; }

/* brand-aware search */
.find { display: none; max-width: 34rem; margin-top: 1.4rem; }
.js .find { display: block; }
.find label { display: block; font-weight: 600; margin-bottom: .35rem; }
.find-results { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.find-results li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.find-results a { display: block; padding: .6rem .8rem; color: var(--ink); text-decoration: none; }
.find-results a:hover { background: var(--surface-2); }
.find-results span { color: var(--muted); font-size: .92rem; }
.find-results li.muted { padding: .6rem .8rem; }
.med-card .brands { margin: 0 0 .5rem; font-weight: 600; }
.med-card .brands a { color: var(--teal-ink); }
.cmp td { min-width: 12rem; }

/* Space between a status badge row and the heading that follows it */
.badge-row + h2, .badge-row + h3 { margin-top: 1.75rem; }

/* Companion tools box on the home page (Ask + calculator). Navy in both themes. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.companion { padding-block: 2rem 1rem; }
.companion-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 860px) { .companion-grid { grid-template-columns: minmax(0, 1fr); } }
.co-card { color: var(--on-panel); background: linear-gradient(135deg, var(--panel-1) 0%, var(--panel-2) 100%); border-radius: 18px; padding: 1.5rem 1.6rem 1.3rem; box-shadow: var(--shadow-lg); min-width: 0; border: 1px solid var(--panel-line); }
.co-label { margin: 0 0 .9rem; font-weight: 600; font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; color: var(--on-panel-muted); }
.co-form { display: flex; gap: .6rem; }
.co-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; font: inherit; font-size: 1.02rem; color: #10233a; background: #fff; }
.co-form input::placeholder { color: #5d6b7c; }
.co-form button, .co-btn { border: 0; cursor: pointer; border-radius: 10px; background: var(--panel-btn-bg); color: var(--panel-btn-ink); font: inherit; font-weight: 700; padding: .85rem 1.5rem; text-decoration: none; display: inline-block; }
.co-form button:hover, .co-btn:hover { background: var(--panel-btn-bg-hover); }
.co-card a:focus-visible, .co-card button:focus-visible, .co-card input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.co-try { margin: 1rem 0 .25rem; color: var(--on-panel-muted); }
.co-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.co-examples a { color: var(--teal-ink); text-underline-offset: 3px; }
.co-note { margin: 1rem 0 0; font-size: .86rem; color: var(--on-panel-muted); }
.co-calc { display: flex; flex-direction: column; align-items: flex-start; }
.co-calc-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.co-calc-head h3 { margin: 0 0 .35rem; color: var(--on-panel-strong); font-size: 1.3rem; }
.co-calc-head p { margin: 0; color: var(--on-panel); }
.co-icon { flex: none; color: var(--teal); }

/* reconstitution calculator + ask page */
.pair{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:center}
.pair select.input{min-width:5.5rem}
.pair .unit{padding:0 .9rem;color:var(--muted);font-weight:600}
.recon-dl{display:grid;grid-template-columns:minmax(0,max-content) 1fr;gap:.35rem 1rem;margin:1rem 0}
.recon-dl dt{color:var(--muted)}
.recon-dl dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.terms dt{font-weight:700;margin-top:.8rem}
.terms dd{margin:.15rem 0 0}
.ask-box{border:1px solid var(--line);border-radius:14px;padding:1.2rem;background:var(--surface)}
.ask-form label{font-weight:600;display:block;margin-bottom:.4rem}
.ask-row{display:flex;gap:.6rem;flex-wrap:wrap}
.ask-row .input{flex:1 1 16rem;min-width:0}
.ask-examples{display:flex;flex-wrap:wrap;gap:.6rem;padding:0;list-style:none}
.ask-examples a{display:inline-block;padding:.5rem .9rem;border:1px solid var(--line);border-radius:999px;text-decoration:none}

/* pipeline tracker */
.pl-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.8rem;margin:0 0 1.4rem;padding:0}
.pl-stat{border:1px solid var(--line);border-radius:12px;padding:.9rem 1rem;background:var(--surface);display:flex;flex-direction:column;gap:.15rem}
.pl-stat strong{font-family:var(--serif,Georgia,serif);font-size:1.9rem;line-height:1.1}
.pl-stat span{color:var(--muted);font-size:.92rem}
.pl-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.8rem 1rem;align-items:end;margin:1rem 0}
.pl-filters .pl-wide{grid-column:1/-1}
.pl-filters .field{margin:0}
.pl-table th,.pl-table td{vertical-align:top}
.pl-trials td:nth-child(2){min-width:18rem}
.linklike{background:none;border:0;padding:0;color:var(--link,var(--accent,#0e7c7b));text-decoration:underline;cursor:pointer;font:inherit}
.badge-combo{background:#e9f4f3;color:#0b5f5e}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge-combo{background:#12383a;color:#8fd9d6}}
:root[data-theme="dark"] .badge-combo{background:#12383a;color:#8fd9d6}
@media (max-width:700px){
  .pl-trials thead{position:absolute;left:-9999px}
  .pl-trials tr{display:block;border:1px solid var(--line);border-radius:10px;margin:0 0 .8rem;padding:.6rem .8rem;background:var(--surface)}
  .pl-trials td{display:flex;gap:.6rem;justify-content:space-between;padding:.25rem 0;border:0}
  .pl-trials td::before{content:attr(data-l);color:var(--muted);flex:0 0 5.5rem}
  .pl-trials td:nth-child(2){min-width:0;display:block}
  .pl-trials td:nth-child(2)::before{display:block}
}

/* reconstitution calculator */
.rc { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 1.5rem; }
.rc-head { color: var(--on-panel); background: linear-gradient(120deg, var(--panel-1) 0%, var(--panel-2) 100%); border-bottom: 1px solid var(--panel-line); padding: 1.35rem 1.6rem 1.25rem; }
.rc-head p { margin: 0; max-width: none; }
.rc-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-panel-muted); }
.rc-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 500; line-height: 1.15; margin-top: .25rem !important; }
.rc-spec { margin-top: .6rem !important; padding-top: .7rem; border-top: 1px solid var(--panel-line); font-size: .86rem; color: var(--on-panel-muted); }
.rc-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rc-tab { font: inherit; font-weight: 600; font-size: 1rem; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 1rem .8rem; cursor: pointer; }
.rc-tab:hover { color: var(--ink); }
.rc-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); border-bottom-color: var(--teal); }
.rc-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 880px) { .rc-main { grid-template-columns: minmax(0, 1fr); } }
.rc-form { padding: 1.5rem 1.6rem 1.2rem; display: grid; gap: 1.15rem; align-content: start; min-width: 0; }
.rc-help { margin: 0; color: var(--muted); font-size: .96rem; }
.rc-field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .5rem; }
.rc-field[hidden] { display: none; }
.rc-label { font-weight: 600; font-size: .95rem; padding: 0; }
.rc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rc-chip { font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .28rem .8rem; cursor: pointer; }
.rc-chip:hover { border-color: var(--teal); background: var(--teal-wash); }
.rc-other { font-style: italic; color: var(--muted); }
.rc-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: stretch; }
.rc-input { font: inherit; font-size: 1.3rem; font-variant-numeric: tabular-nums; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.rc-input::placeholder { color: var(--muted); opacity: .75; font-size: .98rem; }
.rc-input:focus { border-color: var(--teal); background: var(--surface); outline: 3px solid var(--teal-wash); outline-offset: 0; }
.seg2 { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.seg2-opt { position: relative; display: flex; flex: 1 1 0; }
.seg2-opt input { position: absolute; opacity: 0; pointer-events: none; inset: 0; }
.seg2-opt span, .seg2-static { display: flex; align-items: center; justify-content: center; width: 100%; padding: .65rem 1rem; font-weight: 600; font-size: .98rem; color: var(--muted); cursor: pointer; text-align: center; line-height: 1.25; }
.seg2-opt + .seg2-opt span { border-left: 1px solid var(--line); }
.seg2-opt input:checked + span { background: var(--fill-on); color: #fff; }
.seg2-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.seg2-static { background: var(--fill-on); color: #fff; cursor: default; min-width: 4.4rem; }
.seg2 small { font-weight: 400; opacity: .8; margin-left: .35rem; }
#rc-compound, .seg2.barrel { display: flex; width: 100%; }
.seg2.barrel .seg2-opt span { flex-wrap: wrap; gap: 0 .3rem; padding-inline: .5rem; }
@media (max-width: 480px) { .seg2.barrel small { display: block; margin-left: 0; width: 100%; } }
.rc-out { background: linear-gradient(160deg, var(--panel-1) 0%, var(--panel-2) 100%); color: var(--on-panel); padding: 1.5rem 1.6rem 1.3rem; display: grid; gap: 1.2rem; align-content: start; min-width: 0; }
.rc-result p { margin: 0; max-width: none; }
.rc-empty { color: var(--on-panel-muted); }
.rc-kick { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-panel-muted); }
.rc-result .big { font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 500; line-height: 1; margin: .3rem 0 .4rem; color: var(--panel-big); font-variant-numeric: lining-nums; }
.big-u { font-family: var(--sans); font-size: 1.3rem; font-weight: 500; color: var(--on-panel-muted); margin-left: .15rem; }
.rc-sub { color: var(--on-panel-muted); font-variant-numeric: tabular-nums; }
.rc-line { margin-top: .6rem !important; padding-top: .9rem; border-top: 1px solid var(--panel-line); font-size: 1.04rem; line-height: 1.5; }
.rc-err, .rc-warn { padding: .6rem .8rem; border-radius: 8px; font-size: .94rem; margin-top: .7rem !important; }
.rc-err { background: #fbe9e7; color: #8a2c20; }
.rc-warn { background: #fdf1d3; color: #6b4700; }
.syringe { display: block; width: 100%; max-width: 440px; height: auto; margin: .9rem 0 .4rem; }
.sy-metal { fill: var(--panel-mark); }
.sy-barrel { fill: var(--panel-fill); stroke: var(--panel-mark); stroke-width: 1; }
.sy-fill { fill: #4ea2e4; opacity: .85; }
.sy-tick { stroke: var(--panel-mark); stroke-width: .8; }
.sy-major { stroke: var(--on-panel-strong); stroke-width: 1.4; }
.sy-label { fill: var(--on-panel-muted); font: 11px var(--sans); }
.sy-plunger { fill: var(--surface); stroke: var(--panel-mark); stroke-width: 1; }
.sy-rod { fill: var(--panel-mark); }
.rc-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--panel-line); border-radius: 12px; overflow: hidden; background: var(--panel-fill); }
.rc-stats[hidden] { display: none; }
.rc-stat { padding: .8rem 1rem; border-bottom: 1px solid var(--panel-line); border-left: 1px solid var(--panel-line); min-width: 0; }
.rc-stat:nth-child(odd) { border-left: 0; }
.rc-stat-l { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-panel-muted); }
.rc-stat-v { display: block; margin-top: .15rem; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rc-stat-v small { font-size: .82rem; font-weight: 400; color: var(--on-panel-muted); }
.rc-fine { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; font-size: .82rem; line-height: 1.45; color: var(--on-panel-muted); }
.rc-foot { margin: 0; padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .92rem; max-width: none; }
.rc-foot[hidden] { display: none; }
.aka{color:var(--muted);font-weight:400;font-size:.92em}
.med-card .aka{margin:.1rem 0 .4rem}
.aka-line{margin:.8rem 0 .2rem}

/* on this page bar */
.jump { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; margin: 0 0 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump ul { list-style: none; margin: 0; padding: .55rem 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: block; white-space: nowrap; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.jump a:hover { border-color: var(--teal); }
.jump a.active { background: var(--fill-on); border-color: var(--fill-on); color: #fff; }
section.block[id] { scroll-margin-top: calc(var(--header-h) + 4rem); }

/* Eating section: three evidence kinds kept visibly apart */
.tier { border-left: 4px solid var(--line); background: var(--surface); padding: 1rem 1.25rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.6rem 0; box-shadow: var(--shadow); }
.tier h2 { margin: .6rem 0 .6rem; }
.tier p:last-child { margin-bottom: 0; }
.tier-trial { border-left-color: var(--teal); }
.tier-expert { border-left-color: var(--ink); }
.tier-community { border-left-color: var(--saffron); background: var(--saffron-wash); }
.tier-kinds { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.2rem 0; }
.tier-kinds .tier { margin: 0; }
.tier-kinds h3 { margin: .5rem 0 .3rem; }

/* getting started */
.path{list-style:none;counter-reset:p;margin:0;padding:0;display:grid;gap:0}
.path li{counter-increment:p;display:grid;grid-template-columns:2.6rem 1fr;column-gap:1rem;padding:.9rem 0;border-top:1px solid var(--line);position:relative}
.path li:last-child{border-bottom:1px solid var(--line)}
.path li:before{content:counter(p);grid-row:span 2;width:2.1rem;height:2.1rem;border-radius:50%;background:var(--teal);color:#fff;font:600 1rem/2.1rem var(--sans);text-align:center}
.path li strong{font-size:1.05rem}.path li span{color:var(--muted)}
.qa{margin:0}.qa dt{font-weight:600;padding-top:.9rem;border-top:1px solid var(--line)}.qa dt:first-child{border-top:0;padding-top:0}.qa dd{margin:.25rem 0 .9rem;color:var(--muted)}
.worksheet{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1.4rem}
.wsf{margin:1rem 0}.wsf label{display:block;font-weight:600;margin-bottom:.35rem}
.wsf textarea{width:100%;font:inherit;padding:.7rem .8rem;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);resize:vertical}
.wsf textarea:focus{outline:3px solid var(--focus);outline-offset:1px}
@media print{.worksheet{border:0;padding:0}.wsf textarea{border:1px solid #999}}

.gs-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){.gs-cards{grid-template-columns:1fr}}


/* ===== v14: reference-desk look (sapphire and ice, Source Serif 4 + DM Sans) ===== */
body { font-size: 1.03rem; line-height: 1.62; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; font-variation-settings: "opsz" 40; }
h1 { font-weight: 600; letter-spacing: -.022em; font-variation-settings: "opsz" 60; line-height: 1.06; }
.lede { color: var(--muted); }
/* header */
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.28rem; letter-spacing: -.012em; white-space: nowrap; gap: .7rem; }
.brand .logo { display: block; }
.nav { gap: .1rem; }
.nav-link, .nav-trigger { font-size: .95rem; padding: .5rem .7rem; color: var(--muted); font-weight: 500; }
.nav-link:hover, .nav-trigger:hover, .nav-group.open .nav-trigger { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"], .nav-group.is-current .nav-trigger { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); }
.nav-cta { border-radius: 8px; padding: .6rem 1.1rem; margin-left: .6rem; }
.icon-btn { border-radius: 8px; }
.nav-menu { border-radius: 10px; }
/* buttons */
.btn { border-radius: 8px; }
.btn-primary { background: var(--teal); }
/* hero: big search on the left, contour map on the right */
.hero { border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 4.5vw, 3.6rem) clamp(3rem, 5vw, 4.2rem); }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
.hero .lede { max-width: 32em; font-size: 1.15rem; }
.hero .find { max-width: 36rem; margin-top: 1.6rem; }
.hero .find label { font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .45rem; }
.find .search { font-size: 1.15rem; padding: 1.1rem 1.25rem; border: 2px solid var(--teal); border-radius: 12px; box-shadow: 0 12px 30px -16px rgba(27, 79, 156, .5); }
.hero .find .search { border: 2px solid var(--teal); box-shadow: 0 12px 30px -16px rgba(27, 79, 156, .5); }
.find .search:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.find-results li { border-radius: 8px; }
.searched { display: none; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .93rem; color: var(--muted); }
.js .searched { display: flex; }
.searched ul { display: contents; list-style: none; margin: 0; padding: 0; }
.searched a { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: .22rem .75rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.searched a:hover { border-color: var(--teal); color: var(--teal-ink); }
.hero .cta-row { margin-top: 1.4rem; }
/* map restyle */
.map-svg path { stroke-width: 1; }
.map-svg .map-rings { opacity: .28; }
.map-svg .zone { stroke: var(--teal); stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .7; }
.map-svg .zone-label { font-weight: 600; fill: var(--teal-ink); }
.am-pin { border-radius: 8px; border-color: var(--line); font-size: .84rem; }
.am-pin[data-zone="under-review"] .am-dot { background: var(--saffron); box-shadow: 0 0 0 3px rgba(217, 154, 20, .25); }
.am-pin[data-zone="investigational"] .am-dot { border-color: var(--inv); }
.am-pin:hover .am-dot, .am-pin.is-on .am-dot { border-color: var(--pin-hover-ink); }
.am-readout { border-radius: 12px; }
.am-readout .am-meta { color: var(--teal-ink); }
/* numbers: flat ice band */
.statbar { margin-top: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: 1.9rem; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stats { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; gap: 1.5rem; }
.stat { border-left: 0; padding: 0; }
.stat dt { color: var(--teal); font-weight: 600; font-size: clamp(2rem, 4vw, 2.6rem); }
.stat dd { max-width: 18em; }
@media (max-width: 860px) { .stat:nth-child(n+3) { border-top: 0; } }
/* statuses */
.b-approved { background: var(--ok-wash); color: var(--ok); }
.b-invest { background: var(--inv-wash); color: var(--inv); border-color: transparent; }
.b-other { background: var(--surface-2); color: var(--muted); }
.badge { border-radius: 999px; }
/* medicine index */
section.block.index { padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1rem, 3vw, 1.6rem); }
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem 1.2rem; margin-bottom: 1rem; }
.index-head h2 { margin: 0; }
.index-head .chips { margin: 0; }
.chip { border-radius: 7px; font-size: .93rem; padding: .4rem .85rem; color: var(--muted); }
.chip:hover { border-color: var(--teal); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
table.idx { min-width: 640px; }
table.idx th[scope="row"] { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; background: transparent; white-space: nowrap; }
table.idx th[scope="row"] a { color: var(--ink); text-decoration: none; }
table.idx th[scope="row"] a:hover { color: var(--teal-ink); text-decoration: underline; }
table.idx td { vertical-align: middle; }
table.idx td a { color: var(--teal-ink); }
table.idx tbody tr:hover > * { background: var(--surface-2); }
table.idx thead th { color: var(--muted); font-size: .86rem; }
.idx-row[hidden] { display: none; }
.table-wrap { border-radius: 10px; margin: 0; }
.index-foot { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; margin: .8rem 0 0; color: var(--muted); font-size: .95rem; max-width: none; }
.index-foot a { margin-left: auto; font-weight: 600; }
.idx-more { background: none; border: 1px solid var(--teal); color: var(--teal-ink); border-radius: 7px; padding: .35rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.idx-more:hover { background: var(--teal-wash); }
/* learn columns */
section.block.learn { padding-block: clamp(1.4rem, 3vw, 2rem) clamp(2.2rem, 5vw, 3.4rem); }
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
@media (max-width: 860px) { .learn-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.learn h3 { font-size: 1.4rem; margin: 0 0 .5rem; padding-bottom: .7rem; border-bottom: 2px solid var(--teal); }
.learn p { color: var(--muted); font-size: .98rem; margin: 0 0 .6rem; }
.learn ul { list-style: none; margin: 0; padding: 0; }
.learn li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.learn li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.learn li a:hover { color: var(--teal-ink); text-decoration: underline; }
.learn li small { display: block; color: var(--muted); font-size: .9rem; }
/* Ask band */
.companion { background: var(--band); color: var(--on-band); padding-block: clamp(2.4rem, 5vw, 3.6rem); margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.companion-grid { gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.co-card { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; color: var(--on-band); }
.co-label { text-transform: none; letter-spacing: -.01em; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--on-band); margin-bottom: .8rem; }
.co-form { background: #fff; border-radius: 10px; padding: 6px; gap: .4rem; }
.co-form input { border: 0; border-radius: 7px; background: transparent; color: #0f1b2d; outline-offset: 0; }
.co-form button, .co-btn { background: #1b4f9c; color: #fff; border-radius: 7px; font-weight: 600; }
.co-form button:hover, .co-btn:hover { background: #133b78; }
.co-try, .co-note { color: var(--on-band-muted); }
.co-examples { display: flex; flex-wrap: wrap; gap: .5rem; }
.co-examples a { display: inline-block; background: rgba(255, 255, 255, .12); color: var(--on-band); text-decoration: none; padding: .35rem .8rem; border-radius: 7px; font-size: .92rem; }
.co-examples a:hover { background: rgba(255, 255, 255, .22); }
.co-calc { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 1.3rem 1.4rem; }
.co-calc-head h3 { color: var(--on-band); }
.co-calc-head p { color: var(--on-band-muted); }
.co-icon { color: #fff; }
.co-calc .co-btn { background: #fff; color: #133b78; }
.co-calc .co-btn:hover { background: #e3ecf8; }
.co-card a:focus-visible, .co-card button:focus-visible, .co-card input:focus-visible { outline-color: #ffd37a; }
:root[data-theme="dark"] .co-form button, :root[data-theme="dark"] .co-btn { color: #fff; }
/* cards and notes: calmer */
.card { border-radius: 12px; box-shadow: none; }
a.card-link:hover { box-shadow: var(--shadow); }
.note { border-radius: 0 8px 8px 0; }
.site-footer { margin-top: 3rem; }
table.idx td a { text-decoration: none; font-weight: 500; }
table.idx td a:hover { text-decoration: underline; }
.hero .lede { max-width: 36em; }
.am-readout { min-height: 6.4rem; }
@media (max-width: 640px) {
  table.idx { min-width: 0; }
  table.idx thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.idx, table.idx tbody { display: block; }
  table.idx tr.idx-row { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
  table.idx tr.idx-row[hidden] { display: none; }
  table.idx tbody tr:last-child { border-bottom: 0; }
  table.idx th[scope="row"], table.idx td { display: block; padding: 0; border: 0; white-space: normal; }
  table.idx td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .86rem; }
  table.idx td[data-l="Status"]::before { content: none; }
  table.idx td[data-l="Status"] { margin: .25rem 0; }
  .table-wrap:has(table.idx) { overflow: visible; }
}

/* New-here band on the home page. A dark panel in both themes on purpose. */
.basics { padding-block: clamp(1.6rem, 3vw, 2.4rem) 0.4rem; }
.basics-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; background: linear-gradient(135deg, #0f2447 0%, #0a1830 100%); color: #eaf1fb; border-radius: 20px; padding: clamp(1.4rem, 3.6vw, 2.8rem); box-shadow: 0 18px 44px rgba(10, 24, 48, .28); overflow: hidden; }
.basics-copy { min-width: 0; }
.basics-copy h2 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; text-wrap: balance; }
.basics-copy > p { color: #c9d8ee; margin: 0 0 1.1rem; max-width: 34rem; }
.basics-copy .cta-row { margin-bottom: 1.1rem; }
.basics-copy .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.basics-copy .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.basics-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.basics-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.basics-links a:hover { text-decoration-color: #fff; }
.basics-links a:focus-visible, .basics-copy .btn:focus-visible { outline: 3px solid #9fc4f2; outline-offset: 3px; }
.basics-media { min-width: 0; }
.basics-art, .basics-photo { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 14px; }
@media (max-width: 860px) { .basics-card { grid-template-columns: minmax(0, 1fr); } .basics-media { order: -1; } }

/* Picture cards (Getting started hub) and page banners. */
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media .card-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1a33; }
.card-media .card-art svg, .card-media .card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-media:hover .card-art svg, .card-media:hover .card-art img { transform: scale(1.03); }
.card-media .card-body { display: block; padding: 1rem 1.15rem 1.2rem; }
.card-media .card-body h3 { margin-top: 0; }
.page-banner { margin: 0 0 1.2rem; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 5; background: radial-gradient(ellipse at 50% 45%, #1f4278 0%, #12274a 55%, #0b1a33 100%); box-shadow: var(--shadow-lg); }
.page-banner svg, .page-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-banner svg { object-position: center; }
@media (max-width: 640px) { .page-banner { aspect-ratio: 16 / 7; } }
@media (prefers-reduced-motion: reduce) { .card-media .card-art svg, .card-media .card-art img { transition: none; } }

.inline-fig { margin: 1.1rem 0 1.3rem; max-width: 760px; }
.inline-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #0b1a33; box-shadow: var(--shadow-lg); }
.inline-fig figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted, #5b6b82); line-height: 1.45; }

.news-filters[hidden], .news-item[hidden] { display: none; }
.news-filters { margin: 0 0 1.2rem; }
.news-watch ul { padding-left: 1.2rem; }
.news-watch li { margin: .45rem 0; }

/* tools hub */
.tool-card { display: grid; gap: .35rem; align-content: start; }
.tool-ico { color: var(--teal); display: inline-flex; margin-bottom: .2rem; }
.tool-kicker { color: var(--teal-ink); font-weight: 600; margin: 0; font-size: .95rem; }
.tool-card .go { margin-top: .4rem; }
.tool-card .go::after { content: " \2192"; }
/* BMI extras */
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: .3rem; flex: none; }
.ex-line { margin: .6rem 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.copy-btn { padding: .55rem 1rem; }
/* trial results explorer */
.ex { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; margin-bottom: 1rem; }
.ex-controls { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.ex-controls select.input { width: 100%; }
.ex-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); min-width: 0; }
.ex-head p { margin: .2rem 0; }
.ex-arms { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 1rem; }
.ex-arm-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ex-arm-l { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ex-arm-v { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.ex-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .3rem 0; }
.ex-bar i { display: block; height: 100%; background: var(--bar-drug); border-radius: 99px; }
.is-placebo .ex-bar i { background: var(--bar-placebo); }
.ex-arm-s { margin: .2rem 0 0; font-size: .97rem; color: var(--ink); }
.ex-box { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .9rem; }
.ex-box .h4 { margin: 0 0 .3rem; font-size: 1.02rem; }
.ex-box p { margin: .2rem 0; }
.ex-src { margin: .3rem 0; padding-left: 1.1rem; }
.ex-all summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }
.ex-all table th[scope="row"] { vertical-align: top; }
@media (min-width: 900px) {
  .ex { grid-template-columns: minmax(260px, 340px) 1fr; }
  .ex-controls { position: sticky; top: 5rem; }
}
@media (min-width: 700px) { .grid.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label.check { font-weight: 400; }
/* my weight change: comparison bars and private log */
.is-you .ex-bar i { background: var(--saffron); }
.tool.lg { align-items: start; }
.lg-out { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.lg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .8rem 1rem; margin: 0 0 .8rem; }
.lg-stats dt { font-size: .9rem; color: var(--muted); }
.lg-stats dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.lg-fig { margin: .8rem 0; }
.lg-svg { width: 100%; height: auto; display: block; }
.lg-grid { stroke: var(--line); stroke-width: 1; }
.lg-tick { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.lg-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lg-dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.lg-ref { stroke: var(--saffron); stroke-width: 1.5; stroke-dasharray: 6 5; }
.lg-reflabel { fill: var(--saffron-ink); font-size: 11px; font-family: var(--sans); }
.err-text { color: var(--danger-ink); }
.lg-rm { padding: .25rem .7rem; font-size: .9rem; }
.tool-grid .tool-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lg-out .table-wrap th, .lg-out .table-wrap td { padding: .5rem .55rem; }
/* cost tool and protein reference */
.cost-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; margin-bottom: 1rem; }
@media (min-width: 900px) { .cost-grid { grid-template-columns: minmax(280px, 380px) 1fr; } }
.cost-form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .9rem; }
.cost-opt { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; min-width: 0; }
.cost-opt legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.cost-form select.input { width: 100%; }
.cost-b summary { cursor: pointer; font-weight: 600; margin: .2rem 0 .8rem; }
.cost-note a { overflow-wrap: anywhere; }
.cost-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); min-width: 0; }
.cost-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.cost-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; min-width: 0; }
.cost-card .big { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; margin: .2rem 0 .5rem; }
.cost-card .err { color: var(--danger-ink); background: var(--danger-wash); padding: .6rem .8rem; border-radius: 8px; }
.cost-lines { margin: .4rem 0; padding-left: 1.1rem; }
.cost-diff { font-weight: 600; margin: 1rem 0 .4rem; }
.pr-out { min-width: 0; }
.pr-list { margin: 1rem 0; }
.pr-track { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); margin: .3rem 0; }
.pr-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--bar-drug); }
.pr-rda .pr-track i { background: var(--bar-placebo); }
.pr-low .pr-track i, .pr-high .pr-track i { background: var(--saffron); }
.lean-bars { margin-top: .6rem; }
.ask-tools { padding-left: 1.1rem; } .ask-tools li { margin: .3rem 0; }

.block > h3 { margin-top: 1.8rem; }
/* tables with three or more columns become labelled cards on phones */
@media (max-width: 640px) {
  table.stack, table.stack tbody { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { display: block; padding: .1rem 0; border: 0; white-space: normal; background: transparent; }
  table.stack th[scope="row"] { font-size: 1.02rem; font-weight: 700; margin-bottom: .15rem; }
  table.stack td[data-l]::before { content: attr(data-l); display: block; margin-top: .45rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
  .table-wrap:has(table.stack) { overflow: visible; }
  table.cmp.stack th:first-child, table.cmp.stack td:first-child { position: static; min-width: 0; background: transparent; }
  table.cmp.stack td { min-width: 0; }
  table.cmp.stack th[scope="row"] { color: var(--teal-ink); }
}
@media (max-width: 640px) {
  table.stack tr[hidden] { display: none; }
  table.stack td[data-l="Filter"]::before { content: none; }
}
