/* Mat-variation manipulatives (number_line_point, shade_count), 05.10.2026: prototype
   koordination/2026-10-04/mat-variation/prototype.html (Tallinje, Farv brøken). Follows the
   student themes through the reading-surface tokens (--panel, --ink, --line, --muted, --purple,
   --lavender, --mint, --green, --red, --red-soft); tap targets ≥ 48 px; fits a 390 px phone.
   Pizza and chocolate keep their own food colours in every theme. */
.manip-response { --manip-cheese: #f2c14e; --manip-sauce: #c8553d; --manip-choc: #7a4a2b; --manip-choc-edge: #5a3219; --manip-aim: #c98a00;
  display: grid; gap: 10px; max-width: 30rem; color: var(--ink); }
.manip-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.manip-status { margin: 0; font-size: .95rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.manip-status:empty { display: none; }
.nl-svg, .shade-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.nl-svg.locked, .shade-svg.locked { touch-action: auto; }
.nl-svg:focus-visible, .shade-svg :focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.nl-line { stroke: var(--ink); stroke-width: 2.5; }
.nl-tick { stroke: var(--ink); stroke-width: 2; }
.nl-tick.minor { stroke-width: 1.3; opacity: .7; }
.nl-label { fill: var(--ink); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.nl-stem { stroke: var(--ink); stroke-width: 2; }
.nl-knob { fill: var(--manip-aim); stroke: var(--panel); stroke-width: 3; cursor: grab; }
.nl-marker.ok .nl-knob { fill: var(--green); }
.nl-marker.bad .nl-knob { fill: var(--red); }
.nl-icon { font-size: 18px; pointer-events: none; }
.nl-hint { fill: var(--muted); font-size: 13px; }
.nl-hop { fill: none; stroke: var(--purple); stroke-width: 2.4; }
.nl-hoplabel { fill: var(--purple); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.nl-goal { fill: var(--green); }
.nl-pad { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 650; }
.nl-pad[hidden] { display: none; }
.nl-pad button, .manip-clear { min-width: 48px; min-height: 48px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 14px; font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.manip-clear { justify-self: center; padding: 0 18px; font-size: .95rem; }
.manip-clear[hidden] { display: none; }
.nl-pad button:disabled, .manip-clear:disabled { opacity: .4; cursor: default; }
.shade-part { cursor: pointer; }
.shade-part.look-plain { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.shade-part.look-pizza { fill: var(--manip-cheese, #f2c14e); stroke: var(--panel); stroke-width: 3; }
.shade-part.look-chocolate { fill: var(--manip-choc, #7a4a2b); stroke: var(--manip-choc-edge, #5a3219); stroke-width: 2; }
.shade-part.on { fill: var(--purple); }
.shade-part.look-plain.on, .shade-part.look-chocolate.on { stroke: var(--panel); }
.shade-part:focus-visible { outline: none; stroke: var(--manip-aim, #c98a00); stroke-width: 4; }
.shade-svg.locked .shade-part { cursor: default; }
.shade-rim { fill: none; stroke: var(--line); stroke-width: 2; pointer-events: none; }
.shade-rim.look-pizza { stroke: var(--manip-sauce, #c8553d); stroke-width: 6; }
.manip-fb { border-radius: 16px; border: 2px solid; padding: 10px 12px; display: grid; gap: 6px; margin-top: 10px; color: var(--ink); }
.manip-fb h3 { margin: 0; font-size: 1.05rem; }
.manip-fb p { margin: 0; }
.manip-fb.ok { background: var(--mint); border-color: var(--green); }
.manip-fb.ok h3 { color: var(--green); }
.manip-fb.bad { background: var(--red-soft); border-color: var(--red); }
.manip-fb.bad h3 { color: var(--red); }
.manip-explain { margin: 0; background: var(--panel); border-radius: 14px; padding: 8px; display: grid; gap: 4px; }
.manip-explain figcaption { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Overslag først (estimate_exact): prototype fanen »Overslag først«. */
.est-step { display: grid; gap: 8px; }
.est-step[hidden], .est-lock[hidden], .est-locked[hidden] { display: none; }
.est-label { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); }
.est-big { margin: 0; font-size: 1.6rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.est-big.unset { font-size: 1.1rem; color: var(--muted); }
.est-range { width: 100%; height: 44px; accent-color: var(--purple); }
.est-lock { min-height: 48px; border: 0; border-radius: 14px; background: var(--purple); color: #fff; font: inherit; font-weight: 750; cursor: pointer; touch-action: manipulation; }
.est-lock:disabled { opacity: .45; cursor: default; }
.est-locked { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.est-row { display: flex; align-items: center; gap: 8px; }
.manip-response .est-row input[type=text].est-exact { flex: 1; min-width: 0; min-height: 52px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font-size: 1.3rem; font-weight: 700; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.manip-response .est-row input[type=text].est-exact:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px var(--lavender); }
.est-unit { color: var(--muted); }
.est-compare p { margin: 0; }
.est-bar.est-guess { fill: #c98a00; }
.est-bar.est-guess.close { fill: var(--green); }
.est-bar.est-facit { fill: var(--purple); }
.est-barlabel { font-size: 12px; font-weight: 700; fill: var(--ink); }
/* Hvem har ret, og hvor er fejlen? (find_error): prototype fanen »Hvem har ret?«. */
.fe-solutions { display: grid; gap: 10px; }
.fe-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 12px; display: grid; gap: 8px; }
.fe-card.ok { border-color: var(--green); background: var(--mint); }
.fe-card.bad { border-color: var(--red); background: var(--red-soft); }
.fe-card h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.fe-avatar { width: 28px; height: 28px; border-radius: 99px; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; }
.fe-p1 { background: #2f6fd0; } .fe-p2 { background: #b0532a; } .fe-p3 { background: #7a4bb5; }
.fe-hint { margin: 0; font-size: .88rem; font-weight: 700; color: var(--purple); }
.fe-hint[hidden] { display: none; }
.fe-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fe-line { width: 100%; min-height: 48px; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; padding: 6px 12px; cursor: pointer; touch-action: manipulation; }
.fe-line:disabled { cursor: default; opacity: 1; color: var(--ink); }
.fe-line[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.fe-facit { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.fe-facit small { display: block; color: var(--muted); }
/* Skydere (function_slider): prototype fanen »Skydere«. */
.fs-svg { display: block; width: 100%; height: auto; }
.fs-grid { stroke: var(--line); stroke-width: 1; }
.fs-axis { stroke: var(--ink); stroke-width: 2; }
.fs-tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.fs-axname { font-size: 12px; font-weight: 700; fill: var(--ink); }
.fs-line { stroke: var(--purple); stroke-width: 3; stroke-linecap: round; }
.fs-line[hidden] { display: none; }
.fs-pt { fill: var(--panel); stroke: #c98a00; stroke-width: 3; }
.fs-pt.hit { fill: var(--green); stroke: var(--green); }
.fs-formula { margin: 4px 0 0; text-align: center; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.manip-card.ok { border-color: var(--green); } .manip-card.bad { border-color: var(--red); }
.fs-controls { display: grid; gap: 10px; }
.fs-slider label { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.fs-row { display: flex; align-items: center; gap: 8px; }
.fs-row input[type=range] { flex: 1; min-width: 0; height: 44px; accent-color: var(--purple); }
.fs-row button { width: 48px; height: 48px; flex: none; border: 2px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 14px; font: inherit; font-size: 1.3rem; font-weight: 750; cursor: pointer; touch-action: manipulation; }
.fs-row button:disabled { opacity: .4; cursor: default; }
/* Figurmønster (tile_pattern): prototype fanen »Figurmønster«. */
.tp-shown { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: center; }
.tp-shown figure, .tp-explain { margin: 0; display: grid; justify-items: center; gap: 4px; }
.tp-shown figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); }
.tp-tile { fill: var(--purple); }
.tp-build { display: grid; gap: 8px; }
.tp-build.ok, .est-step.ok { border-color: var(--green); }
.tp-build.bad, .est-step.bad { border-color: var(--red); }
.tp-grid { display: grid; gap: 3px; border: 0; margin: 0; padding: 0; min-width: 0; max-width: 22rem; width: 100%; justify-self: center; }
.tp-cell { aspect-ratio: 1; min-height: 30px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--panel); cursor: pointer; padding: 0; touch-action: manipulation; }
.tp-cell.on { background: var(--purple); border-color: var(--purple); }
.tp-cell:disabled { cursor: default; opacity: 1; }
.tp-ask { display: grid; gap: 6px; font-weight: 700; }
.manip-response .tp-ask input[type=text].est-exact { min-height: 52px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font-size: 1.3rem; font-weight: 700; padding: 4px 12px; }
