/* CPI v6, round 6 design (agreed 7 Nov 2026): bolder, in the Institute Hub family. AWA palette only (kit tints from current/app/base.css).
   Surfaces, from the Hub (institute.css): a midnight top bar, a mist canvas (#F4F6F6), white cards (radius 20, the Hub's rest shadow),
   midnight stages with the Hub's contour lines for the intro, the layer breaks and the reveal, and a white sheet that rises over
   their foot with 28px corners. Spectral 700 for headings and big figures, Manrope 500/700 for everything else. */
@font-face { font-family: 'Spectral'; src: url('../fonts/Spectral-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype'); font-weight: 200 800; font-style: normal; font-display: block; }

:root {
  --coral: #FF5C39; --coral-h: #E8512F; --coral-p: #C44322; --coral-20: #FFE4DC; --coral-10: #FFF3EE;
  --ink: #253746; --ink-d: #1A2832; --ink-2: #3A4B5A; --ink-3: #6A7682; --ink-4: #A5ADB5; --line: #E1E4E7;
  --mint: #52D2BC; --mint-l: #DCF4EE; --sky: #9ADBE8; --sky-l: #E5F4F8; --dusk: #AD96DC; --dusk-l: #EEE7F7;
  --light: #D9E1E2; --light-l: #F4F6F6; --white: #FFFFFF;
  --canvas: #F4F6F6;                        /* the Hub's mist: every light page sits on it */
  --on-mid: #FFFFFF; --on-mid-2: rgba(255, 255, 255, 0.74); --on-mid-hair: rgba(255, 255, 255, 0.14);
  --stage: linear-gradient(180deg, #253746 0%, #253746 52%, #1A2832 100%); /* the Hub's wash: one neutral, darkening at the foot */
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --hair: rgba(37, 55, 70, 0.12);
  --hw: 1px;
  /* the Hub's two shadows (institute.css --shadow-rest / --shadow-lift) */
  --lift: 0 1px 2px rgba(37, 55, 70, 0.06), 0 8px 24px rgba(37, 55, 70, 0.06);
  --lift-2: 0 2px 4px rgba(37, 55, 70, 0.08), 0 20px 48px rgba(37, 55, 70, 0.10);
  --r-input: 12px; --r-card: 20px; --r-tile: 28px;
  --pad: 24px; --col: 1200px; --hd: 64px; --gap: 72px;
}
@media (min-resolution: 2dppx) { :root { --hw: 0.5px; --hair: rgba(37, 55, 70, 0.2); } }
@media (min-width: 900px) { :root { --pad: 48px; --hd: 76px; } }
@media (max-width: 374px) { :root { --pad: 20px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: inherit; text-wrap: balance; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
b, strong { font-weight: 700; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.stage :focus-visible, .hd :focus-visible, .bd-card :focus-visible { outline-color: var(--white); }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.fig { font-family: var(--serif); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; line-height: 1; }
.small { font-size: 14px; color: var(--ink-2); }
@media (max-width: 899px) { .desk-only { display: none !important; } }
@media (min-width: 900px) { .phone-only { display: none !important; } }

/* ---------- surfaces ---------- */
.stage { position: relative; overflow: hidden; color: var(--on-mid); background: var(--stage); isolation: isolate; }
.stage > .wrap { position: relative; z-index: 1; }
.ctr { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 52%); mask-image: linear-gradient(180deg, transparent 6%, #000 52%); }
.ctr svg { position: absolute; left: 0; width: 100%; top: 0; height: 100%; }
.ctr-low svg { top: 34%; height: 66%; }
.glass { background: rgba(255, 255, 255, 0.07); border-radius: var(--r-tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 26px 60px -12px rgba(10, 20, 28, 0.45); }
.card { background: var(--white); border-radius: var(--r-card); box-shadow: var(--lift); }
/* the Hub's rising sheet: white paper over the stage's foot, 28px corners */
.up { position: relative; z-index: 2; margin-top: -28px; background: var(--white); border-radius: var(--r-tile) var(--r-tile) 0 0; box-shadow: 0 -8px 40px rgba(26, 40, 50, 0.35); padding: 56px 0 64px; }
@media (min-width: 900px) { .up { padding: 72px 0 80px; } }

/* ---------- buttons: press on the way down, colour on hover, never "transition: all" ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
@media (max-width: 439px) { .btn { white-space: normal; min-width: 0; } }
.btn-primary { background: var(--coral); color: var(--white); font-size: 19px; } /* 19px bold = large text: white on coral 3.07:1 */
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--coral-h); } }
.btn-primary:active { background: var(--coral-p); }
.btn-primary[aria-disabled="true"] { background: var(--light); color: var(--ink-2); cursor: default; }
.btn-primary[aria-disabled="true"] .arr { background: rgba(37, 55, 70, 0.08); }
.btn-primary[aria-disabled="true"]:active { transform: none; }
.btn-xl { min-height: 60px; padding: 0 30px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--light); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-4); } }
.btn-ghost.on-mid { color: var(--white); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }
@media (hover: hover) and (pointer: fine) { .btn-ghost.on-mid:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); } }
/* the arrow sits in its own round seat inside the pill */
.btn .arr { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; margin-right: -12px; border-radius: 50%; background: rgba(255, 255, 255, 0.2);
  transition: transform 220ms var(--ease-out), background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(3px); } }
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 160ms ease, color 160ms ease; }
.link.quiet { font-weight: 500; color: var(--ink-2); text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; }
.link.on-mid { color: var(--white); font-weight: 500; text-decoration-color: rgba(255, 255, 255, 0.4); text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .link.quiet:hover { color: var(--ink); text-decoration-color: var(--ink); } .link:hover { text-decoration-color: var(--ink); } .link.on-mid:hover { text-decoration-color: var(--white); } }
.link:active { opacity: 0.7; }

/* ---------- header: the Hub's midnight bar, reversed logo, the four rings on the right ---------- */
.awa { display: block; height: 26px; width: auto; }
@media (min-width: 900px) { .awa { height: 32px; } }
.hd { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hd); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand .sep { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.2); flex: none; }
.org-chip { display: inline-flex; align-items: center; height: 38px; padding: 0 10px; border-radius: 10px; background: var(--white); flex: none; }
.brand .org { display: block; height: 26px; width: auto; }
.org-txt { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.sv-st { margin-top: 16px; font-size: 14px; color: var(--on-mid-2); min-height: 1.5em; }
@media (min-width: 900px) { .org-chip { height: 44px; padding: 0 12px; } .brand .org { height: 30px; } }
.hd-r { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hd-t { font-size: 14px; color: var(--on-mid-2); white-space: nowrap; }
.hd-prog { display: none; flex-direction: column; align-items: flex-end; line-height: 1.25; text-align: right; }
@media (min-width: 900px) { .hd-prog { display: flex; } }
.hd-prog b { font-size: 14px; }
.hd-prog span { font-size: 13px; color: var(--on-mid-2); font-variant-numeric: tabular-nums; }
.hd-rings { display: flex; gap: 6px; }
.hd-rings[hidden] { display: none; }
.slot { position: relative; flex: none; }
.slot > .lr { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hd-rings .slot { width: 26px; height: 26px; }
@media (max-width: 439px) { .hd-rings .slot { width: 22px; height: 22px; } .hd-rings { gap: 5px; } .brand { gap: 10px; } .org-chip { height: 32px; padding: 0 8px; } .brand .org { height: 20px; } .brand .sep { height: 22px; } .hd .awa { height: 22px; } }
@media (min-width: 900px) { .hd-rings .slot { width: 32px; height: 32px; } .hd-rings { gap: 8px; } }
.hd-rings .slot.cur::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--white); }
.lr { display: block; }

/* ---------- screens ---------- */
#app { min-height: 100vh; min-height: 100dvh; }
.scr { padding-top: 32px; padding-bottom: 120px; }
@media (min-width: 900px) { .scr { padding-top: 64px; padding-bottom: 96px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 var(--gap); align-items: start; } }

/* ---------- intro: a midnight stage (the Hub's overture), then a white sheet with what the questions cover ---------- */
.in-st { padding: 40px 0 76px; }
@media (min-width: 900px) { .in-st { min-height: min(calc(100svh - var(--hd) - 8px), 820px); display: flex; align-items: center; padding: 64px 0 104px; } .in-st > .wrap { flex: 1; } }
.in-g { display: grid; gap: 40px; }
@media (min-width: 900px) { .in-g { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 64px; align-items: center; } }
.org-line { font-size: 16px; font-weight: 700; color: var(--on-mid-2); margin-bottom: 16px; }
.in-h1 { font-size: 50px; line-height: 1; letter-spacing: -0.02em; max-width: 12ch; }
@media (min-width: 900px) { .in-h1 { font-size: clamp(60px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; } }
body[data-version="client"] .in-h1, body[data-version="institute"] .in-h1 { max-width: 15ch; }
@media (min-width: 900px) { body[data-version="client"] .in-h1, body[data-version="institute"] .in-h1 { font-size: clamp(50px, 4.8vw, 68px); } }
.in-sub { margin-top: 18px; font-size: 21px; line-height: 1.4; color: var(--white); max-width: 26em; }
.in-lede { margin-top: 16px; font-size: 17px; color: var(--on-mid-2); max-width: 34em; }
@media (min-width: 900px) { .in-lede { font-size: 19px; margin-top: 22px; } }
.in-act { margin-top: 32px; }
.in-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.in-meta { margin-top: 16px; font-size: 14px; color: var(--on-mid-2); }
.code-l { display: block; font-size: 16px; font-weight: 700; }
.code-help { font-size: 15px; color: var(--on-mid-2); margin-top: 2px; }
.code-row { display: flex; gap: 10px; margin-top: 14px; max-width: 480px; }
.inp { display: block; width: 100%; min-width: 0; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px var(--ink-4);
  font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); background: var(--white); text-transform: uppercase; transition: box-shadow 160ms ease; }
.stage .inp { box-shadow: none; }
.inp:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(255, 255, 255, 0.5); }
.inp::placeholder { color: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.inp.bad { box-shadow: inset 0 0 0 2px var(--coral-p), 0 0 0 4px var(--coral-20); }
.code-row .btn { flex: none; min-height: 56px; }
.code-msg { min-height: 22px; margin-top: 10px; font-size: 15px; color: var(--coral-20); font-weight: 700; }
.in-r { padding: 24px; }
@media (min-width: 900px) { .in-r { padding: 36px; } }
.in-r-h { font-size: 15px; font-weight: 700; color: var(--on-mid-2); }
.ia-rings { display: grid; grid-template-columns: 1fr; margin-top: 10px; }
.ia-rings li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 56px; box-shadow: inset 0 -1px 0 var(--on-mid-hair); }
.ia-rings .slot { width: 40px; height: 40px; }
.ia-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
@media (min-width: 900px) { .ia-rings { grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 28px; } .ia-rings li { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; min-height: 0; box-shadow: none; } .ia-rings .slot { width: 84px; height: 84px; } .ia-t { display: block; } }
.ia-t b { display: block; font-size: 16px; line-height: 1.25; }
.ia-t span { display: block; font-size: 14px; color: var(--on-mid-2); white-space: nowrap; }
@media (min-width: 900px) { .ia-t b { font-size: 18px; } }
.ia-out { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 24px; padding-top: 22px; box-shadow: 0 -1px 0 var(--on-mid-hair); }
@media (min-width: 900px) { .ia-out { margin-top: 32px; padding-top: 28px; } }
.ia-out p { font-size: 15px; color: var(--on-mid-2); }
.ia-out p b { color: var(--white); }
.in-up-g { display: grid; gap: 28px; }
@media (min-width: 900px) { .in-up-g { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); } }
.in-up-h { font-size: 30px; line-height: 1.1; }
@media (min-width: 900px) { .in-up-h { font-size: 40px; } }
.in-up-p { margin-top: 12px; color: var(--ink-2); max-width: 30em; }
.in-ly li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 20px 0; box-shadow: inset 0 calc(-1 * var(--hw)) 0 var(--hair); }
.in-ly li:first-child { padding-top: 0; }
@media (min-width: 900px) { .in-ly li { grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 24px 0; } }
.ly-f { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; }
@media (min-width: 900px) { .ly-f { width: 72px; height: 72px; border-radius: 20px; } }
.in-ly h3 { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 22px; line-height: 1.2; }
.in-ly h3 span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
.in-ly p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 44em; }
.in-foot { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; box-shadow: 0 calc(-1 * var(--hw)) 0 var(--hair); font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .in-foot { grid-template-columns: 5fr 7fr; gap: var(--gap); margin-top: 72px; } }

/* ---------- about you: a white card on the canvas; chips press and tick ---------- */
.ab-h { font-size: 36px; line-height: 1.06; }
@media (min-width: 900px) { .ab-h { font-size: 56px; } .ab-l { padding-top: 24px; } }
.ab-lede { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 26em; }
.ab-form { padding: 8px 22px 22px; }
@media (min-width: 900px) { .ab-form { padding: 16px 40px 36px; } }
.ab-f { margin-top: 20px; border: 0; }
.ab-f + .ab-f { padding-top: 20px; box-shadow: inset 0 var(--hw) 0 var(--hair); }
.ab-f legend { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.ab-f + .ab-f legend { float: left; width: 100%; }
.ab-f + .ab-f .chips { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 140ms var(--ease-out), padding 200ms var(--ease-out); }
.chip span::before { content: ''; width: 0; height: 14px; flex: none; opacity: 0; transform: scale(0.4);
  background: no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: width 200ms var(--ease-out), margin 200ms var(--ease-out), opacity 160ms ease, transform 200ms var(--ease-out); }
.chip span:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip span:hover { box-shadow: inset 0 0 0 1px var(--ink-4); } }
.chip input:checked + span { background: var(--ink); color: var(--white); box-shadow: none; padding-left: 12px; }
.chip input:checked + span::before { width: 14px; margin-right: 8px; opacity: 1; transform: scale(1); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- question screen: the question on a white panel (Nathan, 7 Nov: white, not the layer tint), the answer on a white card.
   The layer stays visible as the dot and name above the question and in the header rings. ---------- */
.qs { position: relative; padding: 0; isolation: isolate; }
.qs::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: var(--white); }
@media (min-width: 900px) {
  .qs { display: flex; align-items: center; min-height: calc(100dvh - var(--hd)); }
  /* the field runs from the window's left edge to the middle of the gutter, so it shares the column grid */
  .qs::before { right: auto; width: calc(max(0px, (100vw - var(--col) - 2 * var(--pad)) / 2) + var(--pad) + (min(100vw - 2 * var(--pad), var(--col)) - var(--gap)) * 5 / 12 + var(--gap) / 2); }
  .qs > .wrap { padding-top: 56px; padding-bottom: 56px; align-items: center; }
  .qs::before { box-shadow: var(--hw) 0 0 var(--hair); }
}
/* phones: the answer card sits on white, so it carries a hairline as well as its shadow */
@media (max-width: 899px) { .qs .q-card { box-shadow: inset 0 0 0 var(--hw) var(--hair), var(--lift-2); } }
@media (max-width: 899px) {
  .qs > .wrap { display: flex; flex-direction: column; gap: 20px; min-height: calc(100dvh - var(--hd) - 76px - env(safe-area-inset-bottom)); padding-top: 24px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .qs .q-r { margin-top: auto; }
}
.q-l { position: relative; }
.q-pos { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.q-pos span { font-weight: 500; color: var(--ink-2); }
.q-pos i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.q-name { margin-top: 10px; font-size: 34px; line-height: 1.06; letter-spacing: -0.015em; }
.q-text { margin-top: 12px; font-size: 19px; line-height: 1.45; color: var(--ink); max-width: 30em; }
.q-help { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) { .q-name { font-size: clamp(48px, 4.4vw, 62px); line-height: 1.02; margin-top: 16px; letter-spacing: -0.02em; } .q-text { font-size: 23px; margin-top: 20px; } .q-help { font-size: 16px; } }
.why-d { margin-top: 44px; padding-top: 24px; box-shadow: 0 calc(-1 * var(--hw)) 0 rgba(37, 55, 70, 0.16); }
.why-d h2 { font-size: 20px; }
.why-d p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.why-d .sci { font-size: 14px; }
.why-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-size: 15px; font-weight: 700; }
.why-btn span { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.why-btn:active { opacity: 0.7; }
.q-card { position: relative; padding: 24px 0 22px; border-radius: var(--r-tile); background: var(--white); box-shadow: var(--lift-2); }
@media (min-width: 900px) { .q-card { padding: 44px 0 36px; } }
.q-acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.q-acts .btn-primary { min-width: 280px; }
.kb-hint { margin-top: 14px; font-size: 13px; color: var(--ink-2); text-align: right; }
/* phones: one action bar, fixed, sharing the content edges */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 calc(-1 * var(--hw)) 0 var(--hair); }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.bar .wrap { display: flex; gap: 12px; align-items: center; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.bar .btn-primary { flex: 1; min-width: 0; padding: 0 16px; }
.bar .btn-ghost { flex: none; padding: 0 22px; }
@media (min-width: 900px) { .bar { display: none; } }
.q-l .mv { will-change: transform, opacity; }

/* ---------- the answer: Nathan's pick A (lab round 7, 8 Nov): one thick slider, the answer rides above the thumb in a lens.
   JS moves the thumb, the fill (clip-path) and the lens with transforms; CSS only fades and recolours. ---------- */
.ru { --W: 32px; position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ru-frame { position: relative; height: 176px; margin: 0 22px; touch-action: none; cursor: pointer; outline: none; }
.ru-frame.dragging { cursor: grabbing; }
.ru-frame:focus-visible .ru-thumb { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink), 0 8px 18px rgba(37, 55, 70, 0.12); }
.ru-o.hint { position: absolute; left: 0; right: 0; top: 52px; margin: 0; text-align: center; font-size: 16px; color: var(--ink-2); transition: opacity 180ms ease; pointer-events: none; }
.ru.live .ru-o.hint { opacity: 0; }
.ru-track { position: absolute; left: 0; right: 0; bottom: 34px; height: 56px; border-radius: 28px; background: var(--canvas);
  box-shadow: inset 0 0 0 var(--hw) var(--hair), inset 0 1px 3px rgba(37, 55, 70, 0.08); }
.ru-fill { position: absolute; inset: 0; border-radius: 28px; background: var(--coral); clip-path: inset(0 100% 0 0 round 28px); opacity: 0; transition: opacity 160ms ease; will-change: clip-path; }
.ru.live .ru-fill { opacity: 1; }
.ru-dots { position: absolute; left: 0; top: 50%; width: 0; height: 0; }
.ru-dots i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); transition: background-color 120ms ease; }
.ru-dots i.in { background: rgba(255, 255, 255, 0.78); }
.ru-thumb { position: absolute; left: -24px; top: 4px; width: 48px; height: 48px; border-radius: 50%; background: var(--white); will-change: transform;
  box-shadow: 0 0 0 0.5px rgba(37, 55, 70, 0.1), 0 2px 6px rgba(37, 55, 70, 0.18), 0 8px 18px rgba(37, 55, 70, 0.12); }
.ru-lens { position: absolute; left: 0; bottom: 104px; width: 0; height: 0; will-change: transform; opacity: 0; transition: opacity 160ms ease; pointer-events: none; }
.ru.live .ru-lens { opacity: 1; }
.ru-lens-in { position: absolute; left: 0; bottom: 0; width: 0; height: 0; transform-origin: 0 100%; will-change: transform; }
.ru-bub { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 10px 18px 12px; border-radius: 24px; background: var(--white); white-space: nowrap;
  box-shadow: 0 0 0 0.5px rgba(37, 55, 70, 0.1), 0 4px 10px rgba(37, 55, 70, 0.12), 0 14px 32px rgba(37, 55, 70, 0.14); }
.ru-bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: var(--white); transform: rotate(45deg); border-radius: 0 0 4px 0; box-shadow: 3px 3px 6px rgba(37, 55, 70, 0.08); }
.ru-roll { position: relative; height: 56px; overflow: hidden; font-family: var(--serif); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.ru-ghost { display: block; visibility: hidden; font-style: normal; white-space: nowrap; padding: 0 2px; }
.ru-n { position: absolute; left: 0; right: 0; top: 0; text-align: center; white-space: nowrap; will-change: transform, opacity; transition: color 140ms ease; }
.ru.has-v:not(.dragging) .ru-n { color: var(--coral); }
.ru.bands .ru-roll { height: 28px; font-family: var(--sans); font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.ru-unit { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .ru-frame:hover .ru-thumb { box-shadow: 0 0 0 0.5px rgba(37, 55, 70, 0.14), 0 3px 8px rgba(37, 55, 70, 0.2), 0 10px 22px rgba(37, 55, 70, 0.14); } }
@media (min-width: 900px) { .ru-frame { margin: 0 40px; height: 184px; } }
.ru.swap .ru-frame, .ru.swap .ru-ends { opacity: 0; transition: opacity 130ms ease; }
.ru-ends.pair { margin-top: 2px; }
.ru-ends { display: flex; justify-content: space-between; gap: 16px; margin: 16px 24px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 900px) { .ru-ends { margin: 18px 40px 0; } }
.ru-ends > span { max-width: 46%; }
.ru-ends > span:last-child { text-align: right; }
.ru-ends.three { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ru-ends.three > span { max-width: none; }
.ru-ends .mid { text-align: center; }
/* phones: two numbered rows, full text, so a long label never wraps into a ragged block beside the other */
@media (max-width: 599px) {
  .ru-ends:not(.three):not(.pair) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; margin: 16px 20px 0; font-size: 14px; }
  .ru-ends:not(.three):not(.pair) > span { display: contents; max-width: none; }
  .ru-ends:not(.three):not(.pair) > span::before { content: attr(data-n); justify-self: end; min-width: 2ch; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
  .ru-ends:not(.three):not(.pair) > span:last-child { text-align: left; }
  .ru-ends.three { font-size: 14px; margin: 16px 16px 0; gap: 8px; }
}

/* ---------- the layer-done moment: a midnight stage, centred on the laptop; the next layer arrives as its own colour field ---------- */
.lb { display: flex; align-items: center; min-height: calc(100dvh - var(--hd)); padding: 40px 0 120px; }
@media (min-width: 900px) { .lb { padding: 64px 0 88px; } }
.lb > .wrap { flex: 1; }
.lb-c { text-align: center; }
.lb-h { font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
@media (min-width: 900px) { .lb-h { font-size: clamp(64px, 6.4vw, 92px); letter-spacing: -0.025em; } }
.lb-cnt { margin-top: 14px; font-size: 17px; color: var(--on-mid-2); }
@media (min-width: 900px) { .lb-cnt { font-size: 19px; } }
.lb-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 36px auto 0; }
.lb-rings li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lb-rings .slot { width: 64px; height: 64px; }
@media (min-width: 900px) { .lb-rings .slot { width: 136px; height: 136px; } .lb-rings { gap: 28px; margin-top: 56px; } .lb-rings li { gap: 16px; } }
.lb-rings b { font-size: 14px; line-height: 1.25; }
.lb-rings span { display: block; font-size: 13px; color: var(--on-mid-2); }
@media (min-width: 900px) { .lb-rings b { font-size: 17px; } .lb-rings span { font-size: 14px; } }
.lb-rings li:not(.dn):not(.nx) b { color: var(--on-mid-2); }
.lb-rings .nx span { color: var(--white); font-weight: 700; }
.lb-next { display: grid; gap: 20px; max-width: 840px; margin: 40px auto 0; padding: 24px; text-align: left; color: var(--ink); background: var(--field); border-radius: var(--r-tile);
  box-shadow: 0 26px 60px -12px rgba(10, 20, 28, 0.5); }
@media (min-width: 900px) { .lb-next { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-top: 64px; padding: 36px 40px; } }
.lb-next h2 { font-size: 26px; line-height: 1.1; }
@media (min-width: 900px) { .lb-next h2 { font-size: 34px; } }
.lb-next p { margin-top: 10px; color: var(--ink-2); max-width: 46em; }
.lb-next .lb-nn { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.lb-acts { display: flex; gap: 12px; align-items: center; }

/* ---------- results: the stage, the dial in a raised well (borrowed from Headroom's Capacity instrument) ---------- */
.rv-st { padding: 32px 0 72px; }
@media (min-width: 900px) { .rv-st { min-height: calc(100svh - var(--hd) - 40px); display: flex; align-items: center; padding: 48px 0 96px; } .rv-st > .wrap { flex: 1; } .rv-g { align-items: center; } }
.dial { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.dial .dslot { position: absolute; }
.dial .dslot > .lr { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp { position: absolute; inset: 0; }
.cp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-well { position: absolute; inset: 13%; border-radius: 50%; background: linear-gradient(160deg, #31475A 0%, #253746 48%, #1A2832 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -18px 30px -12px rgba(10, 18, 26, 0.45), 0 22px 48px -10px rgba(8, 14, 20, 0.6); }
.cp-t { stroke: rgba(255, 255, 255, 0.08); }
.cp-a { stroke: var(--coral); }
.cp-node { fill: var(--white); }
.cp-ticks line { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.5; }
.cp-ticks line.mn { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.cp-ticks text { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: rgba(255, 255, 255, 0.74); font-variant-numeric: tabular-nums; }
.cp-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.cp-num { display: flex; align-items: flex-start; font-family: var(--serif); font-weight: 700; color: var(--white); font-size: 25cqi; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.cp-num .pc { font-size: 0.36em; line-height: 1; margin: 0.12em 0 0 0.04em; letter-spacing: 0; color: var(--on-mid-2); }
.cp-cap { margin-top: 2.6cqi; font-size: max(12px, 3.4cqi); color: var(--on-mid-2); }
.cp-orig { stroke: var(--white); stroke-width: 3; stroke-linecap: round; }

.rv-h { font-size: 34px; line-height: 1.04; letter-spacing: -0.015em; }
@media (min-width: 900px) { .rv-h { font-size: clamp(44px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.02em; } }
.rv-z { margin-top: 22px; font-size: 18px; }
.rv-z b { font-family: var(--serif); font-size: 26px; }
.bz { margin-top: 12px; }
.bz-bar { position: relative; display: flex; gap: 3px; height: 10px; }
.bz-s { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); transition: background-color 300ms ease; }
.bz-s.on { background: var(--white); }
.bz-m { position: absolute; top: -6px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--coral); box-shadow: 0 0 0 2px var(--ink); will-change: transform; }
.bz-lab { display: flex; gap: 3px; margin-top: 8px; font-size: 13px; color: var(--on-mid-2); }
.bz-lab .on { color: var(--white); font-weight: 700; }
.rv-layers { display: grid; grid-template-columns: 1fr; gap: 0 24px; margin-top: 24px; }
@media (min-width: 480px) { .rv-layers { grid-template-columns: 1fr 1fr; } }
.rv-layers li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; box-shadow: 0 1px 0 var(--on-mid-hair); font-size: 16px; }
.rv-layers li b { font-variant-numeric: tabular-nums; }
.rv-layers li .rg-a { transition: stroke-dashoffset 600ms var(--ease-out); }
.rv-acts { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 32px; }
.rv-l .late { transition: opacity 360ms ease, transform 420ms var(--ease-out); }
.rv-l.pending .late { opacity: 0; transform: translateY(8px); }
.skipw { text-align: center; margin-top: 8px; }
.rv-up-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 900px) { .rv-up-g { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); } }
.rv-up h2 { font-size: 26px; line-height: 1.15; }
@media (min-width: 900px) { .rv-up h2 { font-size: 32px; } }
.rv-where ul { margin-top: 16px; }
.rv-where li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) 52px; gap: 16px; align-items: center; min-height: 48px; font-size: 16px; box-shadow: inset 0 calc(-1 * var(--hw)) 0 var(--hair); }
.rv-where li i { display: block; height: 12px; border-radius: 6px; transform-origin: left center; will-change: transform; }
.rv-where li b { text-align: right; font-variant-numeric: tabular-nums; }
.rv-where li .bar-t { position: relative; height: 12px; border-radius: 6px; background: var(--canvas); overflow: hidden; }
.rv-eq { margin-top: 16px; font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.rv-eq b { color: var(--ink); }
.rv-eq .x { margin: 0 4px; }
.rv-eq b { white-space: nowrap; }
.rv-txt { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 34em; }

/* ---------- breakdown: the dial keeps its midnight panel (sticky); the answers sit in white cards on the canvas ---------- */
.bd-l { position: relative; }
@media (min-width: 900px) { .bd-l { position: sticky; top: calc(var(--hd) + 24px); } }
.bd-card { position: relative; overflow: hidden; isolation: isolate; padding: 24px 22px 22px; border-radius: var(--r-tile); background: var(--stage); color: var(--white); box-shadow: var(--lift-2); }
@media (min-width: 900px) { .bd-card { padding: 36px 32px 30px; } }
.bd-card > *:not(.ctr) { position: relative; z-index: 1; }
.bd-sum { margin-top: 8px; }
.bd-sum .rv-z { margin-top: 12px; }
.bd-wi { min-height: 24px; margin-top: 16px; font-size: 15px; color: var(--on-mid-2); }
.bd-wi b { color: var(--white); }
.sheet .bd-wi { color: var(--ink-2); } .sheet .bd-wi b { color: var(--ink); }
.bd-h { font-size: 32px; line-height: 1.06; letter-spacing: -0.015em; }
@media (min-width: 900px) { .bd-h { font-size: 48px; letter-spacing: -0.02em; } }
.bd-lede { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 38em; }
.lmap { margin-top: 28px; padding: 4px 20px; }
@media (min-width: 900px) { .lmap { padding: 8px 32px; } }
.lm { position: relative; padding: 22px 0 22px; box-shadow: 0 var(--hw) 0 var(--hair); }
.lm:last-child { box-shadow: none; }
.lm-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.lm-top h2 { font-size: 22px; }
.lm-top b { font-size: 17px; font-variant-numeric: tabular-nums; }
.lm-cells { display: flex; gap: 6px; height: 96px; margin-top: 16px; align-items: flex-end; }
.cell { position: relative; flex: 1; min-width: 0; height: 100%; border-radius: 10px; background: var(--canvas); overflow: hidden; display: flex; align-items: flex-end;
  transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.cell i { display: block; width: 100%; height: 100%; border-radius: 8px; background: var(--ink-4); transform-origin: 50% 100%; will-change: transform; transition: background-color 160ms ease; }
.lm[data-l="0"] .cell i { background: #52D2BC; } .lm[data-l="1"] .cell i { background: #9ADBE8; } .lm[data-l="2"] .cell i { background: #AD96DC; } .lm[data-l="3"] .cell i { background: #A5ADB5; }
.lm .cell.top i { background: var(--coral); }
.cell:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .cell:hover { background: var(--light); } .lm .cell.top:hover i { background: var(--coral-h); } }
.cell.sel { box-shadow: inset 0 0 0 2px var(--ink); }
/* the Hub's "needs you" list: a plain row, the action on the right */
.lm-top3 { margin-top: 16px; padding: 24px 20px 12px; }
@media (min-width: 900px) { .lm-top3 { padding: 28px 32px 16px; } }
.lm-top3 h2 { font-size: 24px; }
.lm-top3 ol { margin-top: 8px; }
.lm-top3 li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding: 12px 0; }
.lm-top3 li + li { box-shadow: inset 0 var(--hw) 0 var(--hair); }
.t3-t { min-width: 0; }
.t3-t b { display: block; font-size: 17px; }
.t3-t span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.lm-top3 .btn { flex: none; }
@media (max-width: 559px) { .lm-top3 li { flex-direction: column; align-items: flex-start; gap: 10px; } }
.bd-acts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 32px; }
.bd-sum .bz { max-width: 420px; }

/* tooltip (BoardUI tooltip pattern, rebuilt): rises 4px from its anchor, 140ms, no delay once one is open */
.tip { position: fixed; z-index: 60; left: 0; top: 0; max-width: 280px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 13px; line-height: 1.45;
  pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), calc(var(--y, 0) + 4px), 0) scale(0.98); transform-origin: var(--ox, 50%) 100%;
  transition: opacity 140ms ease, transform 160ms var(--ease-out); box-shadow: 0 8px 24px -8px rgba(26, 40, 50, 0.4); }
.tip.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.tip.instant { transition-duration: 0ms; }
.tip b { display: block; font-size: 14px; }
.tip .tn { font-variant-numeric: tabular-nums; color: var(--light); }

/* ---------- sheet: drag it down to close (velocity decides), spring back if not ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(26, 40, 50, 0.36); opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .scrim.modeless { background: transparent; } }
.bd-sum .bz { max-width: 420px; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; visibility: hidden;
  background: var(--white); border-radius: 24px 24px 0 0; transform: translate3d(0, 100%, 0); box-shadow: var(--lift-2); padding-bottom: env(safe-area-inset-bottom); }
.sheet.open { visibility: visible; }
.sheet-grab { display: flex; justify-content: center; padding: 10px 0 6px; touch-action: none; cursor: grab; }
.sheet-grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--light); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--pad) 32px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; touch-action: none; }
.sheet h2 { font-size: 24px; line-height: 1.2; padding-top: 8px; }
.sheet p { font-size: 16px; color: var(--ink-2); margin-top: 12px; }
.sheet .sci { font-size: 14px; }
.sheet-close { flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; margin-right: -12px; font-size: 15px; font-weight: 700; color: var(--ink-2); border-radius: 999px; }
.sheet-close:active { transform: scale(0.96); }
.sheet .q-card { margin-top: 18px; }
.sh-ans b { color: var(--ink); }
.sh-try { font-size: 15px !important; }
@media (min-width: 900px) {
  .sheet { left: auto; top: 12px; bottom: 12px; right: 12px; width: 520px; max-height: none; border-radius: 24px; transform: translate3d(calc(100% + 24px), 0, 0); }
  .sheet-grab { display: none; }
  .sheet-body { padding: 36px 36px; }
}

/* ---------- toast (BoardUI toast, rebuilt) ---------- */
.toast { position: fixed; left: 50%; width: max-content; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 18px; min-height: 48px; border-radius: 14px; background: var(--ink); color: var(--white); font-size: 15px; box-shadow: 0 12px 32px -12px rgba(26, 40, 50, 0.5);
  opacity: 0; pointer-events: none; transform: translate3d(-50%, 8px, 0) scale(0.98); transition: opacity 160ms ease, transform 220ms var(--ease-out); }
.toast.on { opacity: 1; pointer-events: auto; transform: translate3d(-50%, 0, 0); }
.toast-a { min-height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 700; color: var(--white); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* ---------- the PDF preview: a midnight band, the two pages rise over its foot ---------- */
.pv { background: var(--canvas); min-height: 100vh; }
.pv-band { position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: var(--stage); padding: 28px 0 88px; }
.pv-band > .wrap { position: relative; z-index: 1; }
.pv-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; }
.pv-top .awa { margin-bottom: 28px; }
.pv-top h1 { font-size: 34px; line-height: 1.05; }
@media (min-width: 900px) { .pv-top h1 { font-size: 48px; } }
.pv-top p { font-size: 16px; color: var(--on-mid-2); margin-top: 6px; }
.pv-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#sheets { position: relative; z-index: 1; margin-top: -56px; padding-bottom: 56px; }
.sbox { width: calc(794px * var(--s, 1)); height: calc(1123px * var(--s, 1)); margin: 0 auto 28px; border-radius: 8px; box-shadow: 0 2px 4px rgba(37, 55, 70, 0.08), 0 30px 60px -16px rgba(26, 40, 50, 0.35); overflow: hidden; }
@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden; }
  .pv, .pv * { visibility: visible; }
  .pv { background: none; }
  .pv-band, .hd, .bar, .toast, .lab { display: none !important; }
  #sheets { position: absolute; left: 0; top: 0; padding: 0; margin: 0; }
  .sbox { width: 794px; height: 1123px; margin: 0; box-shadow: none; border-radius: 0; break-after: page; }
  .a4 { transform: none !important; box-shadow: none !important; }
}

/* ---------- reduced motion: everything lands instantly and still looks finished ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}

/* ---------- lab strip (not part of the design; ?clean=1 hides it) ---------- */
.lab { position: relative; z-index: 31; background: var(--ink-d); color: var(--light); font-size: 13px; }
.lab .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.lab a { display: inline-flex; align-items: center; min-height: 32px; color: var(--white); text-decoration: none; }
.lab a[aria-current] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lab .gap { flex: 1; }
@media (max-width: 899px) { .lab .gap, .lab .lab-t { display: none; } }
body.clean .lab { display: none; }
.sheet .q-card { background: var(--canvas); box-shadow: none; }
.lb-rings li > span:last-child { margin-top: -6px; }
@media (min-width: 900px) { .lb-rings li > span:last-child { margin-top: -10px; } }
@media (max-width: 899px) {
  .lb-rings { grid-template-columns: 1fr 1fr; gap: 14px 12px; max-width: 420px; text-align: left; }
  .lb-rings li { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-items: center; text-align: left; }
  .lb-rings .slot { width: 52px; height: 52px; grid-row: 1 / 3; }
  .lb-rings b { align-self: end; font-size: 14px; }
  .lb-rings li > span:last-child { margin-top: 0; align-self: start; }
}
@container (max-width: 320px) { .cp-ticks text { display: none; } }

/* ---------- round 6, critique pass ---------- */
.ru-ends { font-size: 14px; }

/* intro and reveal: the white sheet rises far enough to be read as the next thing */
@media (min-width: 900px) {
  .in-st { min-height: min(calc(100svh - var(--hd) - 168px), 760px); padding: 56px 0 88px; }
  .rv-st { min-height: min(calc(100svh - var(--hd) - 140px), 820px); padding: 40px 0 80px; }
}

/* layer break: one centred column, the next-layer card stacks its words over its buttons */
.lb-next { max-width: 760px; text-align: center; justify-items: center; }
@media (min-width: 900px) { .lb-next { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 28px; padding: 40px 48px; } }
.lb-next p { margin-left: auto; margin-right: auto; max-width: 40em; }
.lb-acts { justify-content: center; flex-wrap: wrap; }

/* breakdown: the three biggest drains live in the midnight panel under the dial */
.bd-card .lm-top3 { margin-top: 24px; padding: 20px 0 0; box-shadow: 0 -1px 0 var(--on-mid-hair); background: none; }
.bd-card .lm-top3 h2 { font-size: 20px; color: var(--white); }
.bd-card .lm-top3 li { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px 0; }
.bd-card .lm-top3 li + li { box-shadow: 0 -1px 0 var(--on-mid-hair); }
.bd-card .t3-t b { color: var(--white); }
.bd-card .t3-t span { color: var(--on-mid-2); }

/* client chip sizes to the logo */
.org-chip { padding: 0 8px; }
.brand .org { max-width: 112px; object-fit: contain; }
@media (min-width: 900px) { .bd-card .lm-top3 li { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; } }

/* ---------- v6 go-live fixes (7 Nov 2026) ---------- */
/* phones: the breakdown's bars sit five to a row so each one is a full 44px target */
@media (max-width: 599px) {
  .lm-cells { flex-wrap: wrap; height: auto; row-gap: 8px; }
  .lm-cells .cell { flex: 0 0 calc((100% - 24px) / 5); min-width: 44px; height: 76px; }
}
/* phones: during the questions the header keeps the four rings; the organisation's logo returns on the intro and results */
@media (max-width: 599px) { .hd[data-mode="q"] .org-chip, .hd[data-mode="q"] .sep, .hd[data-mode="break"] .org-chip, .hd[data-mode="break"] .sep { display: none; } }
@media (max-width: 599px) { .ru-ends:not(.three) > span { text-wrap: balance; } }
.sheet .ru-track { background: var(--white); }
