/* v2b: v2 with v3's typefaces and palette (site/variants/v2b/NOTES.md). Loaded last, after v2-motion.css.
   The palette and font tokens themselves are set where v2 sets them (render.mjs head, site.css .kv-sheet).
   This file holds what v3 sets outside those tokens, and the places where a v2 rule only worked with
   v2's blue: each one is mapped to the v3 colour that carries the same meaning. Colours only; no layout,
   copy or motion change. */

/* v3's lit ground: the cool desk grey instead of the kit's sand (v3.css) */
:root { --ground-bg: #e3e6e0; --ground-surface: #eceee9; --ground-ink: #0e1217; --ground-muted: #474d55; --ground-accent: #b39400; }
::selection { background: color-mix(in oklab, var(--p-accent) 70%, transparent); color: var(--p-ink); }

/* type: Newsreader sets the display lines at its optical size, as in v3 */
h1, h2, .t-display, .close__word, .kv-wh { font-optical-sizing: auto; }

/* a chosen chart answer: v2 filled it blue with white text; v3 marks it with the highlighter, text stays ink */
.kv-choice.is-sel { background: var(--kv-mark); border-color: var(--kv-ink); color: var(--kv-ink); }

/* a pressed figure: v2 drew a blue ring; v3 marks a pick with ink and the highlighter */
.kv-opt.is-pick { border-color: var(--kv-ink); box-shadow: inset 0 0 0 2px var(--kv-ink); background: color-mix(in oklab, var(--kv-mark) 40%, var(--kv-sheet)); }

/* the "Eksempel" tag: v3's highlighter tint */
.kv-example { background: color-mix(in oklab, var(--kv-mark, var(--accent)) 45%, #fff); }

/* statistics under the pointer: the row gets a highlighter tint, the bar stays ink (a yellow bar on the
   light track would be 1.4:1) while the other rows dim as in v2 */
@media (hover: hover) and (pointer: fine) {
  .kv-stats .pc-list li:hover { background-color: color-mix(in oklab, var(--kv-mark) 30%, var(--kv-sheet));
    box-shadow: -10px 0 0 color-mix(in oklab, var(--kv-mark) 30%, var(--kv-sheet)), 10px 0 0 color-mix(in oklab, var(--kv-mark) 30%, var(--kv-sheet)); }
  .kv-stats .pc-meter:hover .kv-bar-track > i { background-color: var(--kv-ink); }
  .kv-stats .pc-meter:hover > span:first-child { background: color-mix(in oklab, var(--kv-mark) 55%, transparent); }
}

/* the comparison table: the plan column under the pointer gets a highlighter tint, its head stays ink */
.kv-cmp[data-col="1"] tr > :nth-child(2), .kv-cmp[data-col="2"] tr > :nth-child(3), .kv-cmp[data-col="3"] tr > :nth-child(4) {
  background-color: color-mix(in oklab, var(--accent) 22%, transparent); }
.kv-cmp[data-col="1"] thead th:nth-child(2), .kv-cmp[data-col="2"] thead th:nth-child(3), .kv-cmp[data-col="3"] thead th:nth-child(4) { color: var(--ink); }

/* the score scale: the 40-point line is ink with its label on the highlighter (v3); a category under the
   pointer gets a highlighter tint */
.kv-scale__mark--accent { border-left-color: var(--ink); }
.kv-scale__mark--accent > b { background: var(--accent); color: var(--accent-ink); padding: 2px 6px; margin-left: -2px; }
.kv-scale__mark--accent > b small { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .kv-scale__bar > span:hover { background-color: color-mix(in oklab, var(--accent) 30%, var(--surface)); border-color: color-mix(in oklab, var(--ink) 40%, var(--line)); }
}


/* the newsletter field's focus ring: v2 used a blue haze; ink here, as v3's action colour */
@media (prefers-reduced-motion: no-preference) {
  .kv-news .field input:not([type="checkbox"]):focus { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 16%, transparent); }
}

/* the kit's word-highlight moment (faq) turns its key words the accent colour. Yellow text on paper is
   1.5:1, so the key words stay ink and get a highlighter stroke under them instead */
html .mo-wh strong .mo-w.is-on { color: var(--ink); box-shadow: inset 0 -.42em 0 color-mix(in oklab, var(--accent) 80%, transparent); }
@media (prefers-reduced-motion: reduce) { html .mo-wh strong .mo-w { color: var(--ink); box-shadow: inset 0 -.42em 0 color-mix(in oklab, var(--accent) 80%, transparent); } }

/* the kit's pinned-chapters moment (om) marks the step in view with an accent rule. A yellow rule on
   paper is 1.5:1, under the 3:1 a UI part needs, so the step in view is marked in ink */
html [data-moment="pinned-chapters"].is-live .mo-pc__step.is-on { border-left-color: var(--ink); }
html .mo-wh .mo-w { transition: color 160ms ease, box-shadow 160ms ease; }

/* ---------------------------------------------------------------- fit fixes for the wider faces
   Newsreader and Schibsted Grotesk run wider than Urbanist, so a few lines that just fitted in v2 broke. */

/* tabular figures stay on the mono timers only (v3's rule): in Schibsted Grotesk "tnum" widens full stops
   and colons ("Ekstra : figurer", "1 . 299") */
.ui { font-feature-settings: normal; }
.rows__value, .t-stat { font-variant-numeric: normal; }

/* the hero headline: "Øvelsesprøver" is 304px at v2's size in a 302px column and broke as "Øvelses-prøver";
   5% smaller keeps every word whole at every width */
.hero--triptych h1 { font-size: calc(var(--ly-h1-side) * .95); }

/* the collage's question header ("Logik og mønstergenkendelse / Opgave 8 af 9") kept on one line as in v2 */
.ly-collage .pc-head { font-size: max(12px, 2cqw); }
.ly-collage .pc-head > * { white-space: nowrap; }

/* the kit's soft mesh on the panels mixes in --ground-accent; with v3's dark gold that corner turned khaki.
   v3 keeps its panels one flat desk grey, so v2b does the same */
.panel:not([data-fx], .panel--device) { background-image: none !important; }

/* "10 point fordelt på spørgsmål": the Figurer cells were v2's blue, now the highlighter (v3 does the same);
   yellow on the desk grey is 1.3:1, so each cell gets an ink edge (v3 uses one too, darker here for 3:1) */
.kv-weigh__row + .kv-weigh__row .kv-weigh__cells > i { box-shadow: inset 0 0 0 1px rgb(14 18 23 / .6); }

/* the closing word: the kit's -0.045em was set for a sans; in Newsreader the P's bowl ran into the r */
.close__word { letter-spacing: -0.02em; }
/* the closing word (owner 2026-11-22, »the p of prøvesten is cut«): at line-height .86 the P rises above its box and the
   kit's overflow: clip sliced its top off. Clip only the sides, which keeps the page from scrolling sideways, with
   .08em of room so a serif at either end isn't cut. */
.close__word { overflow-x: clip; overflow-y: visible; overflow-clip-margin: .08em; }

/* plan lists: the wider text face left single words ("nu", "1") on their own line */
.card--plan .checks li { text-wrap: pretty; }

/* headlines: with the wider serif, balance plus automatic hyphens split words ("øvelsespro-verne" on faq).
   No headline word is wider than its column at 320 to 1440, so they are kept whole */
h1, h2 { hyphens: manual; }

/* the app window's soft grey ("Ekstra", "Afleveret", the counts) was 4.1:1 on v3's paper; it takes the muted grey, as v3 did for "Afleveret" */
.ui { --u-soft: var(--u-muted); }

/* the newsletter field's edge was the kit's ink 20% (1.5:1 on paper); ink 55% gives 4.0:1 */
.kv-news .field input:not([type="checkbox"]) { border-color: color-mix(in oklab, var(--ink) 55%, transparent); }
