/* PeptideScope: content UI (v4: simpler, calmer, for teens).
   Owns: the Learn panels' insides ([data-render] hosts, .c-body), the peptide picker (.c-picker)
   and the site picker (.c-sites). Design system: ui-ux-pro-max "Minimalism & Swiss", spacious,
   light-first. Fonts: Nunito (headings) + DM Sans (body, inherited). Colours come only from the
   v4 tokens in css/tokens.css; the fallbacks below are the same v4 light values, so nothing
   breaks while tokens load. No green anywhere. Performance: no backdrop filters, no blur, no
   animated layout; transitions touch colour, border and transform only. */

/* ---------- local aliases of the v4 tokens (zero specificity, follow data-theme) ---------- */
:where(.c-body, .c-picker, .c-sites) {
  --c-bg: var(--bg, #F7F6FB);
  --c-surface: var(--surface, #FFFFFF);
  --c-surface-2: var(--surface-2, #F0EEF8);
  --c-line: var(--line, #E4E1F0);
  --c-text: var(--text, #17142B);
  --c-muted: var(--muted, #5B5873);
  --c-primary: var(--primary, #6246EA);
  --c-on-primary: var(--on-primary, #FFFFFF);
  --c-primary-soft: var(--primary-soft, #ECE8FF);
  --c-info: var(--info, #2563EB);
  --c-info-soft: var(--info-soft, color-mix(in srgb, var(--c-info) 11%, var(--c-surface)));
  --c-warn: var(--warn, #B45309);
  --c-warn-soft: var(--warn-soft, var(--warn-bg, color-mix(in srgb, var(--c-warn) 12%, var(--c-surface))));
  --c-danger: var(--danger, #D92D20);
  --c-danger-soft: var(--danger-soft, var(--danger-bg, color-mix(in srgb, var(--c-danger) 10%, var(--c-surface))));
  --c-drug: var(--drug, #6246EA);
  --c-focus: var(--focus, #6246EA);
  --c-warn-ink: var(--warn-ink, var(--c-warn));
  --c-danger-ink: var(--danger-ink, var(--c-danger));
  --c-info-ink: var(--info-ink, var(--c-info));
  --c-head: var(--font-display, "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif);
  --c-r: 16px;
  --c-r-l: 24px;
  --c-ease: cubic-bezier(.2, .7, .1, 1);
  color: var(--c-text);
}

/* ---------- reset inside content scopes ---------- */
.c-body, .c-body *, .c-picker, .c-picker *, .c-sites, .c-sites * { box-sizing: border-box; }
.c-body :where(h3, h4, p, ul, ol, dl, dd, figure, fieldset, table, blockquote) { margin: 0; }
.c-body :where(ul, ol) { padding: 0; }
.c-body :where(header, footer, section, article, aside, figure) { padding: 0; border: 0; background: none; }
.c-body { font-size: 1rem; line-height: 1.55; overflow-wrap: break-word; container: c / inline-size; }
/* a host with more than one panel (If you have one + Real medicine vs. internet vial) */
.c-body > .c-panel + *, .c-body > * + .c-panel { margin-top: 40px; }
/* two hosts in one Learn panel ("How it works": what it does + timing): a clear break between them */
.c-body + .c-body { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line, #E4E1F0); }
.c-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.c-ico { display: inline-block; flex: none; vertical-align: -0.2em; }
.c-nowrap { white-space: nowrap; }
.c-muted { color: var(--c-muted); }
.c-small { font-size: .9375rem; }

/* ---------- panel rhythm: summary first, then roomy groups ---------- */
.c-panel { display: flex; flex-direction: column; gap: 28px; }
.c-panel > * { min-width: 0; }
.c-summary {
  font-size: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  line-height: 1.5;
  font-weight: 500;
  max-width: 60ch;
  text-wrap: pretty;
}
.c-lead { max-width: 62ch; color: var(--c-text); }
.c-note { font-size: .9375rem; color: var(--c-muted); max-width: 62ch; }
.c-prose { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.c-group { display: flex; flex-direction: column; gap: 14px; }
.c-h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--c-head); font-weight: 800; font-size: 1.1875rem; line-height: 1.3;
  letter-spacing: -0.005em; color: var(--c-text);
}
.c-h3__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
.c-group--warn .c-h3__icon { background: var(--c-warn-soft); color: var(--c-warn); }
.c-group--danger .c-h3__icon { background: var(--c-danger-soft); color: var(--c-danger); }
.c-sub { color: var(--c-muted); max-width: 62ch; margin-top: -6px; }

/* bullet and numbered lists: one idea per line, plenty of air */
.c-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 64ch; }
.c-list > li { position: relative; padding-left: 22px; }
.c-list > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); }
.c-list--q > li::before { background: none; border: 2px solid var(--c-primary); width: 8px; height: 8px; top: .55em; }
.c-numlist { list-style: none; counter-reset: c-n; display: flex; flex-direction: column; gap: 12px; max-width: 64ch; }
.c-numlist > li { counter-increment: c-n; position: relative; padding-left: 40px; min-height: 28px; }
.c-numlist > li::before {
  content: counter(c-n); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--c-head); font-weight: 800; font-size: .875rem;
  background: var(--c-primary-soft); color: var(--c-primary);
}

/* ---------- tap-to-open rows (native <details>) ---------- */
.c-rows { display: flex; flex-direction: column; gap: 10px; }
.c-more {
  border: 1px solid var(--c-line);
  border-radius: var(--c-r);
  background: var(--c-surface);
  transition: border-color .15s var(--c-ease);
}
.c-more[open] { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-line)); }
.c-more--warn { border-left: 4px solid var(--c-warn); }
.c-more--danger { border-left: 4px solid var(--c-danger); }
.c-more__head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 14px 12px 18px;
  border-radius: inherit;
}
.c-more__head::-webkit-details-marker { display: none; }
.c-more__head:hover { background: var(--c-surface-2); }
.c-more__head:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-more__title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.c-more__chev {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-muted);
  transition: transform .2s var(--c-ease), background-color .15s var(--c-ease), color .15s var(--c-ease);
}
.c-more[open] > .c-more__head .c-more__chev { transform: rotate(180deg); background: var(--c-primary-soft); color: var(--c-primary); }
.c-more__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 18px 18px; max-width: 70ch; }
.c-row__name { font-weight: 700; line-height: 1.4; }
.c-row__meta { font-size: .875rem; color: var(--c-muted); }
.c-row__organ { font-family: var(--c-head); font-weight: 800; }
.c-row__lead { flex-basis: 100%; color: var(--c-muted); font-size: .9375rem; }
.c-row--static { padding: 14px 18px; border: 1px solid var(--c-line); border-radius: var(--c-r); background: var(--c-surface); }
/* small inline "Where this comes from" toggles */
.c-more--inline { border: 0; background: none; }
.c-more--inline > .c-more__head { min-height: 44px; padding: 6px 0; gap: 6px; }
.c-more--inline > .c-more__head:hover { background: none; }
.c-more--inline > .c-more__head .c-more__title { flex: none; }
.c-more--inline > .c-more__head .c-more__chev { width: 26px; height: 26px; background: none; }
.c-more--inline > .c-more__body { padding: 0 0 6px; }
.c-more__small { font-size: .9375rem; font-weight: 700; color: var(--c-primary); }

/* label + value pairs inside a row */
.c-kv { display: flex; flex-direction: column; gap: 4px; }
.c-kv__k { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--c-muted); text-transform: uppercase; }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9375rem; }
.c-meta__k { font-weight: 700; color: var(--c-muted); margin-right: 4px; }
.c-when { display: flex; gap: 8px; align-items: flex-start; color: var(--c-muted); font-size: .9375rem; }
.c-when .c-ico { margin-top: 3px; color: var(--c-primary); }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- small things: tags, badges, buttons ---------- */
.c-tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px;
  border-radius: 999px; background: var(--c-surface-2); font-size: .875rem; font-weight: 500;
}
.c-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 30px; padding: 3px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 700; line-height: 1.2;
  background: var(--c-surface-2); color: var(--c-text);
}
.c-badge--info { background: var(--c-info-soft); color: var(--c-info-ink); }
.c-badge--primary { background: var(--c-primary); color: var(--c-on-primary); }
.c-receptor {
  display: inline-flex; align-items: center; min-height: 32px; padding: 3px 14px; border-radius: 999px;
  background: var(--c-primary-soft); color: var(--c-primary); font-family: var(--c-head); font-weight: 800; font-size: .9375rem;
}
.c-receptor--sm { min-height: 26px; padding: 1px 10px; font-size: .8125rem; }
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--c-ease), border-color .15s var(--c-ease), color .15s var(--c-ease);
}
.c-btn:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.c-btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.c-btn--primary:hover { background: color-mix(in srgb, var(--c-primary) 86%, var(--c-text)); }
.c-btn--soft { background: var(--c-primary-soft); color: var(--c-primary); }
.c-btn--soft:hover { border-color: var(--c-primary); }
.c-btn--quiet { background: none; border-color: var(--c-line); color: var(--c-text); }
.c-btn--quiet:hover { border-color: var(--c-muted); }
.c-link { color: var(--c-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.c-link:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }

/* organ buttons ("Show Brain on the body") */
.c-organ {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  border-radius: 999px; border: 1.5px solid var(--c-line); background: var(--c-surface);
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--c-text); cursor: pointer;
  transition: border-color .15s var(--c-ease), background-color .15s var(--c-ease);
}
.c-organ:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.c-organ:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-organ__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); }

/* citations */
.cite-group { white-space: nowrap; }
.c-body sup.cite { font-size: .72em; line-height: 0; margin-left: 2px; vertical-align: super; }
.c-body sup.cite + sup.cite::before { content: ","; color: var(--c-muted); margin-right: 1px; }
.c-body sup.cite a {
  position: relative; display: inline-block; min-width: 1.5em; padding: 2px 4px; border-radius: 6px; text-align: center; line-height: 1.15;
  color: var(--c-primary); font-weight: 700; text-decoration: none; background: var(--c-primary-soft);
}
.c-body sup.cite a:hover { text-decoration: underline; }
/* a bigger, invisible tap area around the small citation pill (a11y review); the pill looks the same */
.c-body sup.cite a::after { content: ""; position: absolute; inset: -12px -6px; }
.c-body sup.cite a:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.c-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; vertical-align: 1px; background: var(--c-warn-soft); color: var(--c-warn-ink);
}
.c-chip--estimate { background: var(--c-info-soft); color: var(--c-info-ink); }
.c-chip__mark { font-weight: 800; }

/* status pills (never green; every tone also has a shape) */
.c-status {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px;
  border-radius: 999px; font-weight: 700; font-size: .9375rem; line-height: 1.2; white-space: nowrap;
  background: var(--c-surface-2); color: var(--c-text);
}
.c-status--sm { min-height: 28px; padding: 2px 11px; font-size: .8125rem; gap: 6px; }
.c-status__shape { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; }
.c-status--approved, .c-status--approved-abroad, .c-status--approved-narrow { background: var(--status-approved-soft, var(--c-info-soft)); color: var(--c-info-ink); }
.c-status--approved-abroad .c-status__shape { background: none; border: 2.5px solid currentColor; }
.c-status--approved-narrow .c-status__shape { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.c-status--in-trials { background: var(--status-trials-soft, var(--c-primary-soft)); color: var(--c-primary); }
.c-status--in-trials .c-status__shape { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.c-status--research-only { background: var(--status-research-soft, var(--c-warn-soft)); color: var(--c-warn-ink); }
.c-status--research-only .c-status__shape { border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; }
.c-statusline { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* severity and verdict tags */
.c-sev, .c-verdict {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px;
  border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap;
  background: var(--c-surface-2); color: var(--c-text);
}
.c-sev__shape, .c-verdict__shape { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.c-sev--notable, .c-verdict--partly { background: var(--c-warn-soft); color: var(--c-warn-ink); }
.c-sev--serious, .c-verdict--not-supported { background: var(--c-danger-soft); color: var(--c-danger-ink); }
.c-sev--serious .c-sev__shape, .c-verdict--not-supported .c-verdict__shape { border-radius: 1px; width: 9px; height: 9px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.c-verdict--supported { background: var(--c-info-soft); color: var(--c-info-ink); }
.c-verdict--partly .c-verdict__shape { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.c-verdict--unknown .c-verdict__shape { background: none; border: 2px solid currentColor; }

/* ---------- notes, callouts, in-progress ---------- */
.c-progress, .c-callout, .c-notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--c-r); background: var(--c-surface-2); max-width: 70ch;
}
.c-progress .c-ico, .c-notice .c-ico { color: var(--c-primary); margin-top: 2px; }
.c-callout { background: var(--c-primary-soft); }
.c-callout > div { display: flex; flex-direction: column; gap: 8px; }
.c-callout__icon { color: var(--c-primary); flex: none; margin-top: 2px; }
.c-callout__title { font-family: var(--c-head); font-weight: 800; font-size: 1.0625rem; }
.c-callout--warn { background: var(--c-warn-soft); }
.c-callout--warn > .c-ico { color: var(--c-warn-ink); margin-top: 3px; }
.c-notice--warn { background: var(--c-warn-soft); }
.c-notice--warn .c-ico { color: var(--c-warn-ink); }

/* quick facts (dl) */
.c-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.c-facts > div { padding: 14px 16px; border-radius: var(--c-r); background: var(--c-surface-2); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.c-facts dt { font-size: .8125rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .02em; }
.c-facts dd { margin: 0; font-weight: 600; }

/* two columns on wide panels, stacked on phones */
.c-split { display: grid; grid-template-columns: 1fr; gap: 24px; }
@container c (min-width: 640px) { .c-split { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- What it does: locks (receptors) ---------- */
.c-more--lock .c-receptor { flex: none; }
/* ---------- Timing ---------- */
.c-stops { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.c-stop { position: relative; display: flex; gap: 16px; padding: 0 0 18px; }
.c-stop:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--c-line); }
.c-stop__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 6px solid var(--c-primary-soft); background: var(--c-primary); margin-top: 2px; }
.c-stop__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-stop__label { font-weight: 700; }
.c-stop__term { font-weight: 500; color: var(--c-muted); }
.c-stop__value { font-family: var(--c-head); font-weight: 900; font-size: 1.375rem; line-height: 1.25; color: var(--c-primary); }
@container c (min-width: 620px) {
  .c-stops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .c-stop { flex-direction: column; gap: 12px; padding: 0; }
  .c-stop:not(:last-child)::after { left: 30px; right: -20px; top: 13px; bottom: auto; width: auto; height: 2px; }
}
.c-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.c-step { display: flex; gap: 14px; align-items: flex-start; }
.c-step__n {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--c-head); font-weight: 900; background: var(--c-primary); color: var(--c-on-primary);
}
.c-step__body { display: flex; flex-direction: column; gap: 4px; max-width: 64ch; padding-top: 5px; }
.c-step__title { font-weight: 700; }
.c-sitenotes { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
.c-sitenote { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--c-r); background: var(--c-surface); }
.c-sitenote > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-sitenote__name { font-family: var(--c-head); font-weight: 800; }
.c-sitenote__current { display: none; color: var(--c-primary); }
.c-sitenote[aria-current="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); }
.c-sitenote[aria-current="true"] .c-sitenote__current { display: inline; }
.c-sitenote__glyph { flex: none; }
@container c (min-width: 860px) { .c-sitenotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- When to get help ---------- */
.c-alert { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--c-r-l); }
.c-alert--danger { background: var(--c-danger-soft); }
.c-alert--warn { background: var(--c-warn-soft); }
.c-alert__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.c-alert__head > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.c-alert__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--c-surface); }
.c-alert--danger .c-alert__icon { color: var(--c-danger); }
.c-alert--warn .c-alert__icon { color: var(--c-warn); }
.c-alert__title { font-family: var(--c-head); font-weight: 900; font-size: 1.375rem; line-height: 1.2; }
.c-alert--danger .c-alert__title { color: var(--c-danger-ink); }
.c-alert--warn .c-alert__title { color: var(--c-warn-ink); }
.c-alert__sub { color: var(--c-text); }
.c-call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: color-mix(in srgb, var(--danger, #D92D20) 62%, #000); color: #fff; font-weight: 800; text-decoration: none;
}
.c-call:hover { background: color-mix(in srgb, var(--danger, #D92D20) 52%, #000); }
.c-call:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.c-alert .c-more { border-color: transparent; }
.c-alert .c-row--static { border-color: transparent; }
.c-lines { display: grid; grid-template-columns: 1fr; gap: 12px; }
@container c (min-width: 600px) { .c-lines { grid-template-columns: 1fr 1fr; } }
.c-line {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--c-r); border: 1px solid var(--c-line);
  background: var(--c-surface); color: inherit; text-decoration: none;
  transition: border-color .15s var(--c-ease);
}
.c-line:hover { border-color: var(--c-primary); }
.c-line:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-line__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); }
.c-line__body { display: flex; flex-direction: column; gap: 2px; }
.c-line__name { font-weight: 700; }
.c-line__num { font-family: var(--c-head); font-weight: 900; font-size: 1.25rem; color: var(--c-primary); }
.c-line__desc { font-size: .9375rem; color: var(--c-muted); }
.c-lines__note { grid-column: 1 / -1; font-size: .875rem; color: var(--c-muted); }

/* ---------- The trials: simple tables ---------- */
.c-more--trial > .c-more__body { max-width: none; }
.c-table-wrap { overflow-x: auto; border-radius: var(--c-r); border: 1px solid var(--c-line); background: var(--c-surface); }
.c-table-wrap:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.c-table caption { caption-side: bottom; text-align: left; padding: 12px 16px; font-size: .875rem; color: var(--c-muted); }
.c-table th, .c-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.c-table thead th { font-size: .8125rem; font-weight: 700; color: var(--c-muted); background: var(--c-surface-2); }
.c-table tbody th { font-weight: 600; min-width: 13em; }
.c-table tbody tr:last-child > * { border-bottom: 0; }
.c-table td { white-space: nowrap; font-weight: 600; }
.c-table .is-comparator { color: var(--c-muted); font-weight: 500; }
.c-ttable__corner { min-width: 13em; }
@container c (max-width: 560px) {
  /* each outcome becomes a small card with one labelled line per study group */
  .c-table-wrap { overflow: visible; border: 0; background: none; }
  .c-ttable, .c-ttable tbody, .c-ttable tr, .c-ttable th, .c-ttable td, .c-ttable caption { display: block; width: auto; }
  .c-ttable thead { display: none; }
  .c-ttable caption { padding: 0 0 12px; }
  .c-ttable tbody { display: flex; flex-direction: column; gap: 10px; }
  .c-ttable tr { border: 1px solid var(--c-line); border-radius: var(--c-r); background: var(--c-surface); padding: 6px 0; }
  .c-ttable tbody th { min-width: 0; border: 0; padding: 10px 16px 6px; font-family: var(--c-head); font-weight: 800; }
  .c-ttable td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 6px 16px; white-space: normal; text-align: right; }
  .c-ttable td::before { content: attr(data-group); font-weight: 500; color: var(--c-muted); text-align: left; }
}

/* ---------- Evidence ladder ---------- */
.c-axis { display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .03em; }
.c-axis i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--c-line), var(--c-primary)); border-radius: 2px; }
.c-ladder { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.c-rung { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--c-r); background: var(--c-surface); }
.c-rung__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c-rung__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--c-line); color: var(--c-on-primary); flex: none; }
.c-rung.is-reached .c-rung__dot { background: var(--c-primary); border-color: var(--c-primary); }
.c-rung__name { font-family: var(--c-head); font-weight: 800; font-size: 1.0625rem; }
.c-rung__what { color: var(--c-muted); font-size: .9375rem; }
.c-rung.is-current { border: 2px solid var(--c-primary); background: var(--c-primary-soft); }
@container c (min-width: 600px) { .c-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container c (min-width: 960px) { .c-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Claims ---------- */
.c-more--claim > .c-more__head { align-items: center; }
.c-more--claim .c-more__title { justify-content: space-between; }
.c-claim__quote { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; flex: 1 1 260px; }
.c-claim__quote .c-ico { color: var(--c-muted); margin-top: 3px; }

/* ---------- What's really in the vial ---------- */
.c-vials { display: flex; flex-direction: column; gap: 18px; padding: 24px 16px 20px; border-radius: var(--c-r-l); background: var(--c-surface-2); }
.c-vials__row { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; justify-items: center; align-items: start; }
.c-vial { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.c-vial__art { width: clamp(56px, 16vw, 96px); aspect-ratio: 96 / 200; margin-bottom: 10px; }
.c-vial__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-vial__fig { font-family: var(--c-head); font-weight: 900; font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); line-height: 1.1; color: var(--c-text); }
.c-vial--none .c-vial__fig { color: var(--c-danger-ink); }
.c-vial__of { font-size: .8125rem; line-height: 1.35; color: var(--c-muted); max-width: 14ch; }
.c-vial__name { margin-top: 6px; font-size: .8125rem; font-weight: 600; line-height: 1.35; max-width: 16ch; }
.c-vial__sold { font-size: .75rem; font-weight: 500; line-height: 1.3; color: var(--c-muted); }
.c-vial__id { display: none; }
/* the drawn vial: glass, powder, cap and the label line */
.c-vial__glass-a { stop-color: var(--c-text); stop-opacity: .10; }
.c-vial__glass-b { stop-color: var(--c-text); stop-opacity: .02; }
.c-vial__edge { fill: none; stroke: var(--c-text); stroke-opacity: .45; stroke-width: 1.2; }
.c-vial__heel { fill: none; stroke: var(--c-text); stroke-opacity: .2; stroke-width: 2.2; }
.c-vial__shoulder { fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: 1.4; stroke-linecap: round; }
.c-vial__hl { fill: #fff; opacity: .4; }
.c-vial__hl--thin { opacity: .25; }
.c-vial__stop-a { stop-color: color-mix(in srgb, var(--c-drug) 30%, #fff); }
.c-vial__stop-b { stop-color: color-mix(in srgb, var(--c-drug) 62%, #fff); }
.c-vial__cake { fill: color-mix(in srgb, var(--c-drug) 18%, #fff); stroke: var(--c-drug); stroke-opacity: .5; stroke-width: .7; }
.c-vial__metal-a { stop-color: #9A98A8; }
.c-vial__metal-b { stop-color: #E9E8EF; }
.c-vial__crimpline { fill: none; stroke: #17142B; stroke-opacity: .25; stroke-width: .8; }
.c-vial__flip { fill: color-mix(in srgb, var(--c-primary) 70%, #fff); }
.c-vial__shadow { fill: var(--c-text); opacity: .08; }
.c-vial__label path { fill: none; stroke: var(--c-text); stroke-width: 1.4; stroke-linecap: round; }
.c-vial__none circle, .c-vial__none path { fill: none; stroke: var(--c-danger); stroke-width: 2; stroke-linecap: round; }
.c-vials__key { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .875rem; color: var(--c-muted); }
.c-vials__key li { display: inline-flex; align-items: center; gap: 8px; }
.c-vials__swatch { flex: none; display: inline-block; }
.c-vials__swatch--fill { width: 12px; height: 14px; border-radius: 2px 2px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--c-drug) 30%, #fff), color-mix(in srgb, var(--c-drug) 62%, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-drug) 50%, transparent); }
.c-vials__swatch--line { width: 20px; height: 0; border-top: 1.5px solid var(--c-text); }
.c-vials__swatch--none { width: 14px; height: 14px; border-radius: 50%; border: 1.8px solid var(--c-danger); background: linear-gradient(135deg, transparent 45%, var(--c-danger) 45% 57%, transparent 57%); }
.c-vials__more { margin-top: 4px; }
.c-facts-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
@container c (min-width: 600px) { .c-facts-list { grid-template-columns: 1fr 1fr; } }
.c-fact { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--c-r); border: 1px solid var(--c-line); background: var(--c-surface); }
.c-fact__value { font-family: var(--c-head); font-weight: 900; font-size: 1.5rem; line-height: 1.15; color: var(--c-primary); }
.c-fact__value.is-word { font-size: 1.125rem; }
.c-facts-list--danger .c-fact { border-left: 4px solid var(--c-danger); }
.c-facts-list--danger .c-fact__value { color: var(--c-danger-ink); }

/* ---------- If you have one: friendly numbered steps ---------- */
.c-safe-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; }
.c-safe-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--c-r-l); border: 1px solid var(--c-line); background: var(--c-surface); }
.c-safe-step__icon {
  position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--c-primary-soft); color: var(--c-primary);
}
.c-safe-step--stop .c-safe-step__icon { background: var(--c-danger-soft); color: var(--c-danger); }
.c-safe-step--phone .c-safe-step__icon { background: var(--c-danger-soft); color: var(--c-danger); }
.c-safe-step--people .c-safe-step__icon, .c-safe-step--doctor .c-safe-step__icon { background: var(--c-info-soft); color: var(--c-info); }
.c-safe-step__n {
  position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--c-head); font-weight: 900; font-size: .8125rem; background: var(--c-text); color: var(--c-surface);
}
.c-safe-step__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-safe-step__title { font-family: var(--c-head); font-weight: 800; font-size: 1.125rem; line-height: 1.3; }
@container c (max-width: 480px) {
  .c-safe-step { gap: 14px; padding: 16px; }
  .c-safe-step__icon { width: 44px; height: 44px; border-radius: 14px; }
}

/* ---------- Real medicine vs. internet vial (two columns; stacked on phones) ---------- */
.c-vs { display: flex; flex-direction: column; gap: 10px; }
.c-vs__head { display: none; }
.c-vs__row { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--c-r-l); border: 1px solid var(--c-line); background: var(--c-surface); }
.c-vs__aspect { font-family: var(--c-head); font-weight: 800; font-size: 1.0625rem; }
.c-vs__cell { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; }
.c-vs__cell--real { background: var(--c-info-soft); }
.c-vs__cell--net { background: var(--c-warn-soft); }
.c-vs__label { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.c-vs__cell--real .c-vs__label { color: var(--c-info-ink); }
.c-vs__cell--net .c-vs__label { color: var(--c-warn-ink); }
@container c (min-width: 600px) {
  .c-vs { gap: 0; border: 1px solid var(--c-line); border-radius: var(--c-r-l); overflow: hidden; background: var(--c-surface); }
  .c-vs__head, .c-vs__row { display: grid; grid-template-columns: minmax(140px, .7fr) 1fr 1fr; gap: 0; }
  .c-vs__head > * { padding: 16px 18px; }
  .c-vs__col { display: flex; align-items: center; gap: 8px; font-family: var(--c-head); font-weight: 900; font-size: 1.125rem; }
  .c-vs__col--real { background: var(--c-info-soft); color: var(--c-info-ink); }
  .c-vs__col--net { background: var(--c-warn-soft); color: var(--c-warn-ink); }
  .c-vs__row { padding: 0; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; background: none; }
  .c-vs__aspect { padding: 16px 18px; }
  .c-vs__cell { padding: 16px 18px; border-radius: 0; }
  .c-vs__cell--real { background: color-mix(in srgb, var(--c-info) 5%, var(--c-surface)); }
  .c-vs__cell--net { background: color-mix(in srgb, var(--c-warn) 6%, var(--c-surface)); }
  .c-vs__label { display: none; }
}
.c-group--compare { padding-top: 8px; border-top: 1px solid var(--c-line); }

/* ---------- Personal risk check (warnings only): one column, warnings open under each tick ---------- */
.c-risk__form { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.c-risk__legend { padding: 0; font-family: var(--c-head); font-weight: 800; font-size: 1.1875rem; }
.c-risk__privacy { display: flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: .9375rem; }
.c-risk__items { list-style: none; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 760px; }
.c-check { position: relative; }
.c-check__box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-check__label {
  display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--c-line); border-radius: var(--c-r); background: var(--c-surface);
  transition: border-color .15s var(--c-ease), background-color .15s var(--c-ease);
}
@media (hover: hover) and (pointer: fine) { .c-check__label:hover { border-color: var(--c-primary); } }
.c-check__mark { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--c-muted); display: grid; place-items: center; color: transparent; margin-top: 1px; background: var(--c-surface); }
.c-check__text { display: flex; flex-direction: column; gap: 2px; font-weight: 600; line-height: 1.35; }
.c-check__hint { font-weight: 400; font-size: .875rem; color: var(--c-muted); }
.c-check__box:checked + .c-check__label { border-color: var(--c-primary); background: var(--c-primary-soft); }
.c-check__box:checked + .c-check__label .c-check__mark { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.c-check__box:focus-visible + .c-check__label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-check__out { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 6px 14px; padding-left: 16px; border-left: 3px solid var(--c-warn-soft); }
.c-check__out:empty { display: none; }
.c-warn__card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--c-r); background: var(--c-warn-soft); }
.c-warn__title { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--c-warn-ink); }
.c-warn__title .c-ico { margin-top: 3px; }
.c-warn__none { padding: 14px 16px; border-radius: var(--c-r); background: var(--c-surface-2); }

/* ---------- Sources ---------- */
.c-srclist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.c-src { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--c-r); border: 1px solid var(--c-line); background: var(--c-surface); scroll-margin: 120px; }
.c-src:focus { outline: none; }
.c-src:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.c-src__n { flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); font-family: var(--c-head); font-weight: 900; font-size: .875rem; }
.c-src__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-src__title { display: inline-block; padding-block: 10px; margin-block: -10px; color: var(--c-text); font-weight: 700; text-decoration: none; }
.c-src__title--plain { margin-block: 0; padding-block: 0; }
.c-src__title:hover { color: var(--c-primary); text-decoration: underline; }
.c-src__title .c-ico { margin-left: 6px; color: var(--c-muted); }
.c-src__title:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.c-src__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--c-muted); }
.c-src__type { font-weight: 700; color: var(--c-primary); }
.c-src__note { font-size: .875rem; color: var(--c-muted); }
.c-srcpending { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.c-sources { display: flex; flex-direction: column; gap: 16px; }

/* ======================================================================
   Peptide picker: big simple cards
   ====================================================================== */
.c-picker { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; container: cpick / inline-size; }
.c-picker__lead { display: grid; gap: 12px; }
.c-picker__more { display: flex; flex-direction: column; }
.c-picker__toggle {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  min-height: 52px; padding: 10px 12px 10px 18px; border-radius: var(--c-r);
  border: 1.5px dashed var(--c-line); color: var(--c-text); font-weight: 700;
  transition: border-color .15s var(--c-ease), background-color .15s var(--c-ease);
}
.c-picker__toggle::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .c-picker__toggle:hover { border-color: var(--c-primary); background: var(--c-surface); }
}
.c-picker__toggle:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.c-picker__ttext { flex: 1; min-width: 0; }
.c-picker__soon { color: var(--c-muted); font-weight: 500; white-space: nowrap; }
.c-picker__chev { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-muted); transition: transform .2s var(--c-ease); }
.c-picker__more[data-open="true"] .c-picker__chev { transform: rotate(180deg); }
.c-picker__more[data-open="true"] .c-picker__toggle { margin-bottom: 12px; }
.c-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container cpick (min-width: 520px) { .c-picker__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
.c-pcard {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0;
  min-height: 60px; padding: 12px 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--c-text);
  border: 2px solid var(--c-line); border-radius: var(--c-r); background: var(--c-surface);
  transition: border-color .15s var(--c-ease), background-color .15s var(--c-ease);
}
/* hover only where a real pointer hovers: on touch screens the card under the finger must not look picked */
@media (hover: hover) and (pointer: fine) {
  .c-pcard:hover { border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-line)); }
}
.c-pcard:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.c-pcard[aria-checked="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); }
.c-pcard__check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--c-line); color: transparent; background: var(--c-surface);
  transition: background-color .15s var(--c-ease), border-color .15s var(--c-ease);
}
.c-pcard[aria-checked="true"] .c-pcard__check { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.c-pcard__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-pcard__name { font-family: var(--c-head); font-weight: 800; font-size: 1rem; line-height: 1.25; overflow-wrap: break-word; }
.c-pcard__soon { font-size: .8125rem; color: var(--c-muted); font-weight: 500; line-height: 1.2; }
/* other names (brand names seen online), visible text instead of a hover-only tooltip */
.c-pcard__aka { font-size: .8125rem; color: var(--c-muted); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.c-pcard--ready .c-pcard__aka { font-size: .875rem; }
.c-pcard--soon { min-height: 56px; padding: 10px 34px 10px 14px; }
.c-pcard--soon .c-pcard__check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-width: 1.5px; }
.c-pcard--soon .c-pcard__check .c-ico { width: 12px; height: 12px; }
.c-pcard--soon .c-pcard__text { gap: 1px; }
.c-pcard--ready { min-height: 88px; padding: 18px 20px; border-radius: var(--c-r-l); gap: 16px; }
.c-pcard--ready .c-pcard__check { width: 32px; height: 32px; }
.c-pcard--ready .c-pcard__name { font-weight: 900; font-size: 1.5rem; }
.c-pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-pcard__tag { font-size: .875rem; font-weight: 700; color: var(--c-primary); }

/* ======================================================================
   Site picker: three big buttons with simple body icons
   ====================================================================== */
.c-sites { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.c-site {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  min-height: 132px; padding: 14px 8px 12px; cursor: pointer; font: inherit; color: var(--c-text);
  border: 2px solid var(--c-line); border-radius: var(--c-r-l); background: var(--c-surface);
  transition: border-color .15s var(--c-ease), background-color .15s var(--c-ease);
}
@media (hover: hover) and (pointer: fine) { .c-site:hover { border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-line)); } }
.c-site:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.c-site[aria-checked="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); }
.c-site__glyph { display: grid; place-items: center; height: 76px; }
.c-site__label { font-family: var(--c-head); font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: center; }
.c-site__sub { font-size: .8125rem; color: var(--c-muted); line-height: 1.2; }

/* the small front-view body (site picker, timing notes) */
.c-glyph { display: block; overflow: visible; }
.c-glyph__body > * { fill: color-mix(in srgb, var(--muted, #5B5873) 45%, var(--surface, #fff)); }
.c-glyph__body .c-glyph__limb, .c-glyph__body .c-glyph__leg { fill: none; stroke: color-mix(in srgb, var(--muted, #5B5873) 45%, var(--surface, #fff)); stroke-linecap: round; }
.c-glyph__limb { stroke-width: 4.4; }
.c-glyph__leg { stroke-width: 5.8; }
.c-glyph__region > * { fill: var(--primary, #6246EA); opacity: .7; transition: opacity .2s ease; }
.c-glyph__dot { fill: var(--on-primary, #fff); opacity: 0; }
.c-site[aria-checked="true"] .c-glyph__region > *,
.c-sitenote[aria-current="true"] .c-glyph__region > * { opacity: 1; }
.c-site[aria-checked="true"] .c-glyph__dot,
.c-sitenote[aria-current="true"] .c-glyph__dot { opacity: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .c-body *, .c-picker *, .c-sites * { transition: none !important; animation: none !important; }
}
:root[data-motion="reduce"] :is(.c-body, .c-picker, .c-sites) * { transition: none !important; animation: none !important; }

/* ---------- forced colours ---------- */
@media (forced-colors: active) {
  .c-pcard[aria-checked="true"], .c-site[aria-checked="true"] { outline: 3px solid Highlight; }
  .c-vial__fill, .c-vial__cake { fill: CanvasText; }
  .c-vial__edge, .c-vial__label path, .c-vial__none circle, .c-vial__none path { stroke: CanvasText; }
  .c-vials__swatch--fill { background: CanvasText; }
}

/* ---------- print: everything open, plain ink ---------- */
@media print {
  .c-body { color: #000; }
  .c-btn, .c-organ, .c-call, .c-more__chev { display: none !important; }
  .c-more, .c-lock, .c-fact, .c-src, .c-safe-step, .c-vs__row, .c-alert { break-inside: avoid; background: none !important; border-color: #999 !important; }
  .c-src__title::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .8em; word-break: break-all; }
}
