/* Exam Blocks: the page, the boxes drawn on it, and the side panel. */
[hidden] { display: none !important; }
/* The page itself is white paper in both themes, so these sit on white: white text on them is 5.5:1 or more. */
:root { --orange-deep: #b8401c; --passage: #2563a6; }
.sample-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.steps-top { margin-top: var(--s5); }
html[data-border="heavy"] .card { border: 2px solid var(--ink); }
html[data-shadow="hard"] .card { box-shadow: 5px 5px 0 var(--ink); }
.eyebrow { color: var(--ink-2); margin-bottom: var(--s2); }
.hero-title { max-width: 22ch !important; }

.opener { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 860px) { .opener { grid-template-columns: 1.05fr 1fr; } }
.opener .dropzone { min-height: 11rem; background: color-mix(in oklab, var(--surface) 70%, var(--bg)); border-color: var(--ink); }
.opener .drop-icon { background: var(--orange-deep); color: #fff; }
.assure li:first-child { font-weight: 700; color: var(--ink); }

.what { margin: 0; }
.what svg { width: 100%; max-width: 30rem; margin-inline: auto; }
.what rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.what .bx { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 3; }
.what .bx2 { fill: #e9e4df; stroke: none; }
.what .bx2.hot { fill: var(--accent); }
.what .fig { fill: none; stroke: #7a8287; stroke-width: 2; }
.what .arrow { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.what text { font: 700 10.5px var(--font-body); fill: #1d2327; }
.what text.mono { font: 400 10.5px var(--font-mono); }

.work { padding-block: var(--s5) var(--s6); }
.workbar { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.workbar h2 { font-size: var(--step-2); margin-bottom: var(--s1); }
.workbar p { margin: 0; max-width: 60ch; }
.desk { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 980px) { .desk { grid-template-columns: minmax(0, 1fr) 22rem; } .side { position: sticky; top: var(--s3); max-height: calc(100vh - 1.5rem); overflow: auto; padding: 0 8px 8px 0; } }

.pages { display: grid; gap: var(--s4); }
.page { position: relative; background: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); max-width: 900px; }
.page canvas { display: block; width: 100%; height: 100%; }
.page .layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.page-tag { position: absolute; right: 6px; bottom: 6px; font: 400 0.72rem var(--font-mono); background: var(--brand); color: var(--brand-ink); padding: 1px 6px; border-radius: 3px; pointer-events: none; }

.box { position: absolute; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); cursor: pointer; }
.box.passage { border-color: var(--passage); background: rgba(37, 99, 166, 0.07); }
.box.on { box-shadow: 0 0 0 3px rgba(224, 83, 42, 0.35); }
.box.keep::after { content: ""; position: absolute; left: 50%; bottom: -12px; height: 12px; border-left: 3px dotted var(--ink); }
.box.ghost { border-style: dashed; pointer-events: none; }
.box .strip { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(29,35,39,0.28) 0 4px, transparent 4px 8px); pointer-events: none; }
.box .rangeband { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(-45deg, rgba(37,99,166,0.3) 0 4px, transparent 4px 8px); pointer-events: none; }
.box-label { position: absolute; left: -2px; top: -1.45rem; border: 0; border-radius: 3px 3px 0 0; padding: 2px 7px; background: var(--orange-deep); color: #fff; font: 700 0.75rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap; }
.box.passage .box-label { background: var(--passage); }

.setup { display: grid; gap: var(--s3); padding: var(--s4); }
.setup .two { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s3); align-items: end; }
.setup .two p { margin: 0 0 0.6rem; }
.setup output { font: 400 0.8rem var(--font-mono); color: var(--ink-2); margin-left: var(--s1); }
.setup input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 2rem; }
.setup .tight { margin: -0.4rem 0 0; }
.setup .notice { margin: 0; }
.results { margin-top: var(--s4); padding: var(--s4); }
.results h3 { margin-bottom: var(--s3); }
.results .file-list .btn { min-height: 2.4rem; padding-inline: 1rem; }
.list-title { margin: var(--s5) 0 var(--s2); font-size: var(--step-0); }
.blocks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.blocks li { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: var(--s2) var(--s3); display: grid; gap: var(--s2); }
.blocks li.on { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.blocks .row { display: flex; align-items: center; gap: var(--s2); }
.blocks .row small { color: var(--ink-2); }
.blocks .x { margin-left: auto; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.blocks .mini { min-height: 2.75rem; padding: 0.3rem 0.5rem; width: auto; flex: 1; }
.tick { display: flex; gap: var(--s2); align-items: center; font-size: var(--step--1); min-height: 2.75rem; cursor: pointer; }
.tick input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

@media (max-width: 520px) { .site-header nav { display: none; } .site-header nav + .theme-toggle { margin-left: auto; } }
.section-alt { background: color-mix(in oklab, var(--surface) 55%, var(--bg)); }
@media (max-width: 979px) { .side { order: -1; } .side .blocks { max-height: 16rem; overflow: auto; } }

/* Search pages: the worked case, the questions and the related links read as one narrow column. */
.prose { max-width: var(--narrow); }
.prose h3 { margin-top: var(--s5); margin-bottom: var(--s2); }
.prose p { max-width: 65ch; }
.worked { display: grid; gap: var(--s3); padding-left: 1.4rem; margin-top: var(--s4); }
.worked li { max-width: 65ch; }
.related { display: grid; gap: var(--s2); padding-left: 1.2rem; margin-top: var(--s3); }
.related a { color: var(--brand-text); font-weight: 700; }
.guide-title { max-width: 26ch !important; }
.eyebrow a { color: inherit; }
