/* Peter en de Wallet, prototype-stijl. Strakke, toegankelijke basis met ruimte voor illustratie-accenten. */

:root {
  --paper: #fbf9f5;
  --surface: #ffffff;
  --ink: #1f2421;
  --muted: #5c6660;
  --primary: #2f5d50;
  --primary-soft: #e8f0ec;
  --accent: #c4633f;
  --accent-soft: #f6e7df;
  --border: #e6e0d4;
  --laag1: #2f7d5d;
  --laag2: #2f6d8c;
  --laag3: #6b4a86;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 36, 33, 0.05), 0 8px 24px rgba(31, 36, 33, 0.06);
  --maxw: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 8px;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--ink); background: var(--primary-soft); }

.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 0.85rem; color: var(--muted); font-weight: 600;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 80px; }

.hero { padding: 56px 0 24px; }
.hero h1 { font-size: 2.25rem; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero .lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 8px; max-width: 60ch; }
.hero .subtle { font-size: 0.95rem; color: var(--muted); }

.layer-legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.layer-legend .chip { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; font-weight: 600; }
.chip.l1 { background: rgba(47,125,93,0.12); color: var(--laag1); }
.chip.l2 { background: rgba(47,109,140,0.12); color: var(--laag2); }
.chip.l3 { background: rgba(107,74,134,0.12); color: var(--laag3); }

.section-title { font-size: 1.4rem; margin: 48px 0 4px; letter-spacing: -0.01em; }
.section-intro { color: var(--muted); margin: 0 0 8px; }

/* Userstory card */
.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 26px 0;
  overflow: hidden;
}
.usecase-head { padding: 0; }
.illustration {
  height: 150px;
  background: repeating-linear-gradient(135deg, var(--accent-soft), var(--accent-soft) 14px, #f1ddd2 14px, #f1ddd2 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.85rem; font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 0 16px;
}
.usecase-body { padding: 26px 26px 8px; }
.usecase h3 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 6px; line-height: 1.2; }
.usecase .probleem { color: var(--accent); font-weight: 600; margin: 0 0 18px; }

.layer { border-top: 1px dashed var(--border); padding: 18px 0; }
.layer:first-of-type { border-top: 0; }
.layer-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  margin-bottom: 6px;
}
.layer-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.layer-1 .layer-tag { color: var(--laag1); }
.layer-1 .layer-tag::before { background: var(--laag1); }
.layer-2 .layer-tag { color: var(--laag2); }
.layer-2 .layer-tag::before { background: var(--laag2); }
.layer-3 .layer-tag { color: var(--laag3); }
.layer-3 .layer-tag::before { background: var(--laag3); }

.layer p { margin: 0 0 12px; }
.layer ul { margin: 0 0 12px; padding-left: 1.2em; }
.layer li { margin: 0 0 6px; }
.layer .verhaal-text p:first-child { font-size: 1.05rem; }

/* Disclosure */
.disclosure {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; margin: 6px 0 2px; font: inherit; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.disclosure:hover { border-color: var(--primary); background: var(--primary-soft); }
.disclosure .hint { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.disclosure .caret { transition: transform 0.2s ease; color: var(--muted); }
.disclosure[aria-expanded="true"] .caret { transform: rotate(90deg); }
.layer-collapsible[hidden] { display: none; }

/* Roles diagram */
.roles {
  background: var(--paper); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin: 6px 0 14px;
}
.roles-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.role {
  flex: 1 1 150px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.role .role-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.role .role-val { font-weight: 600; }
.role .role-wat { font-size: 0.85rem; color: var(--muted); }
.role-arrow { align-self: center; color: var(--muted); font-size: 1.2rem; }
.interop-note { font-size: 0.92rem; color: var(--muted); margin: 10px 2px 0; }
.interop-note strong { color: var(--ink); }

/* Glossary terms + tooltip */
.term {
  border-bottom: 2px dotted var(--accent);
  cursor: help; color: inherit; font-weight: 600;
}
.term:hover, .term:focus { background: var(--accent-soft); outline: none; border-radius: 3px; }
.term:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 3px; }

#tooltip {
  position: fixed; z-index: 60; max-width: 320px;
  background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 10px;
  font-size: 0.9rem; line-height: 1.5; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.12s ease, transform 0.12s ease;
}
#tooltip.show { opacity: 1; transform: translateY(0); }
#tooltip .tt-term { font-weight: 700; display: block; margin-bottom: 3px; color: #ffd9c7; }

/* Glossary section */
.glossary-list { display: grid; gap: 12px; }
.glossary-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.glossary-item dt { font-weight: 700; margin-bottom: 3px; }
.glossary-item dd { margin: 0; color: var(--muted); }

/* Articles / sources placeholder */
.placeholder-card {
  background: var(--surface); border: 1px dashed var(--border); border-radius: 10px;
  padding: 18px; color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 48px; color: var(--muted); font-size: 0.9rem; }
.footer-inner a { color: var(--primary); }
.cc-badge {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; margin-bottom: 10px;
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 1.8rem; }
  .role-arrow { display: none; }
}

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

/* ===== Multi-page uitbreidingen ===== */
figure { margin: 0; }

/* Gedeelde cover (tegel en paginafoto) */
.cover {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.img-top img { object-position: top; }
.cover.img-25 img { object-position: center 25%; }

/* Paginafoto bij een verhaal: volledig tonen, geen uitvouwen bij hover (dat was onrustig). */
.cover.expandable { height: auto; max-height: 560px; background: #f1ede5; }
.cover.expandable img { height: auto; max-height: 560px; object-fit: contain; object-position: center; }
.cover.expandable.placeholder { height: 210px; }
/* Verwijzing naar een kans in lopende tekst ("zie 60h") */
.kans-ref { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.kans-ref:hover, .kans-ref:focus-visible { background: var(--accent-soft); outline: none; }
.cover.layer-img img { object-fit: contain; }

/* Groep-omschrijving op de landing en op de groepspaginas (EUDIW, EBW) */
.groep-sub { color: var(--muted); max-width: 62ch; margin: 2px 0 12px; }
.groep-intro { max-width: 66ch; }
.groep-intro p { margin: 0 0 12px; }

/* Doorklikblok per groep op de landing */
.groep-blok {
  margin: 34px 0 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 26px 26px;
}
.groep-blok .section-title { margin-top: 26px; }
.groep-telling { color: var(--muted); font-size: 0.9rem; margin: 4px 0 14px; }
.groep-cta {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--primary); color: #fff; border-radius: 999px; padding: 10px 20px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.groep-cta:hover { background: #26493f; transform: translateY(-1px); }
.groep-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Knop en pop-up voor het hele verhaal */
.full-story-btn { margin-top: 10px; background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.full-story-btn:hover { background: #26493f; }
.modal-overlay { position: fixed; inset: 0; background: rgba(31,36,33,0.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 80; overflow-y: auto; }
.modal { background: var(--surface); max-width: 680px; width: 100%; border-radius: 14px; box-shadow: 0 20px 60px rgba(31,36,33,0.3); }
.modal-bar { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; }
.modal-title { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.modal-close { border: 0; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-content { padding: 20px 24px 30px; }
.modal-content h3 { font-size: 1.05rem; color: var(--accent); margin: 20px 0 6px; }
.modal-content h3:first-child { margin-top: 0; }
.modal-content p { margin: 0 0 12px; }
.modal-content ol, .modal-content ul { margin: 0 0 14px; padding-left: 1.35em; }
.modal-content li { margin: 0 0 7px; }
body.modal-open { overflow: hidden; }

/* Bronnenpagina */
.bron-cat { font-size: 1.15rem; margin: 26px 0 8px; }
.bron { display: flex; gap: 10px; margin: 0 0 10px; align-items: baseline; }
.bron-nr { color: var(--accent); font-weight: 700; flex: none; min-width: 2.4em; }
.bron-tekst { color: var(--ink); }
.cover.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.85rem; font-weight: 600; text-align: center; padding: 0 16px;
  background: repeating-linear-gradient(135deg, var(--accent-soft), var(--accent-soft) 14px, #f1ddd2 14px, #f1ddd2 28px);
}
.illustration { height: 210px; }
/* Tegels tonen de hele afbeelding: contain in plaats van cover, met wat meer hoogte. */
.tile-cover { height: 200px; background: var(--surface); }
.tile-cover img { object-fit: contain; object-position: center; }

/* Hero */
.hero-body { color: var(--ink); max-width: 65ch; margin: 0 0 4px; }

/* Tegels */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 14px 0 0; }
.tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(31,36,33,0.12); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.tile-sector {
  align-self: flex-start; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px;
}
.tile-title { font-family: var(--serif); font-size: 1.25rem; margin: 2px 0 0; line-height: 1.2; }
.tile-probleem { color: var(--muted); font-size: 0.95rem; margin: 0; }
.tile-cta { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 4px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.crumb-current { color: var(--ink); }

/* Userstory-pagina */
.usecase-page { margin-top: 14px; }
.usecase-title { font-family: var(--serif); font-size: 1.9rem; margin: 2px 0 6px; line-height: 1.15; }

/* Blokken binnen lagen */
.block-h { font-size: 0.98rem; margin: 16px 0 4px; color: var(--ink); }
.block-body { margin: 0 0 6px; }
.block-body p:first-child { margin-top: 0; }

/* Rollen */
.roles-heading { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }

/* Actieve navigatie */
.main-nav a.active, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--primary-soft); font-weight: 600; }

/* Statische pagina's */
.prose { max-width: 65ch; }
.prose p { margin: 0 0 14px; }

/* Laagafbeelding (optioneel, binnen techniek of recht) */
.cover.layer-img { height: 200px; border: 1px solid var(--border); border-radius: 10px; margin: 8px 0 14px; }
.cover.is-empty { display: none; }

/* Begrippenlijst-intro met bronvolgorde */
.section-intro p { margin: 0 0 8px; }
.section-intro ol { margin: 6px 0 10px; padding-left: 1.3em; }
.section-intro ol li { margin: 0 0 4px; }

/* Achtergrondfoto landingspagina */
body.has-bg { background-color: transparent; }
.page-bg { position: fixed; inset: 0; z-index: -2; background-position: top center; background-size: cover; background-repeat: no-repeat; }
.page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251,249,245,0.40), rgba(251,249,245,0.82)); }
.has-bg .hero { background: rgba(251,249,245,0.72); backdrop-filter: blur(3px); border-radius: 16px; padding: 22px 24px; margin-top: 14px; }
.bg-credit { position: fixed; right: 12px; bottom: 12px; z-index: 30; display: inline-flex; align-items: center; gap: 5px; background: rgba(31,36,33,0.62); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 0.74rem; cursor: default; }
.bg-credit-icon::before { content: "\24D8"; margin-right: 4px; }
.bg-credit-text { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.25s ease, opacity 0.2s ease; }
.bg-credit:hover .bg-credit-text, .bg-credit:focus-within .bg-credit-text { max-width: 70vw; opacity: 1; }

/* Instaptekst */
.hero-start { background: var(--primary-soft); border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 8px; color: var(--ink); max-width: 60ch; margin: 6px 0 0; }

/* Voorwoord als citaat */
.foreword { margin: 44px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.foreword-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.foreword-quote { margin: 0; border: 0; padding: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.foreword-quote p { margin: 0 0 12px; }
.foreword-quote p:last-child { margin-bottom: 0; }
.foreword-by { margin-top: 10px; font-weight: 600; color: var(--muted); }

/* Analogie-tegel */
.tile-analogie { border-color: var(--accent); }
.tile-uitgelicht { border-color: var(--primary); }
.tile-badge {
  align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; color: #fff; background: var(--primary); border-radius: 999px; padding: 4px 11px;
}
.tile-analogie .tile-sector { color: var(--accent); background: var(--accent-soft); }

/* Vorige en volgende userstory */
.story-nav { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 0; }
.story-nav a { display: inline-flex; flex-direction: column; gap: 2px; max-width: 47%; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--ink); }
.story-nav a:hover { border-color: var(--primary); background: var(--primary-soft); }
.story-nav .story-next { text-align: right; margin-left: auto; }
.story-nav .sn-dir { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.story-nav .sn-title { font-weight: 600; }

/* Mapping op het coalitieakkoord, blok in laag 3 */
.akkoord-bron {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--primary-soft);
  border-left: 3px solid var(--laag3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.akkoord-bron strong { color: var(--ink); }
.akkoord-link { color: var(--primary); font-weight: 600; white-space: nowrap; }

/* Artikelenpagina */
.artikelen { margin: 14px 0 0; }
.artikel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 0 0 16px;
}
.artikel-titel { font-size: 1.15rem; margin: 0 0 4px; color: var(--ink); }
.artikel-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.artikel-tekst { margin: 0 0 14px; max-width: 65ch; }
.artikel-cta { display: inline-block; color: var(--accent); font-weight: 600; }

/* Registratieprofiel, laag 3 */
.registratie {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--laag3);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 16px 0 6px;
}
.registratie-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.registratie-heading {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--laag3); font-weight: 700;
}
.registratie-concept {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
  background: var(--surface);
}
.reg-veld { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 4px 14px; margin: 0 0 12px; }
.reg-veld dt { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.reg-veld dd { margin: 0; font-size: 0.92rem; }
.upl-wrap { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.upl-badge {
  font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.upl-vastgesteld { background: rgba(47,125,93,0.14); color: var(--laag1); }
.upl-kandidaat { background: var(--accent-soft); color: var(--accent); }
.upl-geen { background: var(--border); color: var(--muted); }
.reg-attr-kop {
  font-size: 0.8rem; color: var(--muted); font-weight: 700; margin: 0 0 6px;
}
.reg-attributen { list-style: none; padding: 0; margin: 0 0 10px; }
.reg-attributen li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin: 0 0 6px;
}
.reg-attr { display: block; font-weight: 600; font-size: 0.92rem; }
.reg-attr-bron { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.reg-toelichting { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.reg-alle { margin-top: 10px; }
.glossary-meer { margin-top: 6px; font-size: 0.9rem; }

/* Registerpagina */
.reg-lijst { margin: 14px 0 0; }
.reg-rij {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 12px;
}
.reg-rij:hover { border-color: var(--laag3); }
.reg-rij-kop { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.reg-rij-titel { font-weight: 700; font-size: 1.02rem; }
.reg-rij-dienst { margin-top: 4px; font-size: 0.94rem; }
.reg-rij-partij { margin-top: 2px; font-size: 0.84rem; color: var(--muted); }
.reg-gaten, .reg-kansrijk { max-width: 65ch; line-height: 1.6; }
.reg-gaten li, .reg-kansrijk li { margin: 0 0 6px; }

/* Kansenpagina: longlist walletdiensten, uitvouwbaar per dienst */
.kansen-lede { font-size: 1.05rem; font-weight: 600; margin: 10px 0 18px; }
.kans-filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0 0; }
.kans-filter-naam { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.kans-zoek { flex: 1 1 220px; }
.kans-zoek input, .kans-cluster select { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--ink); }
.kans-zoek input:focus-visible, .kans-cluster select:focus-visible, .kans-chip:focus-visible, .kans-btn:focus-visible, .kans-alles:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kans-cluster { flex: 1 1 200px; }
.kans-chipgroep { flex: 0 1 auto; }
.kans-chip { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--paper); color: var(--ink); cursor: pointer; margin: 0 6px 4px 0; }
.kans-chip:hover { border-color: var(--primary); background: var(--primary-soft); }
.kans-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kans-balk { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.kans-telling { color: var(--muted); font-size: 0.9rem; margin: 0; }
.kans-alles { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; margin-left: 6px; }
.kans-alles:hover { background: var(--primary-soft); border-color: var(--primary); }
.kans-cluster-kop { font-size: 1.15rem; margin: 30px 0 8px; letter-spacing: -0.01em; }
.kans-cluster[hidden], .kans[hidden], .kans-panel[hidden], .kans-geen[hidden] { display: none; }
.kans { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 10px; margin: 0 0 10px; }
.kans.open { border-color: var(--primary); }
.kans-kop { margin: 0; font-size: 1rem; }
.kans-btn { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 10px 0 6px; font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink); cursor: pointer; }
.kans-btn:hover .kans-naam { color: var(--primary); }
.kans-nr { flex: none; min-width: 2.2em; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.kans-naam { flex: 1; }
.kans-btn .caret { transition: transform 0.2s ease; color: var(--muted); font-size: 1.3rem; }
.kans-btn[aria-expanded="true"] .caret { transform: rotate(90deg); }
.kans-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 4px 2.9em; }
.kans-badge, .kans-tag { font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.kans-badge { background: var(--primary-soft); color: var(--primary); }
.kans-badge.wallet-ebw { background: rgba(47,109,140,0.12); color: var(--laag2); }
.kans-badge.wallet-eudiw-en-ebw { background: rgba(107,74,134,0.12); color: var(--laag3); }
.kans-tag { background: var(--paper); color: var(--muted); border: 1px solid var(--border); }
.kans-panel { border-top: 1px dashed var(--border); margin-top: 6px; padding: 12px 0 4px; }
.kans-kanaal { font-size: 0.92rem; color: var(--muted); margin: 0 0 10px; }
.kans-kanaal strong { color: var(--ink); }
.kans-laag { border-left: 3px solid var(--border); padding: 4px 0 4px 14px; margin: 0 0 12px; }
.kans-laag.layer-1 { border-left-color: var(--laag1); }
.kans-laag.layer-2 { border-left-color: var(--laag2); }
.kans-laag.layer-3 { border-left-color: var(--laag3); }
.kans-laag p { margin: 4px 0 0; }
.kans-link { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-top: 2px; }
.kans-geen { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .kans-btn .caret { transition: none; } }

/* ---------- Vragen (FAQ): drie lagen en voetnoten per vraag ---------- */
.faq-lijst .kans-btn { align-items: flex-start; }
.faq-lijst .kans-btn .caret { margin-top: 2px; }
.faq-laag .faq-tekst p { margin: 4px 0 10px; }
.faq-laag .faq-tekst p:last-child { margin-bottom: 0; }
.faq-laag.layer-1 .faq-tekst { font-size: 1.04rem; }
.faq-tekst { max-width: 72ch; }
sup.fn { font-size: 0.72em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.fn a { color: var(--accent); font-weight: 700; text-decoration: none; padding: 0 2px; }
sup.fn a:hover, sup.fn a:focus-visible { text-decoration: underline; outline: none; }
sup.fn a:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 3px; }
.faq-noten { border-top: 1px dashed var(--border); margin: 6px 0 10px; padding-top: 10px; font-size: 0.88rem; color: var(--muted); max-width: 72ch; }
.faq-noten-kop { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.faq-noten ol { margin: 0; padding-left: 1.6em; }
.faq-noten li { margin: 0 0 4px; }
.faq-noten li:target, .faq-noten li:target .fn-terug { color: var(--ink); background: var(--accent-soft); border-radius: 4px; }
.fn-terug { color: var(--accent); text-decoration: none; font-weight: 700; margin-left: 4px; }
.fn-terug:hover, .fn-terug:focus-visible { text-decoration: underline; }
.faq, .faq-noten li, sup.fn a { scroll-margin-top: 170px; }

/* ---------- Bewijzenpagina en bewijs-chips ---------- */
.bewijs-status { font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.st-beproefd { background: rgba(47,125,93,0.16); color: var(--laag1); }
.st-gemeente-bron, .st-organisatie-bron { background: var(--primary-soft); color: var(--primary); }
.st-bron-werkt-aan-uitgifte { background: rgba(47,109,140,0.12); color: var(--laag2); }
.st-wacht-op-landelijk-besluit, .st-wacht-op-europees-besluit { background: var(--accent-soft); color: var(--accent); }
.st-bron-nog-geen-uitgever { background: var(--border); color: var(--muted); }
.bewijs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 6px; }
.bewijs-chips-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.bewijs-chip { font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; text-decoration: none; border: 1px solid transparent; }
.bewijs-chip:hover { border-color: var(--ink); }
.bewijs-chip.bewijs-basis { opacity: 0.75; }
.kans-panel .bewijs-chips { margin: 4px 0 10px; }
.bewijs-perspectief .kans-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
.bewijs-situaties { margin-top: 14px; }
.bewijs-situatie-titel { margin: 24px 0 6px; font-size: 1.5rem; letter-spacing: -0.01em; }
.bewijs-situatie-intro { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0 0 12px; }
.bewijs-kern { background: var(--surface); border-left: 4px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.bewijs-basisrij { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.bewijs-kaarten { display: grid; gap: 10px; }
.bewijs-kaart .kans-meta { padding-left: 0; }
.bewijs-vandaag { margin: 2px 0 8px; font-size: 0.92rem; color: var(--ink); }
.bewijs-sub { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 14px 0 6px; }
.bewijs-verhalen { display: grid; gap: 6px; }
.bewijs-verhaal { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.bewijs-verhaal:hover { border-color: var(--primary); }
.bewijs-verhaal-titel { display: block; font-weight: 700; }
.bewijs-verhaal-probleem { display: block; font-size: 0.88rem; color: var(--muted); }
.bewijs-kansen { display: grid; gap: 4px; }
.bewijs-kans { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; }
.bewijs-kans:hover { border-color: var(--primary); background: var(--surface); }
.bewijs-kans .kans-nr { font-size: 0.8rem; color: var(--muted); min-width: 2em; }
.bewijs-kans-naam { flex: 1; font-weight: 600; }
.bewijs-tweekolom { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 22px; margin-top: 14px; align-items: start; }
@media (max-width: 760px) { .bewijs-tweekolom { grid-template-columns: 1fr; } }
.bewijs-lijstkolom { position: sticky; top: 12px; }
.bewijs-zoek { display: block; margin-bottom: 10px; }
.bewijs-zoek input { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.bewijs-lijst .kans-cluster-kop { margin: 14px 0 6px; font-size: 0.95rem; }
.bewijs-lijstitem { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin: 0 0 6px; cursor: pointer; color: var(--ink); }
.bewijs-lijstitem:hover { border-color: var(--primary); }
.bewijs-lijstitem[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.bewijs-lijstnaam { font-weight: 700; font-size: 0.95rem; }
.bewijs-lijsttelling { font-size: 0.78rem; color: var(--muted); align-self: center; }
.bewijs-lijstitem .bewijs-status { grid-column: 1 / -1; justify-self: start; }
.bewijs-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.bewijs-detail-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.bewijs-detail-titel { margin: 0; font-size: 1.4rem; }
.bewijs-velden { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 0.95rem; }
.bewijs-velden dt { font-weight: 700; color: var(--muted); }
.bewijs-velden dd { margin: 0; }
@media (max-width: 560px) { .bewijs-velden { grid-template-columns: 1fr; } }
.bewijs-telling { font-weight: 700; margin: 0 0 6px; }
.groep-bewijzen .section-title { margin-top: 26px; }
