/* CBS-gids — gedeelde stijl
   Vormtaal afgestemd op de KATZ- en BelRAI-uitlegdocumenten:
   marineblauw op wit, koele grijstinten, dunne lijnen, onderlijn onder titels.
   Basistekst iets groter (17px i.p.v. 15px) voor een publiek van 50-plussers. */

:root {
  --ink: #1a1a1a;
  --muted: #5b5b5b;
  --line: #d9d9d9;
  --soft: #f4f5f7;
  --accent: #136570;
  --accent-dark: #0c3d44;
  --accent-soft: #e2eef0;
  --warn: #7a5214;
  --ok: #33604a;
  --exp: #6a3b4e;
  --ok-soft: #e8f0ec;
  --warn-soft: #f5efe2;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f5f7;
  --radius: 8px;
  --maxw: 860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---- Kop / navigatie ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .inner {
  max-width: 860px; margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--accent); letter-spacing: -.01em; }
.brand .brand-mark { height: 30px; width: auto; display: block; }
.brand span { color: var(--accent); }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .92rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 3rem; }

.breadcrumb {
  max-width: var(--maxw); margin: 0 auto; padding: .9rem 1.25rem 0;
  font-size: .86rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }

h1 { font-size: 1.65rem; line-height: 1.25; margin: .1em 0 .35em; color: var(--accent); letter-spacing: -.01em; }
h2 {
  font-size: 1.22rem; line-height: 1.3; margin: 2.1rem 0 .7rem;
  padding-bottom: .35rem; border-bottom: 2px solid var(--accent-soft); color: var(--accent);
}
h3 { font-size: 1.05rem; margin: 1.5rem 0 .35rem; color: var(--ink); }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

.lead { font-size: 1.08rem; color: var(--muted); }

/* ---- Homepage: brede tekstkolom bovenaan ---- */
.hero { background: var(--surface); }
.hero .inner { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 1.9rem; text-align: left; }
.hero h1 { font-size: 1.95rem; margin-bottom: .5rem; }
.hero p { font-size: 1rem; color: var(--ink); margin: 0 0 .85rem; }

@media (max-width: 680px) { .hero h1 { font-size: 1.7rem; } }

/* ---- Inhoudsopgave (zoals .legend in de docs) ---- */
.toc {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.2rem; margin: 0 0 1.8rem; font-size: .95rem;
}
.toc strong { display: block; margin-bottom: .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: .2rem; }

/* ---- Kaders: geen gekleurd vlak, alleen een balk links + label in kleur ----
   Drie soorten: wetenschap (met bron) · aandachtspunt/kader · eigen ervaring.
   Teal blijft voorbehouden aan navigatie. */
.callout {
  background: var(--soft); border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.3rem; margin: 1.4rem 0; font-size: .96rem;
}
.callout .c-label { font-weight: 700; color: var(--warn); }
.callout ul { margin: .5rem 0 0; }
.callout > *:last-child { margin-bottom: 0; }
.callout-wetenschap { border-left-color: var(--ok); }
.callout-wetenschap .c-label { color: var(--ok); }
.callout-ervaring { border-left-color: var(--exp); }
.callout-ervaring .c-label { color: var(--exp); }

/* ---- Tabellen ---- */
.table-scroll { overflow-x: auto; margin: 0 0 1.3rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 600; }

/* ---- Paginanavigatie: vorige en volgende, één regel boven een haarlijn ---- */
.pagenav {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin: 2.6rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.pagenav a { text-decoration: none; }
.pagenav a:hover { text-decoration: underline; }
.pagenav .pn-prev a { color: var(--muted); }
.pagenav .pn-next { margin-left: auto; text-align: right; font-weight: 700; }
@media (max-width: 560px) { .pagenav .pn-next { margin-left: 0; text-align: left; } }

/* ---- Begrippenlijst ---- */
.glossary dl { margin: 0 0 1.8rem; }
.glossary dt { font-weight: 700; color: var(--ink); margin-top: 1.1rem; position: relative; padding-left: 1.1rem; }
.glossary dt::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.glossary dd { margin: .2rem 0 0 1.1rem; }

/* ---- Bronvermelding (KATZ/BelRAI/wat-is-cbs) ---- */
.src { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.src br { content: ""; display: block; margin-top: .5rem; }
.small { font-size: .82rem; color: var(--muted); }

/* ---- Disclaimer-strip ---- */
.disclaimer { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.disclaimer .inner { max-width: 860px; margin: 0 auto; padding: .8rem 1.25rem; text-align: center; }

/* ---- Footer ---- */
.site-footer { background: var(--accent-dark); color: #cdd7e2; font-size: .9rem; margin-top: 2.6rem; }
.site-footer .inner { max-width: 860px; margin: 0 auto; padding: 1.8rem 1.25rem; }
.site-footer a { color: #eaf0f6; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: .9rem; }
.site-footer .foot-note { color: #94a9bf; font-size: .84rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route, .sheetcard { transition: none; }
  .route:hover, .sheetcard:hover { transform: none; }
}

@media print {
  .skip { display: none !important; }
}

.demo-banner {
  background: #7a3b2e; color: #fff; text-align: center; font-size: .84rem;
  padding: .4rem 1rem; letter-spacing: .02em;
}

/* ================================================================
   VOORSTEL — verwijzingssysteem (routekaart / hulpblad / duiding)
   Teal is uitsluitend navigatie. Drie niveaus:
   routekaart = wit + accentrand links · hulpblad = grijs vlak + printer
   duiding    = wit vlak + boek
   ================================================================ */
.cards { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c1 { grid-template-columns: 1fr; }
@media (max-width: 700px) { .cards, .cards.c3 { grid-template-columns: 1fr; } }

/* --- intro-/voorwoordblok: geen vlak, alleen haarlijnen ---
   Bewust lichter dan de kaders: dit is een terzijde, geen boodschap. */
.introbox { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin: 0 0 1.8rem; }
.introbox h2 { margin-top: 0; border-bottom: 0; padding-bottom: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.introbox p { color: var(--muted); font-size: .96rem; }
.introbox p:last-child { margin-bottom: 0; }

/* Terzijde in lopende tekst: zelfde vorm als het voorwoordblok, zonder kopje.
   Voor een kanttekening die inhoudelijk telt maar niet de hoofdlijn is. */
.aside { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 1.4rem 0; }
.aside p { color: var(--muted); font-size: .96rem; }
.aside p:first-child { margin-top: 0; }
.aside p:last-child { margin-bottom: 0; }

/* --- routekaart --- */
.route {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.15rem;
  text-decoration: none; color: var(--ink);
  transition: box-shadow .12s ease, transform .12s ease;
}
.route:hover { box-shadow: 0 4px 14px rgba(19,101,112,.15); transform: translateY(-2px); color: var(--ink); }
.route .r-step { font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.route .r-title { font-weight: 700; font-size: 1.06rem; color: var(--accent); margin: .1rem 0 .22rem; }
.route .r-desc { font-size: .9rem; color: var(--muted); }
.route--primary { background: var(--accent); border-color: var(--accent-dark); }
.route--primary .r-step { color: #cfe3e6; }
.route--primary .r-title, .route--primary .r-desc { color: #fff; }
.route--primary:hover { background: var(--accent-dark); color: #fff; }

/* --- hulpblad (printklaar document) --- */
.sheetcard {
  display: flex; gap: .65rem; align-items: flex-start; height: 100%;
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .95rem; text-decoration: none; color: var(--ink);
  transition: box-shadow .12s ease, transform .12s ease;
}
.sheetcard:hover { box-shadow: 0 4px 14px rgba(19,101,112,.12); transform: translateY(-2px); color: var(--ink); }

/* gedeeld door hulpblad + duiding */
.sheetcard .c-ico { flex: 0 0 auto; color: var(--accent); line-height: 0; margin-top: .18rem; }
.sheetcard .c-title { font-weight: 700; font-size: .95rem; color: var(--accent); display: block; margin-bottom: .12rem; }
.sheetcard .c-desc { font-size: .84rem; color: var(--muted); display: block; }

/* kopje boven een groep kaarten */
.cards-head { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin: 0 0 .15rem; }
.cards-intro { font-size: .9rem; color: var(--muted); margin: 0 0 .7rem; }
.cards-sep { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* --- duidingspagina's: lijst i.p.v. kaarten --- */
.refs { margin: 0 0 1rem; }
.refs ul { list-style: none; margin: 0; padding: 0; font-size: .94rem; }
.refs li { margin: 0; }
.refs a { display: flex; gap: .6rem; align-items: baseline; padding: .3rem 0; text-decoration: none; color: var(--ink); }
.refs a:hover .rf-title { text-decoration: underline; }
.refs .c-ico { flex: 0 0 auto; color: var(--accent); align-self: center; }
.refs .rf-title { font-weight: 700; color: var(--accent); }
.refs .rf-desc { color: var(--muted); font-size: .89rem; }
@media (max-width: 560px) { .refs a { flex-wrap: wrap; } .refs .rf-desc { flex-basis: 100%; padding-left: 1.2rem; } }

/* Werkgebied-label naast een h2 (28-09-2026): markeert een sectie die steunt op Belgische
   of Vlaamse regelgeving. Grijs en omlijnd, geen kader en geen teal — zie vormtaal. */
.scope { display: inline-block; margin-left: .55em; padding: 0 7px; border: 1px solid var(--line);
  border-radius: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; line-height: 1.7;
  text-transform: uppercase; color: var(--muted); vertical-align: middle; white-space: nowrap; }

/* Haarlijn tussen delen van een lopende tekst (Ons verhaal, 29-09-2026) — zelfde lijn als .cards-sep */
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
