/* Exit tickets and free answer sheets (brief S1), Look E ("Their paper, your sheet"): the night-blue table holds paper,
   the ivory sheet is the teacher's. Pencil is what is proposed, ink is what is decided, highlighter marks what needs a
   look. From the prototype (frontier/growth/tickets/prototype/ticket.css), inside the site's chrome and tokens (.tc). */

/* the three faces the printed strip itself is set in (the app's own files) */
@font-face { font-family: "Libre Caslon Display"; src: url("minute-marks/caslon-display.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Manrope"; src: url("minute-marks/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: block; }
@font-face { font-family: "DM Mono"; src: url("minute-marks/dm-mono.woff2") format("woff2"); font-display: block; }

.xt {
  --pencil-2: #7C8190; --hi-2: #E3B90E;
  --sh-photo: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 24px -10px rgba(0, 0, 0, 0.7);
  --sh-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 22px 36px -12px rgba(0, 0, 0, 0.8);
  --sh-sheet: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 60px -18px rgba(0, 0, 0, 0.65);
  --d1: 140ms; --d2: 280ms; --d3: 520ms;
  --e-out: cubic-bezier(0.2, 0, 0, 1); --e-land: cubic-bezier(0.2, 0.9, 0.3, 1.12);
  --measure: 62ch;
  color: var(--on-night);
}
.xt h1, .xt h2, .xt h3, .xt h4 { font-family: var(--display); font-weight: 520; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.xt p { margin: 0; }
.xt a { color: inherit; }
.xt button, .xt input { font: inherit; color: inherit; }
.xt .wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.xt .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xt .sr-key { display: none; }
.xt .keyed .sr-key { display: inline; }
/* what needs the page's script is shown only once that script has started (it sets html.xt-ready at the end of its
   start): scripts off, a blocked module or an old browser leave no button that does nothing (review R1, 3). Until then
   the key is marked on the questions, so the page reads in full. */
html:not(.xt-ready) .xt .needs-js { display: none !important; }
html:not(.xt-ready) .xt .sr-key { display: inline; }
html:not(.xt-ready) .xt .qs .is-key .ring path { stroke-dashoffset: 0; }
html:not(.xt-ready) .xt .qs .is-key .bub { background: #2b2d33; color: #2b2d33; border-color: #2b2d33; }
.xt .js-off { display: none; color: var(--ink-2); font-style: italic; }
html:not(.xt-ready) .xt .js-off { display: block; margin-top: 12px; }

/* ---- the table ---- */
.xt .table { background: radial-gradient(1100px 520px at 78% -8%, #1B2E68 0%, rgba(27, 46, 104, 0) 62%), linear-gradient(var(--night-0), var(--night-1)); }
.xt .table :focus-visible { outline: 2px solid var(--focus-night); outline-offset: 3px; border-radius: 6px; }

.xt .hero { padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.xt .hero.short { padding-bottom: clamp(56px, 7vw, 96px); }
.xt .hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.xt .trail { color: var(--on-night-3); font-size: 15px; margin-bottom: 14px; }
.xt .trail a { color: var(--on-night-2); text-underline-offset: 3px; }
.xt .hero h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 0.98; font-weight: 480; }
.xt .hero.short h1 { font-size: clamp(40px, 5.4vw, 72px); }
.xt .lead { margin-top: 20px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--on-night-2); }
.xt .hero.short .lead { max-width: 44ch; }
.xt .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.xt .fine { margin-top: 16px; font-size: 14.5px; color: var(--on-night-3); max-width: 40ch; }

.xt .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform var(--d1) var(--e-out), background-color var(--d1) var(--e-out); }
.xt .btn:active { transform: translateY(1px); }
.xt .btn.main { background: var(--ivory); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.xt .btn.main:hover { background: #fff; }
.xt .btn.second { background: transparent; color: var(--on-night); border-color: var(--on-night-2); }
.xt .btn.second:hover { border-color: var(--on-night); }
.xt .btn.ghost { background: transparent; color: var(--on-night-2); border-color: transparent; }
.xt .btn[disabled] { opacity: 0.5; cursor: default; }

/* the real strip, lying on the table */
.xt .hero-paper { position: relative; aspect-ratio: 215.9 / 150; }
.xt .strip { position: absolute; width: 92%; height: auto; aspect-ratio: 215.9 / 139.7; border-radius: 2px; background: #fff; box-shadow: var(--sh-lift); }
.xt .strip.under { left: 9%; top: 15%; transform: rotate(4.2deg); filter: brightness(0.92); }
.xt .strip.top { left: 0; top: 0; transform: rotate(-2.2deg); }

/* ---- the sheet ---- */
.xt .sheet-band { background: linear-gradient(var(--night-1), var(--night-1)); padding: 0 20px; }
.xt .sheet-band.last { padding-bottom: clamp(56px, 7vw, 96px); }
.xt .sheet { position: relative; width: min(860px, 100%); margin: -28px auto 0; background: var(--ivory); color: var(--ink); border-radius: 14px; box-shadow: var(--sh-sheet); padding: clamp(24px, 4vw, 48px); z-index: 2; }
.xt .sheet-band > .sheet + .sheet, .xt .sheet-band.units > .sheet + .sheet { margin-top: 28px; }
.xt .sheet-band + .sheet-band { padding-top: 56px; }
.xt .sheet :focus-visible { outline: 2px solid var(--focus-sheet); outline-offset: 3px; border-radius: 6px; }
.xt .sheet h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.xt .sheet-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ivory-3); }
.xt .sheet-lead { margin-top: 10px; color: var(--ink-2); max-width: var(--measure); }
.xt .link { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.xt .qs { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.xt .qs > li { counter-increment: q; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 6px; padding: 22px 0; border-bottom: 1px solid var(--ivory-3); }
.xt .qs > li:last-child { border-bottom: 0; padding-bottom: 4px; }
.xt .qs > li::before { content: counter(q); font: 520 30px/1 var(--display); color: var(--ink); padding-top: 2px; }
.xt .stem { font-size: 19px; line-height: 1.4; font-weight: 500; max-width: 56ch; }
.xt .choices { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.xt .choices li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; padding: 3px 0; color: var(--ink); line-height: 1.45; }
/* the bubble on screen is the bubble on the paper: a thin dark ring with a pale letter */
.xt .bub { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.4px solid #3a3a38; background: #fff; display: grid; place-items: center; font: 600 13px/1 "Manrope", var(--text); color: #6f6f6a; flex: none; }
.xt .choices li > span:last-child { padding-top: 3px; }
/* the key: the circle is filled the way a student fills it, and the teacher's pen rings it */
.xt .ring { position: absolute; left: -9px; top: -6px; width: 48px; height: 44px; pointer-events: none; overflow: visible; }
.xt .ring path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.xt .keyed .is-key .ring path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d3) var(--e-out); }
.xt .keyed .is-key .bub { background: #2b2d33; color: #2b2d33; border-color: #2b2d33; }
.xt .keyed .is-key > span:last-child { font-weight: 600; }

/* ---- the pile ---- */
.xt .demo { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 110px); }
.xt .demo-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.xt .demo-head p { margin-top: 12px; color: var(--on-night-2); max-width: 56ch; }
.xt .demo-head a { text-underline-offset: 3px; }
.xt .demo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(20px, 3vw, 44px); margin-top: 32px; align-items: start; }
.xt .cam { margin: 0; }
.xt .cam canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #131d3f; box-shadow: var(--sh-lift); outline: 1px solid var(--hair-night); }
.xt .cam figcaption { margin-top: 12px; min-height: 30px; font: italic 400 22px/1.3 var(--display); color: var(--on-night-2); }
.xt .cam figcaption.ink { font-style: normal; color: var(--on-night); }
.xt .tray { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.xt .tray button { width: 44px; height: 44px; border-radius: 50%; border: 1.3px solid var(--on-night-3); background: transparent; color: var(--on-night-3); font: 520 15px/1 var(--display); font-variant-numeric: tabular-nums; cursor: default; transition: background-color var(--d1) var(--e-out), color var(--d1) var(--e-out), transform var(--d2) var(--e-land); }
.xt .tray button.read { background: var(--ivory); border-color: var(--ivory); color: var(--ink); cursor: pointer; }
.xt .tray button.ask { background: var(--hi); border-color: var(--hi); color: #3b3000; }
.xt .tray button.on { transform: scale(1.14); box-shadow: 0 0 0 3px var(--night-1), 0 0 0 5px var(--focus-night); }
.xt .pile-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.xt .pile-say { color: var(--on-night-2); font-size: 15.5px; }

.xt .sheet.small { margin: 0; width: auto; padding: 24px; border-radius: 14px; }
.xt .sheet.small h3 { font-size: 24px; }
.xt .quiet { color: var(--pencil); font-style: italic; font-family: var(--display); margin-top: 8px; }
.xt .count { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.xt .count b { font: 520 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.xt .count span { color: var(--ink-2); }

.xt .taps { margin-top: 14px; padding: 12px 12px 12px 16px; background: #FFF6C9; border-left: 6px solid var(--hi); border-radius: 4px 10px 10px 4px; }
.xt .taps p { font-weight: 600; }
.xt .tap-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 10px; }
.xt .tap-row canvas { width: 100%; height: auto; border-radius: 3px; border: 1px solid var(--ivory-3); background: #fff; }
.xt .tap-row .who { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-2); }
.xt .letters { display: flex; gap: 6px; }
.xt .letters button { width: 44px; height: 44px; border-radius: 50%; border: 1.4px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.xt .letters button:hover { background: var(--ink); color: var(--ivory); }

.xt .dots { margin-top: 18px; display: grid; gap: 9px; }
.xt .drow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 3px 6px 3px 8px; border-left: 6px solid transparent; margin-left: -14px; }
.xt .drow.worst { border-left-color: var(--hi); background: linear-gradient(90deg, #FFF6C9, rgba(255, 246, 201, 0)); }
.xt .drow .n { font: 520 19px/1 var(--display); }
.xt .drow .ds { display: flex; flex-wrap: wrap; gap: 3px; }
.xt .drow .of { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xt .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.3px solid var(--ink); }
.xt .dot.ok { background: var(--ink); }
.xt .dot.no { background: transparent; border-color: var(--pencil-2); }
.xt .dot.ask { background: var(--hi); border-color: var(--hi-2); }
.xt .dots-key { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xt .dots-key .dot { margin-left: 10px; }
.xt .dots-key .dot:first-child { margin-left: 0; }

.xt .next { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ivory-3); }
.xt .next h4 { font-size: 22px; line-height: 1.2; }
.xt .next .fact { margin-top: 8px; }
.xt .next .means { margin-top: 8px; color: var(--ink-2); }
.xt .next .move { margin-top: 14px; padding: 14px 16px; background: var(--ivory-2); border-radius: 10px; }
.xt .next .move b { display: block; font: 520 17px/1.3 var(--display); margin-bottom: 4px; }

/* ---- what each answer tells you ---- */
.xt .tells { margin-top: 22px; display: grid; gap: 0; }
.xt .tell { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 6px; padding: 20px 0; border-top: 1px solid var(--ivory-3); }
.xt .tell .n { font: 520 30px/1 var(--display); }
.xt .tell .idea { font: 520 20px/1.3 var(--display); }
.xt .tell .answer { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.xt .tell ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.xt .tell li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; color: var(--ink-2); }
.xt .tell li b, .xt .tell .any b, .xt .tell .answer b { color: var(--ink); font-weight: 600; }
.xt .tell .any { margin-top: 10px; color: var(--ink-2); }
.xt .tell .do { margin-top: 12px; max-width: var(--measure); }
.xt .tell .do b { font-weight: 600; }

/* ---- where it comes from ---- */
.xt .lesson { padding: clamp(64px, 8vw, 110px) 0 clamp(64px, 8vw, 100px); }
.xt .lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.xt .lesson h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.xt .lesson p, .xt .lesson ol { margin-top: 12px; color: var(--on-night-2); max-width: 52ch; }
.xt .lesson ol { padding-left: 20px; }
.xt .lesson li { margin-top: 6px; }
.xt .lesson b { color: var(--on-night); font-weight: 600; }
.xt .lesson .outcome { font-size: 15px; color: var(--on-night-3); }
.xt .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.xt .links a { color: var(--on-night); font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---- the course: one strip of paper for each lesson ---- */
.xt .units { padding-bottom: clamp(56px, 7vw, 96px); }
.xt .unit-link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.xt .rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.xt .row { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 16px; padding: 18px 22px 18px 26px; background: #fff; color: var(--ink); text-decoration: none; border-radius: 2px; box-shadow: 0 1px 2px rgba(20, 41, 94, 0.18), 0 8px 18px -12px rgba(20, 41, 94, 0.5); transition: transform var(--d2) var(--e-out), box-shadow var(--d2) var(--e-out); }
/* the strip's own corner marks */
.xt .row::before, .xt .row::after { content: ""; position: absolute; width: 9px; height: 9px; border: 2px solid #111; box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 4px #111; }
.xt .row::before { left: 8px; top: 8px; }
.xt .row::after { right: 8px; bottom: 8px; }
.xt .row:hover { transform: translateY(-1px) rotate(-0.25deg); box-shadow: 0 2px 4px rgba(20, 41, 94, 0.2), 0 14px 26px -14px rgba(20, 41, 94, 0.6); }
.xt .row-n { grid-row: 1 / span 2; font: 400 15px/1.3 "DM Mono", ui-monospace, monospace; color: var(--pencil); padding-top: 6px; }
.xt .row-t { font: 520 22px/1.2 var(--display); text-decoration: underline; text-decoration-color: var(--ivory-3); text-underline-offset: 4px; }
.xt .row:hover .row-t { text-decoration-color: var(--ink); }
.xt .row-i { color: var(--ink-2); }

/* ---- the library ---- */
.xt .place + .place { margin-top: 24px; }
.xt .place h3 { margin-top: 22px; font-size: 22px; }
.xt .courses { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.xt .courses a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--ivory-3); border-radius: 10px; background: #fff; text-decoration: none; }
.xt .courses a:hover { border-color: var(--ink); }
.xt .course-name { font: 520 20px/1.25 var(--display); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ivory-3); }
.xt .course-n { color: var(--ink-2); font-size: 15px; }
.xt .steps { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.xt .steps h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.xt .three { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.xt .three li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 8px; }
.xt .three .n { font: 480 34px/1 var(--display); color: var(--on-night-3); }
.xt .three h3 { font-size: 24px; line-height: 1.2; }
.xt .three p { margin-top: 8px; color: var(--on-night-2); }
.xt .kinds { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.xt .kinds li { padding: 18px 0; border-top: 1px solid var(--ivory-3); }
.xt .kinds h3 { font-size: 22px; }
.xt .kinds .example { margin: 8px 0; padding: 10px 14px; background: #fff; border-left: 3px solid var(--ivory-3); font-family: var(--display); font-style: italic; color: var(--ink); max-width: var(--measure); }
.xt .kinds p { max-width: var(--measure); color: var(--ink-2); }
.xt .kinds b { color: var(--ink); font-weight: 600; }
.xt .sort { margin: 18px 0 0; padding-left: 24px; display: grid; gap: 10px; max-width: var(--measure); }
.xt .sort li::marker { font-family: var(--display); font-weight: 520; }
.xt .also { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ivory-3); }
.xt .also a { font-weight: 600; text-underline-offset: 3px; }

/* ---- free answer sheets ---- */
.xt .make { margin-top: 18px; }
.xt .make fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xt .make legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.xt .kind { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 16px; border: 1px solid var(--ivory-3); border-radius: 10px; background: #fff; cursor: pointer; min-height: 44px; }
.xt .kind:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.xt .kind input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.xt .kind b { display: block; font: 520 19px/1.25 var(--display); }
.xt .kind span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.xt .fields { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.xt .field { display: grid; gap: 4px; }
.xt .field > span { font-weight: 600; }
.xt .field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--ink-2); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.xt .field small { color: var(--ink-2); font-size: 13.5px; }
.xt .preview { margin-top: 20px; background: #fff; border: 1px solid var(--ivory-3); box-shadow: 0 6px 18px -8px rgba(20, 41, 94, 0.45); }
.xt .preview canvas { display: block; width: 100%; height: auto; }
.xt .maker .pv-acts { margin-top: 20px; }
.xt .sheet-no { margin-top: 10px; font: 400 14.5px/1.4 "DM Mono", ui-monospace, monospace; color: var(--ink-2); }

/* ---- on the board ---- */
.xt.present { position: fixed; inset: 0; z-index: 60; background: radial-gradient(1400px 700px at 50% -10%, #16275a 0%, rgba(22, 39, 90, 0) 60%), var(--night-0); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: var(--on-night); }
.xt.present[hidden] { display: none; }
.xt.present :focus-visible { outline: 2px solid var(--focus-night); outline-offset: 3px; border-radius: 8px; }
.xt .p-top { display: flex; align-items: center; gap: 18px; padding: 18px clamp(20px, 4vw, 56px); color: var(--on-night-3); font-size: 16px; }
.xt .p-title { font: 480 20px/1 var(--display); color: var(--on-night-2); }
.xt .p-count { margin-left: auto; font: italic 400 20px/1 var(--display); }
.xt .p-close { background: none; border: 1px solid var(--hair-night); border-radius: 10px; min-height: 44px; padding: 0 16px; cursor: pointer; color: var(--on-night-2); }
.xt .p-stage { display: grid; align-content: center; padding: 0 clamp(20px, 7vw, 120px); gap: clamp(20px, 4vh, 48px); overflow: auto; }
.xt .p-stem { font: 460 clamp(30px, 4.6vw, 68px)/1.12 var(--display); letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance; }
.xt .p-choices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.4vh, 26px) clamp(24px, 4vw, 72px); }
.xt .p-choices li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(12px, 1.4vw, 22px); align-items: center; font-size: clamp(20px, 2.3vw, 34px); line-height: 1.25; }
.xt .p-choices .bub { width: clamp(44px, 4.4vw, 68px); height: clamp(44px, 4.4vw, 68px); font-size: clamp(18px, 1.9vw, 28px); background: var(--ivory); color: #5d5d59; border-width: 2px; }
.xt .p-choices .is-key.shown .bub, .xt .p-all .shown .bub { background: var(--hi); color: #3b3000; border-color: var(--hi); }
.xt .p-end { font: 460 clamp(34px, 5vw, 72px)/1.1 var(--display); max-width: 18ch; }
.xt .p-end + p { font-size: clamp(18px, 2vw, 28px); color: var(--on-night-2); max-width: 30ch; }
/* all five together, for a last look before the strips come in: the same printed bubble as one at a time */
.xt .p-stage.all { align-content: start; padding-top: 8px; gap: 18px; }
.xt .p-all { margin: 0; padding: 0; list-style: none; counter-reset: pq; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vh, 26px) clamp(28px, 4vw, 64px); }
.xt .p-all > li { counter-increment: pq; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.xt .p-all > li::before { content: counter(pq); grid-row: 1 / span 2; font: 480 clamp(24px, 2.4vw, 36px)/1 var(--display); color: var(--on-night-3); }
.xt .p-all > li > p { font: 460 clamp(17px, 1.55vw, 24px)/1.25 var(--display); }
.xt .p-all ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: clamp(14px, 1.15vw, 18px); color: var(--on-night-2); }
.xt .p-all ul li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.xt .p-all .bub { width: clamp(24px, 2vw, 30px); height: clamp(24px, 2vw, 30px); font-size: clamp(11px, 0.9vw, 13px); background: var(--ivory); color: #5d5d59; border-width: 1.4px; }
.xt .p-all ul li.shown { color: var(--hi); }
.xt .p-hand { font: italic 400 clamp(18px, 1.8vw, 26px)/1.3 var(--display); color: var(--on-night-2); }
.xt .p-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(20px, 4vw, 56px) 24px; }
.xt .p-hint { color: var(--on-night-3); font-size: 14.5px; }

/* ---- the page that prints, shown before it is sent to the printer ---- */
.xt.printview { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 26, 0.72); display: grid; place-items: center; padding: 20px; overflow: auto; }
.xt.printview[hidden] { display: none; }
.xt .pv-sheet { margin: 0; width: min(560px, 100%); max-height: 100%; overflow: auto; }
.xt .pv-page { margin-top: 18px; background: #fff; border: 1px solid var(--ivory-3); box-shadow: 0 6px 18px -8px rgba(20, 41, 94, 0.45); }
.xt .pv-page canvas { display: block; width: 100%; height: auto; }
.xt .pv-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.xt .btn.ink { background: var(--ink); color: var(--ivory); }
.xt .btn.ink:hover { background: var(--ink-hover); }

/* ---- printing: only the strips, at their true size ---- */
.xt-print-root { display: none; }
@media print {
  @page { size: letter; margin: 0; }
  html.xt-printing body > *:not(.xt-print-root) { display: none !important; }
  html.xt-printing body { background: #fff; }
  html.xt-printing .xt-print-root { display: block; }
  .xt-print-root canvas { display: block; width: 8.5in; height: 11in; page-break-after: always; }
}

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .xt .hero-grid { grid-template-columns: 1fr; }
  .xt .hero-paper { order: -1; max-width: 520px; width: 100%; }
  .xt .demo-grid { grid-template-columns: 1fr; }
  .xt .lesson-grid { grid-template-columns: 1fr; }
  .xt .three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .xt .choices { grid-template-columns: 1fr; }
  .xt .qs > li, .xt .tell { grid-template-columns: 34px minmax(0, 1fr); }
  .xt .p-choices, .xt .p-all, .xt .p-all ul { grid-template-columns: 1fr; }
  .xt .p-hint { display: none; }
  .xt .acts .btn { width: 100%; }
  .xt .sheet-band { padding: 0 12px; }
  .xt .sheet { padding: 22px 18px; }
  .xt .row { grid-template-columns: 1fr; padding: 20px 18px 18px 22px; }
  .xt .row-n { grid-row: auto; padding-top: 0; }
  .xt .make fieldset, .xt .fields { grid-template-columns: 1fr; }
  .xt .drow { margin-left: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .xt *, .xt *::before, .xt *::after, .xt.present, .xt.printview { transition: none !important; animation: none !important; }
}
