/* 🔴 TOBLIN ACADEMY — one stylesheet.
   ⛔ EVERY MARK IS DRAWN, NEVER TYPED. CB-331, 14 Nov 2026: a glyph typed as a character came out
   as an empty box on Windows on a paying customer's screen. A tick and a chevron here are
   borders and clip-paths on an empty span, so no font can fail them. */

:root {
  --ink: #16202a;
  --soft: #5d6b7a;
  --paper: #fcfbf7;
  --card: #ffffff;
  --line: #d9dee5;
  --gold: #c9a227;
  --go: #1f7a5a;
  --go-soft: #e7f3ee;
  --tap: #eef4fb;
  --rule: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 620px; margin: 0 auto; padding: 28px 16px 64px; }
.wrap.wide { max-width: 980px; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 26px 0 10px; }
p { margin: 0 0 14px; }
.big { font-size: 2.1rem; font-weight: 700; letter-spacing: 2px; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.soft { color: var(--soft); }
.err { background: #fdecec; border: 1px solid #f3c2c2; border-radius: 10px; padding: 10px 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rule);
  padding: 20px;
  margin: 0 0 18px;
  box-shadow: 0 1px 2px rgba(22, 32, 42, .04);
}

.field { display: block; margin: 0 0 16px; }
.field .label { display: block; font-size: .9rem; color: var(--soft); margin: 0 0 6px; }
/* the country picker (Q27) and the time-zone picker (Q21) are SELECTS, and a bare browser
   dropdown beside these boxes is a third the height and reads as a different kind of thing.
   Seen on 05_S3_where_EN.png - one line of the sign-up form looking unfinished is one line
   of a page somebody is paying on. */
.field input, .field select {
  display: block; width: 100%; padding: 13px 12px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: inherit;
  /* a 44px target, the same as everything else a finger has to hit */
  min-height: 48px; box-sizing: border-box;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--tap); border-color: var(--gold); }

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: 13px 22px; min-height: 48px; border-radius: 10px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.quiet { background: #fff; color: var(--ink); }
.btn.danger { background: #a12121; border-color: #a12121; }
.btn[disabled] { opacity: .45; cursor: default; }

.langbar { text-align: right; max-width: 620px; margin: 0 auto; padding: 10px 16px 0; }
.lang { color: var(--soft); text-decoration: none; border-bottom: 1px dotted var(--line); font-size: .9rem; }

/* the child tiles — the animal IS the name */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 12px; border: 2px solid var(--line); border-radius: var(--rule);
  background: #fff; text-decoration: none; color: inherit; min-height: 150px; justify-content: center;
}
.tile:hover, .tile:focus-visible { border-color: var(--gold); background: #fffdf3; }
.tile .animal { font-size: 1.25rem; font-weight: 700; }
.tile .letter { color: var(--soft); font-size: .9rem; letter-spacing: 2px; }
.tile.done { border-color: var(--go); background: var(--go-soft); }

/* ⭐ THE TICK, DRAWN. Two borders and a rotation — no character, no font, no box. */
.tick { display: inline-block; width: 13px; height: 7px; margin-right: 6px; vertical-align: middle;
  border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg); }

/* ⭐ THE CHEVRON, DRAWN. */
.chev { display: inline-block; width: 0; height: 0;
  border-style: solid; border-width: 6px 5px 0 5px;
  border-color: currentColor transparent transparent transparent; }

.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.rowlist li:last-child { border-bottom: 0; }
.rowlist .strand { font-weight: 600; }

.code { font-variant-numeric: tabular-nums; letter-spacing: 3px; font-weight: 700; }
.sharecodes { display: grid; gap: 8px; }
.sharecodes .one { display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; }
.sharecodes .used { opacity: .5; }

/* the night page */
.part { border: 1px solid var(--line); border-radius: var(--rule); background: #fff; padding: 18px; margin: 0 0 16px; }
.part h2 { margin-top: 0; }
.q { font-size: 1.1rem; margin: 0 0 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { font: inherit; padding: 11px 16px; min-height: 46px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; }
.opt:hover { border-color: var(--gold); }
.opt[aria-pressed="true"] { border-color: var(--go); background: var(--go-soft); font-weight: 600; }
.story { background: #f6f3ea; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }

/* 🔴 "NOW YOU TELL ME" — the one box on the page she WRITES in, and it needs to look like one.
   ⚠ [M] Found by looking at 16_night2_real_night_EN.png, not by any test: with no rule at all a
   textarea falls back to the browser default of about 20 characters wide, so the question that
   invites a child to say what she thought got a box a third the width of the page next to a
   writing part whose lines run the full width. Every test passed; it just looked like an
   afterthought, which is the opposite of what this question is for. */
textarea.say { font: inherit; width: 100%; box-sizing: border-box; min-height: 92px; resize: vertical;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
/* ⛔ AND THE FOCUS RING STAYS. My first version killed the outline and leaned on the border
   colour instead — the a11y guard went red the same minute, which is exactly its job: a border
   that changes colour is not a focus indicator for anyone who cannot see that colour change. */
textarea.say:focus-visible { border-color: var(--gold); outline: 3px solid var(--gold); outline-offset: 2px; }

/* the canvas — strokes, never a photograph */
.canvas-wrap { border: 1.5px dashed var(--line); border-radius: var(--rule); background: #fff; padding: 10px; }
canvas { display: block; width: 100%; height: 220px; touch-action: none; border-radius: 8px; }

/* 🔴 Q20 — WITH NO SCRIPTS THE CANVAS IS A DEAD RECTANGLE, so it is not shown at all.
   ⛔ `canvas.js` adds `js` to <html> BEFORE it measures anything; a canvas that is display:none
   when it is measured reports clientWidth 0 and is drawn 0 x 0, which is how a hidden thing
   passes a test while a child can draw nothing. The order is held by a test.
   ⚠ THESE RULES SET `display` AND `background` ONLY, and each is a separate selector of its
   own. The base `canvas { }` rule above keeps its specificity exactly as it was, so
   `.write-lines canvas { height: auto }` and `.trace-canvas { height: 120px }` still win the
   heights they won before — adding `.js` to the base selector would have quietly taken the
   trace canvas from 120px to 220px. */
html:not(.js) canvas { display: none; }
/* the gradient IS the ruled lines on screen; with no scripts the SVG is, so they must not
   both be there, half a line out of step with each other. */
html:not(.js) .write-lines { background: #fff; }
/* and the grey guide letter is what the dotted SVG letter stands in for. */
html:not(.js) .trace-guide { display: none; }

/* ⭐ the plain stand-ins themselves — ruled lines and dotted letters, for a page that runs
   nothing and for the paper, which runs nothing by definition. */
.paper-lines, .paper-trace { display: block; }
.paper-work { background: #fff; }

/* the cover-up tool */
.doc-stage { position: relative; display: inline-block; max-width: 100%; }
.doc-stage img { display: block; max-width: 100%; border-radius: 10px; }
.haze { position: absolute; background: rgba(120, 130, 140, .92); border-radius: 6px;
  backdrop-filter: blur(6px); pointer-events: none; }
.toolbar { display: flex; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }

@media (max-width: 420px) {
  .wrap { padding: 20px 14px 56px; }
  h1 { font-size: 1.35rem; }
  .big { font-size: 1.7rem; }
}

/* the numbers to copy, above the canvas — a guide, not an answer */
.trace-guide { font-size: 2.6rem; letter-spacing: 16px; color: #c9cfd6; margin: 0 0 6px; font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────────────────────────────────────
   CB-334 §2/§3 — THE SUM, COLUMN-ALIGNED. The engine's layout on the web page.
   ⛔ Green on a right digit, never red. A digit that is not right is HELD: amber,
   still there, and the box waits. */
.sumboard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 0 10px; }
.sum { --cw: 40px; --ch: 46px; --fs: 1.7rem; display: flex; flex-direction: column; gap: 2px; }
.srow { display: flex; }
.srow.carry { height: 22px; }
.sc { width: var(--cw); height: var(--ch); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs); font-variant-numeric: tabular-nums; position: relative; }
.srow.carry .sc { height: 22px; font-size: calc(var(--fs) * .5); color: var(--soft); }
.sc.in { border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.sc.in.now { border-color: var(--gold); background: #fffdf3; }
.sc.in.ok { border-color: var(--go); background: var(--go-soft); color: var(--go); font-weight: 700; }
.sc.in.held { border-color: #d7a13b; background: #fdf6e7; }
.srule { height: 3px; background: var(--ink); width: calc(var(--cols) * var(--cw)); margin: 2px 0; }
.sum.div .srow { justify-content: flex-start; }
.sum.div .shelter { border-top: 3px solid var(--ink); }
.sum.div .wall { border-right: 3px solid var(--ink); border-radius: 0 0 14px 0; }
.sum.div .tiny { position: absolute; left: 1px; top: 1px; width: calc(var(--cw) * .42); height: calc(var(--ch) * .42);
  font-size: calc(var(--fs) * .42); border-width: 1.5px; border-radius: 5px; }
.sum.div .rem { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sum.div .rlab { font-size: calc(var(--fs) * .7); color: var(--soft); font-weight: 700; }
.shint { color: var(--soft); font-size: .95rem; min-height: 1.4em; margin: 6px 0 0; }
.pad { display: grid; grid-template-columns: repeat(5, 58px); gap: 8px; margin: 10px 0 0; }
.pad button { height: 54px; border-radius: 12px; border: 2px solid var(--ink); background: #fff;
  font: 700 1.5rem/1 system-ui, sans-serif; cursor: pointer; }
.pad button:active { background: var(--tap); }

/* the write screen */
.write-example { color: #aab2bb; font-size: 1.35rem; margin: 0 0 8px; }
.write-lines { background: repeating-linear-gradient(#fff 0 33px, var(--line) 33px 34px); border: 1.5px solid var(--line);
  border-radius: 10px; }
.write-lines canvas { height: auto; }
.wordbox { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wordbox span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; background: #fff; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks label { display: flex; gap: 10px; align-items: center; }

/* the animal picker */
.animals { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.animal { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px;
  border: 2px solid var(--line); border-radius: var(--rule); background: #fff; cursor: pointer; font: inherit; }
.animal:hover, .animal:focus-visible { border-color: var(--gold); background: #fffdf3; }
.animal[disabled] { opacity: .35; cursor: not-allowed; }
.animal .face { width: 46px; height: 46px; border-radius: 50%; background: var(--tap); position: relative; }
.animal .face::before, .animal .face::after { content: ''; position: absolute; top: -7px; width: 16px; height: 16px;
  border-radius: 50% 50% 0 0; background: var(--tap); }
.animal .face::before { left: 3px; } .animal .face::after { right: 3px; }
.question-of { color: var(--soft); font-size: .95rem; letter-spacing: .04em; margin: 0 0 8px; }

/* CB-335 §1/§2 — the decimal point is a column, not a box; the borrow is a mark on the digit
   above, and there is NO borrowing row (Terrence, 4 Nov). */
.sc.point { font-weight: 700; }
.sc.struck { position: relative; }
.sc.struck::after { content: ''; position: absolute; left: 18%; right: 18%; top: 50%;
  border-top: 2px solid var(--soft); transform: rotate(-12deg); }
.sc .borrowed { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: calc(var(--fs) * .42); color: var(--go); font-weight: 700; }
.sc .tenmark { position: absolute; top: -8px; left: 2px; font-size: calc(var(--fs) * .40);
  color: var(--go); font-weight: 700; }

/* 🔴 CB-336 items 12/13 — SLOANE'S REVIEW DESK. Backroom furniture: dense on purpose, because
   the whole point is one family's week in one screen. No child-facing rule applies here. */
table.desk { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 4px; }
table.desk th, table.desk td { border-bottom: 1px solid var(--line); padding: 6px 8px;
  text-align: left; vertical-align: top; }
table.desk th { font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--soft); }
table.desk tr:last-child td { border-bottom: 0; }
.desk-canvas { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px;
  display: inline-block; max-width: 220px; }
.desk-canvas svg { width: 100%; height: auto; display: block; }

/* 🔴 C3 — the part kinds that are not a column sum. The keypad is the same one; only what it
   fills in changes, so a child learns one way of answering and uses it everywhere. */
.entry-box { min-width: 6ch; padding: 0 10px; text-align: center; }
.fraction { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.frac-rule { width: 100%; min-width: 3ch; height: 2px; background: var(--ink); border-radius: 1px; }
.frac-num, .frac-den { min-width: 3ch; }
.pad .pad-back { font-size: calc(var(--fs) * .62); }

/* 🔴 C3 — picture choice and letter-trace sets.
   ⛔ A FIVE-YEAR-OLD'S TARGET IS THE PICTURE, not a tick beside it, so the whole card is the
   control and it is big. 160px of picture plus its word. */
.pics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.pic { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; padding: 10px; background: var(--card);
  min-width: 180px; }
.pic img { display: block; border-radius: 8px; }
.pic span { font-weight: 600; }
.pic input { position: absolute; opacity: 0; width: 0; height: 0; }
.pic:has(input:checked) { border-color: var(--go); background: var(--go-soft); }
.pic:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ⭐ S5 — THE PICTURES A QUESTION IS ASKED *ABOUT* (Sloane's `show` block).
   ⛔ NOT the same thing as .pics above: .pic is a picture you CHOOSE, this is a picture you
   COUNT or read. It carries no control at all — the answer is in the options underneath.
   ⚠ It wraps, because "How many?" goes up to ten and ten icons in a row is wider than a phone. */
.showpics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.showpics img { display: block; width: 96px; height: 96px; }

.traceset { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.trace-one { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 150px; flex: 1 1 150px; }
.trace-one .canvas-wrap { width: 100%; }
.trace-label { font-size: 12px; color: var(--soft); }

/* 🔴 16 Nov, her answer 36 — A BOX SIZED FOR ONE LETTER, WITH A WHOLE WORD IN IT.
   ⛔ Every handwriting set until tonight was single letters, so one width fitted all of them.
   Her part 2 brings "Aa", then "an" and "ch", then "ship", "tree" and "night" — and *"a string
   longer than one character is ONE box, traced joined"*. In a 150px box five letters get 30px
   each inside a 120px-tall box: a shape no child can trace, and the grey guide line above it
   (2.6rem at 16px letter-spacing, ~285px for five) ran straight out of the box.
   ⭐ So the box is as wide as the string is long. ⚠ CLASSES, NOT AN INLINE `style`: the CSP is
   `style-src 'self'` with no `unsafe-inline`, so a computed `style="flex-basis:…"` would be
   DROPPED BY THE BROWSER and nothing in a test on the HTML would have noticed.
   ⚠ `max-width: 100%` on every one of them: five letters' worth is wider than a phone, and a
   box that overflows the page is worse than a box that shrinks to fit it. */
.trace-one.trace-n2 { min-width: 180px; flex-basis: 180px; max-width: 100%; }
.trace-one.trace-n3 { min-width: 230px; flex-basis: 230px; max-width: 100%; }
.trace-one.trace-n4 { min-width: 280px; flex-basis: 280px; max-width: 100%; }
.trace-one.trace-n5 { min-width: 330px; flex-basis: 330px; max-width: 100%; }
/* ⚠ Six or more is her next file, not a guess: anything longer lands here and still fits. */
.trace-one.trace-n6 { min-width: 330px; flex-basis: 100%; max-width: 100%; }
/* ⛔ The guide letters must not be wider than the box they head. Tabular spacing is for digits
   in a column; a joined string is a word, and 16px between its letters is not what she asked
   a child to copy. */
.trace-one.trace-multi .trace-guide { letter-spacing: 4px; font-size: 2.1rem; }

/* 🔴 C4 — "Look at this one first". The same drawing as the child's own sum, worked.
   ⛔ A worked example is NOT a thing to answer, so it never carries a keypad. */
.sumboard--example { background: var(--go-soft); border-radius: 12px; padding: 10px 12px; }
.example-say { min-height: 1.4em; color: var(--ink); }
.example-next, .example-all { margin: 6px 6px 0 0; min-height: 44px; min-width: 44px; }

/* ═══ 🔴 C5 — THE PAPER VERSION ═══════════════════════════════════════════════════════════
   ⛔ MINIMAL INK. A family printing a page a night on a home printer should not be paying for
   our colours. Everything is black on white: no backgrounds, no shaded cards, no gold.
   ⛔ AND NOTHING THAT CANNOT BE USED ON PAPER IS PRINTED — no keypad, no buttons, no language
   switch, no Send. A control on paper is ink spent on something a child cannot press.
   ⚠ A4 and Letter differ in height, not much in width. 15mm margins fit both without clipping. */
@media print {
  @page { size: A4 portrait; margin: 15mm; }

  html, body { background: #fff !important; color: #000 !important; font-size: 12pt; }

  /* furniture that has no meaning on paper */
  .pad, .btn, button, .langbar, .eb-listen, form .shint,
  [data-keep-note], .example-next, .example-all, nav, footer { display: none !important; }

  /* no colour, no shade, no shadow — just the marks */
  .card, .part, .q-block, .sumboard, .sumboard--example, .desk-canvas, .pic {
    background: #fff !important; box-shadow: none !important; border-color: #000 !important;
  }
  .sumboard--example { border: 1pt solid #000; }

  /* ⛔ THE PICTURES STAY ON PAPER. "How many apples?" with no apples is not a question. They
     are drawn smaller instead: ten icons at 96px is a third of a page of ink. */
  .showpics img { width: 56px; height: 56px; }
  /* ⭐ Q24, her answer 21 — "The model sentence goes to #333 on paper, yes."
     `.write-example` is #aab2bb on screen, which says "this is the example, not your writing".
     On a home printer that is very nearly nothing at all, and the example is the half of a
     writing prompt a child copies the shape of. */
  .soft, .story, .trace-label, .write-example { color: #333 !important; }

  /* an answer box on paper is a box to write in */
  .sc.in, .entry-box, .frac-num, .frac-den, .paper-answer {
    border: 1pt solid #000 !important; background: #fff !important; color: #000 !important;
    min-height: 10mm; min-width: 8mm;
  }
  .sc.in.ok, .sc.in.held, .sc.in.now { border-color: #000 !important; }

  /* ⭐ a part should not be cut in half by a page break */
  .part { break-inside: avoid; page-break-inside: avoid; margin-bottom: 8mm; }
  .q-block { break-inside: avoid; page-break-inside: avoid; }

  /* the canvas is a ruled space to write in, not a screen */
  .canvas-wrap { border: 1pt solid #000; min-height: 25mm; }
  canvas { display: none !important; }
  /* ⭐ Q20 — and what is IN that space is the lines, or the dotted letters, printed as SVG.
     ⛔ The dashed screen border around them becomes a thin solid one: a printed box a child
     writes in is a box, not a suggestion. */
  .paper-work { border: 1pt solid #000 !important; padding: 2mm !important; }
  .paper-lines, .paper-trace { display: block !important; }
  /* her grey guide letter does not print legibly; the dotted SVG one is the guide on paper. */
  .trace-guide { display: none !important; }

  a[href]::after { content: ''; }           /* no printed URLs cluttering a child's sheet */
}

/* 🔴 C5 — THE WRITTEN-OUT SUM, on the sheet only. A column sum is built by sums.js, which does
   not run on paper, so the sheet prints the question as Sloane wrote it and a box to answer in.
   ⚠ It is visible on SCREEN too: /print is looked at in the browser before it is printed, and a
   preview that hides the question is a preview of nothing. */
.paper-sum .q { margin: 0 0 6px; }
.paper-answer {
  display: inline-block; min-width: 22mm; min-height: 10mm;
  border: 1px solid var(--line, #000); border-radius: 4px;
}
@media print { .paper-answer { min-width: 28mm; } }

/* 🔴 the three faces, on paper — a word to circle, because a button prints as nothing and
   "How did it go?" over white space is not a question anybody can answer. */
.paper-face { display: inline-block; border: 1px solid var(--line, #000); border-radius: 999px;
  padding: 6px 16px; margin: 0 8px 6px 0; }
@media print { .paper-face { border: 1pt solid #000 !important; } }

/* the paper header, shown only when printing */
.sheet-head { display: none; }
@media print { .sheet-head { display: block; border-bottom: 1pt solid #000; padding-bottom: 3mm;
  margin-bottom: 5mm; font-size: 11pt; } }

/* 🔴 C12 CONSEQUENCE — NO INLINE STYLES ANYWHERE.
   The tight Content-Security-Policy (`style-src 'self'`) blocks a `style="…"` attribute, and the
   device walk caught the night page doing exactly that. The honest fix is to stop writing
   inline styles, not to loosen the policy — `'unsafe-inline'` in style-src is most of the way
   to having no policy at all.
   ⚠ The writing canvas needs a height that depends on how many LINES the item asks for, so the
   handful of heights it can take are named classes rather than arithmetic in an attribute. */
.gap-s { margin-top: 12px; }
.gap-m { margin-top: 14px; }
.gap-l { margin-top: 22px; }

.lines-6 { height: 204px; }
.lines-7 { height: 238px; }
.lines-8 { height: 272px; }
.lines-9 { height: 306px; }
.lines-10 { height: 340px; }
.lines-11 { height: 374px; }
.lines-12 { height: 408px; }
.trace-canvas { height: 120px; }

/* ⚠ Sloane's price line is a SENTENCE, not a number — "US$29 · one time · two children
   included" — and at display size it broke as "two children / included". `balance` splits a
   short heading across lines evenly instead of leaving an orphan. */
.big { text-wrap: balance; }

/* 🔴 Q25 — THE ANSWERS PAGE, which is a PARENT'S page and never goes in a child's bag.
   Sloane, answer 22: a separate page, printed only from the parent page. The child's sheet
   keeps its guard exactly as it was — every answer still comes off that one. */
.answers { margin: 0; padding-left: 1.4em; }
.answers li { margin: 4px 0; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.ans-q { flex: 1 1 60%; }
.ans-a { font-weight: 700; }
@media print {
  .answers li { break-inside: avoid; }
  .ans-a { font-weight: 700; }
}

/* 🔴 §68 / Q83 — THE "TURN YOUR SCREEN SIDEWAYS" CARD.
   Terrence, 16 Nov: "we want everything working in landscape. If they turn it to portrait, we
   need to tell them." Sloane's §68: a card on phone AND iPad, dismissible by one small link.

   ⛔ SHOWN BY A MEDIA QUERY AND HIDDEN AGAIN BY A CHECKBOX, so a page that runs no script still
   tells the child and still lets her carry on. rotate.js only makes the choice outlast the page.

   ⚠ `(hover: none) and (pointer: coarse)` AND NOT A WIDTH. A width cap that reached an iPad
   (1024px) also catches a laptop with a narrow window, and a desktop in a tall window is not a
   device anybody turns. The pointer query asks the question that is actually meant: is this a
   thing held in a hand. ⛔ It is also why this cannot be checked by resizing a desktop browser —
   the device walk sets hasTouch, which is the only way the rule fires. */
.rotate-card { display: none; }
.rotate-keep { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .rotate-card { display: flex; position: fixed; inset: 0; z-index: 90;
    align-items: center; justify-content: center; background: var(--paper); padding: 24px; }
  /* ⭐ the dismiss. The checkbox sits before the card, so this is a sibling selector and needs
     no script at all. */
  .rotate-keep:checked ~ .rotate-card { display: none; }
}

.rotate-inner { max-width: 22rem; text-align: center; }
.rotate-h { font-size: 1.5rem; font-weight: 700; margin: 18px 0 8px; color: var(--ink); }
.rotate-p { color: var(--soft); margin: 0 0 22px; }
.rotate-keep-label { display: inline-block; color: var(--go); text-decoration: underline;
  padding: 10px 14px; cursor: pointer; font-size: 0.95rem; }
/* ⛔ THE FOCUS RING HAS TO BE DRAWN ON THE LABEL, because the thing that takes focus is the
   off-screen checkbox. Without this a child moving by keyboard or switch control lands on the
   dismiss and nothing anywhere shows it. */
.rotate-keep:focus-visible ~ .rotate-card .rotate-keep-label { outline: 3px solid var(--go);
  outline-offset: 2px; border-radius: 6px; }

/* the phone drawn in CSS, turning. ⛔ NOT A CHARACTER and not an emoji: CB-331 found "□A" on a
   customer's screen when a glyph was typed as text, and the map page bans emoji outright. */
.rotate-mark { display: block; width: 46px; height: 76px; margin: 0 auto;
  border: 3px solid var(--ink); border-radius: 9px; position: relative;
  transform: rotate(-18deg); transform-origin: 50% 70%; }
.rotate-mark::before { content: ""; position: absolute; left: 50%; top: 6px; width: 14px;
  height: 3px; margin-left: -7px; background: var(--line); border-radius: 2px; }
.rotate-mark::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 16px;
  height: 16px; margin-left: -8px; border: 3px solid var(--go); border-top-color: transparent;
  border-radius: 50%; transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .rotate-mark { animation: rotate-tip 2.4s ease-in-out infinite; }
}
@keyframes rotate-tip {
  0%, 55%, 100% { transform: rotate(-18deg); }
  30%, 40% { transform: rotate(-78deg); }
}

/* ⚠ On paper there is no such thing as holding it sideways. */
@media print { .rotate-card { display: none !important; } }

/* 🔴 §69 — "CARRY ON WHERE YOU STOPPED?" The kept work is put back and the page says so.
   ⛔ keep.js has written a draft of the form on every keystroke since CB-336 and NOTHING HAS
   EVER READ IT BACK — the work was kept where no child could reach it. This is the panel that
   tells her it came back, and the one control Sloane named. */
.carryon { border: 1.5px solid var(--go); background: var(--go-soft); border-radius: var(--rule);
  padding: 12px 14px; margin: 0 0 16px; }
.carryon-q { font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.carryon-line { margin: 0; color: var(--soft); font-size: 0.95rem; }
.carryon-do { margin: 8px 0 0; }
/* ⚠ a button that READS as a link, because starting again is the quieter of the two things she
   can do here and the loud one has already happened. */
.carryon-no { background: none; border: 0; padding: 6px 0; color: var(--go);
  text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.95rem; }
@media print { .carryon { display: none; } }
