/* ==========================================================================
   TheorieDelft — public site
   Dutch road signage, taken seriously:
   - Overpass is a descendant of the highway lettering on Dutch/US signs; it is
     used the way signs use it: heavy, tight, unmistakable.
   - Route-sign blue plates carry dates; the white inset border of a real sign.
   - Road-number shields carry seat counts: yellow N-road shield = places left,
     red A-road shield = almost full.
   - Steps are hectometre posts along a road whose centre line draws itself.
   - Haaientanden (give-way triangles) mark the edge of the dark "asphalt".
   Signal amber is reserved for things you can act on.
   ========================================================================== */

@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #0f1f38;      /* asphalt at night: hero, page heads, footer */
  --night-2: #182d4f;
  --ink: #14284a;        /* text */
  --ink-2: #33496d;
  --muted: #56667f;
  --on-night: #c7d3e6;   /* body text on --night */
  --amber: #f7a70d;      /* signal amber: actions only */
  --amber-hover: #ffb92e;
  --sign: #0f4c8a;       /* route-sign blue */
  --sign-2: #0b3d70;
  --sign-tint: #eaf1f9;
  --shield-n: #f5c400;   /* N-road shield */
  --shield-a: #c4161c;   /* A-road shield */
  --hecto: #11704a;      /* hectometre post green */
  --fog: #eef2f7;
  --road: var(--fog);
  --line: #d5dbe5;
  --paper: #ffffff;
  --red: #b3192f;
  --green: #1d6f47;
  --wa: #177a41;

  --font: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* type scale: major third, fluid at the top */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.85rem, 1.35rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.4vw, 3.6rem);
  --step-5: clamp(2.7rem, 1.3rem + 5vw, 5.1rem);

  --radius: 12px;
  --radius-small: 8px;
  --gutter: 16px;
  --wrap: 1200px;
  --section: clamp(3.25rem, 2rem + 4.5vw, 6rem);
  --shadow: 0 1px 2px rgb(15 31 56 / 0.08), 0 10px 30px -14px rgb(15 31 56 / 0.3);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);

  interpolate-size: allow-keywords; /* lets <details> animate to height: auto */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html.search-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.08; font-weight: 850; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.024em; }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
a { color: var(--sign); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 0.15s; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
strong { font-weight: 750; }
small { font-size: 0.85em; }
s { color: var(--muted); }
kbd { font: inherit; font-size: 0.78em; font-weight: 700; padding: 0.1em 0.45em; border-radius: 5px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); }
mark { background: #ffe7a6; color: inherit; border-radius: 2px; padding: 0 1px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }

.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--ink); font-weight: 700; border-radius: var(--radius-small); }
.skip:focus { top: 8px; }
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.note { margin-top: 1.5rem; color: var(--muted); }
.empty { padding: 1.5rem; background: var(--fog); border-radius: var(--radius); color: var(--ink-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.3em; }
.prose li::marker { color: var(--amber); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0.62em 1.2em 0.52em;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-border); border-radius: var(--radius-small);
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.12s var(--ease-out), box-shadow 0.15s;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn__arrow, .link-arrow .i { transition: transform 0.2s var(--ease-out); }
.btn:hover .btn__arrow, .link-arrow:hover .i { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--amber); --btn-border: var(--amber); box-shadow: 0 2px 0 rgb(15 31 56 / 0.18); }
.btn--primary:hover { --btn-bg: var(--amber-hover); --btn-border: var(--amber-hover); }
.btn--navy { --btn-bg: var(--night); --btn-fg: #fff; --btn-border: var(--night); }
.btn--navy:hover { --btn-bg: var(--night-2); --btn-border: var(--night-2); }
.btn--ghost { --btn-bg: transparent; --btn-border: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.55); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--night); --btn-border: #fff; }
.btn--outline { --btn-bg: transparent; --btn-border: var(--ink); }
.btn--outline:hover { --btn-bg: var(--amber); --btn-border: var(--amber); }
.btn--quiet { --btn-bg: transparent; --btn-border: transparent; text-decoration: underline; font-weight: 600; }
.btn--whatsapp { --btn-bg: var(--wa); --btn-fg: #fff; --btn-border: var(--wa); width: 100%; }
.btn--whatsapp:hover { --btn-bg: #11633a; --btn-border: #11633a; }
.btn--large { min-height: 54px; padding: 0.8em 1.45em 0.7em; font-size: 1.0625rem; }
.btn--small { min-height: 38px; padding: 0.45em 0.9em 0.35em; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.actions[hidden] { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 800; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.site-header__bar { display: flex; align-items: center; gap: 0.75rem; min-height: 70px; flex-wrap: wrap; }
.brand { margin-right: auto; display: flex; align-items: center; min-height: 70px; } /* sets the height of the top row, so it stays the same when the menu opens below it */
.brand img { width: 150px; height: auto; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 44px; padding: 0 0.85rem;
  border: 2px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 650; text-decoration: none; background: var(--paper);
  transition: border-color 0.15s, color 0.15s;
}
.search-trigger:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.search-trigger .i { width: 20px; height: 20px; }
.search-trigger__label { display: none; }
.search-trigger--desktop { display: none; }
.nav-toggle { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* pinned inside the sticky header: focusing it never scrolls the page */
.nav-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-small); cursor: pointer; color: var(--ink); }
.nav-button .i { width: 26px; height: 26px; }
.nav-button__close { display: none; }
.nav-toggle:checked ~ .nav-button .nav-button__open { display: none; }
.nav-toggle:checked ~ .nav-button .nav-button__close { display: block; }
.nav-toggle:focus-visible ~ .nav-button { outline: 3px solid var(--amber); }
.site-nav { display: none; width: 100%; padding: 0.5rem 0 1rem; max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; }
.nav-toggle:checked ~ .site-nav { display: block; animation: drop 0.22s var(--ease-out); }
.site-nav__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav__list > li > a, .site-nav__group > summary { display: flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.75rem 0; font-weight: 750; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--fog); }
.site-nav__group { position: relative; }
.site-nav__group > summary { list-style: none; cursor: pointer; }
.site-nav__group > summary::-webkit-details-marker { display: none; }
.site-nav__chevron { width: 7px; height: 7px; margin: -3px 3px 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.18s var(--ease-out); }
.site-nav__group[open] > summary .site-nav__chevron { transform: translateY(3px) rotate(225deg); }
.site-nav__group.is-current > summary, .site-nav__group > summary:hover { color: var(--sign); }
.site-nav__submenu { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0 0 0 0.75rem; background: transparent; border-left: 1px solid var(--line); border-radius: 0; }
.site-nav__submenu a { display: flex; align-items: center; min-height: 44px; padding: 0.55rem 0.75rem; border-radius: 2px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; }
.site-nav__submenu a:hover, .site-nav__submenu a:focus-visible { background: var(--fog); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--sign); }
.site-nav__cta { width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

@media (min-width: 640px) {
  .search-trigger { min-width: 0; }
  .search-trigger__label { display: inline; }
}
@media (min-width: 1000px) {
  .site-header__bar { flex-wrap: nowrap; gap: 1.5rem; }
  .brand { margin-right: 0; }
  .brand img { width: 176px; }
  .search-trigger--mobile { display: none; }
  .search-trigger--desktop { display: inline-flex; }
  .nav-button { display: none; }
  .site-nav, .nav-toggle:checked ~ .site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.5rem); width: auto; max-height: none; overflow: visible; padding: 0; margin-left: auto; order: 3; }
  .site-nav__list { display: flex; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.35rem); margin: 0; }
  .site-nav__list > li > a, .site-nav__group > summary { position: relative; padding: 0.4rem 0; border: 0; font-size: 1rem; white-space: nowrap; }
  .site-nav__chevron { margin-left: 0; }
  .site-nav__list > li > a::after, .site-nav__group > summary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease-out); }
  .site-nav__list > li > a:hover::after, .site-nav__list > li > a[aria-current="page"]::after, .site-nav__group > summary:hover::after, .site-nav__group[open] > summary::after, .site-nav__group.is-current > summary::after { transform: scaleX(1); }
  .site-nav__list > li > a[aria-current="page"], .site-nav__group.is-current > summary { color: var(--ink); }
  .site-nav__submenu { position: absolute; top: calc(100% + 0.3rem); left: -1rem; z-index: 2; width: max-content; min-width: 220px; max-width: min(300px, calc(100vw - 2rem)); margin: 0; padding: 0.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 22px rgb(15 31 56 / 0.08); }
  .site-nav__cta { width: auto; }
}

/* ---------- Breadcrumbs & flash ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0.9rem var(--gutter) 0; font-size: var(--step--1); color: var(--muted); }
.crumbs { padding-inline: 0; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.flash-wrap { padding-top: 1rem; }
.flash { margin: 0 0 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-small); border-left: 5px solid; font-weight: 600; animation: rise 0.35s var(--ease-out); }
.flash--success { background: #e6f4ec; border-color: var(--green); color: #134a30; }
.flash--error { background: #fbe9ec; border-color: var(--red); color: #7a0f20; }
.flash--info { background: var(--sign-tint); border-color: var(--sign); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Haaientanden (give-way triangles) ---------- */
.teeth { height: 18px; background-repeat: repeat-x; background-size: 36px 18px; background-position: center top; }
.teeth--night { background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 0h36L18 18z' fill='%230f1f38'/%3E%3C/svg%3E"); }
.teeth--fog { background-color: var(--fog); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 0h36L18 18z' fill='%230f1f38'/%3E%3C/svg%3E"); }

/* ---------- Hero: night asphalt with the route sign as booking widget ---------- */
.hero { position: relative; background: var(--night); color: #fff; padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6.5rem); overflow: hidden; overflow: clip; isolation: isolate; }
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
.hero__title { font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.03em; max-width: 13ch; color: #fff; margin-bottom: 0.4em; }
.hero__lead { color: var(--on-night); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; padding: 0; margin: 2rem 0 0; font-weight: 700; font-size: 0.975rem; color: #fff; }
.hero__facts li { display: flex; align-items: center; gap: 0.45rem; }
.hero__facts .i { color: var(--amber); }
.hero a:not(.btn) { color: #fff; }
/* the dashed centre line of the road, drawn once on load */
.hero__lane {
  position: absolute; left: 0; right: 0; bottom: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); height: 6px; z-index: -1;
  overflow: hidden;
  opacity: 0.55;
  animation: lane-draw 1.6s var(--ease-out) 0.15s both;
}
/* the centre line keeps rolling past, as if you are driving: one stripe-and-gap per cycle, moved on the GPU */
.hero__lane::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -104px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.85) 0 54px, transparent 54px 104px);
  animation: lane-move 1.3s linear infinite;
  will-change: transform;
}
@keyframes lane-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lane-move { to { transform: translateX(-104px); } }
@media (prefers-reduced-motion: reduce) { .hero__lane::before { animation: none; } }
.hero__copy { animation: rise 0.6s var(--ease-out) both; }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

/* ---------- Route sign (the signature element) ---------- */
.routesign {
  position: relative;
  color: #fff;
  background: var(--sign);
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.7);
}
.routesign__plate { border: 3px solid #fff; border-radius: 11px; padding: 1.1rem 1.25rem 0.9rem; }
.routesign__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; }
.routesign__title .i { color: var(--shield-n); }
.routesign__list { list-style: none; margin: 0; padding: 0; }
.routesign__list li + li { border-top: 2px solid rgb(255 255 255 / 0.9); }
.routesign__list a {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 0.75rem;
  padding: 0.8rem 0.15rem; color: #fff; text-decoration: none; border-radius: 6px; transition: background-color 0.15s;
}
.routesign__list a:hover { background: rgb(255 255 255 / 0.08); }
.routesign__date { grid-column: 1; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 850; line-height: 1.15; letter-spacing: -0.01em; }
.routesign__meta { grid-column: 1; font-size: 0.92rem; color: #d6e3f3; }
/* N-road shield: yellow plate with black text = places left; red A-road shield = almost full */
.routesign__spots {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  padding: 0.28em 0.6em 0.18em; border-radius: 6px; border: 2px solid #fff;
  background: var(--shield-n); color: #111; font-size: 0.85rem; font-weight: 850; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.routesign__spots.is-low { background: var(--shield-a); color: #fff; }
.routesign__spots.is-full { background: #fff; color: var(--red); }
.routesign__spots.is-updated, .session__spots.is-updated { animation: pulse 0.9s var(--ease-out); }
@keyframes pulse { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 100% { transform: scale(1); } }
.routesign__arrow { grid-column: 3; grid-row: 1 / span 2; width: 28px; height: 28px; transition: transform 0.2s var(--ease-out); }
.routesign__list a:hover .routesign__arrow, .routesign__list a:focus-visible .routesign__arrow { transform: translateX(5px); }
.routesign__list a:focus-visible { outline-color: var(--amber); }
.routesign__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 7px 0 0; padding: 0.7rem 1.1rem 0.6rem; background: var(--amber); color: var(--ink); border-radius: 9px; font-weight: 700; }
.routesign__price span { margin-right: auto; }
.routesign__price s { color: var(--ink-2); font-weight: 650; }
.routesign__price strong { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.routesign__empty { margin: 0.25rem 0 0.5rem; }
.routesign__empty a { color: #fff; font-weight: 800; }
/* mounting the sign: a single orchestrated entrance */
.routesign--hero { animation: sign-in 0.85s var(--ease-spring) 0.25s both; transform-origin: 50% 0; }
.routesign--hero .routesign__list li { animation: rise 0.5s var(--ease-out) both; }
.routesign--hero .routesign__list li:nth-child(1) { animation-delay: 0.65s; }
.routesign--hero .routesign__list li:nth-child(2) { animation-delay: 0.75s; }
.routesign--hero .routesign__list li:nth-child(3) { animation-delay: 0.85s; }
.routesign--hero .routesign__price { animation: rise 0.5s var(--ease-out) 0.95s both; }
@keyframes sign-in { from { opacity: 0; transform: translateY(-28px) rotate(-2deg); } }

/* distance variant on place pages */
.routesign--distance { max-width: 300px; justify-self: start; }
.routesign--distance .routesign__plate { padding: 1rem 1.25rem; }
.routesign__km { margin: 0; font-size: 3.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.routesign__km small { font-size: 1.3rem; font-weight: 750; }
.routesign__travel { list-style: none; padding: 0; margin: 0.8rem 0 0.4rem; }
.routesign__travel li { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; font-weight: 700; }
.routesign__from { margin: 0; font-size: 0.9rem; color: #d6e3f3; }
@media (min-width: 900px) { .routesign--distance { justify-self: end; animation: sign-in 0.8s var(--ease-spring) 0.15s both; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; }
.section--grey { background: var(--fog); }
.section--sky { background: #e7f0fb; }
.section--sand { background: #fbf3e4; }
.section__head { display: grid; gap: 0.75rem 3rem; margin-bottom: 2.5rem; }
.section__head h2 { margin: 0; }
.section__intro { color: var(--ink-2); max-width: 62ch; margin: 0; }
.section__intro p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .section__head { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }

.band { padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.band--navy { background: var(--night); color: #fff; position: relative; }
.band--navy p { color: var(--on-night); }
.link-light { color: #fff; font-weight: 700; }
.link-light:hover { color: var(--amber); }

/* proof: photo + local argument */
.teeth--over { position: absolute; inset: 0 0 auto; z-index: 2; background-color: transparent; }
/* "1000 cursisten": full-bleed classroom photo, cut by the hero's zigzag */
.proof { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: grid; align-items: center; min-height: clamp(460px, 62vh, 640px); padding: calc(var(--section) + 18px) 0 var(--section); background: var(--night); color: #fff; }
.proof__media { position: absolute; inset: -27% -7%; max-width: none; z-index: -2; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .proof__media { inset: 0; will-change: auto; } }
.nowrap { white-space: nowrap; }
.proof__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; scale: 1.15; }
.proof::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 31 56 / 0.35) 0%, rgb(15 31 56 / 0.72) 45%, rgb(15 31 56 / 0.9) 100%); }
.proof__grid { display: grid; }
.proof__copy { max-width: 34rem; }
.proof__copy h2 { max-width: 18ch; color: #fff; }

/* ---------- CMS preview / draft notice on pages built from blocks ---------- */
.draft-bar { position: sticky; top: 0; z-index: 45; margin: 0; padding: 0.65rem 1rem; background: var(--amber); color: var(--night); font-size: 0.95rem; text-align: center; box-shadow: 0 2px 0 rgb(15 31 56 / 0.15); }

/* ---------- Free reader with every course: a 3D book you can spin ---------- */
.reader { display: grid; gap: 1.5rem 3rem; align-items: center; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.reader__stage { display: grid; justify-items: center; gap: 0.75rem; padding-top: 0.5rem; }
.reader__title { margin: 0 0 0.35rem; font-size: var(--step-2); }
.reader__price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.9rem; }
.reader__price s { font-size: 1.15rem; color: var(--muted); }
.reader__price strong { font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--green); }
.reader__copy > p:not(.reader__price) { max-width: 34rem; color: var(--ink-2); }
.reader__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.reader__more { margin: 0.9rem 0 0; font-weight: 700; }
@media (min-width: 820px) { .reader { grid-template-columns: minmax(280px, 0.9fr) 1.1fr; } }

/* The reader as a book you can leaf through (initFlipbook in site.js). Each leaf turns around the spine:
   its front is a right-hand page, its back the next left-hand page. */
.reader__stage { container-type: inline-size; width: 100%; }
.flipbook { --pw: min(215px, 46cqi); --ph: calc(var(--pw) * 1.416); display: grid; justify-items: center; gap: 0.9rem; width: 100%; }
.flipbook__book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2200px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none;
  transition: transform 0.6s cubic-bezier(0.3, 0.1, 0.2, 1); }
.flipbook__book.is-dragging { cursor: grabbing; }
.flipbook__book:focus-visible { box-shadow: 0 0 0 3px var(--amber); border-radius: 6px; }
.flipbook[data-state="start"] .flipbook__book { transform: translateX(calc(var(--pw) / -2)); }
.flipbook[data-state="end"] .flipbook__book { transform: translateX(calc(var(--pw) / 2)); }
.flipbook__book::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -16px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgb(15 31 56 / 0.3), transparent); pointer-events: none; transition: left 0.6s, right 0.6s; }
.flipbook[data-state="start"] .flipbook__book::after { left: 52%; }
.flipbook[data-state="end"] .flipbook__book::after { right: 52%; }
.flipbook__leaf { position: absolute; top: 0; left: 50%; width: var(--pw); height: 100%; transform-origin: left center; transform-style: preserve-3d; transform: rotateY(calc(var(--a, 0) * 1deg)); }
.flipbook__leaf.is-turning { will-change: transform; }
.flipbook__curve { display: none; position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.flipbook__leaf.is-curved > .flipbook__face { visibility: hidden; }
.flipbook__leaf.is-curved > .flipbook__curve { display: block; }
.flipbook__strip { position: absolute; left: 0; top: 0; height: 100%; transform-origin: left center; transform-style: preserve-3d; }
.flipbook__leaf.is-curved .flipbook__strip { will-change: transform; }
.flipbook__skin { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: #fbfaf6; background-repeat: no-repeat; }
.flipbook__skin--back { transform: rotateY(180deg); }
.flipbook__skin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 31 56 / var(--curl-left, 0)), rgb(15 31 56 / var(--curl-right, 0))); pointer-events: none; }
.flipbook__skin--back::after { background: linear-gradient(270deg, rgb(15 31 56 / var(--curl-left, 0)), rgb(15 31 56 / var(--curl-right, 0))); }
.flipbook__face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbfaf6; box-shadow: 0 10px 24px -14px rgb(15 31 56 / 0.55); }
.flipbook__face--front { border-radius: 0 4px 4px 0; }
.flipbook__face--back { transform: rotateY(180deg); border-radius: 4px 0 0 4px; }
/* the fold near the spine, and shade on the page that is turning */
.flipbook__page::after, .flipbook__face::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.flipbook__face--front.flipbook__page::after { background: linear-gradient(90deg, rgb(0 0 0 / 0.16), transparent 9%); }
.flipbook__face--back.flipbook__page::after { background: linear-gradient(270deg, rgb(0 0 0 / 0.16), transparent 9%); }
.flipbook__face::before { background: rgb(15 31 56); opacity: calc(var(--shade, 0) * 0.28); }
.flipbook__img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.flipbook__cover { display: flex; flex-direction: column; padding: 8% 8% 0 11%; color: #fff; border-radius: 2px 6px 6px 2px;
  background: radial-gradient(120% 80% at 85% 0%, #1f3f6d 0%, transparent 60%), linear-gradient(160deg, var(--night-2) 0%, var(--night) 70%); }
.flipbook__cover::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: linear-gradient(90deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.05) 70%, rgb(255 255 255 / 0.06)); }
.flipbook__logo { width: 72%; height: auto; pointer-events: none; }
.flipbook__title { margin: auto 0 0; font-size: calc(var(--pw) * 0.155); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; }
.flipbook__sub { margin: 0.3em 0 0.9em; font-size: calc(var(--pw) * 0.095); font-weight: 900; color: var(--amber); line-height: 1.1; }
.flipbook__sub span { display: block; margin-top: 0.15em; font-size: 0.55em; font-weight: 700; color: var(--on-night); }
.flipbook__sticker { position: absolute; bottom: 14%; right: 6%; display: grid; place-items: center; width: 33%; aspect-ratio: 1; margin: 0; padding: 4%; border-radius: 50%; background: var(--amber); color: var(--night); font-size: calc(var(--pw) * 0.052); font-weight: 900; line-height: 1.1; text-align: center; transform: rotate(12deg); box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.6); }
.flipbook__road { height: 15%; margin: 0 -9% 0 -13%; border-top: 4px solid var(--amber); background: repeating-linear-gradient(90deg, #fff 0 20px, transparent 20px 34px) 0 50% / 100% 4px no-repeat, #2a3547; }

.flipbook__endpaper { display: flex; align-items: flex-end; padding: 12%; color: var(--on-night); background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.04) 0 2px, transparent 2px 12px), var(--night); }
.flipbook__endpaper p { width: 100%; margin: 0; font-size: 0.8rem; font-weight: 700; }
.flipbook__endpaper span { display: block; margin-top: 1.4em; border-bottom: 1px dashed rgb(199 211 230 / 0.5); }

.flipbook__more { display: grid; place-items: center; padding: 10%; background: #fbfaf6; }
.flipbook__lines { position: absolute; inset: 9% 11%; background: repeating-linear-gradient(180deg, #e3e1da 0 5px, transparent 5px 14px); filter: blur(1.5px); opacity: 0.8; }
.flipbook__more-card { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0.45em; width: 100%; padding: 9% 7%; border: 2px solid var(--ink); border-radius: var(--radius-small); background: #fff; text-align: center; font-size: calc(var(--pw) * 0.06); box-shadow: 0 10px 22px -14px rgb(15 31 56 / 0.6); }
.flipbook__more-card p { margin: 0; font-size: 1em; line-height: 1.35; color: var(--ink-2); }
.flipbook__more-card .flipbook__more-title { font-size: 1.4em; font-weight: 900; line-height: 1.15; color: var(--ink); }
.flipbook__or { margin: 0.1em 0 -0.2em; font-size: 0.85em; color: var(--muted); }
.flipbook__more-card .btn--outline { margin-top: 0; background: #fff; }
.flipbook__more-card .btn { flex-direction: column; gap: 0; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; min-height: 0; margin-top: 0.3em; padding: 0.65em 0.9em 0.55em; font-size: 1.05em; }

.flipbook__backcover { display: flex; flex-direction: column; padding: 12% 11%; color: var(--on-night); border-radius: 6px 2px 2px 6px; background: linear-gradient(200deg, var(--night-2), var(--night)); }
.flipbook__blurb { margin: 0; font-size: calc(var(--pw) * 0.072); font-weight: 700; line-height: 1.35; color: #fff; }
.flipbook__url { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--amber); font-weight: 800; }
.flipbook__barcode { margin-top: auto; align-self: flex-end; width: 40%; aspect-ratio: 84 / 46; border: 6px solid #fff; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 8px, #111 8px 11px, #fff 11px 12px); }

.flipbook__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
.flipbook__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.flipbook__btn:hover:not(:disabled) { background: var(--amber); border-color: var(--amber); }
.flipbook__btn:disabled { opacity: 0.35; cursor: default; }
.flipbook__btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.flipbook__arrow { width: 1.1rem; height: 1.1rem; }
.flipbook__arrow--back { transform: scaleX(-1); }
.flipbook__status { min-width: 10.5rem; margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .flipbook__book, .flipbook__leaf.is-turning, .flipbook__book::after { transition: none; } }

/* ---------- Home: theory practice ("Oefen thuis") with one question to try ---------- */
/* dark points that stick up over the bottom edge of the sign section; the gaps between them are see-through, so the moving signs show there */
.teeth--signs { position: absolute; inset: -18px 0 auto; z-index: 2; height: 20px; background-color: transparent; background-position: center bottom; background-size: 36px 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='20'%3E%3Cpath d='M0 18L18 0L36 18V20H0z' fill='%230f1f38'/%3E%3C/svg%3E"); } /* 2px base runs into the dark section so no hairline shows */
.practice { position: relative; padding: var(--section) 0 var(--section); background: var(--night); color: #fff; }
.practice__grid { display: grid; gap: 2.5rem 4rem; align-items: center; }
.practice__copy h2 { max-width: 16ch; color: #fff; }
.practice__lead { max-width: 36rem; color: var(--on-night); font-size: 1.1rem; }
.practice__facts { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 0.7rem; }
.practice__facts li { display: flex; gap: 0.65rem; color: var(--on-night); }
.practice__facts strong { color: #fff; }
.practice__facts .i { flex: none; margin-top: 0.2em; color: var(--amber); }
.practice .btn--ghost { --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.55); }
.practice .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--night); --btn-border: #fff; }

/* the try-out card: a white route-sign plate */
.practice__try { justify-self: center; width: 100%; max-width: 520px; padding: 1.1rem 1.1rem 1.25rem; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 5px var(--sign), inset 0 0 0 8px #fff, 0 34px 70px -30px rgb(0 0 0 / 0.75); }
.practice__label { margin: 0.35rem 0.4rem 0.75rem; font-weight: 800; font-size: 0.95rem; color: var(--sign); }
.practice__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--fog); }
.practice__q { margin: 0.9rem 0.4rem 0.8rem; font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.practice__options { display: grid; gap: 0.5rem; }
.practice__opt { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.65rem 0.8rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: inherit; font: inherit; font-weight: 650; text-align: left; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.practice__opt:hover:not(:disabled) { border-color: var(--sign); }
.practice__opt:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.practice__opt:disabled { cursor: default; }
.practice__key { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 7px; background: var(--fog); font-weight: 800; }
/* numbered answers: round tiles that match the numbers in the picture */
.practice__options--numbers { grid-template-columns: repeat(auto-fill, 4.5rem); gap: 0.75rem; padding: 0 0.4rem; }
.practice__options--numbers .practice__opt { justify-content: center; aspect-ratio: 1; padding: 0; border-width: 3px; border-color: var(--ink); border-radius: 50%; font-size: 1.75rem; font-weight: 900; }
.practice__options--numbers .practice__opt:hover:not(:disabled) { background: var(--fog); transform: translateY(-2px); }
.practice__opt.is-correct { border-color: var(--green); background: var(--green); color: #fff; }
.practice__opt.is-wrong { border-color: var(--red); background: var(--red); color: #fff; }
.practice__opt.is-correct .practice__key, .practice__opt.is-wrong .practice__key { background: rgb(255 255 255 / 0.2); }
.practice__opt:disabled:not(.is-correct):not(.is-wrong) { opacity: 0.55; }
.practice__hint { margin: -0.3rem 0.4rem 0.8rem; color: var(--ink-2); font-size: 0.95rem; }
/* order: the place appears as a small amber badge on the chosen answer */
.practice__opt { position: relative; }
.practice__opt.is-picked { border-color: var(--sign); background: #eaf1f9; }
.practice__rank:empty { display: none; }
.practice__rank { margin-left: auto; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--amber); color: var(--night); font-size: 0.95rem; font-weight: 900; box-shadow: 0 0 0 2px #fff; animation: rank-pop 0.18s ease-out; }
.practice__options--numbers .practice__rank { position: absolute; top: -0.35rem; right: -0.35rem; margin: 0; }
.practice__opt.is-correct .practice__rank, .practice__opt.is-wrong .practice__rank { background: #fff; color: var(--ink); }
@keyframes rank-pop { from { transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .practice__rank { animation: none; } }
.practice__again { margin: 0 0 0.5rem; padding: 0; border: 0; background: none; color: var(--sign); font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; display: block; }
.practice__feedback { margin: 1rem 0.4rem 0; padding: 0.85rem 1rem; border-left: 4px solid var(--green); border-radius: 8px; background: #e7f3ec; }
.practice__feedback.is-wrong { border-left-color: var(--red); background: #fbe9ec; }
.practice__feedback p { margin: 0 0 0.5rem; }
.practice__verdict { font-weight: 800; }
.practice__more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 750; color: var(--sign); }
.practice__more .i { width: 1em; height: 1em; }
@media (min-width: 900px) { .practice__grid { grid-template-columns: 1fr minmax(0, 480px); } .practice__try { justify-self: end; } }
.proof__copy p { color: var(--on-night); }
.proof__copy .link-arrow { display: inline; color: var(--amber); }
.proof__copy .link-arrow .i { display: inline-block; vertical-align: -0.15em; margin-left: 0.35em; }
.proof__copy h2, .proof__copy p { text-shadow: 0 1px 12px rgb(15 31 56 / 0.5); }
@media (min-width: 900px) {
  .proof::before { background: linear-gradient(90deg, rgb(15 31 56 / 0.94) 0%, rgb(15 31 56 / 0.82) 38%, rgb(15 31 56 / 0.25) 72%, rgb(15 31 56 / 0.05) 100%); }
  .proof__media img { object-position: 70% 40%; }
}

.band--amber { background: var(--amber); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-band__text { margin: 0; font-size: var(--step-2); font-weight: 650; line-height: 1.25; }
.cta-band__text strong { font-weight: 900; }

/* ---------- Steps: hectometre posts along a road ---------- */
.road { --road-h: 60px; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.road__step { position: relative; z-index: 1; padding: 0 0 2.25rem 5rem; }
/* the road surface with its centre line (vertical on phones) */
.road::before { content: ""; position: absolute; z-index: 0; left: 1.15rem; top: 0.5rem; bottom: 0.5rem; width: 26px; border-radius: 8px; background: var(--night); }
.road::after {
  content: ""; position: absolute; z-index: 0; left: calc(1.15rem + 11px); top: 1rem; bottom: 1rem; width: 4px;
  background: repeating-linear-gradient(180deg, #fff 0 18px, transparent 18px 34px);
}
.road__num {
  position: absolute; z-index: 2; left: 0.25rem; top: -0.1rem; display: grid; place-items: center;
  width: 2.8rem; height: 3.6rem; padding: 3px;
  background: var(--hecto); border-radius: 8px 8px 3px 3px; box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.6);
}
.road__num span { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 6px 6px 2px 2px; color: #fff; font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.road__step h3 { margin: 0.45rem 0 0.35rem; }
.road__step p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .road { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: calc(var(--road-h) + 2rem); }
  .road::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: var(--road-h); border-radius: 12px; }
  .road::after { left: 1.5rem; right: 1.5rem; top: calc(var(--road-h) / 2 - 3px); bottom: auto; width: auto; height: 6px; background: repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 86px); }
  .road__step { padding: 0; }
  .road__num { left: 0; top: calc(-1 * (var(--road-h) + 2rem) + var(--road-h) / 2 - 2.1rem); width: 3.3rem; height: 4.2rem; }
  .road__num::after { content: none; }
}

/* ---------- Packages: price cards (same look as the practice packages) ---------- */
.packages { display: grid; gap: 1.6rem 1.25rem; align-items: stretch; padding-top: 0.9rem; }
.package { position: relative; display: flex; flex-direction: column; padding: 1.9rem 1.5rem 1.5rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 0 rgb(15 31 56 / 0.08); }
.package__name { margin: 0 0 0.6rem; font-size: var(--step-1); }
.package__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0; }
.package__price strong { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.package__price s { font-size: 1.05rem; color: var(--muted); }
.package__save { margin: 0.35rem 0 0; font-size: 0.95rem; font-weight: 750; color: var(--green); }
/* the practice label is always blue and the guarantee label always green, on white and dark cards */
.packages .package .package__flag.package__flag--practice, .choice__flags .package__flag--practice { background: var(--sign); border-color: var(--sign); color: #fff; }
.packages .package .package__flag.package__flag--guarantee, .choice__flags .package__flag--guarantee { background: var(--green); border-color: var(--green); color: #fff; }
/* "Meest gekozen" (CMS → Pakketten): a ribbon on top and a bigger card */
.package--featured { padding-top: 3.4rem; border: 3px solid var(--amber); box-shadow: 0 24px 46px -24px rgb(15 31 56 / 0.9); z-index: 1; }
.package__ribbon { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0; padding: 0.45rem 1rem 0.4rem; border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0; background: var(--amber); color: var(--night); font-size: 0.9rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.package__ribbon .i { width: 1.1em; height: 1.1em; }
.package--featured .package__flags { position: static; margin: 0 0 0.9rem; }
.package--featured .package__price strong { font-size: 3.1rem; }
@media (min-width: 720px) {
  .package--featured { scale: 1.06; }
  .packages--1 .package--featured { scale: none; }
  /* room for the bigger card, so it never covers the labels of the row below */
  .packages:has(.package--featured) { row-gap: 3.4rem; column-gap: 1.75rem; }
}
.package .checklist { margin: 1.1rem 0 1.5rem; padding-top: 1.1rem; border-top: 2px solid var(--fog); }
.package__cta { margin-top: auto; }
/* pills on the top edge: Met boek, Met oefensoftware */
.package__flags { position: absolute; top: -0.9rem; left: 1.25rem; right: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.package__flag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem 0.2rem 0.55rem; border-radius: 999px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-size: 0.85rem; font-weight: 850; white-space: nowrap; }
.package__flag--book { background: var(--amber); border-color: var(--amber); color: var(--night); }
.package__flag .i { width: 1em; height: 1em; }
/* the package with practice software stands out, like the best-value practice package */
.package--practice { background: var(--night); border-color: var(--night); color: #fff; box-shadow: 0 18px 34px -22px rgb(15 31 56 / 0.8); }
.package--practice .package__name, .package--practice .package__price strong { color: #fff; }
.package--practice .package__price s { color: var(--on-night); }
.package--practice .package__save { color: var(--amber); }
.package--practice .checklist { border-top-color: rgb(255 255 255 / 0.14); }
.package--practice .checklist .i { color: var(--amber); }
.package--practice .checklist span { color: #fff; }
.package--practice .checklist li:first-child { font-weight: 750; }
.package--practice .package__flag:not(.package__flag--book) { background: var(--sign); border-color: var(--sign); color: #fff; }
@media (min-width: 720px) {
  .packages--2, .packages--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packages--3, .packages--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .packages--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* four or five cards in a row: the labels on top stay on one line */
  .packages--4 .package__flags, .packages--5 .package__flags { left: 1rem; right: 0.5rem; flex-wrap: nowrap; gap: 0.3rem; }
  .packages--4 .package__flag, .packages--5 .package__flag { padding: 0.2rem 0.55rem 0.15rem 0.4rem; font-size: 0.78rem; gap: 0.25rem; }
  .packages--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .packages--5 .package { padding: 1.8rem 1.1rem 1.25rem; }
}
.packages--1 { max-width: 920px; }
.faq__more { margin: 0.75rem 0 0; font-weight: 750; }
.faq__more a { display: inline-flex; align-items: center; gap: 0.35rem; }
.faq__more .i { width: 1em; height: 1em; }
.practice-plans__more { margin: 1.5rem 0 0; font-weight: 600; }
@media (min-width: 720px) {
  .packages--1 .package { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-rows: auto auto auto 1fr; column-gap: 2.5rem; padding: 2.2rem 2rem 2rem; }
  .packages--1 .package__name, .packages--1 .package__price, .packages--1 .package__save, .packages--1 .package__cta { grid-column: 1; }
  .packages--1 .package__cta { align-self: end; }
  .packages--1 .package__name { font-size: var(--step-2); }
  .packages--1 .checklist { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0 0 0 2.5rem; border-top: 0; border-left: 2px solid var(--fog); }
  .packages--1 .package--practice .checklist { border-left-color: rgb(255 255 255 / 0.14); }
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { display: flex; gap: 0.55rem; padding: 0.24rem 0; line-height: 1.4; }
.checklist .i { color: var(--green); margin-top: 0.1em; }
.checklist--small { font-size: 0.95rem; margin: 0.6rem 0 0; }
.package__component-prices { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.package__component-prices s { color: var(--muted); margin-right: 0.3em; }
.package__component-prices strong { font-weight: 750; color: var(--green); }
.package--practice .package__component-prices s { color: var(--on-night); }
.package--practice .package__component-prices strong { color: var(--amber); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tabs__tab { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem 0.45rem; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 750; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.tabs__tab:hover { border-color: var(--ink); text-decoration: none; }
.tabs__tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tabs__tab[aria-selected="true"] img { filter: invert(1); }
.tabs__panel + .tabs__panel { margin-top: 2rem; }
.tabs.is-ready .tabs__panel[hidden] { display: none; }
.tabs.is-ready .tabs__panel:not([hidden]) { animation: rise 0.3s var(--ease-out); }

/* ---------- Feature blocks ---------- */
.feature__grid { display: grid; gap: 2rem; align-items: center; }
.feature__media img { width: 100%; max-width: 480px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.feature__copy h2 { margin-bottom: 0.75rem; }
@media (min-width: 900px) {
  .feature__grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; }
  .feature--flip .feature__media { order: 2; justify-self: end; }
}
.feature + .feature { padding-top: 0; }

/* ---------- FAQ (answers glide open where supported) ---------- */
.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); } .split__aside { position: sticky; top: 100px; align-self: start; } }
.faq { border-top: 3px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0 1.05rem; font-weight: 800; font-size: 1.1rem; line-height: 1.35; cursor: pointer; list-style: none;
  transition: color 0.15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--sign); }
.faq__chev { width: 24px; height: 24px; transition: transform 0.25s var(--ease-out); color: var(--sign); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__item.is-target summary { color: var(--sign); }
.faq__answer { padding: 0 2.5rem 1.2rem 0; color: var(--ink-2); max-width: 68ch; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Page heads ---------- */
.page-head { position: relative; background: var(--night); color: #fff; padding: clamp(2.25rem, 1.5rem + 3vw, 4.25rem) 0 calc(clamp(2.25rem, 1.5rem + 3vw, 4.25rem) + 8px); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 0h36L18 18z' fill='%230f1f38'/%3E%3C/svg%3E") repeat-x; background-size: 36px 18px; z-index: 1; }
.page-head h1 { max-width: 22ch; color: #fff; animation: rise 0.45s var(--ease-out) both; }
.page-head .lead, .page-head__intro, .page-head p { color: var(--on-night); }
.page-head a:not(.btn) { color: #fff; }
.page-head .btn--ghost { --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.55); }
.page-head .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--night); --btn-border: #fff; }
.page-head + .section, .page-head + .section--tight { padding-top: calc(var(--section) * 0.75 + 10px); }
.page-head--compact { background: var(--fog); color: var(--ink); padding: 1.75rem 0 2rem; }
.page-head--compact::after { content: none; }
.page-head--compact h1 { font-size: var(--step-3); color: var(--ink); }
.page-head--compact p, .page-head--compact .lead { color: var(--ink-2); }
.page-head--compact a:not(.btn) { color: var(--sign); }
.page-head__intro { margin-top: 0.5rem; }
.page-head__split { display: grid; gap: 2rem; align-items: center; }
.page-head__icon { width: 120px; filter: invert(1) brightness(1.2); opacity: 0.9; }
@media (min-width: 900px) { .page-head__split { grid-template-columns: 1fr auto; } }

/* ---------- Sessions: each date on its own route-sign plate ---------- */
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.session {
  display: grid; gap: 0.9rem 1.5rem; padding: 0.8rem; background: var(--paper);
  border: 2px solid var(--line); border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.session:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.section--grey .session { border-color: transparent; }
.section--grey .session:hover { border-color: var(--ink); }
.session__when { padding: 0.75rem 1rem 0.7rem; background: var(--sign); color: #fff; border-radius: 9px; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff; }
.session__date { margin: 0; font-size: var(--step-1); font-weight: 850; line-height: 1.2; letter-spacing: -0.01em; }
.session__time { display: flex; gap: 0.45rem; align-items: center; margin: 0.2rem 0 0; color: #d6e3f3; font-size: 0.95rem; }
.session__time .i { color: var(--shield-n); }
.session__where { padding: 0 0.4rem; }
.session__where p { display: flex; gap: 0.45rem; align-items: flex-start; margin: 0; color: var(--ink-2); }
.session__where .i { margin-top: 0.2em; color: var(--sign); }
.session__action { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0 0.4rem 0.3rem; }
.session__spots { margin: 0; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.session__spots--low { color: #a3470b; }
.session__spots--full { color: var(--red); }
.session--full { opacity: 0.75; }
.session--full .session__when { background: #6b7a90; box-shadow: inset 0 0 0 2px #6b7a90, inset 0 0 0 4px #fff; }
@media (min-width: 760px) {
  .session { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; }
  .session__where, .session__action { padding: 0; }
  .session__action { justify-content: flex-end; padding-right: 0.5rem; }
}

.type-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.type-switch__item { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.1rem 0.5rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 750; background: var(--paper); transition: border-color 0.15s; }
.type-switch__item:hover { border-color: var(--ink); text-decoration: none; }
.type-switch__item img { width: 32px; height: 32px; }
.type-switch__item em { font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--muted); background: var(--fog); padding: 0.1rem 0.5rem; border-radius: 999px; }
.type-switch__item[aria-current="page"] { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--amber); }

/* ---------- Places ---------- */
.place-head .lead { margin-top: 0.75rem; }
.regions { display: grid; gap: 2rem 3rem; }
@media (min-width: 720px) { .regions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .regions { grid-template-columns: repeat(3, 1fr); } }
.region__list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.region__list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.25rem 0.6rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; transition: background-color 0.15s, padding 0.2s var(--ease-out); }
.region__list a:hover { color: var(--sign); background: var(--fog); padding-left: 0.6rem; }
.region__list small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 0.45rem 0.9rem 0.35rem; border: 2px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.chips a:hover { border-color: var(--ink); background: var(--fog); }

/* ---------- Cards & forms ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.contact { display: grid; gap: 1.5rem; align-items: start; }
.contact__details { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.5fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contact-list li { display: flex; gap: 0.6rem; padding: 0.4rem 0; }
.contact-list .i { color: var(--sign); margin-top: 0.25em; }

.form__grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__grid--name { grid-template-columns: 7rem 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label, .check label { font-weight: 750; font-size: 0.975rem; }
.optional { font-weight: 500; color: var(--muted); }
input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="file"]), select, textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.85rem 0.6rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius-small);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #b7c1d1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 4px rgb(15 76 138 / 0.16); }
input:user-invalid:not(:focus), textarea:user-invalid:not(:focus) { border-color: var(--red); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--red); }
.field__hint { margin: 0; font-size: var(--step--1); color: var(--muted); }
.field__error { margin: 0.35rem 0 0; font-size: 0.925rem; font-weight: 700; color: var(--red); animation: rise 0.25s var(--ease-out); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.25rem 0 0.5rem; padding: 1rem; background: var(--fog); border-radius: var(--radius-small); }
.check input { width: 22px; height: 22px; margin-top: 0.05rem; accent-color: var(--sign); flex: none; }
.check label { font-weight: 600; }

/* apply form progress: four stops on a route */
.progress { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: 0.25rem; }
.progress__step { flex: 1; display: flex; align-items: center; gap: 0.45rem; padding-top: 0.6rem; border-top: 5px solid var(--line); font-size: var(--step--1); font-weight: 750; color: var(--muted); }
.progress__num { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 0.8rem; flex: none; }
.progress__step.is-done { border-color: var(--sign); color: var(--ink); }
.progress__step.is-done .progress__num { background: var(--sign); color: #fff; }
.progress__step.is-current { border-color: var(--amber); color: var(--ink); }
.progress__step.is-current .progress__num { background: var(--amber); }
@media (max-width: 520px) { .progress__step { font-size: 0; gap: 0; } .progress__num { font-size: 0.8rem; } }

.form-block { margin: 0 0 1.25rem; padding: clamp(1.25rem, 1rem + 1vw, 1.85rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; scroll-margin-top: 88px; }
.form-block legend { float: left; width: 100%; margin: 0 0 1rem; padding: 0; font-size: var(--step-1); font-weight: 850; }
.form-block legend ~ * { clear: both; }
.form-block__hint { margin: 0 0 0.75rem; color: var(--muted); }
.form-block__hint[hidden] { display: none; }
.choice-grid { display: grid; gap: 0.75rem; }
.choice-grid--types { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice-grid--packages { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.choice-list { display: grid; gap: 0.6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice[hidden] { display: none; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__body { display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 1rem 1.1rem 0.9rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s, transform 0.15s var(--ease-out); }
.choice--type .choice__body { align-items: center; text-align: center; gap: 0.4rem; }
.choice:hover .choice__body { border-color: #9fb0c7; }
.choice:active .choice__body { transform: scale(0.99); }
.choice input:checked + .choice__body { border-color: var(--sign); box-shadow: inset 0 0 0 1px var(--sign), 0 0 0 4px rgb(15 76 138 / 0.14); background: #f5f9fd; }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice.is-disabled { cursor: not-allowed; }
.choice.is-disabled .choice__body { opacity: 0.55; }
.choice__title { font-weight: 850; font-size: 1.075rem; line-height: 1.3; }
.choice__meta { color: var(--ink-2); font-size: 0.95rem; }
.choice__note { font-size: 0.8rem; font-weight: 750; color: var(--muted); }
.choice__price { display: flex; gap: 0.5rem; align-items: baseline; }
.choice__tag { display: inline-block; margin-left: 0.3rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--amber); color: var(--night); font-size: 0.75rem; font-weight: 900; vertical-align: middle; }
.choice__price strong { font-size: 1.4rem; font-weight: 900; }
.choice--row .choice__body { padding-left: 3rem; }
.choice--row .choice__body::before { content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; border: 2px solid #9fb0c7; border-radius: 50%; background: var(--paper); transition: border-color 0.15s, background 0.15s; }
.choice--row input:checked + .choice__body::before { border-color: var(--sign); background: radial-gradient(circle, var(--sign) 0 45%, transparent 50%); }
.form__actions--sticky { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 0.9rem var(--gutter); background: rgb(255 255 255 / 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); justify-content: space-between; }
.form__summary { margin: 0; font-weight: 750; }
.form__summary:empty { display: none; }

/* address auto-fill (postcode + house number) */
.address-hint { grid-column: 1 / -1; margin: -0.25rem 0 0; padding: 0.6rem 0.85rem; border-radius: var(--radius-small); background: var(--fog); font-size: 0.95rem; animation: rise 0.25s var(--ease-out); }
.address-hint--ok { background: #e6f4ec; color: #14532d; font-weight: 650; }
.address-hint--warn { background: #fff4dc; color: #6b4500; }
.address-hint--busy { color: var(--muted); }
input.is-filled { animation: filled 1s var(--ease-out); }
@keyframes filled { from { background-color: #fff1c9; border-color: var(--amber); } }

/* checkout */
.checkout { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .checkout { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.order__list { margin: 0 0 1rem; }
.order__list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--fog); }
.order__list dt { color: var(--muted); font-weight: 600; }
.order__list dd { margin: 0; font-weight: 700; }
.order__totals { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.order__totals th { text-align: left; font-weight: 600; color: var(--muted); padding: 0.35rem 0; }
.order__totals td { text-align: right; }
.order__total th, .order__total td { padding-top: 0.75rem; border-top: 3px solid var(--ink); color: var(--ink); font-size: 1.3rem; font-weight: 900; }
.pay__method { color: var(--ink-2); }

/* payment status */
.status { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; border-width: 2px; transition: border-color 0.3s; }
.status__icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--fog); position: relative; }
.status--wait .status__icon { border: 5px solid var(--line); border-top-color: var(--sign); background: transparent; animation: spin 0.9s linear infinite; }
.status--ok { border-color: var(--green); }
.status--ok .status__icon { background: var(--green); animation: pop 0.45s var(--ease-spring); }
.status--ok .status__icon::after { content: ""; position: absolute; left: 1.05rem; top: 0.6rem; width: 0.8rem; height: 1.4rem; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.status--fail { border-color: var(--red); }
.status--fail .status__icon { background: var(--red); animation: pop 0.45s var(--ease-spring); }
.status--fail .status__icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.6rem; }
.status h2 { margin-bottom: 0.35rem; }
.todo { padding-left: 1.2rem; }
.todo li { margin-bottom: 0.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

.legal p { margin-bottom: 0.9em; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.25; margin: 2.2em 0 0.55em; padding-top: 1.1em; border-top: 2px solid var(--fog); scroll-margin-top: 5rem; }
.legal h3 { font-size: 1.08rem; margin: 1.5em 0 0.4em; scroll-margin-top: 5rem; }
.legal h2:first-of-type { margin-top: 1.6em; }
.legal ul { margin: 0 0 1em; }
.error-page__code { margin: 0; font-size: 5.5rem; font-weight: 900; line-height: 1; color: var(--amber); letter-spacing: -0.03em; }

/* ---------- Knowledge base ---------- */
.narrow-left { max-width: 860px; }
.articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .articles { grid-template-columns: repeat(2, 1fr); } .articles--small { grid-template-columns: repeat(3, 1fr); } }
.article-item a { display: block; height: 100%; padding: 1.35rem 1.45rem; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.2s var(--ease-out), box-shadow 0.2s; }
.article-item a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.article-item h2, .article-item h3 { margin-bottom: 0.4rem; }
.article-item p { color: var(--ink-2); margin-bottom: 0.5rem; }
.article-body h2 { font-size: var(--step-2); margin-top: 1.75rem; }
.article-img { width: 100%; max-width: 960px; border-radius: var(--radius); margin-bottom: 2rem; }
.article-cta { max-width: 68ch; margin-top: 2.5rem; padding: 1.35rem 1.5rem; background: var(--fog); border-left: 6px solid var(--amber); border-radius: var(--radius); }
.article-cta p { margin: 0; }
.article-cta .actions { margin-top: 1rem; }

/* ---------- Reviews (own) ---------- */
/* reviews (CMS → Reviews): one wide card per review, the review itself in big quotes */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: 1.75rem; }
.reviews-head h2 { margin: 0; }
.reviews-score { display: flex; align-items: center; gap: 0.7rem; margin: 0; font-weight: 750; color: var(--ink-2); }
.reviews-score__num { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.reviews-score .stars { font-size: 1.45rem; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.review-card { position: relative; display: grid; gap: 1.25rem 2.5rem; margin: 0; padding: 4.5rem 1.4rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); box-shadow: 0 22px 44px -32px rgb(15 31 56 / 0.45); overflow: hidden; }
.review-card::before { content: "\201C"; position: absolute; top: 0.02em; left: 0.1em; font: 700 8rem/1 Georgia, "Times New Roman", serif; color: var(--amber); pointer-events: none; }
.review-card__quote { margin: 0; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); font-weight: 600; line-height: 1.55; color: var(--ink); }
.review-card__quote p { margin: 0; max-width: none; }
.review-card__quote p::after { content: "\201D"; margin-left: 0.06em; font: 700 2em/0 Georgia, "Times New Roman", serif; vertical-align: -0.42em; color: var(--amber); }
.review-card__by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.review-card .stars { font-size: 1.6rem; line-height: 1; }
.review-card__name { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.review-card__meta { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 800px) {
  .review-card { grid-template-columns: minmax(0, 1fr) 14rem; align-items: center; padding: 2.75rem 2.75rem 2.75rem 7.25rem; }
  .review-card::before { top: 0.08em; left: 0.16em; font-size: 10.5rem; }
  .review-card__by { flex-direction: column; align-items: flex-start; align-self: stretch; justify-content: center; padding: 0 0 0 2.25rem; border-top: 0; border-left: 1px solid var(--line); }
}
.reviews-foot { display: flex; justify-content: center; margin: 2rem 0 0; }
.stars__off { color: var(--line); }
.stars { color: var(--amber); letter-spacing: 0.08em; margin: 0; }

/* ---------- Google reviews ---------- */
.greviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: 0.5rem; }
.greviews__head h2 { margin: 0; }
.greviews__summary { display: flex; align-items: center; gap: 0.7rem; margin: 0; font-weight: 750; color: var(--ink-2); }
.greviews__score { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.greviews__summary .stars { font-size: 1.3rem; }
.greviews__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.greview { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); animation: rise 0.45s var(--ease-out) both; }
.greview:nth-child(2) { animation-delay: 0.06s; } .greview:nth-child(3) { animation-delay: 0.12s; } .greview:nth-child(4) { animation-delay: 0.18s; } .greview:nth-child(5) { animation-delay: 0.24s; }
.greview__head { display: flex; align-items: center; gap: 0.75rem; }
.greview__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.greview__avatar--initial { display: grid; place-items: center; background: var(--sign); color: #fff; font-weight: 850; }
.greview__who { display: grid; line-height: 1.3; }
.greview__author { font-weight: 800; color: inherit; text-decoration: none; }
.greview__author:hover { text-decoration: underline; }
.greview__when { color: var(--muted); font-size: 0.9rem; }
.greview__text { margin: 0; white-space: pre-line; }
.greview__orig summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.greview__link { margin-top: auto; font-size: 0.9rem; font-weight: 700; }
.greviews__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.gmaps-attrib { margin-left: auto; font-family: Roboto, Arial, sans-serif; font-weight: 400; font-size: 14px; color: #5e5e5e; white-space: nowrap; }

/* ---------- Cost note & sticky booking bar ---------- */
.cost-note { margin-top: 1.25rem; color: var(--ink-2); max-width: 70ch; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--night); color: #fff; box-shadow: 0 -6px 20px -10px rgb(0 0 0 / 0.4); animation: slide-up 0.4s var(--ease-out) 0.6s both; }
.mobile-cta p { margin: 0; font-size: 0.9rem; line-height: 1.3; color: var(--on-night); }
.mobile-cta strong { color: #fff; display: block; }
.has-mobile-cta .wa-float { bottom: 84px; }
.has-mobile-cta .site-footer { padding-bottom: 5.5rem; }
@keyframes slide-up { from { transform: translateY(100%); } }
@media (min-width: 900px) { .mobile-cta { display: none; } .has-mobile-cta .wa-float { bottom: 16px; } .has-mobile-cta .site-footer { padding-bottom: 1.5rem; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night); color: var(--on-night); padding: 4rem 0 1.5rem; font-size: 0.975rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 0l18 18H0z' fill='%230f1f38'/%3E%3C/svg%3E") repeat-x; background-size: 36px 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer .btn { color: var(--btn-fg); text-decoration: none; }
.site-footer__grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 4px dashed rgb(255 255 255 / 0.16); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .site-footer__grid { grid-template-columns: 1.2fr 0.8fr 1fr 1.4fr; } }
.site-footer__brand img { width: 170px; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 32ch; }
.site-footer__title { font-size: 1rem; color: #fff; margin-bottom: 0.9rem; }
.site-footer__links, .site-footer__contact, .site-footer__places { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { padding: 0.2rem 0; }
.site-footer__contact li { display: flex; gap: 0.6rem; padding: 0.3rem 0; }
.site-footer__contact .i { color: var(--amber); margin-top: 0.2em; }
.site-footer__places { columns: 2; column-gap: 1.25rem; font-size: 0.9rem; }
.site-footer__places li { padding: 0.12rem 0; break-inside: avoid; }
.site-footer__places a { color: var(--on-night); }
.social { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.25); transition: border-color 0.15s, transform 0.2s var(--ease-out); }
.social a:hover { border-color: var(--amber); transform: translateY(-2px); }
.social--labels { flex-direction: column; margin: 0; }
.social--labels a { display: flex; gap: 0.6rem; align-items: center; width: auto; height: auto; padding: 0.55rem 0.9rem; border-radius: var(--radius-small); border: 2px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.social--labels a:hover { border-color: var(--ink); transform: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1.25rem; font-size: 0.9rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Floating WhatsApp & consent ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 6px 18px -4px rgb(0 0 0 / 0.35); transition: transform 0.2s var(--ease-out), bottom 0.3s var(--ease-out); }
.wa-float .i { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; background: #11633a; transform: scale(1.06); }
body.has-sticky-form .wa-float { bottom: 88px; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; padding: 1.1rem 1.25rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); animation: slide-up-in 0.4s var(--ease-out) 0.8s both; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.consent__actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
@keyframes slide-up-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- In-page map and document dialogs ---------- */
body.has-site-dialog { overflow: hidden; }
.site-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgb(15 31 56 / 0.3); overflow: hidden; }
.site-dialog:not([open]) { display: none; }
.site-dialog[open] { display: flex; flex-direction: column; }
.site-dialog::backdrop { background: rgb(15 31 56 / 0.6); backdrop-filter: blur(3px); }
.site-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 4px solid var(--amber); flex-shrink: 0; }
.site-dialog__head h2 { margin: 0; }
.site-dialog__head h2:focus { outline: none; }
.site-dialog__close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); cursor: pointer; }
.site-dialog__close:hover { border-color: var(--ink); background: var(--fog); }
.site-dialog__close:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.site-dialog__body { width: 100%; max-width: none; min-height: 0; padding: 1.5rem; overflow-y: auto; overscroll-behavior: contain; }
.site-dialog__address { margin: 0 0 1rem; }
.site-dialog--map .map { height: clamp(270px, 45vh, 430px); }
@media (max-width: 639px) {
  .site-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .site-dialog__head, .site-dialog__body { padding: 1rem; }
  .site-dialog__head h2 { font-size: 1.25rem; }
}

/* ---------- Quick search ---------- */
.search {
  width: min(680px, calc(100vw - 24px)); max-height: min(640px, calc(100dvh - 48px)); margin: clamp(12px, 10vh, 120px) auto auto;
  padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(15 31 56 / 0.08);
  overflow: hidden; display: none; flex-direction: column;
}
.search[open] { display: flex; animation: search-in 0.22s var(--ease-out); }
.search::backdrop { background: rgb(15 31 56 / 0.55); backdrop-filter: blur(3px); animation: fade 0.2s ease-out; }
@keyframes search-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
.search__form { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem 0.6rem 1.1rem; border-bottom: 2px solid var(--fog); }
.search__icon { width: 24px; height: 24px; color: var(--sign); }
.search .search__input { flex: 1; min-width: 0; min-height: 52px; border: 0; padding: 0.4rem 0.25rem; font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.2rem); font-weight: 650; box-shadow: none; background: transparent; }
.search .search__input:focus { box-shadow: none; }
.search .search__input::-webkit-search-cancel-button { display: none; }
.search__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.search__close:hover { background: var(--fog); color: var(--ink); }
.search__close .i { width: 22px; height: 22px; }
.search__results { list-style: none; margin: 0; padding: 0.5rem; overflow-y: auto; }
.search__results:empty { display: none; }
.search__results li a { display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; row-gap: 0.1rem; padding: 0.7rem 0.85rem 0.65rem; border-radius: 10px; color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
.search__results li[aria-selected="true"] a, .search__results li a:hover { background: var(--fog); border-left-color: var(--amber); }
.search__kind { grid-row: 1 / span 2; align-self: start; margin-top: 0.15rem; padding: 0.15rem 0.5rem 0.05rem; border-radius: 5px; font-size: 0.75rem; font-weight: 800; background: var(--fog); color: var(--ink-2); white-space: nowrap; }
.search__kind--cursusdatum { background: var(--sign); color: #fff; }
.search__kind--vraag { background: #fff2cc; color: #5c4300; }
.search__kind--plaats { background: #e3f1e9; color: #14532d; }
.search__kind--oefenen { background: #efe7fb; color: #4b2a85; }
.search__title { font-weight: 800; line-height: 1.3; }
.search__desc { grid-column: 2; font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.search__hint { margin: 0; padding: 0.75rem 1.2rem 0.9rem; color: var(--muted); font-size: 0.92rem; }
.search__form { order: -2; } /* the search field always stays on top */
.search__results:not(:empty) + .search__hint:not([hidden]) { order: -1; padding-bottom: 0; font-weight: 700; }
.search-page__form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.search-list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 3px solid var(--ink); }
.search-list a { display: grid; gap: 0.15rem; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.search-list a:hover { background: var(--fog); }
.search-list__kind { font-size: 0.8rem; font-weight: 800; color: var(--sign); }
.search-list__title { font-weight: 800; font-size: 1.1rem; }
.search-list__desc { color: var(--muted); }

/* ---------- Scroll-driven reveals (only where supported; content is visible without) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .road::after { animation: line-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .road__step { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .package, .feature__media, .proof__copy, .session, .article-item, .faq__item, .region { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
/* reveal the centre line, never stretch it: every stripe keeps its size */
@keyframes line-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (min-width: 900px) { @keyframes line-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Page transitions (same-site navigation, where supported) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.16s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.3s var(--ease-out) both; }
/* the header swaps instantly: never stretch or fade its old snapshot (e.g. with the mobile menu open) */
::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media print {
  .site-header, .site-footer, .wa-float, .consent, .actions, .mobile-cta, .search, .hero__lane, .teeth { display: none !important; }
  .hero, .page-head { background: none; color: var(--ink); }
}

/* Breadcrumbs: always the first line inside the page's header band, same spacing everywhere.
   Dark band (hero, page head) -> light text; grey band (forms, search) -> grey background. */
main > .crumbs { position: relative; z-index: 2; }
main > .crumbs ol { padding-top: 1.1rem; padding-bottom: 0.2rem; }
main:has(> .hero, .page-head:not(.page-head--compact)) > .crumbs { background: var(--night); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); }
main:has(> .hero, .page-head:not(.page-head--compact)) > .crumbs ol { color: #9fb0c9; }
main:has(> .hero, .page-head:not(.page-head--compact)) > .crumbs a { color: #c7d3e6; }
main:has(> .hero, .page-head:not(.page-head--compact)) > .crumbs li + li::before { color: #6f84a6; }
main:has(.page-head--compact) > .crumbs { background: var(--fog); box-shadow: 0 0 0 100vmax var(--fog); clip-path: inset(0 -100vmax); }
main > .crumbs + .hero,
main > .crumbs + .page-head,
main > .crumbs + * > .page-head:first-child { padding-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
main > .crumbs + .page-head--compact { padding-top: 1rem; }

/* phones: the route sign (dates + seats) comes straight after the call to action */
@media (max-width: 979px) {
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; }
  .hero__lead { order: 2; font-size: 1.1rem; margin-bottom: 0; }
  .hero .actions { order: 3; margin-top: 1.4rem; }
  .hero .actions .btn--light { display: none; }
  .routesign--hero { order: 4; margin-top: 1.75rem; }
  .hero__facts { order: 5; margin-top: 1.5rem; font-size: 0.92rem; gap: 0.4rem 1.2rem; }
}
.page-head .error-page__code { color: var(--amber); }
.error-page__links { margin-top: 1.25rem; }

/* ---------- Contact map ---------- */
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.map-head h2 { margin: 0; }
.map { position: relative; height: clamp(320px, 45vw, 460px); border-radius: var(--radius); overflow: hidden; background: var(--fog); border: 2px solid var(--line); }
.map__canvas { position: absolute; inset: 0; z-index: 1; font: inherit; }
.map.is-ready .map__canvas { animation: fade 0.4s ease-out; }
.map__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.6rem; text-align: center; padding: 1rem; }
.map__fallback[hidden] { display: none; }
.map__fallback > .i { width: 40px; height: 40px; color: var(--amber); }
.map__fallback p { margin: 0; }
.map__credit { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.3)); animation: pin-drop 0.6s var(--ease-spring) 0.2s both; transform-origin: 50% 100%; }
@keyframes pin-drop { from { transform: translateY(-40px) scale(0.8); opacity: 0; } }
.map .leaflet-popup-content { margin: 0.8rem 1rem; font-size: 0.95rem; line-height: 1.45; }
.map .leaflet-popup-content p { margin: 0.25rem 0 0.5rem; }
.map .leaflet-popup-content a { font-weight: 700; }
.map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; font-size: 20px; color: var(--ink); }

/* ---------- "Plan je cursus": heading + action on the left, lead, tip and text on the right ---------- */
.plan-head { align-items: start; }
.plan-head__aside h2 { margin-bottom: 0.6rem; }
.plan-head__sub { margin: 0 0 1.4rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; max-width: 22ch; }
.plan-intro { max-width: 64ch; }
.plan-intro p { margin: 0 0 1rem; }
.plan-intro p:empty { display: none; }
.plan-intro > p:first-child { font-size: var(--step-1); font-weight: 700; line-height: 1.45; color: var(--ink); }
/* the "how it works" paragraph reads as a tip on a sign plate */
.plan-intro > p:nth-child(2) {
  position: relative; margin: 1.25rem 0 1.5rem; padding: 1.1rem 1.25rem 1.1rem 4.1rem;
  background: var(--sign-tint); border-radius: var(--radius); color: var(--ink);
  box-shadow: inset 4px 0 0 var(--sign);
}
.plan-intro > p:nth-child(2)::before {
  content: "i"; position: absolute; left: 1.15rem; top: 1.1rem; display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 6px; background: var(--sign); color: #fff;
  font-weight: 900; font-size: 1.15rem; line-height: 1; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px #fff;
}
.plan-intro > p:last-child { margin-bottom: 0; font-weight: 650; color: var(--ink); }
@media (min-width: 900px) { .plan-head__aside { position: sticky; top: 110px; } }

/* ---------- Road-sign pattern (after the old site's pattern.png) ----------
   24 rows of SVG sign strips behind the content; neighbouring rows slide in
   opposite directions as the section scrolls past. Static with reduced motion. */
/* overflow: clip (not hidden): a hidden-overflow box can still be scrolled by scripts, so scrollIntoView()
   inside the form would scroll the whole section and hide the blocks above it */
.section--signs { --signs-bg: #f6f8fb; position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--signs-bg); }
.section--signs > :not(.signs) { position: relative; z-index: 1; }
.signs { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.14; overflow: hidden; } /* the 24 rows never make the section scrollable */
.signs__row {
  height: 150px; width: calc(100% + 1200px); margin-left: -600px;
  background: url("/img/signs-a.svg") repeat-x 0 0 / 600px 150px;
  will-change: transform;
}
.signs__row:nth-child(3n + 2) { background-image: url("/img/signs-b.svg"); }
.signs__row:nth-child(3n) { background-image: url("/img/signs-c.svg"); }
.signs__row:nth-child(even) { transform: translateX(-300px); }
/* movement: see initSigns() in site.js (slow, eased, follows the scroll) */
/* text that sits directly on the pattern gets a soft fog backing so it stays easy to read */
.section--signs :is(.section__head h2, .section__intro, .cost-note, .form-block__hint:not(.form-block .form-block__hint), .muted) {
  width: fit-content; max-width: 100%;
  background: rgb(246 248 251 / 0.9); border-radius: 8px; box-shadow: 0 0 0 0.45rem rgb(246 248 251 / 0.9);
}
.section--signs .flash, .section--signs .empty { position: relative; }

/* ---------- Footer: Google rating ---------- */
.site-footer .footer-rating { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 0.15rem 0.7rem; margin-top: 1.25rem; padding: 0.7rem 0.95rem; border: 2px solid rgb(255 255 255 / 0.18); border-radius: var(--radius); color: #fff; text-decoration: none; transition: border-color 0.15s, transform 0.2s var(--ease-out); }
.site-footer .footer-rating:hover { border-color: var(--amber); color: #fff; text-decoration: none; transform: translateY(-2px); }
.footer-rating__text { grid-column: 1 / -1; font-weight: 750; font-size: 0.95rem; }
.footer-rating__src { grid-row: 1; grid-column: 2; font-family: Roboto, Arial, sans-serif; font-size: 13px; color: #c7d3e6; }
.footer-rating.is-loaded .footer-rating__text { animation: rise 0.35s var(--ease-out); }
/* five stars, filled to the exact score */
.stars-bar { position: relative; display: inline-block; font-size: 1.25rem; line-height: 1; letter-spacing: 0.08em; color: rgb(255 255 255 / 0.25); }
.stars-bar::before { content: "\2605\2605\2605\2605\2605"; }
.stars-bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; white-space: nowrap; color: var(--amber); transition: width 0.8s var(--ease-out); }
.stars-bar__fill::before { content: "\2605\2605\2605\2605\2605"; }
.footer-rating:not(.is-loaded) .stars-bar__fill { width: 0; } /* never suggest a score before the real one is loaded */
/* no Google reviews set up: our own reviews page (CMS → Reviews) */
.site-footer .footer-rating--own { grid-template-columns: auto; }
.stars-static { font-size: 1.25rem; line-height: 1; letter-spacing: 0.08em; color: var(--amber); }
.stars-static .stars__off { color: rgb(255 255 255 / 0.25); }

/* ---------- theory book: order form ---------- */
.book-buy { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 900px) { .book-buy { grid-template-columns: 1fr minmax(360px, 1fr); } }
.eyebrow-link { margin: 0 0 0.75rem; font-weight: 700; }
.eyebrow-link a { text-decoration: none; }
.book-buy__item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin: 1.5rem 0; padding: 1rem 1.1rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.book-buy__item p { margin: 0; }
.book-buy__name { font-weight: 800; }
.book-buy__price { font-size: 1.5rem; font-weight: 900; white-space: nowrap; }
.book-buy__note { margin: 0.75rem 0 0; font-size: 0.9rem; text-align: center; }
.book-buy__form h2 { margin-bottom: 1rem; font-size: var(--step-1); }
.book-buy__form .field { margin-bottom: 1rem; }
/* Book: practice packages that include it */
.reader__bundle { margin: 1rem 0 0; font-weight: 600; }
.book-bundle { margin-top: 1.75rem; padding: 1.25rem 1.25rem 1rem; border-radius: var(--radius); background: var(--fog); }
.book-bundle__title { margin: 0 0 0.4rem; font-size: var(--step-1); }
.book-bundle p { margin: 0 0 0.9rem; }
.book-bundle__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.book-bundle__list a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; padding: 0.75rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius-small); background: var(--paper); color: var(--ink); font-weight: 800; text-decoration: none; }
.book-bundle__list a:hover, .book-bundle__list a:focus-visible { border-color: var(--sign); }
.book-bundle__name { flex: 1 1 12rem; }
.book-bundle__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.book-bundle__price s { margin-right: 0.2rem; color: var(--muted); font-weight: 600; }
.book-bundle__price strong { color: var(--green); }
.book-bundle__arrow { width: 1.1em; height: 1.1em; }
.mini-book { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 3.6rem; height: 5rem; padding: 0.35rem 0.3rem 0.55rem 0.45rem; border-radius: 2px 5px 5px 2px; background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; box-shadow: 0 6px 12px -6px rgb(15 31 56 / 0.6); overflow: hidden; }
.mini-book::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.3rem; background: var(--amber); }
.mini-book__title { font-size: 0.62rem; font-weight: 900; line-height: 0.95; }
.mini-book__sub { margin-bottom: 0.15rem; font-size: 0.55rem; font-weight: 900; color: var(--amber); }
.field__hint { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); }
.reader__price .reader__price--buy { color: var(--ink); }
.reader--buy .checklist { margin: 0.5rem 0 1rem; }
#book-status h2 { font-size: var(--step-1); }
.flipbook__btn-price { display: block; margin-top: 0.15em; font-size: 0.85em; font-weight: 700; }
/* the book page: a bigger book */
@media (min-width: 820px) { .reader--buy { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.reader--buy .flipbook { --pw: min(300px, 48cqi); }

/* ---------- apply form: course dates as a calendar ---------- */
.cal { max-width: 30rem; margin-top: 0.25rem; }
@media (min-width: 1000px) { .apply .cal { width: 100%; max-width: none; } }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.cal__month { margin: 0; font-size: var(--step-1); font-weight: 850; text-transform: capitalize; }
.cal__nav { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer; }
.cal__nav:hover:not(:disabled) { background: var(--amber); border-color: var(--amber); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__nav:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 0.35rem; }
.cal__dow { padding-bottom: 0.35rem; font-size: 0.8rem; font-weight: 800; color: var(--muted); text-align: center; }
.cal__day { position: relative; display: grid; place-items: center; height: 2.75rem; margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal__day--past { color: #b3bccb; }
.cal__day--course { background: #fde6b4; color: var(--night); font-weight: 850; cursor: pointer; border-radius: 10px; transition: background-color 0.15s, color 0.15s; }
.cal__day--course.is-start { border-radius: 10px 0 0 10px; }
.cal__day--course.is-end { border-radius: 0 10px 10px 0; }
.cal__day--course.is-mid { border-radius: 0; }
.cal__day--course:hover { background: var(--amber); }
.cal__day--course.is-selected { background: var(--night); color: #fff; }
.cal__day--course:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; z-index: 1; }
.cal__day--course.is-few::after { content: ""; position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.9rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.cal__legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal__key { display: inline-block; width: 0.95rem; height: 0.95rem; border-radius: 4px; }
.cal__key--course { background: #fde6b4; }
.cal__key--sel { background: var(--night); }
.cal__key--few { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.cal__picked { display: grid; gap: 0.15rem; margin-top: 1rem; padding: 0.85rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius-small); background: var(--fog); }
.cal__picked strong { font-size: 1.05rem; }
.cal__picked span { color: var(--ink-2); }
.cal__hint { margin: 1rem 0 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cal__day--course { transition: none; } }
.choice-list[hidden], .cal[hidden] { display: none; }

/* ---------- apply form: compact spacing ---------- */
.page-head--compact:has(+ .section--tight) { padding-bottom: 1rem; }
.page-head--compact + .section--tight { padding-top: 0.5rem; padding-bottom: 2rem; }
.page-head--compact .progress { margin-bottom: 1rem; }
.apply .form-block { margin-bottom: 0.75rem; padding: clamp(1rem, 0.85rem + 0.6vw, 1.35rem); }
.apply .form-block legend { margin-bottom: 0.7rem; font-size: 1.15rem; }
.apply .form-block__hint { margin-bottom: 0.5rem; }
.apply .choice-grid { gap: 0.6rem; }
.apply .choice__body { padding: 0.75rem 0.9rem 0.7rem; }
.apply .choice--type .choice__body { flex-direction: row; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.apply .choice--type .choice__body img { width: 32px; height: 32px; }
.apply .choice--type .choice__note { flex-basis: 100%; }
.apply .choice--row .choice__body { padding-left: 2.75rem; }
.apply .choice--row .choice__body::before { left: 0.9rem; top: 0.9rem; }
.choice__flags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0; }
.choice__flags .package__flag { font-size: 0.78rem; padding: 0.2rem 0.6rem; }
.apply .checklist { margin: 0.35rem 0 0; font-size: 0.9rem; }
.apply .checklist li { padding: 0.08rem 0; line-height: 1.35; }
.apply .form__grid { gap: 0.75rem 1rem; }
.apply .cal__head { margin-bottom: 0.4rem; }
.apply .cal__nav { width: 36px; height: 36px; font-size: 1.4rem; }
.apply .cal__grid { row-gap: 0.2rem; }
.apply .cal__dow { padding-bottom: 0.15rem; }
.apply .cal__day { height: 2.3rem; }
.apply .cal__day--course.is-few::after { top: 4px; right: 6px; }
.apply .cal__legend { margin-top: 0.6rem; }
.apply .cal__picked { margin-top: 0.6rem; padding: 0.6rem 0.85rem; }
.apply .cal__hint { margin-top: 0.6rem; }
.apply .check { margin-top: 0.75rem; padding: 0.75rem; }
.apply .form__actions { margin-top: 1rem; }
@media (min-width: 640px) and (max-width: 779px) {
  .apply .form__grid--name > .field:last-child { grid-column: 1 / span 2; }
}
@media (min-width: 780px) {
  .apply .form__grid--name { grid-template-columns: 6.5rem 1fr 1fr 11rem; }
}
.apply .choice-grid--types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) {
  .apply .form__grid--name { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); }
  .apply .form__grid--name > .field:nth-child(n + 3) { grid-column: 1 / -1; }
  .apply .choice--type .choice__body { flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.4rem; }
  .apply .choice--type .choice__title { font-size: 0.95rem; }
  .apply .choice--type .choice__title small { display: block; }
  /* "Binnenkort" as a small label under the name, inside the box */
  .apply .choice--type .choice__note { flex-basis: auto; align-self: center; margin-top: 0.2rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--fog); color: var(--ink-2); font-size: 0.72rem; line-height: 1.4; white-space: nowrap; }
}
@media (min-width: 400px) and (max-width: 639px) {
  .apply .form__grid--address { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* the button bar runs edge to edge and flows straight into the white footer teeth */
.apply .form__actions--sticky { border-top: 0; background: var(--paper); backdrop-filter: none; box-shadow: 0 0 0 100vmax var(--paper), 0 -1px 0 100vmax var(--line); clip-path: inset(-1px -100vmax 0); }
.section:has(> #apply-form) { padding-bottom: 17px; }
body.has-sticky-form .site-footer::before { background-color: var(--paper); }

/* ---------- invoice details on the book and practice-plan order forms ---------- */
.billing { min-width: 0; margin: 1.25rem 0 0.5rem; padding: 1.1rem 0 0; border: 0; border-top: 2px solid var(--fog); }
.billing__title { float: left; width: 100%; margin: 0 0 0.25rem; padding: 0; font-size: 1.1rem; font-weight: 850; }
.billing__title ~ * { clear: both; }
.billing__lead { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.billing > .field { margin-bottom: 0.9rem; }
.billing__grid { display: grid; gap: 0.9rem 1rem; }
.billing__grid .field { margin-bottom: 0; }
@media (min-width: 340px) { .billing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
