/* N-term – 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: .8rem; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.brand:hover .brand-mark { color: var(--red); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.site-nav a:hover { background: rgba(27, 42, 94, .06); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--red); position: relative; }
.site-nav a[aria-current="page"]::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-steun a { border: 1.5px solid var(--red); color: var(--red); margin-left: 6px; background: #fff; }
.nav-steun a:hover { background: var(--red); color: #fff; }
.nav-steun a[aria-current="page"]::after { display: none; }

.nav-toggle { 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; }
  .brand-sub { display: none; }
  .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; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { background: var(--red-soft); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-steun a { margin: 6px 0 0; text-align: center; }
}
@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: 36px 0 40px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd1d1; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-about p { margin: 8px 0 0; max-width: 34ch; }
.footer-about .brand-mark { color: #ff8a80; }
.footer-nav ul, .footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- 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(--hand); color: var(--red); font-size: 1.9rem; line-height: 1.25; }
.hero-note .formule small { display: block; font-family: var(--font); 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 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"], select {
  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 { 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; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.result-card .big { font-family: var(--hand); color: var(--red); font-size: clamp(4.5rem, 3rem + 6vw, 7rem); line-height: 1; margin: 8px 0 4px; }
.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; }

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