:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-subdued: #f8f8f8;
  --border: #e3e3e3;
  --border-strong: #c9cdd3;
  --text: #202223;
  --text-subdued: #616a75;
  --primary: #2647e8;
  --primary-dark: #1731b8;
  --success: #147a51;
  --success-soft: #edf8f3;
  --success-border: #b9e1cf;
  --warning: #8a5700;
  --warning-soft: #fff7e8;
  --warning-border: #ebcf9d;
  --highlight: #e00022;
  --highlight-label: #b42318;
  --heading: #141517;
  --text-faint: #9aa0a8;
  --focus-ring: rgba(38, 71, 232, 0.28);
  --code-surface: #20242b;
  --code-text: #eef1f6;
  --radius: 14px;
}

/* Donker thema. Bewust alleen via de knop, niet via prefers-color-scheme:
   de lezer kiest zelf en die keuze blijft staan. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #16181c;
  --surface-subdued: #1e2126;
  --border: #2e3238;
  --border-strong: #454b54;
  --text: #e9ebef;
  --text-subdued: #a8b0ba;
  /* Links zijn op donker juist lichter dan de accentkleur, zodat hover nog
     steeds oplicht in plaats van weg te zakken. */
  --primary: #c2cfff;
  --primary-dark: #93aaff;
  --success: #4ec99a;
  --success-soft: #14261f;
  --success-border: #2a5a46;
  --warning: #e2ab52;
  --warning-soft: #2a2113;
  --warning-border: #5d4722;
  --heading: #f2f4f7;
  --text-faint: #6f7883;
  --focus-ring: rgba(147, 170, 255, 0.4);
  --code-surface: #0f1114;
  --code-text: #e4e8ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  overflow-wrap: anywhere;
  padding: 0.1em 0.36em;
  border: 1px solid var(--border);
  background: var(--surface-subdued);
  border-radius: 5px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.84em;
}

pre {
  margin: 18px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  color: var(--code-text);
  background: var(--code-surface);
  border-radius: 10px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  line-height: 1.7;
}

pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 24px 96px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 36px;
  color: var(--text-subdued);
  font-size: 15px;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--primary-dark);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--text-faint);
}

.kicker {
  margin: 0 0 8px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
}

h2 {
  margin: 64px 0 10px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 800;
}

h3 {
  margin: 28px 0 7px;
  font-size: 19px;
  font-weight: 750;
}

p {
  margin: 8px 0;
}

.intro {
  max-width: 72ch;
  margin: 18px 0 0;
  color: var(--text-subdued);
  font-size: 19px;
}

.privacy-note {
  max-width: 72ch;
  margin-top: 14px;
  color: var(--text-subdued);
  font-size: 14px;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-facts > div {
  padding: 18px 20px;
}

.guide-facts > div + div {
  border-left: 1px solid var(--border);
}

.guide-facts strong,
.guide-facts span {
  display: block;
}

.guide-facts strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.guide-facts span {
  color: var(--text-subdued);
  font-size: 14px;
}

.footer-meta {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-subdued);
}

.note {
  margin-top: 18px;
  padding: 13px 16px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-subdued);
  font-size: 15.5px;
}

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--warning);
  font-weight: 700;
}

.status::before {
  width: 8px;
  height: 8px;
  background: var(--warning);
  border-radius: 999px;
  content: "";
}

.guide-contents {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--surface-subdued);
  border-radius: var(--radius);
}

.guide-contents h2 {
  margin: 0 0 8px;
  padding-top: 0;
  border-top: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.guide-contents ol {
  columns: 2;
  margin: 0;
  padding-left: 22px;
}

.guide-contents li {
  padding: 4px 0;
}

.guide-contents a {
  display: inline-block;
  min-height: 32px;
  font-weight: 600;
}

main {
  margin-top: 76px;
}

main > section {
  scroll-margin-top: 28px;
}

main > section + section {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.lead {
  color: var(--text-subdued);
  font-size: 19px;
}

ol,
ul {
  margin: 0 0 22px;
  padding-left: 26px;
}

li {
  padding: 4px 0 4px 5px;
}

.route-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.route-table > div {
  padding: 24px 26px;
}

.route-table > div + div {
  border-left: 1px solid var(--border);
}

.route-table h3 {
  margin-top: 0;
}

.route-table ul {
  margin-bottom: 0;
}

.callout,
.expected-result {
  margin: 16px 0;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14.5px;
}

.callout strong,
.expected-result strong {
  display: block;
  margin-bottom: 4px;
}

.callout p,
.expected-result p {
  margin: 0;
}

.callout--warning {
  border-color: var(--warning-border);
  background: var(--warning-soft);
}

.expected-result {
  border-color: var(--success-border);
  background: var(--success-soft);
}

.expected-result strong {
  color: var(--success);
  font-size: 15px;
}

.field-list {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.field-list dt,
.field-list dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.field-list dt {
  background: var(--surface-subdued);
  font-weight: 700;
}

.field-list dt:last-of-type,
.field-list dd:last-of-type {
  border-bottom: 0;
}

.field-list dd {
  color: var(--text-subdued);
}

.data-table-wrap {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14.5px;
}

.data-table caption {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-subdued);
  font-weight: 750;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: var(--text);
  background: var(--surface-subdued);
  font-size: 13.5px;
  font-weight: 750;
}

.data-table td {
  color: var(--text-subdued);
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 700;
}

.verification-list {
  padding: 0;
  list-style: none;
}

.verification-list li {
  position: relative;
  padding: 8px 0 8px 34px;
}

.verification-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--success-border);
  color: var(--success);
  background: var(--success-soft);
  border-radius: 999px;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

figure {
  margin: 28px 0;
}

.evidence-shot {
  position: relative;
  max-width: 920px;
  margin: 28px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subdued);
}

.evidence-shot--wide {
  max-width: 1040px;
}

.evidence-shot--narrow {
  max-width: 680px;
}

.evidence-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.evidence-shot__link {
  display: block;
}

.evidence-shot__frame {
  overflow: hidden;
}

.evidence-shot__canvas {
  position: relative;
}

.evidence-shot__frame--image-failed .shot-highlight,
.evidence-shot__frame--image-failed .shot-label {
  display: none;
}

.shot-highlight {
  position: absolute;
  border: 4px solid var(--highlight);
  border-radius: 9px;
  pointer-events: none;
}

.shot-highlight--blue {
  border-color: var(--highlight);
}

.shot-label {
  position: absolute;
  max-width: 250px;
  padding: 7px 10px;
  color: #ffffff;
  background: var(--highlight-label);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  pointer-events: none;
}

.shot-label--blue {
  background: var(--highlight-label);
}

figcaption {
  padding: 13px 16px;
  color: var(--text-subdued);
  font-size: 14px;
}

figcaption strong {
  color: var(--text);
}

details {
  border-top: 1px solid var(--border);
}

details:last-of-type {
  border-bottom: 1px solid var(--border);
}

summary {
  padding: 18px 36px 18px 0;
  cursor: pointer;
  font-weight: 700;
}

details p {
  padding: 0 0 20px;
  color: var(--text-subdued);
}

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-subdued);
  font-size: 14px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .page {
    max-width: 920px;
    padding: 28px 16px 72px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
  }

  h2 {
    margin-top: 42px;
    padding-top: 20px;
    font-size: 23px;
  }

  h3 {
    font-size: 17.5px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.03;
  }

  .intro {
    font-size: 18px;
  }

  .guide-contents {
    padding: 18px;
  }

  .guide-contents ol {
    columns: 1;
    padding-left: 24px;
  }

  .guide-facts {
    grid-template-columns: 1fr;
  }

  .guide-facts > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .route-table {
    grid-template-columns: 1fr;
  }

  .route-table > div {
    padding: 20px;
  }

  .route-table > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  main {
    margin-top: 56px;
  }

  main > section + section {
    margin-top: 52px;
    padding-top: 48px;
  }

  .field-list {
    display: block;
  }

  .field-list dt,
  .field-list dd {
    display: block;
  }

  .field-list dd:last-of-type {
    border-bottom: 0;
  }

  .data-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .data-table caption {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .data-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .data-table td {
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .data-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.02em;
  }

  .data-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
  }

  .data-table tr td:last-child {
    border-bottom: 0;
  }

  pre {
    padding: 16px;
    font-size: 12px;
  }

  .evidence-shot {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  /* Op 720px vastzetten in een scrollbaar kader maakte elke afbeelding een
     scrolval, en na het scrollen was hij alsnog klein: de bronbestanden zijn
     tot 2300px breed, dus zelfs op desktop staan ze op 39%. Passend tonen met
     een tik naar het volledige formaat kost één handeling in plaats van zes
     sleepbewegingen. */
  .evidence-shot__canvas {
    width: 100%;
    max-width: 100%;
  }

  .shot-highlight {
    border-width: 2px;
    border-radius: 5px;
  }

  .shot-label {
    max-width: 180px;
    padding: 5px 7px;
    font-size: 10px;
  }

  figcaption {
    padding: 12px 16px;
    font-size: 13px;
  }

  figcaption::before {
    content: "Tik op de afbeelding voor het volledige formaat. ";
    color: var(--text);
    font-weight: 700;
  }
}

@media print {
  /* Wie in donkere modus print wil geen zwarte vellen. Terug naar het lichte
     palet, ongeacht de gekozen stand. */
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --surface: #ffffff;
    --surface-subdued: #f8f8f8;
    --border: #e3e3e3;
    --border-strong: #c9cdd3;
    --text: #202223;
    --text-subdued: #616a75;
    --heading: #141517;
    --success-soft: #edf8f3;
    --success-border: #b9e1cf;
    --warning-soft: #fff7e8;
    --warning-border: #ebcf9d;
  }

  .theme-toggle {
    display: none;
  }

  body {
    color: #000000;
    background: #ffffff;
    font-size: 11pt;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .breadcrumbs,
  .guide-contents {
    display: none;
  }

  h1 {
    font-size: 28pt;
  }

  main {
    margin-top: 36px;
  }

  main > section + section {
    margin-top: 32px;
    padding-top: 28px;
  }

  details > * {
    display: block;
  }

  a {
    color: inherit;
  }
}


/* ============================================================
   SCHERMAFBEELDING VERGROTEN
   ============================================================ */
.evidence-shot__link {
  position: relative;
}

.evidence-shot__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.evidence-shot__hint {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 21, 23, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

@media (max-width: 720px) {
  .evidence-shot__hint {
    display: block;
  }
}

/* ============================================================
   OVERZICHTSPAGINA
   ============================================================ */
.docs-index {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.docs-index .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  color: var(--text-subdued);
  font-size: 14px;
  font-weight: 650;
}

.docs-index .mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.docs-index h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.docs-index .lead {
  margin: 0 0 32px;
  color: var(--text-subdued);
  font-size: 17px;
}

.docs-index h2 {
  margin: 36px 0 12px;
  padding: 0;
  border: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-card {
  display: block;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.doc-card:hover {
  background: var(--surface-subdued);
}

.doc-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.doc-card span {
  color: var(--text-subdued);
  font-size: 14.5px;
}

.docs-index .soon {
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-subdued);
  color: var(--text-subdued);
  font-size: 14.5px;
}

@media (max-width: 720px) {
  .docs-index {
    padding: 34px 16px 72px;
  }

  .docs-index h1 {
    font-size: 27px;
  }
}

/* ============================================================
   THEMAKNOP
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
  padding: 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-subdued);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-subdued);
  color: var(--text);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-toggle svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentcolor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Alleen het pictogram van het thema waar je naartoe schakelt. */
.theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }

@media (max-width: 720px) {
  .theme-toggle .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Zonder tekst wordt het een pictogramknop; 15px icoon plus deze padding
     houdt het aanraakvlak op 43px in plaats van 31px. */
  .theme-toggle {
    padding: 13px;
  }
}
