/* ============ the self-check ============
   The stylesheet for one page, and deliberately not site.css.

   This page is not part of the website. It has no bar, no footer, no
   pager, no pill and nothing to navigate to but the way back — because
   the moment somebody starts a screener, every other link on the screen
   is an invitation to abandon it. Giving it its own file rather than a
   `body.is-test` branch inside site.css is the same decision made once
   more: a change to the site cannot reach in here and move something
   under a person answering questions about their own attention.

   Tokens and faces still come from theme.css, so it is recognisably the
   same brand — just none of the same furniture. */

*{box-sizing:border-box; margin:0; padding:0}

body{
  background:var(--surface);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:100dvh;
  display:flex; flex-direction:column;
}

.sprite{position:absolute; width:0; height:0; overflow:hidden}

/* ---------- the shell ----------
   One column, centred, capped at a reading measure. No full-bleed
   anything: this is a form, and a form that sprawls is a form you lose
   your place in. */
.t-wrap{
  width:100%; max-width:760px;
  margin-inline:auto;
  padding:clamp(20px,4vw,40px) clamp(20px,5vw,40px)
          calc(clamp(28px,5vh,56px) + env(safe-area-inset-bottom, 0px));
  flex:1;
  display:flex; flex-direction:column;
}

/* ---------- the head ----------
   The mark, and the one link off this page. It is a text link rather than
   a button because it must not compete with the answers. */
.t-head{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:16px; padding-block:clamp(4px,1.4vh,12px);
  margin-bottom:clamp(24px,5vh,52px);
}
.t-head .brand-lockup{justify-self:start}
.t-head-right{justify-self:end}
/* "3 / 6" — only while a question is up. */
.t-count{
  font-family:var(--mono); font-size:13px; letter-spacing:.06em;
  font-variant-numeric:tabular-nums; color:var(--faint);
  visibility:hidden;
}
body[data-view="quiz"] .t-count{visibility:visible}
/* While answering, the head stays put, so the way out and the count are
   never a scroll away. The shadow paints the surface out to both edges
   of the window and the clip keeps it off the top and bottom. */
body[data-view="quiz"] .t-head,
body[data-view="breath"] .t-head{
  position:sticky; top:0; z-index:5;
  background:var(--surface);
  box-shadow:0 0 0 100vmax var(--surface); clip-path:inset(0 -100vmax);
  margin-bottom:clamp(14px,3vh,32px);
  padding-top:clamp(10px,2vh,16px);
}
.t-head .brand-lockup{display:flex; align-items:center; gap:9px; text-decoration:none}
.t-head .logo{width:26px; height:26px; display:block}
.t-head .lg-star{fill:var(--orange)}
.t-head .lg-pill{stroke:var(--violet)}
.t-head .wordmark{
  font-family:var(--display); font-weight:800; font-size:20px;
  letter-spacing:-.02em; color:var(--ink);
}
.t-head .wordmark .accent{color:var(--wordmark-accent)}
/* The exit and the language switch share the right end of the head, in
   the same quiet register: nothing up here may compete with the answers.
   The switch is two letters each because the page has no room for a
   word — and "BM" is what every Malaysian form calls it. */
.t-head-right{display:flex; align-items:center; gap:clamp(14px,2.4vw,26px)}
/* On a phone the Malay exit label is longer than the English and there is
   no row that holds the lockup, the switch and it side by side without
   breaking the label in half. So the right end stacks: switch above,
   exit under it, both flush right, and the label keeps its one line. */
@media (max-width:480px){
  .t-head-right{flex-direction:column; align-items:flex-end; gap:6px}
  .t-exit{white-space:nowrap}
}
.t-lang{display:flex; align-items:center; gap:2px}
.t-lang button{
  font:inherit; font-size:13px; letter-spacing:.04em; line-height:1;
  color:var(--faint); background:none; 
  padding:6px 9px; cursor:pointer;
  transition:color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.t-lang button:hover{color:var(--ink)}
.t-lang button[aria-pressed="true"]{color:var(--ink); }
.t-lang button:focus-visible{outline:none; border-color:var(--accent); }
.t-exit{
  font-size:14px; color:var(--faint); text-decoration:none;
  transition:color .18s var(--ease), border-color .18s var(--ease);
}
.t-exit:hover{color:var(--ink); border-bottom-color:var(--line-strong)}

/* ---------- type ---------- */
.kicker{
  font-family:var(--mono); font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--faint);
  margin-bottom:clamp(14px,2.4vh,22px);
}
h1{
  font-family:var(--display); font-weight:600;
  font-size:clamp(28px,5.4vw,46px); line-height:1.1; letter-spacing:-.025em;
  color:var(--ink); text-wrap:balance;
}
.lede{
  margin-top:clamp(16px,2.6vh,24px);
  font-size:clamp(16px,2vw,19px); line-height:1.6; color:var(--ink-soft);
}
.adhd-word{color:var(--wordmark-accent)}

.t-actions{
  display:flex; flex-wrap:wrap; gap:14px 18px; align-items:center;
  margin-top:clamp(28px,4.4vh,44px);
}
/* Orange is the site's action colour and it means one thing — start here.
   It belongs on exactly one button on this page. */
.btn{
  display:inline-flex; align-items:center; gap:12px;
  padding:14px 22px 14px 24px; 
  font-family:var(--sans); font-size:16px; color:var(--ink);
  text-decoration:none; cursor:pointer;
  transition:border-color .18s var(--ease), background .18s var(--ease);
}
.btn-go{
  color:#FFFFFF;
  font-weight:500;
}

/* ---------- the progress bar ----------
   Six questions is short and eighteen is not, and the difference between
   "nearly there" and "no idea how long this is" is the difference between
   finishing and closing the tab. */
.q-bar{
  position:fixed; top:0; left:0; right:0; z-index:10;
  height:4px; background:var(--line);
  display:none;
}
body[data-view="quiz"] .q-bar,
body[data-view="breath"] .q-bar{display:block}
.bar-fill{
  display:block; height:100%; width:0%;
  background:var(--orange);
  transition:width .3s var(--ease);
}
.q-meta{
  font-family:var(--mono); font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--faint);
  margin-bottom:clamp(14px,2.4vh,22px);
}

/* ---------- the navigator ----------
   The intro's pill figure, made live: six long pills for Part A and, once
   it is taken on, twelve short ones for Part B after a wider gap. A lit
   pill is an answer given; the ringed one is where you are. Each is a
   button with room around it — the pill is 8px tall and a finger is not —
   so the hit area is the padding and the pill is drawn by ::before. */
.q-steps{
  display:flex; flex-wrap:wrap; align-items:center; gap:2px;
  margin:0 0 clamp(22px,4vh,40px) -5px;
}
.q-step{
  display:grid; place-items:center;
  padding:10px 5px; background:none; border:0; cursor:pointer;
}
.q-step::before{
  content:""; display:block; width:30px; height:8px; 
  transition:background .2s var(--ease), box-shadow .2s var(--ease);
}
.q-step--b::before{width:16px; height:7px}
.q-step:nth-child(6){margin-right:12px}
.q-step:disabled{cursor:default}
.q-step:disabled::before{opacity:.55}
.q-step:focus-visible{outline:none}

/* ---------- the question ----------
   Large, and alone on the screen. Nothing else is competing for the
   sentence you are being asked to be honest about. */
.q-text{
  font-family:var(--display); font-weight:600;
  font-size:clamp(21px,3.4vw,32px); line-height:1.25; letter-spacing:-.015em;
  color:var(--ink); text-wrap:balance;
  outline:none;
}
/* The question and its EN chip, side by side. */
.q-legend{display:flex; align-items:flex-start; gap:14px}
.q-legend .q-text{flex:1}
.q-en{
  flex:none; margin-top:.35em;
  font-family:var(--mono); font-size:11px; letter-spacing:.06em; line-height:1;
  padding:6px 8px; cursor:pointer;
  color:var(--muted); 
  transition:color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.q-en:hover{color:var(--ink); }
.q-en[aria-expanded="true"]{color:var(--surface)}
.q-en:focus-visible{outline:none; border-color:var(--accent)}
.q-en-text{
  margin-top:14px; padding:12px 16px;
  font-size:15px; line-height:1.55; color:var(--ink-soft);
}

/* ---------- the answers ----------
   The five steps of the scale in a row, left to right as the scale runs,
   each the same width — a row of equal cells, so a short label is no
   easier to press than a long one. The number is the key that picks it.
   On a phone the row would crush "Very often" into two lines of four
   letters, so the cells stack into full-width rows instead, in the same
   order. */
.q-options{
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px;
  margin-top:clamp(26px,4.4vh,44px);
}
.ans{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  min-height:96px; padding:16px 8px;
  color:var(--ink);
  font-family:var(--sans); font-size:15px; line-height:1.25; text-align:center;
  cursor:pointer; hyphens:auto;
  transition:border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.ans-n{
  display:grid; place-items:center; width:26px; height:26px; border-radius:999px;
  font-family:var(--mono); font-size:12px; color:var(--faint);
  transition:background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.ans:active{transform:scale(.98)}
.ans[aria-pressed="true"]{
  font-weight:600;
}
.ans[aria-pressed="true"] .ans-n{color:#FFFFFF}
.ans:focus-visible{outline:none; }
@media (max-width:640px){
  .q-options{grid-template-columns:1fr; gap:8px}
  .ans{flex-direction:row; justify-content:flex-start; min-height:0; padding:14px 16px; gap:14px; font-size:16px; text-align:left}
}

/* The question arrives with a short rise, restarted by render(). */
[data-screen="quiz"].is-in .q-meta,
[data-screen="quiz"].is-in .q-legend,
[data-screen="quiz"].is-in .q-en-text,
[data-screen="quiz"].is-in .q-options{animation:q-in .32s var(--ease) both}
[data-screen="quiz"].is-in .q-options{animation-delay:.05s}
@keyframes q-in{from{opacity:0; transform:translateY(8px)}}

/* The radio rows on the details form (gender). The quiz answers above
   are .ans, not .opt; .opt is the form's. */
.opt{
  display:flex; align-items:center; gap:14px;
  width:100%; padding:16px 20px;
  font-family:var(--sans); font-size:clamp(15px,1.9vw,17px); color:var(--ink);
  text-align:left; cursor:pointer;
  transition:border-color .16s var(--ease), background .16s var(--ease);
}
.opt::before{
  content:""; flex:none; width:16px; height:16px; border-radius:999px;
  transition:border-color .16s var(--ease), box-shadow .16s var(--ease);
}

/* ---------- the gate, the details form, the door that stays shut ----------
   Everything from here to the result belongs to the three screens in
   front of the questions. The fields are styles.css's .field trio, copied
   rather than imported: this page does not load the app's stylesheet and
   admin.css sets the precedent for restating a handful of rules instead
   of pulling in a file for three of them.

   No rule in this block sets display:grid or display:flex on a
   [data-screen] section. See the note at the foot of this file — an
   author sheet's display outranks [hidden], and a screen that forgets
   :not([hidden]) renders on top of question one. */
.field{display:block; width:100%; margin-top:clamp(20px,3vh,28px)}
.field-label{
  display:block; font-family:var(--sans); font-size:13px; font-weight:600;
  color:var(--muted); margin-bottom:8px;
}
.field-input{
  width:100%; font-family:var(--sans); font-size:16px; color:var(--ink);
  padding:13px 15px;
  transition:border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field-input:focus{
  outline:none; border-color:var(--accent); 
}
/* 16px on the input above is not a taste decision: iOS Safari zooms the
   whole page in when a focused field is smaller than that, and a form
   that jumps on first tap reads as broken. */

.f-set{border:0; padding:0; margin-top:clamp(20px,3vh,28px)}
.f-set .field-label{padding:0}

/* "optional", in the label, in the same mono the rest of the page uses
   for a label about a label. It has to be visible before the field is
   filled in, not discovered after a validation error. */
.f-opt{
  font-family:var(--mono); font-size:11px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--faint); font-weight:400;
  margin-left:8px;
}

/* The gender radios are .opt, and their state is :has(input:checked)
   because they are real radios. Where :has() is not understood the
   radio still works and simply loses its filled circle. */
.opt-set{display:grid; gap:10px}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- the consent block ---------- */
.c-block{
  margin-top:clamp(28px,4.4vh,44px);
  padding:clamp(18px,3vw,26px);
}
/* ---------- the figures ----------
   The same drawing language as the rest of the site (site.css `.cfig`),
   restated here because this page deliberately does not load site.css —
   see the head of this file. Same class names on purpose: a figure moved
   from a site page to this one keeps working, and one drawn here reads as
   the same hand.

   Every figure on this page carries a fact the prose beside it also
   states, which is the rule in docs/brand/visual-first.md: take it out and the
   page loses something. Nothing here is decoration — a screener is the
   last place to spend a reader's attention on a picture that means
   nothing. */
.t-fig{max-width:300px; margin:20px 0 22px}
.cfig{display:block; width:100%; height:auto; overflow:visible}
.cfig .w{fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.cfig .q{fill:none; stroke:var(--line-strong); stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.cfig .h{fill:none; stroke:var(--accent); stroke-width:3.2; stroke-linecap:round}
.cfig .d{fill:var(--accent)}
.cfig .dot-q{fill:var(--line-strong)}
/* The one dashed shape on the page: the thing this test does NOT give
   you. Drawn as an outline nobody has filled in, because that is what it
   is. */
.cfig .dash{fill:none; stroke:var(--line-strong); stroke-width:2; stroke-dasharray:7 6}

/* ---------- what is kept ----------
   The storage paragraph used to be one 121-word block. It is four facts —
   what, where, what for, how long — so it is set as four, each led by the
   fact it answers. */
.t-keeps{list-style:none; margin:14px 0 0; padding:0}
.t-keeps li{
  position:relative; padding-left:18px; margin-bottom:10px;
  font-size:15px; line-height:1.6; color:var(--muted);
}
.t-keeps li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:7px; height:7px; border-radius:var(--b-pill); 
}
.t-keeps li b{color:var(--ink); font-weight:600}
/* The three purposes, under the label that introduces them. A nested list
   rather than three clauses in one 44-word sentence — and the label is a
   <span> with its own key, because applyLang() writes innerHTML and a key
   on the parent <li> would wipe the children out. */
.t-keeps-sub{margin:8px 0 0 2px}
.t-keeps-sub li{margin-bottom:6px; font-size:14.5px}
.t-keeps-sub li::before{width:5px; height:5px; border-radius:50%; top:.68em}

/* ---------- the notice, in parts ----------
   A block inside the notice paragraph. The PDPA text is not re-worded —
   it is the same sentences with air between the five things they say, so
   somebody who opens the disclosure meets five short blocks instead of a
   two-hundred-word wall. */
.c-para{display:block}
.c-para + .c-para{margin-top:11px}

.c-notice{
  font-size:13.5px; line-height:1.65; color:var(--muted);
  margin-bottom:14px;
}
.c-notice strong{color:var(--ink)}
.c-notice:last-child{margin-bottom:0}

/* ---------- the notice, in two languages ----------
   Both are on the page because the PDPA asks for both. Only one is open:
   the open one hides its own summary and reads as plain prose, and the
   closed one is a single line offering itself in its own language. That
   is why there is no disclosure triangle above the notice you are already
   reading — there is nothing there to press. */
.c-notice-wrap + .c-notice-wrap{
  margin-top:14px; padding-top:14px; 
}
.c-notice-wrap[open] > .c-notice-alt{display:none}

.c-notice-alt{
  display:inline-flex; align-items:center; gap:7px;
  font-size:13px; font-weight:600; color:var(--accent);
  cursor:pointer; list-style:none; padding:2px 0;
}
.c-notice-alt::-webkit-details-marker{display:none}
/* Its own caret, because the native one sits outside the text on Safari
   and inside it on Chrome, and this row has to line up with the prose. */
.c-notice-alt::before{
  content:''; width:0; height:0;
  border-left:5px solid currentColor;
  border-top:4px solid transparent; border-bottom:4px solid transparent;
  transition:transform .16s var(--ease);
}
.c-notice-alt:hover{text-decoration:underline}
.check{
  display:flex; align-items:flex-start; gap:13px;
  margin-top:16px; cursor:pointer;
  font-family:var(--sans); font-size:14.5px; line-height:1.5; color:var(--ink);
}
/* Square, where .opt is round. A circle means "one of these"; these are
   three independent answers and two of them are required, so the shape
   has to say "many". */
.check::before{
  content:""; flex:none; width:18px; height:18px; margin-top:1px;
  transition:border-color .16s var(--ease), box-shadow .16s var(--ease);
}
/* Orange here is a state mark, not a second call to action — the one
   button rule above still holds. */
.check a{color:var(--accent)}

/* ---------- errors ---------- */
.f-err{
  margin-top:8px; font-family:var(--sans); font-size:13px;
  line-height:1.45; color:var(--danger);
}

/* A bare <p> on these screens has no margin of its own — the intro never
   needed one, because every paragraph there is a .lede or inside a
   .t-note. The young screen has two plain paragraphs in a row and they
   ran together. */
[data-screen="young"] .lede + p{
  margin-top:clamp(14px,2vh,20px);
  font-size:clamp(15px,1.8vw,17px); line-height:1.6; color:var(--ink-soft);
}

/* ---------- the small print under a button ---------- */
.t-fine{
  margin-top:clamp(18px,2.6vh,26px);
  font-size:13.5px; line-height:1.6; color:var(--faint);
}

/* One line under the result, written only once the save has actually
   landed or actually failed. Hidden until then, so a request that never
   finished says nothing rather than something untrue. */
.r-saved{
  margin-top:clamp(20px,3vh,28px);
  font-family:var(--mono); font-size:12px; letter-spacing:.06em;
  color:var(--faint);
}

.q-foot{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-top:clamp(24px,4vh,36px);
}
.q-back{
  padding:6px 0; cursor:pointer;
  font-family:var(--sans); font-size:14px; color:var(--faint);
}
.q-back:hover:not(:disabled){color:var(--ink)}
.q-back:disabled{opacity:.35; cursor:default}
.q-hint{
  font-family:var(--mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--faint); text-align:right;
}
@media (max-width:560px){ .q-hint{display:none} }

/* ---------- the result ---------- */
.r-head{display:flex; align-items:baseline; gap:16px; flex-wrap:wrap}
.r-score{
  font-family:var(--display); font-weight:600;
  font-size:clamp(52px,12vw,96px); line-height:1; letter-spacing:-.04em;
  color:var(--orange);
}
.r-of{
  font-family:var(--mono); font-size:13px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--faint);
}
.r-verdict{
  margin-top:clamp(18px,3vh,28px);
  font-family:var(--display); font-weight:600;
  font-size:clamp(20px,3.2vw,30px); line-height:1.22; letter-spacing:-.02em;
  color:var(--ink); text-wrap:balance;
}
.r-detail{
  margin-top:clamp(14px,2.4vh,22px);
  font-size:clamp(15px,1.9vw,18px); line-height:1.65; color:var(--ink-soft);
}
.r-partb{
  margin-top:clamp(24px,4vh,36px); padding:18px 20px;
  border:1px solid var(--line); border-radius:var(--b-radius);
  font-size:15px; line-height:1.6; color:var(--muted);
}
/* ---------- the meter ----------
   Six pips for Part A, twelve for Part B. The same fact as the number
   beside them, in a form you can read without reading — which is worth
   something to somebody who has just answered eighteen questions. Orange
   is the signal colour here exactly as it is everywhere else: a lit pip is
   an answer in the band, and the unlit ones are the rest of the scale. */
.r-meter{
  display:flex; gap:6px; flex-wrap:wrap;
  margin-top:clamp(14px,2vh,20px);
}
.pip{
  width:34px; height:8px; border-radius:999px;
  background:var(--line-strong);
}
.pip.is-on{background:var(--orange)}
.r-meter--b{margin-top:14px}
.r-meter--b .pip{width:18px; height:6px}

/* ---------- what this is not, on the result ----------
   One line where there used to be two sections. It keeps its own edge so
   it does not read as another paragraph of the explanation above it. */
.r-caution{
  margin-top:clamp(24px,4vh,34px);
  padding:16px 18px; border-left:3px solid var(--orange);
  background:var(--wash); border-radius:0 var(--b-radius) var(--b-radius) 0;
  font-size:15px; line-height:1.6; color:var(--ink-soft);
}
.r-caution b{color:var(--ink)}

/* ---------- the next three things ----------
   Numbered, because they are in an order: take it to someone, bring your
   own notes, and the day still has to get done. */
.r-next{
  list-style:none; counter-reset:step;
  margin-top:clamp(26px,4vh,40px);
  display:grid; gap:10px;
}
/* Padding and an absolute number, NOT grid or flex. A grid makes every
   child its own cell, and the third of these rows ends in a link — which
   landed in a cell of its own, on a line of its own, with the full stop
   after it stranded in a third. Inline content has to stay inline. */
.r-next li{
  counter-increment:step; position:relative;
  padding:15px 16px 15px 52px;
  border:1px solid var(--line); border-radius:var(--b-radius);
  font-size:15px; line-height:1.6; color:var(--ink-soft);
}
.r-next li::before{
  content:counter(step);
  position:absolute; left:16px; top:15px;
  font-family:var(--mono); font-size:12px; color:var(--faint);
  width:22px; height:22px;
  display:grid; place-items:center;
  border:1px solid var(--line-strong); border-radius:999px;
}
/* The two links in here (where to find someone, and what we build) took
   the browser's own blue, which is no token and goes muddy at night. */
.r-next a{color:var(--accent); text-decoration-thickness:1px; text-underline-offset:3px}

/* ---------- the credit ----------
   Small, last, and not a wall. The full attribution and the full storage
   notice are on the intro, where they are read before anything is
   answered rather than after. */
.r-credit{
  margin-top:clamp(26px,4vh,36px);
  padding-top:16px; border-top:1px solid var(--line);
  font-size:13px; line-height:1.65; color:var(--faint);
}
.r-credit a{color:var(--muted)}

/* ---------- the small print, folded ----------
   Who wrote the instrument, and what this page is not. Both are read
   before anybody answers — folded under the start button rather than
   standing between a reader and it. The summary is a full-width row in
   the mono the page uses for labels, with a plus that turns as it opens. */
.t-more{
  width:100%; max-width:640px; margin-inline:auto;
}
.t-hero + .t-more{margin-top:clamp(40px,8vh,88px)}
.t-more > summary{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 2px; cursor:pointer; list-style:none;
  font-family:var(--mono); font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted);
  transition:color .16s var(--ease);
}
.t-more > summary::-webkit-details-marker{display:none}
.t-more > summary::after{
  content:"+"; flex:none; font-size:18px; line-height:1; letter-spacing:0;
  color:var(--faint); transition:transform .2s var(--ease);
}
.t-more[open] > summary::after{transform:rotate(45deg)}
.t-more > summary:hover{color:var(--ink)}
.t-more > summary:focus-visible{outline:none; }
.t-more-body{padding:0 2px 26px}
.t-more-body p{font-size:15px; line-height:1.7; color:var(--muted); max-width:68ch}
.t-more-body p + p, .t-more-body ul + p{margin-top:.9em}
.t-more-body > ul:not(.t-keeps){list-style:none; margin-top:10px; display:grid; gap:6px}
.t-more-body > ul:not(.t-keeps) li{font-size:14.5px; line-height:1.6; color:var(--muted)}
.t-more-body li b{font-weight:600; color:var(--ink-soft)}
.t-more-body .warn{color:var(--ink-soft)}
.t-more-body .t-fig{max-width:260px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important; transition-duration:.01ms !important}
}

/* ---------- the intro: one screen ----------
   What it is, two things to keep in mind, and the button — centred, and
   all of it above the fold on a 720-tall laptop, so the decision and the
   means to act on it are on the same screen. */
.t-hero{
  width:100%; max-width:620px; margin-inline:auto;
  text-align:center;
  padding-block:clamp(4px,3vh,40px) 0;
}
.t-hero .lede{max-width:54ch; margin-inline:auto}

.t-points{
  list-style:none; text-align:left;
  max-width:440px; margin:clamp(26px,4.4vh,40px) auto 0;
  display:grid; gap:clamp(14px,2.2vh,20px);
}
.t-points li{display:flex; align-items:flex-start; gap:15px}
.t-point-icon{
  flex:none; display:grid; place-items:center;
  width:46px; height:46px; border-radius:999px;
}
.t-point-icon .cfig{width:24px; height:24px}
.t-point-body{display:grid; gap:2px; padding-top:3px}
.t-point-body b{font-weight:600; font-size:16px; color:var(--ink)}
.t-point-body span{font-size:14.5px; line-height:1.5; color:var(--muted)}

.btn-lg{
  justify-content:center; width:100%; max-width:440px;
  margin-top:clamp(26px,4.4vh,40px);
  padding:18px 26px; font-size:17px;
}
.t-meta{
  margin-top:16px;
  font-family:var(--mono); font-size:12px; letter-spacing:.06em;
  color:var(--muted);
}
.t-meta-sub{
  max-width:44ch; margin:6px auto 0;
  font-size:13px; line-height:1.55; color:var(--faint);
}

/* ---------- the breather ---------- */
[data-screen="breath"]{text-align:center}
.b-mark{display:block; width:52px; height:52px; margin:clamp(8px,4vh,48px) auto clamp(18px,3vh,28px)}
.b-h{
  font-family:var(--display); font-weight:600;
  font-size:clamp(26px,4.6vw,40px); line-height:1.12; letter-spacing:-.02em;
  color:var(--ink); text-wrap:balance; outline:none;
}
[data-screen="breath"] .lede{max-width:50ch; margin-inline:auto}
.b-fig{margin:clamp(24px,4vh,36px) auto 0; max-width:220px}
[data-screen="breath"] .t-actions{justify-content:center}
[data-screen="breath"] .q-foot{justify-content:center}

/* ---------- the result, as a card ---------- */
.r-card{
  padding:clamp(22px,4vw,36px);
  border:1px solid var(--line); border-radius:var(--b-radius);
  background:var(--surface);
}
.r-card .r-verdict{margin-top:clamp(20px,3vh,28px)}
.r-actions{margin-top:clamp(24px,4vh,34px)}

/* Every answer. Number, question, the answer as a chip; the chips in
   the shaded band take the accent, which is the one thing on this list a
   clinician scans for. */
.r-answers{margin-top:clamp(34px,6vh,56px)}
.r-sub{
  font-family:var(--mono); font-size:12px; font-weight:400;
  letter-spacing:.12em; text-transform:uppercase; color:var(--faint);
  outline:none;
}
.r-sub-note{margin-top:8px; font-size:14px; line-height:1.6; color:var(--muted)}
.r-list{list-style:none; margin-top:14px; border-top:1px solid var(--line)}
.r-list li{
  display:grid; grid-template-columns:34px 1fr auto; align-items:baseline; gap:6px 14px;
  padding:13px 0; border-bottom:1px solid var(--line);
}
.r-q-n{font-family:var(--mono); font-size:12px; color:var(--faint)}
.r-q{font-size:14.5px; line-height:1.55; color:var(--ink-soft)}
.r-a{
  justify-self:end; white-space:nowrap;
  padding:4px 11px; border-radius:999px;
  font-size:12.5px; font-weight:500; line-height:1.4;
  background:var(--wash); color:var(--muted);
}
.r-a.is-band{
  background:color-mix(in srgb, var(--accent) 14%, transparent);
  color:var(--accent); font-weight:600;
}
@media (max-width:560px){
  .r-list li{grid-template-columns:28px 1fr}
  .r-a{grid-column:2; justify-self:start}
}

/* The heading of each form screen — the three quick things, the last
   step, the door that stays shut — in the display face, like every
   other heading on the page. They were falling back to the sans. */
[data-screen="about"] > h2,
[data-screen="details"] > h2,
[data-screen="young"] > h2{
  font-family:var(--display); font-weight:600;
  font-size:clamp(26px,4.6vw,40px); line-height:1.12; letter-spacing:-.02em;
  color:var(--ink); text-wrap:balance; outline:none;
}

/* ---------- three quick things ----------
   The details form's own .field and .opt-set, a screen before the
   questions. The diagnosis list is five rows long, so its rows are a
   touch tighter than gender's three. */
[data-screen="about"] .opt-set{gap:8px}
[data-screen="about"] .f-set + .f-err{margin-top:8px}

/* ---------- the unlock ----------
   The score and verdict first, in the same card the full result uses,
   so what is free and what is offered read as one thing. Then the four
   things the sign-in adds, set like the intro's two points. */
.u-preview{
  margin-top:4px;
  padding:clamp(20px,3.6vw,30px);
  border:1px solid var(--line); border-radius:var(--b-radius);
  background:var(--surface);
}
.u-preview .r-score{font-size:clamp(46px,9vw,72px)}
.u-verdict{
  margin-top:clamp(14px,2.4vh,20px);
  font-family:var(--display); font-weight:600;
  font-size:clamp(18px,2.6vw,24px); line-height:1.25; letter-spacing:-.015em;
  color:var(--ink); text-wrap:balance; outline:none;
}
.u-h{
  margin-top:clamp(30px,5vh,48px);
  font-family:var(--display); font-weight:600;
  font-size:clamp(24px,4vw,34px); line-height:1.15; letter-spacing:-.02em;
  color:var(--ink); text-wrap:balance; outline:none;
}
.u-gets{
  list-style:none; margin-top:clamp(18px,3vh,26px);
  display:grid; gap:clamp(14px,2.2vh,18px);
}
.u-gets li{display:flex; align-items:flex-start; gap:15px}
.u-gets .t-point-icon{width:42px; height:42px}
.u-gets .cfig{width:22px; height:22px}
[data-screen="gate"] .t-actions{margin-top:clamp(26px,4vh,36px)}
[data-screen="gate"] .btn-go{padding-inline:30px}
.u-leave{margin-top:14px; font-size:14px}
.g-leave{color:var(--faint); text-decoration:none; }
.g-leave:hover{color:var(--ink); border-bottom-color:var(--ink)}

/* Paper only. */
.r-print-head{display:none}

/* ---------- the six-step scale ----------
   The site's scale (site.css, "THE SIX-STEP SCALE"), carried into this
   page's own sheet: lead in, h1, h2, h3, body, small, with tracking at 0
   on every step. Two differences, both because this is a tool and not a
   page to read down: the h1 stops at 60px so the button under it stays
   on the first screen, and the fine print keeps 1.5 rather than 1.25,
   because here it runs to whole paragraphs (the notice, the credit).
   Counters, answer buttons and the progress line are interface and keep
   their mono. */
.kicker, .r-sub, .t-more > summary{
  font-family:var(--display); font-weight:700;
  line-height:1.5; letter-spacing:0; text-transform:uppercase; color:var(--ink);
}
.kicker{font-size:15px}
.r-sub, .t-more > summary{font-size:13px}
h1{font-size:clamp(32px,5.6vw,60px); line-height:1.15; letter-spacing:0}
.q-text, .b-h, [data-screen="young"] > h2, .u-h{line-height:1.1; letter-spacing:0}
.r-verdict, .u-verdict{line-height:1.1; letter-spacing:0}
.r-score{letter-spacing:0}
.lede, .r-detail, .r-partb, .r-caution, .r-next li, .t-keeps li,
.t-more-body p, .t-more-body > ul:not(.t-keeps) li, .q-en-text, .r-q,
[data-screen="young"] .lede + p, .t-point-body span{line-height:1.5; letter-spacing:0}
.t-fine, .r-credit, .c-notice, .t-meta-sub, .r-sub-note{line-height:1.5; letter-spacing:0}

/* ---------- on paper ----------
   "A copy that stays yours" is the headline's promise, and this is it:
   the result, the caution, and every answer, in black on white whatever
   theme the screen was in, with the pips and band marks drawn so they
   survive a printer that drops backgrounds. The #_ is only there to
   outrank the dark-theme selectors in theme.css. */
@media print{
  html:not(#_){
    --surface:#FFFFFF; --wash:#FFFFFF; --ink:#101018; --ink-soft:#26262F;
    --muted:#3D3D48; --faint:#55555F; --line:#CFCFD6; --line-strong:#8E8E99;
    --accent:#101018;
  }
  @page{margin:16mm 16mm 18mm}
  body{background:#FFFFFF; display:block; -webkit-print-color-adjust:exact; print-color-adjust:exact}
  .t-head, .q-bar, .r-actions, .r-saved, .r-next{display:none !important}
  .t-wrap{max-width:none; padding:0}
  .r-print-head{
    display:flex; justify-content:space-between; gap:16px;
    font-family:var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase;
    padding-bottom:8px; margin-bottom:18px; border-bottom:1px solid var(--ink);
  }
  .r-card{background:none; break-inside:avoid}
  .r-score{color:var(--ink)}
  .pip{background:none; border:1.5px solid var(--ink)}
  .pip.is-on{background:var(--ink)}
  .r-caution{border-left-color:var(--ink); background:none}
  .r-partb{break-inside:avoid}
  .r-list li{break-inside:avoid}
  .r-a{background:none; border:1px solid var(--line-strong); color:var(--ink-soft)}
  .r-a.is-band{background:none; border:1.5px solid var(--ink); color:var(--ink); font-weight:700}
  .r-a.is-band::before{content:"\25CF\00A0"}
}

/* ============ THE PIECES ============
   The self-check in the my.adhd look (BRAND.md §5): a flat lilac ground,
   ink at night, with pieces on it — flat colour, an ink outline, a hard
   shadow. Tokens are bento.css's. No markup moved and no data-i18n key
   changed for it, so where a piece
   has no element of its own (the intro's hero, the question card, the
   gate's sign-in panel, the score and verdict pair) it is drawn by a
   ::before or ::after placed on the grid behind the elements it holds.

   Screen only. On paper the block above ("on paper") still decides
   everything, so the printout stays black on white.

   Two curves only (16px or a capsule); orange only for the one primary
   button on a screen; a picked answer is ink with the orange stand-in
   shadow. Pressing sinks a piece onto its shadow; under reduced motion
   nothing moves, it dims. */
@media screen{

:root{
  --t-max:1100px;
  --t-gutter:clamp(16px,3.4vw,48px);
  --t-gap:clamp(14px,1.6vw,20px);
  --t-pad:clamp(22px,3.6vw,44px);
}

body{background:var(--b-ground); color:var(--ink)}

/* ---------- a piece's own day ----------
   Pieces keep their day colours at night, so every theme token their
   children read goes back to its day value (site.css does the same). */
.t-head, .t-hero, .t-more, .btn, .q-back,
[data-screen="quiz"] > :is(.q-meta, .q-legend, .q-en-text, .q-options),
[data-screen="about"] > :is(.kicker, h2, .lede, .field, .f-set),
[data-screen="details"], [data-screen="young"], [data-screen="breath"],
[data-screen="gate"] > :not(.kicker),
.r-card, .r-partb, .r-caution, .r-next, .r-list{
  --ink:var(--black); --ink-soft:var(--navy); --muted:var(--stone); --faint:var(--stone);
  --line:var(--pale); --line-strong:var(--blue-pale); --accent:var(--blue); --on-accent:var(--p-on-dark);
  --surface:var(--p-white); --wash:var(--p-wash); --wash-2:var(--p-wash);
  --danger-ink:var(--danger);
  color:var(--ink);
}
.t-head, .t-hero, .t-more,
[data-screen="details"], [data-screen="young"], [data-screen="breath"],
[data-screen="gate"], .r-card, .r-partb, .r-caution, .r-next, .r-list,
[data-screen="quiz"] > :is(.q-meta, .q-legend, .q-en-text), [data-screen="about"] > :is(.field, .f-set){
  --b-focus:var(--blue);
}
/* The gate's kicker sits on the ground, the rest of the gate in a piece. */
[data-screen="gate"] > .kicker{--b-focus:inherit}

/* The piece recipe, for real elements and for the drawn ones. */
.t-head::after, .t-hero::before, .t-hero::after, .t-more, .ans,
[data-screen="quiz"]::before,
[data-screen="about"]::before, [data-screen="about"] .field, [data-screen="about"] .f-set,
[data-screen="details"], [data-screen="young"], [data-screen="breath"],
[data-screen="gate"]::before, .u-gets li,
.u-preview::before, .u-preview::after, .r-card::before, .r-card::after,
.r-partb, .r-caution, .r-next li, .r-list, .t-points li{
  --l:var(--b-lift); --sh:var(--b-shadow);
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line);
  border-radius:var(--b-radius);
  box-shadow:var(--l) var(--l) 0 var(--sh);
}
.t-hero::before, .t-hero::after, [data-screen="quiz"]::before, [data-screen="about"]::before,
[data-screen="gate"]::before, .u-preview::before, .u-preview::after,
.r-card::before, .r-card::after, [data-screen="breath"]{--l:var(--b-lift-lg)}
.u-gets li, .r-next li, .ans, .t-points li{--l:var(--b-lift-sm)}
/* A drawn piece is a grid item behind the content it holds. */
.t-hero::before, .t-hero::after, [data-screen="quiz"]::before, [data-screen="about"]::before,
[data-screen="gate"]::before, .u-preview::before, .u-preview::after,
.r-card::before, .r-card::after{content:""; z-index:-1; min-width:0}

/* ---------- focus ----------
   The hard shadow lives in box-shadow, so the ring cannot: an outline,
   outside the shadow, blue in a piece and pale blue on the night ground. */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible{
  outline:3px solid var(--b-focus) !important; outline-offset:3px;
}
.opt:has(input:focus-visible), .check:has(input:focus-visible){
  outline:3px solid var(--b-focus); outline-offset:3px;
}
.opt:has(input:focus-visible){box-shadow:none}
.check:has(input:focus-visible)::before{box-shadow:none}
.field-input:focus{box-shadow:none}
.field-input:focus-visible{outline-offset:2px}

/* ---------- the column ---------- */
.t-wrap{
  max-width:calc(var(--t-max) + 2 * var(--t-gutter));
  padding:clamp(14px,2.4vh,24px) var(--t-gutter) calc(clamp(28px,5vh,56px) + env(safe-area-inset-bottom, 0px));
}

/* ---------- the head: a white capsule ----------
   Drawn by ::after so that, while the questions are up, ::before can
   lay the ground behind it and the page scrolls under a solid band. */
.t-head{
  position:relative; isolation:isolate;
  padding:8px 8px 8px 20px; min-height:62px;
  margin-bottom:clamp(18px,3.4vh,32px);
  color:var(--black);
}
.t-head::after{content:""; position:absolute; inset:0; z-index:-1; border-radius:var(--b-pill)}
body[data-view="quiz"] .t-head, body[data-view="breath"] .t-head{
  position:sticky; top:10px; z-index:5;
  background:none; box-shadow:none; clip-path:none;
  margin-bottom:clamp(18px,3.4vh,32px); padding-top:8px;
}
body[data-view="quiz"] .t-head::before, body[data-view="breath"] .t-head::before{
  content:""; position:absolute; z-index:-2;
  left:calc(-1 * var(--t-gutter)); right:calc(-1 * var(--t-gutter)); top:-100vh; bottom:-6px;
  background:var(--b-ground);
}
.t-head .brand-lockup{min-height:44px}
.t-head .wordmark{font-size:22px; color:var(--black)}
.t-count{font-size:14px; color:var(--black)}
.t-head-right{gap:10px}
.t-lang{
  gap:2px; padding:2px;
  border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-pill);
  background:var(--p-white);
}
.t-lang button{
  min-width:44px; height:44px; padding:0 10px;
  border:0; border-radius:var(--b-pill);
  font-family:var(--mono); font-size:12.5px; letter-spacing:.04em; color:var(--black);
}
.t-lang button:hover{background:var(--p-wash); color:var(--black)}
.t-lang button[aria-pressed="true"]{background:var(--p-ink); color:var(--p-on-dark); border-color:transparent}
.t-lang button:focus-visible{box-shadow:none}
.t-exit{
  display:inline-flex; align-items:center; min-height:44px; padding:0 16px;
  border:0; border-radius:var(--b-pill); background:var(--p-wash);
  font-size:15px; font-weight:700; color:var(--black);
}
.t-exit:hover{background:var(--p-pale); color:var(--black); border-bottom-color:transparent}
@media (max-width:480px){
  /* The lockup, the switch and the exit do not fit one row at 375px, so
     the right end stacks (as it did before) and the capsule becomes a
     16px piece around the two rows. */
  .t-head{
    padding:8px 8px 8px 16px; column-gap:8px; row-gap:6px;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"brand count lang" "exit exit exit";
  }
  .t-head::after{border-radius:var(--b-radius)}
  .t-head .brand-lockup{grid-area:brand}
  .t-count{grid-area:count; justify-self:center; white-space:nowrap}
  .t-head-right{display:contents}
  .t-lang{grid-area:lang}
  .t-exit{grid-area:exit; justify-self:end; min-height:44px; padding:0 14px; font-size:14px}
}

/* ---------- type ---------- */
.kicker{
  font-family:var(--display); font-weight:700; text-transform:uppercase;
  font-size:15px; letter-spacing:.06em; line-height:1.4; color:var(--ink);
  margin-bottom:12px;
}
h1, [data-screen="about"] > h2, [data-screen="details"] > h2, [data-screen="young"] > h2, .b-h{
  font-family:var(--display); font-weight:800; line-height:1; letter-spacing:-.03em; color:var(--ink);
}
h1{font-size:clamp(40px,6.4vw,80px)}
[data-screen="about"] > h2, [data-screen="details"] > h2, [data-screen="young"] > h2, .b-h{
  font-size:clamp(34px,5vw,64px);
}
.lede{font-size:clamp(17px,1.6vw,20px); line-height:1.5; color:var(--muted)}
.t-fine, .r-credit, .c-notice, .t-meta-sub, .r-sub-note{font-size:15px}

/* ---------- buttons ----------
   The one primary on a screen is orange with an ink edge and a hard
   shadow; every other button is a white capsule with an ink edge. */
.btn{
  --l:0px; --sh:transparent;
  justify-content:center; min-height:50px; padding:0 24px;
  background:var(--p-white); color:var(--black);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  font-family:var(--sans); font-size:16px; font-weight:700; line-height:1.2;
  box-shadow:var(--l) var(--l) 0 var(--sh);
  transition:transform var(--b-release) var(--ease), box-shadow var(--b-release) var(--ease), background-color .16s var(--ease);
}
.btn:hover{background:var(--p-wash); border-color:var(--b-line)}
.btn-go, .btn-go:hover{
  --l:var(--b-lift-sm); --sh:var(--b-shadow);
  background:var(--orange); color:var(--black); border-color:var(--b-line); filter:none;
}
.btn:focus-visible, .btn-go:focus-visible, .btn-lg, .btn-lg:hover{box-shadow:var(--l) var(--l) 0 var(--sh)}
.btn:disabled{opacity:.45; cursor:not-allowed}
.btn-lg{min-height:58px; padding:0 30px; font-family:var(--display); font-weight:800; font-size:20px; letter-spacing:-.01em}
.q-back{
  display:inline-flex; align-items:center; min-height:48px; padding:0 22px;
  background:var(--p-white); color:var(--black);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  font-size:16px; font-weight:700;
}
.q-back:hover:not(:disabled){background:var(--p-wash); color:var(--black)}
.q-back:disabled{opacity:.45}

/* ---------- pressing ---------- */
.ans, .t-points li, .u-gets li{transition:transform var(--b-release) var(--ease), box-shadow var(--b-release) var(--ease), background-color .16s var(--ease)}
.ans:hover{border-color:var(--b-line); background:var(--p-white)}
.ans[aria-pressed="true"]:hover{background:var(--p-ink)}
.ans:active{transform:none}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .btn-go:not(:disabled):hover, .ans:hover{
    transform:translate(-2px,-2px);
    box-shadow:calc(var(--l) + 2px) calc(var(--l) + 2px) 0 var(--sh);
  }
}
@media (prefers-reduced-motion:no-preference){
  .btn-go:not(:disabled):active, .ans:active{
    transform:translate(var(--l),var(--l));
    box-shadow:0 0 0 var(--sh);
    transition-duration:0s;
  }
}
@media (prefers-reduced-motion:reduce){
  .btn:active, .ans:active, .q-back:active, .t-exit:active, .q-step:active{opacity:.7}
}

/* ---------- the figures, inside a piece ---------- */
.t-point-icon{
  width:48px; height:48px; background:var(--p-white);
  border:var(--b-stroke-thin) solid var(--b-line);
}
.cfig .q, .cfig .dash{stroke:var(--black)}
.cfig .dot-q{fill:var(--stone)}
.cfig .w, .cfig .h{stroke:var(--blue)}
.cfig .d{fill:var(--blue)}

/* ---------- the intro ----------
   A white hero piece (kicker, title, lede) with the two things to keep
   in mind as two pieces beside it, then a violet-pale piece holding the
   start button and the facts that decide whether somebody starts. */
[data-screen="intro"]:not([hidden]){
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--t-gap); align-items:start;
}
.t-hero{
  grid-column:1 / -1; max-width:none; margin:0; padding:0; text-align:left;
  isolation:isolate;
  display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  grid-template-rows:auto auto auto var(--t-gap) auto auto;
  column-gap:var(--t-gap); row-gap:0;
}
.t-hero::before{grid-column:1; grid-row:1 / 4}
.t-hero::after{grid-column:1 / -1; grid-row:5 / 7; background:var(--p-violet-pale)}
.t-hero > .kicker{grid-column:1; grid-row:1; margin:0; padding:var(--t-pad) var(--t-pad) 0}
.t-hero > h1{grid-column:1; grid-row:2; padding:12px var(--t-pad) 0; max-width:15ch; box-sizing:content-box}
.t-hero > .lede{grid-column:1; grid-row:3; margin:0; max-width:none; padding:20px var(--t-pad) var(--t-pad)}
.t-points{
  grid-column:2; grid-row:1 / 4; margin:0; max-width:none;
  display:grid; grid-template-rows:1fr 1fr; gap:var(--t-gap);
}
.t-points li{flex-direction:column; gap:12px; padding:clamp(20px,2.2vw,26px); background:var(--p-pale); --muted:var(--navy)}
.t-points li + li{background:var(--p-violet-pale)}
.t-point-body{gap:6px; padding-top:0}
.t-point-body b{font-family:var(--display); font-weight:800; font-size:21px; line-height:1.1; letter-spacing:-.01em}
.t-point-body span{font-size:16px; color:var(--navy)}
.t-hero > .t-meta{
  grid-column:1; grid-row:5; margin:0; padding:var(--t-pad) 0 0 var(--t-pad);
  font-family:var(--sans); font-size:16px; font-weight:700; letter-spacing:0; color:var(--black);
}
.t-hero > .t-meta-sub{
  grid-column:1; grid-row:6; margin:0; max-width:60ch;
  padding:8px 0 var(--t-pad) var(--t-pad); font-size:16px; color:var(--navy);
}
.t-hero > .btn-lg{
  grid-column:2; grid-row:5 / 7; align-self:center; justify-self:end;
  width:auto; max-width:none; margin:var(--t-pad);
}
.t-more{
  width:auto; max-width:none; margin:0; padding:0;
  border-top:var(--b-stroke) solid var(--b-line);
}
.t-more:last-of-type{border-bottom:var(--b-stroke) solid var(--b-line)}
.t-hero + .t-more{margin-top:0}
.t-more + .t-more{background:var(--p-pale); --muted:var(--navy); --faint:var(--navy)}
.t-more > summary{
  min-height:64px; padding:16px 22px;
  font-family:var(--display); font-weight:800; font-size:clamp(20px,2vw,24px);
  letter-spacing:-.01em; line-height:1.15; text-transform:none; color:var(--black);
}
.t-more > summary:hover{color:var(--black)}
.t-more > summary::after{
  display:grid; place-items:center; width:34px; height:34px;
  border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-pill);
  background:var(--p-white); color:var(--black); font-family:var(--sans); font-size:20px; font-weight:700;
}
.t-more[open] > summary::after{content:"\2212"; transform:none}
.t-more > summary:focus-visible{box-shadow:none; border-radius:var(--b-radius)}
.t-more-body{padding:0 22px 24px}
.t-more-body p{font-size:16px; color:var(--ink-soft)}
.t-more-body > ul:not(.t-keeps) li, .t-keeps li{font-size:15.5px; color:var(--ink-soft)}
.t-keeps li::before{background:var(--black)}
.t-more-body a{color:var(--black); text-decoration-thickness:1.5px; text-underline-offset:3px}
@media (max-width:760px){
  [data-screen="intro"]:not([hidden]){grid-template-columns:minmax(0,1fr)}
  .t-hero{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto var(--t-gap) auto var(--t-gap) auto auto auto;
  }
  .t-hero::after{grid-row:7 / 10}
  .t-points{grid-column:1; grid-row:5; grid-template-rows:none}
  .t-hero > .t-meta{grid-row:7; padding-right:var(--t-pad)}
  .t-hero > .t-meta-sub{grid-row:8; padding:8px var(--t-pad) 0}
  .t-hero > .btn-lg{grid-column:1; grid-row:9; justify-self:stretch; margin:18px var(--t-pad) var(--t-pad)}
  .t-hero > h1{max-width:none}
}

/* ---------- three quick things ----------
   The title in a white piece with the age beside it; gender and the
   diagnosis question as two pieces under them; the button last. */
[data-screen="about"]:not([hidden]){
  display:grid; isolation:isolate;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:auto auto auto auto var(--t-gap) auto auto var(--t-gap) auto;
  column-gap:var(--t-gap); row-gap:0;
}
[data-screen="about"]::before{grid-column:1 / 3; grid-row:1 / 4}
[data-screen="about"] > .kicker{grid-column:1 / 3; grid-row:1; margin:0; padding:var(--t-pad) var(--t-pad) 0}
[data-screen="about"] > h2{grid-column:1 / 3; grid-row:2; padding:10px var(--t-pad) 0}
[data-screen="about"] > .lede{grid-column:1 / 3; grid-row:3; margin:0; padding:18px var(--t-pad) var(--t-pad); max-width:60ch; box-sizing:content-box}
[data-screen="about"] label.field{
  grid-column:3; grid-row:1 / 4; margin:0;
  display:flex; flex-direction:column; justify-content:space-between; gap:14px;
  padding:clamp(20px,2.4vw,28px); background:var(--p-pale);
}
[data-screen="about"] .d-age-err{grid-column:3; grid-row:4}
[data-screen="about"] .f-set{
  grid-row:6; margin:0; min-width:0;
  padding:clamp(20px,2.4vw,28px);
}
[data-screen="about"] .f-set:nth-of-type(1){grid-column:1; background:var(--p-violet-pale)}
[data-screen="about"] .f-set:nth-of-type(2){grid-column:2 / 4}
[data-screen="about"] .d-gender-err{grid-column:1; grid-row:7}
[data-screen="about"] .a-dx-err{grid-column:2 / 4; grid-row:7}
[data-screen="about"] .t-actions{grid-column:1 / -1; grid-row:9; margin:0; justify-content:flex-end}
[data-screen="about"] .f-set + .f-err, [data-screen="about"] .f-err{margin-top:10px}
[data-screen="about"] .f-set:nth-of-type(2) .opt-set{grid-template-columns:repeat(2,minmax(0,1fr))}
.field-label, .f-set .field-label{
  font-family:var(--display); font-weight:700; text-transform:uppercase;
  font-size:15px; letter-spacing:.06em; line-height:1.4; color:var(--black);
}
/* Floated, so the legend is the first row of the piece rather than a
   label cut into its top edge. */
[data-screen="about"] .f-set > legend.field-label{float:left; width:100%; margin-bottom:12px}
[data-screen="about"] .f-set .opt-set{clear:both}
.f-opt{font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--navy)}
.field-input{
  min-height:52px; padding:12px 16px;
  background:var(--p-white); color:var(--black);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
}
.field-input::placeholder{color:var(--stone); opacity:1}
.field-input[aria-invalid="true"]{border-color:var(--danger); border-width:3px}
.d-age{min-height:clamp(72px,9vw,104px); font-family:var(--display); font-weight:800; font-size:clamp(36px,4.4vw,56px); line-height:1; letter-spacing:-.02em; padding:8px 20px}
.opt{
  min-height:52px; padding:10px 18px; gap:12px;
  background:var(--p-white); color:var(--black);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
  font-size:16px; font-weight:600; line-height:1.3;
}
.opt:hover{background:var(--p-wash); border-color:var(--b-line)}
.opt::before{width:20px; height:20px; border:var(--b-stroke) solid var(--b-line); background:var(--p-white)}
.opt:has(input:checked){background:var(--p-ink); color:var(--p-on-dark); border-color:var(--b-line)}
.opt:has(input:checked)::before{border-color:var(--p-white); background:var(--p-ink); box-shadow:inset 0 0 0 4px var(--p-white)}
.f-err{font-size:15px; font-weight:600; color:var(--danger-ink)}
@media (max-width:900px){
  [data-screen="about"]:not([hidden]){
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto var(--t-gap) auto auto var(--t-gap) auto auto var(--t-gap) auto auto var(--t-gap) auto;
  }
  [data-screen="about"]::before, [data-screen="about"] > :is(.kicker, h2, .lede){grid-column:1}
  [data-screen="about"] label.field{grid-column:1; grid-row:5}
  [data-screen="about"] .d-age-err{grid-column:1; grid-row:6}
  [data-screen="about"] .f-set:nth-of-type(1){grid-column:1; grid-row:8}
  [data-screen="about"] .d-gender-err{grid-column:1; grid-row:9}
  [data-screen="about"] .f-set:nth-of-type(2){grid-column:1; grid-row:11}
  [data-screen="about"] .a-dx-err{grid-column:1; grid-row:12}
  [data-screen="about"] .t-actions{grid-row:14; justify-content:stretch}
  [data-screen="about"] .t-actions .btn{flex:1}
  [data-screen="about"] .f-set:nth-of-type(2) .opt-set{grid-template-columns:minmax(0,1fr)}
}

/* ---------- the last step, the door that stays shut, the breather ----------
   Each is one white piece. */
[data-screen="details"], [data-screen="young"], [data-screen="breath"]{padding:var(--t-pad)}
[data-screen="details"] .lede, [data-screen="young"] .lede, [data-screen="young"] .lede + p,
[data-screen="young"] p{color:var(--ink-soft)}
.c-block{
  padding:clamp(18px,2.6vw,26px);
  background:var(--p-wash); border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-radius);
}
.c-notice{font-size:15px; color:var(--ink-soft)}
.c-notice-wrap + .c-notice-wrap{border-top:var(--b-stroke-thin) dashed var(--p-pale)}
.c-notice-alt{min-height:44px; font-size:15px; color:var(--black); text-decoration:underline; text-underline-offset:3px}
.c-notice-alt:focus-visible{box-shadow:none}
.check{font-size:16px; color:var(--black); min-height:44px; align-items:center}
.check::before{width:22px; height:22px; margin-top:0; border:var(--b-stroke) solid var(--b-line); border-radius:0; background:var(--p-white)}
.check:hover::before{border-color:var(--b-line)}
.check:has(input:checked)::before{border-color:var(--b-line); background:var(--p-ink); box-shadow:inset 0 0 0 3px var(--p-white)}
.check a, .c-notice a{color:var(--black); text-decoration-thickness:1.5px; text-underline-offset:3px}
[data-screen="young"] .t-fine{color:var(--ink-soft)}
[data-screen="young"] > p:not(.kicker){font-size:17px; line-height:1.5}
[data-screen="young"] > p + p{margin-top:14px}
[data-screen="breath"]{max-width:760px; width:100%; margin-inline:auto}
.b-mark{margin:0 auto 18px}
.b-fig{max-width:260px}
[data-screen="breath"] .lede{color:var(--ink-soft)}

/* ---------- the questions ----------
   The navigator is a capsule track on the ground; the question is a
   white piece; each answer is a piece of its own. */
.q-bar{display:none !important}
.q-steps{flex-wrap:nowrap; gap:0; margin:0 -3px clamp(14px,2.4vh,22px)}
.q-step{flex:1 1 0; min-width:0; min-height:44px; padding:0 3px}
.q-step--b{flex-grow:.5}
.q-step:nth-child(6){margin-right:14px}
.q-step::before{
  width:100%; height:14px; background:transparent;
  border:var(--b-stroke) solid var(--ink); border-radius:var(--b-pill);
  box-shadow:none; transition:background-color .16s var(--ease), opacity .16s var(--ease);
}
.q-step--b::before{width:100%; height:14px}
.q-step.is-done::before{background:var(--ink)}
.q-step.is-here::before{background:var(--blue)}
.q-step.is-here::before, .q-step:not(:disabled):hover::before,
.q-step.is-here:hover::before, .q-step:focus-visible::before{box-shadow:none}
.q-step:not(:disabled):not(.is-here):hover::before{opacity:.7}
.q-step:disabled::before{opacity:1}

[data-screen="quiz"]:not([hidden]){
  display:grid; isolation:isolate; grid-template-columns:minmax(0,1fr);
}
[data-screen="quiz"] > *, [data-screen="quiz"]::before{grid-column:1}
[data-screen="quiz"]::before{grid-row:2 / 5}
.q-steps{grid-row:1}
.q-meta{
  grid-row:2; margin:0; padding:var(--t-pad) var(--t-pad) 0;
  font-family:var(--display); font-weight:700; text-transform:uppercase;
  font-size:15px; letter-spacing:.06em; line-height:1.4; color:var(--black);
}
.q-legend{grid-row:3; padding:14px var(--t-pad) var(--t-pad); gap:16px}
.q-text{
  font-family:var(--display); font-weight:800;
  font-size:clamp(28px,4.2vw,54px); line-height:1.06; letter-spacing:-.02em; color:var(--black);
  max-width:24ch;
}
.q-en:not([hidden]){display:inline-grid; place-items:center}
.q-en{
  min-width:44px; min-height:44px; margin-top:0; padding:0 12px;
  background:var(--p-wash); color:var(--black);
  border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-pill);
  font-size:12.5px;
}
.q-en:hover{color:var(--black); border-color:var(--b-line); background:var(--p-pale)}
.q-en[aria-expanded="true"]{background:var(--p-ink); border-color:var(--b-line); color:var(--p-on-dark)}
.q-en:focus-visible{box-shadow:none}
.q-en-text{
  grid-row:4; margin:calc(14px - var(--t-pad)) var(--t-pad) var(--t-pad);
  padding:14px 18px; font-size:16px; color:var(--navy);
  background:var(--p-wash); border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-radius);
}
.q-options{grid-row:5; margin-top:clamp(16px,2.6vh,24px); gap:clamp(10px,1.2vw,14px)}
.q-foot{grid-row:6; margin-top:clamp(18px,3vh,28px)}
.q-hint{font-size:13px; color:var(--muted)}

.ans{
  min-height:clamp(116px,13vh,150px); padding:14px 10px; gap:12px;
  color:var(--black);
  font-family:var(--display); font-weight:800; font-size:clamp(17px,1.6vw,21px); line-height:1.15;
}
.ans-n{
  width:38px; height:38px; flex:none;
  background:var(--p-wash); color:var(--black);
  border:var(--b-stroke) solid var(--b-line);
  font-family:var(--mono); font-size:15px; font-weight:500;
}
.ans[aria-pressed="true"]{
  --sh:var(--b-shadow-ink);
  background:var(--p-ink); color:var(--p-on-dark); border-color:var(--b-line); font-weight:800;
}
.ans[aria-pressed="true"] .ans-n{background:var(--p-white); border-color:var(--p-white); color:var(--black)}
.ans:focus-visible{border-color:var(--b-line); box-shadow:var(--l) var(--l) 0 var(--sh)}
@media (max-width:640px){
  .ans{flex-direction:row; justify-content:flex-start; min-height:64px; padding:10px 16px; gap:14px; font-size:19px; text-align:left}
  .ans-n{width:36px; height:36px}
  .q-text{font-size:clamp(26px,7.6vw,34px)}
}

/* ---------- the gate ----------
   The score in a blue piece, the verdict in a white one beside it, and
   the sign-in in a violet-pale piece below, with the four things it adds
   as small white pieces. */
[data-screen="gate"]:not([hidden]){
  display:grid; isolation:isolate; grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto var(--t-gap) auto auto auto auto auto;
}
[data-screen="gate"] > *{grid-column:1; min-width:0}
[data-screen="gate"]::before{grid-column:1; grid-row:4 / 9; background:var(--p-violet-pale)}
[data-screen="gate"] > .kicker{grid-row:1; color:var(--ink)}
.u-preview{grid-row:2}
.u-h{grid-row:4; margin:0; padding:var(--t-pad) var(--t-pad) 0}
.u-gets{grid-row:5; margin:clamp(18px,2.6vh,24px) var(--t-pad) 0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
[data-screen="gate"] > .t-actions{grid-row:6; margin:clamp(22px,3vh,30px) var(--t-pad) 0}
[data-screen="gate"] > .t-fine{grid-row:7; margin:18px var(--t-pad) 0; max-width:72ch; color:var(--navy)}
.u-leave{grid-row:8; margin:12px var(--t-pad) var(--t-pad)}
.u-h{
  font-family:var(--display); font-weight:800; font-size:clamp(30px,4vw,48px);
  line-height:1.02; letter-spacing:-.02em; color:var(--black);
}
.u-gets li{padding:18px 20px; gap:14px}
.u-gets .t-point-icon{width:44px; height:44px; background:var(--p-pale)}
.g-leave{
  display:inline-flex; align-items:center; min-height:44px;
  color:var(--black); font-weight:700; font-size:16px;
  border-bottom:0; text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:4px;
}
.g-leave:hover{color:var(--black)}
@media (max-width:700px){ .u-gets{grid-template-columns:minmax(0,1fr)} }

/* The score and the verdict, as two pieces side by side (stacked on a
   phone). Shared by the gate's preview and the result's card. */
.u-preview, .r-card{
  margin:0; padding:0; border:0; border-radius:0; background:none;
  display:grid; isolation:isolate;
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  grid-template-rows:auto 1fr;
  column-gap:var(--t-gap); row-gap:0;
}
.u-preview::before, .r-card::before{
  grid-column:1; grid-row:1 / 3;
  --sh:var(--b-shadow-blue); background:var(--p-blue);
}
.u-preview::after, .r-card::after{grid-column:2; grid-row:1 / 3}
.u-preview .r-head, .r-card .r-head{
  grid-column:1; grid-row:1;
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  padding:clamp(22px,2.6vw,32px) clamp(22px,2.6vw,32px) 0;
}
.u-preview .r-meter, .r-card .r-meter{grid-column:1; grid-row:2; align-self:end; margin:0; padding:18px clamp(22px,2.6vw,32px) clamp(22px,2.6vw,32px)}
.u-verdict, .r-card .r-verdict{grid-column:2; grid-row:1; align-self:end; margin:0; padding:var(--t-pad) var(--t-pad) 0}
.u-verdict{grid-row:1 / 3; padding-bottom:var(--t-pad)}
.r-card .r-detail{grid-column:2; grid-row:2; margin:0; padding:16px var(--t-pad) var(--t-pad); color:var(--ink-soft); font-size:17px}
.r-score, .u-preview .r-score{
  font-family:var(--display); font-weight:800; font-size:clamp(84px,10vw,132px);
  line-height:.85; letter-spacing:-.03em; color:var(--p-on-dark);
}
.r-of{font-family:var(--sans); font-size:16px; font-weight:600; letter-spacing:0; text-transform:none; line-height:1.4; color:var(--p-on-dark)}
.u-verdict, .r-verdict{
  font-family:var(--display); font-weight:800; font-size:clamp(30px,4.4vw,56px);
  line-height:1.02; letter-spacing:-.02em; color:var(--black); max-width:18ch;
}
.r-meter{gap:6px; flex-wrap:nowrap}
.pip{flex:1 1 0; width:auto; height:16px; border:var(--b-stroke) solid var(--p-white); background:transparent}
.pip.is-on{background:var(--p-white)}
@media (max-width:760px){
  .u-preview, .r-card{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto var(--t-gap) auto auto;
  }
  .u-preview::before, .r-card::before{grid-row:1 / 3}
  .u-preview::after, .r-card::after{grid-column:1; grid-row:4 / 6}
  .u-verdict, .r-card .r-verdict{grid-column:1; grid-row:4; max-width:none}
  .u-verdict{grid-row:4 / 6}
  .r-card .r-detail{grid-column:1; grid-row:5}
}

/* ---------- the result ---------- */
[data-screen="result"] > .kicker{color:var(--ink)}
.r-partb{
  background:var(--p-pale); --muted:var(--navy);
  margin-top:var(--t-gap); padding:clamp(20px,2.6vw,28px);
  font-size:16px; color:var(--black);
}
.r-partb .r-bscore{font-family:var(--display); font-weight:800; font-size:1.2em}
.r-meter--b{margin-top:14px}
.r-meter--b .pip{height:12px; border-color:var(--b-line)}
.r-meter--b .pip.is-on{background:var(--black)}
.r-caution{
  margin-top:var(--t-gap); padding:20px 24px;
  font-size:16px; color:var(--black);
}
.r-caution b{color:var(--black)}
.r-actions{margin-top:clamp(22px,3.4vh,32px); gap:12px}
.r-saved{color:var(--muted); font-size:13px}
.r-next{margin-top:clamp(24px,4vh,36px); gap:12px}
.r-next li{
  padding:16px 18px 16px 64px; font-size:16px; color:var(--ink-soft);
}
.r-next li::before{
  left:16px; top:14px; width:34px; height:34px;
  background:var(--p-ink); color:var(--p-on-dark); border:0; border-radius:var(--b-pill);
  font-size:14px;
}
.r-next a{color:var(--black); text-decoration-thickness:1.5px}
.r-answers{margin-top:clamp(30px,5vh,48px)}
.r-sub{font-size:15px; letter-spacing:.06em; color:var(--ink)}
.r-sub-note{color:var(--muted)}
.r-list{margin-top:14px; padding:0 clamp(16px,2vw,24px); border-top:var(--b-stroke) solid var(--b-line)}
.r-list li{border-bottom:var(--b-stroke-thin) dashed var(--p-pale); padding:14px 0}
.r-list li:last-child{border-bottom:0}
.r-q-n{color:var(--black); font-size:13px}
.r-q{font-size:16px; color:var(--ink-soft)}
.r-a{
  padding:4px 12px; font-size:14px; font-weight:600;
  background:var(--p-white); color:var(--black);
  border:var(--b-stroke-thin) solid var(--b-line);
}
.r-a.is-band{background:var(--p-ink); color:var(--p-on-dark); border-color:var(--b-line); font-weight:700}
.r-credit{border-top:0; padding-top:0; color:var(--muted)}
.r-credit a{color:var(--ink)}

}

/* ============ NESTED CORNERS ============
   BRAND.md §5: a shape that sits in a piece's corner takes the piece's
   radius minus the gap between their edges (the piece's outline plus its
   padding), down to square, so the two curves run parallel. Each gap below
   repeats the padding of the rule it names; change one, change both.
   Where the gaps differ, the larger one counts. Free-standing capsules and
   circles (chips, small buttons, icon discs) keep their own shape. */
/* The about form's fields and options (label.field and .f-set, at least
   20px); the details block, the English line and the gate's list (each
   --t-pad, at least 22px, in from its screen's piece). */
[data-screen="about"] .field-input, [data-screen="about"] .opt{
  border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 20px));
}
.c-block, .q-en-text, .u-gets li{
  border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 22px));
}
