/* TimeWriter handleiding — stijlblad
   Kleuren staan als tokens bovenaan; donkere modus volgt het systeem of de schakelaar in de kop. */

:root {
  --bg: #ffffff;
  --surface: #f5f8fc;
  --surface-2: #eaf1f9;
  --border: #d9e2ec;
  --text: #1f2933;
  --muted: #5a6672;
  --link: #2a67a8;
  --brand: #397fc5;
  --brand-strong: #255e9c;
  --on-brand: #ffffff;
  --focus: #397fc5;
  --mark: #fff1a8;
  --info-bg: #eef5fd;
  --info-border: #9cc2ea;
  --warn-bg: #fff7ea;
  --warn-border: #f0c27a;
  --warn-text: #8a4b00;
  --note-bg: #f4f6f8;
  --note-border: #c9d2db;
  --tip-bg: #eefaf2;
  --tip-border: #8fd1a6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 10px;
  --header-h: 64px;
  --sidebar-w: 288px;
  --content-w: 46rem;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f161f;
    --surface: #161f2b;
    --surface-2: #1c2736;
    --border: #2a3646;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --link: #8dbcf0;
    --brand: #6aa6e8;
    --brand-strong: #2f6fb3;
    --on-brand: #ffffff;
    --focus: #8dbcf0;
    --mark: #6b5a00;
    --info-bg: #13243a;
    --info-border: #2f5d8f;
    --warn-bg: #2e2210;
    --warn-border: #8a6122;
    --warn-text: #f3c98b;
    --note-bg: #19212c;
    --note-border: #3a4656;
    --tip-bg: #11281b;
    --tip-border: #2f7a4a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f161f;
  --surface: #161f2b;
  --surface-2: #1c2736;
  --border: #2a3646;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --link: #8dbcf0;
  --brand: #6aa6e8;
  --brand-strong: #2f6fb3;
  --on-brand: #ffffff;
  --focus: #8dbcf0;
  --mark: #6b5a00;
  --info-bg: #13243a;
  --info-border: #2f5d8f;
  --warn-bg: #2e2210;
  --warn-border: #8a6122;
  --warn-text: #f3c98b;
  --note-bg: #19212c;
  --note-border: #3a4656;
  --tip-bg: #11281b;
  --tip-border: #2f7a4a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--brand-strong); color: var(--on-brand); padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

svg.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ kop */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--text); text-decoration: none;
}
.brand-logo { width: 32px; height: 32px; flex: none; color: var(--brand); }
.brand-logo img { width: 32px; height: 32px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.brand-sep { width: 1px; height: 20px; background: var(--border); }

.header-spacer { flex: 1; }

.search-trigger {
  display: flex; align-items: center; gap: 10px;
  width: min(420px, 38vw); height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: .95rem; cursor: pointer; text-align: left;
}
.search-trigger:hover { border-color: var(--brand); color: var(--text); }
.search-trigger span.label { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-trigger kbd { font-size: .75rem; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer;
}
.icon-button:hover { background: var(--surface); border-color: var(--border); }

.header-links { display: flex; gap: 4px; }
.header-links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.header-links a:hover { background: var(--surface); }

.menu-button { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .4em;
  font: 600 .8em/1.6 var(--mono); text-align: center;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
}

/* ------------------------------------------------------------------ indeling */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: 1440px; margin: 0 auto;
}
.layout.has-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 232px; }

.sidebar {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 12px 40px 16px;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.sidebar-title { margin: 4px 8px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.toc, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul { margin-left: 14px; padding-left: 8px; border-left: 1px solid var(--border); }
.toc li { margin: 1px 0; }
.toc-row { display: flex; align-items: flex-start; }
.toc a {
  display: block; flex: 1; min-width: 0;
  padding: 5px 8px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.4;
}
.toc a:hover { background: var(--surface); }
.toc a[aria-current="page"] { background: var(--surface-2); color: var(--link); font-weight: 600; }
.toc-toggle {
  flex: none; width: 26px; height: 30px; margin-left: -4px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px;
}
.toc-toggle:hover { color: var(--text); background: var(--surface); }
.toc-toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
.toc-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.toc-leaf-spacer { flex: none; width: 22px; }
.toc li > ul[hidden] { display: none; }

main { min-width: 0; padding: 28px 40px 64px; }
.content { max-width: var(--content-w); margin: 0 auto; }

.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }

.page-toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
  padding: 28px 16px 24px 8px; font-size: .88rem;
}
.page-toc h2 { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.page-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.page-toc li a { display: block; padding: 4px 0 4px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.page-toc li.lvl-3 a { padding-left: 24px; }
.page-toc li a:hover { color: var(--text); }
.page-toc li a.active { color: var(--link); border-left-color: var(--link); font-weight: 600; }

/* ------------------------------------------------------------------ tekst */
.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose .card-grid, .prose .az-nav, .prose .az-list { padding-left: 0; }
.prose .card-grid li, .prose .az-list li { padding-left: 0; margin-top: 0; }
.prose h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.prose .lead { font-size: 1.14rem; color: var(--muted); margin: 0 0 24px; }
.prose h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.01em; margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h3 { font-size: 1.14rem; line-height: 1.35; margin: 1.8em 0 .5em; }
.prose h2 + h3 { margin-top: 1em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.prose li { margin: .3em 0; padding-left: .2em; }
.prose li > ul, .prose li > ol { margin: .3em 0; }
.prose ol > li::marker { color: var(--muted); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; }
.prose strong { font-weight: 650; }
.prose .footnote { font-size: .93rem; color: var(--muted); }
.prose .anchor { display: block; position: relative; top: calc(-1 * var(--header-h) - 12px); visibility: hidden; height: 0; }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose a.ext::after {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .2em;
  background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* afbeeldingen */
.prose img.ui-icon {
  display: inline-block; vertical-align: middle; max-height: 1.9em; width: auto;
  margin: 0 .15em; border-radius: 4px;
}
.shot { margin: 1.2em 0 1.6em; }
.shot img, .shot-inline img {
  display: block; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; box-shadow: var(--shadow);
}
.shot-inline { display: block; margin: .8em 0 1.2em; }
.shot a.zoom { display: inline-block; cursor: zoom-in; border-radius: 8px; }
.shot a.zoom:hover img { border-color: var(--brand); }

.media-row { display: flex; gap: 24px; align-items: flex-start; margin: 1em 0 1.4em; }
.media-row .media-text { flex: 1; min-width: 0; }
.media-row .media-text > :last-child { margin-bottom: 0; }
.media-row .shot-side { flex: none; margin: 0; max-width: 40%; }
.media-row.media-left { flex-direction: row-reverse; }

/* aandachtsblokken */
.callout {
  position: relative; margin: 1.2em 0 1.4em; padding: 14px 16px 14px 48px;
  border: 1px solid var(--note-border); border-left-width: 4px; border-radius: var(--radius);
  background: var(--note-bg);
}
.callout > :last-child { margin-bottom: 0; }
.callout p { margin: 0 0 .5em; }
.callout::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px;
  background: currentColor; opacity: .85;
  -webkit-mask: var(--callout-icon) center / contain no-repeat; mask: var(--callout-icon) center / contain no-repeat;
}
.callout-label { display: block; font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.callout-info { background: var(--info-bg); border-color: var(--info-border); color: var(--text);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E"); }
.callout-info .callout-label { color: var(--link); }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-border);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E"); }
.callout-warning .callout-label, .callout-warning::before { color: var(--warn-text); }
.callout-note { --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H8l-4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 12h5'/%3E%3C/svg%3E"); }
.callout-note .callout-label { color: var(--muted); }
.callout-tip { background: var(--tip-bg); border-color: var(--tip-border);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1.1 1.3 1.1 2.2h5c0-.9.5-1.7 1.1-2.2A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E"); }

/* tabellen */
.table-wrap { margin: 1.2em 0 1.6em; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child > * { border-bottom: 0; }
.table-wrap thead th { background: var(--surface); font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.table-wrap tbody th { font-weight: 600; width: 32%; }
.table-wrap td.cell-icon { width: 1%; white-space: nowrap; }
.table-wrap td.cell-icon img.ui-icon { max-height: 2.4em; }
.table-wrap td > p:last-child, .table-wrap th > p:last-child { margin-bottom: 0; }
.table-wrap ul, .table-wrap ol { margin-bottom: .4em; }

/* hoofdstukoverzicht */
.chapter { margin-top: 2.4em; }
.chapter h2 { margin-top: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 1em 0 0; padding: 0; list-style: none; }
.card {
  display: block; height: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.card strong { display: block; color: var(--link); font-weight: 650; margin-bottom: 2px; }
.card span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* paginavoet */
.page-meta { margin-top: 3em; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pager a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.pager a:hover { border-color: var(--brand); }
.pager a small { color: var(--muted); font-size: .82rem; }
.pager a strong { color: var(--link); font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }

.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: .9rem;
}
.site-footer .inner { max-width: 1440px; margin: 0 auto; padding: 24px 24px 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

/* ------------------------------------------------------------------ startpagina */
.home main { padding: 0; }
.hero {
  padding: 56px 24px 44px; text-align: center;
  background:
    radial-gradient(1200px 300px at 50% -80px, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.hero p { margin: 0 auto 24px; max-width: 38rem; color: var(--muted); font-size: 1.1rem; }
.hero-search {
  display: flex; align-items: center; gap: 12px; margin: 0 auto; max-width: 640px;
  height: 58px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow); cursor: text;
}
.hero-search:focus-within { border-color: var(--brand); }
.hero-search svg { color: var(--muted); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.1rem; }
.hero-suggest { margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 700px; }
.hero-suggest button {
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer;
}
.hero-suggest button:hover { border-color: var(--brand); color: var(--link); }

.home-section { max-width: 1120px; margin: 0 auto; padding: 40px 24px 8px; }
.home-section h2 { font-size: 1.3rem; margin: 0 0 16px; letter-spacing: -.01em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tile {
  display: flex; gap: 14px; height: 100%; padding: 18px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--brand-strong);
}
:root[data-theme="dark"] .tile-icon { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-icon { color: var(--link); } }
.tile-icon svg { width: 22px; height: 22px; }
.tile-text { display: block; min-width: 0; }
.tile-title { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--text); }
.tile-desc { display: block; color: var(--muted); font-size: .93rem; line-height: 1.45; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col > * { min-width: 0; }
.link-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.link-list li + li { border-top: 1px solid var(--border); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.link-list a:hover { background: var(--surface); color: var(--link); }
.link-list a > span { min-width: 0; }
.link-list small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.link-list small.date { flex: none; overflow: visible; }

/* trefwoordenlijst */
.az-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; padding: 0; list-style: none; }
.az-nav a, .az-nav span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.az-nav span { color: var(--muted); opacity: .45; }
.az-group h2 { font-size: 1.2rem; margin: 1.6em 0 .4em; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.az-list { list-style: none; margin: 0; padding: 0; columns: 2 18rem; column-gap: 32px; }
.az-list li { break-inside: avoid; margin: 0 0 6px; }
.az-list .targets { color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ zoeken */
.search-dialog {
  width: min(720px, calc(100vw - 24px)); max-height: min(78vh, 720px);
  margin: 8vh auto auto; padding: 0;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(15, 22, 31, .45); backdrop-filter: blur(2px); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.search-box svg { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.12rem; padding: 6px 2px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 4px 8px; font: 600 .78rem var(--font); cursor: pointer; }
.search-body { overflow-y: auto; padding: 8px; }
.search-notice { margin: 4px 2px 8px; padding: 10px 12px; border: 1px solid var(--warn-border); border-radius: 8px; background: var(--warn-bg); font-size: .92rem; }
.search-hint { padding: 12px 10px; color: var(--muted); font-size: .92rem; }
.search-hint p { margin: 0 0 8px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
  border: 1px solid transparent;
}
.search-results li a:hover, .search-results li a[aria-selected="true"] { background: var(--surface); border-color: var(--border); }
.search-results .r-title { display: block; font-weight: 650; color: var(--link); }
.search-results .r-title .r-section { color: var(--text); font-weight: 600; }
.search-results .r-path { display: block; font-size: .8rem; color: var(--muted); margin-top: 1px; }
.search-results .r-snippet { display: block; font-size: .92rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.search-results mark, .prose mark.hit { background: var(--mark); color: var(--text); border-radius: 3px; padding: 0 .1em; }
.search-footer { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.search-footer span { display: inline-flex; align-items: center; gap: 6px; }
.search-empty { padding: 6px 2px; color: var(--muted); }
.search-empty strong { color: var(--text); }
.search-empty a { font-weight: 600; }

/* vergrootglas voor afbeeldingen */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 14, 20, .82); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.lightbox button { position: fixed; top: 16px; right: 16px; }
.lightbox figcaption { color: #e6edf3; text-align: center; font-size: .9rem; margin-top: 8px; }

/* startpagina: volle breedte, inhoudsopgave als uitschuifmenu */
.home .layout { grid-template-columns: minmax(0, 1fr); max-width: none; }
.home .menu-button { display: inline-flex; }
.home .sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 35;
  width: min(340px, 88vw); height: auto;
  background: var(--bg); border-right: 1px solid var(--border);
  box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .2s ease;
  visibility: hidden;
}
.home.nav-open .sidebar { transform: none; visibility: visible; }
.home.nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(15, 22, 31, .35); z-index: 30; }

/* ------------------------------------------------------------------ responsief */
@media (max-width: 1279px) {
  .layout.has-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .page-toc { display: none; }
}

@media (max-width: 1023px) {
  :root { --header-h: 58px; }
  .layout, .layout.has-toc { grid-template-columns: minmax(0, 1fr); }
  .menu-button { display: inline-flex; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 35;
    width: min(340px, 88vw); height: auto;
    background: var(--bg); border-right: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .2s ease;
    visibility: hidden;
  }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(15, 22, 31, .35); z-index: 30; }
  main { padding: 20px 20px 56px; }
  .header-links { display: none; }
  .brand-sub, .brand-sep { display: none; }
  .search-trigger { width: auto; flex: 1; max-width: 360px; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  body { font-size: 1rem; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .link-list a { flex-direction: column; gap: 0; }
  .link-list small { white-space: normal; }
  .search-footer { display: none; }
  .site-header { gap: 6px; padding: 0 8px; }
  .search-trigger { height: 38px; }
  .search-trigger kbd { display: none; }
  .brand-name { font-size: 1rem; }
  main { padding: 16px 16px 48px; }
  .media-row, .media-row.media-left { flex-direction: column; }
  .media-row .shot-side { max-width: 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .hero { padding: 36px 16px 28px; }
  .home-section { padding: 28px 16px 4px; }
  .table-wrap th, .table-wrap td { padding: 8px 10px; }
  .table-wrap thead th { white-space: normal; }
  .search-dialog { margin: 0; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .sidebar, .page-toc, .pager, .site-footer, .skip-link { display: none !important; }
  .layout, .layout.has-toc { display: block; }
  main { padding: 0; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; }
  .prose a.ext::after { content: " (" attr(href) ")"; background: none; -webkit-mask: none; mask: none; width: auto; height: auto; font-size: .85em; opacity: 1; }
  .shot img { box-shadow: none; }
  .prose h2, .prose h3 { break-after: avoid; }
  .shot, .table-wrap, .callout { break-inside: avoid; }
}
