/* ============================================================================
   Medcue — VERDICT design system.  v1
   ----------------------------------------------------------------------------
   The registrar that issues your result. A calm chalk-grey registry that
   issues one trusted document: the Verdict Report.

   Everything here is scoped under body.vd — nothing leaks to Circuit pages.
   Load order: /css/fonts.css → /css/verdict.css. No other stylesheet needed
   on a pure Verdict page.

   RULES THIS FILE ENFORCES (do not fight them on a page):
   · One accent. Theatre green appears only where a verdict or decision lives.
   · Exactly two rule weights: 1.5px ink majors, 1px hairline inside artefacts.
   · --radius 2px everywhere; 0 on artefacts (report, specimen, fee table).
   · 8px baseline (--s1…--s12). Tabular numerals on every figure (.tnum).
   · Never a gauge, dial, ring or donut. Every judgement is the Range Bar.
   · Ledger rows, not cards.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. TOKENS (defined on body.vd only)
   ------------------------------------------------------------------------- */
body.vd {
  /* the nine colours */
  --chalk: #EBE8E1;          /* page ground — warm grey, no yellow cast   */
  --chalk-2: #E0DDD3;        /* recessed bands / table heads / hover      */
  --paper: #FFFFFF;          /* EXCLUSIVE: exam-paper specimen + Report   */
  --ink: #201F1A;            /* text, 1.5px majors, footer dark field     */
  --ink-2: #5A574E;          /* secondary text                            */
  --hairline: #CFCBC0;       /* 1px inner rules within artefacts only     */
  --theatre: #0B5B44;        /* the single accent = “cleared”             */
  --theatre-hover: #07452F;
  --theatre-tint: #DEE8E0;   /* selected pricing row, READY fills         */
  --amber: #A6590C;          /* NOT YET flag ONLY                         */
  --slate: #8B877C;          /* INSUFFICIENT DATA + disabled, ≥18px only  */

  /* rules + radius */
  --rule: 1.5px solid var(--ink);
  --rule-hairline: 1px solid var(--hairline);
  --radius: 2px;

  /* 8px baseline scale */
  --s1: 8px;  --s2: 16px; --s3: 24px;  --s4: 32px;  --s5: 40px;  --s6: 48px;
  --s7: 56px; --s8: 64px; --s9: 72px;  --s10: 80px; --s11: 88px; --s12: 96px;

  /* the three type roles */
  --font-display: 'Besley', 'Besley Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Fallback',
               -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* grid */
  --maxw: 1120px;
  --gutter: 32px;

  /* paper shadow (used only on the two white artefacts) */
  --sh-paper: 0 1px 2px rgba(32, 31, 26, .10), 0 10px 28px rgba(32, 31, 26, .08);
}

/* ----------------------------------------------------------------------------
   2. GROUND + BASE TYPOGRAPHY
   ------------------------------------------------------------------------- */
body.vd {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}
body.vd *, body.vd *::before, body.vd *::after { box-sizing: border-box; }

body.vd h1, body.vd h2, body.vd h3, body.vd h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 var(--s2);
}
body.vd p { margin: 0 0 var(--s2); }
body.vd img, body.vd svg { max-width: 100%; height: auto; }
body.vd ::selection { background: var(--theatre-tint); }

/* zero-specificity via :where() so any component class (.vd-btn, .vd-nav-link,
   .led-row, .vd-foot a …) overrides plain-link styling without !important */
:where(body.vd a) { color: var(--theatre); text-decoration: underline; text-underline-offset: 2px; }
:where(body.vd a:hover) { color: var(--theatre-hover); }

body.vd :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* type scale — 78 verdict → 44 section → 24 panel → 20 lead → 17 body → 13 caption → 11.5 meta */
.vd-verdict-xl {                                  /* hero verdicts */
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: .98; letter-spacing: -.01em;
}
.vd-h2 {                                          /* section heads */
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.02; letter-spacing: -.005em;
}
.vd-h3 {                                          /* panel heads */
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.15;
}
.vd-lead { font-size: 20px; line-height: 1.5; font-weight: 400; }
.vd-caption { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.vd-meta {                                        /* mono running heads / labels */
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11.5px; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  font-feature-settings: normal;
}
.vd-eyebrow {                                     /* mono eyebrow above a headline */
  font-family: var(--font-mono); font-weight: 500;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 var(--s2);
}
.vd-money {                                       /* $3,000 / $290 */
  font-family: var(--font-display); font-weight: 800;
  /* NB: no tabular-nums here — the Besley woff2 subset lacks the tnum “0”
     glyph, which forces a fallback face. lining-nums alone is safe. */
  font-variant-numeric: lining-nums;
  letter-spacing: -.01em;
}
.vd-money small {
  font-family: var(--font-mono); font-weight: 400;
  font-size: .42em; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.tnum { font-variant-numeric: tabular-nums lining-nums; }
/* .tnum must never re-arm tabular figures on Besley money (missing tnum “0”) */
.vd-money.tnum, .vd-fees .fee-price.tnum { font-variant-numeric: lining-nums; }

/* every big number gets a plain-words caption beneath it */
.vd-figure-caption { font-size: 13px; color: var(--ink-2); margin: var(--s1) 0 0; }

/* pull-quote — Besley 600 italic between two 1.5px rules */
.vd-pull {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35;
  border-top: var(--rule); border-bottom: var(--rule);
  padding: var(--s3) 0; margin: var(--s5) 0;
}
.vd-pull cite {
  display: block; font-family: var(--font-mono); font-style: normal; font-weight: 400;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-top: var(--s2);
}

/* `body.vd p` (0,1,2) out-specifies single-class utilities (0,1,0) and would
   flatten their margins — restate them at (0,1,2)+ so they win on <p>. */
body.vd p.vd-signoff { margin: var(--s12) auto; }
body.vd p.vd-flag-note { margin: var(--s1) 0 0; }
body.vd p.vd-rangebar-figures { margin: var(--s1) 0 0; }
body.vd p.vd-figure-caption { margin: var(--s1) 0 0; }

/* the sign-off — “Sit once.” — the ONLY centred text on the site */
.vd-signoff {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1;
  letter-spacing: -.01em;
  text-align: center;
  margin: var(--s12) auto;
}

/* ----------------------------------------------------------------------------
   3. LAYOUT — 12-col, 1120 max, 32px gutters, asymmetric 5/7
   ------------------------------------------------------------------------- */
.vd-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.vd-sec { padding: var(--s10) 0; }
.vd-sec--tight { padding: var(--s6) 0; }
.vd-band { background: var(--chalk-2); }          /* recessed section band */

.vd-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--s5);
  align-items: start;
}
.vd-cols-copy { grid-column: span 5; }            /* copy left  */
.vd-cols-art  { grid-column: span 7; }            /* artefact right (may bleed) */
.vd-cols-full { grid-column: 1 / -1; }

/* major + hairline rules as elements */
.vd-rule     { border: 0; border-top: var(--rule); margin: 0; }
.vd-hairline { border: 0; border-top: var(--rule-hairline); margin: 0; }

@media (max-width: 900px) {
  /* Collapse the 12-col grid entirely: repeat(12,1fr) + 11×32px gutters has a
     ~500px min-width that overflows small viewports. */
  .vd-grid { grid-template-columns: 1fr; column-gap: 0; }
  .vd-grid > * { grid-column: 1 / -1; }
  .vd-cols-copy, .vd-cols-art { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body.vd { font-size: 16px; }
  .vd-wrap { padding: 0 20px; }
  .vd-sec { padding: var(--s8) 0; }
}

/* ----------------------------------------------------------------------------
   4. NAV — chalk bar, 1.5px ink bottom rule, three links + one CTA
   ------------------------------------------------------------------------- */
.vd-nav { position: sticky; top: 0; z-index: 90; background: var(--chalk); border-bottom: var(--rule); }
.vd-nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 64px;
  display: flex; align-items: center; gap: var(--s4);
}
.vd-wordmark {
  font-family: var(--font-wordmark, "General Sans", Arial, sans-serif); font-weight: 600; font-size: 24px;
  letter-spacing: -.025em; color: var(--ink); text-decoration: none;
  margin-right: auto; display: inline-flex; align-items: center; gap: 8px;
}
.vd-wordmark::before {
  content: '';
  width: var(--brand-mark-size, 32px);
  height: var(--brand-mark-size, 32px);
  flex: none;
  background: url('/icons/medcue-mark-light.svg?v=2') center / contain no-repeat;
}
.vd-wordmark:hover { color: var(--ink); }
.vd-wordmark .vd-wordmark-reg {
  font-family: var(--font-mono); font-weight: 400; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.vd-nav-link {
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  color: var(--ink); text-decoration: none;
}
.vd-nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .vd-nav-inner { padding: 0 20px; gap: var(--s2); }
  .vd-nav-link--collapsible { display: none; }    /* wordmark · Sign in · CTA survive */
}
@media (max-width: 560px) {
  .vd-nav .vd-btn { display: none; }              /* the sticky bottom bar carries the one action */
  .vd-wordmark .vd-wordmark-reg { display: none; }
}

/* ----------------------------------------------------------------------------
   5. BUTTONS — one primary per screen; verb is always
      “Get your first Verdict — free”
   ------------------------------------------------------------------------- */
.vd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 13px 24px; min-height: 48px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.vd-btn-primary { background: var(--theatre); border-color: var(--theatre); color: #FFFFFF; }
.vd-btn-primary:hover { background: var(--theatre-hover); border-color: var(--theatre-hover); color: #FFFFFF; }
.vd-btn-quiet { background: transparent; border-color: var(--ink); color: var(--ink); }
.vd-btn-quiet:hover { background: var(--chalk-2); color: var(--ink); }
.vd-btn[disabled], .vd-btn.is-disabled {
  background: transparent; border-color: var(--slate); color: var(--slate);
  cursor: not-allowed; pointer-events: none;
}
.vd-btn--sm { font-size: 15px; padding: 8px 16px; min-height: 40px; }
.vd-btn--full { display: flex; width: 100%; }

/* ----------------------------------------------------------------------------
   6. LEDGER ROWS — every former card grid is a ledger.
      mono figure col · Besley name · Atkinson desc · right tabular figure
   ------------------------------------------------------------------------- */
.led { border-top: var(--rule); margin: 0; padding: 0; list-style: none; }
.led-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  column-gap: var(--s3);
  align-items: baseline;
  padding: var(--s3) 0;
  border-bottom: var(--rule);
  color: inherit; text-decoration: none;
}
a.led-row:hover, .led-row.is-hover { background: var(--chalk-2); }
a.led-row { transition: background-color 120ms ease; }
.led-fig {
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.led-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; line-height: 1.2; color: var(--ink); margin: 0;
}
.led-desc { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin: 4px 0 0; }
.led-val {
  font-family: var(--font-mono); font-weight: 500; font-size: 15px;
  font-variant-numeric: tabular-nums; text-align: right; color: var(--ink);
  white-space: nowrap;
}
.led-val .vd-meta { display: block; text-align: right; }
@media (max-width: 640px) {
  /* max-content lets long mono labels (OVERALL, 0 / 20) widen their column
     instead of overflowing into the row name on narrow screens. */
  .led-row { grid-template-columns: minmax(56px, max-content) minmax(0, 1fr); row-gap: 4px; }
  .led-val { grid-column: 2; text-align: left; }
  .led-val .vd-meta { text-align: left; }
}

/* open-seat dot — theatre green, a decision lives here (partner board) */
.vd-seat {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--theatre); vertical-align: baseline; margin-right: 6px;
}
.vd-seat--closed { background: var(--slate); }

/* ----------------------------------------------------------------------------
   7. THE SIGNATURE — Reference-Range Bar
      NEVER a gauge, dial, ring, or percentage donut — anywhere.
      Position API (set inline on .vd-rangebar):
        --rb-lo / --rb-hi   → 95% CI band edges (e.g. 59% / 69%)
        --rb-x              → point estimate     (e.g. 64%)
        --rb-t              → threshold tick     (e.g. 70%)
   ------------------------------------------------------------------------- */
.vd-rangebar {
  --rb-lo: 0%; --rb-hi: 0%; --rb-x: 0%; --rb-t: 70%;
  position: relative;
  padding-top: 26px;                              /* room for the tick label */
  margin: var(--s2) 0 var(--s1);
}
.rb-track {
  position: relative; height: 12px;
  background: var(--chalk-2);     /* recessed on the white report AND the chalk ground */
  border: var(--rule-hairline);
  border-radius: 0;
}
.rb-ci {
  position: absolute; top: 0; bottom: 0;
  left: var(--rb-lo); width: calc(var(--rb-hi) - var(--rb-lo));
  background: color-mix(in srgb, var(--theatre) 24%, var(--paper));
  transform-origin: 100% 50%;                     /* CI grows from the threshold side */
}
.vd-rangebar.rb-origin-left .rb-ci { transform-origin: 0 50%; }
.rb-tick {
  position: absolute; left: var(--rb-t);
  top: -7px; bottom: -7px; width: 1.5px;
  background: var(--ink);
}
.rb-tick-label {
  position: absolute; bottom: calc(100% + 5px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-weight: 500; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
}
.rb-tick-label--left  { left: auto; right: 0; transform: none; text-align: right; }
.rb-tick-label--right { left: 0; transform: none; }
.rb-dot {
  position: absolute; top: 50%; left: var(--rb-x);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--theatre);
  border: 2px solid var(--paper);
  transform: translate(-50%, -50%);
}
.rb-scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  font-variant-numeric: tabular-nums; margin-top: 6px;
}
.vd-rangebar-figures {
  font-family: var(--font-mono); font-weight: 500; font-size: 15px;
  font-variant-numeric: tabular-nums; color: var(--ink); margin: var(--s1) 0 0;
}
.vd-rangebar-figures .sep { color: var(--ink-2); padding: 0 4px; }

/* honest states */
.vd-rangebar.is-insufficient .rb-ci {
  background: color-mix(in srgb, var(--slate) 18%, var(--paper));
}
.vd-rangebar.is-insufficient .rb-dot {
  background: var(--paper); border: 1.5px dashed var(--slate);
}

/* mini-bar — dated small multiples in the report archive (never a chart wall) */
.vd-rangebar--mini { padding-top: 0; margin: 0; }
.vd-rangebar--mini .rb-track { height: 8px; }
.vd-rangebar--mini .rb-tick { top: -4px; bottom: -4px; }
.vd-rangebar--mini .rb-tick-label { display: none; }
.vd-rangebar--mini .rb-dot { width: 10px; height: 10px; }

/* ----------------------------------------------------------------------------
   8. VERDICT FLAGS — exactly three states, verbatim, everywhere:
      BAND ABOVE REFERENCE  /  BAND BELOW REFERENCE  /  INSUFFICIENT DATA
   ------------------------------------------------------------------------- */
.vd-flag {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05;
  letter-spacing: -.005em;
  border: 1.5px solid currentColor; border-radius: 0;
  padding: 6px 18px 9px;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.vd-flag--ready {
  color: var(--theatre);
  background: var(--theatre-tint);
}
.vd-flag--notyet {
  color: var(--cue-apricot-deep);
  background: color-mix(in srgb, var(--amber) 8%, var(--paper));
}
.vd-flag--insufficient {
  color: var(--slate);
  background: color-mix(in srgb, var(--slate) 10%, var(--paper));
}
.vd-flag--sm { font-size: 18px; padding: 3px 10px 4px; letter-spacing: 0; }
/* NOT YET must always carry a trajectory line; INSUFFICIENT DATA a data need */
.vd-flag-note { font-size: 15px; color: var(--ink-2); margin: var(--s1) 0 0; }

/* ----------------------------------------------------------------------------
   9. THE VERDICT REPORT — the one trusted document (pure white artefact)
   ------------------------------------------------------------------------- */
.vd-report {
  background: var(--paper);
  color: var(--ink);
  border: var(--rule);
  border-radius: 0;
  box-shadow: var(--sh-paper);
  max-width: 600px;
}
/* header band — mono, over a 1.5px ink rule */
.vdr-band {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  padding: 12px 24px;
  border-bottom: var(--rule);
  font-family: var(--font-mono); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.vdr-band .vdr-no { font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* identity rows */
.vdr-id { margin: 0; }
.vdr-id-row {
  display: grid; grid-template-columns: 148px 1fr; column-gap: var(--s2);
  padding: 9px 24px;
  border-bottom: var(--rule-hairline);
  align-items: baseline;
}
.vdr-id-row dt {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.vdr-id-row dd { margin: 0; font-size: 15px; }
/* result block */
.vdr-result { padding: var(--s3) 24px var(--s2); }
.vdr-result-label {
  display: block;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 2px;
}
/* the verdict itself */
.vdr-verdict { padding: var(--s1) 24px var(--s3); }
.vdr-verdict .vd-flag-note { margin-top: 10px; }
/* per-domain lines, weakest first, candidate’s own words as evidence */
.vdr-domains { border-top: var(--rule-hairline); padding: var(--s1) 0; }
.vdr-domain {
  display: grid;
  grid-template-columns: 152px auto minmax(0, 1fr);
  column-gap: var(--s2); align-items: baseline;
  padding: 9px 24px;
}
.vdr-domain + .vdr-domain { border-top: var(--rule-hairline); }
.vdr-domain-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.vdr-domain-fig {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.vdr-domain-fig.is-low { color: var(--cue-apricot-deep); }
.vdr-domain-quote { font-size: 13.5px; color: var(--ink-2); font-style: italic; }
/* the one prescribed action — the report’s only button */
.vdr-action { border-top: var(--rule-hairline); padding: var(--s3) 24px; }
.vdr-action h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.vdr-action p { font-size: 15px; color: var(--ink-2); margin: 0 0 var(--s2); }
.vdr-action .vd-btn { margin: 0; }
/* footer line */
.vdr-foot {
  border-top: var(--rule);
  padding: 10px 24px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .vdr-band, .vdr-id-row, .vdr-result, .vdr-verdict, .vdr-domain,
  .vdr-action, .vdr-foot { padding-left: 16px; padding-right: 16px; }
  .vdr-id-row { grid-template-columns: 116px 1fr; }
  .vdr-domain { grid-template-columns: 116px auto; }
  .vdr-domain-quote { grid-column: 1 / -1; margin-top: 2px; }
}

/* --- state switching -------------------------------------------------------
   Product pages render ONE state. Marketing demos render all three inside
   .vdr-states and switch them with three sibling radios (no JS, CSP-safe):

   <div class="vd-report-demo">
     <input class="vd-visually-hidden" type="radio" name="vdemo" id="v-notyet" checked>
     <input class="vd-visually-hidden" type="radio" name="vdemo" id="v-ready">
     <input class="vd-visually-hidden" type="radio" name="vdemo" id="v-insuff">
     <div class="vd-toggle">
       <label for="v-notyet">Not yet</label>
       <label for="v-ready">Ready</label>
       <label for="v-insuff">Insufficient data</label>
     </div>
     <article class="vd-report"> …shared header… <div class="vdr-states">
       <div class="vdr-state">…NOT YET…</div>
       <div class="vdr-state">…READY…</div>
       <div class="vdr-state">…INSUFFICIENT DATA…</div>
     </div> …shared footer… </article>
   </div>
   Radio order MUST match .vdr-state order (1→1, 2→2, 3→3).                  */
.vd-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.vdr-states { display: grid; }
.vdr-states > .vdr-state { grid-area: 1 / 1; }
.vd-report-demo .vdr-states > .vdr-state { visibility: hidden; }
.vd-report-demo > input:nth-of-type(1):checked ~ .vd-report .vdr-states > .vdr-state:nth-of-type(1),
.vd-report-demo > input:nth-of-type(2):checked ~ .vd-report .vdr-states > .vdr-state:nth-of-type(2),
.vd-report-demo > input:nth-of-type(3):checked ~ .vd-report .vdr-states > .vdr-state:nth-of-type(3) {
  visibility: visible;
}
/* the three-state segmented toggle */
.vd-toggle {
  display: inline-flex;
  border: var(--rule); border-radius: var(--radius);
  margin-bottom: var(--s2);
  background: var(--chalk);
}
.vd-toggle label {
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; cursor: pointer; color: var(--ink-2);
  transition: background-color 120ms ease, color 120ms ease;
}
.vd-toggle label + label { border-left: var(--rule); }
.vd-report-demo > input:nth-of-type(1):checked ~ .vd-toggle label:nth-of-type(1),
.vd-report-demo > input:nth-of-type(2):checked ~ .vd-toggle label:nth-of-type(2),
.vd-report-demo > input:nth-of-type(3):checked ~ .vd-toggle label:nth-of-type(3) {
  background: var(--ink); color: var(--chalk);
}
.vd-report-demo > input:focus-visible ~ .vd-toggle { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- THE single composed animation ------------------------------------------
   Add .vd-anim to the initially-visible .vd-rangebar’s nearest wrapper (or the
   report itself). Runs ONCE on load, <1s, CSS-only:
   track fades → CI scales from the threshold outward → dot settles with a
   150ms micro-overshoot → the verdict word stamps last via steps(1,end).     */
.vd-anim .rb-track { animation: vd-fade 200ms ease-out both; }
.vd-anim .rb-scale { animation: vd-fade 200ms ease-out both; }
.vd-anim .rb-ci    { animation: vd-ci 300ms cubic-bezier(.2, .7, .3, 1) 200ms both; }
.vd-anim .rb-dot   { animation: vd-dot 300ms cubic-bezier(.3, .9, .4, 1) 450ms both; }
.vd-anim .vd-flag  { animation: vd-stamp 150ms steps(1, end) 800ms both; }
@keyframes vd-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes vd-ci    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vd-dot   {
  0%   { transform: translate(-50%, -50%) scale(0); }
  50%  { transform: translate(-50%, -50%) scale(1.18); }   /* the micro-overshoot */
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes vd-stamp { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------------------------
   10. EXAM-PAPER SPECIMEN — the sacred pure-white sheet.
       Colour stops dead at its edge; internal Georgia stack untouched.
   ------------------------------------------------------------------------- */
.vd-specimen-label { margin-bottom: var(--s1); }  /* pair with .vd-meta */
.vd-specimen {
  background: var(--paper);
  color: #000;
  border: var(--rule);
  border-radius: 0;
  box-shadow: var(--sh-paper);
}
/* helpers for a hand-written mini specimen (real papers bring paper.css) */
.vd-specimen .sp-inner {
  font-family: Georgia, 'Times New Roman', serif;
  padding: var(--s4) var(--s5);
  font-size: 14.5px; line-height: 1.5;
}
.vd-specimen .sp-head {
  font-weight: bold; font-size: 12.5px; letter-spacing: .4px;
  border-bottom: 1px solid #000;
  padding-bottom: 10px; margin-bottom: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.vd-specimen .sp-q { margin: 0 0 12px; }
.vd-specimen .sp-opt { margin: 0 0 6px 22px; }
@media (max-width: 640px) { .vd-specimen .sp-inner { padding: var(--s3) var(--s2); } }

/* ----------------------------------------------------------------------------
   11. FEE SCHEDULE — pricing is ONE table, an artefact (hairlines inside)
   ------------------------------------------------------------------------- */
.vd-scroll-x { overflow-x: auto; }
.vd-fees {
  width: 100%; border-collapse: collapse;
  border-top: var(--rule); border-bottom: var(--rule);
}
.vd-fees th {
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  text-align: left; padding: 10px 16px;
  background: var(--chalk-2);
  border-bottom: var(--rule);
}
.vd-fees td {
  padding: var(--s2) 16px;
  border-bottom: var(--rule-hairline);
  vertical-align: baseline;
  font-size: 15.5px;
}
.vd-fees tr:last-child td { border-bottom: 0; }
.vd-fees .fee-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.vd-fees .fee-name .vd-caption { display: block; font-family: var(--font-body); font-weight: 400; white-space: normal; }
.vd-fees .fee-price {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  font-variant-numeric: lining-nums; /* Besley subset lacks tnum “0” — see .vd-money */
  white-space: nowrap;
}
.vd-fees .fee-price small {
  font-family: var(--font-mono); font-weight: 400; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.vd-fees tr.is-selected td { background: var(--theatre-tint); }
.vd-tag-selected {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 600; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--theatre); border: 1.5px solid var(--theatre); border-radius: var(--radius);
  padding: 2px 8px; margin-left: 10px;
  vertical-align: 3px;
}

/* ----------------------------------------------------------------------------
   12. FOOTER — the dark-ink field
   ------------------------------------------------------------------------- */
.vd-foot {
  background: var(--ink);
  color: var(--chalk);
  padding: var(--s8) 0 var(--s5);
  margin-top: var(--s10);
}
.vd-foot .vd-wrap { color: var(--chalk); }
.vd-foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  column-gap: var(--gutter); row-gap: var(--s4);
  margin-bottom: var(--s6);
}
.vd-foot-h {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--hairline); margin: 0 0 var(--s2);
}
.vd-foot ul { list-style: none; margin: 0; padding: 0; }
.vd-foot li { margin: 0 0 10px; }
.vd-foot a { color: var(--chalk); text-decoration: none; font-size: 15px; }
.vd-foot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.vd-foot-wordmark {
  font-family: var(--font-wordmark, "General Sans", Arial, sans-serif); font-weight: 600; font-size: 24px;
  color: var(--chalk); margin: 0 0 var(--s2);
}
.vd-foot-legal {
  border-top: 1px solid rgba(207, 203, 192, .35);
  padding-top: var(--s3);
  font-size: 13px; line-height: 1.6; color: var(--hairline);
}
.vd-foot-legal p { margin: 0 0 var(--s1); }
@media (max-width: 820px) { .vd-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .vd-foot-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------------
   13. STICKY MOBILE CTA — 56px bottom bar, safe-area aware
       Reveal (motion №3) is optional: toggle .is-down from an external script.
   ------------------------------------------------------------------------- */
.vd-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none;
  background: var(--chalk);
  border-top: var(--rule);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  transition: transform 200ms ease;
}
.vd-sticky-cta .vd-btn { width: 100%; min-height: 40px; }
.vd-sticky-cta.is-down { transform: translateY(110%); }
@media (max-width: 720px) {
  .vd-sticky-cta { display: block; }
  body.vd.vd-has-sticky { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ----------------------------------------------------------------------------
   14. PRINT — the Verdict Report prints as A5, alone, colour-true
   ------------------------------------------------------------------------- */
@media print {
  body.vd { background: #FFFFFF; }
  @page { size: A5; margin: 12mm; }
  body.vd * { visibility: hidden; }
  body.vd .vd-report, body.vd .vd-report * { visibility: visible; }
  body.vd .vd-report {
    position: absolute; left: 0; top: 0;
    width: 100%; max-width: none;
    border: 1.5px solid #201F1A; box-shadow: none;
  }
  /* A page with no Verdict Report prints normally (legal registers, pricing…)
     — the report-only treatment applies only where a report exists. */
  body.vd:not(:has(.vd-report)) * { visibility: visible; }
  /* Hidden-but-tall page content would otherwise emit blank pages around the
     absolutely-positioned report — collapse everything that isn’t its host. */
  body.vd:has(.vd-report) .vd-sec:not(:has(.vd-report)) { display: none; }
  body.vd .vd-report .vd-btn { display: none; }   /* paper carries no buttons */
  /* Report demo: print ONLY the selected state, and never the toggle —
     visibility alone leaves all three states stacked in the same grid area. */
  body.vd .vd-report-demo > input:nth-of-type(1):not(:checked) ~ .vd-report .vdr-states > .vdr-state:nth-of-type(1),
  body.vd .vd-report-demo > input:nth-of-type(2):not(:checked) ~ .vd-report .vdr-states > .vdr-state:nth-of-type(2),
  body.vd .vd-report-demo > input:nth-of-type(3):not(:checked) ~ .vd-report .vdr-states > .vdr-state:nth-of-type(3) {
    display: none;
  }
  body.vd .vd-toggle { display: none; }
  /* Never print mid-animation — settle every .vd-anim element instantly. */
  body.vd .vd-anim, body.vd .vd-anim * { animation: none !important; }
  body.vd .vd-flag, body.vd .rb-ci, body.vd .rb-dot, body.vd .rb-track,
  body.vd .vd-fees tr.is-selected td {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  body.vd .vd-sticky-cta, body.vd .vd-nav, body.vd .vd-foot { display: none; }
}

/* ----------------------------------------------------------------------------
   15. REDUCED MOTION — kill the lot
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.vd *, body.vd *::before, body.vd *::after {
    animation: none !important;
    transition: none !important;
  }
  body.vd .vd-sticky-cta.is-down { transform: none; }
}
