/* ==========================================================================
   BUT FOR · the two free practice pages' composition
   public/_practice.css

   The system (public/_system.css) draws every piece: the top bar, the
   buttons, the marks, the cards, the question screen's frame and rail, the
   answer rows, the confidence pills, the subject bars, the form field, the
   footer. This file only composes them into the two free practice pages,
   Where You Stand (twelve questions to a result) and Try (three questions
   and the live grader), which are the homepage's live question as whole
   pages. Where the homepage already composed a piece (_home.css), the rule
   is copied here under "candidate for _system.css" so the three pages draw
   it the same way until it moves into the system.

   Nothing here is a new color: every value is a system token, or one of the
   system's own rgba() values copied from its answer-row and pill states so
   the pages' rows match the system's. No type size is under the floors:
   18px for reading, 16px for interface, 12px for the smallest label.

   The pages' scripts are untouched. They write their own markup (button.opt
   with span.l, .conf with .pill, .explain, .sq, .gring, .subj-row, .cal-item,
   .cal-verdict, the grader's result) and this file draws whatever they
   write, so every id and class a script binds to is kept on the page.
   ========================================================================== */

:root {
  }

/* candidate for _system.css
   The hidden attribute must win over any display this file sets. The result,
   the report form, the score strip and the next-question rows all hide and
   show with that attribute. */
[hidden] { display: none !important; }

body.practice { position: relative; }
.wrap { max-width: var(--content); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding: var(--space-8) 0; }
.ruled { border-top: var(--hair) solid var(--rule); }

/* candidate for _system.css
   The serif is loaded at 400, 500 and 600. A bare <strong> asks for 700 and
   the browser would fake it, so bold on these pages is the real 600. */
main strong, main b { font-weight: 600; }

/* candidate for _system.css · the skip link: off screen until it has focus. */

/* ---- links inside reading text ------------------------------------------- */
.prose a, .stand a, .stand-2 a, .card-body a, .demo-note a, .explain a, .bl-tie a, .cap-note a, .lg-note a, .mnote a {
  color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: var(--hair);
}
.prose a:hover, .stand a:hover, .stand-2 a:hover, .card-body a:hover, .demo-note a:hover, .explain a:hover, .bl-tie a:hover, .cap-note a:hover, .lg-note a:hover, .mnote a:hover { color: var(--accent); }

/* ===========================================================================
   candidate for _system.css
   The top bar · the system's, as the homepage composes it
   Eight links and the member button fit at 1440 with the design's spacing,
   fit at 1200 with tighter spacing, and give way to the menu button under
   that. Here the bar sits on the field, not on a photograph. */

#member-link > span { white-space: nowrap; }

/* The menu, a sheet under the bar: each link with its line under it. */

/* ===========================================================================
   The opening · the page's own words on the system's opening: the small
   line, the title, the standfirst, one more line, and the imprint. */
/* Named as the homepage names its own (.hero): the obvious names collide, with
   the system's opening grid and with the menu sheet's own open state. */
.hero { padding: var(--space-8) 0 var(--space-7); }
.hero-in { display: grid; gap: var(--space-5); max-width: 46rem; }
.kick { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 500; letter-spacing: .06em; color: var(--accent-deep); }
.kick-note { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-3); margin-top: calc(-1 * var(--space-3)); }
.hero .title { max-width: 20em; }
.hero .stand { max-width: 30em; }
.hero .stand-2 { max-width: 30em; }
/* What moved below the questions: the rest of the standfirst, the one more
   line, and the imprint, as a short close before the marks. */
.tail { padding: var(--space-6) 0 0; }
.tail-in { display: grid; gap: var(--space-2); max-width: 46rem; }
.tail .stand-2 { max-width: 44em; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-3); }
.doc-id { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: var(--lh-ui); color: var(--ink-3); }

/* ===========================================================================
   candidate for _system.css
   The marks · the six links the stamper reads, as the homepage draws them:
   a heading, a three-by-two grid of small check boxes, then the one line
   between two rules. The block between the chrome markers is not touched;
   these rules draw its own markup. */
.marks { padding: var(--space-7) 0 var(--space-6); }

.marks .proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-6);
  margin: 0; padding: 0; list-style: none; border-top: 0; border-bottom: 0;
}
.marks .proof li { display: block; }
.marks .proof a {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-read); font-weight: 500; line-height: 1.4; color: var(--ink-2); text-decoration: none;
}
.marks .proof a:hover { color: var(--ink); }
.marks .proof a i {
  position: relative; flex: none; width: 24px; height: 24px; margin-top: .1em;
  border: var(--hair) solid var(--rule-strong); border-radius: var(--r-1); background: var(--surface);
}
.marks .proof a i::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 5px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg);
}

/* ===========================================================================
   The run · the section that holds the question screen, and the lines
   around it: the jurisdiction field above, the running head, the result
   and the report form after. */
.run-sec { display: grid; gap: var(--space-6); }
.lead { max-width: var(--measure); }

/* The jurisdiction picker: the system's field with a select drawn as the
   same field, and the line under it that answers the pick. */
.ju { max-width: 28rem; }
.ju-cut { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-3); }

/* The running head: the section's name at the left, the format at the right. */
.runhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 600; color: var(--ink); }
.runhead .vol { font-weight: 500; color: var(--ink-3); }

/* ===========================================================================
   The question card · the system's screen frame: a head bar with the label,
   the progress line and the count; the rail with the subject; the question
   in the main column. The homepage's live question is the same card without
   the rail. */
.demo { background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-4); overflow: hidden; }
.demo-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  min-height: 64px; padding: var(--space-3) var(--space-5); background: var(--field); border-bottom: var(--hair) solid var(--rule);
  font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 500;
}
.demo-head .tag { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent-deep); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: var(--r-round); background: var(--accent-deep); flex: none; }
.demo-right { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; flex: 1 1 12rem; justify-content: flex-end; min-width: 0; }
.demo-meta { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The progress line, built from the scripts' own step marks: one segment a
   question, lit in cream as far as the reader has come. */
.run-steps, .demo-steps { display: flex; gap: 2px; flex: 1 1 6rem; max-width: 14rem; height: 4px; border-radius: var(--r-round); background: var(--rule); overflow: hidden; }
.run-steps i, .demo-steps i { flex: 1 1 0; display: block; height: 100%; background: transparent; }
.run-steps i.on, .demo-steps i.on { background: var(--accent); }

/* The script scrolls the card and the result to the top of the window;
   a little room above each. */
#run, #res { scroll-margin-top: var(--space-4); }
.demo .q-rail .vol { color: var(--ink-2); }
/* The keys a desktop reader can use, as a faint line under the subject;
   a touch screen has no keys to hint at. */
.key-hint { margin: var(--space-4) 0 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-min); line-height: 1.5; color: var(--ink-4); }
.key-hint kbd { font: inherit; font-weight: 600; color: var(--ink-3); }
@media (hover: none), (max-width: 720px) { .key-hint { display: none; } }
.demo-body { padding: var(--space-6) var(--space-7) var(--space-7); display: grid; gap: var(--space-5); }
#cal-mount { display: grid; gap: var(--space-5); }
#cal-mount:empty { display: none; }
.demo .stem { font-family: var(--serif); font-size: var(--t-read); line-height: var(--lh-read); color: var(--ink); margin: 0; max-width: var(--measure); }
.demo .call { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 600; line-height: var(--lh-ui); color: var(--ink-2); margin: 0; }

/* The answer rows: the system's answer-row look on the buttons the scripts
   make (button.opt with span.l for the letter), in every state: at rest,
   under the pointer, picked, right, wrong, and dimmed after grading. */
.demo .opts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.demo .opt {
  display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: var(--space-4);
  width: 100%; min-height: 56px; padding: var(--space-3) var(--space-4);
  background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-3);
  font-family: var(--serif); font-size: var(--t-read); line-height: 1.45; color: var(--ink-2); text-align: left;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.demo .opt .l {
  width: 36px; height: 36px; border-radius: var(--r-round); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--hair) solid var(--outline-selected); background: transparent;
  font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 700; color: var(--ink-2); line-height: 1;
}
.demo .opts:not(:has(.key)) .opt:hover { background: var(--surface-3); border-color: var(--rule-strong); color: var(--ink); }
/* The press: the row gives a little under the finger or the pointer. */
.demo .opts:not(:has(.key)) .opt:active { transform: translateY(1px) scale(.995); background: var(--surface-3); }
.pill:active, .btn:not(:disabled):active { transform: translateY(1px); }
.demo .opt[aria-pressed="true"] { border-color: var(--outline-selected); background: var(--surface-2); color: var(--ink); }
.demo .opt[aria-pressed="true"] .l { border-color: var(--accent); color: var(--ink); }
.demo .opt.key { background: var(--green-tint); border-color: rgba(104, 172, 132, .35); color: var(--ink); cursor: default; }
.demo .opt.key .l { background: var(--green); border-color: var(--green); color: var(--ink-on-fill); }
.demo .opt.key[aria-pressed="false"] .l { background: transparent; border-color: var(--green-bright); color: var(--green-bright); }
.demo .opt.miss { background: var(--red-tint); border-color: rgba(172, 88, 76, .40); color: var(--ink); cursor: default; }
.demo .opt.miss .l { background: var(--wash-miss); border-color: var(--red); color: var(--ink); }
.demo .opts:has(.key) .opt:not(.key):not(.miss) { background: transparent; border-color: var(--rule-faint); color: var(--ink-4); cursor: default; }
.demo .opts:has(.key) .opt:not(.key):not(.miss) .l { border-color: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink-4); }
/* On submit the scripts mark every row at once; the right answers light in
   sequence, 60ms apart, the wrong pick after them, and the explanation
   slides up once they have lit. Transitions are the system's .15s. */
.demo .opts li:has(.opt.key) ~ li .opt.key, .demo .opts li:has(.opt.key) ~ li .opt.key .l { transition-delay: .06s; }
.demo .opt.miss, .demo .opt.miss .l { transition-delay: .12s; }

/* The select-two meter: Selected n / 2 at the left, the facts beside it, on
   a rule. The scripts separate the facts with an empty mark, drawn as a
   short rule. */
.bmeter {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
  padding-top: var(--space-5); border-top: var(--hair) solid var(--rule);
  font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-3); margin: 0;
}
.bmeter > span:first-child { color: var(--ink); }
.bmeter b, .bmeter .v { font-weight: 600; color: var(--ink); }
.bmeter .sep { display: block; width: var(--hair); height: 1em; background: var(--rule-strong); }

/* The confidence row and the Submit row share a line: the pills at the
   left, the button at the right. The grid packs densely so the button, a
   later sibling, rises into the pills' row; everything else spans. The same
   rule serves the first question's wrapper on the try page, the script's
   .cal-item, and the one block the twelve-question script writes into its
   body, whose children come in the same order. The first column keeps
   room for the label and both pills side by side; a long verdict beside the
   button wraps rather than squeezing them into a stack. */
.q-controls, .cal-item { display: grid; grid-template-columns: minmax(16rem, 1fr) auto; grid-auto-flow: row dense; gap: var(--space-4) var(--space-6); align-items: end; }
.q-controls > *, .cal-item > * { grid-column: 1 / -1; min-width: 0; }
.q-controls > .conf, .cal-item > .conf { grid-column: 1; }
.q-controls > .demo-actions, .cal-item > .demo-actions { grid-column: 2; justify-self: end; }
.cal-item > .cal-nextrow { grid-column: 1 / -1; justify-self: start; }
.cal-item { padding-top: var(--space-6); border-top: var(--hair) solid var(--rule); }
.demo .conf { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.demo .conf-lab { flex: 1 0 100%; font-family: var(--serif); font-size: var(--t-ui); color: var(--ink-2); }
.demo .pills { display: contents; }
.demo .conf .pill { min-width: 6.5rem; }
.demo .hint, .demo .conf-note { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.45; color: var(--ink-3); margin: 0; max-width: 40em; }
.demo .hint:empty, .demo .conf-note:empty { display: none; }
.demo .demo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-3) var(--space-4); }
.demo .verdict { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.4; color: var(--ink-2); }
.demo .verdict:empty { display: none; }
.demo .verdict .pts { font-family: var(--serif); font-size: var(--t-3); font-weight: 500; color: var(--accent-deep); }
#next-1, .cal-nextrow { justify-content: flex-start; }

/* After grading: the legend, then the score strip with the reader's own
   cell lit. The script reveals the strip; the legend, which sits before it
   in the words and in the markup, shows itself when the strip is shown. */
.bout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.bout > div { display: grid; gap: var(--space-1); padding: var(--space-4); background: var(--field); border: var(--hair) solid var(--rule); border-radius: var(--r-2); }
.bout > div b { font-family: var(--serif); font-size: var(--t-2); font-weight: 400; line-height: 1; color: var(--ink-2); }
.bout > div span { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.3; color: var(--ink-3); }
.bout > div[data-hit="true"] { background: var(--wash-selected); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.bout > div[data-hit="true"] b { color: var(--accent-deep); }
.bout > div[data-hit="true"] span { color: var(--ink); }
.optlegend { display: none; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); color: var(--ink-3); }
.demo-body:has(#bout:not([hidden])) .optlegend { display: flex; }
.optlegend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.optlegend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: var(--hair) solid var(--rule-strong); background: transparent; }
.optlegend .lg-cr::before { border-color: var(--accent); background: var(--surface-2); }
.optlegend .lg-hit::before { background: var(--green); border-color: var(--green); }
.optlegend .lg-key::before { border-color: var(--green-bright); }
.optlegend .lg-miss::before { background: var(--wash-miss); border-color: var(--red); }
.bout-note { font-family: var(--serif); font-size: var(--t-read); line-height: 1.5; color: var(--ink-2); margin: 0; }

/* The explanation, shown once graded, as the review panel: a wash of the
   system's result green, the explanation as reading text, and the line to
   remember on its own rule under it. */
.demo .explain { display: none; }
.demo .explain.show {
  display: grid; gap: var(--space-4); padding: var(--space-5);
  background: linear-gradient(180deg, rgba(56, 116, 84, .18), rgba(56, 116, 84, .04));
  border: var(--hair) solid rgba(56, 116, 84, .45); border-radius: var(--r-3);
}
.demo .explain p { font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink); margin: 0; }
.demo .explain strong { font-weight: 600; }
.demo .explain .disc { color: var(--accent-deep); padding-top: var(--space-4); border-top: var(--hair) solid rgba(56, 116, 84, .45); }

/* The foot of the try page's card: the line on working the questions the
   way members do, then the closing note, on one rule. */
.demo-foot { display: grid; gap: var(--space-4); padding: var(--space-5) var(--space-7); border-top: var(--hair) solid var(--rule); }
.demo-note { margin: 0; font-family: var(--serif); font-size: var(--t-read); line-height: 1.5; color: var(--ink-2); max-width: 44em; }

/* The closing record the try page's script mounts after the third question. */
.cal-verdict { display: grid; gap: var(--space-5); padding-top: var(--space-6); border-top: var(--hair) solid var(--rule); }
.cal-verdict h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-2); line-height: var(--lh-head); color: var(--ink); margin: 0; }
.cal-lines { display: grid; gap: var(--space-2); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.cal-lines p { margin: 0; }
.cal-lines .big { font-family: var(--serif); font-size: var(--t-3); color: var(--ink); }
.bledger { display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--surface-2); border: var(--hair) solid var(--rule); border-radius: var(--r-3); }
.gc-label { display: block; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-min); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); }
.bl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.bl-stats > div { display: grid; gap: var(--space-1); align-content: start; }
.bl-stats b { font-family: var(--serif); font-size: var(--t-metric); font-weight: 400; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-stats span { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.3; color: var(--ink-3); }
.bl-stats .warn b { color: var(--red-text); }
.bl-tie { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); margin: 0; }
.bl-tie a { color: var(--ink-2); }
.cal-take { font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink); margin: 0; }
.cal-take strong { font-weight: 600; }
.dladder { list-style: none; margin: 0; padding: 0; border-top: var(--hair) solid var(--rule); }
.dladder li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: var(--space-4); align-items: baseline; padding: var(--space-3) 0; border-bottom: var(--hair) solid var(--rule); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.dladder .bd { font-weight: 600; color: var(--ink); }
.dladder .nm { font-family: var(--serif); font-size: var(--t-read); color: var(--ink); }
.dladder .rg { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dladder-note { font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink-2); margin: 0; }
.dladder-note strong { color: var(--ink); font-weight: 600; }
.cal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.lg-aftertext { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); color: var(--ink-3); }
.lg-form { display: grid; gap: var(--space-3); max-width: 32rem; margin: 0; }
.lg-form input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 var(--space-4);
  background: var(--surface-2); border: var(--hair) solid var(--rule-strong); border-radius: var(--r-2);
  font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink);
}
.lg-form input[type="email"]::placeholder { color: var(--ink-4); }
.lg-form .btn { justify-self: start; }
.lg-note { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); margin: 0; }

/* ===========================================================================
   The result · to the design approved November 1 (ChatGPT's second pass):
   the title on the field; the twelve answers as twelve squares with the
   lede beside them, in the review panel's wash, one square open to its
   question; the two rings and the gap; then three cards, the passing score
   where the reader is taking it, the subjects, and the first exam. The
   script writes the squares, the rings and the subjects; the drawer at the
   foot of the page draws the two scales from the sentences it writes. */
.res { display: grid; gap: var(--space-5); }
.res-title { margin: 0 0 var(--space-2); }

/* The twelve. A square is a button; its color says what happened, the ring
   around it says the reader marked it Sure, so the nine rings and the red
   ones among them can be counted. */
.twelve-panel {
  display: grid; gap: var(--space-5); padding: var(--space-6);
  background: linear-gradient(180deg, rgba(56, 116, 84, .16), rgba(56, 116, 84, .03));
  border: var(--hair) solid rgba(56, 116, 84, .42); border-radius: var(--r-4);
}
.twelve-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr); gap: var(--space-6) var(--space-7); align-items: center; }
.twelve { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2); max-width: 40rem; padding: var(--space-1) var(--space-1) var(--space-4); }
.sq {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; margin: 0;
  border: 0; border-radius: var(--r-1); cursor: pointer;
  background: var(--track);
  transition: transform .15s ease, filter .15s ease;
}
.sq.is-full { background: var(--green-bar); }
.sq.is-part { background: var(--gold); }
.sq.is-sw { background: var(--red); }
.sq.is-uw { background: rgba(172, 88, 76, .42); }
.sq.is-sure::after { content: ""; position: absolute; inset: -5px; border: 1.5px solid color-mix(in srgb, var(--ink) 60%, transparent); border-radius: calc(var(--r-1) + 4px); pointer-events: none; }
.sq:hover { filter: brightness(1.12); }
.sq:active { transform: translateY(1px); }
.sq:focus-visible { outline: var(--stroke) solid var(--focus); outline-offset: 7px; }
.sq[aria-expanded="true"] { filter: brightness(1.15); }
.sq[aria-expanded="true"]::before { content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 7px; height: 7px; margin-left: -4px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); }
.sq.is-sure[aria-expanded="true"]::after { border-color: var(--ink); }
.res-lede { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-read); line-height: 1.5; color: var(--ink-2); margin: 0; }
.res-lede strong { display: block; margin-bottom: var(--space-2); font-weight: 700; color: var(--ink); }
/* The open square: the subject and the number, the question's first
   sentence, the reader's answer beside the credited one, and the line to
   remember drawn as the review panel draws it. */
.twelve-open { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: var(--hair) solid var(--rule); }
.open-kicker { margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; color: var(--ink-3); }
.open-stem { margin: 0; font-family: var(--serif); font-size: var(--t-stand); line-height: 1.35; color: var(--ink); max-width: 36em; }
.open-ans { margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.open-line {
  margin: var(--space-2) 0 0; padding: var(--space-4) var(--space-5);
  background: rgba(56, 116, 84, .16); border: var(--hair) solid rgba(104, 172, 132, .45); border-radius: var(--r-3);
  font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-read); line-height: 1.5; color: var(--ink); max-width: 44em;
}

/* The two rings and the gap: the system's ring at two sizes, green from 70
   and gold under it, the number in the middle; the gap as the one large
   number; the points earned on a rule under them. */
.gap-panel {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "a b c" "p p p";
  gap: var(--space-5) var(--space-7); align-items: center;
  padding: var(--space-5) var(--space-6); background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-4);
}
.gring { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.gring-big { grid-area: a; }
.gring-small { grid-area: b; }
.gring .ring { flex: none; }
.gring-big .ring { width: 120px; height: 120px; }
.gring-small .ring { width: 84px; height: 84px; }
.gap-panel .ring-value { font-size: var(--t-2); }
.gring-small .ring-value { font-size: var(--t-3); }
.gap-panel .ring-value small { font-size: .6em; color: var(--ink-2); }
.gap-panel .ring-arc { stroke: var(--gold); }
.gap-panel .ring-arc.is-green { stroke: var(--green-bar); }
.gring-label { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.35; color: var(--ink-2); max-width: 9em; }
.gap-big { grid-area: c; display: grid; gap: var(--space-2); align-content: center; justify-self: end; max-width: 18em; }
.gap-n { font-family: var(--serif); font-size: var(--t-metric); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.gap-n small { font-size: .6em; color: var(--ink-2); }
.gap-label { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.4; color: var(--ink-3); }
.gap-points { grid-area: p; margin: 0; padding-top: var(--space-4); border-top: var(--hair) solid var(--rule); display: flex; gap: var(--space-3); align-items: baseline; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); color: var(--ink-3); }
.gap-points b { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.res-null, .gap-panel .ring-value.res-null { color: var(--ink-4); }

/* The three cards: the system's figure, drawn as the design draws a card
   here, with its title in the serif. */
.res .fig-card { margin: 0; display: grid; gap: var(--space-4); padding: var(--space-5) var(--space-6); background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-4); }
.res .fig-card .figure { padding: 0; background: none; border: 0; border-radius: 0; }
.res .figure-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); }
.res .figure-head .kicker { font-family: var(--serif); font-size: var(--t-3); font-weight: 400; line-height: var(--lh-head); letter-spacing: 0; text-transform: none; color: var(--ink); }
.res .figure-meta { margin-left: auto; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 500; color: var(--ink-3); }
.res .figure-cap { margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.res .fg-label { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.res .fg-bar { height: 8px; }
.mnote { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); max-width: 60em; margin: 0; }
.fig-first-cap { display: grid; gap: var(--space-4); }
.fig-first-cap .mnote { padding-top: var(--space-4); border-top: var(--hair) solid var(--rule); }
/* The passing score: the jurisdiction joins the title; the caption stands
   left of the scale. */
.fig-cut .figure-head { gap: 0 var(--space-2); }
.fig-cut .figure-meta { margin-left: 0; font-family: var(--serif); font-size: var(--t-3); font-weight: 400; color: var(--ink); }
.fig-cut .figure-meta:not(:empty)::before { content: "\00b7"; }
.fig-cut-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-7); align-items: start; }
.fig-cut-scale { padding-top: var(--space-3); }
/* A scale from one number to another, with marks on it: a mark is a short
   line with its number over it, or under it when two would touch. */
.fg-scale { position: relative; height: 6px; margin: 1.5rem 0 1.75rem; border-radius: var(--r-round); background: var(--track); }
.fg-mark { position: absolute; top: -6px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.fg-mark[data-k="avg"], .fg-legend i[data-k="avg"] { background: var(--green-bright); }
.fg-mark[data-k="cut"], .fg-legend i[data-k="cut"] { background: var(--ink); }
.fg-legend i[data-k] { width: 8px; height: 8px; border-radius: var(--r-round); }
.fg-mark-l { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-min); font-weight: 600; line-height: var(--lh-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fg-mark[data-k="avg"] .fg-mark-l { color: var(--green-bright); }
.fg-mark-l.is-below { bottom: auto; top: calc(100% + 4px); }
.fg-scale + .fg-axis { margin-top: calc(-1 * var(--space-2)); }
/* The two ends of the scale, at the two ends (cold read, Nov 8: they ran together as "500750"). */
.fg-axis { display: flex; justify-content: space-between; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-min); color: var(--ink-3); }
/* The pass rates: each a line with its number at the right and its bar
   under it, the overall rate as one rule across both with its label above. */
.fg-pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l1 n1" "b1 b1" "l2 n2" "b2 b2"; gap: var(--space-2) var(--space-4); align-items: center; padding-top: 1.5rem; }
.fg-pass > .fg-l1 { grid-area: l1; } .fg-pass > .fg-b1 { grid-area: b1; } .fg-pass > .fg-n1 { grid-area: n1; }
.fg-pass > .fg-l2 { grid-area: l2; margin-top: var(--space-2); } .fg-pass > .fg-b2 { grid-area: b2; } .fg-pass > .fg-n2 { grid-area: n2; margin-top: var(--space-2); }
.fg-pass-rule { grid-column: 1 / -1; grid-row: 1 / 5; position: relative; align-self: stretch; pointer-events: none; }
.fg-pass-rule::before { content: ""; position: absolute; left: var(--x); top: -4px; bottom: -4px; width: 0; margin-left: -1px; border-left: 2px dashed color-mix(in srgb, var(--ink) 55%, transparent); }
.fg-pass-rule b { position: absolute; left: var(--x); bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-min); font-weight: 600; line-height: var(--lh-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* The subjects, as the script draws them: a line a subject, the bar between
   the name and the count. */
.fig-subjects .subj { display: grid; gap: 0; }
.subj-row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) 4rem; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--hair) solid var(--rule-faint); }
.subj-row:last-child { border-bottom: 0; padding-bottom: 0; }
.subj-row .n { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.subj-row .t { display: block; height: 6px; border-radius: var(--r-round); background: var(--track); overflow: hidden; }
.subj-row .t i { display: block; height: 100%; border-radius: var(--r-round); background: var(--gold); }
/* The script writes each bar's width in its style attribute, a whole number
   of percent, so the color follows the number it wrote: 70 to 100 is green,
   under 70 is gold. */
.subj-row .t i[style^="width:100"],
.subj-row .t i[style^="width:7"]:not([style^="width:7%"]),
.subj-row .t i[style^="width:8"]:not([style^="width:8%"]),
.subj-row .t i[style^="width:9"]:not([style^="width:9%"]) { background: var(--green-bar); }
.subj-row .v { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 500; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.subj-row .v b { font-weight: 600; color: var(--ink); }
.res .prose { max-width: 44em; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pop-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
  .twelve.is-armed .sq { opacity: 0; }
  .twelve.is-armed.is-in .sq { animation: pop-in .35s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 55ms) both; }
  .gap-panel.is-armed .ring-arc { stroke-dashoffset: var(--len); transition: stroke-dashoffset .9s cubic-bezier(.2, .7, .2, 1) .2s; }
  .gap-panel.is-armed.is-in .ring-arc { stroke-dashoffset: 0; }
  .fig-subjects.is-armed .subj-row .t i { transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 1ms); }
  .fig-subjects.is-armed.is-in .subj-row .t i { transform: none; }
  .fig-subjects .subj-row:nth-child(2) .t i { --i: 40; } .fig-subjects .subj-row:nth-child(3) .t i { --i: 80; } .fig-subjects .subj-row:nth-child(4) .t i { --i: 120; }
  .fig-subjects .subj-row:nth-child(5) .t i { --i: 160; } .fig-subjects .subj-row:nth-child(6) .t i { --i: 200; } .fig-subjects .subj-row:nth-child(7) .t i { --i: 240; } .fig-subjects .subj-row:nth-child(8) .t i { --i: 280; }
}

/* The report form, offered after the result, as the design draws it: a
   quiet panel, the words at the left, the field and the cream button at
   the right, the two lines under both. */
.capture {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 1fr); grid-template-areas: "t f" "m m" "n n";
  gap: var(--space-5) var(--space-7); align-items: start;
  padding: var(--space-6); background: linear-gradient(180deg, rgba(56, 116, 84, .10), rgba(56, 116, 84, .02));
  border: var(--hair) solid var(--rule); border-radius: var(--r-4);
}
.cap-text { grid-area: t; display: grid; gap: var(--space-3); }
.capture .card-title { font-size: var(--t-2); font-weight: 400; max-width: 16em; }
.capture .card-body { margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.cap-form { grid-area: f; display: grid; gap: var(--space-3); margin: 0; align-self: center; }
.cap-form .btn { width: 100%; justify-content: center; }
.cap-msg { grid-area: m; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); margin: 0; }
.cap-msg:empty { display: none; }
.cap-msg.is-ok { color: var(--green-bright); }
.cap-msg.is-err { color: var(--red-text); }
.cap-notes { grid-area: n; display: grid; gap: var(--space-2); }
.cap-note { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); margin: 0; max-width: 60em; }

/* ===========================================================================
   The close · the two paragraphs and the two doors in the design's indented
   column, then the note under the doors. */
#closing { display: grid; gap: var(--space-4); max-width: 44em; }
#closing p { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-read); line-height: 1.55; color: var(--ink-2); margin: 0; }
.doors { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.doors-note { flex: 1 0 100%; margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); }
@media (min-width: 961px) { #closing, .doors { margin-left: var(--space-8); } }

/* ===========================================================================
   The grade card · the try page's exhibit of one graded answer, a screen
   like the question's: a head bar, the task, the answer with the grader's
   marks on its own words, the score on a rule, the rationale line by line,
   and the override row. */
.gcard { margin: 0; background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-4); overflow: hidden; }
.gcard-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-5); min-height: 64px; padding: var(--space-3) var(--space-5); background: var(--field); border-bottom: var(--hair) solid var(--rule); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 500; }
.gcard-head .tag { color: var(--accent-deep); white-space: nowrap; }
.gcard-head .demo-meta { margin-left: auto; white-space: normal; font-weight: 500; color: var(--ink-3); }
.gcard-body { padding: var(--space-6) var(--space-7) var(--space-7); display: grid; gap: var(--space-5); }
.gc-kicker { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-min); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); margin: 0; }
.gc-task { font-family: var(--serif); font-size: var(--t-read); line-height: var(--lh-read); color: var(--ink); margin: 0; max-width: var(--measure); }
.gc-answer { margin: 0; display: grid; gap: var(--space-2); }
.gc-answer p { margin: 0; padding: var(--space-4) var(--space-5); background: var(--surface-2); border: var(--hair) solid var(--rule-strong); border-radius: var(--r-2); font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.gc-answer mark { background: none; color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .26em; -webkit-text-decoration-skip-ink: none; text-decoration-skip-ink: none; }
.gc-answer mark.cr { text-decoration-color: var(--green-bright); }
.gc-answer mark.rf { text-decoration-color: var(--red-text); text-decoration-style: wavy; }
.gc-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.6; color: var(--ink-3); }
.gc-legend b, .gc-legend i { font-weight: 500; font-style: normal; color: var(--ink-2); text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .26em; -webkit-text-decoration-skip-ink: none; text-decoration-skip-ink: none; }
.gc-legend b { text-decoration-color: var(--green-bright); }
.gc-legend i { text-decoration-color: var(--red-text); text-decoration-style: wavy; }
.gc-verdictrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0; border-top: var(--hair) solid var(--rule); border-bottom: var(--hair) solid var(--rule); }
.gc-score { font-family: var(--serif); font-size: var(--t-metric); line-height: 1.1; color: var(--accent-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gc-vlabel { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.gc-rationale { display: grid; gap: var(--space-3); }
.gc-rationale p { position: relative; margin: 0; padding-left: var(--space-6); font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.gc-rationale p::before { position: absolute; left: 0; top: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-weight: 700; }
.gc-rationale p.p-ok::before { content: "✓"; color: var(--green-bright); }
.gc-rationale p.p-no::before { content: "×"; color: var(--red-text); }
.gc-rationale p.p-part::before { content: "±"; color: var(--gold-light); }
.gc-override { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: var(--hair) solid var(--rule); }
.gc-override .row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.gc-override .lbl { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); color: var(--ink-3); }
.gc-override .sc { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.25rem; padding: 0 var(--space-2); border: var(--hair) dashed var(--gold-ring); border-radius: var(--r-1); color: var(--gold-light); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; font-variant-numeric: tabular-nums; }
.gc-override .of { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); color: var(--ink-3); }
.gc-override p { margin: 0; font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.gc-override p em { font-style: italic; color: var(--ink); }
.gcard-note { margin: 0; padding: var(--space-5) var(--space-7); border-top: var(--hair) solid var(--rule); font-family: var(--serif); font-size: var(--t-read); line-height: 1.5; color: var(--ink-2); }
.gcard-note strong { color: var(--ink); }

/* ===========================================================================
   The live grader · the system's form field with a written answer's box, the
   file it works from, and the states the script writes: the status line, the
   disabled button while it grades, and the result drawn like the grade card. */
.livegrade { background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-4); overflow: hidden; }
.lg-head { display: flex; align-items: center; min-height: 64px; padding: var(--space-3) var(--space-5); background: var(--field); border-bottom: var(--hair) solid var(--rule); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); font-weight: 500; }
.lg-head .tag { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent-deep); }
.lg-head .tag::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--accent-deep); flex: none; }
.lg-body { padding: var(--space-6) var(--space-7) var(--space-7); display: grid; gap: var(--space-5); }
.lg-lede { font-family: var(--serif); font-size: var(--t-read); line-height: var(--lh-read); color: var(--ink); margin: 0; max-width: var(--measure); }
.lg-record { display: grid; gap: var(--space-3); padding: var(--space-5); background: var(--surface-2); border: var(--hair) solid var(--rule); border-radius: var(--r-3); max-width: 44rem; }
.lg-record ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.lg-record li { position: relative; padding-left: var(--space-5); font-family: var(--serif); font-size: var(--t-read); line-height: 1.5; color: var(--ink-2); }
.lg-record li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--accent-deep); }
.livegrade .lg-form { max-width: 40rem; gap: var(--space-4); }
.lg-field { display: grid; gap: var(--space-2); }
.lg-field label { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; color: var(--ink-2); }
textarea.input { min-height: 9rem; padding: var(--space-3) var(--space-4); line-height: 1.5; resize: vertical; }
.lg-status { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 40em; }
.lg-status:empty { display: none; }
.lg-result { display: grid; gap: var(--space-5); }
.lg-sent { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.5; color: var(--ink-3); margin: 0; }
.lg-after { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* The grader, drawn as three steps in the figure language: you write (the
   file), the grader marks each point and quotes your words (the real graded
   answer, as it is), you set the score (the override row). Side by side on a
   desktop, the graded answer given the wider column; stacked on a phone. */
.fig-grader .fg-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.fg-step { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.fg-step-head { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.fg-step-title { font-family: var(--serif); font-weight: 500; font-size: var(--t-3); line-height: var(--lh-head); color: var(--ink); margin: 4px 0 0; }
.fg-file { display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--surface-2); border: var(--hair) solid var(--rule-strong); border-radius: var(--r-2); }
.fg-file ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.fg-file li { position: relative; padding-left: var(--space-4); font-family: var(--serif); font-size: var(--t-label); line-height: 1.4; color: var(--ink-2); }
.fg-file li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--accent-deep); }
.fg-step .gcard { border-radius: var(--r-3); }
.fg-step .gcard-head { min-height: 0; padding: var(--space-3) var(--space-4); gap: var(--space-1) var(--space-3); }
.fg-step .gcard-body { padding: var(--space-4); gap: var(--space-4); }
.fg-step .gc-answer p { padding: var(--space-3) var(--space-4); font-size: var(--t-ui); }
.fg-step .gc-rationale p { font-size: var(--t-ui); }
.fg-step .gc-task { font-size: var(--t-ui); }
.fg-step .gc-override { padding: var(--space-4); border: var(--hair) solid var(--rule); border-radius: var(--r-3); background: var(--surface); }
.fg-step .gc-override p { font-size: var(--t-ui); }
@media (max-width: 960px) { .fig-grader .fg-steps { grid-template-columns: 1fr; } }

/* The two doors at the foot of the try page, and the closing line. */
.try-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.closing { display: grid; gap: var(--space-4); }
.section-head { max-width: 18em; text-wrap: balance; }
@media (max-width: 720px) { .section-head { font-size: var(--t-2); font-weight: 600; line-height: var(--lh-head); } }
.sec-stack { display: grid; gap: var(--space-5); }

/* ===========================================================================
   candidate for _system.css
   The footer · the system's, with the homepage's serif column heads */
footer .wrap > .footer { padding-top: var(--space-8); }

/* ===========================================================================
   candidate for _system.css
   The phone's bar at the foot: the script shows it with .on and the cross
   hides it for the session. Phone only, as the words say. The page keeps
   the bar's height free at its foot, and a question the script scrolls into
   view stops short of the bar, so the bar never sits on an answer or a button. */
.scta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
  background: var(--surface-2); border-top: var(--hair) solid var(--rule);
  padding: var(--space-3) var(--pad); padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
}
.scta-in { display: flex; align-items: center; gap: var(--space-3); }
.scta-copy { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); line-height: 1.3; color: var(--ink-2); }
.scta-copy strong { font-family: var(--serif); font-size: var(--t-3); font-weight: 500; color: var(--accent-deep); }
.scta .btn { min-height: var(--tap); padding: 0 var(--space-4); }
.scta-x { width: 32px; height: var(--tap); flex: none; background: none; border: 0; border-radius: var(--r-2); color: var(--ink-2); font-size: var(--t-3); line-height: 1; cursor: pointer; }
.scta-x:hover { color: var(--ink); }
@media (max-width: 719px) {
  .scta.on { display: block; }
  body.practice:has(.scta.on) { padding-bottom: 7rem; }
  html:has(.scta.on) { scroll-padding-bottom: 7rem; }
}

/* candidate for _system.css
   One quiet transition per state change: the rows, pills, buttons and fields
   cross-fade their colors (the system's .15s), and a panel the scripts reveal
   (an explanation, the next question, the closing record, the result, the
   report form, the grader's result) rises once as it appears. None of it for
   a reader who asked for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cal-item, .cal-verdict, .res, .capture, .lg-result, .bout, .conf-note:not(:empty), .verdict:not(:empty) { animation: rise .22s ease both; }
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.demo .explain.show { animation: slide-up .32s cubic-bezier(.2, .7, .2, 1) .22s both; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .ic, .opt, .pill, .input, .answer, .tab { transition: none; }
  .opt.key, .opt.key .l, .opt.miss, .opt.miss .l { transition-delay: 0s; }
  .explain.show, .cal-item, .cal-verdict, .res, .capture, .lg-result, .bout, .conf-note:not(:empty), .verdict:not(:empty) { animation: none; }
}

/* ===========================================================================
   Narrower pages */
@media (max-width: 960px) {
  .marks .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-body, .gcard-body, .lg-body { padding-left: var(--space-5); padding-right: var(--space-5); }
  .demo-foot, .gcard-note { padding-left: var(--space-5); padding-right: var(--space-5); }
}
@media (max-width: 720px) {
  .sec { padding: var(--space-7) 0; }
  .hero { padding-bottom: var(--space-6); }
  .marks .proof { grid-template-columns: 1fr; gap: var(--space-4); }
  .run-sec { gap: var(--space-5); }
  /* The head bar on a phone: the label and the count on one line, the
     progress line under them on its own. */
  .demo-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
  .demo-right { display: contents; }
  .demo-head .tag { order: 1; }
  .demo-head .demo-meta { order: 2; }
  .run-steps, .demo-steps { order: 3; grid-column: 1 / -1; max-width: none; }
  .demo .q-screen { grid-template-columns: 1fr; }
  .demo-body { padding: var(--space-5) var(--space-4); gap: var(--space-4); }
  .demo-foot { padding: var(--space-4); }
  .opt { grid-template-columns: 32px 1fr; gap: var(--space-3); padding: var(--space-3); }
  .opt .l { width: 32px; height: 32px; }
  /* The facts list, one to a line: wrapped in a row, a separator opened
     the second line. */
  .bmeter { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .bmeter .sep { display: none; }
  /* An option can run to seven lines here, so its letter sits with the
     first line rather than floating at mid-height. */
  .opt { align-items: start; }
  .opt .l { margin-top: -3px; }
  .q-controls, .cal-item, #run-body > div { grid-template-columns: 1fr; }
  .q-controls > .conf, .cal-item > .conf, #run-body > div > .conf,
  .q-controls > .demo-actions, .cal-item > .demo-actions, #run-body > div > .demo-actions { grid-column: 1; justify-self: stretch; }
  .conf .pill { flex: 1 1 0; min-width: 0; }
  .demo-actions { justify-content: flex-start; }
  .demo-actions > .btn { width: 100%; }
  .bout { grid-template-columns: 1fr; }
  .bl-stats { grid-template-columns: 1fr 1fr; }
  .dladder li { grid-template-columns: 5rem minmax(0, 1fr); }
  .dladder .rg { grid-column: 2; white-space: normal; }
  .twelve-panel { padding: var(--space-5) var(--space-4); }
  .twelve-top { grid-template-columns: 1fr; gap: var(--space-5); }
  .twelve { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); max-width: none; }
  .gap-panel { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c c" "p p"; gap: var(--space-5) var(--space-4); padding: var(--space-5) var(--space-4); }
  .gring { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .gring-big .ring, .gring-small .ring { width: 96px; height: 96px; }
  .gring-small .ring-value { font-size: var(--t-2); }
  .gap-big { justify-self: start; max-width: none; }
  .res .fig-card { padding: var(--space-5) var(--space-4); }
  .fig-cut-body { grid-template-columns: 1fr; }
  .subj-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "t t"; gap: var(--space-2) var(--space-3); }
  .subj-row .n { grid-area: n; } .subj-row .t { grid-area: t; } .subj-row .v { grid-area: v; }
  .capture { grid-template-columns: 1fr; grid-template-areas: "t" "f" "m" "n"; padding: var(--space-5) var(--space-4); }
  .doors .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .btn { justify-content: space-between; }
  .gcard-body, .lg-body { padding: var(--space-5) var(--space-4); }
  .gcard-note { padding: var(--space-4); }
  .gcard-head .demo-meta { margin-left: 0; }
  .lg-record { padding: var(--space-4); }
  .try-cta .btn { flex: 1 1 100%; justify-content: space-between; }
  
  
  
  
}

/* ===========================================================================
   The grader, to the design of November 3 2026
   (docs/design/public/sample-page-pass-1, built to sample-page.txt).
   Steps 1 and 3 stand at the left, the graded answer at the right; the file
   is a document; the answer sits in a card with the grader's marks on its
   own words and the score at its side; the rationale follows, each line
   marked; then Now you. beside its paragraph, and the live file beside the
   form. Nothing is framed but the documents and the answer. These rules
   come after the older ones above and take over. */
.fig-grader-wrap { padding: 0; background: none; border: 0; border-radius: 0; gap: var(--space-5); }
.fig-grader { padding: 0; background: none; border: 0; border-radius: 0; gap: var(--space-6); }
.fig-grader .figure-head .kicker { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gold-light); }
.fig-grader .figure-head .figure-meta { color: var(--gold-light); }
.fig-grader .figure-head { padding-bottom: var(--space-4); }
.fig-grader .fg-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); grid-template-areas: "a b" "c b"; gap: var(--space-7) var(--space-7); align-items: start; }
.fig-grader .fg-step:nth-child(1) { grid-area: a; }
.fig-grader .fg-step:nth-child(2) { grid-area: b; }
.fig-grader .fg-step:nth-child(3) { grid-area: c; }
.fg-step { gap: var(--space-4); }
.fg-step-head { grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: center; }
.fg-step-head .num-badge { width: 28px; height: 28px; font-size: var(--t-label); }
.fg-step-title { margin: 0; font-family: var(--serif); font-size: var(--t-3); font-weight: 400; line-height: var(--lh-head); color: var(--ink); }
/* a document: the file, and the live file */
.fg-file, .lg-record { display: grid; gap: var(--space-3); max-width: none; padding: var(--space-5); background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-2); box-shadow: 4px 4px 0 var(--surface-2); }
.fg-file .gc-label, .lg-record .gc-label { padding-bottom: var(--space-3); border-bottom: var(--hair) solid var(--rule); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.fg-file ul, .lg-record ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.fg-file li, .lg-record li { padding: 0; font-family: var(--serif); font-size: var(--t-read); line-height: 1.5; color: var(--ink); }
.fg-file li::before, .lg-record li::before { content: none; }
/* the graded answer: labels above, the answer and its score in one card, the rationale under */
.gcard { background: none; border: 0; border-radius: 0; overflow: visible; }
.gcard-head { min-height: 0; padding: 0 0 var(--space-2); background: none; border: 0; gap: var(--space-2) var(--space-5); font-size: var(--t-label); }
.gcard-head .tag { color: var(--gold-light); font-weight: 600; }
.gcard-head .demo-meta { margin-left: 0; color: var(--ink-3); font-weight: 400; }
.gcard-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k k" "t t" "a v" "l l" "r r"; gap: var(--space-4) 0; padding: 0; }
.gcard-body::before { content: ""; grid-row: 3 / span 2; grid-column: 1 / -1; background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-3); }
.gc-kicker { grid-area: k; margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.gc-task { grid-area: t; }
.gc-answer { grid-area: a; position: relative; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-3); }
.gc-answer .gc-label { padding-bottom: var(--space-3); border-bottom: var(--hair) solid var(--rule); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.gc-answer p { position: relative; margin: 0; padding: 0 0 0 var(--space-6); background: none; border: 0; font-family: var(--serif); font-size: var(--t-read); line-height: 1.6; color: var(--ink); max-width: none; }
.gc-answer p::before { position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: var(--r-round); border: var(--hair) solid currentColor; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 700; line-height: 16px; text-align: center; }
.gc-answer p:has(mark.cr)::before { content: "✓"; color: var(--green-bright); }
.gc-answer p:has(mark.rf)::before { content: "×"; color: var(--red-text); }
.gc-answer mark { padding: 1px 2px; border-radius: 2px; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.gc-answer mark.cr { background: color-mix(in srgb, var(--green-bar) 22%, transparent); text-decoration-color: var(--green-bright); }
.gc-answer mark.rf { background: color-mix(in srgb, var(--red) 22%, transparent); text-decoration-color: var(--red-text); text-decoration-style: solid; }
.gc-verdictrow { grid-area: v; position: relative; flex-direction: column; align-items: flex-start; align-self: stretch; justify-content: flex-start; gap: var(--space-2); margin: var(--space-5) var(--space-5) 0 0; padding: var(--space-3) 0 0 var(--space-5); border: 0; border-left: var(--hair) solid var(--rule); }
.gc-score { font-size: var(--t-1); line-height: 1.3; color: var(--accent); }
.gc-vlabel { font-size: var(--t-label); color: var(--ink-3); max-width: 9em; }
.gc-legend { grid-area: l; position: relative; padding: 0 var(--space-5) var(--space-4); }
.gc-legend b, .gc-legend i { text-decoration: none; }
.gc-legend b::before, .gc-legend i::before { content: "✓"; display: inline-block; width: 16px; height: 16px; margin-right: var(--space-1); border: var(--hair) solid currentColor; border-radius: var(--r-round); font-family: var(--sans); font-size: var(--t-label); font-weight: 700; line-height: 14px; text-align: center; vertical-align: -2px; }
.gc-legend b { color: var(--green-bright); }
.gc-legend i { color: var(--red-text); }
.gc-legend i::before { content: "×"; }
.gc-rationale { grid-area: r; padding-top: var(--space-2); }
.gc-rationale .gc-label { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gold-light); }
.gc-rationale p { max-width: none; }
.gc-rationale p::before { width: 18px; height: 18px; border-radius: var(--r-round); border: var(--hair) solid currentColor; font-size: var(--t-label); line-height: 16px; text-align: center; top: .15em; }
.gc-rationale p em, .gc-rationale p q { font-style: italic; }
.gc-rationale p.p-ok em { color: var(--green-bright); }
.gc-rationale p.p-no em { color: var(--red-text); }
/* the score you set */
.gc-override, .fg-step .gc-override { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.fg-step .gc-override p { font-size: var(--t-read); color: var(--ink); }
.gc-override .gc-label { font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.gc-override .lbl { font-weight: 600; color: var(--ink); }
.gc-override .sc { min-width: 44px; min-height: 44px; padding: 0; border: var(--hair) solid var(--rule-strong); border-radius: var(--r-round); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-ui); color: var(--ink-2); }
.gcard-note { padding: var(--space-4) 0 0; border-top: var(--hair) solid var(--rule); font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); color: var(--ink-3); }
/* the live grader: Now you. beside its paragraph, the file beside the form */
.livegrade { background: none; border: 0; border-radius: 0; margin-top: var(--space-7); padding-top: var(--space-7); border-top: var(--hair) solid var(--rule); }
.lg-head { min-height: 0; padding: 0 0 var(--space-3); background: none; border: 0; }
.lg-head .tag { color: var(--gold-light); font-weight: 600; font-size: var(--t-label); }
.lg-head .tag::before { content: none; }
.lg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-areas: "h p" "f form" "f status" "f result"; gap: var(--space-6) var(--space-7); padding: 0; align-items: start; }
.lg-now { grid-area: h; margin: 0; font-family: var(--serif); font-size: var(--t-1); font-weight: 400; line-height: 1; color: var(--ink); }
@media (max-width: 720px) { .lg-now { font-size: var(--t-2); font-weight: 600; line-height: var(--lh-head); } }
.lg-lede { grid-area: p; max-width: none; }
.lg-record { grid-area: f; }
.livegrade .lg-form { grid-area: form; max-width: none; }
.lg-status { grid-area: status; }
.lg-result { grid-area: result; }
.lg-field label { display: block; margin-bottom: var(--space-2); font-size: var(--t-ui); color: var(--ink); }
.lg-field .lg-note.lg-fine { margin-top: var(--space-3); }
@media (max-width: 960px) {
  .fig-grader .fg-steps { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; gap: var(--space-6); }
  .lg-body { grid-template-columns: 1fr; grid-template-areas: "h" "p" "f" "form" "status" "result"; gap: var(--space-5); }
  .gcard-body { grid-template-columns: 1fr; grid-template-areas: "k" "t" "a" "v" "l" "r"; }
  .gcard-body::before { grid-row: 3 / span 3; }
  .gc-verdictrow { flex-direction: row; align-items: baseline; margin: 0 var(--space-5); padding: var(--space-3) 0 0; border-left: 0; border-top: var(--hair) solid var(--rule); }
  .gc-vlabel { max-width: none; }
}

/* The three questions on the question screen (public/_system.css section 9
   draws it). What this page adds under the rows after grading, its legend,
   its scale and the note, is drawn by the older rules above; here the legend
   is let show, the confidence note is set, and the two paragraphs under the
   run are stacked. */
.q-main .optlegend { display: flex; }
.q-main .conf-note { margin: 0; font-family: var(--sans); font-variant-ligatures: no-common-ligatures; font-size: var(--t-label); line-height: 1.45; color: var(--ink-3); }
.q-main .conf-note:empty { display: none; }
.run-notes { display: grid; gap: var(--space-4); max-width: var(--measure); }

/* The six marks on a phone or a tablet: each link is a tap target of at
   least 44px, the box still at the first line of its words. Desktop keeps
   the drawing as it was. */
@media (max-width: 960px) {
  .marks .proof a { min-height: 44px; }
}

/* The jurisdiction picker on where-you-stand: room between its label, its
   box and the note under it, on the phone's smaller type. */
.field-label { display: block; margin-bottom: var(--space-2); }
.ju-cut { margin-top: var(--space-3); }
