/* =========================================================
   RegelRoute — stylesheet
   Eén systeem: tokens → basis → componenten → secties → pagina's.
   ========================================================= */

:root {
  /* Kleur */
  --navy: #1A2B4C;
  --navy-deep: #13213B;
  --navy-soft: #24395F;
  --coral: #E76F51;
  --coral-ink: #B4452A;        /* koraal voor tekst op licht (contrast AA) */
  --white: #FFFFFF;
  --cream: #F6F0E4;
  --paper: #F6F3EC;
  --paper-deep: #ECE5D6;
  --blue-pale: #E6ECF4;
  --ink: #1A2B4C;
  --ink-muted: #46587A;
  --on-navy: #F6F0E4;
  --on-navy-muted: #C5CEDD;
  --rule-light: rgba(26, 43, 76, 0.16);
  --rule-dark: rgba(246, 240, 228, 0.18);

  /* Typografie */
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.6rem, 4vw, 3.9rem);
  --fs-h1: clamp(2.4rem, 6vw, 5rem);
  --fs-h2: clamp(2.2rem, 5.2vw, 4.6rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.08rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-kicker: 0.75rem;

  /* Ruimte */
  --content: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 72px;

  /* Beweging */
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  background: var(--navy);
  color: var(--on-navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--coral); color: var(--navy-deep);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Papierkorrel over het marineblauw, sluit aan op de collagetextuur. */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
main, .site-footer { position: relative; z-index: 1; }

.wrap { width: min(var(--content), 100%); margin: 0 auto; padding-inline: var(--gutter); }

/* Ronde koraal punt na een zin. De "." blijft voor schermlezers staan. */
.dot { position: relative; display: inline-block; width: 0.16em; color: transparent; }
.dot::after {
  content: ""; position: absolute; left: 0.03em; bottom: 0.16em;
  width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--coral);
}

/* ---------- Typografische bouwstenen ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  color: var(--coral-ink);
  font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--coral); }
.on-navy .kicker { color: var(--coral); }

.display {
  font-family: var(--font-display);
  line-height: 0.96;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); line-height: 1.55; }

/* Accentwoord met een getekende koraalstreep eronder. */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em;
  overflow: visible; pointer-events: none;
}
.scribble path {
  fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  transition: stroke-dashoffset 900ms var(--ease-out) 250ms;
}
.is-visible .scribble path, .no-reveal .scribble path { stroke-dashoffset: 0; }

/* ---------- Knoppen (twee stijlen) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 14px 24px;
  border: 0; border-radius: 6px;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--coral); color: var(--navy-deep); box-shadow: 0 0 0 0 rgba(231,111,81,0); }
.btn-primary:hover { background: #EE7E62; box-shadow: 0 10px 28px -10px rgba(231,111,81,0.75); transform: translateY(-2px); }
.btn-primary:focus-visible { outline-color: var(--cream); }
.btn-start { min-height: 60px; padding: 16px 30px; font-size: 1.08rem; letter-spacing: 0.08em; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-line:hover { background: var(--cream); color: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--cream); }
.on-light .btn-line:hover { background: var(--navy); color: var(--cream); box-shadow: inset 0 0 0 2px var(--navy); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-med) var(--ease-out), color var(--t-fast) ease;
}
.text-link:hover { background-size: 100% 2px; }
.text-link svg { width: 16px; height: 16px; }

/* Statuslabels */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-demo { background: rgba(231,111,81,0.16); color: var(--coral-ink); }
.status-dev { background: rgba(26,43,76,0.07); color: var(--ink-muted); }
.on-navy .status-demo, .exercise .status-demo, .search .status-demo { background: rgba(231,111,81,0.2); color: #F59A82; }
.on-navy .status-dev, .search .status-dev { background: rgba(246,240,228,0.08); color: var(--on-navy-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 43, 76, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease, background var(--t-med) ease;
}
.site-header.is-scrolled { border-color: var(--rule-dark); background: rgba(19, 33, 59, 0.94); }
.header-inner {
  width: min(1360px, 100%); margin: 0 auto; padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex-shrink: 0; transition: transform var(--t-med) var(--ease-out); }
.logo:hover svg { transform: rotate(-6deg); }
.logo-word { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 28px); }
.nav-search { position: relative; width: clamp(150px, 16vw, 210px); }
.nav-search > svg { position: absolute; z-index: 1; left: 12px; top: 50%; width: 18px; height: 18px; color: var(--navy); transform: translateY(-50%); pointer-events: none; }
.nav-search input { width: 100%; min-height: 40px; padding: 8px 34px 8px 38px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.88rem; }
.nav-search input::placeholder { color: #6A7894; }
.nav-search input:focus { outline: 2px solid var(--coral); outline-offset: 2px; }
.nav-search-clear { position: absolute; z-index: 1; right: 2px; top: 1px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--navy); font-size: 1.3rem; cursor: pointer; }
.nav-search-results { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(330px, 80vw); display: grid; gap: 2px; padding: 6px; background: var(--navy-deep); border: 1px solid var(--rule-dark); box-shadow: 0 18px 30px rgba(8,14,28,0.35); }
.nav-search-results:empty { display: none; }
.nav-search-results .result { grid-template-columns: 1fr; padding: 10px 12px; }
.nav-search-results .result .status { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); }
.nav-link {
  position: relative; display: inline-block; padding: 10px 6px;
  color: var(--on-navy); font-weight: 600; font-size: 0.94rem; text-decoration: none; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-start { min-height: 44px; padding: 10px 18px; font-size: 0.9rem; letter-spacing: 0.08em; }
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; border: 1px solid var(--rule-dark); border-radius: 6px;
  color: var(--on-navy); font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 5px; }
.menu-icon span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .nav { gap: 8px; }
  .nav-search { width: clamp(130px, 27vw, 180px); }
  .nav-search input { min-height: 38px; padding-left: 34px; }
  .nav-search > svg { left: 10px; width: 16px; height: 16px; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--navy-deep); border-bottom: 1px solid var(--rule-dark);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,0.5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list li { border-bottom: 1px solid var(--rule-dark); }
  .nav-link { display: flex; justify-content: space-between; padding: 16px 0; font-size: 1.1rem; }
  .nav-link::after { left: 0; right: auto; width: 32px; bottom: 10px; }
}
@media (max-width: 420px) {
  .logo-word { font-size: 1.08rem; }
  .menu-toggle .menu-label { display: none; }
  .nav-start { padding-inline: 14px; }
  .nav-search { width: 38px; }
  .nav-search input { padding-inline: 0; color: transparent; cursor: pointer; }
  .nav-search input::placeholder { color: transparent; }
  .nav-search > svg { left: 10px; color: var(--navy); }
}

/* ---------- Weergaven en paginaovergang ---------- */
.view[hidden] { display: none; }
.view.is-entering { animation: view-in 420ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 800ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }

.section { position: relative; padding-block: var(--section-y); scroll-margin-top: var(--header-h); }
.on-light { background: var(--paper); color: var(--ink); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-deep { background: var(--navy-deep); color: var(--on-navy); }

/* Gescheurde papierrand bovenaan een lichte sectie. */
.torn-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px;
  background: inherit;
  clip-path: polygon(0 70%, 4% 40%, 9% 62%, 15% 30%, 21% 58%, 27% 36%, 33% 66%, 40% 28%, 46% 54%, 53% 22%, 59% 60%, 66% 34%, 72% 64%, 79% 30%, 85% 56%, 91% 26%, 96% 52%, 100% 34%, 100% 100%, 0 100%);
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-stage { position: relative; max-width: 1356px; margin: 0 auto; display: flex; flex-direction: column; }
.hero-text { position: relative; z-index: 2; padding: clamp(28px, 6vw, 48px) var(--gutter) 28px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 11vw, 3.6rem);
  line-height: 0.96; color: var(--cream);
  margin-bottom: 22px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: inline-block; animation: rise 900ms var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 90ms; }
.hero-title .line:nth-child(3) > span { animation-delay: 180ms; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-payoff {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 30px;
  color: var(--on-navy-muted); font-size: var(--fs-lead); font-weight: 500;
  animation: fade-up 800ms var(--ease-out) 300ms both;
}
.hero-payoff::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--coral); flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; animation: fade-up 800ms var(--ease-out) 420ms both; }
.hero-actions .text-link { color: var(--on-navy); font-size: 0.98rem; }
.hero-actions .text-link svg { transition: transform var(--t-med) var(--ease-out); }
.hero-actions .text-link:hover svg { transform: translateY(3px); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn-start .pulse {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(231,111,81,0.55);
  animation: pulse 2.8s ease-out 1.4s 2;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231,111,81,0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(231,111,81,0); } }

.hero-media { position: relative; width: 100%; aspect-ratio: 1 / 0.92; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 96% 30%;
  animation: hero-media-in 1200ms var(--ease-out) both;
}
@keyframes hero-media-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero-media::after { /* zachte overgang naar de volgende sectie */
  content: ""; position: absolute; inset: auto 0 0 0; height: 18%;
  background: linear-gradient(to bottom, rgba(26,43,76,0), rgba(26,43,76,0.35));
  pointer-events: none;
}

@media (min-width: 640px) and (max-width: 899px) {
  .hero-media { aspect-ratio: 16 / 10; }
  .hero-media img { object-position: 88% 30%; }
}
@media (min-width: 900px) {
  .hero-stage { aspect-ratio: 1356 / 764; display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); min-height: 560px; }
  .hero-media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .hero-media img { object-position: right top; }
  /* Tekst in het lege marineblauwe vlak linksboven; de collage begint
     linksonder rond 70% van de hoogte. */
  .hero-text {
    position: absolute; left: 0; top: 0; bottom: 30%;
    width: 48%; padding: 0 0 0 clamp(28px, 3.4vw, 56px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero-title { font-size: var(--fs-hero); margin-bottom: 26px; }
  .hero-payoff { margin-bottom: 36px; }
}
@media (min-width: 1356px) {
  .hero-text { padding-left: 48px; }
}

/* =========================================================
   2. DIT IS REGELROUTE
   ========================================================= */
.intro-grid { display: grid; gap: clamp(36px, 6vw, 72px); }
.intro-title { font-size: clamp(2.4rem, 6vw, 5.4rem); color: var(--ink); max-width: 12ch; }
.nowrap { white-space: nowrap; }
.intro-title .accent { color: var(--coral-ink); }
.intro-body { max-width: 34rem; color: var(--ink-muted); font-size: 1.08rem; line-height: 1.75; }
.intro-body p + p { margin-top: 20px; }
.intro-body .lead { color: var(--ink); font-weight: 500; font-size: var(--fs-lead); line-height: 1.6; }
.intro-turn {
  margin: 34px 0 30px;
  padding-left: 22px; border-left: 5px solid var(--coral);
  color: var(--ink); font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05;
}
@media (min-width: 860px) {
  .intro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
  .intro-body { padding-top: 14px; }
}

/* Zwart vlak op de plek van een beeld dat nog volgt. */
.media-placeholder { display: block; width: 100%; height: 100%; background: #000; }

/* =========================================================
   3. THEMA'S + ZOEKEN
   ========================================================= */
.themes { padding-top: 0; }
.themes-inner { border-top: 1px solid var(--rule-light); padding-top: clamp(64px, 8vw, 112px); }
#ontdek { padding-bottom: clamp(64px, 8vw, 112px); }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { max-width: 15ch; }
.section-head .lead { max-width: 30rem; color: var(--ink-muted); }
.on-navy .section-head .lead, .on-deep .section-head .lead { color: var(--on-navy-muted); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 48px; }
}

/* Zoekfunctie */
.search { position: relative; margin-bottom: clamp(56px, 7vw, 96px); padding: clamp(24px, 3vw, 36px); background: var(--navy); color: var(--on-navy); border-radius: 4px; }
.search::after { /* koraal hoekje, collagedetail */
  content: ""; position: absolute; right: -10px; top: -10px; width: 64px; height: 22px;
  background: var(--coral); transform: rotate(8deg); opacity: 0.9;
}
.search-label { display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.05; color: var(--cream); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 18px; width: 22px; height: 22px; color: var(--navy); pointer-events: none; }
.search-input {
  width: 100%; min-height: 60px; padding: 14px 52px 14px 52px;
  border: 2px solid transparent; border-radius: 4px;
  background: var(--paper); color: var(--ink); font-size: 1.08rem;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.search-input::placeholder { color: #6A7894; }
.search-input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(231,111,81,0.25); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 8px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--navy);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.search-clear:hover { background: rgba(26,43,76,0.08); }
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-small); color: var(--on-navy-muted); }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--rule-dark); border-radius: 999px; background: transparent;
  color: var(--on-navy); font-size: 0.86rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.chip:hover { border-color: var(--coral); background: rgba(231,111,81,0.12); }
.on-light .chip, .page-body .chip { border-color: var(--rule-light); color: var(--ink); }
.on-light .chip:hover, .page-body .chip:hover { border-color: var(--coral); background: rgba(231,111,81,0.1); }
.on-light .search .chip { border-color: var(--rule-dark); color: var(--on-navy); }
.on-light .search .chip:hover { border-color: var(--coral); background: rgba(231,111,81,0.14); }
.search-status { margin-top: 18px; font-size: var(--fs-small); color: var(--on-navy-muted); }
.search-status:empty { display: none; }
.search-results { display: grid; gap: 2px; margin-top: 12px; }
.search-results:empty { display: none; }
.result {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 14px 16px; border-radius: 4px;
  background: rgba(246,240,228,0.05); text-decoration: none;
  transition: background var(--t-fast) ease;
}
.result:hover, .result:focus-visible { background: rgba(246,240,228,0.12); }
.result-type { grid-column: 1; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-muted); }
.result-title { grid-column: 1; font-weight: 700; font-size: 1.04rem; color: var(--white); }
.result-title mark { background: none; color: #F59A82; }
.result .status { grid-column: 2; grid-row: 1 / span 2; }
.result-note { grid-column: 1 / -1; font-size: 0.84rem; color: var(--on-navy-muted); }

/* Themagrid: zes redactionele ingangen */
.theme-grid { display: grid; gap: 28px 24px; }
.theme-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; color: var(--ink); text-decoration: none; }
.theme-figure {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  isolation: isolate;
}
.theme-figure .media-placeholder { width: 90%; height: 82%; }
.theme-figure img, .theme-figure .media-placeholder {
  object-fit: contain;
  transform: rotate(var(--tilt, 1.5deg));
  filter: drop-shadow(0 14px 18px rgba(26,43,76,0.18));
  transition: transform 600ms var(--ease-out), filter 600ms var(--ease-out);
}
.theme-card:nth-child(even) .theme-figure { --tilt: -1.5deg; --tilt-bg: 2.5deg; }
.theme-figure img { width: 100%; height: 100%; }
.theme-card:hover .theme-figure > :first-child, .theme-card:focus-visible .theme-figure > :first-child { transform: rotate(0deg) scale(1.04); filter: drop-shadow(0 22px 26px rgba(26,43,76,0.26)); }
.theme-meta { display: flex; align-items: baseline; gap: 14px; }
.theme-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--coral-ink); }
.theme-title {
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1;
  background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 3px no-repeat;
  padding-bottom: 4px;
  transition: background-size 500ms var(--ease-out);
}
.theme-card:hover .theme-title, .theme-card:focus-visible .theme-title { background-size: 100% 3px; }
.theme-lead { color: var(--ink-muted); font-size: 1rem; line-height: 1.55; max-width: 36ch; }
.theme-topics { font-size: var(--fs-small); color: var(--ink-muted); }
.theme-topics strong { color: var(--ink); font-weight: 700; }
.theme-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font-weight: 800; font-size: 0.92rem; color: var(--ink);
}
.theme-go svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.theme-card:hover .theme-go svg { transform: translateX(5px); }
.theme-card:focus-visible { outline-offset: 8px; }

@media (max-width: 639px) {
  .theme-card { grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 0 18px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-light); }
  .theme-card:last-child { border-bottom: 0; }
  .theme-figure { grid-row: 1 / span 4; }
  .theme-lead { display: none; }
  .theme-title { font-size: 1.3rem; }
}
@media (min-width: 640px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; }
  .theme-card:nth-child(even) { margin-top: 56px; }
}
@media (min-width: 1040px) {
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px 40px; }
  .theme-card:nth-child(even) { margin-top: 0; }
  .theme-card:nth-child(3n+2) { margin-top: 72px; }
}

/* =========================================================
   5. ZO WERKT REGELROUTE
   ========================================================= */
/* Volgt direct op de intro (zelfde ondergrond): scheiding met een lijn, net als de thema's. */
.how { padding-block: 0 clamp(64px, 8vw, 112px); }
.how > .wrap > .section-head { border-top: 1px solid var(--rule-light); padding-top: clamp(64px, 8vw, 112px); }
.how .h2 { max-width: 14ch; }
.how-steps { position: relative; display: grid; gap: 48px; }
/* doorlopende lijn: ::before is het spoor, ::after de koraal voortgang */
.how-steps::before, .how-steps::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--rule-light); }
.how-steps::after { background: var(--coral); transform-origin: top; transform: scaleY(0); transition: transform 1600ms var(--ease-out) 200ms; }
.how-steps.is-visible::after { transform: none; }
.how-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 24px; }
.how-marker {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--coral);
  font-family: var(--font-display); color: var(--coral-ink); font-size: 1rem;
  transition: background 400ms ease, color 400ms ease;
}
.how-steps.is-visible .how-step .how-marker { background: var(--coral); color: var(--navy-deep); }
.how-steps.is-visible .how-step:nth-child(2) .how-marker { transition-delay: 700ms; }
.how-steps.is-visible .how-step:nth-child(3) .how-marker { transition-delay: 1300ms; }
.how-step h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1; margin: 6px 0 14px; color: var(--ink); }
.how-step p { color: var(--ink-muted); max-width: 30ch; }
.how-detail { margin-top: 22px; }
/* kleine illustratieve details per stap */
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span { padding: 5px 10px; background: var(--white); border: 1px solid var(--rule-light); font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.mini-chips span:first-child { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.mini-doc { width: 176px; padding: 14px 16px; background: var(--white); box-shadow: 6px 6px 0 var(--paper-deep); transform: rotate(-2deg); }
.mini-doc b { display: block; margin-bottom: 8px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.mini-doc i { display: block; height: 6px; margin-top: 7px; background: var(--blue-pale); border-radius: 3px; }
.mini-doc i:nth-child(3) { width: 80%; }
.mini-doc i:nth-child(4) { width: 60%; background: rgba(231,111,81,0.45); }
.mini-check { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.mini-check span { display: inline-flex; align-items: center; gap: 8px; }
.mini-check span::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; flex-shrink: 0; }
.mini-check span.is-checked::before { background: var(--coral) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2313213B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; border-color: var(--coral); }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .how-steps::before, .how-steps::after { left: 28px; right: calc(33.333% - 28px); top: 27px; bottom: auto; width: auto; height: 2px; }
  .how-steps::after { transform-origin: left; transform: scaleX(0); }
  .how-step { grid-template-columns: 1fr; }
  .how-marker { margin-bottom: 26px; }
}
.how-note {
  display: grid; gap: 14px 28px; align-items: start;
  margin-top: clamp(64px, 7vw, 96px); padding: clamp(24px, 3vw, 36px);
  background: var(--white); border-left: 5px solid var(--navy);
}
.how-note h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; color: var(--ink); }
.how-note p { color: var(--ink-muted); font-size: 0.98rem; }
.how-note svg { width: 32px; height: 32px; color: var(--coral-ink); }
@media (min-width: 760px) { .how-note { grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* =========================================================
   ONZE INFORMATIEBRONNEN
   Prikbord op marineblauw: gescheurde papiertjes met koraal tape,
   dezelfde beeldtaal als de collages. Tekst, geen logo's of badges.
   ========================================================= */
.sources-intro { display: grid; gap: 14px; max-width: 32rem; color: var(--on-navy-muted); line-height: 1.65; }
.sources-intro p:first-child { color: var(--cream); font-size: var(--fs-lead); line-height: 1.55; }

.board {
  display: grid; gap: 44px 28px;
  margin-top: clamp(12px, 2vw, 24px); padding: 0; list-style: none;
}
.note { position: relative; transform: rotate(var(--r, -1.2deg)); transition: transform 500ms var(--ease-out); }
.note:nth-child(3n+2) { --r: 1.4deg; }
.note:nth-child(3n) { --r: -0.6deg; }
.note:nth-child(even) .note-tape { left: auto; right: 18%; transform: rotate(4deg); }
.note:hover, .note:focus-within { transform: rotate(0deg) translateY(-6px); z-index: 2; }

/* koraal tape over de bovenrand */
.note-tape {
  position: absolute; z-index: 2; top: -11px; left: 16%;
  width: 84px; height: 24px;
  background: rgba(231, 111, 81, 0.88);
  transform: rotate(-5deg);
  clip-path: polygon(3% 0, 97% 6%, 100% 30%, 96% 55%, 100% 82%, 95% 100%, 4% 94%, 0 70%, 4% 46%, 0 20%);
}

/* het papier zelf, met gescheurde randen */
.note-paper {
  position: relative; display: grid; align-content: start; gap: 10px;
  min-height: 100%; padding: 30px 26px 24px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.65), transparent 60%),
    var(--cream);
  color: var(--ink); text-decoration: none;
  clip-path: polygon(0 1.5%, 6% 0, 14% 1.8%, 23% 0.4%, 33% 2%, 44% 0.2%, 55% 1.6%, 66% 0, 77% 1.9%, 88% 0.5%, 100% 1.4%, 99.2% 22%, 100% 47%, 99% 73%, 100% 98.6%, 90% 100%, 79% 98.4%, 67% 99.8%, 55% 98.2%, 43% 100%, 31% 98.6%, 19% 99.7%, 8% 98.3%, 0 99.4%, 0.9% 74%, 0 49%, 0.8% 24%);
  filter: drop-shadow(0 0 0 transparent);
}
.note::after { /* schaduw buiten de clip-path */
  content: ""; position: absolute; inset: 8px -2px -10px 6px; z-index: -1;
  background: rgba(8, 14, 28, 0.42); filter: blur(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.note:hover::after { transform: translateY(8px); opacity: 0.85; }

.note-kind {
  justify-self: start;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
}
.note-onafhankelijk .note-kind { color: var(--coral-ink); }
.note-topic {
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.02; color: var(--navy);
  text-wrap: balance;
}
.note-source { display: grid; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(26,43,76,0.22); }
.note-via { font-size: 0.82rem; color: var(--ink-muted); }
.note-name {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.2rem; font-weight: 800; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.note-name svg { width: 15px; height: 15px; color: var(--coral-ink); transition: transform var(--t-med) var(--ease-out); }
.note-paper:hover .note-name svg { transform: translate(2px, -2px); }
.note-domain { font-size: 0.8rem; color: #5D6B86; }
.note-paper:focus-visible { outline: none; }
.note:focus-within .note-paper { box-shadow: inset 0 0 0 4px var(--coral); background: var(--white); }

.sources-note {
  display: flex; gap: 10px; align-items: baseline;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--rule-dark);
  color: var(--on-navy-muted); font-size: var(--fs-small);
}
.sources-note::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); transform: translateY(-1px); }

@media (min-width: 600px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
  .note:nth-child(3n+2) { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .note { transform: none; } }

/* Bronnen van één les (onderwerppagina) */
.lesson-sources { margin-top: 40px; max-width: 44rem; }
.lesson-sources h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.lesson-sources li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.lesson-sources .text-link { justify-self: start; color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; background: none; }
.lesson-sources .text-link svg { width: 14px; height: 14px; }
.lesson-source-meta { font-size: var(--fs-small); color: var(--ink-muted); }
.lesson-sources li p { font-size: 0.95rem; color: var(--ink-muted); }
.lesson-sources-note { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-muted); }

/* =========================================================
   6. VOOR SCHOLEN
   ========================================================= */
.schools-grid { display: grid; gap: 48px; }
.schools .h2 { max-width: 13ch; color: var(--cream); }
.schools-text { display: grid; gap: 20px; max-width: 36rem; color: var(--on-navy-muted); font-size: 1.05rem; line-height: 1.7; }
.schools-text .btn { justify-self: start; margin-top: 12px; color: var(--cream); }
.schools-pillars { display: grid; gap: 0; border-top: 1px solid var(--rule-dark); }
.schools-pillars li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule-dark); }
.schools-pillars b { font-family: var(--font-display); font-weight: 400; color: var(--coral); }
.schools-pillars strong { display: block; color: var(--cream); font-size: 1.08rem; margin-bottom: 4px; }
.schools-pillars span { color: var(--on-navy-muted); font-size: 0.95rem; }
.concept-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--on-navy-muted); font-size: var(--fs-small); }
.concept-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
@media (min-width: 900px) { .schools-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 8vw; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); border-top: 1px solid var(--rule-dark); }
.footer-inner { display: grid; gap: 40px; padding-block: 64px 40px; }
.footer-brand p { margin-top: 14px; max-width: 26ch; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; color: var(--cream); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { margin-bottom: 14px; font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy); }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { color: var(--on-navy-muted); text-decoration: none; font-size: 0.95rem; }
.footer-cols a:hover { color: var(--coral); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px 40px; border-top: 1px solid var(--rule-dark); font-size: 0.82rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } }

/* =========================================================
   SUBPAGINA'S (thema, situatie, onderwerp, onderwijs)
   Navy kop met beeld, lichte leesbody.
   ========================================================= */
.page-head { position: relative; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); background: var(--navy); color: var(--on-navy); overflow: hidden; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: clamp(28px, 4vw, 48px); font-size: var(--fs-small); color: var(--on-navy-muted); }
.breadcrumb a { color: var(--on-navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral); text-decoration: underline; }
.breadcrumb [aria-hidden] { opacity: 0.5; }
.page-head-grid { display: grid; gap: 40px; align-items: center; }
.page-head h1 { font-size: var(--fs-h1); color: var(--cream); max-width: 14ch; margin-bottom: 22px; }
.page-head .lead { color: var(--on-navy-muted); max-width: 34rem; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; font-size: var(--fs-small); color: var(--on-navy-muted); }
.page-head .meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-head .meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.page-figure { position: relative; justify-self: center; width: min(100%, 520px); }
.page-figure img { width: 100%; height: auto; transform: rotate(-1.5deg); filter: drop-shadow(0 24px 30px rgba(0,0,0,0.35)); }
.page-figure.is-photo img { transform: rotate(1.5deg); }
.page-figure .media-placeholder { aspect-ratio: 4 / 3; transform: rotate(-1.5deg); box-shadow: 0 24px 40px -12px rgba(0,0,0,0.45); }
.page-figure.is-photo .media-placeholder { transform: rotate(1.5deg); }
@media (min-width: 900px) { .page-head-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; } }

/* Voor ouders */
.parents-head h1 { max-width: 18ch; }
.page-body.parents-body { min-height: 60vh; background: var(--navy); color: var(--on-navy); }
.parents-intro { max-width: 48rem; margin-bottom: 32px; }
.parents-intro h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--cream); margin: 8px 0 14px; }
.parents-intro .sub { color: var(--on-navy-muted); max-width: 40rem; }
.parent-phase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
.parent-phase-tab { min-height: 58px; padding: 12px 10px; background: rgba(246,240,228,0.06); border: 1px solid var(--rule-dark); border-bottom: 3px solid var(--coral); color: var(--on-navy); font: inherit; font-weight: 800; cursor: pointer; transition: background var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease; }
.parent-phase-tab:hover { transform: translateY(-2px); }
.parent-phase-tab.is-active { background: var(--coral); color: var(--navy-deep); border-color: var(--coral); }
.parent-phase-panel { padding: clamp(24px, 4vw, 48px); background: var(--navy-deep); border: 1px solid var(--rule-dark); border-top: 5px solid var(--coral); box-shadow: 0 18px 34px rgba(8,14,28,0.24); animation: view-in 320ms var(--ease-out) both; }
.parent-phase-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
.parent-phase-number { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--coral); }
.parent-age { margin-bottom: 6px; color: var(--coral); font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.parent-phase-heading h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; color: var(--cream); }
.parent-phase-grid { display: grid; gap: 30px; }
.parent-phase-grid h4 { margin-bottom: 10px; color: var(--cream); font-size: 1.05rem; }
.parent-phase-grid p, .parent-list { color: var(--on-navy-muted); }
.parent-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.parent-topics .chip { border-color: var(--rule-dark); color: var(--on-navy); }
.parent-topics .chip:hover { border-color: var(--coral); background: rgba(231,111,81,0.16); }
.parent-list { display: grid; gap: 9px; }
.parent-list li { position: relative; padding-left: 20px; }
.parent-list li::before { content: ""; position: absolute; top: 0.68em; left: 0; width: 9px; height: 3px; background: var(--coral); }
.parent-questions li::before { width: 7px; height: 7px; border-radius: 50%; top: 0.55em; }
.parents-note { display: flex; align-items: flex-start; gap: 10px; max-width: 48rem; margin: 28px 0 0; color: var(--on-navy-muted); font-size: var(--fs-small); }
.parents-note svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--coral); }
@media (min-width: 760px) { .parent-phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; } }
@media (max-width: 560px) { .parent-phase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .parent-phase-tab { min-height: 52px; } }

.page-body { background: var(--paper); color: var(--ink); padding-block: clamp(56px, 7vw, 104px); }
.page-body.torn-top::before { top: -17px; }
.page-section + .page-section { margin-top: clamp(56px, 7vw, 88px); }
.page-section > h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; margin-bottom: 10px; color: var(--ink); }
.page-section > .sub { color: var(--ink-muted); margin-bottom: 28px; max-width: 40rem; }
.page-columns { display: grid; gap: 48px; }
.page-columns > * { min-width: 0; }
@media (min-width: 960px) { .page-columns { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 72px; } }

/* Genummerde onderwerpenlijst */
.topic-list { border-top: 2px solid var(--ink); counter-reset: topic; }
.topic-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--rule-light);
  color: var(--ink); text-decoration: none;
  transition: background var(--t-fast) ease, padding var(--t-med) var(--ease-out);
}
.topic-row::before { counter-increment: topic; content: counter(topic, decimal-leading-zero); font-family: var(--font-display); font-size: 0.86rem; color: var(--coral-ink); }
.topic-row:hover, .topic-row:focus-visible { background: var(--white); padding-left: 14px; }
.topic-row-title { min-width: 0; font-weight: 700; font-size: 1.08rem; line-height: 1.3; overflow-wrap: anywhere; }
.topic-row-arrow { display: none; }
@media (min-width: 560px) {
  .topic-row { grid-template-columns: 52px 1fr auto 20px; }
  .topic-row-arrow { display: block; width: 18px; height: 18px; color: var(--ink-muted); transition: transform var(--t-med) var(--ease-out), color var(--t-fast); }
  .topic-row:hover .topic-row-arrow { transform: translateX(4px); color: var(--coral-ink); }
}

.aside-block { padding: 26px; background: var(--white); border-top: 4px solid var(--coral); }
.aside-block + .aside-block { margin-top: 20px; }
.aside-block h2 { font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.aside-block p { color: var(--ink-muted); font-size: 0.95rem; }
.aside-block .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-block .text-link { margin-top: 14px; color: var(--ink); }

.dev-panel { display: grid; gap: 12px; padding: clamp(24px, 3vw, 36px); background: var(--white); border-left: 5px solid var(--coral); max-width: 44rem; }
.dev-panel h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: var(--ink); }
.dev-panel p { color: var(--ink-muted); }
.topic-summary { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); max-width: 40rem; margin-bottom: 32px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--rule-light); }
.pager a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager small { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.pager strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.05; }
.pager a:hover strong { color: var(--coral-ink); }

/* Oefening: loonstrook (fictieve gegevens) */
.exercise { display: grid; gap: 28px; padding: clamp(22px, 3vw, 36px); background: var(--navy); color: var(--on-navy); border-radius: 4px; }
@media (min-width: 720px) { .exercise { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.exercise-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.exercise-head h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.05; color: var(--cream); }
.payslip-demo { background: var(--paper-deep); color: var(--navy-deep); padding: 20px; transform: rotate(-1deg); box-shadow: 8px 8px 0 var(--coral); }
.payslip-demo-title { font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.payslip-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px; font-size: 0.95rem; border-bottom: 1px solid rgba(26,43,76,0.14); }
.payslip-row.is-marked { background: rgba(231,111,81,0.2); border-bottom: none; font-weight: 700; outline: 2px solid var(--coral); outline-offset: -2px; }
.exercise-prompt { margin-bottom: 14px; font-size: 1.05rem; color: var(--white); }
.exercise-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.exercise-option {
  min-height: 48px; padding: 12px 20px;
  background: rgba(246,240,228,0.06); border: 1px solid var(--rule-dark); border-radius: 4px;
  color: var(--white); font-weight: 700; cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}
.exercise-option:hover:not(:disabled) { background: rgba(246,240,228,0.14); border-color: var(--cream); }
.exercise-option:disabled { cursor: default; opacity: 0.6; }
.exercise-option.is-correct { background: rgba(94,173,110,0.25); border-color: #5EAD6E; opacity: 1; }
.exercise-option.is-incorrect { background: rgba(231,111,81,0.2); border-color: var(--coral); opacity: 1; }
.exercise-feedback { min-height: 1.6em; margin-bottom: 10px; color: var(--on-navy-muted); }
.exercise-retry { background: none; border: 0; padding: 6px 0; color: var(--coral); font-weight: 700; cursor: pointer; }
.exercise-disclaimer { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--rule-dark); font-size: 0.82rem; color: var(--on-navy-muted); }

/* Onderwijspagina */
.edu-grid { display: grid; gap: 20px; }
.edu-card { padding: 26px; background: var(--white); border-top: 4px solid var(--navy); }
.edu-card b { display: block; font-family: var(--font-display); font-weight: 400; color: var(--coral-ink); margin-bottom: 10px; }
.edu-card h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; margin-bottom: 8px; color: var(--ink); }
.edu-card p { color: var(--ink-muted); font-size: 0.98rem; }
@media (min-width: 760px) { .edu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plain-list { display: grid; gap: 10px; max-width: 44rem; }
.plain-list li { position: relative; padding-left: 26px; color: var(--ink-muted); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 3px; background: var(--coral); }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================================================
   LEVENSKOMPAS (aparte ervaring)
   ========================================================= */
.compass { min-height: calc(100vh - var(--header-h)); padding-block: clamp(20px, 3vw, 36px) clamp(56px, 7vw, 96px); background: var(--navy); color: var(--on-navy); overflow: hidden; }
.compass-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-navy); font-weight: 700; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.back-link:hover { color: var(--coral); }
.back-link:hover svg { transform: translateX(-4px); }
.compass-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 28px; margin-bottom: 18px; }
.compass-intro h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); color: var(--cream); }
.compass-intro p { max-width: 22rem; color: var(--on-navy-muted); }
.compass-stage-wrap { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 12px; align-items: center; }
.compass-stage { position: relative; min-height: clamp(280px, 46vw, 560px); display: grid; place-items: center; }
.compass-stage::before, .compass-stage::after { content: ""; position: absolute; border: 1px solid rgba(246,240,228,0.16); border-radius: 50%; pointer-events: none; }
.compass-stage::before { width: 86%; aspect-ratio: 1; }
.compass-stage::after { width: 66%; aspect-ratio: 1; border-color: rgba(231,111,81,0.38); }
.compass-orbit { position: relative; z-index: 1; width: min(96%, 800px); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.compass-orbit::before { content: ""; position: absolute; inset: 7% 12%; border: 1px dashed rgba(246,240,228,0.3); transform: rotate(-7deg); }
.compass-collage { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0,0,0,0.28)); transition: transform 320ms var(--ease-out), opacity 200ms ease; }
.compass-collage.is-changing { opacity: 0; transform: translateX(calc(var(--slide-dir, 1) * -70px)) rotate(calc(var(--slide-dir, 1) * -4deg)) scale(0.94); transition-duration: 150ms; transition-timing-function: ease-in; }
.compass-collage.is-entering { opacity: 0; transform: translateX(calc(var(--slide-dir, 1) * 70px)) rotate(calc(var(--slide-dir, 1) * 4deg)) scale(0.94); transition: none; }
.compass-paper { position: absolute; z-index: 2; padding: 9px 12px; background: var(--paper); color: var(--navy); font-size: 0.74rem; font-weight: 800; line-height: 1.1; box-shadow: 6px 6px 0 var(--coral); transform: rotate(-7deg); transition: transform 320ms var(--ease-out), opacity 180ms ease; }
.compass-paper.one { top: 6%; left: 4%; }
.compass-paper.two { right: 3%; bottom: 10%; transform: rotate(6deg); }
.compass-stage.is-changing .compass-paper.one { opacity: 0; transform: translate(-28px, -18px) rotate(-18deg); }
.compass-stage.is-changing .compass-paper.two { opacity: 0; transform: translate(30px, 18px) rotate(18deg); }
.compass-arrow { position: relative; z-index: 3; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(246,240,228,0.32); border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer; transition: border-color var(--t-fast) ease, color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) ease; }
.compass-arrow svg { width: 20px; height: 20px; }
.compass-arrow:hover { border-color: var(--coral); color: var(--coral); background: rgba(231,111,81,0.1); }
.compass-arrow:active { transform: scale(0.94); }
.compass-nav { display: flex; justify-content: center; gap: 8px; margin: 4px auto 28px; }
.compass-tab { position: relative; min-width: 96px; min-height: 52px; padding: 10px 10px 12px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: transparent; color: rgba(246,240,228,0.6); font-size: 0.82rem; font-weight: 800; cursor: pointer; transition: color var(--t-fast) ease, border-color var(--t-fast) ease; }
.compass-tab::before { content: attr(data-number); display: block; margin-bottom: 4px; color: rgba(246,240,228,0.4); font-size: 0.68rem; }
.compass-tab:hover, .compass-tab.is-active { color: var(--cream); }
.compass-tab.is-active { border-color: var(--coral); }
.compass-tab.is-active::before { color: var(--coral); }
.compass-content { display: grid; gap: 32px; padding-top: 30px; border-top: 1px solid var(--rule-dark); }
.compass-age { display: block; margin-bottom: 12px; color: var(--coral); font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.compass-content h2 { margin-bottom: 14px; color: var(--white); font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 0.98; }
.compass-description { max-width: 34rem; color: var(--on-navy-muted); }
.compass-principle { display: flex; gap: 12px; margin-top: 22px; max-width: 34rem; font-size: var(--fs-small); color: var(--on-navy-muted); }
.compass-principle svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--coral); margin-top: 2px; }
.compass-list-title { margin-bottom: 12px; font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy); }
.compass-topics { display: grid; gap: 2px; }
.compass-topic { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(246,240,228,0.05); color: var(--cream); text-decoration: none; font-weight: 600; transition: background var(--t-fast) ease, padding var(--t-med) var(--ease-out); }
.compass-topic:hover, .compass-topic:focus-visible { background: rgba(246,240,228,0.12); padding-left: 20px; }
.compass-situations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.compass-more { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.compass-more .text-link { color: var(--cream); }
.compass-content > * { min-width: 0; }
.compass-topic span:first-child { min-width: 0; }
@media (min-width: 860px) { .compass-content { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; } .compass-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .compass-stage-wrap { grid-template-columns: 1fr; }
  .compass-arrow { position: absolute; z-index: 4; top: 50%; width: 44px; height: 44px; margin-top: -22px; background: rgba(19,33,59,0.78); }
  #compassPrevious { left: -6px; }
  #compassNext { right: -6px; }
  .compass-paper { font-size: 0.64rem; padding: 7px 9px; }
  .compass-nav { justify-content: space-between; gap: 2px; }
  .compass-tab { min-width: 0; flex: 1; }

}

/* ---------- Beweging beperken ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
