/* 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: #8a5a00;
  --warn-soft: #fbf3e2;
  --ok: #2e6b3e;
  --ok-soft: #e9f3ec;
  --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; }
.wrap-wide { max-width: 860px; 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 hero ---- */
.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; }
.hero .frontdoor { max-width: none; margin: 1.5rem 0 1.1rem; }
.hero .tasks { max-width: none; margin: 0; }

/* Voordeur-kaart */
.frontdoor {
  display: block; max-width: 600px; margin: 0 auto 1.6rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: var(--radius); padding: 1.05rem 1.35rem;
  transition: background .12s ease;
}
.frontdoor:hover { background: var(--accent-dark); color: #fff; }
.frontdoor .fd-title { font-size: 1.2rem; font-weight: 700; }
.frontdoor .fd-sub { opacity: .93; font-size: .95rem; }
.frontdoor .fd-arrow { float: right; font-size: 1.4rem; line-height: 1.2; }

/* Taakknoppen */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; max-width: 820px; margin: 0 auto; }
.task {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.15rem 1.15rem; text-decoration: none; color: var(--ink);
  transition: box-shadow .12s ease, transform .12s ease;
}
.task:hover { box-shadow: 0 4px 14px rgba(31,117,143,.18); transform: translateY(-2px); color: var(--ink); }
.task .t-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .2rem; color: var(--accent); }
.task .t-desc { font-size: .9rem; color: var(--muted); }
.task .t-arrow { margin-top: auto; padding-top: .7rem; color: var(--accent); font-weight: 700; font-size: .9rem; }

@media (max-width: 680px) {
  .tasks { grid-template-columns: 1fr; }
  .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; }

/* ---- Samenvatting (zoals .box) ---- */
.summary {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.35rem; margin: 0 0 1.8rem;
}
.summary h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; }

/* ---- Callout (zoals .warn) ---- */
.callout {
  background: var(--warn-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); }

/* ---- 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; }

/* ---- Volgende stap (zoals .box) ---- */
.nextstep {
  display: block; background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: .95rem 1.3rem; margin: 2.3rem 0 0;
  text-decoration: none; color: var(--ink);
}
.nextstep:hover { color: var(--ink); background: #d7e7ec; }
.nextstep .ns-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nextstep .ns-title { font-weight: 700; font-size: 1.05rem; color: var(--accent); }

/* ---- Hulpmiddel / download (visueel anders dan 'volgende stap') ---- */
.resource {
  display: flex; align-items: center; gap: .9rem;
  background: var(--surface); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: .85rem 1.2rem; margin: 1.6rem 0;
  text-decoration: none; color: var(--ink);
}
.resource:hover { background: var(--accent-soft); color: var(--ink); }
.resource .r-icon { font-size: 1.5rem; line-height: 1; }
.resource .r-body { display: flex; flex-direction: column; }
.resource .r-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.resource .r-title { font-weight: 700; color: var(--accent); }

/* ---- Hulpbladen-lijst: printbare documenten, één vast icoon, geen bullets (ongebruikt) ---- */
.doc-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.doc-list li { margin: 0 0 .5rem; }
.doc-list .doc-icon { margin-right: .45em; }

/* ---- Hulpblad-knoppen: compacte kaartjes naast elkaar (homepage) ---- */
.doc-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 0 0 1.4rem; }
.doc-btn {
  display: flex; flex-direction: column; background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; text-decoration: none; color: var(--ink);
  transition: box-shadow .12s ease, transform .12s ease;
}
.doc-btn:hover { background: var(--surface-alt); box-shadow: 0 4px 14px rgba(31,117,143,.12); transform: translateY(-2px); color: var(--ink); }
.doc-btn .db-title { font-weight: 700; font-size: .95rem; color: var(--accent); margin-bottom: .2rem; }
.doc-btn .db-desc { font-size: .82rem; color: var(--muted); }

@media (max-width: 680px) {
  .doc-buttons { grid-template-columns: 1fr; }
}

/* ---- 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 { ... }

/* ---- 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: #8ba0b6; font-size: .84rem; }

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