/* Hallmark · shape: app screen · genre: modern-minimal · theme: Furrow (deal 2/3, seed scholenkiezer-vergelijkingstool-voor-ouders-2b38·2a11e927·2026-11-12·r0)
 * nav: top bar, title and one line · signature: the comparison table with the national reference row · states: loading, found, not found, error (geocoding); empty, full (results)
 * axes: light/grotesk-sans/warm · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H1 E1 S2 R1 V1 · weakest: V, the map is a real tile layer because the brief demands one; tiles are desaturated toward the paper */
/* waive: furrow do-not "never a map tile" · reason: the brief requires Leaflet with PDOK BRT tiles; the user's words beat the theme */
/* Hallmark · answered F25 · the first column (school name and its Details button) is pinned with position: sticky; the figures scroll sideways */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- theme additions and dark mode ---------- */
:root {
  --color-warn: oklch(44% 0.13 55);
  --color-warn-soft: oklch(93% 0.05 70);
  --map-filter: saturate(0.55) contrast(0.95) sepia(0.12);
  --color-marker-out: oklch(72% 0.01 60);
  --sticky-col: 16rem;
  --color-scrim: oklch(18% 0.006 60 / 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-paper: oklch(20% 0.01 70); --color-paper-2: oklch(25% 0.012 70); --color-paper-3: oklch(30% 0.014 70);
    --color-ink: oklch(94% 0.008 85); --color-ink-2: oklch(86% 0.01 85); --color-muted: oklch(70% 0.012 80); --color-rule: oklch(34% 0.012 70);
    --color-accent: oklch(72% 0.17 40); --color-accent-ink: oklch(18% 0.006 60); --color-accent-soft: oklch(34% 0.07 45); --color-focus: oklch(78% 0.17 45);
    --color-green: oklch(78% 0.13 150); --color-green-soft: oklch(32% 0.06 150);
    --color-warn: oklch(80% 0.14 60); --color-warn-soft: oklch(34% 0.07 60);
    --color-grid: oklch(28% 0.012 70); --color-sheet: oklch(26% 0.012 70);
    --color-marker-out: oklch(48% 0.01 60);
    --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.4) brightness(0.9);
    --shadow-card: 0 1px 2px oklch(0% 0 0 / 0.4), 0 14px 28px -16px oklch(0% 0 0 / 0.6);
    --shadow-lift: 0 1px 1px oklch(0% 0 0 / 0.4), 0 24px 44px -20px oklch(0% 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: oklch(20% 0.01 70); --color-paper-2: oklch(25% 0.012 70); --color-paper-3: oklch(30% 0.014 70);
  --color-ink: oklch(94% 0.008 85); --color-ink-2: oklch(86% 0.01 85); --color-muted: oklch(70% 0.012 80); --color-rule: oklch(34% 0.012 70);
  --color-accent: oklch(72% 0.17 40); --color-accent-ink: oklch(18% 0.006 60); --color-accent-soft: oklch(34% 0.07 45); --color-focus: oklch(78% 0.17 45);
  --color-green: oklch(78% 0.13 150); --color-green-soft: oklch(32% 0.06 150);
  --color-warn: oklch(80% 0.14 60); --color-warn-soft: oklch(34% 0.07 60);
  --color-grid: oklch(28% 0.012 70); --color-sheet: oklch(26% 0.012 70);
  --color-marker-out: oklch(48% 0.01 60);
  --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.4) brightness(0.9);
}

body { background: var(--color-paper); color: var(--color-ink); }
h1, h2, h3 { font-weight: var(--display-weight); line-height: 1.05; }

/* ---------- shell ---------- */

.shell { max-width: var(--container); margin-inline: auto; padding: var(--space-lg); display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
@media (max-width: 60rem) { .shell { grid-template-columns: minmax(0, 1fr); padding: var(--space-md); } }

/* ---------- panel (filters) ---------- */
.panel { position: sticky; top: var(--space-md); }
@media (max-width: 60rem) { .panel { position: static; } }
.panel__disclosure { background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule), var(--shadow-card); }
.panel__summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); min-height: 48px; padding: var(--space-sm) var(--space-md); font-weight: 500; cursor: default; border-bottom: var(--rule-hair) solid var(--color-rule); }
.panel__summary::-webkit-details-marker { display: none; }
.panel__count { color: var(--color-muted); font-weight: 400; font-size: var(--text-sm); }
@media (max-width: 60rem) {
  .panel__summary { cursor: pointer; }
  .panel__summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--color-ink); border-bottom: 2px solid var(--color-ink); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); margin-left: auto; flex: none; }
  .panel__disclosure[open] .panel__summary::after { transform: rotate(-135deg); }
  .panel__summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: var(--radius-card); }
}
.panel__body { padding: var(--space-md); display: grid; gap: var(--space-lg); }

.label { display: block; font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); margin-bottom: var(--space-2xs); padding: 0; }
.help { font-size: var(--text-sm); color: var(--color-muted); min-height: 1lh; margin-top: var(--space-2xs); }
.help[data-state="error"] { color: var(--color-error); }
.help[data-state="found"] { color: var(--color-green); }
.group { border: 0; padding: 0; margin: 0; min-width: 0; }

/* collapsible group */
.inklap__kop { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 36px; margin: 0 calc(-1 * var(--space-xs)); padding: 0 var(--space-xs); border-radius: var(--radius-pill); cursor: pointer; }
.inklap__kop::-webkit-details-marker { display: none; }
.inklap__kop::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--color-ink); border-bottom: 1.5px solid var(--color-ink); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); flex: none; margin-right: var(--space-2xs); }
.inklap[open] .inklap__kop::after { transform: translateY(2px) rotate(-135deg); }
.inklap__kop:hover { background: var(--color-paper-3); }
.inklap__kop:active { background: var(--color-paper-3); }
.inklap__kop:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.inklap[open] .inklap__kop { margin-bottom: var(--space-2xs); }
.inklap:not([open]) > :not(summary) { display: none; }

/* fields */
.input { width: 100%; min-height: 44px; padding: 0 var(--space-md); background: var(--color-paper-2); color: var(--color-ink); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); outline: 2px solid transparent; outline-offset: -3px; transition: background-color var(--dur-micro) linear; }
.input::placeholder { color: var(--color-muted); }
.input:hover { background: var(--color-sheet); }
.input:focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input[type="search"]::-webkit-search-decoration, .input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.input--select { appearance: none; padding-right: var(--space-xl); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: var(--space-md); top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--color-ink); border-bottom: 1.5px solid var(--color-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.combo { position: relative; }
.combo .input { padding-right: 52px; }
.combo__slot { position: absolute; right: var(--space-2xs); top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; }
.combo__slot > * { grid-area: 1 / 1; }
.locate { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); cursor: pointer; position: relative; transition: background-color var(--dur-micro) linear; }
.locate::before { content: ""; position: absolute; inset: -4px; }
.locate:hover { background: var(--color-paper-3); color: var(--color-ink); }
.locate:active { background: var(--color-paper-3); transform: translateY(1px); }
.locate:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.locate:disabled, .locate[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.combo__slot:has(.spinner:not([hidden])) .locate { visibility: hidden; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-rule); border-top-color: var(--color-accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: var(--space-2xs); list-style: none; background: var(--color-paper-2); border: 1px solid var(--color-ink); border-radius: var(--radius-card); z-index: var(--z-dropdown); max-height: 18rem; overflow-y: auto; }
.combo__list li { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: var(--space-sm); }
.combo__list li span { color: var(--color-muted); font-size: var(--text-sm); margin-left: auto; white-space: nowrap; }
.combo__list li:hover { background: var(--color-paper-3); }
.combo__list li[aria-selected="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
.combo__list li[aria-selected="true"] span { color: var(--color-accent-ink); }
.combo__list .combo__empty { color: var(--color-muted); cursor: default; }
.combo__list .combo__empty:hover { background: transparent; }
.startpunt__acties { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.startpunt__acties:not(:has(button:not([hidden]))) { display: none; }

.checks { display: grid; gap: 0; }
.check { display: flex; align-items: center; gap: var(--space-sm); min-height: 36px; padding: 0 var(--space-xs); margin: 0 calc(-1 * var(--space-xs)); border-radius: var(--radius-pill); cursor: pointer; position: relative; }
.check::before { content: ""; position: absolute; inset: -4px 0; }
.check:hover { background: var(--color-paper-3); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent); flex: none; }
.check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.check:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }

.range { width: 100%; height: 44px; margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-pill); }
.range__ends { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-muted); }

/* buttons: the eight states */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 500; font-size: var(--text-sm); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 var(--color-sheet), 0 1px 1px var(--color-rule); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-sheet); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: color-mix(in oklab, var(--color-accent) 78%, var(--color-ink)); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-sheet) 32%, transparent), inset 0 -1px 0 color-mix(in oklab, var(--color-ink) 10%, transparent); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 90%, var(--color-ink)); }
.btn--quiet { background: transparent; box-shadow: none; }
.btn--quiet:hover { background: var(--color-paper-3); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

/* ---------- results ---------- */
.results { display: grid; gap: var(--space-lg); min-width: 0; }

.stats { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-xs) var(--space-xl); margin: 0; }
.stats__link { margin-left: auto; align-self: end; padding-bottom: var(--space-2xs); }
.stats .stats__link dd { font: 400 var(--text-sm)/1.45 var(--font-body); letter-spacing: 0; }
@media (max-width: 40rem) { .stats__link { margin-left: 0; } }
.stats > div { display: grid; gap: 0; }
.stats dt { font-size: var(--text-sm); color: var(--color-muted); }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.1; }
.stats dd#stat-startpunt { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); letter-spacing: 0; }

.mapwrap { display: grid; gap: var(--space-xs); }
.map { height: 380px; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-ink); background: var(--color-paper-3); overflow: hidden; isolation: isolate; }
@media (max-width: 40rem) { .map { height: 280px; } }
.map .leaflet-tile-pane { filter: var(--map-filter); }
.map .leaflet-control-attribution { font: 400 var(--text-xs)/1.4 var(--font-body); background: color-mix(in oklab, var(--color-paper-2) 85%, transparent); color: var(--color-muted); }
.map .leaflet-control-attribution a { color: var(--color-ink-2); }
.map .leaflet-bar { border: 1px solid var(--color-ink); box-shadow: var(--shadow-card); border-radius: var(--radius-pill); overflow: hidden; }
.map .leaflet-bar a { background: var(--color-paper-2); color: var(--color-ink); border-bottom-color: var(--color-rule); width: 36px; height: 36px; line-height: 36px; }
.map .leaflet-bar a:hover { background: var(--color-sheet); }
.map .leaflet-popup-content-wrapper { background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); }
.map .leaflet-popup-tip { background: var(--color-paper-2); box-shadow: 0 0 0 1px var(--color-ink); }
.map .leaflet-popup-content { margin: var(--space-sm) var(--space-md); font: 400 var(--text-sm)/1.45 var(--font-body); }
.map .leaflet-popup-content b { font-weight: 500; }
.map .leaflet-popup-content .num { font-family: var(--font-outlier); }
.map .leaflet-container a.leaflet-popup-close-button { color: var(--color-muted); width: 28px; height: 28px; font-size: 20px; }

.legend { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-muted); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.legend__note { margin-left: auto; }
.sw-start { fill: var(--color-ink); stroke: var(--color-paper-2); stroke-width: 2; }
.sw-data { fill: var(--color-green); stroke: var(--color-ink); stroke-width: 1; }
.sw-in { fill: var(--color-accent); stroke: var(--color-ink); stroke-width: 1; }
.sw-out { fill: var(--color-marker-out); }

/* table */
.tablewrap { overflow-x: auto; overscroll-behavior-x: contain; background: var(--color-sheet); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); container-type: inline-size; }
.tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.tabel th, .tabel td { padding: var(--space-xs) var(--space-sm); text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.tabel thead th { z-index: 2; background: var(--color-sheet); border-bottom: var(--rule-hair) solid var(--color-ink); white-space: nowrap; font-weight: 500; padding: 0; }
.tabel th:first-child, .tabel td:first-child, .tabel tbody th { position: sticky; left: 0; z-index: 1; background: var(--color-sheet); min-width: var(--sticky-col); box-shadow: inset -1px 0 0 var(--color-rule); }
.tabel thead th:first-child { z-index: 3; }
.tabel th.num, .tabel td.num { text-align: right; white-space: nowrap; }
.tabel td[data-k="insp"] { min-width: 13rem; }
.tabel td[data-k="plaats"] { min-width: 7rem; }
.tabel thead th.num .sort { justify-content: flex-end; }
.sort { display: flex; align-items: center; gap: var(--space-2xs); width: 100%; min-height: 44px; padding: var(--space-xs) var(--space-sm); border: 0; background: transparent; color: var(--color-ink); font: inherit; font-weight: 500; text-align: inherit; cursor: pointer; }
.sort:hover { background: var(--color-paper-3); }
.sort:active { background: var(--color-paper-3); }
.sort:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; border-radius: var(--radius-pill); }
.sort::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: 0; transform: rotate(45deg) translateY(-2px); flex: none; }
th[aria-sort="ascending"] .sort::after { opacity: 1; transform: rotate(-135deg) translateY(-2px); }
th[aria-sort="descending"] .sort::after { opacity: 1; }

.tabel tr.ref td { background: var(--color-paper-3); font-weight: 500; border-bottom: 2px solid var(--color-ink); }
.tabel tr.ref td:first-child { background: var(--color-paper-3); }
.tabel tr.row td { transition: background-color var(--dur-micro) linear; }
.tabel tr.row:hover td { background: var(--color-paper-2); }
.tabel tr.row[aria-selected="true"] td { background: var(--color-accent-soft); border-bottom-color: transparent; }
.tabel tr.row[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 var(--color-accent), inset -1px 0 0 var(--color-rule); }
.tabel td.cell-school { padding: 0; }
.tabel th.cell-school { padding: var(--space-xs) var(--space-sm); font-weight: 400; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--space-xs); align-items: start; }
.cell-school .naam { font-weight: 500; grid-column: 1; }
.cell-school .adres { display: block; grid-column: 1; color: var(--color-muted); font-size: var(--text-xs); }
.cell-school .toggle { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.btn--small { min-height: 32px; padding: 0 var(--space-sm); font-size: var(--text-xs); position: relative; }
.btn--small::before { content: ""; position: absolute; inset: -6px 0; }
.tabel tr.row { cursor: pointer; }
.tabel td.num { font-family: var(--font-outlier); }
.tabel td.num .delta { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-muted); white-space: normal; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); min-width: 11rem; }
.chip { display: inline-block; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper-3); font-size: var(--text-xs); font-weight: 500; line-height: 1.3; white-space: nowrap; color: var(--color-ink-2); }
.chip--on { background: var(--color-ink); color: var(--color-paper); }
.pct { display: inline-block; padding: 1px var(--space-xs); border-radius: var(--radius-pill); font-weight: 500; }
.pct--good { background: var(--color-green-soft); color: var(--color-green); }
.pct--warn { background: var(--color-warn-soft); color: var(--color-warn); }
.pct--none { color: var(--color-muted); font-weight: 400; }
.na { color: var(--color-muted); font-family: var(--font-body); }

/* detail row: the notebook card */
.tabel tr.drow td { padding: 0 var(--space-sm) var(--space-md); border-bottom: 2px solid var(--color-ink); background: var(--color-accent-soft); position: static; }
.tabel tr.drow td:first-child { position: static; min-width: 0; box-shadow: none; }
.detail { background: var(--color-paper-2); border-radius: var(--radius-entry); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); padding: var(--space-md); display: grid; gap: var(--space-md); position: sticky; left: var(--space-sm); width: min(64rem, 100cqw - 2 * var(--space-sm)); box-sizing: border-box; }
.detail__block { min-width: 0; overflow-x: auto; }
.detail__head { display: grid; gap: var(--space-2xs); }
.detail__head h3 { font-size: var(--text-lg); }
.detail__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-xs) var(--space-md); margin: 0; font-size: var(--text-sm); }
.detail__meta dt { color: var(--color-muted); }
.detail__meta dd { margin: 0; font-weight: 500; }
.detail__meta dd.num { font-family: var(--font-outlier); font-weight: 400; }
.detail__block h4 { margin: 0 0 var(--space-xs); font-size: var(--text-md); font-weight: 500; }
.detail table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.detail th, .detail td { padding: var(--space-2xs) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; position: static; }
.detail th { font-weight: 500; border-bottom-color: var(--color-ink); white-space: nowrap; }
.detail th.num, .detail td.num { text-align: right; }
.detail .bron { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-xs); }
.detail tr.som td { background: var(--color-paper-3); font-weight: 500; }
.detail__acties { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* empty state */
.empty { background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); padding: var(--space-lg); display: grid; gap: var(--space-sm); max-width: 48rem; }
.empty h3 { font-size: var(--text-lg); }
.empty__acties { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* ---------- link-styled button in the stats row ---------- */
.linkbtn { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; cursor: pointer; border-radius: 2px; }
.linkbtn:hover { color: var(--color-ink-2); text-decoration-thickness: 2px; }
.linkbtn:active { color: var(--color-muted); }
.linkbtn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.linkbtn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- sources dialog ---------- */
.dialog { position: fixed; inset: 0; margin: auto; width: min(100% - 2rem, 46rem); max-height: min(85dvh, 44rem); padding: 0; border: 0; border-radius: var(--radius-entry); background: var(--color-paper-2); color: var(--color-ink-2); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); overflow: hidden; display: none; }
.dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.dialog::backdrop { background: var(--color-scrim); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-ink); }
.dialog__head h2 { color: var(--color-ink); }
.dialog__body { padding: var(--space-lg); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: var(--space-md); }
.dialog__sub { font-size: var(--text-md); color: var(--color-ink); }
.dialog__sub + .bronlijst { margin-bottom: var(--space-md); }
html:not(.js) .dialog { display: block; position: static; width: auto; max-width: var(--container); max-height: none; margin: var(--space-xl) auto 0; box-shadow: none; border-top: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: transparent; }
html:not(.js) .dialog__head { border-bottom: 0; padding-inline: var(--space-lg); }
html:not(.js) #btn-bronnen-sluit, html:not(.js) #btn-bronnen { display: none; }
.bronlijst { margin: 0; display: grid; gap: var(--space-sm); max-width: 72ch; font-size: var(--text-sm); }
.bronlijst div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--space-md); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
@media (max-width: 40rem) { .bronlijst div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }
.bronlijst dt { font-weight: 500; color: var(--color-ink); }
.bronlijst dd { margin: 0; }
.bronlijst a { color: var(--color-ink); }
.bronnen__slot { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* start tooltip on the map */
.map .start-tip { background: var(--color-ink); color: var(--color-paper); border: 0; border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-xs); font: 500 var(--text-xs)/1.4 var(--font-body); box-shadow: none; }
.map .start-tip::before { display: none; }

/* ---------- mobile table ---------- */
@media (max-width: 40rem) {
  :root { --sticky-col: 11rem; }
  .tabel { font-size: var(--text-sm); }
  .stats dd { font-size: var(--text-lg); }
  .legend__note { margin-left: 0; }
}
