/* Layout: one calm reading column on phones; on wide screens the article column sits left with a slim side rail.
   Signature: the "100 men" dot grid that turns counts into people. Everything else stays quiet. */
:root {
  --paper: #F5F8F7;      /* page ground, cool with a green bias */
  --surface: #FFFFFF;    /* boxes that hold their own content */
  --ink: #17242B;        /* body text */
  --ink-soft: #4B5B63;   /* secondary text */
  --line: #D6E0DD;       /* rules and borders */
  --teal: #0D5B65;       /* links, data, primary actions */
  --teal-tint: #DCEBE8;  /* "in short" boxes, filled dots' halo */
  --dot-off: #CFDAD7;    /* unfilled dots */
  --red: #B3261E;        /* donate only */
  --on-red: #FFFFFF;
  --on-teal: #FFFFFF;
  --warn-tint: #FBEAE8;  /* urgent red-flag box */
  --amber: #8A5A00;      /* flare-up middle level */
  --amber-tint: #FBF1DC;
  --xpl-bg: #F4F8F7; --xpl-veil: rgba(244, 248, 247, 0.55);
  --appeal-bg: #0D5B65; --appeal-bg2: #0A4750; --appeal-glow: rgba(108, 193, 200, 0.28); --appeal-ink: #FFFFFF; --appeal-ink-soft: rgba(255, 255, 255, 0.88); --appeal-line: rgba(255, 255, 255, 0.55); --appeal-accent: #E3A72F; --appeal-on-accent: #17242B;
  --font-display: "Literata", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem; --step-3: 1.9rem; --step-4: 2.4rem;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0F1618; --surface: #162125; --ink: #E4ECEA; --ink-soft: #A7B6B3; --line: #29393D;
  --teal: #6CC1C8; --teal-tint: #173337; --dot-off: #2C3D41; --red: #D64A3E; --on-red: #FFFFFF; --on-teal: #0B1E21; --warn-tint: #3A1C1A; --amber: #E2B05A; --amber-tint: #33290F; --xpl-bg: #1A272B; --xpl-veil: rgba(15, 22, 24, 0.5); --appeal-bg: #0F4C55; --appeal-bg2: #0B353C; --appeal-glow: rgba(108, 193, 200, 0.18); --appeal-ink: #FFFFFF; --appeal-ink-soft: rgba(255, 255, 255, 0.86); --appeal-line: rgba(255, 255, 255, 0.5); --appeal-accent: #E8B24A; --appeal-on-accent: #17242B;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0F1618; --surface: #162125; --ink: #E4ECEA; --ink-soft: #A7B6B3; --line: #29393D;
  --teal: #6CC1C8; --teal-tint: #173337; --dot-off: #2C3D41; --red: #D64A3E; --on-red: #FFFFFF; --on-teal: #0B1E21; --warn-tint: #3A1C1A; --amber: #E2B05A; --amber-tint: #33290F; --xpl-bg: #1A272B; --xpl-veil: rgba(15, 22, 24, 0.5); --appeal-bg: #0F4C55; --appeal-bg2: #0B353C; --appeal-glow: rgba(108, 193, 200, 0.18); --appeal-ink: #FFFFFF; --appeal-ink-soft: rgba(255, 255, 255, 0.86); --appeal-line: rgba(255, 255, 255, 0.5); --appeal-accent: #E8B24A; --appeal-on-accent: #17242B;
  color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.wrap { max-width: 72rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Draft banner */
.draft { background: var(--teal-tint); color: var(--ink); font-size: var(--step--1); }
.draft .wrap { padding-block: 0.45rem; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.5rem; }
.brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-seal { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--teal); color: var(--on-teal); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.01em; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.join { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--red); color: var(--on-red); font-weight: 700; text-decoration: none; }
.join:hover { filter: brightness(1.08); }
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.6rem; border-radius: 8px; font-weight: 700; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; }
.menu[open] > summary { background: var(--teal-tint); }
.menu nav { position: absolute; right: 0; top: calc(100% + 6px); width: min(18rem, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem; display: grid; box-shadow: 0 12px 28px rgba(15, 30, 35, 0.16); }
.menu nav a { display: block; padding: 0.7rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.menu nav a:hover { background: var(--teal-tint); }
.menu nav .sub { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); display: block; }

/* Page frame */
main { padding-block: 1.5rem 3rem; }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { opacity: 0.6; }
.layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, var(--measure)) 17rem; justify-content: space-between; } }
.article { min-width: 0; display: grid; gap: 1.4rem; }
.article > * { max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.byline { display: grid; gap: 0.15rem; font-size: var(--step--1); color: var(--ink-soft); padding-block: 0.8rem; border-block: 1px solid var(--line); }
.byline strong { color: var(--ink); }
.section { display: grid; gap: 0.8rem; }
.section ul, .section ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.inshort { background: var(--teal-tint); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; }
.inshort h2 { font-size: var(--step-1); }
.inshort ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.note { font-size: var(--step--1); color: var(--ink-soft); }
.rail { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 960px) { .rail { position: sticky; top: 5rem; } }
.rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: 0.6rem; }
.rail-box h2 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; }
.rail-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; font-size: var(--step--1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--teal); font-size: var(--step-0); font-family: var(--font-body); cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.si-google { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.si-google:empty { display: none; }
button.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Report form */
.how-box { background: var(--teal-tint); border-radius: 14px; padding: 1rem 1.2rem; display: grid; gap: 0.5rem; }
.how-box h2 { font-size: var(--step-1); margin: 0; }
.how-box ul, .how-box ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.opt-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.rate-group { border: 1px solid var(--line); border-radius: 10px; }
.rate-group summary { cursor: pointer; padding: 0.75rem 0.9rem; font-weight: 700; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.rate-group summary::-webkit-details-marker { display: none; }
.rate-group summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); }
.rate-group[open] summary::after { content: "\2212"; }
.rate-group[open] summary { border-bottom: 1px solid var(--line); }
.rate-list { display: grid; }
.rate-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 1rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.rate-row:last-child { border-bottom: 0; }
.rate-row label { flex: 1 1 10rem; min-width: 0; }
.field { display: grid; gap: 0.4rem; }
.legend-like { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.check select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 0.6rem; max-width: 100%; }
.rate-row select { flex: 0 1 11rem; }

/* The 100 men grid */
.men { display: grid; gap: 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.men-figure { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.dots { display: grid; grid-template-columns: repeat(10, 14px); gap: 5px; flex: none; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--dot-off); display: block; }
.dots i.on { background: var(--teal); }
.men-num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; font-weight: 600; color: var(--teal); }
.men-text { flex: 1 1 12rem; min-width: 0; display: grid; gap: 0.35rem; }

/* Bars (polls and lists) */
.bars { display: grid; gap: 0.7rem; }
.bar { display: grid; gap: 0.25rem; }
.bar-label { display: flex; justify-content: space-between; gap: 0.8rem; font-size: var(--step--1); }
.bar-label b { font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; background: var(--dot-off); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal); border-radius: 999px; }
.poll { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.8rem; }
.poll h3 { font-size: var(--step-1); }
.poll .meta { font-size: var(--step--1); color: var(--ink-soft); }

/* Link lists with numbers */
.linklist, .section .linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: block; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0.1rem; text-decoration: none; color: var(--ink); min-height: 48px; }
.linklist a:hover .ll-name { text-decoration: underline; }
.ll-name { font-weight: 700; color: var(--teal); }
.ll-sub { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.ll-num { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: var(--step--1); text-align: right; }

/* Home */
.hero { padding-block: 1.6rem 1.2rem; display: grid; gap: 1rem; max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08; }
.hero .lead { color: var(--ink-soft); max-width: 36rem; }
.home-grid { display: grid; gap: 2.2rem; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; } .home-grid .span2 { grid-column: 1 / -1; } }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .wrap { padding-block: 1.6rem; }
.facts { display: grid; gap: 1rem; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { display: grid; gap: 0.3rem; }
.fact b { font-family: var(--font-display); font-size: var(--step-3); color: var(--teal); line-height: 1.1; }

/* Self-check */
.check { display: grid; gap: 1.2rem; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.8rem; }
.qcard legend { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); padding: 0; margin-bottom: 0.2rem; }
.qcard fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.opt { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 48px; }
.opt input { width: 20px; height: 20px; margin: 0.15rem 0 0; flex: none; accent-color: var(--teal); }
.opt:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.urgent { background: var(--warn-tint); border: 1px solid var(--red); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.5rem; }
.result { background: var(--surface); border: 2px solid var(--teal); border-radius: 14px; padding: 1.2rem; display: grid; gap: 0.9rem; }
.result .level { font-family: var(--font-display); font-size: var(--step-3); color: var(--teal); line-height: 1.1; }
.summary-box { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 0.8rem 1rem; font-size: var(--step--1); white-space: pre-wrap; }
.progress { height: 6px; background: var(--dot-off); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--teal); width: 0; transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .progress > div { transition: none; } }

/* Support band */
.support { background: var(--teal-tint); border-radius: 14px; padding: 1rem 1.2rem; display: grid; gap: 0.4rem; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); color: var(--ink-soft); }
footer .wrap { padding-block: 1.6rem 2.4rem; display: grid; gap: 1.2rem; }
.foot-brand { justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--ink); }
.foot-brand .brand-seal { width: 40px; height: 40px; border-radius: 10px; font-size: 14.5px; }
.foot-brand-name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.foot-cols { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.foot-cols h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.foot-cols a { color: var(--ink-soft); }
table.data { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
table.data th, table.data td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th.n { text-align: right; }
.table-scroll { overflow-x: auto; }
.cite { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; font-size: var(--step--1); }

/* Email sign-up */
.signup { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; }
.signup h2 { font-size: var(--step-1); }
.signup-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup-form input { flex: 1 1 14rem; min-width: 0; min-height: 48px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 0.9rem; }
.signup-form .btn { flex: 0 0 auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Membership appeal (shown from the first page view) */
.appeal { position: relative; overflow: hidden; color: var(--appeal-ink); background: radial-gradient(120% 90% at 100% 0%, var(--appeal-glow), transparent 60%), linear-gradient(160deg, var(--appeal-bg) 0%, var(--appeal-bg2) 100%); }
.appeal-sparks { position: absolute; top: 0.55rem; right: max(0.6rem, env(safe-area-inset-right, 0px)); width: 3.4rem; height: auto; fill: var(--appeal-accent); pointer-events: none; }
.appeal-inner { position: relative; padding-block: 1rem 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.75rem; }
.appeal-copy { flex: 1 1 24rem; min-width: 0; max-width: 46rem; display: grid; gap: 0.3rem; }
.appeal-copy p { margin: 0; }
.appeal-h { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.2; text-wrap: balance; padding-right: 3rem; }
.appeal-t { font-size: 1rem; line-height: 1.5; color: var(--appeal-ink-soft); text-wrap: pretty; }
.appeal-t a { color: var(--appeal-ink); font-weight: 700; text-decoration-color: var(--appeal-accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; white-space: nowrap; }
.appeal-btns { flex: 0 0 auto; }
.appeal .appeal-cta { background: var(--appeal-accent); border: 2px solid var(--appeal-accent); color: var(--appeal-on-accent); font-weight: 700; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.appeal .appeal-cta:hover { filter: brightness(1.06); }
.appeal .appeal-later { background: transparent; border: 2px solid var(--appeal-line); color: var(--appeal-ink); }
.appeal a:focus-visible, .appeal button:focus-visible { outline: 3px solid var(--appeal-accent); outline-offset: 2px; }
@media (min-width: 560px) { .appeal-sparks { top: 0.3rem; width: 2.6rem; } }
@media (max-width: 559px) { .appeal-btns { flex: 1 1 100%; } .appeal-h { font-size: 1.35rem; } .appeal-inner { padding-block: 0.95rem 1rem; gap: 0.8rem; } }
.btn-red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.seg { display: inline-flex; border: 2px solid var(--teal); border-radius: 12px; overflow: hidden; width: fit-content; }
.seg button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 1.1rem; border: 0; background: transparent; color: var(--teal); }
.seg button.seg-on { background: var(--teal); color: var(--on-teal); }

/* Articles hub */
.feature { display: grid; gap: 0.3rem; background: var(--teal-tint); border-radius: 14px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); }
.feature-kicker { font-size: var(--step--1); font-weight: 700; color: var(--teal); }
.feature-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; color: var(--ink); }
.feature:hover .feature-title { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.chips a:hover { border-color: var(--teal); }

/* Doctor visit kit */
.field-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.field-row .field { flex: 1 1 10rem; min-width: 0; }
.field label { font-weight: 700; }
.legend-sm { font-family: var(--font-body) !important; font-size: var(--step-0) !important; font-weight: 700 !important; }
.check input[type=number], .check input[type=month], .check textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0.5rem 0.7rem; width: 100%; max-width: 100%; }
.check textarea { resize: vertical; line-height: 1.5; }
.check select { width: fit-content; }
.field select { width: 100%; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.8rem; align-items: center; }
.range-row label { grid-column: 1 / -1; font-weight: 700; }
.range-row input { width: 100%; accent-color: var(--teal); min-height: 32px; }
.range-row output { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal); min-width: 2ch; text-align: right; }
.kit-out { display: grid; gap: 0.9rem; scroll-margin-top: 5rem; }
.kit-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; display: grid; gap: 0.7rem; font-size: var(--step--1); line-height: 1.5; }
.kit-sheet h3 { font-size: var(--step-1); }
.kit-sheet h4 { margin: 0; font-size: var(--step-0); font-family: var(--font-body); }
.kit-sheet ul { margin: 0.2rem 0 0; padding-left: 1.2rem; }
.kit-meta, .kit-foot { color: var(--ink-soft); }
.kit-full { position: fixed; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 1.5rem) max(16px, env(safe-area-inset-left, 0px)); }
.kit-full .kit-close { position: sticky; top: 0; margin-left: auto; display: flex; margin-bottom: 0.8rem; background: var(--paper); }
.kit-sheet-big { font-size: 1.2rem; max-width: 46rem; margin-inline: auto; border: 0; padding: 0; background: transparent; }
.kit-sheet-big h3 { font-size: 1.6rem; }
.kit-sheet-big h4 { font-size: 1.25rem; }
html.kit-lock, html.kit-lock body { overflow: hidden; }

@media print {
  @page { size: A4; margin: 14mm; }
  html:has(#kit-sheet), html:has(#kit-sheet) body { background: #FFFFFF !important; color: #000000 !important; padding: 0 !important; }
  html:has(#kit-sheet) body > :not(main),
  html:has(#kit-sheet) main .crumbs,
  html:has(#kit-sheet) .layout > :not(.article),
  html:has(#kit-sheet) .article > :not(.kit-out),
  html:has(#kit-sheet) .kit-out > :not(.kit-sheet) { display: none !important; }
  html:has(#kit-sheet) main .wrap { padding: 0 !important; max-width: none; }
  #kit-sheet { border: 0; padding: 0; background: #FFFFFF; color: #000000; font-size: 10.5pt; gap: 6pt; }
  #kit-sheet .kit-meta, #kit-sheet .kit-foot { color: #333333; }
}

/* Guides */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article { min-width: 0; }
.guide-card a { display: grid; gap: 0.45rem; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); }
.guide-card a:hover { border-color: var(--teal); }
.guide-card a:hover .guide-title { text-decoration: underline; }
.guide-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; color: var(--teal); }
.guide-blurb { font-size: var(--step--1); color: var(--ink-soft); }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; font-size: var(--step--1); color: var(--ink-soft); margin-top: auto; }
/* Guide covers: illustrated, with the guide's words on them */
.guide-card a.has-cover { grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 0.95rem; align-items: start; }
.guide-text { display: grid; gap: 0.45rem; min-width: 0; height: 100%; }
.guide-cover { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 0 var(--line); }
/* Guides list on a phone: hand-set title lines ("hub_lines" in each guide's data), all at one shared size so the
   titles match. No line is longer than 12.15 ems, so at this size every line fits the column beside the cover. */
.guide-card a.has-lines { container-type: inline-size; }
@media (max-width: 40rem) {
  .guide-card a.has-lines .guide-title { font-size: clamp(0.875rem, calc((100cqi - 7.2rem) / 12.15), 1.25rem); line-height: 1.22; }
  .guide-card a.has-lines .guide-title .l { display: block; white-space: nowrap; }
}
.art-cover img { max-width: 30rem; width: 100%; margin-inline: auto; display: block; border-radius: 18px; }
.art-cover figcaption { max-width: 30rem; margin-inline: auto; }
.guide-promo.has-cover { grid-template-columns: minmax(0, 1fr) 5.75rem; column-gap: 1rem; }
.guide-promo.has-cover > * { grid-column: 1 / -1; }
.guide-promo.has-cover > .feature-kicker, .guide-promo.has-cover > h2 { grid-column: 1; }
.guide-promo.has-cover > .gp-cover { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
/* Guides hub: a row of covers to swipe through, like a shelf */
.cover-rail { margin-block: 0.4rem 1.6rem; min-width: 0; max-width: 100%; contain: inline-size; }
.cover-rail ul { list-style: none; margin: 0; padding: 0.1rem 0 0.6rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 13.5rem); gap: 0.85rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.cover-rail li { scroll-snap-align: start; }
.cover-rail a { display: grid; gap: 0.45rem; text-decoration: none; color: var(--ink); }
.cover-rail img { width: 100%; height: auto; border-radius: 16px; display: block; }
.cover-rail a:hover img, .cover-rail a:focus-visible img { outline: 3px solid var(--teal); outline-offset: 2px; }
.cover-rail .cr-tag { font-size: var(--step--1); color: var(--ink-soft); }
.cover-rail .cr-tag b { color: var(--red); font-weight: 600; }
.cover-rail .cr-tag b.free { color: var(--teal); }
.gp-cover img { width: 100%; height: auto; border-radius: 9px; display: block; }
/* Review preview only: a way straight into the members' part of a paid guide */
.preview-pass { display: grid; gap: 0.6rem; background: var(--teal-tint, var(--surface)); border: 1px dashed var(--teal); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.9rem; }
.preview-pass p { margin: 0; font-size: var(--step--1); }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 0.6rem; border-radius: 999px; background: var(--warn-tint); color: var(--red); font-size: 0.8rem; }
.pill-free { background: var(--teal-tint); color: var(--teal); }
.contents-list { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.3rem; }
.unlock { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.7rem; }
.unlock h2 { font-size: var(--step-1); }
.unlock-free { border-left-color: var(--teal); }
.field-error { color: var(--red); font-weight: 700; font-size: var(--step--1); }
.check input[type=email] { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: 0 0.8rem; width: 100%; }
.check input[aria-invalid=true] { border-color: var(--red); }

/* Monthly report */
.stat-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .stat { grid-template-columns: 8rem minmax(0, 1fr); align-items: center; column-gap: 0.8rem; } .stat b { font-size: var(--step-2); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; display: grid; gap: 0.1rem; }
.stat b { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { font-size: var(--step--1); color: var(--ink-soft); }

/* Header (Healthline-style): phones get Menu, logo, Search, Donate; computers add a search box and a row of sections with drop-downs. */
.top .top-row { display: flex; align-items: center; gap: 0.5rem; padding-block: 0.45rem; }
.menu-btn { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.65rem 0 0.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn:hover { border-color: var(--teal); }
.top-row .brand { flex: 1 1 auto; min-width: 0; }
.top-actions { flex: none; display: flex; align-items: center; gap: 0.3rem; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--teal-tint); }
.signin { display: none; font-weight: 700; text-decoration: none; color: var(--ink); min-height: 44px; align-items: center; padding: 0 0.5rem; }
.signin:hover { text-decoration: underline; }
.top-search { display: none; position: relative; }
.secnav { display: none; }
@media (max-width: 559px) {
  .menu-btn { flex-direction: column; justify-content: center; gap: 1px; width: 48px; min-height: 48px; padding: 0; border: 0; background: transparent; }
  .menu-btn .menu-label { font-size: 0.68rem; line-height: 1; }
  .brand-name { white-space: normal; line-height: 1.12; font-size: clamp(0.78rem, 3.5vw, 0.98rem); max-width: 7.2em; }
  .brand { gap: 0.4rem; }
  .top .brand-seal { width: 34px; height: 34px; border-radius: 8.5px; font-size: 12.5px; }
  .join { padding: 0 0.85rem; }
}
@media (min-width: 560px) { .signin { display: inline-flex; } }
@media (min-width: 1040px) {
  .menu-btn, .search-btn { display: none; }
  .top-row .brand { flex: 0 0 auto; }
  .top-search { display: block; flex: 1 1 auto; max-width: 26rem; margin-left: auto; }
  .secnav { display: block; border-top: 1px solid var(--line); }
  .secnav-row { display: flex; gap: 0.15rem; }
}
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 46px; padding: 0 0.75rem; font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); border-bottom: 3px solid transparent; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.dd > summary:hover { color: var(--ink); }
.dd > summary.is-current { color: var(--teal); border-bottom-color: var(--teal); }
.dd[open] > summary { color: var(--ink); background: var(--teal-tint); border-radius: 10px 10px 0 0; }
.dd-panel { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem; box-shadow: 0 14px 32px rgba(15, 30, 35, 0.16); }
.dd-panel ul { list-style: none; margin: 0; padding: 0; }
.dd-wide { min-width: 30rem; }
.dd-wide ul { columns: 2; column-gap: 0.4rem; }
.dd-panel li { break-inside: avoid; }
.dd-panel a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.dd-panel a:hover, .dd-panel a[aria-current] { background: var(--teal-tint); }
.dd-panel .dd-all { font-weight: 700; color: var(--teal); }

/* Search box and results (header on computers, menu on phones) */
.js-search { width: 100%; min-height: 46px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 0.9rem; }
.js-search:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
.search-results { list-style: none; margin: 0.4rem 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.top-search .search-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; max-height: 70vh; overflow-y: auto; box-shadow: 0 14px 32px rgba(15, 30, 35, 0.16); }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 0.7rem 0.9rem; min-height: 44px; text-decoration: none; color: var(--ink); }
.search-results a:hover { background: var(--teal-tint); }
.sr-t { font-weight: 700; }
.sr-c { flex: none; font-size: var(--step--1); color: var(--ink-soft); }
.sr-empty { padding: 0.7rem 0.9rem; color: var(--ink-soft); font-size: var(--step--1); }

/* Full-screen menu on phones, side panel on bigger screens */
.site-menu { margin: 0; padding: 0; border: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--paper); color: var(--ink); }
.site-menu::backdrop { background: rgba(8, 18, 22, 0.5); }
@media (min-width: 640px) { .site-menu { width: 26rem; margin: 0 0 0 auto; box-shadow: -12px 0 32px rgba(8, 18, 22, 0.2); } }
.sm-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top, 0px) + 0.45rem) max(16px, env(safe-area-inset-right, 0px)) 0.45rem max(16px, env(safe-area-inset-left, 0px)); }
.sm-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.sm-close { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.sm-close svg { width: 18px; height: 18px; }
.sm-body { display: grid; gap: 1rem; padding: 1rem max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 2rem) max(16px, env(safe-area-inset-left, 0px)); }
.sm-sections { border-top: 1px solid var(--line); }
.sm-sec { border-bottom: 1px solid var(--line); }
.sm-sec > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-weight: 700; font-size: 1.1rem; }
.sm-sec > summary::-webkit-details-marker { display: none; }
.sm-sec > summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--teal); }
.sm-sec[open] > summary::after { content: "\2212"; }
.sm-sec ul { list-style: none; margin: 0; padding: 0 0 0.6rem; }
.sm-sec a { display: flex; align-items: center; min-height: 44px; padding: 0 0 0 0.9rem; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.sm-sec a:hover { color: var(--teal); }
.sm-sec a[aria-current] { color: var(--teal); border-left-color: var(--teal); font-weight: 700; }
.sm-sec .sm-all { font-weight: 700; color: var(--teal); }
.sm-support { display: block; padding: 0.9rem 1rem; border-radius: 12px; background: var(--teal-tint); color: var(--ink); text-decoration: none; }
.sm-support strong { color: var(--teal); }
html.menu-lock, html.menu-lock body { overflow: hidden; }

/* Members' guide card on content pages */
.guide-promo { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.55rem; }
.guide-promo h2 { font-size: var(--step-1); }
.guide-promo h2 a { color: var(--ink); text-decoration: none; }
.guide-promo h2 a:hover { text-decoration: underline; }
.guide-promo .feature-kicker { color: var(--red); }
/* A card with hand-set title lines (card_lines in the guide's data): on a phone each line is kept whole and the heading
   is sized so the longest line just reaches the cover, which makes the block of text sit flush beside the picture.
   --lw is the longest line's width in ems of the heading font and --cw the cover width, both from the guide's data. */
.guide-promo.has-lines { container-type: inline-size; }
@media (max-width: 40rem) {
  .guide-promo.has-lines.has-cover { grid-template-columns: minmax(0, 1fr) var(--cw, 5rem); column-gap: 0.8rem; }
  .guide-promo.has-lines h2 { font-size: clamp(0.875rem, calc((100cqi - var(--cw, 5rem) - 0.8rem) / var(--lw, 14)), 1.25rem); line-height: 1.22; text-wrap: initial; }
  .guide-promo.has-lines h2 .l { display: block; white-space: nowrap; }
}

/* Donate: two ways to give */
.give-grid { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .give-grid { grid-template-columns: 3fr 2fr; } }
.give { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; align-content: start; }
.give h2 { font-size: var(--step-1); }
.give-main { border: 2px solid var(--red); }
.give-main .feature-kicker { color: var(--red); }

/* ---------- Phone-first refinements ---------- */
/* Header slides away while reading, returns on the first scroll up */
.top { transition: transform 0.22s ease; will-change: transform; }
.top.top-hide { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
.top:focus-within { transform: none; }
@media (prefers-reduced-motion: reduce) { .top { transition: none; } }
section[id], h2[id], .kit-out { scroll-margin-top: 7.5rem; }

/* The side panel only appears beside the article on wide screens */
@media (max-width: 959px) { .rail { display: none; } }

@media (max-width: 559px) {
  main { padding-block: 1rem 2.5rem; }
  h1 { font-size: 1.75rem; }
  .lead { font-size: 1.125rem; }
  .article { gap: 1.2rem; }
  /* Thumb-friendly buttons: full width, stacked */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .btn, .btn-row > a.btn { width: 100%; }
  .btn-row.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .btn-row.amounts > .btn { padding: 0; }
  .btn-row.pair { display: grid; grid-template-columns: 1fr 1fr; }
  .signup-form input, .signup-form .btn { flex: 1 1 100%; }
  /* Boxes breathe a little less */
  .inshort, .poll, .qcard, .signup, .guide-promo, .unlock, .support, .men, .give, .how-box { padding: 1rem; }
  /* Footer: bigger tap rows */
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .foot-cols ul { gap: 0; }
  .foot-cols li a { display: inline-block; padding-block: 0.4rem; }
  /* Stats table becomes a list of cards: big share, finding, base */
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack th, table.data.stack td { display: block; }
  table.data.stack tr { display: grid; grid-template-columns: 5rem minmax(0, 1fr); grid-template-areas: "share finding" "share base"; column-gap: 0.8rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
  table.data.stack td { border: 0; padding: 0; text-align: left; }
  table.data.stack td:nth-child(1) { grid-area: finding; font-size: var(--step-0); color: var(--ink); }
  table.data.stack td:nth-child(2) { grid-area: share; font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--teal); white-space: normal; line-height: 1.1; }
  table.data.stack td:nth-child(3) { grid-area: base; color: var(--ink-soft); font-size: var(--step--1); }
  table.data.stack tr.grp { display: block; padding: 1.2rem 0 0.2rem; border-bottom: 2px solid var(--ink); }
  table.data.stack tr.grp th { padding: 0; font-family: var(--font-display); font-size: var(--step-1); }
  table.data.stack-simple thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.stack-simple, table.data.stack-simple tbody, table.data.stack-simple tr, table.data.stack-simple td { display: block; }
  table.data.stack-simple tr { padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  table.data.stack-simple td { border: 0; padding: 0; }
  table.data.stack-simple td:first-child { color: var(--ink-soft); font-size: var(--step--1); }
  table.data.stack-simple td:last-child { font-size: var(--step-1); font-weight: 700; }
  .table-scroll { overflow: visible; }
}

/* Footer groups: tappable on phones, always open on wider screens */
.foot-group > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); }
.foot-group > summary::-webkit-details-marker { display: none; }
@media (max-width: 559px) {
  .foot-cols { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .foot-group { border-bottom: 1px solid var(--line); }
  .foot-group > summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: var(--step-0); }
  .foot-group > summary::after { content: "+"; font-size: 1.3rem; color: var(--teal); }
  .foot-group[open] > summary::after { content: "\2212"; }
  .foot-group ul { padding-bottom: 0.6rem; }
  /* The 100-men grid sits beside its number on phones */
  .men-figure { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dots num" "dots cap" "note note"; column-gap: 1rem; row-gap: 0.35rem; align-items: center; }
  .men-text { display: contents; }
  .dots { grid-area: dots; grid-template-columns: repeat(10, 9px); gap: 4px; }
  .dots i { width: 9px; height: 9px; }
  .men-num { grid-area: num; align-self: end; font-size: var(--step-3); }
  .men figcaption { grid-area: cap; align-self: start; line-height: 1.4; }
  .men-text > .note { grid-area: note; margin-top: 0.3rem; }
}
@media (min-width: 560px) {
  .foot-group > summary { pointer-events: none; font-size: var(--step--1); margin-bottom: 0.3rem; }
}

/* Membership box (replaces the old report sign-up) */
.member-box { background: var(--surface); border: 2px solid var(--red); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.55rem; }
.member-box h2 { font-size: var(--step-1); }
.member-box .feature-kicker { color: var(--red); }

/* Reports list */
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.8rem; }
.report-card h2 { font-size: var(--step-2); }
.report-card h2 a { color: var(--ink); text-decoration: none; }
.report-card h2 a:hover { text-decoration: underline; }
.print-only { display: none; }

/* Printing and PDF: just the content */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  html:not(:has(#kit-sheet)) .draft, html:not(:has(#kit-sheet)) header.top, html:not(:has(#kit-sheet)) .appeal,
  html:not(:has(#kit-sheet)) footer, html:not(:has(#kit-sheet)) .rail, html:not(:has(#kit-sheet)) .site-menu,
  html:not(:has(#kit-sheet)) .member-box, html:not(:has(#kit-sheet)) .guide-promo, html:not(:has(#kit-sheet)) .crumbs,
  html:not(:has(#kit-sheet)) .report-actions, html:not(:has(#kit-sheet)) .support { display: none !important; }
  html:not(:has(#kit-sheet)) body { background: #FFFFFF; color: #000000; }
  html:not(:has(#kit-sheet)) main { padding: 0; }
  .layout { display: block; }
  .print-only { display: block; font-size: 9pt; color: #333333; }
  .poll, .men, .stat, .inshort, .cite, .linklist li { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .linklist a { color: #000000; }
}

/* Tool cards: free tools and data, placed in context (teal); paid asks stay red */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: 0.45rem; justify-items: start; }
.tool-kicker { font-size: var(--step--1); font-weight: 700; color: var(--teal); }
.tool-card .tool-h { font-size: var(--step-1); }
.tool-card p { color: var(--ink-soft); }
@media (max-width: 559px) { .tool-card .btn { width: 100%; } .tool-card { padding: 1rem; } }

/* Footer: Learn, Free tools, Data, Members and Help always open; About last and closed (arranged 27 Oct 2026) */
.foot-cols { display: grid; gap: 1.4rem 1.5rem; grid-template-columns: 1fr; border-top: 0; }
.foot-sec h2 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--ink); margin: 0 0 0.25rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.foot-cols li a { display: flex; align-items: center; min-height: 40px; padding: 0; color: var(--ink-soft); }
.foot-cols li a:hover { color: var(--teal); }
.foot-about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot-about > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-weight: 700; font-size: var(--step-0); color: var(--ink); }
.foot-about > summary::-webkit-details-marker { display: none; }
.foot-about > summary::after { content: "+"; font-size: 1.3rem; color: var(--teal); }
.foot-about[open] > summary::after { content: "\2212"; }
.foot-about ul { padding-bottom: 0.5rem; }
@media (min-width: 760px) {
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .foot-cols ul { grid-template-columns: 1fr; }
  .foot-cols li a { min-height: 34px; }
  .foot-sec h2, .foot-about > summary { font-size: var(--step--1); }
  .foot-about { border: 0; }
  .foot-about > summary { min-height: 0; justify-content: flex-start; align-items: baseline; gap: 0.5rem; margin-bottom: 0.25rem; line-height: 1.2; }
  .foot-about > summary::after { font-size: 1rem; line-height: 1; }
}

/* Menu sections: open, links two per row; About closed at the end */
.sm-sections { border-top: 1px solid var(--line); display: grid; }
section.sm-sec { border-bottom: 1px solid var(--line); padding-block: 0.7rem 0.5rem; }
section.sm-sec h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 0.15rem; }
section.sm-sec ul, .sm-about ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem; }
section.sm-sec a, .sm-about a { display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0; border-left: 0; text-decoration: none; color: var(--ink); line-height: 1.3; }
section.sm-sec a:hover, .sm-about a:hover { color: var(--teal); }
section.sm-sec a[aria-current], .sm-about a[aria-current] { color: var(--teal); font-weight: 700; }
section.sm-sec .sm-all { font-weight: 700; color: var(--teal); }
.sm-about { border-bottom: 1px solid var(--line); }
.sm-about > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 700; font-size: 1.05rem; }
.sm-about > summary::-webkit-details-marker { display: none; }
.sm-about > summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--teal); }
.sm-about[open] > summary::after { content: "\2212"; }
.sm-about ul { padding-bottom: 0.5rem; }

/* Report form: hidden bot trap and status line */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 700; color: var(--teal); }
.form-msg.is-bad { color: var(--red); }

/* Membership offer: price box with what's included, and the two ways to get a guide */
.join-box { display: grid; gap: 0.7rem; padding: 1.1rem 1.15rem 1.2rem; border: 2px solid var(--red); border-radius: 16px; background: var(--surface); }
.join-box h2 { font-size: var(--step-3); }
.join-box .price-sub { font-size: var(--step-0); font-weight: 400; color: var(--ink-soft); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ticks li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); align-items: start; }
.ticks li::before { content: "\2713"; color: var(--teal); font-weight: 700; }
.unlock-options { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .unlock-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt-card { display: grid; gap: 0.5rem; align-content: start; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.opt-card.opt-main { border: 2px solid var(--red); }
.opt-card h3 { font-size: var(--step-1); }
.opt-card .price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--ink); }
.email-pdf { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--teal-tint); }
.email-pdf input[type=email] { width: 100%; min-height: 48px; font: inherit; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }

/* Guide page with the two ways to buy: the option cards carry the borders, so the wrapper stays plain */
.unlock.unlock-choice { background: none; border: 0; padding: 0; }
/* Two buttons side by side on a phone: tighter padding so labels stay on one line */
.btn-row.pair > .btn { padding-inline: 0.6rem; white-space: nowrap; }
.btn-row.pair.lead-first { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.email-pdf form { display: grid; gap: 0.6rem; }
.gate h2 { margin: 0; }

/* "Was this page helpful?", Ask us, symptom tracker */
.mp-set { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; min-width: 0; }
.mp-set legend { padding: 0; margin-bottom: 0.3rem; }
.helpful { border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: 0.7rem; }
.helpful h2 { font-size: var(--step-1); margin: 0; }
.helpful .helpful-btns { max-width: 22rem; }
.helpful-more { display: grid; gap: 0.7rem; }
.helpful-more legend { font-weight: 700; }
.ask-link { margin: 0.4rem 0 0; color: var(--ink-soft); }
.check textarea#a-q { min-height: 8rem; }
.trk-date { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 0.7rem; max-width: 100%; }
.trk-scale { display: grid; gap: 0.2rem; }
.trk-scale label { font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.trk-scale output { font-family: var(--font-display); color: var(--teal); min-width: 1.5rem; text-align: right; }
.trk-scale input[type=range] { width: 100%; accent-color: var(--teal); min-height: 32px; }
.trk-ends { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--ink-soft); }
.trk-chart svg { display: block; max-width: 100%; height: auto; }
.trk-grid { stroke: var(--line); stroke-width: 1; }
.trk-tick { fill: var(--ink-soft); font-size: 12px; font-family: var(--font-body); }
.trk-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trk-line2 { fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 4; }
.trk-line-dot { fill: var(--teal); }
.trk-line2-dot { fill: var(--ink-soft); }
.trk-log { display: grid; gap: 0.4rem; padding-left: 1.1rem; margin: 0; }

/* Cite and share: every report and data page asks for credit and a link */
.cite-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; }
.cite-box h2 { font-size: var(--step-1); margin: 0; }
.cite-box p { margin: 0; }
.cite-label { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.cite-ref { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; overflow-wrap: anywhere; }
.cite-code { display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9rem; }
.findings { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.press-num { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.press-num li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; }
.press-num .src { display: block; font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.2rem; }
@media print { .cite-box .btn-row, .helpful, .pref-src, .ask-link { display: none !important; } .cite-box { break-inside: avoid; } }

/* Live numbers from the data hub (statistics page and Census) */
.live-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.live-block { align-content: start; }
.article .live-h { font-size: var(--step-0); margin: 0.5rem 0 0; line-height: 1.3; }
.live-asof { margin-top: 0.2rem; }

/* Articles: contents list, callouts, related links, sources and illustrations */
:root { --fig-artery: #B3261E; --fig-vein: #3F6E9C; --fig-nerve: #B07A00; --fig-blood: #C9545A; --fig-blood-tint: #F2D3D2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fig-artery: #F08A80; --fig-vein: #8DB6E0; --fig-nerve: #E2B54D; --fig-blood: #D9777C; --fig-blood-tint: #4A2A2C; } }
:root[data-theme="dark"] { --fig-artery: #F08A80; --fig-vein: #8DB6E0; --fig-nerve: #E2B54D; --fig-blood: #D9777C; --fig-blood-tint: #4A2A2C; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.1rem; background: var(--surface); }
.toc-h { font-weight: 700; margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: var(--step--1); }
.art-intro { display: grid; gap: 0.8rem; }
.art-sec { scroll-margin-top: 5rem; }
.callout { border-left: 4px solid var(--teal); background: var(--surface); border-radius: 0 12px 12px 0; padding: 0.8rem 1rem; }
.read-also { font-size: var(--step--1); padding-top: 0.2rem; }
.read-also a { font-weight: 700; }
table.data.sources td:nth-child(2) { color: var(--ink-soft); }
@media (max-width: 560px) {
  table.data.sources thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.sources, table.data.sources tbody, table.data.sources tr, table.data.sources td { display: block; }
  table.data.sources tr { padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
  table.data.sources td { border: 0; padding: 0; }
}
.fig { margin: 0.4rem 0; display: grid; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.fig figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.fig figcaption strong { color: var(--ink); }
.fig-credit { display: block; margin-top: 0.3rem; }
.fig-svg { width: 100%; height: auto; display: block; max-width: 30rem; margin-inline: auto; }
.fig-svg text { font-family: var(--font-body); font-size: 14px; fill: var(--ink); }
.fig-svg .fig-h { font-weight: 700; font-size: 15px; }
.fig-svg .fig-label text, .fig-svg .fig-callout text { fill: var(--ink-soft); font-size: 13px; }
.fig-svg .fig-on-muscle { fill: var(--teal); font-weight: 700; }
.fig-skin { fill: var(--paper); stroke: var(--ink-soft); stroke-width: 1.5; }
.fig-chamber { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 2.5; }
.fig-chamber-full { fill: var(--fig-blood-tint); stroke: var(--teal); stroke-width: 3.5; }
.fig-spongy { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 1.5; }
.fig-urethra { fill: var(--ink-soft); }
.fig-artery { fill: var(--fig-artery); }
.fig-vein { fill: var(--fig-vein); }
.fig-nerve-dot { fill: var(--fig-nerve); }
.fig-nerve { fill: none; stroke: var(--fig-nerve); stroke-width: 3; stroke-linecap: round; }
.fig-muscle { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 2; }
.fig-fibre { fill: none; stroke: var(--teal); stroke-width: 1.2; opacity: 0.55; }
.fig-bone { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 2; }
.fig-opening { fill: var(--paper); stroke: var(--ink-soft); stroke-width: 1.5; }
.fig-callout line { stroke: var(--ink-soft); stroke-width: 1; }
.fig-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: step; }
.fig-steps li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.fig-steps strong { display: block; }
.fig-steps strong::before { counter-increment: step; content: counter(step) ". "; color: var(--teal); }
.fig-steps p { font-size: var(--step--1); color: var(--ink-soft); }
.fig-icon { width: 4.25rem; height: auto; }
.fig-artery-line { fill: none; stroke: var(--fig-artery); stroke-width: 3; stroke-linecap: round; }
.fig-flow { fill: none; stroke: var(--fig-blood); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Article charts: the numbers behind an article as bars. One hue (teal) on a lighter teal track that stands for 100%.
   Bars are 12px with a 4px rounded end, square at the start; the value sits at the right of the label row. */
.charts { display: grid; gap: 1rem; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: 0.9rem; min-width: 0; }
.chart-cap { display: grid; gap: 0.3rem; }
.chart-h { font-size: var(--step-1); }
.chart-sub { font-size: var(--step--1); color: var(--ink-soft); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.bar { display: grid; gap: 0.3rem; min-width: 0; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.bar-label { min-width: 0; line-height: 1.35; }
.bar-val { flex: none; font-weight: 700; font-size: var(--step-1); line-height: 1.1; }
.bar-track { display: block; height: 12px; background: var(--teal-tint); border-radius: 0 4px 4px 0; }
.bar-fill { display: block; height: 100%; min-width: 4px; background: var(--teal); border-radius: 0 4px 4px 0; }
.bar-base { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.35; }
.all-numbers { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.all-numbers > summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 700; color: var(--teal); min-height: 44px; display: flex; align-items: center; }
.all-numbers[open] > summary { border-bottom: 1px solid var(--line); }
.all-numbers .table-scroll { padding: 0.5rem 0.75rem 0.75rem; }
@media print { .all-numbers { display: block; } .all-numbers > summary { display: none; } }

/* Article images */
.art-img { margin: 0.4rem 0; display: grid; gap: 0.55rem; }
.art-img img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--teal-tint); }
.art-img figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.article .bars { padding: 0; margin: 0; gap: 1.1rem; }
.article .bars > li { margin: 0; }
.art-img-link { display: block; border-radius: 14px; }

/* Chart caveats (the article's own words) and our credit on every chart */
.chart-caveat { font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.6rem; }
.chart-credit { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.01em; }

/* ---------- Explorers: one interactive model per article, same layout every time ----------
   A single column at every width so it sits inside the article. Cards on the page tint, the readout sticks under the
   site header while you move the sliders, and every piece of text is written into the page before any script runs. */
.xp { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px;
      padding-block: 1.1rem 1.2rem; padding-inline: 1rem; display: grid; gap: 1.1rem; min-width: 0; scroll-margin-top: 4.5rem; }
.xp h3 { font-size: var(--step-1); }
.xp-head { display: grid; gap: 0.5rem; }
.xp-brand { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); }
.xp-brand strong { display: block; color: var(--ink); font-size: var(--step-0); }
.xp-by { display: block; }
.xp-head h2 { font-size: var(--step-2); }
.xp-lede { color: var(--ink-soft); }
.xp-note { background: var(--warn-tint); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 0.8rem 0.9rem; font-size: var(--step--1); line-height: 1.55; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.xp-chips-h { width: 100%; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.xp-chip { font: inherit; font-size: 0.95rem; font-weight: 700; min-height: 44px; padding: 0 0.95rem; border-radius: 999px; border: 1px solid var(--line);
           background: var(--paper); color: var(--ink); cursor: pointer; }
.xp-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.xp-reset { background: transparent; color: var(--teal); border-style: dashed; }
.xp-sitrow { display: grid; gap: 0.4rem; }
.xp-seg { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.xp-seg button { flex: 1 1 0; min-width: 6.5rem; min-height: 44px; font: inherit; font-size: 0.95rem; font-weight: 700; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.xp-seg button + button { border-left: 1px solid var(--line); }
.xp-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.xp-hint { font-size: var(--step--1); color: var(--ink-soft); }
/* The live strip: a small copy of the picture plus the result in plain words. It sticks under the site header the
   whole time you are in the explorer, so the result never scrolls away while you move a slider. */
.xp-strip { position: sticky; top: var(--xp-top, 60px); z-index: 4; margin-inline: -1rem; padding: 0.4rem 1rem 0.5rem; background: var(--surface); }
.xp-strip-in { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 0.7rem; align-items: center; background: var(--surface);
               border: 2px solid var(--line); border-radius: 12px; padding: 0.35rem 0.65rem 0.35rem 0.4rem; box-shadow: 0 6px 16px rgba(15, 30, 35, 0.14); }
.xp-strip-in.is-flash { border-color: var(--teal); }
.xp-strip-txt { display: grid; gap: 0.1rem; min-width: 0; line-height: 1.2; }
.xp-strip-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4rem; }
.xp-strip-l { font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.xp-ro-ehs { font-size: 1.05rem; white-space: nowrap; }
.xp-ro-plain { font-size: 0.82rem; font-weight: 700; }
.xp-strip-weak { font-size: 0.76rem; color: var(--ink-soft); }
.xp-strip-weak b { color: var(--red); }
.xm-svg { display: block; width: 100%; height: auto; }
.xm-svg text { font-family: var(--font-body); }
.xm-wire { stroke: var(--fig-nerve); stroke-width: 3; stroke-linecap: round; }
.xm-wire.is-sore { stroke: var(--red); stroke-dasharray: 3 3; }
.xm-svg .xp-tap { stroke-width: 2; }
.xm-handle { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.xm-pipe { stroke: var(--dot-off); stroke-width: 10; stroke-linecap: round; }
.xm-blood { stroke: var(--fig-artery); }
.xm-svg .xp-balloon { stroke-width: 2; }
.xm-valve { stroke: var(--fig-vein); stroke-width: 4.5; stroke-linecap: round; }
.xm-lab { font-size: 10.5px; font-weight: 700; fill: var(--ink-soft); }
.xp-live { scroll-margin-top: calc(var(--xp-top, 60px) + 6px); }
.xp-sub-h { margin-bottom: -0.5rem; }
.xp-ctrl-hint { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.2rem; }
.xp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.xp-step { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.9rem; display: grid; gap: 0.45rem; }
.xp-step.is-weak { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.xp-step-n { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 0.5rem; }
.xp-flag { color: var(--red); background: var(--warn-tint); border-radius: 999px; padding: 0 0.6rem; font-size: 0.8rem; }
.xp-step-t { font-size: var(--step-1); }
.xp-step-x { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.xp-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; align-items: baseline; }
.xp-meter-l { font-size: var(--step--1); color: var(--ink-soft); }
.xp-word { font-weight: 700; }
.xp-track { grid-column: 1 / -1; display: block; height: 12px; background: var(--teal-tint); border-radius: 0 4px 4px 0; }
.xp-fill { display: block; height: 100%; min-width: 0; background: var(--teal); border-radius: 0 4px 4px 0; }
.xp-step.is-weak .xp-fill { background: var(--red); }
.xp-tags:empty { display: none; }
.xp-tags, .xp-reach { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.xp-tag { font-size: 0.8rem; font-weight: 700; line-height: 1.3; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface); }
.xp-tag.is-acts { background: var(--teal-tint); border-color: transparent; color: var(--teal); }
.xp-result { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.9rem; }
.xp-ehs-label { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.xp-ehs { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.2rem; }
.xp-ehs b { font-size: 3rem; line-height: 1; }
.xp-ehs-txt { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; min-width: 0; flex: 1 1 12rem; }
.xp-scale { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.xp-scale li { height: 30px; border-radius: 6px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); }
.xp-scale li.is-on { background: var(--teal); color: var(--on-teal); }
.xp-scale-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.4rem; }
.xp-side { margin: 0; display: grid; gap: 0.5rem; }
.xp-side div { display: flex; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.xp-side dt { color: var(--ink-soft); font-size: var(--step--1); }
.xp-side dd { margin: 0; font-weight: 700; text-align: right; }
.xp-plates { display: grid; gap: 0.8rem; }
.xp-plate { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.6rem 0.5rem; display: grid; gap: 0.4rem; }
.xp-plate-h { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding-inline: 0.3rem; font-weight: 700; }
.xp-plate-sub { font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.xp-legend { list-style: none; margin: 0; padding: 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-size: 0.8rem; color: var(--ink-soft); }
.xp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; vertical-align: -1px; }
.k-muscle { --c: var(--teal); } .k-nerve { --c: var(--fig-nerve); } .k-artery { --c: var(--fig-artery); } .k-vein { --c: var(--fig-vein); } .k-warn { --c: var(--ink-soft); } .k-blood { --c: var(--fig-blood); }
.xp-legend i { background: var(--c); }
.xp-svg { display: block; width: 100%; height: auto; }
.xp-svg text { font-family: var(--font-body); }
.xp-lab { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.xp-state { font-size: 11.5px; fill: var(--ink-soft); }
.xp-credit { font-size: 9px; fill: var(--ink-soft); opacity: 0.85; }
.xp-leader { stroke: var(--ink-soft); stroke-width: 0.8; fill: none; opacity: 0.7; }
.xp-outline { fill: none; stroke: var(--line); stroke-width: 2; }
.xp-bladder { fill: var(--teal-tint); stroke: var(--ink-soft); stroke-width: 1; }
.xp-bone { fill: var(--dot-off); stroke: var(--ink-soft); stroke-width: 1; }
.xp-bone-line { fill: none; stroke: var(--dot-off); stroke-width: 14; stroke-linecap: round; }
.xp-muscle { fill: none; stroke: var(--teal); stroke-linecap: round; }
.xp-fibres { fill: none; stroke: var(--surface); stroke-width: 1.4; opacity: 0.7; }
.xp-penis { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.2; }
.xp-art-base, .xp-art-dash { fill: none; stroke: var(--fig-artery); stroke-width: 3; stroke-linecap: round; }
.xp-vein-base, .xp-vein-dash { fill: none; stroke: var(--fig-vein); stroke-width: 3; stroke-linecap: round; }
.xp-art-base, .xp-vein-base { opacity: 0.3; }
.xp-art-dash, .xp-vein-dash { stroke-dasharray: 3 8; }
.xp-nerve { fill: none; stroke: var(--fig-nerve); stroke-linecap: round; }
.xp-nerve-base { stroke-width: 2.6; opacity: 0.45; }
.xp-nerve-dash { stroke-width: 3.2; stroke-dasharray: 2 12; }
.xp-nerve.is-sore { stroke: var(--red); }
.xp-skin { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.2; }
.xp-mid { stroke: var(--ink-soft); stroke-width: 2; opacity: 0.35; }
.xp-ch { fill: var(--fig-blood); stroke: var(--fig-artery); stroke-width: 1.2; }
.xp-sinus circle { fill: none; stroke: var(--surface); stroke-width: 1; opacity: 0.6; }
.xp-pulse, .xp-topart { fill: var(--fig-artery); stroke: var(--surface); stroke-width: 1.2; }
.xp-sv { stroke: var(--fig-vein); stroke-linecap: round; }
.xp-topvein { fill: var(--fig-vein); }
.xp-nv { fill: var(--fig-nerve); }
.xp-nv.is-sore { fill: var(--red); }
.xp-controls { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.3rem; }
.xp-controls h3 + .xp-slider, .xp-controls h3 + .xp-treat { margin-top: 0.3rem; }
.xp-controls h3:not(:first-child) { margin-top: 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.xp-slider { display: grid; gap: 0.15rem; padding-block: 0.4rem 0.6rem; }
.xp-slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.xp-slider label { font-weight: 700; }
.xp-slider output { font-size: var(--step--1); font-weight: 700; padding: 0.05rem 0.55rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.xp-slider output.is-moved { border-color: var(--teal); color: var(--teal); }
.xp-slider p, .xp-treat p { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.xp-ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); }
.xp input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 15%; touch-action: pan-y; }
.xp input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p), var(--teal-tint) var(--p)); }
.xp input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--teal-tint); }
.xp input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c); }
.xp input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); margin-top: -11px; }
.xp input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.xp-treat { display: grid; gap: 0.45rem; padding-block: 0.5rem; }
.xp-treat + .xp-treat { border-top: 1px dashed var(--line); padding-top: 0.8rem; }
.xp-switch { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.xp-switch > span { display: grid; gap: 0.35rem; }
.xp-switch input { -webkit-appearance: none; appearance: none; flex: none; width: 48px; height: 28px; margin: 0.1rem 0 0; border-radius: 999px; background: var(--dot-off); position: relative; cursor: pointer; }
.xp-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); transition: left 0.15s ease; }
.xp-switch input:checked { background: var(--teal); }
.xp-switch input:checked::after { left: 23px; }
.xp-insight { background: var(--teal-tint); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.6rem; }
.xp-insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.xp-insight-list li { position: relative; padding-left: 1.1rem; line-height: 1.55; }
.xp-insight-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.xp-insight-list li.is-warn::before { background: var(--red); }
.xp-insight-list li.is-nerve::before { background: var(--fig-nerve); }
.xp-insight-list li.is-vein::before { background: var(--fig-vein); }
.xp-examples, .xp-data { display: grid; gap: 0.7rem; }
.xp-examples > p, .xp-data > p { font-size: var(--step--1); color: var(--ink-soft); }
.xp-ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.xp-ex-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.9rem; display: grid; gap: 0.65rem; justify-items: start; }
.xp-ex-list p { line-height: 1.5; }
.xp-ex-list li > * { margin: 0; }
.xp-ex-h { font-size: var(--step-0); }
.xp-ex-facts { margin: 0; display: grid; gap: 0.3rem; width: 100%; }
.xp-ex-facts div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 0.6rem; border-top: 1px solid var(--line); padding-top: 0.3rem; }
.xp-ex-facts dt { font-size: var(--step--1); color: var(--ink-soft); }
.xp-ex-facts dd { margin: 0; font-weight: 700; font-size: var(--step--1); line-height: 1.4; }
.xp-ex-try { font: inherit; font-size: 0.92rem; font-weight: 700; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--teal);
             background: transparent; color: var(--teal); cursor: pointer; }
.xp-ex-try[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }
.xp:not(.is-live) .xp-ex-try { display: none; }
.xp-table th[scope="row"] { font-weight: 700; }
.xp .chart { background: var(--paper); }
.xp .chart-h { font-size: var(--step-0); font-family: var(--font-display); }
.xp-doctor { display: grid; gap: 0.7rem; }
.xp-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.5rem; }
.xp-card ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.3rem; }
.xp-urgent { border-color: var(--red); }
.xp-urgent h3 { color: var(--red); }
.xp-foot { display: grid; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.xp-copy { font-weight: 700; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .xp-switch input::after { transition: none; } }
@media print { .xp-strip, .xp-ex-try, .xp-chips, .xp-sitrow, .xp-controls input { display: none; } }
.xp-live { display: grid; gap: 1.1rem; }
.chart-h { margin: 0; }
.xp-seg button { font-size: 0.88rem; padding-inline: 0.4rem; }
.xp-table td, .xp-table th { white-space: normal; }
.xp-table td { text-align: center; }
/* Shown only if a page of ours turns up on someone else's website */
.copied { background: var(--warn-tint); color: var(--ink); font-size: var(--step--1); border-bottom: 2px solid var(--red); }
.copied .wrap { padding-block: 0.6rem; }

/* The explorer picture: plain shapes, big labels, every change set directly so it follows the slider */
.xp-plate-x { font-size: var(--step--1); color: var(--ink-soft); padding-inline: 0.3rem; line-height: 1.5; }
.xp-pipe { fill: none; stroke: var(--dot-off); stroke-width: 16; stroke-linecap: round; }
.xp-blood { fill: none; stroke: var(--fig-artery); stroke-width: 9; stroke-linecap: round; }
.xp-flow { stroke-dasharray: 10 6; stroke-linecap: butt; }
.xp-brain { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 2; }
.xp-brain.is-off { fill: var(--dot-off); stroke: var(--ink-soft); }
.xp-in { font-size: 13px; font-weight: 700; fill: var(--ink); }
.xp-wire { fill: none; stroke: var(--fig-nerve); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.35; }
.xp-wire.is-sore { stroke: var(--red); opacity: 0.8; stroke-dasharray: 3 3; }
.xp-wire-flow { fill: none; stroke: var(--fig-nerve); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 14; }
.xp-band { fill: var(--teal); }
.xp-pinch path { fill: var(--ink); }
.xp-tap { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 3; }
.xp-handle { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.xp-balloon-bg { fill: var(--surface); }
.xp-balloon-fill { fill: var(--fig-blood); }
.xp-balloon { fill: none; stroke: var(--fig-artery); stroke-width: 2.5; }
.xp-valve { stroke: var(--fig-vein); stroke-width: 6; stroke-linecap: round; }
.xp-drops circle { fill: var(--fig-blood); }
.xp-small { font-size: 11.5px; fill: var(--ink-soft); }
.xp-step-tag { font-size: 11.5px; font-weight: 700; fill: var(--teal); }
.xp-svg .xp-lab { font-size: 13.5px; }
.xp-svg .xp-state { font-size: 12.5px; fill: var(--ink-soft); }
.xp-svg .xp-warn-t { fill: var(--red); font-weight: 700; }


/* ---------- Guides: the same family as the articles, laid out as a step-by-step guide */
.g-kind { justify-self: start; display: inline-block; font-size: var(--step--1); font-weight: 700; color: var(--teal); background: var(--teal-tint); border-radius: 999px; padding: 0.15rem 0.7rem; }
.guide .lead { color: var(--ink-soft); }
.g-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; counter-reset: gch; }
.g-chapters li { counter-increment: gch; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.6rem; padding: 0.7rem 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.g-chapters li::before { content: counter(gch); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.g-chapters strong, .g-chapters a { font-weight: 700; color: var(--ink); text-decoration: none; }
.g-chapters a strong { color: var(--teal); text-decoration: underline; text-underline-offset: 0.15em; }
.g-chapters span { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; }
.g-features { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.g-features li { position: relative; padding-left: 1.6rem; font-weight: 700; font-size: var(--step--1); }
.g-features li::before { content: ""; position: absolute; left: 0.1rem; top: 0.3em; width: 0.85rem; height: 0.5rem; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.g-for ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.g-member { display: grid; gap: 1.6rem; }
.g-member-flag { font-size: var(--step--1); color: var(--ink-soft); background: var(--teal-tint); border-radius: 10px; padding: 0.6rem 0.8rem; }
.g-ch > h2 { display: flex; gap: 0.6rem; align-items: baseline; }
.g-ch-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-family: var(--font-body); font-size: 1rem; transform: translateY(-0.15em); }
.g-ch h3 { margin-top: 0.4rem; }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; counter-reset: gstep; }
.g-steps > li { counter-increment: gstep; position: relative; padding: 0.75rem 0.9rem 0.75rem 3.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.5; }
.g-steps > li::before { content: counter(gstep); position: absolute; left: 0.8rem; top: 0.7rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.g-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.g-check > li { position: relative; padding: 0.65rem 0.8rem 0.65rem 2.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.5; }
.g-check > li::before { content: ""; position: absolute; left: 0.85rem; top: 0.85rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--teal); border-radius: 5px; }
.g-check.is-live > li::before { display: none; }
.gt-tick { position: absolute; left: 0.45rem; top: 0.4rem; width: 44px; height: 44px; margin: -0.2rem 0 0 -0.2rem; border: 0; background: transparent; cursor: pointer; padding: 0; }
.gt-tick::before { content: ""; position: absolute; left: 0.6rem; top: 0.6rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--teal); border-radius: 5px; background: var(--surface); }
.gt-tick[aria-pressed="true"]::before { background: var(--teal); }
.gt-tick[aria-pressed="true"]::after { content: ""; position: absolute; left: 1.02rem; top: 0.72rem; width: 0.32rem; height: 0.62rem; border-right: 3px solid var(--on-teal); border-bottom: 3px solid var(--on-teal); transform: rotate(45deg); }
.g-check > li.is-done { color: var(--ink-soft); }
.callout-tip { border-left-color: var(--teal); background: var(--teal-tint); }
.callout-warn { border-left-color: var(--red); background: var(--warn-tint); }
.callout-warn p { margin: 0; }
.callout-warn .warn-list { margin: 0.45rem 0 0.45rem; padding-left: 1.15rem; display: grid; gap: 0.2rem; }
.callout-warn .warn-list + p { margin-top: 0.5rem; }

/* ---------- Guide tools (interactive) */
.gt { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; padding-block: 1rem 1.1rem; padding-inline: 1rem; display: grid; gap: 0.9rem; min-width: 0; scroll-margin-top: 4.5rem; }
.gt-head { display: grid; gap: 0.4rem; }
.gt-brand { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); }
.gt-brand strong { display: block; color: var(--ink); font-size: var(--step-0); }
.gt-by { display: block; }
.gt h3 { font-size: var(--step-1); }
.gt h4 { font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; margin: 0; }
.gt-lede, .gt-note { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.5; }
.gt-foot { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.6rem; }
.gt-chip { font: inherit; font-size: 0.92rem; font-weight: 700; min-height: 44px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; line-height: 1.25; }
.gt-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.gt-chip:disabled { cursor: default; opacity: 1; }
.gt-img { margin: 0; }
.gt-img img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--paper); }
/* routine */
.gt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: gts; }
.gt-step { counter-increment: gts; display: grid; gap: 0.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; }
.gt-step h4::before { content: counter(gts) ". "; color: var(--teal); }
.gt-meta { font-weight: 700; color: var(--teal); font-size: var(--step--1); }
.gt-how { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.25rem; font-size: var(--step--1); line-height: 1.5; }
.gt-feel, .gt-avoid { font-size: var(--step--1); line-height: 1.5; }
.gt-avoid strong { color: var(--red); }
@media (min-width: 640px) { .gt-step { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; } }
.gt-player { display: grid; gap: 0.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem; }
.gt-p-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.gt-p-bar { height: 6px; border-radius: 3px; background: var(--teal-tint); overflow: hidden; }
.gt-p-bar i { display: block; height: 100%; width: 0; background: var(--teal); }
.gt-p-img { margin: 0; }
.gt-p-img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.gt-p-name { font-size: var(--step-1) !important; }
.gt-p-side { font-weight: 700; color: var(--teal); }
.gt-p-timer { position: relative; display: grid; justify-items: center; gap: 0.2rem; }
.gt-p-timer svg { width: 132px; height: 132px; }
.gt-ring-bg { fill: none; stroke: var(--teal-tint); stroke-width: 9; }
.gt-ring { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; }
.gt-p-timer.is-rest .gt-ring { stroke: var(--amber); }
.gt-p-secs { position: absolute; top: 44px; left: 0; right: 0; text-align: center; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gt-p-cue { text-align: center; font-size: var(--step--1); color: var(--ink-soft); max-width: 26rem; }
.gt-p-btns { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 0.5rem; align-items: center; }
.gt-p-btns .btn { padding: 0 0.6rem; min-width: 0; }
.gt-p-how summary, .gt-all summary { cursor: pointer; font-weight: 700; color: var(--teal); min-height: 44px; display: flex; align-items: center; }
.gt-p-how ul { margin: 0 0 0.4rem; padding-left: 1.15rem; font-size: var(--step--1); display: grid; gap: 0.25rem; }
.gt-p-feel, .gt-p-avoid { font-size: var(--step--1); }
.gt-p-avoid strong { color: var(--red); }
.gt-all > .gt-steps { margin-top: 0.4rem; }
/* breathing guide */
.gt-pace-svg { display: block; width: 100%; max-width: 26rem; height: auto; margin-inline: auto; }
.gt-pace-svg text { font-family: var(--font-body); }
.gp-torso { fill: var(--teal-tint); stroke: var(--line); stroke-width: 2; }
.gp-rib { fill: none; stroke: var(--dot-off); stroke-width: 3; stroke-linecap: round; }
.gp-dia { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round; }
.gp-pf { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; }
.gp-arrow path { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gp-arrow { transform-box: fill-box; transform-origin: center; }
.gp-arrow.is-up { transform: rotate(180deg); }
.gp-lab { font-size: 15px; font-weight: 700; fill: var(--ink); }
.gp-sub, .gp-mid { font-size: 12.5px; fill: var(--ink-soft); }
.gp-credit { font-size: 9px; fill: var(--ink-soft); }
.gp-circle-bg { fill: var(--teal-tint); }
.gp-circle { fill: var(--teal); opacity: 0.85; }
.gt-pace-ctl { display: grid; gap: 0.6rem; }
.gt-pace-phase { text-align: center; display: grid; gap: 0.1rem; min-height: 3.6rem; }
.gt-pace-phase b { font-family: var(--font-display); font-size: var(--step-2); }
.gt-pace-phase span { font-size: 1.4rem; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.gt-pace-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.gt-pace-l { width: 100%; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.gt-pace-ctl .gt-p-btns { grid-template-columns: 1fr 1fr; }
.gt-pace-left { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gt-pace-how { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: var(--step--1); line-height: 1.5; }
/* planner */
.gt-qs { display: grid; gap: 0.8rem; }
.gt-q { border: 0; margin: 0; padding: 0; display: grid; gap: 0.45rem; min-width: 0; }
.gt-q legend { font-weight: 700; padding: 0; margin-bottom: 0.45rem; }
.gt-hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.gt-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gt-plan-result { background: var(--teal-tint); border-radius: 12px; padding: 0.9rem; display: grid; gap: 0.5rem; }
.gt-plan-h { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.gt-plan-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; line-height: 1.5; }
.gt-plan-note { font-size: var(--step--1); color: var(--ink-soft); }
.gt-plan-all { display: grid; gap: 0.5rem; }
.gt-plan-all em { font-style: normal; font-weight: 700; color: var(--teal); }
/* body map */
.gt-map { display: grid; gap: 0.8rem; }
.gt-map-art { position: relative; max-width: 30rem; width: 100%; margin-inline: auto; }
.gt-map-art img, .gt-map-art svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.gt-map-img { margin: 0; }
.gt-spot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); background: var(--teal); color: var(--on-teal); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 30, 35, 0.3); padding: 0; }
.gt-spot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.gt-spot[aria-pressed="true"] { background: var(--ink); color: var(--paper); } /* red is kept for warning signs */
.gt ol.gt-areas, .gt ol.gt-steps, .gt ul.gt-cards { list-style: none; margin: 0; padding: 0; }
.gt-areas { display: grid; gap: 0.5rem; }
.gt-area { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem; display: grid; gap: 0.5rem; }
.gt-area-h { display: flex; gap: 0.6rem; align-items: center; }
.gt-n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--teal); color: var(--on-teal); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 0.85rem; }
.gt-area-b { display: grid; gap: 0.45rem; font-size: var(--step--1); line-height: 1.5; }
.gt-area-b ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.2rem; }
.gt-stat { color: var(--teal); }
.gt-sub-h { font-weight: 700; }
.gt-doc { background: var(--warn-tint); border-radius: 8px; padding: 0.45rem 0.6rem; }
.gt-map.is-live .gt-area-h, .gt-bodymap.is-live .gt-area-h { cursor: pointer; min-height: 44px; }
.gt-bodymap.is-live .gt-area:not(.is-open) .gt-area-b { display: none; }
.gt-bodymap.is-live .gt-area.is-open { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.gt-bodymap.is-live .gt-area.is-open .gt-n { background: var(--ink); color: var(--paper); }
.gt-bodymap:not(.is-live) .gt-spot { pointer-events: none; }
/* treatment finder */
.gt-filters { display: grid; gap: 0.6rem; }
.gt-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.gt-filter-l { width: 100%; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.gt-count-row { display: flex; gap: 0.8rem; align-items: center; font-size: var(--step--1); color: var(--ink-soft); }
.gt-filter-reset { font: inherit; font-weight: 700; color: var(--teal); background: none; border: 0; text-decoration: underline; min-height: 44px; cursor: pointer; }
.gt-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.gt-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem; display: grid; gap: 0.45rem; font-size: var(--step--1); line-height: 1.5; }
.gt-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.gt-tag { font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--teal-tint); color: var(--teal); }
.gt-facts { margin: 0; display: grid; gap: 0.35rem; }
.gt-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.6rem; border-top: 1px solid var(--line); padding-top: 0.35rem; }
.gt-facts dt { color: var(--ink-soft); }
.gt-facts dd { margin: 0; }
.gt-card-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--teal); }
.gt-card-more[open] > summary { margin-bottom: 0.35rem; }
.gt-card-more > summary { list-style: none; gap: 0.5rem; justify-content: space-between; }
.gt-card-more > summary::-webkit-details-marker { display: none; }
.gt-card-more > summary::after { content: "+"; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; }
.gt-card-more[open] > summary::after { content: "\2212"; }
.gt-card-more .gt-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
.gt-card-more .gt-facts dt { font-weight: 700; font-size: 0.85rem; }
.gt-facts-keep div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
.gt-facts-keep dt { font-weight: 700; font-size: 0.85rem; }
@media print { .gt-card-more > summary { display: none; } .gt-card-more::details-content { content-visibility: visible; display: block; } }
/* day planner */
.gt-level-q { font-weight: 700; }
.gt-level-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.gt-level-btn { font: inherit; font-weight: 700; font-size: 0.92rem; min-height: 52px; padding: 0.3rem 0.4rem; border-radius: 12px; border: 2px solid var(--c, var(--line)); background: var(--surface); color: var(--ink); cursor: pointer; line-height: 1.2; }
.gt-level-btn[aria-pressed="true"] { background: var(--c); color: var(--on-teal); }
.gt-level-btn:disabled { cursor: default; }
.gt-level { border-left: 5px solid var(--c, var(--teal)); background: var(--paper); border-radius: 0 12px 12px 0; padding: 0.8rem 0.9rem; display: grid; gap: 0.5rem; }
.gt-level ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; line-height: 1.5; }
.gt-levels:not(.is-live) .gt-level-btns { display: none; }
.k-green { --c: var(--teal); } .k-amber { --c: var(--amber); } .k-red { --c: var(--red); }
.gt-level-btn.k-amber[aria-pressed="true"] { color: var(--paper); }
@media print { .gt-player, .gt-pace-ctl, .gt-spot, .gt-filters, .gt-level-btns { display: none; } .gt-level[hidden] { display: grid !important; } }
/* numbness map and the checking loop */
.nm-svg { display: block; width: 100%; height: auto; background: var(--paper); border-radius: 12px; }
.nm-svg text { font-family: var(--font-body); }
.nm-body { fill: var(--teal-tint); }
.nm-wall { stroke: var(--line); stroke-width: 2; }
.nm-root { fill: none; stroke: var(--ink-soft); stroke-width: 10; stroke-linecap: round; opacity: 0.25; stroke-dasharray: 2 6; }
.nm-pf { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; opacity: 0.7; }
.nm-lab { font-size: 11px; fill: var(--ink-soft); font-weight: 700; }
.nm-scrotum { fill: var(--dot-off); stroke: var(--ink-soft); stroke-width: 1.5; }
.nm-shaft { fill: var(--dot-off); stroke: var(--ink-soft); stroke-width: 1.5; }
.nm-glans { fill: var(--line); stroke: var(--ink-soft); stroke-width: 1.5; }
.nm-credit, .loop-svg .loop-credit { font-size: 9px; fill: var(--ink-soft); }
.loop-ring { fill: none; stroke: var(--teal-tint); stroke-width: 10; }
.loop-arrow { fill: var(--teal); }
.loop-step rect { fill: var(--surface); stroke: var(--teal); stroke-width: 2; }
.loop-step.is-key rect { stroke: var(--red); }
.loop-svg .loop-step text { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.loop-svg .loop-mid { font-size: 13px; fill: var(--teal); font-weight: 700; }
/* Shared pieces for the chain explorers (explorers/chain.js) */
.xpc-firm { fill: var(--teal); }
.xpc-wall { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.xpc-cold path { fill: none; stroke: var(--fig-vein); stroke-width: 2.6; stroke-linecap: round; }
.xm-arrow { fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xp-ehs.is-word b { font-size: var(--step-2); line-height: 1.15; }
.xp-scale { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.xp-scale.is-words li { height: auto; min-height: 30px; padding: 0.2rem 0.25rem; font-size: 0.72rem; line-height: 1.15; text-align: center; }
.xpc-body { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.xpc-diaphragm, .xpc-belly { fill: none; stroke: var(--ink-soft); stroke-width: 4; stroke-linecap: round; }
.xpc-breath { font-size: 12px; font-weight: 700; fill: var(--teal); }
.xpc-ok path { fill: var(--teal); }
.xpc-bad path { fill: var(--red); }
.xpc-bowel { fill: none; stroke: var(--dot-off); stroke-width: 16; stroke-linecap: round; }
.xpc-tube { fill: none; stroke: var(--fig-vein); stroke-linecap: round; opacity: 0.8; }
.xpc-pill { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 1.5; }
.xpc-pill-t { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.xpc-node { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 2; }
.xpc-heat { fill: var(--red); }
.xpc-loop { fill: none; stroke: var(--dot-off); stroke-width: 8; stroke-linecap: round; }
.xpc-loop-flow { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 10; }
.xpc-head { fill: var(--teal); }
.xpc-mid { font-size: 17px; font-weight: 700; fill: var(--ink); }
.xpc-tile { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.xpc-tilewrap.is-weak .xpc-tile { stroke: var(--red); stroke-width: 2.5; }
.xpc-meter-bg { fill: var(--teal-tint); }
.xpc-meter { fill: var(--teal); }
.xpc-tilewrap.is-weak .xpc-meter { fill: var(--red); }
.xpc-cov { font-size: 11px; font-weight: 700; fill: var(--teal); }
.xpc-zig { fill: none; stroke: var(--fig-nerve); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.xpc-drop { fill: var(--fig-blood); }
.xpc-head2 { fill: var(--teal-tint); stroke: var(--ink-soft); stroke-width: 2; }
.xpc-strain path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.xpc-strain circle { fill: var(--red); }
.xpc-dial { fill: none; stroke: var(--teal-tint); stroke-width: 12; stroke-linecap: round; }
.xpc-dial-hot { fill: none; stroke: var(--red); stroke-width: 12; stroke-linecap: round; opacity: 0.55; }
.xpc-needle { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.xpc-hub { fill: var(--ink); }
.xpc-axis { stroke: var(--line); stroke-width: 1.5; }
.xpc-wave { fill: none; stroke: var(--fig-nerve); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-wall { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.xpc-seat { fill: var(--dot-off); }
.xpc-cushion { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* Morning Erection Explorer: one night of sleep */
.xpc-moon { fill: var(--dot-off); stroke: var(--ink-soft); stroke-width: 1.5; }
.xpc-sun circle { fill: var(--amber-tint); stroke: var(--amber); stroke-width: 2; }
.xpc-sun path { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.xpc-rem { fill: var(--teal); }
.xpc-night.is-off .xpc-rem { fill: var(--dot-off); }
.xpc-night.is-off .xpc-moon, .xpc-night.is-off .xpc-sun { opacity: 0.45; }
/* Recovery Timeline Explorer: the overall dots */
.xpc-dot { fill: var(--dot-off); }
.xpc-dot.is-on { fill: var(--teal); }
/* Kegel Explorer: the pelvic floor sling */
.xpc-sling { fill: none; stroke: var(--teal); stroke-linecap: round; }
/* Curve Explorer: the plaque */
.xpc-plaque { fill: var(--ink-soft); }
.xpc-shaft-o { stroke: var(--ink-soft); stroke-linecap: round; }
.xpc-shaft { stroke: var(--surface); stroke-linecap: round; }
/* Pelvic Symptom Explorer: the prostate */
.xpc-prost { fill: var(--amber-tint); stroke: var(--amber); stroke-width: 2; }
/* PFS and HFS Explorer */
.xpc-dht { fill: var(--teal); }
.xpc-dht + .xp-in { fill: var(--on-teal); }
.xpc-pill2 { fill: var(--amber); }
.xpc-block { stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.xpc-heart-bg { fill: var(--dot-off); }
.xpc-heart { fill: var(--fig-blood); }
.xpc-heart-o { fill: none; stroke: var(--fig-artery); stroke-width: 2; }
/* Size Explorer: the fat pad */
.xpc-fat { fill: var(--amber-tint); stroke: var(--amber); stroke-width: 1.5; opacity: 0.92; }

/* What the research says: evidence levels and studies cited */
.research h3 { font-size: var(--step-0); margin-top: 0.4rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin: 0.2rem 0 0.4rem; }
.ev { border: 1px solid var(--line); border-radius: 12px; padding: 0.65rem 0.8rem; background: var(--surface); display: grid; gap: 0.25rem; min-width: 0; }
.ev dt { font-size: var(--step--1); color: var(--ink-soft); }
.ev dd { margin: 0; font-weight: 700; }
.ev-v { display: inline-flex; width: fit-content; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--warn-tint); color: var(--ink); }
.ev-low, .ev-low-to-moderate { background: var(--amber-tint); color: var(--ink); }
.ev-moderate, .ev-high { background: var(--teal-tint); color: var(--teal); }
.refs { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.refs summary { cursor: pointer; font-weight: 700; padding: 0.55rem 0; }
.refs ol { padding-left: 1.2rem; display: grid; gap: 0.45rem; font-size: var(--step--1); }
.refs a { overflow-wrap: anywhere; }
.ev { align-content: start; }
.ev-v { font-size: var(--step--1); line-height: 1.35; padding: 0.2rem 0.65rem; }
/* Part 2 explorers */
.xpc-leg { fill: var(--teal-tint); stroke: var(--line); stroke-width: 1; }
.xpc-band { fill: none; stroke: var(--amber); stroke-linecap: round; opacity: 0.9; }
.xpc-band.is-tight { stroke: var(--red); }
.xpc-chair path { fill: none; stroke: var(--ink-soft); stroke-width: 4; stroke-linecap: round; }
.xpc-glans { fill: #C9D9E4; stroke: var(--ink-soft); stroke-width: 1.2; }
.xpc-glans-warm { fill: #E9A29A; }
.xpc-frost path { fill: none; stroke: #7FB3D5; stroke-width: 2; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xpc-glans { fill: #3A4A55; } :root:not([data-theme="light"]) .xpc-glans-warm { fill: #A9655E; } }
:root[data-theme="dark"] .xpc-glans { fill: #3A4A55; }
:root[data-theme="dark"] .xpc-glans-warm { fill: #A9655E; }
.xpc-pinch { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.xpc-leak path { fill: var(--fig-vein); }
.xpc-spark path { fill: var(--amber); }
.xpc-tapbody { fill: var(--surface); stroke: var(--fig-artery); stroke-width: 3; }
.xpc-taphandle { fill: var(--fig-artery); }
.xpc-chamber { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.5; }
.xpc-chamber-fill { fill: var(--fig-blood); opacity: 0.85; }
.xpc-stool { fill: #9C7A5B; opacity: 0.85; }
.xpc-baseline { fill: none; stroke: var(--line); stroke-width: 1.5; }
.xpc-wave { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.xpc-weight { fill: var(--ink-soft); }
.xpc-carve { fill: var(--paper); }
.xp-strip .xpc-carve, .xm-svg .xpc-carve { fill: var(--surface); }
.xpc-scar { fill: var(--amber); }
.xpc-loop { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 4 5; }
.xpc-cloud { fill: var(--teal-tint); stroke: var(--ink-soft); stroke-width: 1.5; }
.xpc-horizon { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.xpc-scale-l { fill: var(--amber-tint); stroke: var(--amber); stroke-width: 1; }
.xpc-scale-r { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 1; }
.xpc-ok { fill: var(--teal); }
.xpc-marker { fill: var(--ink); }
.xpc-fig { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.xpc-shaft { fill: var(--teal-tint); stroke: var(--ink-soft); stroke-width: 1.2; }
.xpc-ring { fill: none; stroke: var(--red); stroke-width: 4; }

/* Founder profile and mission page */
.profile-facts { margin: 0; display: grid; gap: 0.55rem; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.profile-facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.8rem; align-items: baseline; }
.profile-facts dt { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }
.profile-facts dd { margin: 0; min-width: 0; }
@media (max-width: 420px) { .profile-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }
.founder-note { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--teal); background: var(--teal-tint); border-radius: 0 14px 14px 0; display: grid; gap: 0.4rem; }
.founder-note p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.founder-note footer { font-weight: 700; color: var(--teal); background: none; border: 0; font-size: var(--step-0); }
.founder-note footer::before { content: "\2014\00a0"; }
.needs, .section .needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.need { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: 0.45rem; }
.need h3 { margin: 0; font-size: var(--step-1); text-wrap: balance; }
.need p { margin: 0; }
.need-why b { font-family: var(--font-display); color: var(--teal); font-size: 1.15em; font-variant-numeric: tabular-nums; }
.need-do { color: var(--ink-soft); }
.need-do strong { color: var(--ink); }
.mission-sign { font-family: var(--font-display); font-size: var(--step-1); }
.founder-card { display: grid; gap: 0.7rem; padding: 1rem 1.1rem 1.05rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 14px; }
.founder-mono { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--teal); color: var(--on-teal); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.03em; }
.founder-id { min-width: 0; display: grid; gap: 0.1rem; }
.founder-id h3 { margin: 0; font-size: var(--step-1); }
.founder-id h3 a { color: var(--ink); text-decoration: none; }
.founder-role { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.founder-body { grid-column: 1 / -1; display: grid; gap: 0.5rem; }
.founder-body p { margin: 0; }
.fund-grid { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .fund-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fund-col { min-width: 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 0.5rem; align-content: start; }
.fund-col h3 { margin: 0; font-size: var(--step-1); }
.fund-col ul, .section .fund-col ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.35rem; }
.fund-next { background: var(--teal-tint); border-color: transparent; }
.join-intro { margin: 0; font-weight: 700; }
.ticks-rich { gap: 0.6rem; }
.ticks-rich li { line-height: 1.5; }
.ticks-rich strong { color: var(--ink); }
.ticks-rich a { white-space: nowrap; }

/* HFS Explorer, explainer version (an animated explainer that plays like a video) */
.xpl { display: grid; gap: 0.75rem; padding: 1rem 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; }
.xpl-head { display: grid; gap: 0.35rem; }
.xpl-head h2 { margin: 0; font-size: var(--step-2); }
.xpl-lede { margin: 0; color: var(--ink-soft); }
.xpl-player { display: grid; gap: 0.6rem; }
.xpl-stage { position: relative; border-radius: 12px; overflow: hidden; background: var(--xpl-bg); border: 1px solid var(--line); }
.xpl-svg { display: block; width: 100%; height: auto; }
.xpl-lab { font: 600 12.5px var(--font-body); fill: var(--ink-soft); }
.xpl-lab-skin { fill: #3B2A22; }
.xpl-lab-small { font-size: 10.5px; font-weight: 400; }
.xpl-lab-on { fill: var(--ink); font-weight: 800; }
.xpl-lab-skin.xpl-lab-on { fill: #2A1A12; }
.xpl-leader { stroke: var(--ink-soft); stroke-width: 1; fill: none; opacity: 0.6; }
.xpl-ghost { stroke: var(--ink-soft); }
.xpl-pos { position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--teal); color: var(--on-teal); font-weight: 700; font-size: var(--step--1); }
.xpl-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5rem; border: 0; background: var(--xpl-veil); cursor: pointer; font: inherit; color: var(--ink); }
.xpl-overlay-btn { width: 4rem; height: 4rem; border-radius: 50%; background: var(--teal); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); position: relative; }
.xpl-overlay-btn::after { content: ""; position: absolute; left: 1.55rem; top: 1.15rem; border-left: 1.35rem solid var(--on-teal); border-top: 0.85rem solid transparent; border-bottom: 0.85rem solid transparent; }
.xpl-overlay-txt { font-weight: 700; background: var(--surface); padding: 0.2rem 0.7rem; border-radius: 999px; }
.xpl-end { position: absolute; inset: 0; display: grid; align-content: center; gap: 0.5rem; padding: 1rem; background: var(--surface); text-align: center; }
.xpl-end-h { margin: 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.xpl-end-t { margin: 0; color: var(--ink-soft); }
.xpl-end-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
/* The members' lock on a long explainer: the join card, and the locked chapters on the bar */
.xpl-lock-in { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.xpl-seg.is-locked { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 7px); }
.xpl-cap-box { min-height: 7.4rem; display: grid; align-content: start; gap: 0.25rem; }
.xpl-chap { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--teal); }
.xpl-cap { margin: 0; font-size: 1.06rem; line-height: 1.45; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.xpl-stat { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }
.xpl-bar { display: flex; gap: 3px; height: 5px; }
.xpl-seg { flex: 1 1 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.xpl-seg-fill { display: block; height: 100%; width: 0; background: var(--teal); }
.xpl-ctl { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.xpl-play { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--teal); background: var(--teal); position: relative; cursor: pointer; }
.xpl-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 15px solid var(--on-teal); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.xpl-play.is-playing::after { left: 15px; top: 14px; width: 5px; height: 16px; border: 0; background: var(--on-teal); box-shadow: 9px 0 0 var(--on-teal); }
.xpl-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; cursor: pointer; }
.xpl-nav::after { content: ""; position: absolute; top: 15px; width: 10px; height: 10px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.xpl-prev::after { left: 17px; transform: rotate(45deg); }
.xpl-next::after { left: 13px; transform: rotate(-135deg); }
.xpl-nav:disabled { opacity: 0.35; cursor: default; }
.xpl-now { margin: 0; min-width: 0; display: grid; line-height: 1.25; }
.xpl-now-n { font-size: 0.78rem; color: var(--ink-soft); }
.xpl-now-t { font-weight: 700; color: var(--ink); font-size: 0.94rem; line-height: 1.12; text-wrap: balance; }
.xpl-seg { cursor: pointer; }
.xpl-bar { height: 6px; }
.xpl-note { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.xpl button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* HFS Explorer: brand badge on the start and end screens, and the sound button (narrated explainers) */
.xpl-brandmark { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.7rem 0.25rem 0.3rem; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.xpl-brandmark .brand-seal { width: 28px; height: 28px; border-radius: 7px; font-size: 10.5px; }
.xpl-brandmark-dom { font-weight: 700; font-size: 0.86rem; color: var(--ink); letter-spacing: 0.01em; }
.xpl-end .xpl-brandmark { justify-self: center; box-shadow: none; background: var(--teal-tint); }
.xpl-sound { position: absolute; left: 0.5rem; bottom: 0.5rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 2; }
.xpl-sound svg { width: 22px; height: 22px; }
.xpl-sound.is-off { color: var(--ink-soft); }
.xpl-sound:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
/* Explainer scenes (26 Oct 2026): a picture of what's being said, or a number tile, in place of the drawing */
.xpl-scenes { position: absolute; inset: 0; pointer-events: none; }
.xpl-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 50% 50%; }
.xpl-tile { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.55rem; padding: 0.75rem; background: var(--xpl-bg); opacity: 0; }
.xpl-tile-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 10vw, 3.6rem); line-height: 1; color: var(--teal); }
.xpl-tile-dots { display: grid; grid-template-columns: repeat(20, 0.55rem); gap: 0.2rem; }
.xpl-tile-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--dot-off); }
.xpl-tile-dots i.on { background: var(--teal); }
.xpl-tile-note { font-size: var(--step--1); color: var(--ink-soft); text-align: center; max-width: 22rem; line-height: 1.35; }
.xpl-tile-bars { justify-items: stretch; align-content: center; place-content: center stretch; padding: 1rem 1.25rem; gap: 0.7rem; }
.xpl-tile-row { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) auto; gap: 0.55rem; align-items: center; }
.xpl-tile-lab { font-size: 0.84rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.xpl-tile-track { height: 0.9rem; background: var(--dot-off); border-radius: 999px; overflow: hidden; }
.xpl-tile-fill { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.xpl-tile-val { font-weight: 700; color: var(--teal); font-size: 0.9rem; }
.xpl-tile-bars .xpl-tile-note { justify-self: center; }
.xpl-stage.is-end .xpl-scenes { display: none; }
.xpl-stage.is-end .xpl-svg, .xpl-stage.is-end .xpl-sound, .xpl-stage.is-end .xpl-pos { display: none; }
.xpl-stage.is-end .xpl-end { position: relative; inset: auto; min-height: 12rem; }
.xpl-stage.has-sound .xpl-overlay { padding-bottom: 3rem; gap: 0.4rem; }
.xpl-overlay .xpl-brandmark { margin-bottom: 0.1rem; }
.xpl-stage.has-sound .xpl-overlay { padding-top: 0.5rem; padding-bottom: 2.75rem; }
.xpl-stage.has-sound .xpl-overlay-btn { width: 3.25rem; height: 3.25rem; }
.xpl-stage.has-sound .xpl-overlay-btn::after { left: 1.26rem; top: 0.93rem; border-left-width: 1.1rem; border-top-width: 0.69rem; border-bottom-width: 0.69rem; }

/* Members (signed in, membership live): html.is-member, set from the hfr_in cookie before the page draws.
   .no-member = asks to join, for visitors only; .only-member = for members only. */
html.is-member .no-member { display: none !important; }
/* Signed in (a member or a free account): html.is-signed. .no-signed = Sign in links; .only-signed = My account for free accounts. */
html.is-signed .no-signed { display: none !important; }
html:not(.is-signed) .only-signed { display: none !important; }
html.is-member .only-free { display: none !important; }
html:not(.is-member) .only-member { display: none !important; }
.join.join-account { background: var(--teal); color: var(--on-teal, #fff); }

/* My account */
.account { max-width: 46rem; display: grid; gap: 1.25rem; padding-bottom: 2rem; }
.account h1 { margin-bottom: 0; }
.account .lead { margin: 0; overflow-wrap: anywhere; }
.ac-box { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ac-box p { margin: 0 0 0.6rem; }
.ac-sec h2 { margin: 0 0 0.6rem; font-size: var(--step-2); }
.ac-continue { display: flex; gap: 0.9rem; align-items: center; padding: 0.8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ac-continue img { flex: none; width: 72px; height: auto; border-radius: 6px; }
.ac-continue-text { display: grid; gap: 0.35rem; justify-items: start; }
.ac-continue-title { font-weight: 700; line-height: 1.25; }
.ac-when { color: var(--ink-soft); font-size: var(--step--1); }
.ac-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ac-guides a { display: flex; gap: 0.8rem; align-items: center; min-height: 64px; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ac-guides a:hover { border-color: var(--teal); }
.ac-guides img { flex: none; width: 44px; height: auto; border-radius: 4px; }
.ac-g-text { display: grid; gap: 0.2rem; }
.ac-g-title { font-weight: 700; line-height: 1.25; }
.ac-badge { justify-self: start; font-size: var(--step--1); color: var(--ink-soft); }
.ac-badge.is-new { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--teal-tint); color: var(--teal); font-weight: 700; }
.ac-facts { margin: 0 0 0.8rem; display: grid; gap: 0.4rem; }
.ac-facts div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.ac-facts dt { color: var(--ink-soft); }
.ac-facts dd { margin: 0; font-weight: 700; text-align: right; }
.ac-sec p { margin: 0 0 0.6rem; }
@media (min-width: 720px) { .ac-guides { grid-template-columns: 1fr 1fr; } }

/* Symptom tracker: chart buttons, chart, what I'm trying */
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: var(--step--1); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); color: var(--teal); }
.section .chips + .chips { margin-top: 0.5rem; }
.section .chips:last-of-type { margin-bottom: 0.8rem; }
.trk-wrap { position: relative; }
.trk-svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; outline-offset: 4px; }
.trk-svg:focus:not(:focus-visible) { outline: none; }
.trk-readout { min-height: 1.5em; margin: 0.3rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.trk-readout strong { color: var(--ink); }
.trk-dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.trk-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trk-mark { stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 4 4; }
.trk-mark-badge { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.5; }
.trk-mark-n { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font-body); }
.trk-hair { stroke: var(--ink-soft); stroke-width: 1; }
.trk-ring { fill: none; stroke: var(--teal); stroke-width: 2; }
.trk-marks { margin: 0.5rem 0 0; padding-left: 1.4rem; font-size: var(--step--1); color: var(--ink-soft); }
.trk-trying { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.5rem; }
.trk-trying li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }
.trk-try-btns { display: flex; gap: 0.4rem; }
.btn.btn-sm { min-height: 36px; padding: 0 0.75rem; font-size: var(--step--1); }
.trk-try-form { display: grid; gap: 0.5rem; }
.trk-try-form select.trk-date { width: 100%; }
.trk-try-form input.trk-date { width: 100%; }
.ac-h3 { margin: 0.9rem 0 0.4rem; font-size: var(--step-0); }
#ac-symptoms .trk-chart { margin: 0.4rem 0 0.2rem; }
.ac-trying { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.35rem; }
.ac-trying li { display: flex; align-items: center; gap: 0.5rem; }
.ac-n { flex: none; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1.5px solid var(--ink-soft); border-radius: 50%; font-size: 0.75rem; font-weight: 700; }

/* Saved doctor visit kits */
.kit-chart { margin: 0.4rem 0 0; }
.kit-chart-cap { margin: 0.2rem 0 0; font-size: 0.85em; color: var(--ink-soft); }
.kit-visit { margin-top: 1rem; display: grid; gap: 0.6rem; }
.kit-visit h3 { margin: 0; font-size: var(--step-1); }
.kit-visit textarea, .kit-visit input { width: 100%; }
.kit-saved-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; margin-top: 1rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; min-height: 44px; }
.ac-kits { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.5rem; }
.ac-kits a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 52px; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.ac-kits a:hover { border-color: var(--teal); }
@media print {
  #kit-sheet .kit-chart svg { max-width: 100%; }
  #kit-sheet .kit-chart-cap { color: #333333; }
}
.si-code { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.si-code input { font: inherit; font-size: 1.4rem; letter-spacing: 0.15em; min-height: 48px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); max-width: 12rem; }

/* Get the app (My account): the site's deep teal with white text, the same in light and dark mode. */
.app-box { display: grid; gap: 0.55rem; padding: 0.95rem 1rem 0.85rem; border-radius: 16px; background: #0D5B65; color: #FFFFFF; box-shadow: 0 6px 18px rgba(13, 91, 101, 0.28); }
.app-box-head { display: flex; align-items: center; gap: 0.7rem; }
.app-box-head img { flex: none; width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
.app-box h2 { margin: 0; font-size: 1.22rem; line-height: 1.2; color: inherit; }
.app-box p { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.app-box ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.15rem; font-size: 0.98rem; }
.app-box strong { color: inherit; }
.app-share { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.15em; }
.app-install { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 0; border-radius: 999px; background: #FFFFFF; color: #0D5B65; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.app-hide { justify-self: end; min-height: 32px; background: none; border: 0; padding: 0.15rem 0; color: inherit; font: inherit; font-size: 0.88rem; text-decoration: underline; cursor: pointer; }

/* Watch page for the free minute of a long explainer */
.vid { margin: 0; display: grid; gap: 0.4rem; }
.vid video { width: 100%; height: auto; border-radius: 12px; background: var(--xpl-bg, #F4F7F7); }
.vid figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.vid-ch { display: grid; gap: 0.35rem; padding-left: 1.2rem; }
.vid-lock { font-size: var(--step--1); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5rem; }
.vid-member { margin: 1rem 0; }
.vid-ch .link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--teal-ink, var(--link, #0D5B65)); text-decoration: underline; cursor: pointer; text-align: left; }

/* The Videos page and the medical illustrations library (27 Oct 2026) */
.vid-grid, .illus-grid, .section .vid-grid, .section .illus-grid { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 1rem 0.9rem; }
.nowrap { white-space: nowrap; }
.vid-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.illus-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.vid-grid a, .illus-grid a { display: grid; gap: 0.4rem; align-content: start; text-decoration: none; color: var(--ink); }
.vid-grid a { grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 0.85rem; row-gap: 0.25rem; }
.vid-grid .vid-thumb { grid-row: 1 / span 2; align-self: start; }
.vid-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--teal-tint); }
.vid-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 23 / 20; object-fit: cover; object-position: top; }
.vid-time { position: absolute; right: 0.3rem; bottom: 0.3rem; background: rgba(23, 36, 43, 0.86); color: #FFFFFF; font-size: var(--step--1); font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 6px; }
.vid-title, .illus-title { font-weight: 700; line-height: 1.3; }
.illus-title { font-size: var(--step--1); }
.vid-grid a:hover .vid-title, .illus-grid a:hover .illus-title { text-decoration: underline; }
.illus-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; }
.illus-kicker { margin: 0 0 0.3rem; font-size: var(--step--1); font-weight: 700; }
.illus-kicker a { color: var(--teal); text-decoration: none; }
.illus-kicker a:hover { text-decoration: underline; }
.illus-fig img { background: #FFFFFF; }

/* The picture viewer (27 Oct 2026): "Tap to see it full size" opens over the page, with a close button */
.pv { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(10, 16, 18, 0.97);
  padding: max(3.5rem, calc(env(safe-area-inset-top, 0px) + 3.25rem)) max(0.5rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px)); }
.pv[hidden] { display: none; }
.pv-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; -webkit-overflow-scrolling: touch; }
.pv-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #FFFFFF; border-radius: 6px; cursor: zoom-in; }
.pv-zoom .pv-stage { align-items: flex-start; justify-content: flex-start; }
.pv-zoom .pv-img { max-width: none; max-height: none; width: min(1600px, 220vw); cursor: zoom-out; }
.pv-cap { flex: none; margin: 0.6rem auto 0; max-width: 40rem; max-height: 6.5em; overflow: auto; color: #E4ECEA; font-size: var(--step--1); line-height: 1.45; text-align: center; padding: 0 0.5rem; }
.pv-cap[hidden] { display: none; }
.pv-close { position: absolute; top: max(0.5rem, calc(env(safe-area-inset-top, 0px) + 0.4rem)); right: max(0.5rem, calc(env(safe-area-inset-right, 0px) + 0.4rem));
  width: 48px; height: 48px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(10, 16, 18, 0.7); color: #FFFFFF;
  font-size: 2rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 0 0.15rem; }
.pv-close:focus-visible { outline: 3px solid #6CC1C8; outline-offset: 2px; }
html.pv-open, html.pv-open body { overflow: hidden; }


/* Free accounts (27 Oct 2026). "See my result": the panel that opens when he taps it, asking him to continue to his
   free, private account. A sheet from the bottom on phones, a card in the middle on computers. */
.ag { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 16, 18, 0.62); }
.ag[hidden] { display: none; }
.ag-sheet { position: relative; width: 100%; max-width: 30rem; max-height: calc(100dvh - 2rem); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); color: var(--ink); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(10, 16, 18, 0.25);
  padding: 1.4rem 1.25rem max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 1rem)); display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .ag { align-items: center; padding: 1rem; } .ag-sheet { border-radius: 18px; padding-bottom: 1.4rem; } }
.ag-sheet h2 { margin: 0; padding-right: 2.6rem; font-size: var(--step-2); }
.ag-sheet > p { margin: 0; }
.ag-close { position: absolute; top: 0.7rem; right: 0.7rem; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.7rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 0 0.12rem; }
#ag-h:focus { outline: none; }
.ag-sheet > p.ag-terms { margin: 0; font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); text-align: center; }
/* Google's button sits in a frame: give it the page's light scheme so dark mode shows no white box around it */
.ag-google iframe { color-scheme: light; }
#ag-ways { display: grid; gap: 0.7rem; }
#ag-ways[hidden] { display: none; }
.ag-google { min-height: 44px; display: flex; justify-content: center; }
/* While Google's button loads: a quiet placeholder the same size, so nothing jumps */
.ag-g-wait { display: block; width: 100%; max-width: 380px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); }
.ag-google:empty { display: none; }
.ag-google:empty + .ag-or { display: none; }
.ag-or { display: flex; align-items: center; gap: 0.7rem; margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.ag-or::before, .ag-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
#ag-form { display: grid; gap: 0.45rem; }
#ag-form .legend-like { font-size: var(--step-0); }
.ag input[type=email], .ag input[type=password], .pw-form input[type=password], .si-form input[type=email], .si-form input[type=password] { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: 0 0.8rem; width: 100%; box-sizing: border-box; }
#ag-form .btn-row { margin-top: 0.3rem; }
#ag-form .btn, #ag-only .btn { width: 100%; }
.ag .note { margin: 0; }
html.ag-open, html.ag-open body { overflow: hidden; }
/* A result he has kept: download it, and where it lives */
.result-tools { display: grid; gap: 0.5rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--teal-tint); }
.result-tools p { margin: 0; }
.see-result { display: grid; gap: 0.5rem; justify-items: start; }
.see-result .note { margin: 0; }
.si-google:empty + .ag-or { display: none; }
.si-form .qcard, .pw-form { display: grid; gap: 0.6rem; }
.si-form .field { display: grid; gap: 0.35rem; }
.pw-form h2, .pw-form p { margin: 0; }
.ac-results { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.5rem; }
.ac-results details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ac-results details[open] { border-color: var(--teal); }
.ac-results summary { cursor: pointer; display: grid; gap: 0.1rem; min-height: 52px; align-content: center; padding: 0.55rem 0.75rem; font-weight: 700; }
.ac-r-body { padding: 0 0.9rem 0.9rem; display: grid; gap: 0.4rem; }
.ac-r-body h4 { margin: 0.6rem 0 0; }
.ac-r-body ul { margin: 0; padding-left: 1.2rem; }
.ac-r-body p { margin: 0; }
.ac-join h2 { margin: 0 0 0.5rem; font-size: var(--step-2); }
#ac-deleted .form-msg { margin: 0 0 0.4rem; }
/* My account, free accounts (27 Oct 2026): every guide, locked; each opens the guide's page with its free trailer */
.ac-lock { display: inline-flex; align-items: center; gap: 0.3rem; justify-self: start; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.ac-lock svg { width: 0.95em; height: 0.95em; flex: none; }
.ac-g-join { margin-top: 0.8rem; }
#ac-guides > p.only-free { margin: 0 0 0.7rem; }

/* Breathing tool (27 Oct 2026): words that change with each breath, and the note under a preset */
.gt-pace-cue { display: block; min-height: 1.5em; font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: var(--step-0); }
.gt-pace-note { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.gt-pace-note[hidden] { display: none; }

/* The quit porn tracker (27 Oct 2026) */
.ctr { margin: 1.2rem 0 1.6rem; }
.ctr-setup { display: grid; gap: 0.9rem; }
.ctr-setup fieldset { display: grid; gap: 0.5rem; }
.ctr-input { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 48px; padding: 0 0.8rem; width: 100%; box-sizing: border-box; }
.ctr-input[hidden] { display: none; }
.ctr-run { display: grid; gap: 0.9rem; }
.ctr-run[hidden], .ctr-setup[hidden] { display: none; }
.ctr-face { text-align: center; padding: 1.3rem 1rem 1.1rem; border-radius: 18px; background: var(--teal-tint); display: grid; gap: 0.3rem; }
.ctr-goal { margin: 0; font-weight: 700; color: var(--ink-soft); font-size: var(--step-0); }
.ctr-days { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); color: var(--teal); }
#ctr-d { font-size: clamp(4rem, 22vw, 6.5rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctr-days-l { font-size: var(--step-2); font-weight: 600; }
.ctr-time { margin: 0; font-weight: 700; font-size: var(--step-1); color: var(--ink); font-variant-numeric: tabular-nums; }
.ctr-next { display: grid; gap: 0.35rem; margin-top: 0.4rem; }
.ctr-next p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.ctr-bar { height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.ctr-bar i { display: block; height: 100%; width: 2%; background: var(--teal); border-radius: 999px; transition: width 0.6s; }
.ctr-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.ctr-stats div { padding: 0.6rem 0.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; display: grid; gap: 0.15rem; align-content: start; }
.ctr-stats dt { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.3; }
.ctr-stats dd { margin: 0; font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.ctr-box { display: grid; gap: 0.55rem; }
.ctr-box h3, .ctr-box p { margin: 0; }
.ctr-box[hidden], .ctr-ms-note[hidden] { display: none; }
.ctr-ms-note { padding: 0.9rem 1rem; border-radius: 12px; border-left: 4px solid var(--teal); background: var(--surface); display: grid; gap: 0.3rem; }
.ctr-ms-note p { margin: 0; }
.ctr-h { margin: 0.6rem 0 0; font-size: var(--step-1); }
.ctr-mss { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ctr-mss li { padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-size: var(--step--1); font-weight: 700; }
.ctr-mss li.is-done { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.ctr-mss li.is-done::before { content: "\2713\00a0"; }
.ctr-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ctr-hist li { padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 0.15rem; }
.ctr-h-d { font-weight: 700; }
.ctr-h-n { color: var(--ink-soft); font-size: var(--step--1); }
.ctr-settings summary { cursor: pointer; font-weight: 700; color: var(--teal); min-height: 44px; display: flex; align-items: center; }
.ctr-set-body { display: grid; gap: 0.6rem; padding-top: 0.4rem; }
.ctr-urge-sheet .gt { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ctr-urge-sheet .gt-head, .ctr-urge-sheet .gt-foot, .ctr-urge-sheet .gt-pace-how { display: none; }
.ctr-urge-sheet .gt-pace-svg { max-width: 12rem; }
.ctr-do { margin: 0.2rem 0; }
/* My account: the counter at a glance */
.ac-counter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.8rem; text-decoration: none; color: var(--ink); }
.ac-counter[hidden] { display: none; }
.ac-counter-l { grid-column: 1; font-weight: 700; color: var(--ink-soft); font-size: var(--step--1); }
.ac-counter-d { grid-column: 1; font-family: var(--font-display); color: var(--teal); font-size: var(--step-2); }
.ac-counter-d strong { font-size: var(--step-3); }
.ac-counter-go { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; color: var(--teal); }
.ctr-urge-sheet .gt-pace-svg text { display: none; }
.ctr-urge-sheet .gt-pace-row:not(.gt-pace-audio) { display: none; }
.ctr-urge-sheet .gt-pace-phase { min-height: 0; }
@media (min-width: 1100px) { .foot-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* The breathing tool fits on a phone screen (founder, 27 Oct 2026: "too big for the screen ... adjust things and see the
   whole diagram"): the whole picture, what to do now, Start, then the settings, in one screen. */
.gt-pace-svg { max-height: 32vh; max-height: 32svh; width: auto; max-width: 100%; scroll-margin-top: 5.5rem; }
.gt-pacer { gap: 0.7rem; }
.gt-pace-ctl { gap: 0.55rem; }
.gt-pace-phase { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 0.55rem; margin: 0; }
.gt-pace-phase b { font-size: var(--step-1); line-height: 1.25; }
.gt-pace-phase span { font-size: var(--step-1); line-height: 1.25; }
.gt-pace-phase .gt-pace-cue { flex-basis: 100%; min-height: 1.4em; font-size: var(--step--1); line-height: 1.4; }
.gt-pace-ctl .gt-p-btns { grid-template-columns: minmax(0, 1fr) auto; }
.gt-pace-ctl .gt-p-btns .btn { min-height: 46px; }
.gt-pace-row { gap: 0.35rem; }
.gt-pace-l { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.gt-pace-ctl .gt-chip { min-height: 38px; padding: 0.2rem 0.7rem; font-size: 0.875rem; }
@media (min-width: 700px) { .gt-pace-svg { max-height: 22rem; } }
/* The app card on every page for signed-in men on phones (27 Oct 2026) */
.app-ask { position: fixed; left: max(0.75rem, env(safe-area-inset-left, 0px)); right: max(0.75rem, env(safe-area-inset-right, 0px)); bottom: max(0.75rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem)); z-index: 800; max-width: 30rem; margin-inline: auto; box-shadow: 0 12px 36px rgba(10, 16, 18, 0.35); }
.app-ask .app-install[hidden], .app-ask .app-ask-steps[hidden] { display: none; }
.app-ask-btns { display: flex; justify-content: space-between; gap: 1rem; }

/* Symptom tracker with no account (27 Oct 2026): shown faded and locked; one button, and a tap anywhere opens the account panel */
.trk-lock { margin: 0 0 1rem; }
.trk-lock .btn { width: 100%; }
.trk-tool { position: relative; }
.trk-tool.is-locked > :not(.trk-cover) { opacity: 0.45; }
.trk-cover { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.trk-cover[hidden] { display: none; }

/* Google Preferred Sources, where "Was this page helpful?" was (27 Oct 2026) */
.pref-src { border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: 0.6rem; justify-items: start; }
.pref-src h2 { font-size: var(--step-1); margin: 0; }
.pref-src p { margin: 0; color: var(--ink-soft); max-width: 38rem; }
.pref-btn { display: inline-flex; align-items: center; gap: 0.55rem; }
.pref-btn svg { width: 1.15rem; height: 1.15rem; flex: none; color: #F4B400; }

/* The same Google button in the footer of every page (27 Oct 2026) */
.foot-pref { margin: 1.2rem 0 0; }
.foot-pref a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.55rem 1rem; border: 1px solid currentColor; border-radius: 999px; font-weight: 700; text-decoration: none; }
.foot-pref svg { width: 1.1rem; height: 1.1rem; flex: none; color: #F4B400; }
main > .wrap > .pref-src { margin: 2rem 0 0; }

/* Reports tab: the list of every study (27 Oct 2026) */
.studies { margin: 0; padding-left: 1.3rem; display: grid; gap: 1.2rem; }
.studies h3 { margin: 0 0 0.25rem; font-size: var(--step-0); line-height: 1.35; }
.studies p { margin: 0 0 0.3rem; }
.findings + h3, .section > h3 { margin-top: 1rem; }
.refs-list { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; overflow-wrap: anywhere; font-size: var(--step--1); }
