/* ntermen.nl – stylesheet
   Thema: examenpapier. Ruitjes, donkerblauwe inkt en de rode pen van de corrector. */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #1b2a5e;
  --ink-2: #33447a;
  --text: #1e2230;
  --muted: #5a6072;
  --paper: #fbfaf6;
  --grid: #dde6f1;
  --red: #c62828;
  --red-soft: #fbeaea;
  --line: #e2e5ec;
  --card: #ffffff;
  --beige: #f5f1ec;
  --ok: #2e7d5b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 42, 94, .06), 0 4px 16px rgba(27, 42, 94, .06);
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.main { flex: 1; padding-top: clamp(20px, 4vw, 40px); padding-bottom: 56px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Kop: stukje ruitjespapier ---------- */
.site-header {
  position: relative;
  background-color: #fff;
  background-image:
    linear-gradient(to right, transparent 46px, rgba(198, 40, 40, .35) 46px, rgba(198, 40, 40, .35) 48px, transparent 48px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.site-header::after { /* gescheurde onderrand */
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V3 L114 6 L107 3 L99 7 L92 4 L85 8 L77 3 L70 6 L62 2 L55 7 L47 4 L40 8 L32 3 L25 6 L17 2 L10 7 L4 4 L0 6 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
  background-size: 240px 10px;
  filter: drop-shadow(0 1px 0 var(--line));
  pointer-events: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding-left: max(var(--gutter), 64px); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-mark { font-family: var(--hand); font-weight: 700; color: var(--red); font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem); letter-spacing: .01em; transform: rotate(-3deg); transform-origin: left bottom; display: inline-block; }
.brand-mark--small { font-size: 2rem; transform: rotate(-3deg); }
.brand-sub { font-size: .9rem; color: var(--ink-2); letter-spacing: .01em; margin-top: 4px; font-weight: 600; }
.brand:hover .brand-mark { color: var(--red); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-top { display: flex; gap: 2px; align-items: center; }
.nav-top > li > a, .nav-group-btn {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; border: 0; background: none;
  font: inherit; color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap; cursor: pointer; position: relative;
}
.nav-group-btn { padding-right: 26px; }
.nav-group-btn::before { /* pijltje */
  content: ""; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s, margin .15s; opacity: .7;
}
.nav-group.open > .nav-group-btn::before { transform: rotate(-135deg); margin-top: -2px; }
.nav-top > li > a:hover, .nav-group-btn:hover, .nav-group.open > .nav-group-btn { background: rgba(27, 42, 94, .06); color: var(--ink); }
.nav-top > li > a[aria-current="page"], .nav-group.is-active > .nav-group-btn { color: var(--red); }
.nav-top > li > a[aria-current="page"]::after, .nav-group.is-active > .nav-group-btn::after { /* rode onderstreping met de pen */
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 C 25 1, 55 5, 99 2' stroke='%23c62828' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.nav-group.is-active > .nav-group-btn::after { right: 24px; }
.nav-group { position: relative; }
.nav-sub {
  display: none; position: absolute; top: calc(100% + 8px); left: -6px; z-index: 50; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px;
  box-shadow: 0 2px 6px rgba(27, 42, 94, .08), 0 16px 40px rgba(27, 42, 94, .16);
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* brug voor de muis */
.nav-group:nth-last-child(-n+3) .nav-sub { left: auto; right: -6px; }
.nav-group.open > .nav-sub { display: block; }
@media (hover: hover) and (min-width: 901px) { .nav-group:hover > .nav-sub { display: block; } }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.nav-sub a b { display: block; color: var(--ink); font-weight: 650; }
.nav-sub a span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.nav-sub a:hover { background: var(--beige); color: var(--text); }
.nav-sub a[aria-current="page"] { background: var(--red-soft); }
.nav-sub a[aria-current="page"] b { color: var(--red); }

.nav-toggle { display: none; }

@media (max-width: 1080px) { .brand-sub { display: none; } }
@media (max-width: 900px) {
  .header-inner { min-height: 76px; flex-wrap: wrap; padding-left: max(var(--gutter), 60px); }
  .site-header { background-size: 100% 100%, 20px 20px, 20px 20px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--ink);
    background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { flex-basis: 100%; display: none; padding-bottom: 16px; }
  .js .site-nav.open, .no-js .site-nav { display: block; }
  .nav-top { flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
  .nav-top > li > a { padding: 11px 12px; font-size: 1.05rem; }
  .nav-top > li > a[aria-current="page"] { background: var(--red-soft); }
  .nav-top > li > a[aria-current="page"]::after, .nav-group.is-active > .nav-group-btn::after, .nav-group-btn::before { display: none; }
  .nav-group { border-top: 1px solid var(--line); padding: 8px 0 4px; }
  .nav-group-btn { padding: 4px 12px; font-size: .88rem; letter-spacing: .01em; color: var(--muted); cursor: default; }
  .nav-group-btn:hover, .nav-group.open > .nav-group-btn { background: none; }
  .nav-group.is-active > .nav-group-btn { color: var(--red); }
  .nav-sub, .nav-group.open > .nav-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0; }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 9px 12px; }
  .nav-sub a span { display: none; }
}
@media (max-width: 360px) { .nav-sub, .nav-group.open > .nav-sub { grid-template-columns: 1fr; } }

/* Tabbladen binnen een groep */
.section-tabs { margin: -6px 0 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 2px; }
.section-tabs a {
  display: block; padding: 6px 14px; border-radius: 999px; border: 1px solid #cfd5e3; background: #fff;
  text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink); white-space: nowrap;
}
.section-tabs a:hover { border-color: var(--ink-2); color: var(--ink); }
.section-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 420px) {
  .header-inner { padding-left: var(--gutter); }
  .site-header { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px, 20px 20px; }
}

/* ---------- Voet ---------- */
.site-footer { background: var(--ink); color: #d9def0; padding: 40px 0 44px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd1d1; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-about p { margin: 8px 0 14px; max-width: 34ch; }
.footer-about .brand-mark { color: #ff8a80; }
.footer-nav h2 { font-size: .9rem; letter-spacing: .01em; color: #aab4da; margin: 4px 0 10px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
}

/* ---------- Bouwstenen ---------- */
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 70ch; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px);
}
.grid { display: grid; gap: clamp(14px, 2.5vw, 24px); }

.grid-top { align-items: start; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.stack > * + * { margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: 11px 18px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--beige); color: var(--ink); border-color: var(--ink); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: #a61f1f; border-color: #a61f1f; }
.btn-small { padding: 7px 12px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.notice { border-radius: 10px; padding: 12px 16px; background: var(--beige); border-left: 4px solid var(--ink); }
.notice--error { background: var(--red-soft); border-left-color: var(--red); color: #7a1414; }
.notice--warn { background: #fff7e0; border-left-color: #d9a400; }

/* Rood omcirkeld (docentenpen) */
.pen { position: relative; white-space: nowrap; }
.pen::after {
  content: ""; position: absolute; left: -8px; right: -8px; top: -4px; bottom: -6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M12 34 C 10 12, 70 4, 110 6 C 160 8, 196 18, 192 34 C 188 52, 120 58, 80 56 C 40 54, 6 48, 14 26 C 18 16, 40 10, 60 9' stroke='%23c62828' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: clamp(28px, 5vw, 48px); }
.hero h1 { margin-bottom: .35em; }
.hero-note {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px 26px 22px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px; box-shadow: var(--shadow); transform: rotate(1.2deg);
}
.hero-note .formule { font-family: var(--font); font-weight: 700; color: var(--red); font-size: 1.55rem; line-height: 1.3; letter-spacing: -0.01em; }
.hero-note .formule small { display: block; font-family: var(--font); font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 10px; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-note { transform: none; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 clamp(28px, 5vw, 44px); padding: 0; list-style: none; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat b { overflow-wrap: anywhere; }
.stats--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stats--wide { grid-template-columns: 1fr; } }
.stats--wide b { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }

.tool-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); border-color: #c9d0e0; color: inherit; box-shadow: 0 2px 4px rgba(27,42,94,.08), 0 10px 28px rgba(27,42,94,.10); }
.tool-card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.tool-card p { color: var(--muted); margin-bottom: 1rem; }
.tool-card .more { margin-top: auto; font-weight: 650; color: var(--red); }
.tool-num { font-family: var(--hand); font-size: 2.1rem; color: var(--red); line-height: 1; margin-bottom: 6px; }

.signature { font-family: var(--hand); font-size: 1.8rem; color: var(--ink); }

/* ---------- Formulieren ---------- */
.filters { margin-bottom: 24px; }
.filter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 2.2fr); gap: 16px; }
@media (max-width: 960px) { .filter-grid { grid-template-columns: 1fr 1fr; } .filter-grid .fs-vak { grid-column: 1 / -1; } }
@media (max-width: 600px) { .filter-grid { grid-template-columns: 1fr; } }

fieldset.fs { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 14px 14px; margin: 0; min-width: 0; }
fieldset.fs legend { font-weight: 700; color: var(--ink); padding: 0 6px; }
.fs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .9rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 2px 4px; font: inherit; font-size: .9rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips--scroll { max-height: 260px; overflow: auto; padding: 2px; margin: -2px; overscroll-behavior: contain; }
.chip { position: relative; }
.chip.niet-afd { display: none; } /* vak wordt niet gegeven op de gekozen afdelingen */
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 5px 11px; border: 1px solid #cfd5e3; border-radius: 999px;
  background: #fff; font-size: .95rem; line-height: 1.3; user-select: none; transition: background .12s, border-color .12s, color .12s;
}
.chip input:hover + span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.vak-zoek { width: 100%; margin-bottom: 8px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.filter-actions .hint { color: var(--muted); font-size: .92rem; }

label.field { display: block; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
label.field > span { display: block; margin-bottom: 6px; }
input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  padding: 10px 12px; border: 1.5px solid #cfd5e3; border-radius: 10px; background: #fff;
  min-height: 44px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b2a5e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(27, 42, 94, .15); }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix input { max-width: 140px; }
.radio-list { display: grid; gap: 8px; margin: 4px 0 0; }
.radio-list label, .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); cursor: pointer; }
.radio-list input, .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.radio-inline-select { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.radio-inline-select select { width: auto; min-width: 110px; }

details.collapse > summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
details.collapse[open] > summary::before { transform: rotate(45deg); }

/* ---------- Tabellen ---------- */
.table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.table-tools .count { color: var(--muted); }
.table-tools input[type="search"] { max-width: 260px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); max-height: 75vh; -webkit-overflow-scrolling: touch; }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; }
table.data thead th { position: sticky; top: 0; z-index: 2; background: var(--ink); color: #fff; font-weight: 600; vertical-align: bottom; white-space: normal; line-height: 1.25; min-width: 70px; }
table.data thead th button { all: unset; cursor: pointer; display: inline-flex; align-items: flex-end; gap: 4px; }
table.data thead th button::after { content: "↕"; opacity: .45; font-size: .8em; }
table.data thead th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; }
table.data thead th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }
table.data thead th button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
table.data tbody tr:nth-child(even) td { background: #f8f9fc; }
table.data tbody tr:hover td { background: #eef2fa; }
table.data .sticky-col { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
table.data tbody tr:nth-child(even) td.sticky-col { background: #f8f9fc; }
table.data thead th.sticky-col { z-index: 3; background: var(--ink); }
table.data td.vak { white-space: normal; min-width: 140px; }
table.data tr.zero td { color: var(--red); background: var(--red-soft) !important; }
table.data .nterm { font-weight: 700; color: var(--ink); }
.table-foot { margin-top: 16px; }

.download-box { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.download-box .btn { justify-content: flex-start; }
@media (max-width: 560px) { .download-box { grid-template-columns: 1fr; } .download-box p { margin-top: -4px; margin-bottom: 8px; } }

/* ---------- N-voorspeller ---------- */
.predict-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
@media (max-width: 860px) { .predict-layout { grid-template-columns: 1fr; } }
.result-card { text-align: center; position: relative; overflow: hidden; }
.result-card .label { color: var(--muted); font-weight: 600; letter-spacing: .01em; font-size: .95rem; }
.result-card .big { font-family: var(--font); font-weight: 700; color: var(--red); font-size: clamp(3.6rem, 2.6rem + 4.5vw, 5.4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 10px 0 6px; }
.result-card .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.result-card .meta b { display: block; font-size: 1.4rem; color: var(--ink); }
.result-card .meta span { color: var(--muted); font-size: .9rem; }
.result-card .context { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.r2-bar { height: 8px; border-radius: 99px; background: #e8ebf2; overflow: hidden; margin: 6px auto 0; max-width: 160px; }
.r2-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.chart-box { position: relative; height: clamp(300px, 55vw, 440px); }

/* ---------- Ruwe data ---------- */
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.year { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.year h3 { margin: 0; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.year.missing { background: transparent; border-style: dashed; color: var(--muted); }
.year.missing h3 { color: var(--muted); }
.file { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: .95rem; font-weight: 600; }
.file-icon { flex: none; width: 30px; height: 34px; border-radius: 4px; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; letter-spacing: .02em; position: relative; }
.file-icon::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 8px 8px 0; border-style: solid; border-color: var(--paper) var(--paper) rgba(0,0,0,.25) rgba(0,0,0,.25); }
.file-icon.pdf { background: #c62828; }
.file-icon.xls { background: #1f7a4d; }
.file-icon.zip { background: #5a6072; }

/* ---------- Achtergrond ---------- */
.link-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); list-style: none; padding: 0; margin: 0; }
.link-list a { display: block; height: 100%; text-decoration: none; color: inherit; }
.link-list a:hover { border-color: #c9d0e0; color: inherit; }
.link-list b { color: var(--ink); display: block; font-size: 1.1rem; margin-bottom: 2px; }
.link-list span { color: var(--muted); font-size: .95rem; }
.who { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; }
.who img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } .who figure { order: -1; max-width: 420px; } }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.extremes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.extreme { border-top: 4px solid var(--red); }
.extreme.best { border-top-color: var(--ok); }
.extreme h3 { margin-bottom: .2em; }
.extreme .vak { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.kv div { background: var(--beige); border-radius: 8px; padding: 8px 10px; }
.kv b { display: block; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.kv span { font-size: .82rem; color: var(--muted); }
ul.notes { padding-left: 1.2em; }
ul.notes li { margin-bottom: .8em; }

/* ---------- Steun ---------- */
.support { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .support { grid-template-columns: 1fr; } }
.coffee { text-align: center; }
.coffee .cup { font-size: 3rem; line-height: 1; }

@media print {
  .site-header, .site-footer, .filters, .btn, .table-tools input { display: none !important; }
  .table-wrap { max-height: none; overflow: visible; box-shadow: none; }
  table.data thead th { background: #fff; color: #000; }
}

/* =====================================================================
   Uitbreidingen 2026: extra pagina's
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .js-hide[hidden] { display: none; }
.h1-sub { font-weight: 500; color: var(--muted); font-size: .6em; margin-left: 6px; white-space: nowrap; }
.h2-count { font-weight: 500; color: var(--muted); font-size: .72em; margin-left: 6px; }

/* Werkbalk met keuzelijsten */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px; box-shadow: var(--shadow); }
.toolbar > label { display: flex; flex-direction: column; gap: 4px; font-weight: 650; color: var(--ink); font-size: .9rem; min-width: 150px; }
.toolbar > label.grow { flex: 1 1 220px; }
.toolbar select { min-width: 0; }
.toolbar-check, .toolbar-checks { align-self: center; }
.toolbar-checks { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.toolbar .check { font-size: .95rem; }
@media (max-width: 600px) { .toolbar > label { flex: 1 1 100%; } }

/* Vakkenoverzicht */
.vak-index { display: grid; gap: 16px; }
.vak-index-afd h2 { margin: 0 0 12px; font-size: 1.25rem; }
.chips--links { list-style: none; padding: 0; margin: 0; }
.chip-link { display: inline-block; padding: 5px 12px; border: 1px solid #cfd5e3; border-radius: 999px; background: #fff; text-decoration: none; font-size: .95rem; color: var(--ink); }
.chip-link:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-link--oud { color: var(--muted); }
.chip-link span { font-size: .82rem; opacity: .75; }

/* Grafiekkaarten */
.chart-card { margin: 0; }
.chart-title { font-weight: 700; color: var(--ink); margin: 0 0 10px; font-size: 1.05rem; }
.chart-title .muted { font-weight: 400; font-size: .9rem; }
.chart-box--small { height: clamp(220px, 40vw, 280px); }
.chart-note { margin: 8px 0 0; }
.sw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
table.data tr.oudnaam td { color: var(--muted); }
table.data tr.gekozen td { background: #fff7e0 !important; font-weight: 650; }

/* Dit jaar */
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 900px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .highlights { grid-template-columns: 1fr; } }
.highlight { padding: 14px 16px; border-top: 4px solid #2a78d6; }
.highlight--laag { border-top-color: #d63b3b; }
.highlight-label { font-size: .9rem; letter-spacing: .01em; color: var(--muted); font-weight: 650; }
.highlight-vak { margin: 4px 0; font-weight: 650; line-height: 1.3; }
.highlight-vak .muted { font-weight: 400; }
.highlight-num { font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.diff-col { min-width: 150px; }
.diff { display: inline-flex; align-items: center; gap: 8px; }
.diff-track { position: relative; width: 90px; height: 10px; background: linear-gradient(90deg, transparent calc(50% - .5px), #9aa0b0 calc(50% - .5px), #9aa0b0 calc(50% + .5px), transparent calc(50% + .5px)); }
.diff-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.diff-bar.neg { right: 50%; background: #d63b3b; }
.diff-bar.pos { left: 50%; background: #2a78d6; }
.diff-num { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.legend-inline { white-space: nowrap; margin-left: 6px; }
.sw { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.sw.neg { background: #d63b3b; } .sw.pos { background: #2a78d6; }

/* Vergelijken */
.compare-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
@media (max-width: 760px) { .compare-rows { grid-template-columns: 1fr; } }
.compare-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; }
.compare-dot { width: 12px; height: 12px; border-radius: 50%; }

/* Overzicht (raster) */
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-size: .92rem; }
.heat-scale { display: inline-block; width: 180px; height: 12px; border-radius: 3px; }
.heat-scale--div { background: linear-gradient(90deg, #a61f1f, #f0a39b 25%, #f0efec 50%, #86b6ef 75%, #184f95); }
.heat-scale--div-rev { background: linear-gradient(90deg, #184f95, #86b6ef 25%, #f0efec 50%, #f0a39b 75%, #a61f1f); }
.heat-scale--seq { background: linear-gradient(90deg, #eef4fc, #9ec5f4, #3987e5, #184f95); }
.heat-wrap { max-height: none; }
table.heat { border-collapse: separate; border-spacing: 2px; font-size: .8rem; font-variant-numeric: tabular-nums; background: #fff; }
table.heat th, table.heat td { padding: 0; text-align: center; }
table.heat thead th { font-weight: 600; color: var(--muted); padding: 6px 0 4px; position: sticky; top: 0; background: #fff; z-index: 2; }
table.heat thead th span { display: inline-block; min-width: 30px; }
table.heat td { width: 33px; min-width: 33px; height: 28px; border-radius: 4px; cursor: default; font-size: .76rem; }
table.heat td.leeg { background: repeating-linear-gradient(135deg, #f6f6f3, #f6f6f3 3px, #ecebe7 3px, #ecebe7 4px); }
table.heat th.sticky-col { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding: 0 10px 0 4px; font-weight: 600; font-size: .88rem; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
table.heat thead th.sticky-col { z-index: 3; }
table.heat th.sticky-col a { text-decoration: none; }
table.heat th.sticky-col a:hover { text-decoration: underline; }
.heat-oud { color: var(--red); font-weight: 700; margin-left: 3px; }
.tip { position: fixed; z-index: 200; max-width: 260px; background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.35; padding: 7px 10px; border-radius: 8px; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* Omrekentabel */
.omreken-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px 16px; align-items: end; }
.omreken-form .field { margin: 0; }
@media (max-width: 860px) { .omreken-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .omreken-submit { grid-column: 1 / -1; } }
.grens-card { padding: 16px 18px; }
.grens-num { font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.grens-num span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.omreken-tabellen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; align-items: start; }
table.omreken td, table.omreken th { padding: 5px 10px; }
table.omreken td.onv { color: var(--red); }
table.omreken td.grens { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }

/* Meetfout */
.score-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; color: var(--ink); }
.score-form input { width: 96px; }
.meetfout-zin { font-size: 1.08rem; margin: 14px 0 18px; max-width: 70ch; }
.band { margin: 8px 0 6px; }
.band-track { position: relative; height: 34px; background: #eef1f6; border-radius: 8px; }
.band-95 { position: absolute; top: 8px; bottom: 8px; background: #b7d3f6; border-radius: 4px; }
.band-68 { position: absolute; top: 4px; bottom: 4px; background: #3987e5; border-radius: 4px; }
.band-punt { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.band-grens { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed var(--red); }
.band-grens em { position: absolute; top: -18px; left: -12px; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--red); }
.band-axis { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.band-legend { margin: 6px 0 0; }
.sw-68 { background: #3987e5; } .sw-95 { background: #b7d3f6; } .sw-grens { background: none; border-left: 2px dashed var(--red); width: 6px; border-radius: 0; }
.minibar { display: inline-block; width: 70px; height: 8px; background: #e8ebf2; border-radius: 99px; overflow: hidden; vertical-align: 1px; margin-right: 6px; }
.minibar--wide { width: 110px; }
.minibar i { display: block; height: 100%; background: #2a78d6; border-radius: 99px; }

/* Vaknamen */
.lineage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; margin-bottom: 10px; }
.lineage { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
.lineage-oud { color: var(--muted); }
.lineage-pijl { color: var(--red); margin: 0 6px; }
.lineage-nieuw { font-weight: 700; color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--beige); padding: 1px 5px; border-radius: 4px; }

/* Open data */
.url-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .url-fields { grid-template-columns: 1fr 1fr; } }
.url-out { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-top: 4px; }
.url-out code { display: block; flex: 1 1 280px; padding: 10px 12px; overflow-wrap: anywhere; font-size: .9rem; }

/* Home: groepen */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
@media (max-width: 1000px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }
.group-card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.group-card h2 a { text-decoration: none; }
.group-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.group-card li a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.group-card li a:hover { background: var(--beige); }
.group-card li b { display: block; color: var(--ink); }
.group-card li span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.35; }

.grid-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-charts { grid-template-columns: 1fr; } }

.fs-head--jaren { flex-wrap: wrap; gap: 4px 12px; }
.laatste-jaren { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.laatste-jaren input { width: 3.6em; min-height: 30px; padding: 3px 6px; font-size: .9rem; border-radius: 6px; text-align: center; }

/* Zelf onderzoeken */
.explore { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .explore { grid-template-columns: 1fr; } }
.explore-form { position: sticky; top: 16px; display: grid; gap: 14px; padding: 18px; }
@media (max-width: 960px) { .explore-form { position: static; } }
.explore-form .field { margin: 0; font-size: .95rem; }
.explore-axes { display: grid; gap: 4px; }
.explore-axes .swap { justify-self: center; font-size: .9rem; text-decoration: none; padding: 2px 10px; border: 1px solid #cfd5e3; border-radius: 999px; background: #fff; }
.explore-axes .swap:hover { border-color: var(--ink); }
.explore-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.explore-checks { display: grid; gap: 6px; font-size: .95rem; }
.explore-form .fs { padding: 10px 12px 12px; }
.afd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.chip input:checked + span .afd-dot { box-shadow: 0 0 0 1.5px #fff; }
.stats--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.explore-zin { margin: 0 0 14px; font-size: 1.05rem; }
.chart-box--explore { height: clamp(340px, 60vw, 560px); }
.explore-result h2 { margin-top: 1.4em; }


/* ---------- Raad de n-term ---------- */
.raden-badge { display: inline-block; margin: 0 0 8px; padding: 3px 11px; border: 1.5px solid var(--red); color: var(--red); border-radius: 999px; font-weight: 700; font-size: .85rem; background: #fff; }
.raden-kop { margin-bottom: 22px; }
.raden-kop h1 { margin-bottom: .3em; }
.raden-data { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.raden-data li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; box-shadow: var(--shadow); }
.raden-data span { display: block; font-size: .85rem; color: var(--muted); }
.raden-data b { color: var(--ink); }
@media (max-width: 600px) {
  .raden-data { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .raden-data li { padding: 8px 12px; }
  .raden-data li:last-child { grid-column: 1 / -1; }
}
.schaal-kop { display: flex; justify-content: space-between; margin: 0 8px; font-weight: 600; opacity: .85; }
.raden-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 8px; }
@media (max-width: 820px) { .raden-grid { grid-template-columns: 1fr; } }
.raden-form h2, .raden-uitleg h2 { margin-top: 0; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.veld-fout { display: block; color: #a61f1f; font-weight: 600; font-size: .92rem; margin-top: 6px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.gok-veld { margin-bottom: 16px; }
.gok-veld > label span { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.gok-invoer { display: flex; align-items: center; gap: 16px; }
.gok-invoer input[type="text"] { max-width: 112px; font-size: 1.6rem; font-weight: 700; text-align: center; color: var(--red); padding: 6px 8px; font-variant-numeric: tabular-nums; }
.gok-schuif { flex: 1; min-width: 0; accent-color: var(--red); display: none; height: 30px; cursor: pointer; }
.js .gok-schuif { display: block; }
.raden-form .check { margin: 10px 0; }
.raden-form .btn { margin-top: 10px; }
/* Homepage: de uitleg centraal, de onderdelen van de site ernaast */
.home-main { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .home-main { grid-template-columns: 1fr; } }
.home-waarom h2 { margin-top: 0; }
.home-zij { font-size: .97rem; display: grid; gap: 12px; }
.home-zij h2 { margin: 0 0 2px; font-size: 1.1rem; }
.home-groep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 10px; }
.home-groep h3 { margin: 0 0 4px; font-size: .82rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.home-groep ul { list-style: none; margin: 0; padding: 0; }
.home-groep li { margin: 0; line-height: 1.7; }
.home-groep a { text-decoration: none; }
.home-groep a:hover { text-decoration: underline; }
.home-getallen { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.home-getallen b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .home-zij { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--line); padding-top: 20px; }
  .home-zij h2, .home-getallen { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .home-zij { grid-template-columns: 1fr; } }

/* Verdeling van de scores (Per vak) */
.verdeling { margin: 0 0 22px; }
.verdeling-inhoud { margin-top: 14px; }
.verdeling-jaren { margin-bottom: 12px; }
.verdeling-zin { margin: 0 0 10px; line-height: 1.5; }
.verdeling-zin b { color: var(--ink); }
.verdeling-top { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .95rem; }
.verdeling-top span { background: var(--beige); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.verdeling-top b { color: var(--ink); }
.verdeling-tip { margin: 18px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); }
.mini-verdeling { display: block; }
.mini-cel a { display: inline-block; padding: 2px 0; border-radius: 4px; }
.mini-cel a:hover { outline: 2px solid var(--line); outline-offset: 2px; }
.chart-box--verdeling { height: clamp(260px, 45vw, 360px); }

/* Records */
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.record-kaart h2 { margin: 0 0 2px; font-size: 1.2rem; }
.record-kaart > p { margin: 0 0 10px; }
.record-lijst { list-style: none; margin: 0; padding: 0; }
.record-lijst li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.record-lijst b { font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.record-lijst li.eerste b { color: var(--red); font-size: 1.35rem; }
.record-meer { margin: 8px 0 0 !important; }

/* Aantal kandidaten */
.aantallen-form .field { max-width: 280px; }
.aantallen-form .chip input:disabled + span { opacity: .45; }

/* Per vak: afdeling en vak kiezen */
.vak-kies { max-width: 560px; }
.vak-kies .fs { margin-bottom: 16px; }

/* Contactformulier */
textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-uitleg h2 { margin-top: 0; }
.contact-uitleg .notes { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.contact-uitleg .notes li { margin: 0; }
.contact-form .btn { margin-top: 4px; }
.contact-klaar { border-top: 4px solid var(--ok); }
.contact-klaar-titel { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stappen { padding-left: 1.3em; margin: 0 0 14px; display: grid; gap: 8px; }
.raden-klaar { border-top: 4px solid var(--ok); margin-bottom: 18px; }
.raden-klaar-titel { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.raden-winnaar { border-top: 4px solid var(--red); text-align: center; margin-bottom: 18px; }
.raden-winnaar-naam { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-weight: 700; color: var(--red); margin: 4px 0; }
.testbalk { background: #fff7e0; border: 1px dashed #d9a400; border-radius: 10px; padding: 8px 12px; margin: 0 0 18px; font-size: .92rem; }
.testbalk a { margin: 0 2px; }
.testlink { background: #fff7e0; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.raden-dicht { max-width: 62ch; }
.raden-afd { margin: 0 0 14px; }
.raden-afd > summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.1rem; padding: 6px 0 8px; }
.raden-afd .table-wrap { max-height: none; }
.raden-tabel td:first-child { min-width: 150px; }
.schaal-kol { width: 32%; min-width: 150px; }
.schaal { position: relative; display: block; height: 18px; margin: 0 8px; }
.schaal::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #cfd8e6; border-radius: 2px; }
.schaal i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.schaal-gem { width: 13px; height: 13px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; z-index: 2; }
.schaal-vorig { width: 2px; height: 14px; background: var(--ink); opacity: .5; }
.schaal-echt { width: 11px; height: 11px; border: 2.5px solid var(--ink); background: #fff; transform: translate(-50%, -50%) rotate(45deg) !important; z-index: 1; }
.schaal-legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); margin: 0 0 12px; align-items: center; }
.schaal-legenda i { display: inline-block; vertical-align: -1px; margin-right: 7px; }
.schaal-legenda .schaal-echt { transform: rotate(45deg) !important; width: 10px; height: 10px; }
.schaal-legenda .schaal-gem { box-shadow: none; }
.raden-regels ul { padding-left: 1.1em; display: grid; gap: 8px; margin: 0; }
.raden-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 4px solid var(--red); margin: 0 0 clamp(24px, 4vw, 40px); }
.raden-banner p { margin: 0; }
.raden-banner .raden-badge { margin: 0 0 6px; }
.raden-banner b.titel { display: block; font-size: 1.25rem; color: var(--ink); }

/* Beheer */
.beheer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 16px; }
.beheer-grid .card h2 { margin-top: 0; font-size: 1.2rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.ok-teken { color: var(--ok); font-weight: 700; }
.nee-teken { color: var(--red); font-weight: 700; }
.uitslag-invoer { width: 84px !important; min-height: 36px !important; padding: 5px 8px !important; text-align: center; }

/* Raad de n-term op smalle schermen (staat onderaan zodat het voorgaat) */
.mob-extra, .mob-schaal, .raden-tabel .kort { display: none; }
@media (max-width: 600px) {
  .raden-tabel { font-size: .9rem; }
  .raden-tabel .lang { display: none; }
  .raden-tabel .kort { display: inline; }
  table.data.raden-tabel thead th { min-width: 0; }
  .raden-tabel td:first-child { hyphens: auto; -webkit-hyphens: auto; width: 60%; }
  .raden-tabel .schaal-kol { display: none; }
  .mob-schaal { display: block; margin-top: 6px; }
  .mob-schaal .schaal { margin: 0 6px 0 6px; }
  .raden-tabel .kol-vorig, .raden-tabel .kol-aantal, .raden-tabel .kol-goed { display: none; }
  .mob-extra { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; white-space: normal; }
  .raden-tabel th, .raden-tabel td { padding-left: 8px; padding-right: 8px; }
  .raden-tabel td:first-child { min-width: 0; white-space: normal; }
  .raden-tabel th { white-space: normal; }
}

/* Voorpagina: meteen een vak kiezen */
.home-kies { margin-top: 20px; padding: 18px 20px 16px; max-width: 560px; }
.home-kies h2 { margin: 0 0 12px; font-size: 1.3rem; }
.home-kies .chips { margin-bottom: 12px; }
.home-kies-vak { display: flex; gap: 10px; }
.home-kies-vak select { flex: 1; min-width: 0; font-size: 1.05rem; }
.home-kies-noot { margin: 10px 0 0; }
.home-verder { margin: 0 0 14px; }
.actueel { margin: 12px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }

/* Vakpagina: de n-term van de laatste jaren, boven aan de pagina */
.laatste { margin: 0 0 clamp(22px, 4vw, 34px); }
.laatste-kop { margin: 0 0 8px; font-size: 1rem; font-weight: 650; color: var(--muted); }
.jaarstrook { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.jaarstrook li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px 9px; text-align: center; margin: 0; }
.jaarstrook .jaar { display: block; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.jaarstrook b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.jaarstrook .noot { display: block; font-size: .78rem; color: var(--muted); line-height: 1.25; }
.jaarstrook li.is-nieuwste { border: 2px solid var(--red); padding: 9px 7px 8px; }
.jaarstrook li.is-nieuwste b { color: var(--red); }
.jaarstrook li.is-voorlopig { border-style: dashed; }
@media (max-width: 560px) { .jaarstrook { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spring { margin: 6px 0 0; font-size: .95rem; }
table.data tr.voorlopig td { background: #fff7e0; }

/* Zelf een tabel maken */
.filter-actions--boven { margin: 14px 0 16px; }
.vak-wacht-tekst { display: none; margin: 0; color: var(--muted); }
.fs-vak.wacht .vak-wacht-tekst { display: block; }
.fs-vak.wacht .vak-wacht-inhoud { display: none; }


/* Blog */
.blog-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.blog-lijst li { margin: 0; }
.blog-lijst h2 { margin: 0 0 6px; font-size: 1.35rem; }
.blog-lijst h2 a { text-decoration: none; }
.blog-lijst h2 a:hover { text-decoration: underline; }
.blog-lijst p { margin: 0; }
.blog-meta { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.blog-meer { margin-top: 8px !important; font-weight: 650; }
.blog-terug { margin: 0 0 10px; font-size: .95rem; }
.blog-terug a { text-decoration: none; }
/* Tekst, grafieken en tabellen zijn even breed. De letter is iets groter, zodat de regels niet te lang worden. */
.blog-stuk { max-width: 920px; }
.blog-stuk h1 { margin-bottom: .2em; }
.blog-stuk .blog-meta { margin-bottom: 22px; }
.blog-tekst { max-width: none; font-size: 1.14rem; line-height: 1.7; }
.blog-tekst > h2 { margin-top: 1.6em; }
/* Een smal blok (bijvoorbeeld een tabel) rechts naast de tekst; op een smal scherm eronder */
.blog-naast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
.blog-naast > div > :first-child { margin-top: 0; }
.blog-naast > div > :last-child { margin-bottom: 0; }
.blog-naast > .blok { margin: 0 0 .5em; }
@media (max-width: 720px) { .blog-naast { display: flex; flex-direction: column; align-items: stretch; gap: 0; } .blog-naast > div:not(.blok) { display: contents; } .blog-naast > .blok { order: 1; margin: 6px 0 0; } .blog-naast .blog-ondertekening { order: 2; margin-bottom: 0; } table.data.tienen-jaren caption .tienen-jaren-noot { max-width: none; } }
.blog-ondertekening { margin-top: 1.6em; line-height: 1.45; }
.blog-ondertekening .blog-naam { font-weight: 700; color: var(--ink); }
.blog-ondertekening .blog-rol { color: var(--muted); font-size: .92em; }
table.data.tienen-jaren { width: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.data.tienen-jaren caption { caption-side: top; text-align: left; font-weight: 700; color: var(--ink); padding: 0 0 8px; }
table.data.tienen-jaren th, table.data.tienen-jaren td { padding: 2px 16px; font-size: .92rem; line-height: 1.45; white-space: nowrap; }
table.data.tienen-jaren thead th, table.data.tienen-jaren tfoot th, table.data.tienen-jaren tfoot td { padding-top: 5px; padding-bottom: 5px; }
table.data.tienen-jaren caption .tienen-jaren-noot { display: block; max-width: 12rem; font-weight: 400; font-size: .85rem; line-height: 1.35; color: var(--muted); margin-top: 2px; white-space: normal; }
.blog-voet { margin-top: 32px; padding-top: 18px; border-top: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.home-blog li { line-height: 1.4; margin-bottom: 6px; }
.home-rapport p { margin: 0 0 4px; line-height: 1.45; }
.home-rapport a { font-weight: 650; }

/* Verwijzing naar het examenrapport (vakpagina en n-termen per jaar) */
.rapport-tip { margin: 18px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius); max-width: 80ch; }
.rapport-tip a { font-weight: 650; white-space: nowrap; }

/* Bouwstenen voor blogstukken en pagina's (inc/tienen.php) */
.blok { margin: 20px 0 28px; font-size: 1rem; line-height: 1.5; }
.blok-keuze { margin-bottom: 12px; }
.no-js .blok-keuze { display: none; }
.blok-kop { font-size: 1.1rem; margin: 0 0 8px; }
.blok-paneel + .blok-paneel { margin-top: 22px; }
.blok-noot { margin: 8px 0 0; max-width: 80ch; }
.blok .table-wrap { max-height: none; }
.tienen-tabel th, table.data.tienen-tabel thead th button { white-space: nowrap; }
.tienen-staaf { min-width: 220px; white-space: nowrap; }
.staaf-getal { display: inline-block; width: 4.6em; margin-right: .7em; text-align: right; font-variant-numeric: tabular-nums; }
.staaf { display: inline-block; width: calc(100% - 5.4em); height: 14px; vertical-align: middle; border-left: 1px solid #b9c1d3; }
.staaf i { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.staaf i.iets { min-width: 2px; }
@media (max-width: 600px) {
  /* Op een telefoon: de staaf onder het percentage, zodat ook "1 op …" in beeld staat */
  table.data.tienen-tabel th, table.data.tienen-tabel td { padding-left: 9px; padding-right: 9px; }
  table.data.tienen-tabel td.vak { min-width: 124px; max-width: 124px; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .tienen-staaf { min-width: 78px; }
  .tienen-staaf .staaf-getal { display: block; width: auto; margin: 0; text-align: left; }
  .tienen-staaf .staaf { display: block; width: 100%; height: 6px; margin-top: 4px; }
}
table.data tfoot td, table.data tfoot th { border-top: 2px solid var(--line); font-weight: 650; background: #fff; }
.blok-spreiding .blok-keuze { margin-bottom: 4px; }
