/* ==========================================================================
   Werkboek Koudetechniek - designsysteem
   Bron: sprints/2-mockups/stijl.css (goedgekeurd bij de GO van 17-11-2026).
   Beheer: beeld (platform/app/CONTRACT.md §2). Vormspecifieke stijlen staan
   in css/vormen.css en bouwen op de tokens hieronder.

   Kleurregels
   - Rood en blauw betekenen alleen de drukzijde (hoog en laag). Nergens anders.
   - Druk is lijnkleur, fase is vulkleur (vloeistof, natte damp, gas).
   - Status en feedback hebben altijd een icoon en een woord. Fout is inkt
     met een kruis, nooit rood.
   - De vijf vakkleuren zijn op kleurenblindheid doorgerekend (alle tien
     paren blijven uit elkaar bij protanopie en deuteranopie).

   Geen inline stijlen nodig (CSP: default-src 'self'). SVG-beelden worden
   inline in de pagina gezet en krijgen hun kleur uit de b-klassen hieronder.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- Kleur: neutraal ---------------------------------------------------- */
  --papier: #F4F3EE;            /* achtergrond van de pagina */
  --vlak: #FFFFFF;              /* kaarten, beelden */
  --vlak-2: #FAF9F6;            /* rustig vlak binnen een kaart */
  --vlak-3: #F1F0EC;            /* hover, ingedrukt */
  --inkt: #1A2230;              /* hoofdtekst, 16:1 op wit */
  --inkt-2: #4A5361;            /* tweede tekst, 7,8:1 */
  --inkt-3: #5F6875;            /* gedempte tekst, 5,6:1 op wit */
  --lijn: #E2E0D8;              /* haarlijn */
  --lijn-2: #CFCCC2;            /* scheidingslijn */
  --rand-invoer: #7D8590;       /* rand van bedieningselementen, 3,7:1 */

  /* --- Kleur: vak (gereserveerd) -------------------------------------------- */
  --vak-hd: #C0262D;            /* hogedrukzijde, rood */
  --vak-hd-tint: #F8E2E2;
  --vak-ld: #1C5DAB;            /* lagedrukzijde, blauw */
  --vak-ld-tint: #E0EAF6;
  --vak-neutraal: #6B7380;      /* leiding zonder drukkleur (hogere treden) */
  --vak-vloeistof: #008A73;     /* vloeistof, groenblauw */
  --vak-vloeistof-vlak: #5DB3A1;
  --vak-vloeistof-tint: #D6EEE8;
  --vak-nd: #7B2D74;            /* natte damp, pruim */
  --vak-nd-tint: #F1E2EE;
  --vak-gas: #B8860B;           /* gas en damp, oker */
  --vak-gas-tint: #F8EDD2;
  --vak-vast: #8A919B;          /* vaste stof (droogijs, rijp) */
  --vak-vast-tint: #ECEEF1;
  --vak-warmte: #4A5361;        /* warmtestromen: inkt, want warmte heeft geen drukzijde */

  /* --- Kleur: status en feedback ------------------------------------------- */
  --goed: #1E7B45;
  --goed-tint: #E4F1E8;
  --goed-tekst: #165E35;
  --opfrissen: #6FA883;         /* vlak in de voortgangsbalk */
  --opfrissen-icoon: #3D7A54;
  --opfrissen-tint: #EEF5F0;
  --bezig: #5F6875;
  --bezig-tint: #ECEEF1;
  --nieuw: #8A919B;
  --nieuw-vlak: #C9CDD3;
  --fout: #1A2230;              /* niet goed: inkt met een kruis */
  --fout-tint: #EFEDE7;
  --let-op-tint: #FBF3DD;       /* banner proefversie */
  --let-op-rand: #B8860B;
  --focus: #1A2230;

  /* --- Typografie ---------------------------------------------------------- */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.875rem;            /* 14 px */
  --fs-s: 0.9375rem;            /* 15 px */
  --fs-m: 1.0625rem;            /* 17 px, lopende tekst */
  --fs-l: 1.25rem;              /* 20 px */
  --fs-xl: 1.5rem;              /* 24 px */
  --fs-2xl: 1.875rem;           /* 30 px */
  --fs-3xl: 2.25rem;            /* 36 px */
  --fs-held: 3.5rem;            /* 56 px, het ene grote getal */
  --lh: 1.5;
  --lh-kop: 1.2;
  --gewicht-kop: 650;

  /* --- Ruimte (4-puntsraster) --------------------------------------------- */
  --r1: 4px;
  --r2: 8px;
  --r3: 12px;
  --r4: 16px;
  --r5: 24px;
  --r6: 32px;
  --r7: 48px;
  --r8: 64px;

  /* --- Radius, maten, schaduw ---------------------------------------------- */
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-rond: 999px;
  --doel: 44px;                 /* minimale doelgrootte op touch (DR10) */
  --breedte: 1120px;
  --leesbreedte: 40rem;
  --beeld-max: 560px;           /* maximale breedte van een beeld in een opdracht */
  --schaduw: 0 1px 2px rgba(26, 34, 48, 0.05), 0 2px 10px rgba(26, 34, 48, 0.04);
  --schaduw-op: 0 6px 22px rgba(26, 34, 48, 0.18);

  /* --- Beeld (SVG) ----------------------------------------------------------- */
  --b-leiding: 7;               /* lijndikte van een leiding, in beeldeenheden */
  --b-markering: rgba(26, 34, 48, 0.10);
  --b-markering-sterk: rgba(26, 34, 48, 0.18);
}

/* ==========================================================================
   Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--gewicht-kop);
  line-height: var(--lh-kop);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-l); }
h3 { font-size: var(--fs-m); }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--r3); }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
svg text { font-family: var(--font); }

a { color: var(--inkt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.getal { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.klein { font-size: var(--fs-xs); color: var(--inkt-3); }
.tweede { color: var(--inkt-2); }

/* ==========================================================================
   Paginabouw
   ========================================================================== */
.balk { background: var(--vlak); border-bottom: 1px solid var(--lijn); }
.balk-binnen {
  max-width: var(--breedte);
  margin: 0 auto;
  min-height: 56px;
  padding: 0 var(--r4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--r4);
}
.merk {
  display: inline-flex;
  align-items: center;
  gap: var(--r2);
  min-height: var(--doel);
  font-weight: 650;
  font-size: var(--fs-s);
  text-decoration: none;
}
.merk-sub { color: var(--inkt-3); font-weight: 500; }
.balk-meta { display: flex; align-items: center; gap: var(--r3); font-size: var(--fs-xs); color: var(--inkt-3); }

/* Banner: de opdrachten zijn nog niet door een docent gecontroleerd */
.banner {
  background: var(--let-op-tint);
  border-bottom: 1px solid #E9D9A8;
  color: var(--inkt);
  font-size: var(--fs-xs);
}
.banner-binnen {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: var(--r2) var(--r4);
  display: flex;
  gap: var(--r2);
  align-items: flex-start;
}
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--inkt); }
.banner b { font-weight: 650; }

.pagina {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: var(--r5) var(--r4) var(--r7);
}
.pagina--smal { max-width: 32rem; }

.terug {
  display: inline-flex;
  align-items: center;
  gap: var(--r1);
  min-height: var(--doel);
  margin: calc(var(--r2) * -1) 0 var(--r2) -6px;
  padding: 0 6px;
  font-size: var(--fs-s);
  color: var(--inkt-2);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.terug:hover { color: var(--inkt); background: rgba(26, 34, 48, 0.05); }
.terug svg { width: 18px; height: 18px; }

.kop { margin-bottom: var(--r5); }
.bovenregel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--r1) var(--r3);
  margin-bottom: var(--r2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--inkt-3);
}
.bovenregel span + span::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  margin: 0 var(--r3) 2px 0;
  border-radius: 50%;
  background: var(--lijn-2);
  vertical-align: middle;
}
.inleiding { margin-top: var(--r3); max-width: var(--leesbreedte); color: var(--inkt-2); }

.voet {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: var(--r5) var(--r4) var(--r7);
  border-top: 1px solid var(--lijn);
  display: flex;
  flex-wrap: wrap;
  gap: var(--r2) var(--r5);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--inkt-3);
}
.voet a { color: var(--inkt-2); display: inline-flex; align-items: center; min-height: var(--doel); }

.raster { display: grid; gap: var(--r4); }
.raster > * { min-width: 0; }

/* ==========================================================================
   Kaart
   ========================================================================== */
.kaart {
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--radius-l);
  box-shadow: var(--schaduw);
  padding: var(--r4);
}
/* zonder specificiteit, zodat een raster de afstand zelf regelt */
:where(.kaart) + :where(.kaart) { margin-top: var(--r4); }
.raster > .kaart + .kaart, .dash-top > .kaart + .kaart { margin-top: 0; }
.kaart-kop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--r3);
  margin-bottom: var(--r3);
}
.kaart-kop h2 { font-size: var(--fs-m); }
.kaart-label { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-3); }

/* ==========================================================================
   Knoppen
   ========================================================================== */
.knop {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--r2);
  min-height: 48px;
  padding: 0 var(--r5);
  border: 1.5px solid var(--inkt);
  border-radius: var(--radius-m);
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: var(--fs-m);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.06s ease;
}
.knop:hover { background: var(--vlak-3); text-decoration: none; }
.knop:active { transform: translateY(1px); }
.knop svg { width: 20px; height: 20px; flex: none; }
.knop--primair { background: var(--inkt); color: #FFFFFF; }
.knop--primair:hover { background: #2C3646; }
.knop--stil {
  border-color: transparent;
  background: transparent;
  padding: 0 var(--r3);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.knop--stil:hover { background: rgba(26, 34, 48, 0.05); }
.knop--breed { width: 100%; }
.knop[disabled], .knop[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; transform: none; }
.knoppen { display: flex; flex-wrap: wrap; gap: var(--r3); align-items: center; }

.knop-rond {
  appearance: none;
  flex: none;
  width: var(--doel);
  height: var(--doel);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rand-invoer);
  border-radius: 50%;
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.knop-rond:hover { border-color: var(--inkt); }
.knop-rond svg { width: 18px; height: 18px; }

/* ==========================================================================
   Formulieren (inloggen, examendatum, beheer)
   ========================================================================== */
.formulier { display: grid; gap: var(--r4); }
.veld { display: grid; gap: 6px; }
.veld label, .veld-label { font-size: var(--fs-s); font-weight: 600; }
.veld-hulp { font-size: var(--fs-xs); color: var(--inkt-3); }
.tekstveld {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--r3);
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-s);
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: var(--fs-m);
}
.tekstveld:hover { border-color: var(--inkt); }
.tekstveld:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tekstveld[aria-invalid="true"] { border: 2px solid var(--fout); }
textarea.tekstveld { min-height: 7rem; padding: var(--r2) var(--r3); line-height: var(--lh); resize: vertical; }
.veld-fout {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--inkt);
}
.veld-fout svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.melding {
  display: flex;
  gap: var(--r3);
  align-items: flex-start;
  padding: var(--r3) var(--r4);
  border-radius: var(--radius-m);
  background: var(--fout-tint);
  border-left: 4px solid var(--fout);
  font-size: var(--fs-s);
}
.melding--goed { background: var(--goed-tint); border-left-color: var(--goed); }
.melding svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ==========================================================================
   Status: nieuw, bezig, aangetoond, opfrissen
   ========================================================================== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px 2px 6px;
  border-radius: var(--radius-rond);
  background: var(--bezig-tint);
  color: var(--inkt-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.status svg { width: 16px; height: 16px; flex: none; }
.status--nieuw { background: transparent; box-shadow: inset 0 0 0 1px var(--lijn-2); color: var(--inkt-3); }
.status--aangetoond { background: var(--goed-tint); color: var(--goed-tekst); }
.status--opfrissen { background: var(--opfrissen-tint); color: #2F5D40; }

.bolletjes { display: inline-flex; gap: 4px; align-items: center; }
.bol { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--nieuw); }
.bol--aangetoond { background: var(--goed); box-shadow: none; }
.bol--opfrissen { background: var(--opfrissen-tint); box-shadow: inset 0 0 0 2px var(--opfrissen-icoon); }
.bol--bezig { background: linear-gradient(90deg, var(--bezig) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--bezig); }

/* De laatste vier pogingen (het venster van de afvinkregel, DR15) */
.pogingen { display: inline-flex; gap: 3px; align-items: center; vertical-align: middle; }
.pogingen i { width: 9px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--inkt-2); }
.pogingen i.g { background: var(--inkt-2); }
.pogingen i.x { background: transparent; }
.pogingen i.n { box-shadow: inset 0 0 0 1px var(--lijn-2); }

/* Voortgangsbalk: een geheel in delen, met 2 px vlak ertussen */
.segmentbalk { display: flex; gap: 2px; height: 12px; margin: var(--r3) 0; }
.segmentbalk span { display: block; height: 100%; border-radius: 3px; }
.segmentbalk span:first-child { border-radius: 6px 3px 3px 6px; }
.segmentbalk span:last-child { border-radius: 3px 6px 6px 3px; }
.segmentbalk span:only-child { border-radius: 6px; }
.seg--aangetoond { background: var(--goed); }
.seg--opfrissen { background: var(--opfrissen); }
.seg--bezig { background: var(--bezig); }
.seg--nieuw { background: var(--nieuw-vlak); }
.legenda { display: flex; flex-wrap: wrap; gap: var(--r2) var(--r4); font-size: var(--fs-xs); color: var(--inkt-2); }
.legenda li { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.legenda b { font-weight: 650; color: var(--inkt); font-variant-numeric: tabular-nums; }
.legenda .vlakje { width: 12px; height: 12px; border-radius: 3px; }

/* Eenvoudige voortgang van een sessie: streepjes */
.stippen { display: inline-flex; gap: 5px; }
.stippen i { width: 22px; height: 4px; border-radius: 2px; background: var(--lijn-2); }
.stippen i.klaar { background: var(--inkt-3); }
.stippen i.nu { background: var(--inkt); }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash { display: grid; gap: var(--r5); }
.dash > * { min-width: 0; }
.dash-top { display: grid; gap: var(--r4); }
.dash-top > * { min-width: 0; }
.examen-getal { display: flex; align-items: baseline; gap: var(--r2); margin-top: var(--r1); }
.held { font-size: var(--fs-held); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.held-eenheid { font-size: var(--fs-l); font-weight: 600; }
.examen-datum { margin-top: var(--r2); font-size: var(--fs-s); color: var(--inkt-2); }
.examen .knop { margin-top: var(--r4); }
.examen .klein { margin-top: var(--r2); text-align: center; }
.voortgang-zin, .kalibratie-zin { margin-top: 6px; }
.voortgang-zin b { font-size: var(--fs-xl); font-weight: 700; }
.kalibratie-zin { font-weight: 600; }
.kalibratie .klein { margin-top: var(--r2); }
.kalibratie .knop { margin-top: var(--r4); width: 100%; }
.vergelijk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--r2) var(--r3);
  align-items: center;
  margin-top: var(--r4);
  font-size: var(--fs-xs);
  color: var(--inkt-2);
}
.vergelijk svg { width: 20px; height: 20px; }

.leerdoel {
  --inspring: 44px;
  background: var(--vlak);
  border: 1px solid var(--lijn);
  border-radius: var(--radius-l);
  box-shadow: var(--schaduw);
}
.leerdoel + .leerdoel { margin-top: var(--r3); }
.leerdoel > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--r1) var(--r3);
  align-items: start;
  padding: var(--r4);
  border-radius: var(--radius-l);
}
.leerdoel > summary::-webkit-details-marker { display: none; }
.leerdoel > summary:hover .ld-titel { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ld-nr {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--papier);
  font-weight: 650;
  font-size: var(--fs-s);
  font-variant-numeric: tabular-nums;
}
.ld-titel { display: block; font-size: var(--fs-m); font-weight: 650; line-height: 1.3; }
.ld-sub { display: flex; flex-wrap: wrap; gap: var(--r1) var(--r3); align-items: center; margin-top: 6px; font-size: var(--fs-xs); color: var(--inkt-3); }
.ld-pijl { width: 22px; height: 22px; margin-top: 4px; color: var(--inkt-3); transition: transform 0.15s ease; }
.leerdoel[open] .ld-pijl { transform: rotate(180deg); }
.ld-tekst { margin-left: calc(30px + var(--r3)); padding: 0 var(--r4) var(--r3); font-size: var(--fs-s); color: var(--inkt-2); }

.uitspraken { list-style: none; border-top: 1px solid var(--lijn); }
.us-kolommen { display: none; }
.us { list-style: none; display: grid; gap: var(--r3); padding: var(--r4); border-bottom: 1px solid var(--lijn); }
.us:last-child { border-bottom: 0; }
.us-tekst { display: flex; gap: var(--r3); align-items: baseline; }
.us-code, .code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--inkt-3); }
.us-code { flex: none; width: 32px; }
.us-tekst p { font-size: var(--fs-s); line-height: 1.45; }
/* Mobiel: status op een eigen regel, daaronder zelf ingeschat naast aangetoond */
.us-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--r3); margin-left: var(--inspring); }
.us-meta .us-cel:first-child { grid-column: 1 / -1; }
.us-meta .us-cel:first-child .us-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.us-cel { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.us-lbl { font-size: 0.8125rem; color: var(--inkt-3); }
.us-waarde { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--inkt); }
.us-waarde.leeg { color: var(--inkt-3); font-weight: 500; }
.us-signaal { grid-column: 1 / -1; margin-left: var(--inspring); display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; }
.us-signaal svg { width: 16px; height: 16px; flex: none; }
.us-oefen {
  justify-self: start;
  margin-left: var(--inspring);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--doel);
  font-size: var(--fs-s);
  font-weight: 600;
}
.us-oefen svg { width: 16px; height: 16px; }
.us[data-kal] { background: linear-gradient(90deg, var(--inkt) 0 3px, transparent 3px); }
.dash-lijst.filter-kal .us:not([data-kal]) { display: none; }
.dash-lijst.filter-kal .leerdoel:not(:has(.us[data-kal])) { display: none; }
.filter-melding {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--r3);
  margin-bottom: var(--r3);
  padding: var(--r3) var(--r4);
  border: 1.5px solid var(--inkt);
  border-radius: var(--radius-m);
  background: var(--vlak);
  font-size: var(--fs-s);
}
.dash-lijst.filter-kal .filter-melding { display: flex; }

/* ==========================================================================
   Instaptoets en sessie
   ========================================================================== */
.feiten { display: flex; flex-wrap: wrap; gap: var(--r2); margin-top: var(--r4); }
.feit {
  display: inline-flex;
  align-items: center;
  gap: var(--r2);
  min-height: 36px;
  padding: 0 var(--r3);
  border: 1px solid var(--lijn-2);
  border-radius: var(--radius-rond);
  background: var(--vlak);
  font-size: var(--fs-s);
  font-weight: 600;
}
.feit svg { width: 18px; height: 18px; color: var(--inkt-2); }
.werkwijze { list-style: none; display: grid; gap: var(--r4); margin-top: var(--r5); counter-reset: ww; }
.werkwijze li { position: relative; padding-left: 44px; }
.werkwijze li::before {
  counter-increment: ww;
  content: counter(ww);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--inkt);
  color: #FFFFFF;
  font-size: var(--fs-s);
  font-weight: 700;
}
.werkwijze h3 { font-size: var(--fs-m); }
.werkwijze p { margin-top: 2px; font-size: var(--fs-s); color: var(--inkt-2); }
.keuze { display: grid; gap: var(--r3); max-width: 460px; margin-top: var(--r5); }
.inschatting { list-style: none; display: grid; }
.inschatting li { padding: var(--r4) 0; border-top: 1px solid var(--lijn); }
.inschatting li:first-child { border-top: 0; padding-top: var(--r2); }
.inschatting fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.inschatting legend { padding: 0; margin-bottom: var(--r3); font-size: var(--fs-s); line-height: 1.45; }
.inschatting .segment { max-width: none; }
.sessie-lijst { list-style: none; display: grid; }
.sessie-lijst li { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px; padding: var(--r3) 0; border-top: 1px solid var(--lijn); }
.sessie-lijst li:first-child { border-top: 0; padding-top: 0; }
.sessie-lijst p + p { margin-top: 0; }
.sessie-titel { font-size: var(--fs-s); font-weight: 650; line-height: 1.35; }
.sessie-reden { font-size: var(--fs-xs); color: var(--inkt-2); }
.menging {
  display: flex;
  gap: var(--r3);
  margin-top: var(--r4);
  padding: var(--r3) var(--r4);
  border: 1px solid var(--lijn);
  border-radius: var(--radius-m);
  background: var(--vlak-2);
  font-size: var(--fs-s);
  color: var(--inkt-2);
}
.menging svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--inkt-2); }
.menging b { color: var(--inkt); }
.vraag-voortgang { display: flex; align-items: center; justify-content: space-between; gap: var(--r3); margin-bottom: var(--r3); }
.vraag-label { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-3); }

/* ==========================================================================
   Opdracht: de vaste onderdelen rond een vorm
   ========================================================================== */
.uitspraak-ref {
  display: flex;
  gap: var(--r3);
  align-items: flex-start;
  max-width: var(--leesbreedte);
  margin-top: var(--r4);
  padding: var(--r3) var(--r4);
  border: 1px solid var(--lijn);
  border-radius: var(--radius-m);
  background: var(--vlak-2);
  font-size: var(--fs-s);
  color: var(--inkt-2);
}
.uitspraak-ref svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--inkt-3); }
.uitspraak-ref b { font-weight: 600; color: var(--inkt); }
.instructie { max-width: var(--leesbreedte); font-size: var(--fs-m); }
.hint { margin-top: var(--r2); font-size: var(--fs-xs); color: var(--inkt-3); }

/* Vaklabel in HTML: pil met lijnsleutel of vulkleur, tekst in inkt */
.vaklabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-rond);
  background: var(--vlak);
  box-shadow: inset 0 0 0 1px var(--lijn-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.vaklabel i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.vaklabel i.vlak { width: 12px; height: 12px; border-radius: 3px; }
.vaklabel .hd { background: var(--vak-hd); }
.vaklabel .ld { background: var(--vak-ld); }
.vaklabel .vloeistof { background: var(--vak-vloeistof-tint); box-shadow: inset 0 0 0 1.5px var(--vak-vloeistof); }
.vaklabel .nd { background: var(--vak-nd-tint); box-shadow: inset 0 0 0 1.5px var(--vak-nd); }
.vaklabel .gas { background: var(--vak-gas-tint); box-shadow: inset 0 0 0 1.5px var(--vak-gas); }

/* ==========================================================================
   Opties (meerkeuze) en de zekerheidsvraag
   ========================================================================== */
.vraag { max-width: var(--leesbreedte); margin-bottom: var(--r3); font-size: var(--fs-m); font-weight: 600; line-height: 1.4; }
.opties { display: grid; gap: var(--r2); }
.optie {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  gap: var(--r3);
  align-items: center;
  min-height: 52px;
  padding: var(--r2) var(--r3);
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-m);
  background: var(--vlak);
  font-size: var(--fs-m);
  cursor: pointer;
}
.optie input { position: absolute; opacity: 0; pointer-events: none; }
.optie-letter {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rand-invoer);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--inkt-2);
}
.optie:hover { border-color: var(--inkt); }
.optie:has(input:checked) { border-color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); background: #FBFBF9; }
.optie:has(input:checked) .optie-letter { background: var(--inkt); border-color: var(--inkt); color: #FFFFFF; }
.optie:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.optie-oordeel { width: 22px; height: 22px; display: none; }
.optie.juist { border-color: var(--goed); box-shadow: inset 0 0 0 1px var(--goed); }
.optie.juist .optie-oordeel.v { display: block; color: var(--goed); }
.optie.onjuist .optie-oordeel.x { display: block; color: var(--fout); }
.nagekeken .optie { cursor: default; }
.nagekeken .optie:not(.juist):not(.onjuist) { opacity: 0.6; }

.zekerheid { border: 0; margin: var(--r5) 0 0; padding: 0; min-width: 0; }
.zekerheid legend { padding: 0; margin-bottom: var(--r2); font-size: var(--fs-s); font-weight: 600; }
.segment {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-m);
  background: var(--vlak);
}
.segment label {
  position: relative;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 var(--r3);
  border-left: 1px solid var(--lijn-2);
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--inkt-2);
  cursor: pointer;
}
.segment label:first-child { border-left: 0; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label:hover { background: #F4F3EF; }
.segment label:has(input:checked) { background: var(--inkt); color: #FFFFFF; }
.segment label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -5px; }

/* ==========================================================================
   Feedback (gedeeld door alle opdrachtvormen)
   ========================================================================== */
.feedback {
  margin-top: var(--r4);
  padding: var(--r4);
  border-left: 4px solid var(--fout);
  border-radius: var(--radius-m);
  background: var(--fout-tint);
}
.feedback:empty { display: none; }
.feedback--goed { background: var(--goed-tint); border-left-color: var(--goed); }
.feedback-kop { display: flex; align-items: center; gap: var(--r2); margin-bottom: var(--r2); font-size: var(--fs-m); font-weight: 650; }
.feedback-kop svg { width: 24px; height: 24px; flex: none; }
.feedback p, .feedback .uitleg { font-size: var(--fs-s); }
.feedback p + p { margin-top: var(--r2); }
.feedback .uitleg + .uitleg { margin-top: var(--r3); }
.feedback .bron { margin-top: var(--r3); font-size: var(--fs-xs); color: var(--inkt-3); }
.feedback .knoppen { margin-top: var(--r4); }
.feedback details { margin-top: var(--r2); font-size: var(--fs-s); }
.feedback summary, .uitklap summary { display: inline-flex; align-items: center; min-height: var(--doel); font-weight: 600; cursor: pointer; }
.feedback summary::-webkit-details-marker, .uitklap summary::-webkit-details-marker { display: none; }
/* uitklapteken, getekend: naar rechts als dicht, omlaag als open */
.feedback summary::before, .uitklap summary::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin: 0 12px 0 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.feedback details[open] > summary::before, .uitklap[open] > summary::before { transform: rotate(45deg); }
.zeker-fout {
  display: flex;
  gap: var(--r3);
  align-items: flex-start;
  margin: var(--r2) 0 var(--r3);
  padding: var(--r3);
  border: 1.5px solid var(--inkt);
  border-radius: var(--radius-s);
  background: var(--vlak);
  font-size: var(--fs-s);
}
.zeker-fout svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.icoon-goed { color: var(--goed); }
.icoon-fout { color: var(--fout); }

/* ==========================================================================
   Tabellen
   ========================================================================== */
.tabel, .pt-tabel { width: 100%; border-collapse: collapse; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.tabel caption, .pt-tabel caption { padding-bottom: var(--r2); text-align: left; font-size: var(--fs-xs); color: var(--inkt-3); }
.tabel th, .pt-tabel th { padding: 6px var(--r3); border-bottom: 1px solid var(--lijn-2); text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-3); }
.tabel td, .pt-tabel td { padding: 7px var(--r3); border-bottom: 1px solid var(--lijn); }
.pt-tabel td:not(:first-child), .pt-tabel th:not(:first-child), .tabel .rechts { text-align: right; }
.pt-tabel tr.actief td { background: var(--inkt); color: #FFFFFF; font-weight: 650; border-bottom-color: var(--inkt); }
.pt-tabel tr.actief td:first-child { border-radius: 6px 0 0 6px; }
.pt-tabel tr.actief td:last-child { border-radius: 0 6px 6px 0; }
.tabel-schuif { overflow-x: auto; }

/* ==========================================================================
   Schuifregelaars (verkenners)
   ========================================================================== */
.schuif { margin-top: var(--r4); }
.schuif + .schuif { margin-top: var(--r3); }
.schuif-kop { display: flex; justify-content: space-between; align-items: baseline; gap: var(--r3); }
.schuif-kop label { font-size: var(--fs-s); font-weight: 600; }
.schuif-waarde { font-size: var(--fs-s); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schuif-rij { display: flex; align-items: center; gap: var(--r3); margin-top: var(--r1); }
.schuif-schaal { position: relative; height: 20px; margin: 2px calc(var(--doel) + var(--r3)) 0; font-size: 0.8125rem; color: var(--inkt-3); }
.schuif-schaal span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: var(--doel);
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--inkt-2) 0 var(--vulling, 50%), var(--lijn-2) var(--vulling, 50%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px;
  margin-top: -12px;
  border: 2px solid var(--inkt);
  border-radius: 50%;
  background: var(--vlak);
  box-shadow: 0 1px 4px rgba(26, 34, 48, 0.25);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--lijn-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--inkt-2); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 2px solid var(--inkt); border-radius: 50%; background: var(--vlak); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--focus); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--focus); }

/* ==========================================================================
   Beeld: de klassen van alle SVG-beelden en beeldcomponenten (prefix b-)
   Druk = lijnkleur, fase = vulkleur, onderdelen in inkt op wit.
   ========================================================================== */
.beeld { position: relative; max-width: var(--beeld-max); margin: 0 auto; }
.beeld > svg, .beeld-svg { width: 100%; height: auto; overflow: visible; touch-action: manipulation; }

/* leidingen */
.b-leiding { fill: none; stroke-width: var(--b-leiding); stroke-linecap: round; stroke-linejoin: round; }
.b-hd { stroke: var(--vak-hd); }
.b-ld { stroke: var(--vak-ld); }
.b-neutraal { stroke: var(--vak-neutraal); }
.b-vul-hd { fill: var(--vak-hd); }
.b-vul-ld { fill: var(--vak-ld); }
.b-vul-neutraal { fill: var(--vak-neutraal); }
.b-pijl { stroke: #FFFFFF; stroke-width: 2; paint-order: stroke; stroke-linejoin: round; }

/* lagen zonder doelen vangen geen tik op, zodat een doel eronder bereikbaar blijft */
.b-geen-klik { pointer-events: none; }

/* onderdelen */
.b-onderdeel { fill: #FFFFFF; stroke: var(--inkt); stroke-width: 2; }
.b-lijnwerk { fill: none; stroke: var(--inkt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-dun { fill: none; stroke: var(--inkt-3); stroke-width: 1.5; stroke-linecap: round; }
.b-vul-inkt { fill: var(--inkt); }
.b-cel { fill: none; stroke: var(--inkt-3); stroke-width: 1.5; stroke-dasharray: 7 6; }
.b-vlak { fill: var(--vlak-2); stroke: var(--lijn-2); stroke-width: 1.5; }
.b-vlak-vacuum { fill: #E6E8EC; }
.b-arcering { fill: none; stroke: #C2C7CE; stroke-width: 1.2; }
.b-lijn-lucht { fill: none; stroke: var(--inkt); stroke-width: 2.5; }
.b-paneel { fill: var(--vlak-2); stroke: var(--lijn); stroke-width: 1.5; }
.b-wand { fill: #D9DDE2; stroke: var(--inkt); stroke-width: 2; }
.b-rand-dun { stroke: var(--inkt-2); stroke-width: 1.5; }
.b-bel { fill: #FFFFFF; stroke: var(--vak-nd); stroke-width: 1.5; }
.b-dak { fill: none; stroke: var(--inkt); stroke-width: 6; stroke-linecap: round; }
.b-overgang { fill: none; stroke: var(--inkt); stroke-width: 2.5; stroke-linecap: round; }

/* fasen: vulkleur met een rand, tekst in inkt */
.b-fase-vloeistof { fill: var(--vak-vloeistof-tint); stroke: var(--vak-vloeistof); stroke-width: 1.5; }
.b-fase-nd { fill: var(--vak-nd-tint); stroke: var(--vak-nd); stroke-width: 1.5; }
.b-fase-gas { fill: var(--vak-gas-tint); stroke: var(--vak-gas); stroke-width: 1.5; }
.b-fase-vast { fill: var(--vak-vast-tint); stroke: var(--vak-vast); stroke-width: 1.5; }
.b-vlak-vloeistof { fill: var(--vak-vloeistof-tint); }
.b-vlak-vloeistof-vol { fill: var(--vak-vloeistof-vlak); }
.b-vlak-nd { fill: var(--vak-nd-tint); }
.b-vlak-gas { fill: var(--vak-gas-tint); }
.b-vlak-vast { fill: var(--vak-vast-tint); }
.b-deeltje-vloeistof { fill: var(--vak-vloeistof); }
.b-deeltje-gas { fill: var(--vak-gas); }
.b-deeltje-vast { fill: var(--inkt-2); }
.b-rand-vloeistof { fill: none; stroke: var(--vak-vloeistof); stroke-width: 2.5; }
.b-lijn-nd { fill: none; stroke: var(--vak-nd); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }

/* warmte en stromen */
.b-warmte { fill: none; stroke: var(--vak-warmte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-vul-warmte { fill: var(--vak-warmte); }
.b-stroom-1 { fill: #D5D9DF; }
.b-stroom-2 { fill: #8A919B; }
.b-zon { fill: #FFFFFF; stroke: var(--inkt-2); stroke-width: 2; }

/* tekst in het beeld: altijd inkt */
.b-tekst { font-size: 15px; font-weight: 650; fill: var(--inkt); }
.b-tekst-groot { font-size: 24px; font-weight: 650; fill: var(--inkt); }
.b-tekst-middel { font-size: 20px; font-weight: 650; fill: var(--inkt); }
.b-schaal { font-size: 14px; font-weight: 600; fill: var(--inkt-2); font-variant-numeric: tabular-nums; }
.b-tekst-klein { font-size: 13px; font-weight: 600; fill: var(--inkt-2); }
.b-tekst-halo { stroke: #FFFFFF; stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }   /* leesbaar boven lijnen */
.b-tekst-wit { font-size: 13px; font-weight: 700; fill: #FFFFFF; }
.b-code { font-family: var(--font-mono); font-size: 12px; fill: var(--inkt-2); }
.b-label { fill: #FFFFFF; stroke: var(--lijn-2); stroke-width: 1; }
.b-label-donker { fill: var(--inkt); }

/* vat, buizen en kijkglas (verkenners) */
.b-vat-wand { fill: none; stroke: var(--inkt); stroke-width: 2.5; }
.b-buis { fill: none; stroke-width: 3; }
.b-proces .b-tekst-klein { font-weight: 700; fill: var(--inkt); }

/* meters */
.b-meter-vlak { fill: #FFFFFF; stroke: var(--lijn); stroke-width: 1; }
.b-schaal-boog { fill: none; stroke: var(--inkt-3); stroke-width: 1; }
.b-streep-t { stroke: var(--inkt-3); stroke-width: 1.2; stroke-linecap: round; }
.b-schaal-eenheid { font-size: 11px; font-weight: 650; fill: var(--inkt-2); }
.b-meter { fill: #FFFFFF; stroke: var(--inkt); stroke-width: 2.5; }
.b-meter-ld { fill: #FFFFFF; stroke: var(--vak-ld); stroke-width: 3.5; }
.b-meter-hd { fill: #FFFFFF; stroke: var(--vak-hd); stroke-width: 3.5; }
.b-streep { stroke: var(--inkt-2); stroke-width: 1.2; stroke-linecap: round; }
.b-streep-groot { stroke: var(--inkt); stroke-width: 2.2; stroke-linecap: round; }
.b-naald { stroke: var(--inkt); stroke-width: 3; stroke-linecap: round; }
.b-schaal-t { font-size: 10px; font-weight: 600; fill: var(--inkt-3); }
.b-schaal-p { font-size: 11px; font-weight: 700; fill: var(--inkt); }

/* grafieken: haarlijnen, een lijn, een punt met een witte ring */
.b-raster { stroke: rgba(26, 34, 48, 0.09); stroke-width: 1; fill: none; }
.b-raster-sterk { stroke: rgba(26, 34, 48, 0.16); stroke-width: 1; fill: none; }
.b-as { stroke: var(--lijn-2); stroke-width: 1; fill: none; }
.b-as-tekst { font-size: 12px; fill: var(--inkt-3); font-variant-numeric: tabular-nums; }
.b-as-titel { font-size: 12px; font-weight: 600; fill: var(--inkt-2); }
.b-ref { stroke: var(--inkt-3); stroke-width: 1; fill: none; }
.b-kruis { stroke: var(--inkt-2); stroke-width: 1; }
.b-punt { fill: var(--vak-nd); stroke: #FFFFFF; stroke-width: 2.5; }
.b-punt-inkt { fill: var(--inkt); stroke: #FFFFFF; stroke-width: 2.5; }
.b-koepel { fill: none; stroke: var(--inkt); stroke-width: 2; }
.b-isotherm { fill: none; stroke: var(--inkt-2); stroke-width: 1.2; opacity: 0.7; }
.b-isotherm-tekst { font-size: 11px; font-weight: 600; fill: var(--inkt-2); }
.b-isentroop { fill: none; stroke: var(--inkt-3); stroke-width: 1; stroke-dasharray: 5 4; }
.b-kringloop { fill: none; stroke: var(--inkt); stroke-width: 2.5; stroke-linejoin: round; }
.b-kringloop-hd { fill: none; stroke: var(--vak-hd); stroke-width: 3; stroke-linecap: round; }
.b-kringloop-ld { fill: none; stroke: var(--vak-ld); stroke-width: 3; stroke-linecap: round; }
.b-tag rect { fill: var(--inkt); }
.b-tag text { font-size: 12px; font-weight: 650; fill: #FFFFFF; font-variant-numeric: tabular-nums; }

/* doelen: een raakvlak van minstens 44 px om elk doel; onzichtbaar tot een vorm het gebruikt.
   De vormcomponent zet de toestanden met een klasse op het element met data-doel. */
.b-raakvlak { fill: transparent; stroke: transparent; }
.b-raakvlak-lijn { fill: none; stroke: transparent; stroke-width: 44; stroke-linecap: butt; stroke-linejoin: round; }
.b-raakvlak-lijn.b-raakvlak-32 { stroke-width: 32; }
.b-raakvlak-lijn.b-raakvlak-24 { stroke-width: 24; }   /* lijnfamilies in een dicht diagram: de WCAG-AA-ondergrens */
.b-raakvlak-lijn.b-raakvlak-smal { stroke-width: 12; } /* rasterlijnen: alleen een afleider, geen doel om op te mikken */
.b-kies { fill: transparent; cursor: crosshair; }
[data-doel].is-verborgen { pointer-events: none; }
[data-doel] { outline: none; }
[data-doel].is-actief { cursor: pointer; }
[data-doel].is-actief:hover .b-raakvlak { fill: var(--b-markering); }
[data-doel].is-actief:hover .b-raakvlak-lijn { stroke: var(--b-markering); }
[data-doel]:focus-visible .b-raakvlak { fill: var(--b-markering); stroke: var(--focus); stroke-width: 3; }
[data-doel]:focus-visible .b-raakvlak-lijn { stroke: var(--b-markering-sterk); }
[data-doel].is-gekozen .b-raakvlak { fill: var(--b-markering-sterk); stroke: var(--inkt); stroke-width: 2.5; }
[data-doel].is-gekozen .b-raakvlak-lijn { stroke: var(--b-markering-sterk); }
[data-doel].is-goed .b-raakvlak { fill: rgba(30, 123, 69, 0.14); stroke: var(--goed); stroke-width: 3; }
[data-doel].is-goed .b-raakvlak-lijn { stroke: rgba(30, 123, 69, 0.22); }
[data-doel].is-fout .b-raakvlak { fill: var(--b-markering); stroke: var(--fout); stroke-width: 3; stroke-dasharray: 7 5; }
[data-doel].is-fout .b-raakvlak-lijn { stroke: var(--b-markering-sterk); }
[data-doel].is-juist .b-raakvlak { stroke: var(--goed); stroke-width: 3; stroke-dasharray: none; }
[data-doel].is-uit { pointer-events: none; opacity: 0.45; }
/* een gekozen of beoordeelde leiding wordt ook dikker getekend */
[data-doel].is-gekozen .b-leiding, [data-doel].is-goed .b-leiding,
[data-doel].is-fout .b-leiding, [data-doel].is-juist .b-leiding { stroke-width: 10; }
/* hulpweergave voor de harnaspagina en de review: maak de raakvlakken zichtbaar */
.toon-raakvlakken .b-raakvlak { fill: rgba(26, 34, 48, 0.08); stroke: var(--inkt-3); stroke-width: 1; stroke-dasharray: 4 3; }
.toon-raakvlakken .b-raakvlak-lijn { stroke: rgba(26, 34, 48, 0.10); }

/* ==========================================================================
   Beeldcomponenten: verkenners en meters
   ========================================================================== */
.model { display: grid; gap: var(--r4); }
.model > * { min-width: 0; }
.model-deel { display: grid; gap: var(--r3); align-content: start; min-width: 0; }
.model-deel > .schuif { margin-top: 0; }
.podium { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: var(--r3); align-items: center; }
.podium-beeld svg { width: 100%; height: auto; max-width: 200px; margin: 0 auto; }
.podium-meter svg { width: 100%; height: auto; max-width: 240px; margin: 0 auto; }
.vast-gegeven { font-size: var(--fs-s); color: var(--inkt-2); }
.vast-gegeven b { color: var(--inkt); font-weight: 650; }
figure.grafiek { margin: 0; }
.grafiek figcaption { margin-top: var(--r2); }
.uitlezing { display: grid; gap: var(--r3); margin: 0; }
.uitlezing > div { display: grid; }
.uitlezing dt { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-3); }
.uitlezing dd { margin: 0; }
.uitlezing .waarde { font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; }
.uitlezing .waarde small { font-size: var(--fs-s); font-weight: 600; letter-spacing: 0; color: var(--inkt-2); }
.uitlezing .sub { font-size: 0.8125rem; line-height: 1.35; color: var(--inkt-3); }
.uitlezing .scheiding { padding-top: var(--r3); border-top: 1px solid var(--lijn); }
.waarden { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--r2); }
.waarden > div { padding: var(--r2) var(--r3); border-radius: var(--radius-s); background: var(--vlak-2); border: 1px solid var(--lijn); }
.waarden dt { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-3); overflow-wrap: break-word; }
.waarden dd { margin: 0; font-size: var(--fs-l); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.waarden dd small { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-2); }
.waarden .groot dd { font-size: var(--fs-xl); }
.grafiek { position: relative; touch-action: pan-y; }
.grafiek svg { width: 100%; height: auto; overflow: visible; }
.meterlijst { display: grid; gap: var(--r3); }
.meterregel { display: grid; grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr); gap: var(--r3); align-items: center; font-size: var(--fs-s); }
.meterregel b { font-weight: 650; }
.niveau { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--lijn) 0 33%, var(--vlak-3) 33% 67%, var(--lijn) 67% 100%); }
.niveau i { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--inkt); transition: left 0.2s ease; }
.niveau-schaal { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.75rem; color: var(--inkt-3); }

/* ==========================================================================
   Tablet en desktop
   ========================================================================== */
@media (min-width: 600px) {
  .pagina { padding: var(--r6) var(--r5) var(--r8); }
  .balk-binnen, .voet, .banner-binnen { padding-left: var(--r5); padding-right: var(--r5); }
  .kaart { padding: var(--r5); }
  .us-meta { grid-template-columns: 1fr 1fr 1.3fr; }
  .sessie-lijst li { grid-template-columns: 124px minmax(0, 1fr); gap: 4px var(--r3); }
  .sessie-lijst .status { grid-row: span 2; align-self: start; margin-top: 1px; }
}

@media (min-width: 900px) {
  h1 { font-size: var(--fs-3xl); }
  .kop { margin-bottom: var(--r6); }
  .raster--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--r5); align-items: start; }
  .raster--zij { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--r5); align-items: start; }

  .dash-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; }
  .examen, .kalibratie { display: flex; flex-direction: column; }
  .examen .knop, .kalibratie .knop { margin-top: auto; }
  .examen-datum, .kalibratie .klein { margin-bottom: var(--r4); }

  .us-kolommen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px 112px 150px;
    gap: var(--r3);
    padding: var(--r2) var(--r4);
    border-top: 1px solid var(--lijn);
    background: var(--vlak-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--inkt-3);
  }
  .us-kolommen span:first-child { padding-left: var(--inspring); }
  .uitspraken { border-top: 0; }
  .us { grid-template-columns: minmax(0, 1fr) 132px 112px 150px; gap: var(--r1) var(--r3); align-items: start; padding: var(--r3) var(--r4); }
  .us-tekst p { max-width: 36rem; }
  .us-meta { display: contents; }
  .us-meta .us-cel:first-child { grid-column: auto; }
  .us-cel { padding-top: 1px; }
  .us-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .us-signaal { grid-column: 1 / -1; }
  .us-oefen { grid-column: 1; min-height: 32px; }

  .model--breed { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--r5); align-items: start; }
}

@media (max-width: 599.98px) {
  .alleen-breed { display: none; }
}
@media (pointer: coarse) {
  .alleen-muis { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .b-leiding, .b-koepel, .b-kringloop { stroke: CanvasText; }
  [data-doel]:focus-visible .b-raakvlak { stroke: Highlight; }
}
@media print {
  body { background: #FFFFFF; }
  .balk, .voet, .knop, .banner { display: none; }
  .kaart, .leerdoel { box-shadow: none; }
}
