/* Ohara Academy mock-up — gedeelde stijl (ronde 2, zie DESIGN.md).
   Opzet: lichte grijze grond, inhoud op witte vlakken met haarlijnen, één accentkleur (blauw).
   Extra kleur zit alleen in badges en miniaturen. Donker thema alleen via de schakelaar. */

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --line: #e0e0e0;
  --line-strong: #c4c4c4;
  --ink: #242424;
  --ink-2: #5c5c5c;
  --accent: #0f6cbd;        /* links, voortgang, actieve staat */
  --accent-soft: #ebf3fc;
  --btn: #0f6cbd;           /* primaire knop */
  --btn-hover: #115ea3;
  --on-btn: #ffffff;
  --ok: #107c10;
  --ok-soft: #f1faf1;
  --bad: #c50f1f;
  --bad-soft: #fdf3f4;
  --warn: #835b00;
  --warn-soft: #fff4ce;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  /* kleur per leerpad: alleen voor badges en miniaturen */
  --h-gebruiker: #0f6cbd;
  --h-tenantbeheerder: #038387;
  --h-helpdesk: #ca5010;
  --h-operator: #5c2e91;
  --h-ontwikkelaar: #c30052;
  --hue: var(--accent);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  --bg: #1b1b1b; --surface: #262626; --surface-2: #303030; --line: #3d3d3d; --line-strong: #5e5e5e;
  --ink: #f5f5f5; --ink-2: #b3b3b3; --accent: #479ef5; --accent-soft: #0e2a47;
  --btn: #115ea3; --btn-hover: #0f6cbd; --on-btn: #ffffff;
  --ok: #54b054; --ok-soft: #10290f; --bad: #e98087; --bad-soft: #36151a; --warn: #f2c661; --warn-soft: #3a2f0b;
  --shadow: 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
.gebruiker, .hue-gebruiker { --hue: var(--h-gebruiker); }
.tenantbeheerder, .hue-tenantbeheerder { --hue: var(--h-tenantbeheerder); }
.helpdesk, .hue-helpdesk { --hue: var(--h-helpdesk); }
.operator, .hue-operator { --hue: var(--h-operator); }
.ontwikkelaar, .hue-ontwikkelaar { --hue: var(--h-ontwikkelaar); }

/* ---------- basis ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.125rem); }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
table { font: inherit; border-collapse: collapse; width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main { display: flex; flex-direction: column; gap: 44px; padding-block: 24px 72px; }
main.flush { padding-top: 0; }
section { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .8125rem; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.tight { gap: 4px; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 68ch; }
.icon { width: 16px; height: 16px; flex: none; stroke-width: 2; vertical-align: -3px; }
.icon.lg { width: 20px; height: 20px; }
i.icon { display: inline-block; } /* plaats houden tot Lucide het icoon tekent */

/* ---------- bovenbalk ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.mockbar { background: var(--surface-2); color: var(--ink-2); font-size: .75rem; text-align: center; padding: 3px 16px; border-bottom: 1px solid var(--line); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
.brandrow { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo em { font-style: normal; font-weight: 400; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.gsearch { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.gsearch > .icon, .bigsearch > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.gsearch input { width: 100%; padding: 7px 10px 7px 34px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; z-index: 12; display: flex; flex-direction: column; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 4px; color: var(--ink); font-size: .9375rem; }
.suggest a:hover, .suggest a:focus-visible { background: var(--surface-2); text-decoration: none; }
.suggest a span:last-child { margin-left: auto; color: var(--ink-2); font-size: .75rem; white-space: nowrap; }
.suggest .all { color: var(--accent); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 10px; }
.tools { display: flex; align-items: center; gap: 8px; }
.xp { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 9px; font-size: .75rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp .icon { width: 12px; height: 12px; vertical-align: 0; }
.iconbtn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .8125rem; flex: none; }
.avatar:hover { text-decoration: none; }
.avatar.big { width: 72px; height: 72px; font-size: 1.5rem; }
.navrow nav { display: flex; gap: 22px; overflow-x: auto; }
.navrow a { padding: 9px 0 8px; color: var(--ink-2); font-size: .875rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.navrow a:hover { color: var(--ink); text-decoration: none; border-color: var(--line-strong); }
.navrow a[aria-current="page"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .gsearch { display: none; } .tools { margin-left: auto; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: .8125rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs .icon { width: 12px; height: 12px; }

/* ---------- knoppen, labels, voortgang ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--btn); border-radius: 4px; background: var(--btn); color: var(--on-btn); font-weight: 600; font-size: .9375rem; line-height: 1.4; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.subtle { background: none; border-color: transparent; color: var(--accent); padding-inline: 6px; }
.btn.subtle:hover { background: var(--accent-soft); }
.btn.sm { padding: 4px 10px; font-size: .8125rem; }
.btn.lg { padding: 10px 20px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.tag.brand { background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag .icon { width: 12px; height: 12px; vertical-align: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: .8125rem; cursor: pointer; }
.chip:hover { background: var(--surface-2); text-decoration: none; }
.chip .icon { width: 12px; height: 12px; vertical-align: 0; }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.bar.ok > i { background: var(--ok); }
.ring { flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--accent); stroke-linecap: round; }
.ring.ok .value { stroke: var(--ok); }
.ring text { fill: var(--ink); font: 600 11px var(--font); }

/* ---------- vlakken en rasters ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
a.card { color: inherit; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.split > aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split > aside { position: static; } }
.glyph { width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; background: var(--hue); color: #fff; font-weight: 700; font-size: .75rem; flex: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--ink-2); font-size: .8125rem; }
.meta > * + *::before { content: "•"; margin-right: 8px; color: var(--line-strong); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .9375rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; }
.glance { background: var(--surface-2); border-radius: 6px; padding: 18px 20px; display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.glance div { display: grid; grid-template-columns: 20px 1fr; gap: 0 8px; }
.glance .icon { grid-row: span 2; margin-top: 4px; color: var(--ink-2); }
.glance dt { font-size: .8125rem; font-weight: 600; }
.glance dd { margin: 0; font-size: .875rem; color: var(--ink-2); }
.badgeicon { flex: none; display: block; }
.badgeicon text { font: 700 15px var(--font); fill: #fff; }
.badgeicon.locked text { fill: var(--ink-2); }

/* miniaturen (getekend in thumbs.js) */
.thumb { background: color-mix(in srgb, var(--hue) 8%, var(--surface)); aspect-ratio: 320 / 132; overflow: hidden; }
.thumb svg { display: block; width: 100%; height: 100%; }
.t-win { fill: var(--surface); stroke: var(--line-strong); }
.t-bar { fill: var(--line); }
.t-dim { fill: var(--line-strong); }
.t-hue { fill: var(--hue); }
.t-soft { fill: color-mix(in srgb, var(--hue) 20%, var(--surface)); }
.t-ln { fill: none; stroke: var(--hue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-on { fill: #fff; }

/* ---------- startpagina ---------- */
.banner { background: var(--surface); border-bottom: 1px solid var(--line); }
.banner-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding-block: 40px; }
.banner-text { display: flex; flex-direction: column; gap: 16px; }
.banner h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -.03em; max-width: 16ch; }
.banner-art svg { display: block; width: 100%; height: auto; max-height: 300px; }
@media (max-width: 860px) { .banner-in { grid-template-columns: minmax(0, 1fr); padding-block: 28px; } .banner-art { display: none; } }
.bigsearch { position: relative; display: flex; gap: 8px; max-width: 560px; }
.bigsearch input { flex: 1; min-width: 0; padding: 10px 12px 10px 36px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.duo { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.resume { flex-direction: row; padding: 0; overflow: hidden; }
.resume .thumb { width: 250px; aspect-ratio: auto; flex: none; border-right: 1px solid var(--line); }
.resume .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
@media (max-width: 640px) { .resume .thumb { display: none; } }
.pathgrid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pathgrid .featured { grid-column: span 2; }
@media (max-width: 960px) { .pathgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pathgrid { grid-template-columns: minmax(0, 1fr); } .pathgrid .featured { grid-column: auto; } }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; color: inherit; min-width: 0; }
.ccard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
.ccard .thumb { border-bottom: 1px solid var(--line); }
.ccard .body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ccard h3 { color: var(--accent); font-size: 1rem; }
.ccard:hover h3 { text-decoration: underline; }
.ccard .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccard .bar { flex: 1; }
.featured { flex-direction: row; }
.featured .thumb { width: 44%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.featured .body { padding: 20px; gap: 10px; }
.featured h3 { font-size: 1.25rem; }
@media (max-width: 620px) { .featured { flex-direction: column; } .featured .thumb { width: auto; aspect-ratio: 320 / 132; border-right: 0; border-bottom: 1px solid var(--line); } }
.browse { display: grid; gap: 28px; grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .browse { grid-template-columns: minmax(0, 1fr); } }
.facets { display: flex; flex-direction: column; gap: 18px; }
.facets fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.facets legend { font-weight: 600; font-size: .9375rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.facets label { display: flex; gap: 8px; align-items: center; font-size: .875rem; cursor: pointer; }
.facets input, .steps input, .option input, .check input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.cgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.field select, .field input, select.plain { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); min-width: 0; font-weight: 400; }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.results { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; color: inherit; }
a.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }

/* ---------- leerpad ---------- */
.mrow { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; }
.mrow > .dot { grid-row: 1 / span 5; margin-top: 2px; }
.mrow > :not(.dot) { grid-column: 2; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--surface); }
.dot.done { background: var(--ok); border-color: var(--ok); }
.dot.busy { border-color: var(--accent); background: radial-gradient(var(--accent) 0 38%, transparent 42%); }
.dot .icon { width: 13px; height: 13px; stroke-width: 3; vertical-align: 0; }
.mrow h3 a { color: var(--accent); }
.mrow details { margin-top: 6px; }
.mrow summary { cursor: pointer; font-size: .875rem; font-weight: 600; width: max-content; }
.unitlist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.unitlist li { border-left: 2px solid var(--line); padding-left: 12px; display: flex; flex-direction: column; font-size: .9375rem; }
.unitlist li.done { border-color: var(--ok); }
.unitlist span { font-size: .75rem; color: var(--ink-2); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 12px; font-size: .8125rem; font-weight: 500; }

/* ---------- module ---------- */
.learn { display: grid; gap: 28px; grid-template-columns: 270px minmax(0, 1fr) 230px; align-items: start; }
.toc, .context { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); display: flex; flex-direction: column; gap: 12px; font-size: .875rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 4px; color: var(--ink); border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); text-decoration: none; }
.toc a[aria-current="true"] { background: var(--surface); border-left-color: var(--accent); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.toc .dot { width: 18px; height: 18px; margin-top: 2px; }
.toc .dot .icon { width: 11px; height: 11px; }
.context { border-left: 1px solid var(--line); padding-left: 18px; }
.context ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1180px) { .learn { grid-template-columns: 250px minmax(0, 1fr); } .context { display: none; } }
@media (max-width: 860px) { .learn { grid-template-columns: minmax(0, 1fr); } .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; } }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 4vw, 44px) clamp(16px, 4.5vw, 52px); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sheet > header { display: flex; flex-direction: column; gap: 8px; }
.sheet h1 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 72ch; font-size: 1rem; }
.prose h2 { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 12px 16px; max-width: 72ch; font-size: .9375rem; }
.nextunit { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom, 0px); }
.dock .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 10px; }
.dock .bar { width: 160px; }
main.has-dock { padding-bottom: 130px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
figcaption { font-size: .8125rem; color: var(--ink-2); }
.shot { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); overflow-x: auto; }
.shot .chrome { display: flex; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .75rem; color: var(--ink-2); }
.shot .body { padding: 16px; min-width: 460px; }
.shot th, .shot td, .data th, .data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.shot th, .data th { font-size: .75rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.diagram { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); padding: 12px; overflow-x: auto; }
.diagram svg { min-width: 520px; width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--font); fill: var(--ink); }
.diagram rect { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.diagram rect.hot { fill: var(--accent-soft); stroke: var(--accent); }
.diagram rect.cut { fill: var(--bad-soft); stroke: var(--bad); }
.diagram path { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }

/* videospeler: het beeldvlak is altijd donker, net als bij echte spelers */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--surface); }
@media (max-width: 1000px) { .player { grid-template-columns: minmax(0, 1fr); } }
.stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #101214; color: #fff; overflow: hidden; }
.stage .frame { position: absolute; inset: 0 0 44px; display: grid; place-items: center; padding: 3% 8%; }
.stage .frame .thumb { width: 100%; background: none; }
.stage .title { position: absolute; left: 14px; top: 10px; font-size: .8125rem; font-weight: 600; color: #e6e6e6; }
.stage .playbig { position: absolute; left: 50%; top: calc(50% - 22px); transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: #101214; display: grid; place-items: center; cursor: pointer; }
.stage .playbig .icon { width: 26px; height: 26px; margin-left: 3px; }
.stage .cc { position: absolute; left: 10%; right: 10%; bottom: 54px; text-align: center; }
.stage .cc span { background: rgba(0, 0, 0, .82); color: #fff; padding: 3px 8px; border-radius: 2px; font-size: .9375rem; line-height: 1.7; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: #1c1f22; display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.vbar button { background: none; border: 0; color: #e6e6e6; height: 32px; min-width: 32px; padding: 0 6px; border-radius: 4px; cursor: pointer; display: grid; place-items: center; font-size: .75rem; font-weight: 600; }
.vbar button:hover { background: #33383d; }
.vbar button[aria-pressed="true"] { color: #fff; box-shadow: inset 0 -2px 0 #479ef5; }
.vbar .time { font-size: .75rem; color: #c8c8c8; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 6px; }
.scrub { position: relative; flex: 1; min-width: 60px; height: 32px; display: flex; align-items: center; }
.scrub input { width: 100%; margin: 0; accent-color: #479ef5; }
.vside { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; max-height: 420px; }
@media (max-width: 1000px) { .vside { border-left: 0; border-top: 1px solid var(--line); max-height: 260px; } }
.vtabs { display: flex; border-bottom: 1px solid var(--line); }
.vtabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 8px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.vtabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.vlist { list-style: none; margin: 0; padding: 6px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.vlist button { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 4px; cursor: pointer; font-size: .8125rem; line-height: 1.45; }
.vlist button:hover { background: var(--surface-2); }
.vlist button.now { background: var(--accent-soft); }
.vlist time { color: var(--accent); font-variant-numeric: tabular-nums; flex: none; font-weight: 600; }

/* oefenomgeving */
.sandbox { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.creds { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; margin: 0; font-size: .875rem; }
.creds dt { color: var(--ink-2); }
.creds dd { margin: 0; overflow-wrap: anywhere; }
.timer { font: 600 1.25rem var(--font-mono); font-variant-numeric: tabular-nums; }
.timer.low { color: var(--bad); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: step; border: 1px solid var(--line); border-radius: 6px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: .75rem; display: grid; place-items: center; flex: none; margin-top: 1px; }
.steps label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; flex: 1; }
.steps input { margin-top: 4px; }

/* kennischeck */
.question { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.question fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.question legend { font-weight: 600; padding: 0; margin-bottom: 10px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: .9375rem; }
.option:hover { border-color: var(--line-strong); background: var(--surface-2); }
.option input { margin-top: 4px; }
.option.right { background: var(--ok-soft); border-color: var(--ok); }
.option.wrong { background: var(--bad-soft); border-color: var(--bad); }
.feedback { padding: 10px 12px; border-radius: 4px; font-size: .875rem; border-left: 4px solid; }
.feedback.right { background: var(--ok-soft); border-color: var(--ok); }
.feedback.wrong { background: var(--bad-soft); border-color: var(--bad); }

/* ---------- examen ---------- */
body.focus #shell-top, body.focus #shell-foot { display: none; }
.examtop { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line-strong); margin-top: -24px; }
.examtop .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live.rec::before { background: var(--bad); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.exam { display: grid; gap: 24px; grid-template-columns: 210px minmax(0, 1fr) 290px; align-items: start; }
@media (max-width: 1100px) { .exam { grid-template-columns: 190px minmax(0, 1fr); } .exam > .sandbox { grid-column: 1 / -1; } }
@media (max-width: 760px) { .exam { grid-template-columns: minmax(0, 1fr); } }
.tasknav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tasknav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; cursor: pointer; font-size: .875rem; }
.tasknav button:hover { border-color: var(--line-strong); }
.tasknav button[aria-current="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.tasknav .n { width: 22px; height: 22px; border-radius: 4px; background: var(--surface-2); display: grid; place-items: center; font-size: .75rem; font-weight: 600; flex: none; }
.tasknav .pass .n { background: var(--ok); color: var(--surface); }
.tasknav .fail .n { background: var(--bad); color: var(--surface); }
.tasknav .flag { margin-left: auto; color: var(--warn); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.checks li:last-child { border-bottom: 0; }
.checks li.pass { background: var(--ok-soft); }
.checks li.fail { background: var(--bad-soft); }
.checks .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 2px; background: var(--line); color: var(--ink-2); font-size: .6875rem; font-weight: 700; }
.checks .mark .icon { width: 12px; height: 12px; stroke-width: 3; vertical-align: 0; }
.checks .pass .mark { background: var(--ok); color: var(--surface); }
.checks .fail .mark { background: var(--bad); color: var(--surface); }
.score { font-size: clamp(2.6rem, 8vw, 3.75rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.scorebar { position: relative; height: 10px; border-radius: 5px; background: var(--line); }
.scorebar > i { display: block; height: 100%; border-radius: 5px; background: var(--ok); }
.scorebar.fail > i { background: var(--bad); }
.scorebar > b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; }

/* ---------- certificaat: altijd licht papier, ook in het donkere thema ---------- */
.certificate { --c-ink: #1f1f1f; --c-ink2: #5c5c5c; --gold: #9a7b2f; background: #ffffff; color: var(--c-ink); position: relative; padding: clamp(28px, 6vw, 64px); box-shadow: var(--shadow); border: 1px solid #c4c4c4; display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 26px); text-align: center; align-items: center; max-width: 1000px; margin: 0 auto; width: 100%; }
.certificate::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--gold); pointer-events: none; }
.certificate::after { content: ""; position: absolute; inset: 18px; border: 1px solid var(--gold); pointer-events: none; }
.certificate .muted { color: var(--c-ink2); }
.certificate .kicker { font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.certificate .who { font-size: clamp(1.9rem, 5.5vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; border-bottom: 1px solid #c4c4c4; padding: 0 clamp(8px, 4vw, 48px) 10px; }
.certificate .what { font-size: clamp(1.15rem, 2.8vw, 1.6rem); font-weight: 600; color: #0f6cbd; }
.certificate .logo { color: var(--c-ink); }
.certificate .logo em { color: var(--c-ink2); }
.certgrid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 28px; align-items: end; width: 100%; margin-top: 8px; }
@media (max-width: 700px) { .certgrid { grid-template-columns: 1fr 1fr; } .certgrid .seal { grid-column: 1 / -1; justify-self: center; grid-row: 1; } }
.sign { display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; color: var(--c-ink2); }
.sign b { font: 400 2rem/1 "Mrs Saint Delafield", "Segoe Script", cursive; color: #1b2a4a; border-bottom: 1px solid #5c5c5c; padding-bottom: 4px; }
.sign b + span { color: var(--c-ink); font-weight: 600; margin-top: 4px; }
.seal { width: 124px; height: 124px; }
.certmeta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 36px; width: 100%; border-top: 1px solid #e0e0e0; padding-top: 18px; text-align: left; font-size: .8125rem; }
.certmeta div { display: flex; flex-direction: column; }
.certmeta b { font-size: .9375rem; }
.qr { width: 84px; height: 84px; background: #fff; flex: none; }
.code { font: 600 .9375rem var(--font-mono); letter-spacing: .04em; overflow-wrap: anywhere; }
.verdict { border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--surface); }
.verdict.valid { border-left-color: var(--ok); }
.verdict.expired, .verdict.revoked, .verdict.unknown { border-left-color: var(--bad); }
.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }

/* ---------- profiel en beheer ---------- */
.badges { display: grid; gap: 20px 12px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .8125rem; }
.badge b { font-size: .875rem; }
.badge.locked { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; font-size: .8125rem; }
.stat:last-child { border-right: 0; }
.stat b { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; overflow-x: auto; }
.heat i { border-radius: 2px; background: var(--line); }
.heat .l1 { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.heat .l2 { background: color-mix(in srgb, var(--accent) 65%, var(--surface)); }
.heat .l3 { background: var(--accent); }
.tablebox { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.data { min-width: 640px; }
.data td .bar { min-width: 90px; }
.subnav { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 0; color: var(--ink-2); font-weight: 500; font-size: .875rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; border-right: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; cursor: pointer; font-size: .875rem; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.seg button[disabled] { color: var(--ink-2); cursor: not-allowed; }
pre.export { margin: 0; padding: 14px; background: var(--surface-2); border-radius: 4px; overflow-x: auto; font: .8125rem/1.5 var(--font-mono); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); counter-reset: flow; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.flow li { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); font-size: .9375rem; }
.flow li:last-child { border-right: 0; }
.flow li::before { counter-increment: flow; content: "Stap " counter(flow); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- melding en voet ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 4px; font-weight: 500; font-size: .875rem; z-index: 20; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }
footer { border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .8125rem; color: var(--ink-2); }
footer a { color: var(--ink-2); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  #shell-top, #shell-foot, .noprint, .toast, .dock { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .certificate { box-shadow: none; border: 0; }
}

/* ---------- aanvullingen ---------- */
#shell-top { display: contents; }
body.focus #shell-top, body.focus #shell-foot { display: none; }
#facets { display: flex; flex-direction: column; gap: 18px; }
body.focus #shell-top { display: contents; }
.examtop { margin-top: 0; }
.dot:not(.done) .icon { color: var(--ink-2); }
.certificate .logo svg { width: 30px; height: 30px; }
.thumb { display: grid; align-items: center; }
.resume .thumb svg, .featured .thumb svg { height: auto; }

/* video-eenheid: geen paneel rechts, zodat de speler met transcript ernaast past */
.learn.wide { grid-template-columns: 270px minmax(0, 1fr); }
.learn.wide .context { display: none; }
@media (max-width: 860px) { .learn.wide { grid-template-columns: minmax(0, 1fr); } }
.sheet { container-type: inline-size; }
@container (min-width: 721px) { .vside { height: 0; min-height: 100%; max-height: none; } }
@container (max-width: 720px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  .vside { border-left: 0; border-top: 1px solid var(--line); max-height: 260px; }
}
.exam .creds { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.exam .creds dt { grid-column: 1 / -1; margin-top: 8px; font-size: .75rem; }

/* telefoon: eerst de inhoud, dan de inhoudsopgave; bovenbalk compacter */
@media (max-width: 860px) { .toc { order: 2; } }
@media (max-width: 480px) { .brandrow { gap: 10px; } .tools .xp { display: none; } }

/* Echte videospeler: de video vult het podium. */
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #101214; }

/* Plaatshouder voor een video die nog niet is opgenomen. */
.stage .badge-soon { position: absolute; right: 14px; top: 10px; font-size: .75rem; font-weight: 600; background: rgba(255, 255, 255, .16); color: #fff; padding: 3px 9px; border-radius: 3px; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #101214; }
.prose blockquote { margin: 16px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 4px 4px 0; }
.prose blockquote p { margin: 0; }
.prose table { border-collapse: collapse; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose ol, .prose ul { padding-left: 22px; }
