/* ==========================================================================
   Het platform van een digitaal werkboek - 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 */
  --vlak-hover: #EFEDE7;        /* een klikbaar blok onder de muis: donkerder dan wit en dan het papier (3d, U1) */
  --vlak-actief: #E7E5DE;       /* tijdens de klik of de tik */
  --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;
  overflow-wrap: break-word;   /* sprint 5d (D9): een lang woord, zoals "beveiligingsappendages", steekt anders uit op 360 px */
}
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: 0.3em;
  min-height: var(--doel);
  font-weight: 650;
  font-size: var(--fs-s);
  text-decoration: none;
}
/* U9 (sprint 3d): "A1 en A2" in dezelfde letter als de naam, zodat het niet als aparte knop leest */
.merk-sub { color: inherit; font-weight: inherit; }
.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; }
/* Sprint 4a: alleen op staging (de server zet hem in index.html). Wit op #9A3412 is 7,3 : 1. */
.staging-balk { padding: 6px var(--r4); background: #9A3412; color: #FFFFFF; font-size: var(--fs-s); text-align: center; }
.staging-balk b { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.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; }
/* sprint 5a-1 (S9): "Zo werk je met het werkboek", open tot het eerste gehaalde leerdoel */
.route summary { font-weight: 650; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.route ul { margin: var(--r2) 0 0; padding-left: 1.25rem; }
.route li { margin: var(--r1) 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);
  transition: background-color 0.12s ease;
}
.leerdoel > summary::-webkit-details-marker { display: none; }
/* U1 (sprint 3d): het hele onderwerp kleurt donkerder onder de muis */
.leerdoel > summary:hover { background: var(--vlak-hover); }
.leerdoel > summary:active { background: var(--vlak-actief); }
.leerdoel > summary:hover .ld-pijl { color: var(--inkt); }
.leerdoel > summary:hover .ld-nr { background: var(--vlak); }
.leerdoel[open] > summary { border-radius: var(--radius-l) var(--radius-l) 0 0; }
.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 { position: relative; list-style: none; display: grid; gap: var(--r3); padding: var(--r4); border-bottom: 1px solid var(--lijn); transition: background-color 0.12s ease; }
.us:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-l) var(--radius-l); }
/* U1 (sprint 3d): de hele regel van een leerdoel is de link, niet alleen "Oefen" */
.us:hover { background-color: var(--vlak-hover); }
.us:active { background-color: var(--vlak-actief); }
.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-oefen::after { content: ""; position: absolute; inset: 0; }
.us-oefen:focus-visible { outline: none; }
.us:has(.us-oefen:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.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); }
.uitspraak-ref .doel-nr { font-size: var(--fs-xs); color: var(--inkt-3); white-space: nowrap; }
.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; }
/* sprint 4d (S12): een lang woord ("Arbeidsomstandighedenbesluit") breekt, in plaats van buiten de optie te lopen */
.optie-tekst { min-width: 0; overflow-wrap: break-word; }
.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; }
/* minmax(0, 1fr): de knoppen krimpen mee met een smalle kolom; de tekst loopt dan door naar een tweede
   regel in plaats van onder de rand te verdwijnen (telefoontest 17-11: "gok" viel weg) */
.segment {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 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: var(--r1) var(--r2);
  text-align: center;
  overflow-wrap: anywhere;
  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; position: relative; }   /* sprint 4c (S10): .vh blijft binnen de container */

/* ==========================================================================
   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); }
/* Echte kleuren bij gereedschap en cilinders (D-2026-11-17-12, sprint 3b): slangen van de autogeenset, afsluiters
   en schouder van een cilinder, service-slangen. Altijd met het woord erbij, en nooit samen met drukkleuren in één
   beeld. Dezelfde tint als de drukkleuren, maar een andere betekenis; daarom een eigen klasse. */
.b-echt-rood { stroke: var(--vak-hd); }
.b-echt-blauw { stroke: var(--vak-ld); }
.b-echt-geel { stroke: #9C7B12; }
.b-echt-rood-vlak { fill: var(--vak-hd); }
.b-echt-blauw-vlak { fill: var(--vak-ld); }
.b-echt-geel-vlak { fill: #C9A227; }
/* De oranje lamp van de toegangssignalering (sprint 3g, beeld opstellingen); altijd met het woord "oranje" erbij. */
.b-echt-oranje-vlak { fill: #D9761A; }
/* Het CLP-pictogram: een witte ruit met een rode rand (toetsterm 12.01a.1, sprint 3f). Het woord staat in de kaart. */
.b-ghs-ruit { fill: #FFFFFF; stroke: var(--vak-hd); stroke-width: 2; stroke-linejoin: round; }
.b-ghs-rand { fill: none; stroke: var(--vak-hd); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.b-ghs-ruit-klein { fill: #FFFFFF; stroke: var(--vak-hd); stroke-width: 3.5; stroke-linejoin: round; }
.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-tekst-uitleg { font-size: 18px; font-weight: 600; fill: var(--inkt-2); }   /* sprint 3a: op 390 px nog 15 px */
/* sprint 3a: olie (donker bruingrijs, niet groenblauw zoals vloeistof en niet oker zoals gas) en isolatie */
.b-olie { fill: #6E5B45; }
.b-olie-tint { fill: #E7DFD3; stroke: #6E5B45; stroke-width: 1.5; }
.b-isolatie { fill: #DADDE2; stroke: #8E959E; stroke-width: 1.2; stroke-dasharray: 3 3; }
/* de vochtindicator van een kijkglas (H11): de kleur staat er in het beeld altijd ook als woord bij */
.b-indicator-geel { fill: #E7C21C; stroke: var(--inkt); stroke-width: 1.5; }
.b-indicator-groen { fill: #2E8B57; stroke: var(--inkt); stroke-width: 1.5; }
.b-code { font-family: var(--font-mono); font-size: 12px; fill: var(--inkt-2); }
.b-code-groot { font-family: var(--font-mono); font-size: 16px; font-weight: 600; fill: var(--inkt-2); }   /* sprint 3a: op 390 px 13 px */
.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; }
/* B25 (sprint 3b): een breed model (vat, kringloop, vulling) kiest zijn indeling op de breedte van zijn houder,
   niet op die van het scherm. In een VER-opdracht staat het model vanaf 720 px in een halve kolom; met een
   mediaregel werd het daar nog eens in tweeën gedeeld. */
:where(*):has(> .model--breed) { container: model / inline-size; }
@container model (min-width: 640px) {
  .model--breed { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--r5); align-items: start; }
}
.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); }

/* tevmodel (H06.L2): verkenner thermostatisch expansieventiel.
   Hoort in css/stijl.css, onder "Beeldcomponenten: verkenners en meters". Bouwt op de tokens.
   De indeling volgt de breedte van het model zelf, niet die van het scherm: in een VER-opdracht staat
   het model vanaf 720 px opdrachtbreedte in een halve kolom (vormen.css), en daar past naast elkaar niet. */
.tev { container: tev / inline-size; }
.tev-beeld svg { max-width: 440px; margin: 0 auto; }
@container tev (min-width: 640px) {
  .tev-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--r5); align-items: start; }
}
.tev-keuze { border: 0; margin: 0; padding: 0; min-width: 0; }
.tev-keuze legend { padding: 0; margin-bottom: var(--r1); font-size: var(--fs-s); font-weight: 600; }
.tev-vast { display: grid; gap: var(--r1); }
.tev-vast p + p { margin-top: 0; }
.tev-regelaars .schuif .vast-gegeven { margin-top: var(--r1); }
.tev .waarden { margin: 0; }
.tev-waarden { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.tev-ovh { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.waarden dd.tev-sub { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-3); white-space: normal; }
/* de oververhitting aan het eind wijkt meer dan 1 K af van wat het ventiel ziet: valt op, zonder rood */
.waarden > div.tev-anders { border: 2px solid var(--inkt); background: var(--let-op-tint); }
.waarden > div.tev-anders dd.tev-sub { color: var(--inkt); }

/* manifold (H04, sprint 3b): de manometerset als verkenner (js/media/manifold.js).
   Hoort in css/stijl.css, onder "Beeldcomponenten: verkenners en meters", na tevmodel. Bouwt op de tokens.
   - De indeling volgt de breedte van het model zelf, niet die van het scherm (containerregel, zoals .tev):
     in de halve kolom van een VER-opdracht onder elkaar, vanaf 640 px naast elkaar.
   - Echte kleuren van het gereedschap (D-2026-11-17-12): LOW blauw en HIGH rood (dat zijn ook de
     drukkleuren), VAC en REF geel, de kleur van de middelste slang. Er staat altijd een woord bij.
   - Open is een donkere knop met het woord "open", dicht een witte met "dicht": niet alleen kleur.
   - Geen inline stijl; de component zet alleen klassen en SVG-attributen. */
.mf { container: mf / inline-size; display: grid; gap: var(--r3); }
.mf > * { min-width: 0; }
.mf-keuze { border: 0; margin: 0; padding: 0; min-width: 0; }
.mf-keuze legend { padding: 0; margin-bottom: var(--r1); font-size: var(--fs-s); font-weight: 600; }
.mf-situatie-uitleg { margin: 0; }
.mf-beeld svg { display: block; max-width: 440px; margin: 0 auto; }
@container mf (min-width: 640px) {
  .mf-raster { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--r5); align-items: start; }
}

/* in het beeld */
.mf-kanaal { stroke: var(--lijn-2); stroke-width: 8; stroke-linecap: round; }
.mf-kanaal.is-verbonden { stroke: var(--inkt-2); }
.mf-kijkglas { fill: #FFFFFF; stroke: var(--inkt-2); stroke-width: 2; }
.mf-slang-geel { stroke: #C9A227; }
.mf-vacuumzone { fill: none; stroke: #C9CDD3; stroke-width: 6; }
.mf-trend { font-size: 18px; font-weight: 700; fill: var(--inkt); }
.mf-poort { font-size: 18px; font-weight: 700; fill: var(--inkt-2); letter-spacing: 0.02em; }

/* de afsluiters in het beeld: het raakvlak (b-raakvlak, 72 eenheden) ligt bovenop en vangt de tik */
.mf-knop { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mf-knop-vlak { fill: #FFFFFF; stroke-width: 5; }
.mf-knop--ld .mf-knop-vlak { stroke: var(--vak-ld); }
.mf-knop--hd .mf-knop-vlak { stroke: var(--vak-hd); }
.mf-knop--geel .mf-knop-vlak { stroke: #9C7B12; }
.mf-knop-tekst { font-size: 18px; font-weight: 700; fill: var(--inkt); pointer-events: none; }
.mf-knop[aria-pressed="true"] .mf-knop-vlak { fill: var(--inkt); }
.mf-knop[aria-pressed="true"] .mf-knop-tekst { fill: #FFFFFF; }
.mf-knop:hover .b-raakvlak { fill: var(--b-markering); }
.mf-knop[aria-disabled="true"] { cursor: not-allowed; }
.mf-knop[aria-disabled="true"] .mf-knop-vlak { stroke-dasharray: 7 5; }
.mf-knop[aria-disabled="true"]:hover .b-raakvlak { fill: transparent; }

/* de knoppen onder het beeld */
.mf-kranen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--r2); }
.mf-kraan {
  appearance: none;
  min-width: 0;
  min-height: var(--doel);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px var(--r2);
  padding: var(--r2) var(--r3);
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-m);
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: var(--fs-s);
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.mf-kraan b { font-weight: 650; overflow-wrap: anywhere; }
.mf-kraan-stand { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-2); white-space: nowrap; }
.mf-kraan:hover { border-color: var(--inkt); }
.mf-kraan[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: #FFFFFF; }
.mf-kraan[aria-pressed="true"] .mf-kraan-stand { color: #FFFFFF; }
.mf-kraan[disabled] { cursor: not-allowed; border-style: dashed; }
.mf-kraan[disabled]:hover { border-color: var(--rand-invoer); }

/* de uitkomst: verbinding, stroming en een waarschuwing met een woord, nooit alleen kleur */
.mf-uitkomst { display: grid; gap: var(--r2); min-height: 4.5em; padding: var(--r3); border: 1px solid var(--lijn); border-radius: var(--radius-s); background: var(--vlak-2); font-size: var(--fs-s); }
.mf-uitkomst p { margin: 0; }
.mf-uitkomst--stil { min-height: 0; padding: 0; border: 0; background: none; }
.mf-let-op { padding: var(--r2) var(--r3); border-left: 4px solid var(--let-op-rand); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--let-op-tint); color: var(--inkt); }
.mf-let-op b { font-weight: 700; }
.mf-voet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--r2) var(--r3); }
.mf-voet .klein { margin: 0; }
.knop.mf-terug { min-height: var(--doel); padding: 0 var(--r2); font-size: var(--fs-s); }

/* lekcontrole (H09, sprint 3c): de lekcontrole als verkenner (js/media/lekcontrole.js).
   Bouwt op de tokens.
   - De indeling volgt de breedte van het model zelf, niet die van het scherm (containerregel, zoals .mf en
     .tev): in de halve kolom van een VER-opdracht onder elkaar, vanaf 640 px de bediening links en de
     uitkomst rechts.
   - Geen drukkleuren: rood en blauw betekenen alleen de drukzijde. De schaal is grijs, een kortere termijn is
     donkerder; het vak van de installatie heeft een dikke rand en de pijl. Elk vak heeft een getal of woord.
   - Gekozen is donker met witte tekst, en een schakelaar zegt "ja" of "nee": nooit alleen kleur.
   - Geen inline stijl; de component zet alleen klassen, hidden en SVG-attributen (CSP). */
.lc { container: lc / inline-size; display: grid; gap: var(--r3); }
.lc > *, .lc-raster > * { min-width: 0; }
.lc-raster { display: grid; gap: var(--r4); }
@container lc (min-width: 640px) {
  .lc-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--r5); align-items: start; }
}
.lc-bediening { display: grid; gap: var(--r4); align-content: start; }
.lc-veld { border: 0; margin: 0; padding: 0; min-width: 0; }
.lc-veld legend, .lc-kop { display: block; padding: 0; margin: 0 0 var(--r2); font-size: var(--fs-s); font-weight: 600; color: var(--inkt); }
.lc-vast { margin: 0; }

/* het koudemiddel: keuzerondjes die eruitzien als knoppen, drie naast elkaar */
.lc-middelen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--r2); }
.lc-middel {
  position: relative;
  min-width: 0;
  min-height: var(--doel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: var(--r2);
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-m);
  background: var(--vlak);
  color: var(--inkt);
  font-size: var(--fs-s);
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lc-middel input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.lc-middel-naam { font-weight: 700; overflow-wrap: anywhere; }
.lc-middel small { font-size: var(--fs-xs); font-weight: 600; color: var(--inkt-2); overflow-wrap: anywhere; }
.lc-middel:hover { border-color: var(--inkt); }
.lc-middel:has(input:checked) { background: var(--inkt); border-color: var(--inkt); color: #FFFFFF; }
.lc-middel:has(input:checked) small { color: #FFFFFF; }
.lc-middel:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* de vulling: − en + (knop-rond, 44 px) rond een tekstveld */
.lc-vulling { display: flex; flex-wrap: wrap; align-items: center; gap: var(--r2); }
.lc-kg {
  width: 6.5em;
  min-width: 0;
  min-height: var(--doel);
  padding: var(--r1) var(--r2);
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-m);
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: var(--fs-l);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lc-kg:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lc-kg[aria-invalid="true"] { border-color: var(--inkt); border-style: dashed; }
.lc-eenheid { font-weight: 600; }
.lc-stap { touch-action: manipulation; }
.lc-hint { margin: var(--r2) 0 0; font-size: var(--fs-xs); color: var(--inkt); }

/* de schakelaars: het woord ja of nee staat er altijd bij */
.lc-schakels { display: grid; gap: var(--r2); }
.lc-schakel {
  appearance: none;
  min-width: 0;
  min-height: var(--doel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--r2);
  padding: var(--r2) var(--r3);
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-m);
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: var(--fs-s);
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lc-schakel span { font-weight: 650; overflow-wrap: anywhere; }
.lc-schakel b { flex: none; min-width: 3.25em; padding: 2px var(--r2); border: 1.5px solid currentColor; border-radius: var(--radius-rond); font-weight: 700; text-align: center; }
.lc-schakel:hover { border-color: var(--inkt); }
.lc-schakel[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: #FFFFFF; }

/* de uitkomst: de som, de schaal, het oordeel en een melding met een woord, nooit alleen kleur */
.lc-uitkomst { display: grid; gap: var(--r3); padding: var(--r3); border: 1px solid var(--lijn); border-radius: var(--radius-s); background: var(--vlak-2); }
.lc-uitkomst p { margin: 0; }
.lc-som { display: grid; gap: 2px; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.lc-regel { display: block; overflow-wrap: anywhere; }
.lc-som b { font-weight: 700; }
.lc-schaal-svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.lc-oordeel { display: grid; gap: var(--r2); }
.lc-oordeel-kop { font-size: var(--fs-l); font-weight: 700; line-height: var(--lh-kop); }
.lc-toelichting { display: grid; gap: var(--r2); font-size: var(--fs-s); }
.lc-meldingen { display: grid; gap: var(--r2); }
.lc-let-op { padding: var(--r2) var(--r3); border-left: 4px solid var(--let-op-rand); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--let-op-tint); color: var(--inkt); font-size: var(--fs-s); }
.lc-let-op b { font-weight: 700; }
.lc-noot { margin: 0; }

/* in de schaal (SVG, viewBox 320 breed: op 390 px is een eenheid ongeveer 0,93 px) */
.lc-vak { stroke: var(--lijn-2); stroke-width: 1; }
.lc-vak-0 { fill: #FFFFFF; }
.lc-vak-1 { fill: var(--vlak-3); }
.lc-vak-2 { fill: var(--lijn); }
.lc-vak-3 { fill: var(--lijn-2); }
.lc-vak.is-actief { stroke: var(--inkt); stroke-width: 3; }
.lc-grens { stroke: var(--inkt); stroke-width: 2; }
.lc-vak-getal { font-size: 20px; font-weight: 700; fill: var(--inkt); font-variant-numeric: tabular-nums; }
.lc-vak-woord { font-size: 16px; font-weight: 600; fill: var(--inkt); }
.lc-grens-tekst { font-size: 18px; font-weight: 650; fill: var(--inkt); font-variant-numeric: tabular-nums; }
.lc-eenheid-tekst { font-size: 16px; font-weight: 600; fill: var(--inkt-2); }
.lc-pijl { fill: var(--inkt); }
.lc-balk.is-uit { opacity: 0.6; }

/* ==========================================================================
   Beeldcomponent compressoren (js/media/compressoren.js, sprint 3a)
   Op te nemen in css/stijl.css, na "Beeldcomponenten: verkenners en meters".
   - Het gas heeft de drukkleur: blauw (lage druk) via grijs naar rood (hoge
     druk). Bewust via grijs en niet via paars: paars is natte damp.
   - Het gas dat je volgt heeft een rand in inkt; ander gas is lichter.
   - Geen inline stijl; de component zet alleen klassen en SVG-attributen.
   ========================================================================== */

/* de drukkleur van het gas, in zes stappen */
.cmp-druk-0 { fill: #A4BEDD; }
.cmp-druk-1 { fill: #B3C2D6; }
.cmp-druk-2 { fill: #C2C7D0; }
.cmp-druk-3 { fill: #CFC2C5; }
.cmp-druk-4 { fill: #DAB5B8; }
.cmp-druk-5 { fill: #E6A8AB; }
.cmp-zak-ander.cmp-druk-0 { fill: #C8D8EB; }
.cmp-zak-ander.cmp-druk-1 { fill: #D1DAE6; }
.cmp-zak-ander.cmp-druk-2 { fill: #DADDE3; }
.cmp-zak-ander.cmp-druk-3 { fill: #E2DADC; }
.cmp-zak-ander.cmp-druk-4 { fill: #E9D3D4; }
.cmp-zak-ander.cmp-druk-5 { fill: #F0CBCD; }
.cmp-zak-volg { stroke: var(--inkt); stroke-width: 2.5; stroke-linejoin: round; }
.cmp-zak-rand { fill: none; }

/* leidingen in drukkleur, met pijlpunten voor de stroming */
.b-leiding.cmp-leiding { stroke-width: 12; stroke-linecap: butt; }
.cmp-stroom path { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp-stroom--klein path { stroke-width: 1.8; }
.cmp-olieleiding { fill: none; stroke: #6E5B45; stroke-width: 7; stroke-linejoin: round; }

/* onderdelen */
.cmp-wandlijn { fill: none; stroke: var(--inkt); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp-vast { fill: #D9DDE2; stroke: var(--inkt); stroke-width: 1.5; stroke-linejoin: round; }
.cmp-beweeg { fill: #FFFFFF; stroke: var(--inkt); stroke-width: 2; stroke-linejoin: round; }
.cmp-stang-rand { stroke: var(--inkt); stroke-width: 13; stroke-linecap: round; }
.cmp-stang { stroke: #FFFFFF; stroke-width: 8; stroke-linecap: round; }
.cmp-kruk { stroke: #D9DDE2; stroke-width: 8; stroke-linecap: round; }
.cmp-spatel { stroke: var(--inkt); stroke-width: 7; stroke-linecap: round; }
.cmp-riet { fill: var(--inkt-2); }
.cmp-begrenzer { fill: none; stroke: var(--inkt); stroke-width: 3; stroke-linecap: round; }
.cmp-spie { stroke: var(--inkt); stroke-width: 4; stroke-linecap: round; }
.cmp-veer { fill: none; stroke: var(--inkt-2); stroke-width: 2; stroke-linejoin: round; }
.cmp-kap { stroke: var(--vak-hd); stroke-width: 2.5; }
.cmp-poort { fill: var(--inkt-2); stroke: var(--vak-hd); stroke-width: 4; }
.cmp-schroeflijn { fill: none; stroke: var(--inkt-3); stroke-width: 1; opacity: 0.6; }
.cmp-afdichtlijn { fill: none; stroke: var(--inkt); stroke-width: 2.5; stroke-linejoin: round; }
.cmp-richting { fill: none; stroke: var(--inkt-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-baan { fill: none; stroke: var(--inkt-3); stroke-width: 1.5; stroke-dasharray: 3 3; }
.b-raakvlak-lijn.cmp-raak-16 { stroke-width: 16; }

/* namen en fase (lagen namen en fasen) */
.cmp-naam { fill: var(--inkt); }
.cmp-wijzer { stroke: var(--inkt-2); stroke-width: 1.5; }
.cmp-fase-vlak { fill: var(--inkt); }
.cmp-fase-tekst { font-size: 18px; font-weight: 700; fill: #FFFFFF; }

/* de component in de pagina: beeld, keuze van het type, bediening */
.cmp { container: cmp / inline-size; }
.cmp-beeld > svg { display: block; }
.cmp--een .cmp-beeld > svg, .cmp--keuze .cmp-beeld > svg { max-width: 480px; margin: 0 auto; }

.cmp-keuze { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: var(--r3); }
.cmp-keuze-knop {
  appearance: none;
  min-width: 0;
  min-height: var(--doel);
  padding: 0 4px;
  border: 1.5px solid var(--rand-invoer);
  border-radius: var(--radius-rond);
  background: var(--vlak);
  color: var(--inkt);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cmp-keuze--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-keuze--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-keuze-knop:hover { border-color: var(--inkt); }
.cmp-keuze-knop[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: #FFFFFF; }

.cmp-bediening { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--r2) var(--r3); margin-top: var(--r3); }
.knop.cmp-knop { min-height: var(--doel); padding: 0 var(--r3); gap: 6px; font-size: var(--fs-s); }
.cmp-icoon-vlak { fill: currentColor; }
.cmp-icoon-lijn { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* De stand heeft een vaste breedte, zodat de stapknoppen niet verspringen als de tekst verandert. Sprint 5c (D9): in een
   smalle animatie (het paneel "Lees de kaart": 224 px op een telefoon, 308 px op een laptop) duwde 14em de knoppen buiten
   de kaart. Nu krijgt de stand hoogstens wat er naast de twee knoppen overblijft (100cqw is de breedte van .cmp), en
   gaat de tekst daar zo nodig over twee regels. */
.cmp-stappen { display: flex; align-items: center; gap: var(--r2); max-width: 100%; }
.cmp-stand { margin: 0; min-width: min(14em, 100cqw - 2 * var(--doel) - 2 * var(--r2)); text-align: center;
  font-size: var(--fs-s); font-weight: 650; color: var(--inkt); }

@container cmp (max-width: 299.98px) {
  .cmp-keuze { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container cmp (min-width: 420px) {
  .cmp-keuze-knop { padding: 0 var(--r2); font-size: var(--fs-s); }
}
@container cmp (max-width: 539.98px) {
  .knop.cmp-stapknop { width: var(--doel); min-width: var(--doel); padding: 0; border-radius: 50%; }
  .cmp-stapknop .cmp-knop-tekst {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* ==========================================================================
   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; }
}

@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; }
}

/* ---- Sprint 4g: het proefhoofdstuk op /probeer (mockups in sprints/4g-mockups/) ------------------------------------ */
/* De balk onder de melding "Proefversie": neutraal, want blauw en rood horen in het werkboek bij de lage- en de
   hogedrukzijde (OP1). */
.banner--probeer { background: var(--vlak, #FFFFFF); border-bottom: 1px solid var(--lijn-2); }
.banner--probeer a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
/* Onderaan het overzicht: het kijkje en "Wil je het hele werkboek?"; en "Dit kun je nog niet proberen" */
.probeer-blokken { display: grid; gap: var(--r4); margin-top: var(--r4); }
.probeer-knoppen { display: flex; flex-wrap: wrap; gap: var(--r2); margin-top: var(--r3); }
.probeer-niet + .probeer-knoppen { margin-top: var(--r4); }
/* "Probeer het zelf" in het kijkje: de vragen als lijst met links */
.probeer-lijst { list-style: none; margin-top: var(--r3); border-top: 1px solid var(--lijn); }
.probeer-lijst li { border-bottom: 1px solid var(--lijn); }
.probeer-lijst a { display: flex; justify-content: space-between; gap: var(--r3); padding: var(--r3) 0; color: inherit; font-weight: 600; text-decoration: none; }
.probeer-lijst a::after { content: "\203A"; color: var(--inkt-3); }
/* "Lees de kaart" onder de feedback */
.bron a { font-weight: 600; }
/* Het overzicht zonder de kolom "Volgens jou": onder 900 px krijgt "Gehaald" de hele regel onder de status (anders een
   halve kolom, en dan breekt "nog geen poging"); op een breed scherm drie kolommen */
.dash--probeer .us-meta .us-cel + .us-cel { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .dash--probeer .us-kolommen, .dash--probeer .us { grid-template-columns: minmax(0, 1fr) 132px 150px; }
  .dash--probeer .us-meta .us-cel + .us-cel { grid-column: auto; }
}
