* { box-sizing: border-box; } body { margin:0; background:var(--ground); color:var(--ink); font:var(--text-md)/var(--lh-md) var(--font-text); } input { accent-color:var(--live); } button,input,textarea { font:inherit; color:inherit; } button { cursor:pointer; border:1px solid var(--line-strong); background:var(--surface); border-radius:var(--r-2); padding:9px 16px; min-height:44px; transition:background var(--dur-1) var(--ease); } button:hover { background:var(--sunk); } button:disabled,button[aria-disabled=true] { cursor:default; opacity:.55; } button:focus-visible,a:focus-visible,textarea:focus-visible { outline:2px solid var(--live); outline-offset:4px; } a { color:var(--live-ink); } h1,h2,h3,p { margin-top:0; } h1 { font:400 clamp(36px,4.2vw,58px)/1.08 var(--font-editorial); max-width:15ch; letter-spacing:-.025em; margin-bottom:24px; } h2 { font:400 26px/32px var(--font-text); margin-bottom:16px; } h3 { font-size:17px; font-weight:500; } p { max-width:65ch; } strong { font-weight:500; } header { height:88px; padding:0 40px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line-strong); } .wordmark { color:var(--ink); font:400 32px/36px var(--font-editorial); text-decoration:none; } .wordmark span { font:12px/16px var(--font-mono); color:var(--ink-2); margin-left:12px; } .eyebrow { font:12px/16px var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); margin-bottom:20px; } .page { display:grid; grid-template-columns:256px minmax(0,1fr); max-width:1560px; margin:auto; min-height:calc(100vh - 160px); } .course-rail { padding:40px 24px; border-right:1px solid var(--line-strong); } .rail-title { font:26px/32px var(--font-editorial); margin-bottom:40px; } nav { display:grid; gap:8px; } nav button { text-align:left; padding:12px 4px; display:flex; gap:12px; border:0; background:transparent; font-size:14px; line-height:20px; } nav button span { color:var(--ink-2); font-family:var(--font-mono); } nav button[aria-current=step] { color:var(--live-ink); background:var(--live-soft); padding-left:12px; } .rail-note { color:var(--ink-2); font-size:12px; line-height:20px; margin-top:48px; } #storage { font-size:12px; line-height:20px; } main:focus { outline:none; } main { padding:44px 48px 64px; min-width:0; } .lede { font-size:17px; line-height:27px; color:var(--ink-2); margin-bottom:28px; max-width:58ch; } .strip { display:flex; gap:24px; border-block:1px solid var(--line-strong); padding:16px 0; margin:28px 0; font:12px/20px var(--font-mono); color:var(--ink-2); } iframe { display:block; width:100%; height:570px; border:1px solid var(--line-strong); border-radius:8px; margin:24px 0; background:var(--ground); } .primary { background:var(--ink); color:var(--surface); border-color:var(--ink); } .primary:hover { background:var(--ink-2); } .actions { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; align-items:center; } .quiet-button { background:transparent; font-size:14px; } .text-button { border:0; background:transparent; padding:4px 0; text-decoration:underline; font-size:14px; } .note { color:var(--ink-2); font-size:var(--text-md); line-height:var(--lh-md); } .contract { border-block:1px solid var(--line-strong); margin:24px 0; padding:20px 0; } .contract li { padding:3px 0; } .contract code,pre,textarea,.mono { font-family:var(--font-mono); font-variant-numeric:tabular-nums; } code { font-size:.87em; } details { margin:16px 0; } summary { cursor:pointer; font-size:14px; min-height:44px; padding:10px 0; } pre { font-size:12px; line-height:20px; overflow:auto; max-height:300px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:4px; } .editor-head { display:flex; justify-content:space-between; align-items:center; border:1px solid var(--line-strong); border-bottom:0; padding:12px 16px; background:var(--surface); font-size:12px; } .editor { display:block; width:100%; min-height:310px; resize:vertical; border:1px solid var(--line-strong); border-radius:0 0 4px 4px; padding:20px; font-size:14px; line-height:24px; tab-size:2; background:var(--surface); } .status { font-size:14px; min-height:24px; margin:16px 0; } .score { display:flex; align-items:baseline; gap:12px; border-top:1px solid var(--line-strong); padding-top:24px; margin-top:24px; } .score .big { font:400 32px/36px var(--font-mono); } .good { color:var(--pass); } .bad { color:var(--fail); } .case { border-bottom:1px solid var(--line); margin:0; } .case summary { display:flex; justify-content:space-between; gap:16px; } .case summary span:first-child { flex:1; } .badge { font:12px/20px var(--font-mono); } .feedback { font-size:var(--text-md); line-height:var(--lh-md); margin-bottom:16px; } .reason { display:block; width:100%; min-height:100px; margin:8px 0 16px; padding:12px; border:1px solid var(--line-strong); background:var(--surface); border-radius:4px; font-family:var(--font-text); font-size:14px; line-height:20px; } .check-label { display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:20px; margin:16px 0; } .check-label input { margin-top:4px; } .review-grid { display:grid; grid-template-columns:1fr 1fr; border-block:1px solid var(--line-strong); margin:24px 0; } .review-grid > div { padding:24px 16px 24px 0; } .review-grid > div+div { border-left:1px solid var(--line-strong); padding-left:24px; } .review-grid p { margin:0; } .saved-state { font:12px/20px var(--font-mono); color:var(--ink-2); } footer { display:flex; justify-content:space-between; gap:16px; padding:20px 40px; border-top:1px solid var(--line-strong); font-size:12px; color:var(--ink-2); } dialog { width:min(660px,calc(100% - 32px)); border:1px solid var(--line-strong); padding:32px; background:var(--ground); color:var(--ink); } dialog::backdrop { background:rgb(41 51 45 / .2); } dialog form { text-align:right; margin-bottom:20px; } .skip { position:absolute; top:-70px; padding:12px; background:white; } .skip:focus { top:8px; } [hidden] { display:none!important; } @media(max-width:1000px) { .page { grid-template-columns:210px minmax(0,1fr); } main { padding:32px 24px; } .course-rail { padding:32px 16px; } } @media(max-width:760px) { header { height:72px; padding:0 16px; } .wordmark span { display:none; } .page { display:block; } .course-rail { padding:16px; border-right:0; border-bottom:1px solid var(--line-strong); } .course-rail > p { display:none; } .course-rail #storage:not(:empty) { display:block; margin:12px 0 0; } nav { display:flex; overflow:auto; gap:8px; } nav button { flex:none; padding:8px; } nav button:not([aria-current=step]) { font-size:0; gap:0; } nav button span { font-size:12px; } main { padding:28px 16px 40px; } h1 { font-size:38px; } .strip { gap:16px; flex-wrap:wrap; } .editor { font-size:12px; line-height:20px; padding:12px; } .review-grid { grid-template-columns:1fr; } .review-grid > div+div { border-left:0; border-top:1px solid var(--line-strong); padding-left:0; } footer { padding:16px; display:block; } footer button { display:block; } } @media(prefers-reduced-motion:reduce) { * { transition:none!important; } }
/* Launch additions: the opening brief, the method rail, the method notes per stage, and stage 05. */
.brief { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:10px 24px; margin:0 0 24px; padding:20px 24px; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface); font-size:14px; line-height:20px; }
.brief dt { font:12px/20px var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); }
.brief dd { margin:0; max-width:65ch; }
.brief .not-covered { margin:0; padding-left:18px; }
.eval-builds-on { margin:8px 0 0; }
.method-note { font-size:var(--text-md); line-height:var(--lh-md); color:var(--ink-2); border-left:2px solid var(--live); padding-left:12px; margin:0 0 24px; max-width:65ch; }
.method-title { margin:40px 0 8px; }
.method { list-style:none; margin:0; padding:0; display:grid; gap:4px; font-size:12px; line-height:18px; color:var(--ink-2); }
.method li { display:flex; gap:8px; padding:4px 6px; border-radius:4px; }
.method li span:first-child { font-family:var(--font-mono); flex:none; }
.method li[aria-current] { color:var(--live-ink); background:var(--live-soft); }
.misses { font-family:var(--font-mono); font-size:12px; color:var(--fail); }
.proof-list { padding-left:20px; margin:0 0 28px; max-width:65ch; }
.proof-list li { margin-bottom:8px; }
.takeaway { padding-left:24px; margin:0 0 8px; max-width:65ch; font-size:16px; line-height:24px; }
.takeaway li { margin-bottom:6px; }
.table-scroll { overflow-x:auto; margin:8px 0 28px; }
.bridge,.rubric { width:100%; min-width:640px; border-collapse:collapse; font-size:14px; line-height:20px; }
.bridge th,.bridge td,.rubric th,.rubric td { text-align:left; vertical-align:top; padding:12px 16px 12px 0; border-bottom:1px solid var(--line); }
.bridge thead th,.rubric thead th { font:12px/16px var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); padding-bottom:8px; }
.bridge tbody th,.rubric tbody th { font-weight:500; width:22%; }
.bridge tbody td:nth-child(2) { color:var(--ink-2); }
.design-section,.own-section,.rubric-section,.bridge-section,.feedback-route { border-top:1px solid var(--line-strong); padding-top:24px; margin-top:32px; }
.design-field { display:block; margin:20px 0; }
.design-field > span { display:block; font-weight:500; margin-bottom:4px; }
.design-field small { display:block; color:var(--ink-2); font-size:14px; line-height:20px; margin-bottom:8px; max-width:65ch; }
.design-field textarea { display:block; width:100%; min-height:88px; padding:12px; border:1px solid var(--line-strong); border-radius:4px; background:var(--surface); font-family:var(--font-text); font-size:14px; line-height:20px; resize:vertical; }
.design-field .own-cases { min-height:220px; font-family:var(--font-mono); font-size:12px; line-height:20px; }
.design-field .own-editor { min-height:200px; border-radius:4px; }
.design-field .own-editor { font-family:var(--font-mono); }
/* A course is a place to work. Keep the first decision ahead of reference prose. */
header { height:72px; }
.page { grid-template-columns:240px minmax(0,1fr); }
.course-rail { padding:32px 20px; }
.rail-title { margin-bottom:24px; }
.rail-note { margin-top:32px; }
main { padding:36px 40px 64px; }
h1 { font-size:clamp(36px,3.6vw,48px); max-width:20ch; margin-bottom:16px; }
.lede { margin-bottom:20px; }
.method-note { margin-bottom:16px; }
.eval-context { margin:16px 0 24px; max-width:76ch; }
.eval-purpose { border-left:2px solid var(--live); padding-left:12px; font-size:var(--text-md); line-height:var(--lh-md); margin:0; }
.eval-reference { margin:4px 0 0; }
.eval-reference > summary { color:var(--live-ink); }
.eval-reference > p { font-size:14px; line-height:20px; }
.eval-map { display:flex; flex-wrap:wrap; gap:8px 28px; margin:12px 0; padding:0; list-style:none; }
.eval-map li { position:relative; }
.eval-map li:not(:last-child)::after { content:'→'; position:absolute; right:-20px; top:50%; transform:translateY(-50%); color:var(--ink-2); }
.eval-map-caption { margin:16px 0 0; }
.eval-map button { display:flex; align-items:center; gap:12px; text-align:left; font-size:14px; padding:12px; }
.eval-map button .mono { color:var(--ink-2); font-size:12px; }
.eval-map button[aria-pressed=true] { background:var(--live-soft); border-color:var(--live); color:var(--live-ink); }
.eval-map-detail { padding:20px; border:1px solid var(--line-strong); border-radius:var(--r-2); background:var(--surface); }
.eval-map-detail h2 { font-size:var(--text-md); line-height:var(--lh-md); font-weight:500; margin-bottom:12px; }
.eval-map-detail p { font-size:var(--text-md); line-height:var(--lh-md); margin-bottom:12px; }
.eval-map-detail .eval-example { border-left:2px solid var(--line-strong); padding-left:12px; }
.eval-map-detail p:last-child { margin-bottom:0; }
@media(max-width:480px) { .eval-map-detail { padding:16px; } }
.contract-reference { margin:16px 0; }
.contract-reference > summary { font-weight:500; }
.contract-reference .contract { margin:0; border-top:0; }
.score { flex-wrap:wrap; }
.score .big { flex:none; white-space:nowrap; }
.score .misses { flex-basis:100%; }
.evidence-strip { display:flex; flex-wrap:wrap; border:1px solid var(--line-strong); margin:24px 0; background:var(--surface); }
.evidence-strip > div { flex:1 1 180px; padding:16px; border-inline-end:1px solid var(--line); }
.evidence-strip .eyebrow { display:block; margin-bottom:8px; }
.evidence-strip p { margin:0; font:14px/24px var(--font-mono); }
.workspace-dialog { max-height:calc(100dvh - 32px); overflow:auto; }
.workspace-dialog input[type=file] { display:block; width:100%; margin:16px 0; }
.workspace-dialog button { margin:4px; }
.workspace-dialog .status { overflow-wrap:anywhere; }
.design-section { margin-top:24px; }
.design-field { margin:24px 0; }
.design-field > span { font-weight:500; }
.method-title,.method { max-width:190px; }
@media(max-width:1000px) { .page { grid-template-columns:210px minmax(0,1fr); } main { padding:28px 24px 48px; } }
@media(max-width:760px) {
  .page { display:block; }
  header { height:64px; }
  .course-rail { padding:12px 16px; }
  .course-rail #storage:not(:empty) { font-size:12px; margin:8px 0 0; }
  nav button:not([aria-current=step]) { font-size:14px; gap:8px; }
  nav button { padding:8px 12px; font-size:14px; min-height:44px; }
  nav button[aria-current=step] { padding:8px 12px; }
  main { padding:24px 16px 40px; }
  h1 { font-size:36px; }
  .lede { font-size:16px; line-height:24px; }
  .bridge tbody th,.rubric tbody th { width:auto; }
  .score { gap:8px 12px; }
  .evidence-strip > div { flex-basis:50%; padding:12px; }
  .evidence-strip p { font-size:12px; line-height:20px; }
}
@media(max-width:760px) { .brief { grid-template-columns:1fr; gap:2px 0; padding:16px; } .brief dt { margin-top:10px; } .course-rail .method,.course-rail .method-title { display:none; } .bridge,.rubric { min-width:0; } .bridge thead,.rubric thead { display:none; } .bridge tr,.rubric tr { display:block; padding:12px 0; border-bottom:1px solid var(--line-strong); } .bridge th,.bridge td,.rubric th,.rubric td { display:block; width:auto; padding:4px 0; border:0; } .bridge td::before,.rubric td::before { content:attr(data-label); display:block; font:12px/16px var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); margin-top:8px; } }
/* Written answers: the fixed sentence and the character count sit directly under the box. */
.reason:has(+ .written-note),.trial-field:has(+ .written-note) .reason { margin-bottom:6px; }
.trials-lab .trial-field:has(+ .written-note) { margin-bottom:0; }
.written-note { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; margin:0 0 16px; max-width:none; }
.written-count { font-size:12px; font-variant-numeric:tabular-nums; }
/* A result row opens. Flex on the summary hides the browser's own marker, so draw one. */
.case > summary { list-style:none; align-items:center; }
.case > summary::-webkit-details-marker { display:none; }
.case > summary::before { content:''; display:inline-block; flex:none; width:7px; height:7px; margin:0 12px 2px 3px; border-right:1.5px solid var(--ink-2); border-bottom:1.5px solid var(--ink-2); transform:rotate(-45deg); transition:transform var(--dur-1) var(--ease); }
.case[open] > summary::before { transform:rotate(45deg); margin-bottom:5px; }

/* Headings that follow a button or a list need the same air as the others. */
main > h2 { margin-top:36px; }
main > .actions + h2,main > button + h2 { margin-top:40px; }
/* Results end before the next question begins. */
#results:not(:empty),#own-results:not(:empty),.results:not(:empty) { margin-bottom:32px; }
/* The rail label is two short lines, not one line and an orphan. */
.course-rail > .eyebrow { text-wrap:balance; }
/* Chapter headings name the skill in full. Give them room and no orphan word. */
h1 { max-width:26ch; text-wrap:balance; }
/* Keep the first decision visible when platform fonts have wider letterforms. */
.opening-chapter > h1 { max-width:none; }
.opening-chapter > .lede,.opening-chapter > .note { max-width:70ch; }
/* Chapter 09: what was committed in chapters 05 to 08. */
.later-work { border-top:1px solid var(--line-strong); padding-top:4px; margin-top:32px; }
.later-work > h2 { margin-top:28px; }
.later-chapter { border-top:1px solid var(--line); padding:20px 0 4px; }
.later-chapter h3 { margin-bottom:8px; }
.later-records { display:grid; grid-template-columns:minmax(0,14rem) minmax(0,1fr); gap:6px 24px; margin:16px 0; font-size:14px; line-height:20px; }
.later-records dt { grid-column:1; font-weight:500; padding-top:10px; border-top:1px solid var(--line); }
.later-records dd { grid-column:2; margin:0; max-width:65ch; overflow-wrap:anywhere; }
.later-records dt + dd { padding-top:10px; border-top:1px solid var(--line); }
.later-records dd .eyebrow { display:inline-block; min-width:4.5rem; margin:0 8px 0 0; }
@media(max-width:760px) { .later-records { grid-template-columns:1fr; gap:4px; } .later-records dt,.later-records dd { grid-column:1; } .later-records dt + dd { border-top:0; padding-top:0; } }
/* Sources and scope: one limit per row. */
.scope-list { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:10px 20px; margin:0; font-size:14px; line-height:20px; }
.scope-list dt { font-weight:500; }
.scope-list dd { margin:0; }
@media(max-width:760px) { .scope-list { grid-template-columns:1fr; gap:2px; } .scope-list dd { margin-bottom:10px; } }
/* Short committed items: a record, one question, per-option feedback. */
.short-item { margin:32px 0; padding:20px 24px; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface); max-width:72ch; }
.short-item h2 { font-size:var(--text-md); line-height:var(--lh-md); font-weight:500; margin-bottom:12px; }
.short-item-records { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:6px 16px; margin:0 0 16px; }
.short-item-records dt { font:12px/27px var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); }
.short-item-records dd { margin:0; overflow-wrap:anywhere; }
.short-item fieldset { border:0; margin:0 0 12px; padding:0; }
.short-item legend { margin-bottom:8px; }
.short-item-option { display:flex; align-items:center; gap:8px; min-height:44px; }
.short-item-feedback p { margin:12px 0 0; }
.short-item-feedback .good { color:var(--pass); }
.short-item-feedback .bad { color:var(--fail); }
@media(max-width:560px) { .short-item { padding:16px; } .short-item-records { grid-template-columns:1fr; gap:2px; } .short-item-records dd { margin-bottom:8px; } }

/* accessibility-01 (WCAG 2.2 1.4.11): the boundary of a text field, number field,
   select or editor is its only visible identifier, so it needs 3:1 against the
   ground, the white field and the warm prediction panel. The shared --line-strong
   token is 1.57:1 and stays as it is for other courses; this course scopes its own.
   #857f76 is 3.58:1 on --ground, 3.97:1 on --surface and 3.19:1 on --live-soft.
   The doubled element selector outranks every course rule that sets these borders. */
:root { --control-line: #857f76; }
html body :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-color:var(--control-line); }

/* A live region that is announced and not shown. */
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Chapter 03: the run figure (misconceptions-09), the worked grader and the completion stages. */
.run-figure { margin:24px 0; padding:24px; border:1px solid var(--line-strong); border-radius:var(--r-3); background:var(--surface); max-width:none; }
.run-figure figcaption { font-size:24px; line-height:32px; font-weight:500; margin-bottom:4px; }
.run-intro { font-size:14px; line-height:22px; color:var(--ink-2); margin-bottom:20px; }
.run-input { border-left:3px solid var(--ink-2); padding-left:20px; }
.run-request { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:12px 0 16px; }
.run-request code,.run-data-labels { font:13px/20px var(--font-mono); color:var(--ink-2); }
.run-request strong { font-weight:500; }
.run-snapshots { width:100%; border-collapse:collapse; table-layout:fixed; }
.run-snapshots caption { text-align:left; font-size:14px; line-height:22px; padding-bottom:8px; }
.run-snapshots th { text-align:left; font-size:14px; line-height:22px; font-weight:400; }
.run-snapshots thead th { padding:8px 12px 8px 0; color:var(--ink-2); border-bottom:1px solid var(--line-strong); }
.run-snapshots th:first-child { width:16%; }
.run-snapshots tbody th,.run-snapshots td { padding:16px 12px 16px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.run-seats { display:flex; flex-wrap:wrap; gap:6px; min-height:30px; margin-bottom:8px; }
.run-seat { display:block; width:24px; height:30px; border:2px solid #3d6753; border-radius:3px; background:#3d6753; }
.run-empty { color:var(--ink-2); font:24px/30px var(--font-mono); }
.run-count { display:block; font-size:14px; line-height:22px; font-weight:500; }
.run-pending { display:block; font-size:12px; line-height:18px; color:var(--ink-2); }
.run-data-labels { margin:10px 0 0; }
.run-claim { font-size:14px; line-height:22px; color:var(--ink-2); border-top:1px dashed var(--line-strong); padding-top:12px; margin:12px 0 20px; }
.run-claim code { font:12px/18px var(--font-mono); margin-right:8px; }
.run-output { display:flex; align-items:center; justify-content:space-between; gap:24px; border-top:2px solid var(--ink); border-bottom:1px solid var(--line-strong); padding:20px 0; }
.run-call { display:flex; align-items:center; gap:16px; flex-shrink:0; font:20px/28px var(--font-mono); }
.run-arrow { color:var(--ink-2); }
.run-result { color:#2d624c; border-bottom:3px solid; }
.run-reason { margin:0; max-width:36ch; font-size:14px; line-height:22px; }
.run-contract { margin:16px 0 12px; font-size:14px; line-height:22px; max-width:75ch; }
.run-json { font-size:14px; line-height:22px; }
.run-json pre { max-height:320px; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:600px) {
 .run-figure { padding:16px; }
 .run-figure figcaption { font-size:20px; line-height:28px; }
 .run-input { padding-left:12px; }
 .run-request { flex-direction:column; gap:4px; }
 .run-request strong { font-size:16px; line-height:24px; }
 .run-snapshots th:first-child { width:24%; }
 .run-snapshots thead th,.run-snapshots tbody th,.run-snapshots td { padding-right:4px; }
 .run-seats { gap:3px; min-height:20px; }
 .run-seat { width:12px; height:20px; border-radius:2px; }
 .run-empty { line-height:20px; }
 .run-count { font-size:12px; line-height:18px; }
 .run-output { flex-direction:column; align-items:start; gap:12px; padding:16px 0; }
 .run-call { gap:12px; font-size:18px; line-height:26px; }
}
.worked-grader,.completion-stage { margin:32px 0; padding-top:16px; border-top:1px solid var(--line-strong); }
.worked-code { white-space:pre; overflow-x:auto; font:400 13px/20px var(--font-mono); background:var(--surface); border:1px solid var(--line); border-radius:var(--r-2); padding:16px; max-height:none; }
.worked-steps li { margin-bottom:8px; max-width:70ch; }
.worked-cases { border-collapse:collapse; margin:16px 0; }
.worked-cases caption { text-align:left; color:var(--ink-2); margin-bottom:8px; }
.worked-cases th,.worked-cases td { border-bottom:1px solid var(--line); padding:8px 12px 8px 0; text-align:left; font-weight:400; }
.completion-editor { min-height:0; height:auto; border-radius:var(--r-2); margin:8px 0 12px; }
.recommendation { border-left:3px solid var(--note); padding:8px 0 8px 16px; margin:16px 0; }
.recommendation:empty { display:none; }
.model-explanation:not(:empty) { border-left:3px solid var(--line-strong); padding:8px 0 8px 16px; margin:16px 0; }
.evidence-strip .strip-mark { font-weight:500; color:var(--fail); margin-top:4px; }
.evidence-strip .strip-mark::before { content:'▲ '; }
.transfer-principle,.order-exercise,.skip-check { margin:32px 0; padding-top:16px; border-top:1px solid var(--line-strong); }

/* visuals-02: verdict against known outcome. Words carry the meaning; weight only marks a miss. */
.verdict-grid { border-collapse:collapse; margin:12px 0 16px; font-size:var(--text-sm); }
.verdict-grid caption { text-align:left; color:var(--ink-2); margin-bottom:8px; }
.verdict-grid th,.verdict-grid td { border:1px solid var(--line); padding:6px 10px; text-align:left; font-weight:400; }
.verdict-grid td.grid-miss { font-weight:500; color:var(--fail); }
.verdict-grid td.grid-empty { color:var(--ink-2); }

/* Visual-bar: align the data before adding emphasis. Shapes and words accompany hue. */
.eval-map { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; }
.eval-map li { min-width:0; }
.eval-map li:not(:last-child)::after { content:none; }
.eval-map button { width:100%; min-height:76px; flex-direction:column; justify-content:center; gap:4px; border-radius:0; border-right:0; background:transparent; }
.eval-map li:last-child button { border-right:1px solid var(--line-strong); }
.eval-map button[aria-pressed=true] { box-shadow:inset 0 -3px var(--live); }
.eval-map-detail { border-top:3px solid var(--live); background:#fcfaf5; }
.worked-cases { width:100%; }
.worked-cases th { width:78%; }
.worked-cases td { font-family:var(--font-mono); }
.verdict-grid { width:100%; max-width:680px; table-layout:fixed; border-collapse:separate; border-spacing:4px; }
.verdict-grid caption { margin-bottom:12px; }
.verdict-grid th { font-size:12px; line-height:18px; border:0; }
.verdict-grid thead th { padding:8px; vertical-align:bottom; }
.verdict-grid thead th:first-child::after { content:'Expected ↓'; }
.verdict-grid tbody th { width:23%; padding:8px; }
.verdict-grid td { padding:12px; vertical-align:top; border:1px solid var(--line-strong); background:#fcfaf5; }
.verdict-grid td.grid-correct { background:#e8efe7; border-left:3px solid #3d6753; }
.verdict-grid td.grid-miss { background:#f9e8e1; border-left:3px solid var(--fail); }
.verdict-grid td.grid-empty { background:transparent; border-style:dashed; }
.matrix-count { display:block; font:400 32px/38px var(--font-mono); font-variant-numeric:tabular-nums; margin-bottom:6px; }
.matrix-kind { display:block; font:12px/17px var(--font-text); }
.grid-empty .matrix-count { font-size:24px; color:var(--ink-2); }
.outcome-strip { margin:12px 0 0; }
.outcome-marks { display:grid; grid-template-columns:repeat(var(--outcome-total),minmax(0,1fr)); gap:3px; }
.outcome-mark { height:26px; display:grid; place-items:center; font:14px/1 var(--font-mono); border:1px solid; }
.outcome-pass { color:#2d624c; background:#e6eee6; }
.outcome-fail,.outcome-error { color:var(--fail); background:var(--fail-soft); }
.outcome-unknown { color:var(--ink-2); background:var(--ground); border-style:dashed; }
.outcome-strip figcaption { font:12px/18px var(--font-text); color:var(--ink-2); margin-top:8px; }
.outcome-labels { display:flex; flex-wrap:wrap; gap:8px 16px; margin:8px 0 0; font:12px/18px var(--font-mono); }
.outcome-label-fail,.outcome-label-error { color:var(--fail); }
.repository-diff { width:100%; border-collapse:collapse; margin:0; background:#fcfaf5; }
.repository-diff caption { padding:16px; text-align:left; font:14px/20px var(--font-text); }
.repository-diff th,.repository-diff td { padding:16px; border-top:1px solid var(--line-strong); text-align:left; font-weight:400; }
.repository-diff th { font:12px/18px var(--font-mono); }
.repository-diff td { font:20px/28px var(--font-mono); }
.evidence-strip > div:nth-child(2),.evidence-strip > div:nth-child(3) { display:none; }
.evidence-strip > div:first-child { flex-basis:100%; border-bottom:1px solid var(--line); }
.evidence-strip > div:nth-child(4) { order:2; flex-basis:100%; border-top:1px solid var(--line); }
.evidence-strip > div:nth-child(4) p { font:17px/27px var(--font-text); }
@media(max-width:760px) {
 .eval-map { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
 .eval-map button { border:1px solid var(--line-strong); min-height:68px; padding:8px 4px; }
 .run-figure { padding:16px; }
 .verdict-grid { border-spacing:3px; }
 .verdict-grid td { padding:8px 6px; }
 .matrix-count { font-size:26px; line-height:32px; }
 .verdict-grid th { padding:8px 3px!important; }
 .repository-diff th,.repository-diff td { padding:12px 8px; }
 .repository-diff td { font-size:16px; }
}
.repository-verdict { white-space:nowrap; }
.repository-regression { display:block; font:12px/18px var(--font-text); margin-top:6px; }
@media(max-width:480px) {
 .repository-diff,.repository-diff caption,.repository-diff tbody { display:block; }
 .repository-diff thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .repository-diff tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line-strong); }
 .repository-diff tbody th { grid-column:1/-1; padding:12px 16px 8px; border:0; }
 .repository-diff td { padding:0 16px 12px; border:0; }
 .repository-diff td::before { content:attr(data-label); display:block; color:var(--ink-2); font:12px/18px var(--font-mono); margin-bottom:4px; }
}
.order-figure { padding:24px; margin:24px 0; border:1px solid var(--line-strong); background:#fcfaf5; }
.order-figure figcaption { margin-bottom:24px; }
.order-sequence { list-style:none; padding:0; margin:0; display:flex; gap:36px; counter-reset:event; }
.order-sequence li { position:relative; flex:1; background:var(--ground); border-top:3px solid var(--ink-2); padding:16px; }
.order-sequence li::before { counter-increment:event; content:counter(event,decimal-leading-zero); display:block; font:12px/18px var(--font-mono); margin-bottom:12px; color:var(--ink-2); }
.order-sequence li+li::after { content:'→'; position:absolute; left:-28px; top:40%; font-size:22px; }
.order-sequence strong,.order-sequence span { display:block; }
.order-sequence strong { font-size:20px; }
.order-sequence span { font-size:14px; margin-top:6px; }
@media(max-width:480px) { .order-figure { padding:16px; } .order-sequence { gap:24px; } .order-sequence li { padding:12px; } .order-sequence li+li::after { left:-20px; font-size:18px; } }
/* The reference is a chain. A single phone column keeps every arrow truthful. */
.eval-map { gap:14px; }
.eval-map li:not(:last-child)::after { content:'→'; right:-13px; z-index:1; }
.eval-map button { border-right:1px solid var(--line-strong); }
@media(max-width:760px) {
 .eval-map { grid-template-columns:1fr; gap:10px; }
 .eval-map button { min-height:48px; flex-direction:row; justify-content:flex-start; padding:10px 16px; gap:16px; }
 .eval-map li:not(:last-child)::after { content:'↓'; right:auto; left:24px; top:auto; bottom:-14px; transform:none; font-size:14px; line-height:16px; }
}

/* Worked sibling evidence: row identities and unit marks make the arithmetic visible. */
.seat-evidence { margin:24px 0; border-block:1px solid var(--line-strong); padding:24px 0; }
.seat-evidence > figcaption { font-size:20px; line-height:28px; margin-bottom:16px; }
.seat-choices { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.seat-choices button { font-size:14px; background:transparent; }
.seat-choices button[aria-pressed=true] { border-color:var(--ink); box-shadow:inset 0 -3px var(--ink); }
.seat-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.seat-heading h3 { font-size:20px; line-height:28px; margin-bottom:8px; }
.seat-verdict { font:18px/28px var(--font-mono); border-bottom:3px solid; }
.seat-pass { color:#2d624c; }
.seat-fail { color:var(--fail); }
.seat-unknown { color:var(--ink-2); border-bottom-style:dashed; }
.seat-request { margin-bottom:20px; color:var(--ink-2); }
.seat-person { display:grid; grid-template-columns:1fr 1fr 140px; gap:16px; padding:16px 0; border-top:1px solid var(--line); }
.seat-person h4 { grid-column:1/-1; margin:0; font-size:14px; font-weight:500; }
.seat-person .eyebrow { display:block; margin-bottom:10px; }
.seat-snapshot { min-width:0; }
.seat-groups { display:flex; align-items:start; flex-wrap:wrap; gap:12px; min-height:52px; }
.seat-marks { display:flex; gap:3px; }
.seat-mark { display:block; width:18px; height:22px; border:2px solid #3d6753; border-radius:2px; }
.seat-confirmed { background:#3d6753; }
.seat-pending { border-style:dashed; border-color:var(--ink-2); }
.seat-row-id { display:block; margin-top:4px; font:12px/16px var(--font-mono); color:var(--ink-2); }
.seat-zero,.seat-missing { font:28px/34px var(--font-mono); }
.seat-missing { min-height:52px; border:1px dashed var(--ink-2); padding-left:12px; }
.seat-total { font-size:14px; line-height:22px; margin:8px 0 0; }
.seat-excluded { font-size:12px; line-height:18px; color:var(--ink-2); margin:0; }
.seat-change { border-left:2px solid var(--line-strong); padding-left:16px; }
.seat-change strong { display:block; font:32px/40px var(--font-mono); }
.seat-change > span:last-child { display:block; font-size:12px; line-height:18px; }
.seat-unintended { border-left-color:var(--fail); color:var(--fail); }
.seat-key { font-size:12px; line-height:18px; color:var(--ink-2); margin:16px 0 0; }
.bridge-cases { list-style:none; margin:0; padding:0; }
.bridge-cases li { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); }
.bridge-cases li:first-child { padding-top:0; }
.bridge-cases li:last-child { border:0; }
.bridge-verdict { white-space:nowrap; font:12px/18px var(--font-mono); }
.bridge-pass { color:#2d624c; }
.bridge-fail { color:var(--fail); }
.bridge-unknown { color:var(--ink-2); }
@media(max-width:480px) {
 .worked-code { white-space:pre-wrap; overflow-wrap:anywhere; }
 .seat-heading { flex-direction:column; gap:0; }
 .seat-heading .seat-verdict { margin-bottom:12px; }
 .seat-person { grid-template-columns:1fr 1fr; gap:12px; }
 .seat-change { grid-column:1/-1; display:flex; gap:12px; align-items:baseline; padding-left:12px; }
 .seat-change .eyebrow { margin:0; }
 .seat-change strong { font-size:26px; line-height:34px; }
 .seat-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
 .seat-choices button { padding:8px 5px; font-size:13px; line-height:19px; }
 .seat-groups { gap:8px; }
 .seat-mark { width:14px; height:18px; }
 .bridge-cases li { gap:8px; }
}
/* Completed chapters in the chapter menu, and the course-end panel in chapter 09. */
nav button .chapter-done, nav button .chapter-done span { color:var(--pass); font-family:var(--font-text); }
nav button .chapter-done { margin-left:auto; padding-left:4px; position:relative; } /* keeps the hidden words inside the scrolling chapter strip */
.completion-panel { border:1px solid var(--line-strong); border-left:3px solid var(--pass); padding:20px 24px; margin:24px 0; background:var(--surface); }
.completion-panel dl { margin:0 0 12px; } .completion-panel dt { font:12px/16px var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); margin-top:12px; } .completion-panel dd { margin:4px 0 0; max-width:65ch; }
@media(max-width:760px) { .wordmark { font-size:24px; line-height:28px; white-space:nowrap; } }
