/* APTAVIA 2.0 · the public street, the four subject pages (/gamsat-biology, /gamsat-chemistry, /gamsat-physics, /gamsat-humanities; 9 Nov 2026).
   HAND-WRITTEN, not generated: there is no walk mock-up for these pages. Edit this file, then run `node scripts/dev/public/sync-subjects-sheet.mjs`
   to refresh its served copy (public/spine/v2/pub-subjects.css) and its version (lib/spine/v2/css-pub-subjects.ts); tests/subject-pages.test.ts
   checks both. Everything is scoped under `.sj` (SubjectPage2's root), on top of the public kit (public-shell.css).
   The unit borrows THE QUESTION CARD's grammar (components/practice/v2/kit/question-card.ts and its shared/question-card.css): the stimulus on
   PAPER (an ACER-style item: paper = ACER), the questions on GLASS, INK for everything, ONE VIOLET for "now" (focus, the pick's hover edge),
   ROSE only for "costs the mark" (her wrong pick), the SECTION INK only on the small chip, the key an ink tick (never green), a miss a word-pill
   with a cross (never a cross in a pink circle). Figures are ACER mono: ink on paper, two traces told apart by dash, never by colour.
   Tokens and oklch() only, no hex. Motion: once, opacity / translate / rotate / clip, never a loop or a scale; reduced motion and the kit's
   rest switch (`html.pub-rest`) show the finished page at once. With JS off nothing waits: every resting state is the finished state. */

.sj {
  --sj-ink: var(--pub-ink); --sj-body: var(--pub-body); --sj-muted: var(--pub-muted);
  --sj-now: var(--sp-primary);
  --sj-sec: var(--sec-3);
  --sj-sans: var(--pub-font);
  --sj-serif: var(--font-newsreader, 'Newsreader'), 'Newsreader Fallback', Georgia, serif;
  --sj-glass: linear-gradient(180deg, color-mix(in srgb, var(--sj-ink) 9%, transparent), color-mix(in srgb, var(--sj-ink) 4%, transparent));
  --sj-edge: color-mix(in srgb, var(--sj-ink) 16%, transparent);
  --sj-spec: color-mix(in srgb, var(--sj-ink) 20%, transparent);
  --sj-shade: oklch(0 0 0 / .32);
  --sj-drop: 0 22px 44px -26px oklch(0.03 0.01 280 / .95), 0 2px 5px -2px oklch(0.03 0.01 280 / .55);
  /* paper: the Studio's cream, dimmed a little in the dark so it never out-shines the work */
  --sj-paper: oklch(0.875 0.03 84);
  --sj-paper-edge: oklch(0.72 0.035 80);
  --sj-paper-ink: oklch(0.26 0.022 60);
  --sj-paper-ink-2: oklch(0.42 0.022 60);
  --sj-paper-rule: oklch(0.32 0.02 60 / .55);
  /* rose = costs the mark */
  --sj-rose: oklch(0.85 0.08 6);
  --sj-rose-wash: oklch(0.62 0.13 6 / .2);
  --sj-rose-ink: oklch(0.82 0.1 6);
  --sj-rose-edge: oklch(0.72 0.12 6 / .7);
  --sj-glow0: oklch(0.86 0.11 78 / .34); --sj-glow1: oklch(0.80 0.10 72 / .12); --sj-glow2: oklch(0.80 0.10 72 / 0);
  --sj-sheet-shadow: oklch(0.02 0.01 280 / .62);
}
html:not(.dark) .sj {
  --sj-glass: linear-gradient(180deg, oklch(1 0 0), oklch(0.985 0.004 300));
  --sj-edge: color-mix(in srgb, var(--sj-ink) 17%, transparent);
  --sj-spec: oklch(1 0 0);
  --sj-shade: color-mix(in srgb, var(--sj-ink) 10%, transparent);
  --sj-drop: 0 1px 1px color-mix(in srgb, var(--sj-ink) 10%, transparent), 0 10px 22px -14px color-mix(in srgb, var(--sj-ink) 40%, transparent);
  --sj-paper: oklch(0.982 0.012 85);
  --sj-paper-edge: oklch(0.84 0.02 80);
  --sj-rose: oklch(0.9 0.062 6);
  --sj-rose-wash: oklch(0.93 0.045 6);
  --sj-rose-ink: oklch(0.45 0.15 6);
  --sj-rose-edge: oklch(0.55 0.15 6 / .55);
  --sj-glow0: oklch(0.97 0.05 85 / .9); --sj-glow1: oklch(0.95 0.04 85 / .35); --sj-glow2: oklch(0.95 0.04 85 / 0);
  --sj-sheet-shadow: color-mix(in srgb, var(--sj-ink) 30%, transparent);
}
.sj[data-subject="humanities"] { --sj-sec: var(--sec-1); }
.sj .sj-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sj .sj-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- hero: the units, drawn as paper under the lamp */
.sj .sj-hero .pub-h1 { text-wrap: balance; }
.sj .sj-h1-b { display: block; margin-top: 12px; font-size: .46em; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; color: var(--sj-body); }
html:not(.dark) .sj .sj-h1-b { color: color-mix(in srgb, var(--sj-ink) 78%, transparent); }
.sj .sj-lede { max-width: 34em; }
/* The question bank's iPhone line (21 Nov 2026): only iOS WebKit knows -webkit-touch-callout, so only iPhone and iPad see it. */
.sj .sj-ios-line { display: none; }
@supports (-webkit-touch-callout: none) {
  .sj .sj-ios-line { display: block; margin-top: 12px; padding: 11px 18px; border-radius: 999px;
    font: 600 14px/1.35 var(--pub-font); text-align: center; text-decoration: none; color: var(--pub-ink); text-wrap: balance;
    background: var(--pub-field); box-shadow: inset 0 0 0 1px var(--pub-edge-strong), inset 1px 1px 0 var(--pub-spec); }
}
.sj .sj-hero-pic { max-width: 600px; }
.sj-hero-fig .sj-h-glow0 { stop-color: var(--sj-glow0); } .sj-hero-fig .sj-h-glow1 { stop-color: var(--sj-glow1); } .sj-hero-fig .sj-h-glow2 { stop-color: var(--sj-glow2); }
.sj-hero-fig .sj-h-ground { fill: var(--sj-sheet-shadow); opacity: .55; }
.sj-hero-fig .sj-h-shadow { fill: var(--sj-sheet-shadow); }
.sj-hero-fig .sj-h-paper { fill: var(--sj-paper); stroke: var(--sj-paper-edge); stroke-width: 1; }
.sj-hero-fig .sj-h-k { font: 700 11px/1 var(--sj-sans); letter-spacing: .14em; fill: var(--sj-paper-ink-2); }
.sj-hero-fig .sj-h-t { font: 700 17px/1 var(--sj-sans); letter-spacing: -.01em; fill: var(--sj-paper-ink); }
.sj-hero-fig .sj-h-rule { stroke: var(--sj-paper-rule); stroke-width: 1; }
.sj-hero-fig .sj-h-rule--b { stroke-width: 1.6; }
.sj-hero-fig .sj-h-rule--f { opacity: .45; }
.sj-hero-fig .sj-h-th { font: 650 10.5px/1 var(--sj-sans); fill: var(--sj-paper-ink); }
.sj-hero-fig .sj-h-td { font: 500 11.5px/1 var(--sj-sans); font-variant-numeric: lining-nums; fill: var(--sj-paper-ink); }
.sj-hero-fig .sj-h-td--k { font-weight: 700; }
.sj-hero-fig .sj-h-intro { font: italic 400 11.5px/1 var(--sj-serif); fill: var(--sj-paper-ink-2); }
.sj-hero-fig .sj-h-pline { font: 400 12.4px/1 var(--sj-serif); fill: var(--sj-paper-ink); }
.sj-hero-fig .sj-h-pline--poem { font-size: 11.3px; }
.sj-hero-fig .sj-h-ptitle { font: 650 13px/1 var(--sj-serif); letter-spacing: .08em; fill: var(--sj-paper-ink); }
.sj-hero-fig .sj-h-ln { font: 500 9.5px/1 var(--sj-sans); fill: var(--sj-paper-ink-2); }
.sj-hero-fig .sj-h-small { font: 500 10px/1 var(--sj-sans); fill: var(--sj-paper-ink-2); }
.sj-hero-fig .sj-h-axis { fill: none; stroke: var(--sj-paper-ink); stroke-width: 1.3; }
.sj-hero-fig .sj-h-grid { stroke: var(--sj-paper-ink); stroke-width: .7; opacity: .16; }
.sj-hero-fig .sj-h-shade { fill: color-mix(in oklch, var(--sj-paper-ink) 9%, transparent); }
.sj-hero-fig .sj-h-line { fill: none; stroke: var(--sj-paper-ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sj-hero-fig .sj-h-dot { fill: var(--sj-paper); stroke: var(--sj-paper-ink); stroke-width: 1.6; }
html.dark .sj-hero-fig .sj-h-halo { mix-blend-mode: screen; }
/* arrival, once (the kit's own beat: html.pub-arrive, then .pub-go): the sheets rise and fan open from a closed stack; the front graph draws */
.sj-hero-fig .sj-h-sheet { transform-box: fill-box; transform-origin: 50% 100%; transition: rotate .95s var(--pub-ease), translate .95s var(--pub-ease), opacity .6s linear; transition-delay: calc(.05s + var(--sj-i, 0) * .06s); }
html.pub-arrive:not(.pub-go) .sj-hero-fig .sj-h-sheet { opacity: 1; translate: 0 12px; }
html.pub-arrive:not(.pub-go) .sj-hero-fig .sj-h-sheet[data-pos="l"] { rotate: 7deg; translate: 70px 22px; }
html.pub-arrive:not(.pub-go) .sj-hero-fig .sj-h-sheet[data-pos="r"] { rotate: -6deg; translate: -70px 22px; }
.sj-hero-fig .sj-h-line[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--pub-ease) .75s; }
html.pub-arrive:not(.pub-go) .sj-hero-fig .sj-h-line[pathLength] { stroke-dashoffset: 1; }

/* ---------------------------------------------------------------- the opening: the short answer, and the map of the page */
.sj .sj-intro { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(20px, 3vw, 36px); }
.sj .sj-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 26px; }
@media (min-width: 960px) { .sj .sj-intro-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: start; } }
.sj .sj-eyebrow { margin: 0 0 12px; font: 650 12px/1.2 var(--sj-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pub-lamp); }
.sj .sj-answer { position: relative; padding: 24px 26px 20px 28px; border-radius: 22px; background: var(--pub-card); box-shadow: inset 3px 0 0 var(--pub-lamp), inset 0 0 0 1px var(--pub-edge), inset 1px 1px 0 var(--pub-spec), var(--pub-drop); }
.sj .sj-answer p { margin: 0 0 12px; font: 500 17px/1.62 var(--sj-sans); color: var(--sj-ink); text-wrap: pretty; }
.sj .sj-answer p + p { color: var(--sj-body); }
.sj .sj-answer .sj-updated { margin: 16px 0 0; font: 500 13px/1.45 var(--sj-sans); color: var(--sj-muted); }
.sj .sj-map ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sj .sj-map a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px 10px 12px; border-radius: 16px; text-decoration: none; color: var(--sj-ink);
  background: var(--pub-field); box-shadow: inset 0 0 0 1px var(--pub-edge); transition: translate .2s var(--pub-ease), box-shadow .2s linear; }
.sj .sj-map a:hover { translate: 3px 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sj-now) 55%, var(--pub-edge)); }
.sj .sj-map b { display: block; font: 650 15px/1.3 var(--sj-sans); }
.sj .sj-map small { display: block; margin-top: 3px; font: 500 13px/1.3 var(--sj-sans); color: var(--sj-muted); }
.sj .sj-map-i { width: 30px; height: 30px; padding: 6px; border-radius: 9px; fill: none; stroke: var(--sj-paper-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: var(--sj-paper); }

/* ---------------------------------------------------------------- a unit: its heading, then the card (paper + glass) */
.sj .sj-units { padding: 0 var(--pub-gut) clamp(48px, 7vw, 96px); }
.sj .sj-unit { max-width: var(--pub-max); margin: 0 auto; padding-top: clamp(44px, 6vw, 84px); scroll-margin-top: calc(var(--pub-head-h) + 8px); }
.sj .sj-unit-top { max-width: 820px; margin: 0 0 22px; }
.sj .sj-unit-meta { margin: 12px 0 0; font: 500 15px/1.55 var(--sj-sans); color: var(--sj-body); }
.sj .sj-unit-meta a { color: var(--sj-ink); font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sj-ink) 35%, transparent); text-underline-offset: .22em; }
.sj .sj-unit-meta a:hover { text-decoration-color: currentColor; }

.sj .sj-qc { container: sjqc / inline-size; position: relative; border-radius: 22px; padding: 14px 18px 20px; color: var(--sj-ink); font: 400 16px/1.5 var(--sj-sans);
  background: var(--sj-glass); box-shadow: inset 0 0 0 1px var(--sj-edge), inset 1px 1px 0 var(--sj-spec), inset -1px -1px 0 var(--sj-shade), var(--sj-drop); }
html.dark .sj .sj-qc { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sj .sj-qc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 44px; margin: 0 0 12px; }
.sj .sj-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 7px; border-radius: 7px;
  border: 1.5px solid color-mix(in srgb, var(--sj-sec) 72%, transparent); color: var(--sj-sec); font: 800 12.5px/1 var(--sj-sans); letter-spacing: .03em; }
.sj .sj-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sj .sj-count { font: 600 14px/1.2 var(--sj-sans); color: var(--sj-body); font-variant-numeric: tabular-nums; }
.sj .sj-count b { color: var(--sj-ink); font-weight: 750; }
.sj .sj-pace { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px/1.2 var(--sj-sans); color: var(--sj-body); font-variant-numeric: tabular-nums; }
.sj .sj-pace svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sj .sj-qc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@container sjqc (min-width: 880px) {
  .sj .sj-qc-body { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .sj .sj-stim { position: sticky; top: calc(var(--pub-head-h, 64px) + 14px); }
  .sj .sj-qc-body .sj-paper { max-height: calc(100vh - var(--pub-head-h, 64px) - 32px); max-height: calc(100svh - var(--pub-head-h, 64px) - 32px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
    /* a paper taller than the window scrolls on its own; a soft shade at the top or foot says there is more (it shows only while there is) */
    background:
      linear-gradient(var(--sj-paper) 30%, color-mix(in oklch, var(--sj-paper) 0%, transparent)) center top / 100% 36px no-repeat local,
      linear-gradient(color-mix(in oklch, var(--sj-paper) 0%, transparent), var(--sj-paper) 70%) center bottom / 100% 36px no-repeat local,
      radial-gradient(farthest-side at 50% 0, oklch(0.2 0.02 60 / .22), transparent) center top / 100% 14px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, oklch(0.2 0.02 60 / .22), transparent) center bottom / 100% 14px no-repeat scroll,
      var(--sj-paper); }
}

/* ---- the stimulus: on paper */
.sj .sj-paper { position: relative; border-radius: 14px; padding: 24px 26px 26px; background: var(--sj-paper); color: var(--sj-paper-ink);
  box-shadow: inset 0 0 0 1px var(--sj-paper-edge), 0 12px 26px -18px oklch(0.04 0.01 40 / .9); }
html:not(.dark) .sj .sj-paper { box-shadow: inset 0 0 0 1px var(--sj-paper-edge), 0 1px 1px color-mix(in srgb, var(--sj-ink) 8%, transparent), 0 8px 16px -12px color-mix(in srgb, var(--sj-ink) 35%, transparent); }
.sj .sj-paper:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 3px; }
.sj .sj-paper p { color: inherit; }
.sj .sj-pintro { margin: 0 0 14px; max-width: 38em; font: italic 400 15.5px/1.5 var(--sj-serif); color: var(--sj-paper-ink-2); }
.sj .sj-passage, .sj .sj-fig-text { max-width: 38em; font: 400 17px/1.64 var(--sj-serif); color: var(--sj-paper-ink); }
.sj[data-subject="humanities"] .sj-passage { font-size: 18px; line-height: 1.68; }
.sj .sj-passage p, .sj .sj-fig-text p { margin: 0 0 .85em; }
.sj .sj-passage > :last-child, .sj .sj-fig-text > :last-child { margin-bottom: 0; }
.sj .sj-source { margin: 14px 0 0; font: 500 13px/1.4 var(--sj-sans); color: var(--sj-paper-ink-2); }
/* a table on paper: rules, no fills, the UI sans, tabular figures; a wide one scrolls sideways with its first column held */
.sj .sj-paper .gp-tablewrap { max-width: 100%; overflow-x: auto; margin: 16px 0 18px; scrollbar-width: thin; }
.sj .sj-paper table { width: 100%; min-width: min(100%, 440px); border-collapse: collapse; font: 500 14.5px/1.35 var(--sj-sans); font-variant-numeric: lining-nums; color: var(--sj-paper-ink); }
.sj .sj-paper th { padding: 9px 12px 8px; font: 650 13px/1.3 var(--sj-sans); text-align: center; vertical-align: bottom; text-wrap: balance;
  border-top: 1.5px solid var(--sj-paper-rule); border-bottom: 1px solid var(--sj-paper-rule); }
/* cells wrap (final pass, 9 Nov): a nowrap sentence cell, such as the genetics cross 4 parents, pushed the counts the questions read off the
   paper's right edge. Short figures still sit on one line: the table only wraps what does not fit. */
.sj .sj-paper td { padding: 7px 12px; text-align: center; white-space: normal; text-wrap: pretty; border-bottom: 1px solid color-mix(in oklch, var(--sj-paper-rule) 40%, transparent); }
.sj .sj-paper tr:last-child td { border-bottom: 1.5px solid var(--sj-paper-rule); }
.sj .sj-paper td:first-child { font-weight: 700; }
.sj .sj-paper :is(th, td):first-child { text-align: left; padding-left: 4px; }
.sj .sj-paper :is(th, td):first-child { position: sticky; left: 0; background: var(--sj-paper); }
/* a poem keeps its lines, numbered every five in a gutter; a line that wraps hangs */
.sj .sj-poem-title { margin: 0 0 10px 30px; font: 650 17px/1.4 var(--sj-serif); letter-spacing: .06em; color: var(--sj-paper-ink); }
.sj .sj-poem { margin: 0; padding: 0 0 0 30px; list-style: none; counter-reset: sjln; font: 400 18px/1.72 var(--sj-serif); color: var(--sj-paper-ink); }
.sj .sj-poem li { position: relative; counter-increment: sjln; padding-left: 1.3em; text-indent: -1.3em; }
.sj .sj-poem li[data-gap] { margin-top: .9em; }
.sj .sj-poem li:nth-child(5n)::before { content: counter(sjln); position: absolute; left: -30px; width: 22px; text-indent: 0; text-align: right; font: 500 12px/inherit var(--sj-sans); line-height: inherit; color: var(--sj-paper-ink-2); }
/* a figure: its title row, the drawing in ink, and (when it is stimulus) the lesson's caption under it */
.sj .sj-fig { margin: 0; }
.sj .sj-fig + .sj-fig { margin-top: 26px; padding-top: 22px; border-top: 1px dashed color-mix(in oklch, var(--sj-paper-rule) 70%, transparent); }
.sj .sj-fig-title { margin: 0 0 6px; font: 700 14px/1.35 var(--sj-sans); color: var(--sj-paper-ink); }
.sj .sj-fig-cap { margin: 10px 0 0; max-width: 38em; font: italic 400 15.5px/1.5 var(--sj-serif); color: var(--sj-paper-ink-2); }
.sj .sj-plot svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--sj-paper-ink); }
.sj .sj-plot .gp-ax { fill: none; stroke: currentColor; stroke-width: 1.4; }
.sj .sj-plot .gp-tick { stroke: currentColor; stroke-width: .8; opacity: .15; }
.sj .sj-plot .gp-plot-t { font: 500 15px/1 var(--sj-sans); fill: var(--sj-paper-ink-2); }
.sj .sj-plot .gp-plot-l { font: 650 15.5px/1 var(--sj-sans); fill: var(--sj-paper-ink); }
.sj .sj-plot .gp-plot-line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sj .sj-plot .gp-plot-dot { fill: var(--sj-paper); stroke: currentColor; stroke-width: 2.2; }
.sj .sj-plot .gp-plot-a { font: 650 15px/1 var(--sj-sans); fill: var(--sj-paper-ink); }
.sj .sj-plot .gp-plot-shade { fill: color-mix(in oklch, var(--sj-paper-ink) 8%, transparent); }
.sj .sj-plot .gp-plot-a--shade { font-weight: 600; fill: var(--sj-paper-ink-2); }
/* the drawing arrives once when it is scrolled to: the traces draw left to right (the kit's [data-pub-reveal] beat; with JS off it rests drawn) */
html.pub-js .sj .sj-fig[data-pub-reveal]:not([data-pub-shown]) .gp-plot-line { clip-path: inset(0 100% 0 0); }
html.pub-js .sj .sj-fig[data-pub-reveal][data-pub-shown] .gp-plot-line { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--pub-ease) .25s; }

/* ---- the questions: on glass */
.sj .sj-qcol { min-width: 0; }
.sj .sj-q { margin: 0; padding: 6px 4px 22px; }
.sj .sj-q + .sj-q { padding-top: 22px; border-top: 1px solid var(--sj-edge); }
.sj .sj-q fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sj .sj-q-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; }
/* side by side the paper stays in view, so the way back is only for a stacked card (a phone scrolls past the stimulus to reach question 2) */
.sj .sj-q-back { display: none; align-items: center; min-height: 44px; margin: -12px 0 -12px; font: 600 13.5px/1 var(--sj-sans); color: var(--sj-body); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sj-ink) 30%, transparent); text-underline-offset: .22em; }
@container sjqc (max-width: 879px) { .sj .sj-q-back { display: inline-flex; } }
.sj .sj-stim { scroll-margin-top: calc(var(--pub-head-h, 64px) + 12px); }
.sj .sj-q-n { margin: 0; font: 600 14px/1.2 var(--sj-sans); color: var(--sj-body); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sj .sj-q-n b { color: var(--sj-ink); font-weight: 750; }
.sj .sj-stem { float: left; width: 100%; margin: 0 0 14px; padding: 0; font: 600 19px/1.42 var(--sj-sans); letter-spacing: -.005em; color: var(--sj-ink); text-wrap: pretty; }
.sj .sj-stem + * { clear: both; }
.sj .sj-opts { display: grid; gap: 8px; }
.sj .sj-opt { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; column-gap: 12px; min-height: 52px; padding: 9px 14px 9px 10px;
  border-radius: 13px; cursor: pointer; background: color-mix(in srgb, var(--sj-ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--sj-edge);
  transition: translate .2s var(--pub-ease), box-shadow .2s linear, background-color .2s linear, opacity .2s linear; }
html:not(.dark) .sj .sj-opt { background: oklch(1 0 0); box-shadow: inset 0 0 0 1px var(--sj-edge), 0 1px 1px color-mix(in srgb, var(--sj-ink) 7%, transparent); }
.sj .sj-opt:hover { translate: 3px 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sj-now) 55%, var(--sj-edge)); }
.sj .sj-opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sj .sj-opt:has(input:focus-visible) { outline: 3px solid var(--sp-focus); outline-offset: 2px; }
.sj .sj-key { pointer-events: none; display: grid; place-items: center; width: 34px; height: 34px; aspect-ratio: 1; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--sj-ink) 46%, transparent);
  font: 750 14px/1 var(--sj-sans); color: var(--sj-ink); }
.sj .sj-text { pointer-events: none; padding-top: 6px; font: 500 16px/1.45 var(--sj-sans); color: var(--sj-ink); }
.sj .sj-tag { grid-column: 2; justify-self: start; display: none; align-items: center; gap: 6px; height: 26px; margin-top: 7px; padding: 0 10px; border-radius: 999px; font: 700 12.5px/1 var(--sj-sans); }
.sj .sj-tag-i { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sj .sj-hint { margin: 12px 0 0; font: 500 13.5px/1.4 var(--sj-sans); color: var(--sj-muted); }
.sj .sj-why { display: none; margin: 16px 0 0; padding: 16px 16px 8px; border-radius: 13px; background: color-mix(in srgb, var(--sj-ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--sj-edge); }
html:not(.dark) .sj .sj-why { background: oklch(0.985 0.004 300); }
.sj .sj-verdict { margin: 0 0 6px; font: 750 15px/1.3 var(--sj-sans); color: var(--sj-ink); }
.sj .sj-v-wrong { color: var(--sj-rose-ink); }
.sj .sj-why-h { margin: 0 0 6px; font: 750 15px/1.3 var(--sj-sans); letter-spacing: 0; color: var(--sj-ink); }
.sj .sj-why-p { margin: 0 0 8px; font: 450 15.5px/1.6 var(--sj-sans); color: var(--sj-body); text-wrap: pretty; }
.sj .sj-why-p em { font-style: italic; }
.sj .sj-reset { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 650 14.5px/1 var(--sj-sans); color: var(--sj-ink);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sj-ink) 30%, transparent); text-underline-offset: .25em; }
.sj .sj-reset:hover { text-decoration-color: currentColor; }
.sj .sj-reset:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 2px; border-radius: 6px; }
/* answered (any radio checked): the reasoning opens, the key takes its ink tick, her wrong pick goes rose, the rest step back to printed lines;
   the card is a record now, so the options stop taking clicks until "Try again" (the bank locks after Submit) */
.sj .sj-q:has(input:checked) .sj-hint { display: none; }
.sj .sj-q:has(input:checked) .sj-why { display: block; animation: sj-why .42s cubic-bezier(.3, .6, .2, 1) both; }
.sj .sj-q:has(input:checked) .sj-opt { cursor: default; translate: none; }
.sj .sj-q:has(input:checked) .sj-opt { pointer-events: none; }
.sj .sj-q:has(input:checked) .sj-opt[data-key] { background: color-mix(in srgb, var(--sj-ink) 8%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sj-ink) 70%, transparent); }
html:not(.dark) .sj .sj-q:has(input:checked) .sj-opt[data-key] { background: oklch(1 0 0); box-shadow: inset 0 0 0 1.5px var(--sj-ink), 0 1px 1px color-mix(in srgb, var(--sj-ink) 10%, transparent); }
.sj .sj-q:has(input:checked) .sj-opt[data-key] .sj-key { background: var(--sj-ink); border-color: var(--sj-ink); color: var(--pub-ground); }
.sj .sj-q:has(input:checked) .sj-opt[data-key] .sj-tag { display: inline-flex; color: var(--sj-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sj-ink) 40%, transparent); }
.sj .sj-opt[data-key]:has(input:checked) .sj-tag-other, .sj .sj-opt[data-key]:not(:has(input:checked)) .sj-tag-mine { display: none; }
.sj .sj-opt:not([data-key]):has(input:checked) { background: var(--sj-rose-wash); box-shadow: inset 0 0 0 1.5px var(--sj-rose-edge); }
.sj .sj-opt:not([data-key]):has(input:checked) .sj-key { border-color: var(--sj-rose-edge); color: var(--sj-rose-ink); }
.sj .sj-opt:not([data-key]):has(input:checked) .sj-tag { display: inline-flex; color: var(--sj-rose-ink); background: color-mix(in oklab, var(--sj-rose) 55%, transparent); box-shadow: inset 0 0 0 1px var(--sj-rose-edge); }
html.dark .sj .sj-opt:not([data-key]):has(input:checked) .sj-tag { color: oklch(0.22 0.05 6); background: var(--sj-rose); }
.sj .sj-q:has(input:checked) .sj-opt:not([data-key]):not(:has(input:checked)),
html:not(.dark) .sj .sj-q:has(input:checked) .sj-opt:not([data-key]):not(:has(input:checked)) { opacity: .62; background: none; border-radius: 0; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--sj-ink) 12%, transparent); }
.sj .sj-q:has([data-key] input:checked) .sj-v-wrong, .sj .sj-q:not(:has([data-key] input:checked)) .sj-v-right { display: none; }
@keyframes sj-why { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* the lesson's own notes on its figures: closed until she opens them (they answer questions), word for word */
.sj .sj-notes { margin: 6px 4px 0; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--sj-edge); }
.sj .sj-notes summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; padding: 10px 16px; cursor: pointer; list-style: none; font: 650 14.5px/1.3 var(--sj-sans); color: var(--sj-ink); }
.sj .sj-notes summary::-webkit-details-marker { display: none; }
.sj .sj-notes summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; transition: rotate .2s var(--pub-ease); }
.sj .sj-notes[open] summary::before { rotate: 45deg; }
.sj .sj-notes summary:focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 2px; border-radius: 13px; }
.sj .sj-notes-when { margin-left: auto; font: 500 13px/1.3 var(--sj-sans); color: var(--sj-muted); }
.sj .sj-notes dl { margin: 0; padding: 0 16px 14px; }
.sj .sj-notes dl > div + div { margin-top: 12px; }
.sj .sj-notes dt { font: 700 13px/1.35 var(--sj-sans); color: var(--sj-ink); }
.sj .sj-notes dd { margin: 4px 0 0; font: 450 15px/1.55 var(--sj-sans); color: var(--sj-body); }
.sj .sj-unit-foot { margin: 18px 4px 0; }
.sj .sj-unit-foot a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 650 15px/1.3 var(--sj-sans); color: var(--sj-ink); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sj-ink) 30%, transparent); text-underline-offset: .22em; }
.sj .sj-unit-foot a:hover { text-decoration-color: currentColor; }

/* a narrow card (a phone, a narrow window): the paper first in the page's flow, then the questions */
@container sjqc (max-width: 620px) {
  .sj .sj-pace { margin-left: 0; flex-basis: 100%; }
  .sj .sj-paper { padding: 16px 16px 18px; border-radius: 12px; }
  .sj .sj-passage, .sj .sj-fig-text { font-size: 16.5px; }
  .sj[data-subject="humanities"] .sj-passage { font-size: 17px; }
  .sj .sj-poem { font-size: 16.5px; padding-left: 24px; }
  .sj .sj-poem-title { margin-left: 24px; }
  .sj .sj-poem li:nth-child(5n)::before { left: -26px; width: 20px; }
  /* a phone wraps a cell rather than hide a column off the paper's edge; only a table that cannot fit even wrapped scrolls */
  .sj .sj-paper table { font-size: 13.5px; min-width: 0; }
  .sj .sj-paper th { font-size: 12px; padding: 8px 6px 7px; }
  .sj .sj-paper td { padding: 6px 6px; white-space: normal; }
  .sj .sj-paper :is(th, td):first-child { position: static; }
  .sj .sj-stem { font-size: 17px; }
  .sj .sj-q { padding-inline: 0; }
  /* the drawing keeps 12 px type at a phone's width: its own units are enlarged, as the reading template does */
  .sj .sj-plot .gp-plot-t, .sj .sj-plot .gp-plot-a--shade { font-size: 25px; }
  .sj .sj-plot .gp-plot-l { font-size: 26px; }
  .sj .sj-plot .gp-plot-a { font-size: 23px; }
  .sj .sj-plot .gp-t-thin { display: none; }
  .sj .sj-plot .gp-plot-lx { translate: 0 14px; }
  .sj .sj-plot .gp-plot-ly { translate: -14px 0; }
}
@media (max-width: 560px) {
  .sj .sj-units { padding-inline: 12px; }
  .sj .sj-unit-top { padding-inline: 4px; }
  .sj .sj-qc { padding: 10px 10px 14px; border-radius: 18px; }
}

/* ---------------------------------------------------------------- every lesson in the subject */
.sj .sj-group { margin-top: 34px; }
.sj .sj-group-h { margin: 0 0 14px; font: 650 13px/1.3 var(--sj-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sj-muted); }
.sj .sj-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.sj .sj-card { position: relative; display: flex; flex-direction: column; padding: 20px 22px 16px; border-radius: 20px; background: var(--pub-card);
  box-shadow: inset 0 0 0 1px var(--pub-edge), inset 1px 1px 0 var(--pub-spec), var(--pub-drop); transition: translate .2s var(--pub-ease), box-shadow .2s linear; }
.sj .sj-card:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sj-now) 50%, var(--pub-edge)), inset 1px 1px 0 var(--pub-spec), var(--pub-drop); }
.sj .sj-card:has(a:focus-visible) { outline: 3px solid var(--sp-focus); outline-offset: 3px; }
.sj .sj-card h4 { margin: 0 0 8px; font: 700 17px/1.3 var(--sj-sans); letter-spacing: -.01em; }
.sj .sj-card h4 a { color: var(--sj-ink); text-decoration: none; }
.sj .sj-card h4 a:focus-visible { outline: none; }
.sj .sj-card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sj .sj-card p { margin: 0 0 12px; font: 450 14.5px/1.55 var(--sj-sans); color: var(--sj-body); text-wrap: pretty; }
.sj .sj-card-foot { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--sj-sans); color: var(--sj-muted); }
.sj .sj-shared { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sj .sj-shared a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 999px; text-decoration: none;
  font: 650 14.5px/1.2 var(--sj-sans); color: var(--sj-ink); background: var(--pub-field); box-shadow: inset 0 0 0 1px var(--pub-edge); }
.sj .sj-shared a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sj-now) 55%, var(--pub-edge)); }
.sj .sj-study { margin-top: 18px; }

/* ---------------------------------------------------------------- on: the practice test, the other subjects */
.sj .sj-next-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .sj .sj-next-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.sj .sj-next-test > p:not(.pub-kicker) { margin: 12px 0 20px; font: 500 16px/1.55 var(--sj-sans); color: var(--sj-body); }
.sj .sj-next-test .pub-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sj .sj-next-subjects ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sj .sj-next-subjects a { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px;
  text-decoration: none; color: var(--sj-ink); transition: background-color .15s linear; }
.sj .sj-next-subjects a:hover { background: color-mix(in srgb, var(--sj-ink) 6%, transparent); }
.sj .sj-next-subjects b { font: 650 16px/1.3 var(--sj-sans); }
.sj .sj-next-subjects small { font: 500 13px/1 var(--sj-sans); color: var(--sj-muted); }

/* the pace on the day: a bar a question, Sciences the full 2 minutes; this page's section is the lit one */
.sj .sj-pacebars { display: grid; gap: 8px; margin: 0 0 22px; }
.sj .sj-pacebar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px; align-items: center; gap: 12px; }
.sj .sj-pacebar-k { font: 600 13.5px/1 var(--sj-sans); color: var(--sj-body); }
.sj .sj-pacebar i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--sj-ink) 16%, transparent) var(--w), color-mix(in srgb, var(--sj-ink) 5%, transparent) var(--w)); }
.sj .sj-pacebar[data-here] i { background: linear-gradient(90deg, var(--pub-lamp) var(--w), color-mix(in srgb, var(--sj-ink) 5%, transparent) var(--w)); }
.sj .sj-pacebar b { font: 700 14px/1 var(--sj-sans); color: var(--sj-ink); text-align: right; font-variant-numeric: tabular-nums; }
.sj .sj-pacebar-note { margin: 0 0 2px; font: 650 12px/1.3 var(--sj-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sj-muted); }

/* reduced motion, the kit's rest switch: the finished page at once */
@media (prefers-reduced-motion: reduce) {
  .sj *, .sj-hero-fig * { transition: none !important; animation: none !important; }
  html.pub-arrive:not(.pub-go) .sj-hero-fig .sj-h-sheet { opacity: 1; translate: none; rotate: none; }
  html.pub-arrive:not(.pub-go) .sj-hero-fig .sj-h-line[pathLength] { stroke-dashoffset: 0; }
  html.pub-js .sj .sj-fig[data-pub-reveal]:not([data-pub-shown]) .gp-plot-line { clip-path: none; }
}
html.pub-rest .sj *, html.pub-rest .sj-hero-fig * { transition: none !important; animation: none !important; }
html.pub-rest .sj .sj-fig .gp-plot-line { clip-path: none !important; }

/* 28 Nov 2026 · small numbers in formulas (wave C board): CH₃, H₂O, OH⁻ are real sub/sup (components/content/small-numbers.tsx);
   the serif has no such glyphs and drew them full size. The same rules as the reading sheet: out of the line box. */
.gp-dn, .gp-up { position: relative; font-size: .72em; line-height: 0; vertical-align: baseline; }
.gp-dn { bottom: -.24em; }
.gp-up { top: -.5em; }
