/* ASSESSMENTS — placement, the exit exam, the interview drill, the capstone. Namespace as-.
   An examiner's hand on the edition's paper: a red pencil ring round the score, ticks and crosses in the margin of
   the review, and a colophon page for the one who passes. One question at a time is set like a page of a book,
   with the progress pips ruled like the folio. */

.as-page { max-width: 1060px; min-width: 0; }
.as-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.as-k { display: block; margin: 0 0 8px; font: 600 0.6875rem/1.3 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.as-small { margin-top: 12px; font-size: 0.8125rem; }
.as-none { margin: 0; font: italic 1.125rem/1.5 var(--font-serif); color: var(--ink-2); }
.as-none .link { font-style: normal; font-family: var(--font-ui); font-size: 0.875rem; margin-left: 6px; }
/* headings take focus after each repaint so they are read aloud; they are not controls, so no ring */
.as-page [tabindex="-1"]:focus { outline: none; }
/* a tap shows the edition's own press state, not the browser's blue flash */
.as-page label, .as-page button, .as-page a { -webkit-tap-highlight-color: transparent; }
.as-m:active, .as-keys label:active { background: var(--wash); }

/* code inside kit prose */
.as-q code, .as-o code, .as-rv-q code, .as-rv-a code, .as-rv-why code, .as-iv-q code, .as-iv-model code, .as-model code, .as-keys code, .as-m-main code, .as-brief code {
  padding: 1px 5px; background: var(--leaf); border: 1px solid var(--rule-2); border-radius: 3px;
  font: 400 0.8em/1.4 var(--font-data); font-style: normal; letter-spacing: 0; overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* an option made of code reads as plain mono: a chip on every wrapped line is noise */
.as-o code { padding: 0; background: none; border: 0; font-size: 0.84em; }
.as-code { margin: 18px 0 0; padding: 16px 20px; background: var(--leaf); border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: 3px; font: 400 0.875rem/1.65 var(--font-data); letter-spacing: 0; white-space: pre; overflow-x: auto; tab-size: 4; }

/* ---------- the intro: what it is, in numbers ---------- */
.as-facts { display: flex; flex-wrap: wrap; gap: 20px 64px; margin: 0 0 30px; padding: 22px 0 0; border-top: 1px solid var(--ink); }
.as-facts div { display: grid; gap: 8px; align-content: start; }
.as-facts dt { font: 600 0.6875rem/1.3 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.as-facts dd { margin: 0; font: 400 2.875rem/1 var(--font-serif); font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "opsz" 72; }
.as-ready { max-width: 38em; margin: 0 0 30px; padding: 12px 20px; background: var(--leaf); border-left: 3px solid var(--rubric); font: italic 1.125rem/1.45 var(--font-serif); color: var(--ink); }
.as-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }

/* ---------- one question at a time ---------- */
.as-run { max-width: 860px; }
.as-top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.as-top .label { margin: 0; }
.as-count { font: 500 0.75rem/1 var(--font-data); color: var(--ink-3); white-space: nowrap; }
.as-pips { list-style: none; display: flex; gap: 4px; margin: 14px 0 0; padding: 0; }
.as-pips li { flex: 1; height: 3px; background: var(--rule); transform-origin: bottom; transition: background var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-sheet); }
.as-pips li[data-done] { background: var(--ink); }
.as-pips li[data-now] { background: var(--rubric); transform: scaleY(1.7); }
.as-q { margin: 52px 0 30px; font: 400 clamp(1.5625rem, 2.7vw, 2.125rem)/1.28 var(--font-serif); letter-spacing: -0.012em; text-wrap: pretty; font-variation-settings: "opsz" 72; outline: none; animation: as-in var(--dur-scene) var(--ease-out); }
.as-q .as-code { font-size: 0.90625rem; }
@keyframes as-in { from { opacity: 0; transform: translateY(6px); } }
.as-opts { display: grid; border-top: 1px solid var(--ink); }
.as-opt {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 18px; align-items: start; width: 100%;
  padding: 16px 14px 16px 6px; border-bottom: 1px solid var(--rule-2); text-align: left;
  transition: background var(--dur-micro) var(--ease-out);
}
.as-opt:hover { background: var(--leaf); }
.as-opt:active { background: var(--wash); }
.as-l { display: grid; place-items: center; width: 30px; height: 30px; margin-top: -1px; border: 1px solid var(--rule); border-radius: 50%; font: 500 0.8125rem/1 var(--font-serif); color: var(--ink-2); transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro), color var(--dur-micro); }
.as-opt:hover .as-l { border-color: var(--ink); color: var(--ink); }
.as-o { min-width: 0; padding-top: 2px; font: 400 1.1875rem/1.45 var(--font-serif); }
.as-opt kbd { margin-top: 5px; opacity: 0.55; transition: opacity var(--dur-micro); }
.as-opt:hover kbd, .as-opt:focus-visible kbd { opacity: 1; }
.as-opt[aria-pressed="true"] { background: var(--wash); }
.as-opt[aria-pressed="true"] .as-l { background: var(--rubric); border-color: var(--rubric); color: var(--leaf); }
.as-idk { margin-top: 14px; border-top: 1px solid var(--rule-2); }
.as-idk .as-o { font-style: italic; color: var(--ink-2); }
.as-idk .as-l { font-style: italic; }
.as-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.as-foot .as-hint { flex: 1; margin: 0; text-align: center; }
.as-page .quiet-btn kbd { border-color: var(--rule); color: var(--ink-3); }
.as-hint { font-size: 0.8125rem; color: var(--ink-3); }
.as-write { display: grid; }
.as-ans.autosize { padding: 16px 18px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 3px; font: 400 1.1875rem/1.55 var(--font-serif); color: var(--ink); min-height: calc(1.55em * 4 + 34px); max-height: calc(1.55em * 14 + 34px); transition: border-color var(--dur-state), box-shadow var(--dur-state); }
.as-ans.autosize:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--wash); }
.as-ans::placeholder { color: var(--ink-3); font-style: italic; }
.as-write .as-hint { margin: 10px 0 0; }
/* a figure and a red pen on the question page: marks.js draws them (mk-), set a size up for the page */
.as-fig, .as-flaw { max-width: 44em; }
.as-run .mk-lab { font-size: 1.0625rem; }
.as-run .mk-in { height: 40px; font-size: 1.0625rem; }
.as-run .mk-line { font-size: 1.125rem; }
.as-run .mk-pass.is-code .mk-line { font-size: 0.875rem; }
.as-fl-n { margin: 12px 0 0; font-variant-numeric: tabular-nums; }

/* ---------- the verdict: the mark, ringed in red pencil ---------- */
.as-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 64px; align-items: center; margin: 4px 0 64px; }
.as-mark { display: flex; align-items: baseline; gap: 0.22em; margin: 0; padding: 0 0 0 0.16em; font: 400 clamp(6.5rem, 12vw, 10.75rem)/0.86 var(--font-serif); letter-spacing: -0.035em; font-variation-settings: "opsz" 72, "SOFT" 30; font-variant-numeric: lining-nums; white-space: nowrap; }
.as-big { position: relative; padding: 0 0.04em; }
.as-of { font-size: 0.26em; letter-spacing: 0; color: var(--ink-3); }
.as-ring { position: absolute; left: -0.2em; top: -0.13em; width: calc(100% + 0.4em); height: calc(100% + 0.28em); overflow: visible; pointer-events: none; }
.as-ring path { fill: none; stroke: var(--rubric); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0.9; animation: as-draw 900ms var(--ease-sheet) 240ms forwards; }
@keyframes as-draw { to { stroke-dashoffset: 0; } }
.as-v-txt .label { margin-bottom: 10px; }
.as-v-h { margin: 0; font: 400 clamp(1.875rem, 3.2vw, 2.75rem)/1.08 var(--font-serif); letter-spacing: -0.015em; font-variation-settings: "opsz" 72; text-wrap: balance; outline: none; }
.as-v-can { max-width: 34em; margin: 12px 0 0; font: italic 400 clamp(1.125rem, 1.5vw, 1.3125rem)/1.45 var(--font-serif); color: var(--ink-2); text-wrap: pretty; }
.as-v-sum { margin: 14px 0 0; font: 500 0.75rem/1.4 var(--font-data); color: var(--ink-3); }
/* placement: what confirms the suggestion, and the first quiz that does */
.as-v-conf { max-width: 34em; margin: 14px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.as-v-conf .link { white-space: nowrap; }
/* a quiet line where a count is still loading: nothing is guessed in its place */
.as-checking { margin: 0 0 48px; font-size: 0.9375rem; color: var(--ink-3); }
.block .as-checking { margin: 0; }

/* placement: a suggestion said in words, and the coach's next step as its one button */
.as-place .as-v-h { margin-top: 2px; }
.as-place .as-go { margin-top: 26px; }
.as-skips { list-style: none; margin: 0; padding: 0; }
.as-skips a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.as-skips li:first-child a { padding-top: 2px; }
.as-skips span { font: 400 1.25rem/1 var(--font-serif); color: var(--rubric); font-variant-numeric: lining-nums; }
.as-skips b { font: 400 1.1875rem/1.3 var(--font-serif); transition: color var(--dur-micro); }
.as-skips i { font: 0.75rem/1 var(--font-data); font-style: normal; color: var(--ink-3); white-space: nowrap; }
.as-skips a:hover b { color: var(--rubric); }

/* the review: every question, with a mark in the margin */
.as-review { list-style: none; margin: 0; padding: 0; }
.as-rv { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--rule-2); }
.as-rv:first-child { padding-top: 8px; }
.as-rv-m { font: 400 1.625rem/1 var(--font-serif); text-align: center; }
.as-rv[data-mark="ok"] .as-rv-m, .as-rv[data-mark="ok"] .as-rv-v { color: var(--verdigris); }
.as-rv[data-mark="no"] .as-rv-m, .as-rv[data-mark="no"] .as-rv-v { color: var(--rubric); }
.as-rv[data-mark="half"] .as-rv-m, .as-rv[data-mark="half"] .as-rv-v { color: var(--ink-2); }
.as-rv-body { min-width: 0; }
.as-rv-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; font: 0.75rem/1.4 var(--font-data); color: var(--ink-3); }
.as-rv-v { font: 600 0.65625rem/1.4 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.as-rv-meta .link { font-family: var(--font-ui); font-size: 0.78125rem; }
/* a long identifier in a key wraps, and a code block scrolls in its own box, so the page never scrolls sideways */
.as-rv-q, .as-rv-a, .as-rv-why, .as-v-can, .as-lvs b, .as-skips b, .as-lvs-ls { overflow-wrap: anywhere; }
.as-rv-q { font: 400 1.25rem/1.42 var(--font-serif); text-wrap: pretty; }
.as-rv-q .as-code { margin-top: 12px; font-size: 0.8125rem; padding: 12px 16px; }
.as-rv-a { margin: 12px 0 0; font: 1.0625rem/1.5 var(--font-serif); }
.as-rv-a > span { display: block; margin-bottom: 3px; font: 600 0.65625rem/1.3 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.as-rv-a b { font-weight: 600; }
.as-rv-why { max-width: 44em; margin: 6px 0 0; font: italic 1rem/1.5 var(--font-serif); color: var(--ink-2); }
/* a red pen's key: each faulty line, its number in rubric, its note */
.as-rv-fl { margin: 2px 0 0; padding: 0; list-style: none; }
.as-rv-fl li { display: grid; justify-items: start; gap: 3px; padding: 7px 0; border-bottom: 1px solid var(--rule-2); }
.as-rv-fl li:last-child { border-bottom: 0; }
.as-rv-fl b { font: 500 0.71875rem/1.3 var(--font-data); color: var(--rubric); }
.as-rv-fl q { quotes: none; }
.as-rv-fl i { font: italic 1rem/1.5 var(--font-serif); color: var(--ink-2); }
/* the key of a passed sitting folds; open on a desk, shut on a phone, so what comes next is not 20 questions down */
details.as-fold > summary { display: flex; align-items: baseline; gap: 10px; list-style: none; cursor: pointer; }
details.as-fold > summary::-webkit-details-marker { display: none; }
details.as-fold > summary .label { margin: 0; }
details.as-fold > summary span { font: 0.75rem/1 var(--font-data); color: var(--ink-3); }
details.as-fold > summary::after { content: "+"; margin-left: auto; font: 500 0.9375rem/1 var(--font-data); color: var(--rubric); }
details.as-fold[open] > summary::after { content: "\2212"; }
details.as-fold[open] > summary { margin-bottom: 14px; }
details.as-fold > summary:hover .label { color: var(--ink); }
details.as-fold > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.as-again { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 0; }
.as-later { font: italic 1.1875rem/1.4 var(--font-serif); color: var(--ink); }

/* what the certificate still needs */
.as-need { margin-bottom: 64px; }
.as-need-next { margin: 14px 0 0; font-size: 0.875rem; }

/* exam: by level */
.as-levels { list-style: none; margin: 0; padding: 0; }
.as-levels li { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(90px, 220px) 72px 44px; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.as-lv-n { font: 400 1.25rem/1 var(--font-serif); color: var(--ink-3); font-variant-numeric: lining-nums; }
.as-lv-t { font: 400 1.125rem/1.3 var(--font-serif); }
.as-bar { height: 3px; background: var(--rule-2); }
.as-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: as-grow var(--dur-scene) var(--ease-out) both; }
@keyframes as-grow { from { transform: scaleX(0); } }
.as-levels [data-weak] .as-bar i { background: var(--rubric); }
.as-levels [data-weak] .as-lv-n { color: var(--rubric); }
.as-lv-f { font: 0.75rem/1 var(--font-data); color: var(--ink-3); text-align: right; white-space: nowrap; }
.as-lv-w { font: 600 0.65625rem/1 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rubric); }

/* levels to work on: the level by name, and the lessons that teach it. No counts, no stamps */
.as-lvs { list-style: none; margin: 0; padding: 0; }
.as-lvs li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.as-lvs li:first-child { padding-top: 2px; }
.as-lvs span { font: 400 1.25rem/1 var(--font-serif); color: var(--rubric); font-variant-numeric: lining-nums; }
.as-lvs b { font: 400 1.1875rem/1.3 var(--font-serif); }
.as-lvs-ls { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.45; }

/* exam: marking your own written answers */
.as-marks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.as-mk { padding: 26px 0 28px; border-bottom: 1px solid var(--rule-2); }
.as-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin: 18px 0 0; }
.as-yours, .as-model { margin: 0; padding: 14px 16px; font: 1.03125rem/1.55 var(--font-serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.as-yours { background: var(--leaf); border-left: 2px solid var(--ink); }
.as-model { background: var(--leaf); border-left: 2px solid var(--verdigris); white-space: normal; }
.as-keys { display: grid; gap: 2px; margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.as-keys legend { padding: 0; }
.as-keys label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; font: 1rem/1.45 var(--font-serif); cursor: pointer; }
.as-grade { display: inline-flex; margin-top: 16px; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.as-grade button { padding: 10px 18px; font: 500 0.84375rem/1 var(--font-ui); color: var(--ink-2); border-right: 1px solid var(--rule); transition: background var(--dur-micro), color var(--dur-micro); }
.as-grade button:last-child { border-right: 0; }
.as-grade button:hover { background: var(--leaf); color: var(--ink); }
.as-grade button[aria-pressed="true"] { background: var(--ink); color: var(--leaf); }
.as-grade button:disabled { color: var(--ink-4); background: none; cursor: not-allowed; }
.as-mark-foot .as-hint { text-align: left; }

/* the checkbox of the edition: an inked square, ticked in paper */
.as-keys input, .as-m input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--ink-3); border-radius: 2px;
  background: var(--paper) center / 13px no-repeat; cursor: pointer; transition: background-color var(--dur-micro), border-color var(--dur-micro);
}
.as-keys input:hover, .as-m:hover input { border-color: var(--ink); }
.as-keys input:checked, .as-m input:checked {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.6l3.1 3L13 4.4' fill='none' stroke='%23faf7f1' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- the colophon: the certificate, set like the last page of a fine book ---------- */
.as-colophon { display: grid; justify-items: center; gap: 22px; margin: 0 0 72px; }
.as-sheet {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 520px); aspect-ratio: 1 / 1.414;
  padding: 56px 44px; background: var(--leaf); border: 1px solid var(--rule-2); text-align: center;
  box-shadow: 0 1px 0 var(--rule), 0 40px 70px -44px rgba(27, 25, 22, 0.6);
}
.as-c-k { margin: 0 0 48px; font: 600 0.65625rem/1 var(--font-ui); letter-spacing: 0.32em; text-transform: uppercase; color: var(--rubric); }
.as-c-name { display: block; width: min(100%, 340px); }
.as-c-name input { width: 100%; padding: 4px 0 8px; background: transparent; border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0; text-align: center; font: italic 400 1.75rem/1.25 var(--font-serif); color: var(--ink); outline: none; transition: border-color var(--dur-state); }
.as-c-name input::placeholder { color: var(--ink-3); }
.as-c-name input:focus-visible { border-bottom-color: var(--rubric); }
.as-c-l { margin: 20px 0 0; font: italic 400 1.0625rem/1.55 var(--font-serif); color: var(--ink-2); }
.as-c-t { margin: 16px 0 0; font: 500 2.375rem/1.05 var(--font-serif); font-variant-caps: all-small-caps; letter-spacing: 0.07em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.as-c-s { margin: 8px 0 0; font: italic 0.9375rem/1.4 var(--font-serif); color: var(--ink-3); }
.as-c-rule { width: 54px; margin: 40px 0 20px; border: 0; border-top: 1.5px solid var(--rubric); }
.as-c-mark { margin: 0; font: 500 0.875rem/1 var(--font-serif); letter-spacing: 0.34em; text-transform: uppercase; padding-left: 0.34em; }
.as-c-fine { max-width: 26em; margin: 12px 0 0; font: italic 0.78125rem/1.5 var(--font-serif); color: var(--ink-3); }
.as-c-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin: 0; }

/* ---------- the interview drill ---------- */
.as-iv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.as-iv-prog { margin: 0; font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.as-iv-prog b { font: 500 0.8125rem/1 var(--font-data); color: var(--rubric); }
.as-tally { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; padding: 0; }
.as-tally li { width: 18px; height: 4px; background: var(--rule-2); transition: background var(--dur-state); }
.as-tally li[data-r="0"] { background: var(--rubric); }
.as-tally li[data-r="1"] { background: var(--ink-3); }
.as-tally li[data-r="2"] { background: var(--verdigris); }
.as-tally li[data-now] { box-shadow: 0 3px 0 -1px var(--ink); }
.as-iv-card { display: grid; justify-items: center; max-width: 840px; margin: 72px auto 0; text-align: center; }
.as-iv-card .label { margin: 0; }
.as-iv-q { margin: 18px 0 0; font: 300 clamp(1.875rem, 3.7vw, 2.875rem)/1.2 var(--font-serif); letter-spacing: -0.01em; font-variation-settings: "opsz" 72; text-wrap: balance; outline: none; animation: as-in var(--dur-scene) var(--ease-out); }
.as-iv-say { margin: 20px 0 0; font: 0.875rem/1.4 var(--font-ui); color: var(--ink-3); }
.as-iv-say[hidden], .as-iv-model[hidden], .as-iv-act [hidden] { display: none; }
.as-iv-model { width: 100%; max-width: 40em; margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); text-align: left; outline: none; animation: as-in var(--dur-state) var(--ease-out); }
.as-iv-model .label { margin-bottom: 10px; }
.as-iv-model p:last-child { margin: 0; font: 1.1875rem/1.62 var(--font-serif); text-wrap: pretty; }
.as-iv-act { display: grid; justify-items: center; gap: 12px; margin-top: 36px; }
/* rated, a card with follow-ups stays: the rating holds in place, and the chain (marks.js) opens under it */
.as-iv .grades button:disabled { cursor: default; }
.as-iv .grades button[aria-pressed="true"]:disabled { opacity: 1; border-color: var(--ink); background: var(--wash); }
.as-iv[data-steady] .as-iv-q, .as-iv[data-steady] .as-iv-model { animation: none; }
.as-iv-probe { width: 100%; max-width: 40em; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ink); text-align: left; scroll-margin: calc(var(--mast-h, 0px) + 16px) 0 24px; }
.as-iv-probe > .label { margin: 0 0 16px; }
.as-iv-on { margin-top: 28px; }
/* a card whose follow-ups are all answered gets a second hairline over its tick */
.as-tally li { position: relative; }
.as-tally li[data-p]::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 1px; background: var(--ink-2); }

/* ---------- the capstone ---------- */
.as-cap .page-head { max-width: 820px; }
.as-brief p { max-width: 38em; margin: 18px 0 0; font: 400 clamp(1.1875rem, 1.6vw, 1.375rem)/1.5 var(--font-serif); color: var(--ink-2); text-wrap: pretty; font-variation-settings: "opsz" 24; }
.as-brief p + p { margin-top: 12px; font-size: 1.125rem; color: var(--ink-3); }
.as-sum { margin: 24px 0 0; font-size: 0.875rem; color: var(--ink-3); }
.as-sum b { font: 500 0.9375rem/1 var(--font-data); color: var(--rubric); }
.as-ms { list-style: none; margin: 0; padding: 0; }
.as-m { display: grid; grid-template-columns: 20px 26px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 6px 18px 0; border-bottom: 1px solid var(--rule-2); cursor: pointer; transition: background var(--dur-micro); }
.as-ms li:first-child .as-m { padding-top: 6px; }
.as-m:hover { background: var(--leaf); }
.as-m:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.as-m input:focus-visible { outline: none; }
.as-m-n { padding-top: 4px; font: 500 0.75rem/1 var(--font-data); color: var(--rubric); }
.as-m-main { min-width: 0; }
.as-m-main b { display: block; font: 400 1.3125rem/1.3 var(--font-serif); transition: color var(--dur-micro); }
.as-m-main > span { display: block; max-width: 62ch; margin-top: 4px; font: 1rem/1.5 var(--font-serif); color: var(--ink-2); }
.as-m-meta { display: grid; justify-items: end; gap: 6px; padding-top: 4px; font: 0.75rem/1.2 var(--font-data); color: var(--ink-3); white-space: nowrap; }
.as-m-done { color: var(--verdigris); }
.as-m-done:empty, .as-m-proof:empty { display: none; }
.as-m-main > .as-m-proof { margin-top: 8px; font: 0.78125rem/1.45 var(--font-data); color: var(--ink-3); overflow-wrap: anywhere; }
.as-m:has(input:disabled) { cursor: default; }
.as-m:has(input:disabled):hover { background: none; }
.as-m input:disabled { opacity: 0.45; cursor: default; }
#asGate[hidden] { display: none; }
.as-ev { padding: 4px 0 20px 38px; border-bottom: 1px solid var(--rule-2); }
.as-ev[hidden] { display: none; }
.as-ms li:has(.as-ev:not([hidden])) .as-m { border-bottom: 0; }
.as-link { max-width: 760px; }
.as-link-row { display: flex; gap: 10px; }
.as-link-row input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 3px; font: 400 0.875rem/1 var(--font-data); color: var(--ink); outline: none; transition: border-color var(--dur-state), box-shadow var(--dur-state); }
.as-link-row input:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px var(--wash); }
.as-link-row input[aria-invalid="true"] { border-color: var(--rubric); }
.as-link-row input::placeholder { color: var(--ink-3); }
.as-link-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 0.84375rem; color: var(--ink-3); }
.as-link-msg[data-bad] { color: var(--rubric); }
.as-rub-lede { margin: -4px 0 22px; font-size: 0.875rem; color: var(--ink-3); }
.as-crit { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
.as-crit legend { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0 0 10px; }
.as-crit legend b { font: 400 1.375rem/1.2 var(--font-serif); }
.as-crit-v { margin-left: auto; font: 0.75rem/1 var(--font-data); color: var(--ink-3); white-space: nowrap; }
.as-crit-v b { font: 500 0.8125rem/1 var(--font-data); color: var(--rubric); }
.as-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.as-band { position: relative; display: grid; align-content: start; gap: 8px; padding: 14px 16px 16px; border-right: 1px solid var(--rule-2); cursor: pointer; transition: background var(--dur-micro); }
.as-band:last-child { border-right: 0; }
.as-band input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.as-band-n { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--rule); border-radius: 50%; font: 500 0.71875rem/1 var(--font-data); color: var(--ink-3); transition: background var(--dur-micro), color var(--dur-micro), border-color var(--dur-micro); }
.as-band-t { font: 0.9375rem/1.45 var(--font-serif); color: var(--ink-3); transition: color var(--dur-micro); }
.as-band:hover { background: var(--leaf); }
.as-band:hover .as-band-t { color: var(--ink-2); }
.as-band:has(input:checked) { background: var(--wash); box-shadow: inset 0 -2px 0 var(--rubric); }
.as-band:has(input:checked) .as-band-n { background: var(--rubric); border-color: var(--rubric); color: var(--leaf); }
.as-band:has(input:checked) .as-band-t { color: var(--ink); }
.as-band:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }

/* empty: a page still being written */
.as-empty .page-head { margin-bottom: 36px; }

/* ---------- print: only the colophon, alone on its page ---------- */
@media print {
  body:has(.as-colophon) { padding: 0 !important; }
  body:has(.as-colophon) > :not(main) { display: none !important; }
  .page:has(> .as-colophon) { max-width: none; padding: 0 !important; }
  .page:has(> .as-colophon) > :not(.as-colophon), .as-c-act, .as-cap-next { display: none !important; }
  .as-colophon { display: block; margin: 0; }
  .as-sheet { width: 100%; height: 240mm; aspect-ratio: auto; padding: 0; background: none; border: 0; box-shadow: none; break-inside: avoid; }
  .as-c-name input::placeholder { color: transparent; }
  .as-c-name input { border-bottom-color: var(--ink-2); }
  .as-c-t { font-size: 2.75rem; }
}

/* ---------- narrower ---------- */
@media (max-width: 760px) {
  .as-facts { gap: 18px 36px; }
  .as-facts dd { font-size: 2.25rem; }
  .as-q { margin: 34px 0 24px; }
  .as-opt { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-right: 6px; }
  .as-opt kbd, .as-foot .as-hint { display: none; }
  .as-foot { justify-content: space-between; }
  .as-verdict { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-bottom: 48px; }
  .as-mark { font-size: 6.5rem; }
  .as-rv { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
  .as-rv-m { font-size: 1.375rem; }
  .as-levels li { grid-template-columns: 22px minmax(0, 1fr) 64px; gap: 6px 12px; }
  .as-levels .as-bar { grid-column: 2; grid-row: 2; }
  .as-levels .as-lv-w { grid-column: 3; grid-row: 1; justify-self: end; }
  .as-levels .as-lv-f { grid-column: 3; grid-row: 2; }
  .as-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .as-sheet { padding: 40px 24px; }
  .as-c-k { margin-bottom: 32px; }
  .as-c-name input { font-size: 1.5rem; }
  .as-c-t { font-size: 1.875rem; }
  .as-c-rule { margin: 28px 0 16px; }
  .as-iv-card { margin-top: 44px; }
  .as-iv-act .grades { width: 100%; }
  .as-m { grid-template-columns: 20px minmax(0, 1fr); gap: 6px 14px; }
  .as-m-n { display: none; }
  .as-m-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 14px; padding-top: 0; }
  .as-link-row { flex-direction: column; }
  .as-link-row input { flex: none; }   /* in a column, flex: 1 would collapse it to its text */
  .as-ev { padding-left: 34px; }
  .as-link-row .btn { justify-content: center; }
  .as-bands { grid-template-columns: minmax(0, 1fr); }
  .as-band { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .as-band:last-child { border-bottom: 0; }
}
@media (hover: none) { .as-page kbd, .as-kb, .as-run .as-foot .as-hint { display: none; } }   /* no keyboard to press them on */
@media (pointer: coarse) {
  .as-page .btn, .as-link-row input { height: 44px; }
  .as-grade button, .as-iv .filters button, .as-skips a, details.as-fold > summary { min-height: 44px; }
  details.as-fold > summary { align-items: center; }
  .as-keys label { min-height: 44px; align-items: center; }
  .as-keys input { margin-top: 0; }
  .as-page a.link { display: inline-block; padding: 13px 0; margin: -13px 0; }
  .as-lvs-ls a.link { display: flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }   /* stacked links: full rows, no overlapping pads */
}
@media (prefers-reduced-motion: reduce) {
  .as-q, .as-iv-q, .as-iv-model, .as-bar i { animation: none; }
  .as-ring path { animation: none; stroke-dashoffset: 0; }
  .as-pips li { transition: none; }
}
