/* Sluisdijk Roleplay — main.css
   Thema: zonsondergang boven de dijk. Oranje = zon, blauw = water en lucht.
   Site-thema (donker, "avond aan zee") en gemeente-thema (licht, officieel). */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --orange: #F39C12; --orange-h: #ce7f00;
  --blue: #68cdf7;   --blue-h: #17b7fc;
  --sea-950: #071726; --sea-900: #0B2135; --sea-800: #0F2A42; --sea-700: #163754; --sea-600: #23496b;
  --foam: #EEF6FB; --mist: #A9C2D4;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px; --gutter: clamp(1rem, 4vw, 2rem);
  --r-sm: 6px; --r: 10px; --r-lg: 18px;
  --header-h: 72px;
}

/* ---------- LICHT thema (standaard; ook zonder JavaScript als het systeem licht is) ---------- */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F9FC; --surface: #FFFFFF; --surface-2: #EAF3F9; --line: #D3E2EC;
  --text: #0B2135; --muted: #4A6479; --heading: #0B2135;
  --link: #0B6593; --link-h: #084a6c; --accent: #0B6593; --orange-text: #A65F00;
  --active-bg: #E3F3FB; --hover-line: #9CC3DC; --input-bg: #FFFFFF; --input-line: #BFD3E0;
  --row-hover: #F3F8FB; --row-selected: #FFF4E0;
  --ok-bg: #E4F5EA; --ok-line: #A8DCBC; --ok-text: #17693D;
  --warn-bg: #FFF6E6; --warn-line: #F0C27A;
  --danger-bg: #FDECEA; --danger-line: #F1A79D; --danger-text: #A3291C;
  --discord-bg: #EEF0FF; --discord-line: #C9CDFB; --mark: #FFE6B3;
  --kbd-bg: linear-gradient(180deg, #FFFFFF, #EEF4F8); --kbd-line: #C4D6E2; --kbd-text: #0B2135;
  --header-bg: rgba(255, 255, 255, .9); --ghost-line: #C4D6E2; --ghost-bg: #FFFFFF;
  --shadow: 0 14px 30px -18px rgba(11, 33, 53, .25);
}
/* ---------- DONKER thema ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B2135; --surface: #0F2A42; --surface-2: #163754; --line: #23496B;
  --text: #EEF6FB; --muted: #A9C2D4; --heading: #FFFFFF;
  --link: #68CDF7; --link-h: #9DDFFB; --accent: #68CDF7; --orange-text: #F39C12;
  --active-bg: rgba(104, 205, 247, .14); --hover-line: #3B6A91; --input-bg: #0B2135; --input-line: #2F5A80;
  --row-hover: rgba(104, 205, 247, .06); --row-selected: rgba(243, 156, 18, .14);
  --ok-bg: rgba(61, 220, 132, .13); --ok-line: rgba(61, 220, 132, .45); --ok-text: #7CF0B0;
  --warn-bg: rgba(243, 156, 18, .12); --warn-line: rgba(243, 156, 18, .45);
  --danger-bg: rgba(255, 107, 91, .13); --danger-line: rgba(255, 107, 91, .45); --danger-text: #FFA196;
  --discord-bg: rgba(88, 101, 242, .16); --discord-line: rgba(88, 101, 242, .5); --mark: rgba(243, 156, 18, .4);
  --kbd-bg: linear-gradient(180deg, #23496B, #163754); --kbd-line: #2F5A80; --kbd-text: #EEF6FB;
  --header-bg: rgba(11, 33, 53, .88); --ghost-line: rgba(238, 246, 251, .35); --ghost-bg: transparent;
  --shadow: 0 18px 40px -20px rgba(3, 12, 22, .7);
}
/* Geen JavaScript? Dan volgt de site het systeem. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0B2135; --surface: #0F2A42; --surface-2: #163754; --line: #23496B;
    --text: #EEF6FB; --muted: #A9C2D4; --heading: #FFFFFF;
    --link: #68CDF7; --link-h: #9DDFFB; --accent: #68CDF7; --orange-text: #F39C12;
    --active-bg: rgba(104, 205, 247, .14); --hover-line: #3B6A91; --input-bg: #0B2135; --input-line: #2F5A80;
    --header-bg: rgba(11, 33, 53, .88); --ghost-line: rgba(238, 246, 251, .35); --ghost-bg: transparent;
  }
}
/* Onderdelen die altijd donker zijn (foto's, footer, calculator): vaste lichte tekst */
.hero, .page-hero, .cta-strip, .site-footer, .calc {
  --text: #EEF6FB; --muted: #A9C2D4; --heading: #FFFFFF; --link: #68CDF7; --link-h: #9DDFFB; --orange-text: #F39C12;
  --ghost-line: rgba(238, 246, 251, .45); --ghost-bg: rgba(7, 23, 38, .35); color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; font-weight: 450;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-h); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.25rem; }
.display { text-transform: uppercase; font-weight: 900; letter-spacing: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--orange); color: var(--sea-900); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; } .prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; } .prose li { margin-bottom: .35rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: var(--r-sm); border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-orange { background: var(--orange); color: var(--sea-900); }
.btn-orange:hover { background: var(--orange-h); color: var(--sea-900); }
.btn-blue { background: var(--blue); color: var(--sea-900); }
.btn-blue:hover { background: var(--blue-h); color: var(--sea-900); }
.btn-ghost { border-color: var(--ghost-line); color: var(--text); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--active-bg); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(104, 205, 247, .14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-text { font-weight: 900; text-transform: uppercase; font-size: 1.1rem; line-height: 1; display: flex; flex-direction: column; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .32em; color: var(--orange-text); margin-top: .3rem; }
.brand-small { font-size: .7rem; font-weight: 600; text-transform: none; color: var(--muted); margin-bottom: .2rem; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: .5rem .6rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: var(--r-sm); }
.main-nav a:not(.btn):hover { background: rgba(104, 205, 247, .1); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--orange-text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.main-nav a.nav-gemeente { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.theme-gemeente .site-header { background: var(--surface); backdrop-filter: none; }
.gem-topbar { background: var(--sea-900); color: var(--mist); font-size: .85rem; padding-top: env(safe-area-inset-top, 0px); }
.gem-topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.gem-topbar a { color: var(--foam); font-weight: 700; text-decoration: none; }
.gem-topbar a::before { content: "‹ "; color: var(--orange-text); }
.theme-gemeente .site-header { padding-top: 0; }

@media (max-width: 1240px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: .9rem; }
  .theme-gemeente .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
  .gem-topbar span { display: none; }
}

/* ---------- home hero: het banner-kader boven de horizon ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 900px); display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 56%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,33,53,.1) 0%, rgba(11,33,53,0) 40%, rgba(11,33,53,.55) 80%, var(--bg) 100%); }
:root[data-theme="light"] .hero::after { background: linear-gradient(180deg, rgba(11,33,53,.15) 0%, rgba(11,33,53,.05) 40%, rgba(11,33,53,.4) 100%); }
.hero-frame {
  width: min(100%, 1180px); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(7, 23, 38, .5); border: 1px solid rgba(238, 246, 251, .22);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); text-align: center;
}
.hero-logo { width: clamp(120px, 16vw, 188px); margin: 0 auto 1.25rem; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
.hero h1 {
  font-size: clamp(2.6rem, 10.5vw, 6.4rem); text-transform: uppercase; font-weight: 900; line-height: .95; margin: 0;
  background: linear-gradient(180deg, #fff 45%, #cfd9e1 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
}
.tagline { font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--orange-text); letter-spacing: .01em; line-height: 1.3; }
.hero .tagline { font-size: clamp(.95rem, 1.9vw, 1.35rem); margin: .9rem 0 0; }
.hero-intro { max-width: 58ch; margin: 1.25rem auto 0; color: #dbe7ef; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 1rem clamp(1.5rem, 5vw, 4rem); margin: 2rem auto 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(238, 246, 251, .18); max-width: 760px; text-align: left; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; }
.stat-icon { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--blue); }
.stat dt { font-size: .8rem; font-weight: 600; color: #bcd0dd; line-height: 1.2; }
.stat dd { margin: 0; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.stat dd a { color: #fff; text-decoration: none; text-transform: none; }
.stat dd a:hover { color: var(--blue); }
.stat .status-dot { width: 14px; height: 14px; margin: 0 8px; }
.stat[data-state="online"] dd { color: #5ff0a0; }
.stat[data-state="offline"] dd { color: #ff8a7d; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr; justify-content: stretch; max-width: 260px; } }
.hero-status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: .95rem; color: #dbe7ef; }
.copy-cmd { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .92rem; font-weight: 600; color: #dbe7ef; background: rgba(7,23,38,.6); border: 1px dashed rgba(104,205,247,.5); border-radius: var(--r-sm); padding: .4rem .75rem; cursor: pointer; }
.copy-cmd:hover { border-color: var(--blue); color: #fff; }
.copy-cmd code { font-family: inherit; color: var(--blue); font-weight: 700; }

.status { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 3px rgba(169,194,212,.2); }
[data-state="online"] .status-dot { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
[data-state="offline"] .status-dot { background: #ff6b5b; box-shadow: 0 0 0 3px rgba(255,107,91,.25); }
@media (prefers-reduced-motion: no-preference) {
  [data-state="online"] .status-dot { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } }
  .hero-frame > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-frame > :nth-child(2) { animation-delay: .08s; } .hero-frame > :nth-child(3) { animation-delay: .16s; }
  .hero-frame > :nth-child(4) { animation-delay: .24s; } .hero-frame > :nth-child(n+5) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--orange); }
.facts div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: .15rem 0 0; font-weight: 800; font-size: 1.15rem; }

/* stappen: echte volgorde, dus genummerd */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--blue)); }
.steps li { counter-increment: step; position: relative; padding-right: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); color: var(--orange-text); font-weight: 900; font-size: 1.1rem; margin-bottom: 1.1rem; position: relative; }
.steps li:nth-child(n+3)::before { border-color: var(--blue); color: var(--accent); }
.steps h3 { margin-bottom: .35rem; } .steps p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--orange), var(--blue)); }
  .steps li { padding: 0 0 0 4.25rem; } .steps li::before { position: absolute; left: 0; top: -4px; }
}

/* carrières: kleur codeert soort beroep (blauw = hulpdienst/overheid, oranje = burger/ondernemer) */
.careers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 3rem; }
.career { padding: 1.6rem 0 1.4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; }
.career-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(104,205,247,.12); color: var(--accent); }
.career[data-kind="burger"] .career-icon { background: rgba(243,156,18,.13); color: var(--orange-text); }
.career-icon svg { width: 24px; height: 24px; }
.career h3 { margin: .45rem 0 .35rem; font-size: 1.15rem; }
.career p { grid-column: 2; color: var(--muted); font-size: .98rem; margin: 0 0 .5rem; }
.career a { grid-column: 2; font-weight: 700; font-size: .95rem; }
.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: .9rem; margin: -1.25rem 0 1.5rem; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); margin-right: .45rem; }
.legend span + span::before { background: var(--orange); }

/* gemeente teaser (lichte "brief" op donkere site) */
.gem-teaser { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow); }
.gem-teaser-body { padding: clamp(1.75rem, 4vw, 3rem); border-top: 6px solid var(--blue); }
.gem-teaser h2 { color: var(--heading); }
.gem-teaser p { color: var(--muted); }
.gem-teaser-links { background: var(--surface); padding: clamp(1.75rem, 4vw, 3rem); border-top: 6px solid var(--orange); }
.gem-teaser-links ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.gem-teaser-links li a { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.gem-teaser-links li a:hover { color: var(--accent); }
.gem-teaser-links li a::after { content: "›"; color: var(--orange-text); font-weight: 900; }
@media (max-width: 860px) { .gem-teaser { grid-template-columns: 1fr; } }
.search-inline { display: flex; gap: .5rem; margin-top: 1.25rem; }
.search-inline input { flex: 1; min-width: 0; }

/* ---------- forms ---------- */
input[type="text"], input[type="search"], input[type="email"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--input-bg); border: 1px solid var(--input-line);
  border-radius: var(--r-sm); padding: .75rem .9rem; width: 100%;
}

textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgba(104,205,247,.4); outline-offset: 0; }
label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field { margin-bottom: 1.1rem; }
.field-hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { margin-top: .35rem; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.form-msg { padding: .9rem 1rem; border-radius: var(--r-sm); margin-top: 1rem; font-weight: 600; }
.form-msg[data-type="ok"] { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-text); }
.form-msg[data-type="error"] { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger-text); }
[aria-invalid="true"] { border-color: #ff6b5b !important; }

/* ---------- subpage hero ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 3.5rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,33,53,.94) 0%, rgba(11,33,53,.78) 55%, rgba(11,33,53,.5) 100%); }
.page-hero h1 { text-transform: uppercase; margin-bottom: .6rem; }
.page-hero .lead { color: #d3e1ea; margin: 0; }
.page-hero .breadcrumb a, .page-hero .breadcrumb li::before { color: #cfe0ea; } .page-hero .breadcrumb [aria-current] { color: #fff; }
.breadcrumb { font-size: .88rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); } .breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* gemeente page header: licht, officieel */
.gem-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2.25rem, 6vw, 3.5rem) 0; }
.gem-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--heading); }
.gem-hero .lead { margin: 0; }
.gem-home-hero { background: linear-gradient(90deg, rgba(11,33,53,.9), rgba(11,33,53,.55)), url("/assets/img/panorama-1600.webp") center 60% / cover; color: #fff; padding: clamp(3rem, 8vw, 5rem) 0; }
.gem-home-hero h1 { color: #fff; } .gem-home-hero .lead { color: #d3e1ea; }
.gem-search { display: flex; gap: .5rem; max-width: 620px; margin-top: 1.5rem; }
.gem-search input { background: #fff; color: #0B2135; border: 0; padding: .95rem 1rem; }

/* ---------- cards (alleen waar content echt kaart-achtig is) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.4rem 1.2rem; text-decoration: none; color: var(--text); transition: border-color .15s; }
a.tile:hover { border-color: var(--blue); color: var(--text); }
.tile h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.tile p { color: var(--muted); font-size: .96rem; margin: 0; }
.tile-icon { width: 40px; height: 40px; margin-bottom: .9rem; color: var(--orange-text); }
.theme-gemeente .tile-icon { color: var(--accent); }

.notice { border-left: 4px solid var(--orange); background: var(--surface-2); padding: 1rem 1.2rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 1.5rem; }
.notice p:last-child { margin: 0; }
.notice-blue { border-left-color: var(--blue); }

/* ---------- regels ---------- */
.layout-aside { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .layout-aside { grid-template-columns: 1fr; } .aside-sticky { position: static; } }
.toc-list { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a { display: flex; gap: .6rem; padding: .45rem 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.toc-list a::before { content: counter(toc); color: var(--orange-text); font-weight: 800; min-width: 1.2em; }
.toc-list a:hover, .toc-list a.active { color: var(--text); }
.rule-group { margin-bottom: 3rem; }
.rule-group h2 { display: flex; align-items: baseline; gap: .8rem; font-size: 1.6rem; }
.rule-group-nr { color: var(--orange-text); font-weight: 900; }
.rule-intro { color: var(--muted); }
.rule, .faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: .5rem; }
.rule summary, .faq summary { list-style: none; cursor: pointer; display: flex; gap: .9rem; align-items: baseline; padding: 1rem 1.2rem; font-weight: 700; }
.rule summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.rule summary::after, .faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.rule[open] summary::after, .faq[open] summary::after { content: "−"; }
.rule[open], .faq[open] { background: var(--surface-2); }
.rule[open], .faq[open] { border-color: var(--hover-line); }
.rule-nr { color: var(--orange-text); font-weight: 800; min-width: 2.4em; font-variant-numeric: tabular-nums; }
.rule-body, .faq-body { padding: 0 1.2rem 1.1rem calc(1.2rem + 2.4em + .9rem); color: var(--muted); }
.faq-body { padding-left: 1.2rem; }
.rule-body p, .faq-body p { margin-bottom: .5rem; color: var(--text); opacity: .88; }
.rule-link { font-size: .85rem; }
.rule:target { outline: 2px solid var(--orange); }
.filter-bar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.filter-bar input[type="search"] { flex: 1 1 280px; }
.filter-bar select { flex: 0 1 260px; }
.result-count { color: var(--muted); font-size: .9rem; }
.empty-state { padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.faq-group { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.faq-group:first-child { margin-top: 0; }

/* ---------- sollicitaties ---------- */
.jobs { display: grid; gap: 1rem; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-left: 4px solid var(--blue); }
.job[data-kind="staff"] { border-left-color: var(--orange); }
.job h3 { margin: 0 0 .25rem; }
.job p { margin: 0; color: var(--muted); font-size: .96rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.job-meta strong { color: var(--text); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); }
.badge-closed { background: var(--danger-bg); color: var(--danger-text); }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.25rem); }

/* ---------- team ---------- */
.team-group { margin-bottom: 3rem; }
.team-group h2 { font-size: 1.4rem; display: flex; align-items: center; gap: .75rem; }
.team-group h2::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--orange)); }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.member { display: flex; align-items: center; gap: .9rem; padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900; color: var(--sea-900); background: var(--c, var(--orange)); }
.member strong { display: block; line-height: 1.2; } .member span { font-size: .88rem; color: var(--muted); }

/* ---------- doneren ---------- */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; align-items: stretch; }
.package { display: flex; flex-direction: column; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.package.featured { border: 2px solid var(--orange); }
.package h3 { margin-bottom: .2rem; }
.price { font-size: 2.2rem; font-weight: 900; margin: .5rem 0 1rem; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.package ul { padding-left: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; flex: 1; }
.package li { margin-bottom: .35rem; }

/* ---------- wetboek ---------- */
.wb-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 1000px) { .wb-layout { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.wb-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 680px; }
.wb-table th, .wb-table td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.wb-table thead th { background: var(--sea-900); color: #fff; font-size: .85rem; font-weight: 700; position: sticky; top: 0; }
.wb-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-table thead .num { text-align: right; }
.wb-cat th { background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: .92rem; }
.wb-art { font-weight: 700; white-space: nowrap; }
.wb-row { cursor: pointer; } .wb-row:hover { background: var(--row-hover); }
.wb-row.selected { background: var(--row-selected); }
.wb-check { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.calc { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--sea-900); color: var(--foam); border-radius: var(--r-lg); padding: 1.5rem; }
.calc .muted { color: var(--mist); }
.calc h2 { font-size: 1.2rem; color: #fff; }
.calc-totals { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 1rem 0; }
.calc-totals div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--sea-600); }
.calc-totals dt { color: var(--mist); } .calc-totals dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-totals .total dd { color: var(--orange-text); font-size: 1.3rem; }
.calc-list { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: var(--mist); max-height: 180px; overflow-y: auto; }
.calc-list li { padding: .25rem 0; }
.calc .btn { width: 100%; margin-top: .5rem; }
.calc .btn-ghost { background: transparent; }
:root[data-theme="dark"] .calc { background: var(--sea-950); border: 1px solid var(--line); }
@media (max-width: 1000px) { .calc { position: static; } }

/* gemeente algemeen */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .96rem; }
.data-table th, .data-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--surface-2); font-size: .85rem; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.news-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; }
.news-item time { font-weight: 700; color: var(--accent); font-size: .92rem; }
.news-item h3 { margin-bottom: .35rem; }
.news-item p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: .25rem; } }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; border-top: 4px solid var(--c, var(--blue)); }
.service h2 { font-size: 1.3rem; }
.service dl { margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .95rem; }
.service dt { color: var(--muted); } .service dd { margin: 0; font-weight: 600; }

/* ---------- CTA strip + footer ---------- */
.cta-strip { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.cta-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; z-index: -2; }
.cta-strip::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 23, 38, .66); }
.cta-strip h2 { text-transform: uppercase; font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-strip p { color: #d3e1ea; max-width: 52ch; margin: 0 auto 1.75rem; }
.cta-strip .btn-row { justify-content: center; }

.site-footer { --muted: var(--mist); --text: var(--foam); background: var(--sea-950); color: var(--mist); padding: 4rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: .95rem; color: var(--foam); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-brand img { margin-bottom: 1rem; }
.footer-brand .tagline { font-size: .9rem; margin-bottom: .6rem; }
.footer-legal { border-top: 1px solid rgba(104,205,247,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .82rem; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--foam); color: var(--sea-900); font-weight: 700; padding: .75rem 1.2rem; border-radius: var(--r-sm); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }
/* keybindings */
.kb-group { margin-bottom: 2.5rem; }
.kb-group h2 { font-size: 1.5rem; }
.kb-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.kb-table th, .kb-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kb-table thead th { font-size: .82rem; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.kb-table tbody tr:last-child td { border-bottom: 0; }
.kb-table td:first-child { width: 11rem; white-space: nowrap; }
.key-combo { display: inline-flex; align-items: center; gap: .35rem; }
.key-combo .plus { color: var(--muted); font-weight: 700; }
kbd { display: inline-block; min-width: 2.1rem; padding: .28rem .55rem; text-align: center; font: inherit; font-size: .85rem; font-weight: 800; color: var(--kbd-text);
  background: var(--kbd-bg); border: 1px solid var(--kbd-line); border-bottom-width: 3px; border-radius: 6px; }
.kb-cmd code { font-family: inherit; font-weight: 700; color: var(--accent); font-size: .92rem; }

/* vote knop */
.vote-float { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 999px; font-weight: 800; font-size: .92rem; text-decoration: none;
  background: var(--orange); color: var(--sea-900); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); transition: background-color .15s; }
.vote-float:hover { background: var(--orange-h); color: var(--sea-900); }
.vote-float svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .vote-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .vote-float { padding: .8rem; } }

.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.err-page h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--orange-text); margin: 0; line-height: 1; }

@media print { .site-header, .site-footer, .calc, .filter-bar, .gem-topbar { display: none; } body { background: #fff; color: #000; } }

/* =====================================================================
   GEMEENTE: documentatie-layout met zijbalk (licht, officieel)
   ===================================================================== */
.theme-gemeente .gem-header { border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--blue); padding-top: env(safe-area-inset-top, 0px); }
.gem-header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); padding: 0 clamp(1rem, 3vw, 2rem); max-width: 1480px; margin: 0 auto; }
.gem-header .brand { flex: none; }
.search-trigger { flex: 1 1 auto; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; font: inherit; font-size: .95rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .8rem; cursor: pointer; text-align: left; }
.search-trigger:hover { border-color: var(--hover-line); color: var(--text); }
.search-trigger svg { width: 18px; height: 18px; flex: none; }
.search-label { flex: 1; }
.search-kbd { font-size: .75rem; padding: .15rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--muted); font-weight: 700; }
.gem-actions { display: flex; gap: .5rem; flex: none; }
.side-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--text); flex: none; }
.side-toggle[aria-expanded="true"] .bars { background: transparent; }
.side-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.side-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.docs { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; min-height: calc(100vh - var(--header-h)); }
.docs-sidebar { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.5rem 1rem 3rem clamp(1rem, 2vw, 1.5rem); border-right: 1px solid var(--line); font-size: .93rem; }
.docs-sidebar ul { list-style: none; margin: 0; padding: 0; }
.docs-sidebar ul ul { margin: .15rem 0 .35rem .65rem; padding-left: .65rem; border-left: 1px solid var(--line); }
.side-sec + .side-sec { margin-top: 1.4rem; }
.side-label { font-size: .78rem; font-weight: 800; color: var(--heading); margin: 0 0 .4rem .6rem; letter-spacing: .02em; }
.docs-sidebar a { display: block; padding: .38rem .6rem; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-weight: 550; line-height: 1.35; }
.docs-sidebar a:hover { background: var(--surface-2); color: var(--text); }
.docs-sidebar a[aria-current="page"] { color: var(--accent); background: var(--active-bg); font-weight: 700; box-shadow: inset 3px 0 0 var(--orange); }
.side-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .38rem .6rem; border-radius: var(--r-sm); color: var(--text); font-weight: 650; line-height: 1.35; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.side-group[open] > summary::after { transform: rotate(45deg); }
.side-group > summary:hover { background: var(--surface-2); }

.docs-main { display: grid; grid-template-columns: minmax(0, 800px) 210px; gap: clamp(2rem, 4vw, 4rem); padding: 2rem clamp(1rem, 4vw, 3.5rem) 4rem; justify-content: start; }
.docs-main:not(:has(.page-toc)) { grid-template-columns: minmax(0, 1100px); }
.docs-article { min-width: 0; }
.docs-article > h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 1rem; color: var(--heading); }
.docs-article h2 { font-size: 1.45rem; margin-top: 2.25rem; color: var(--heading); scroll-margin-top: calc(var(--header-h) + 1rem); }
.docs-article h3 { color: var(--heading); }
.docs-article > p, .docs-article > ul, .docs-article > ol:not(.steps):not(.news-list) { max-width: 72ch; }
.docs-article ul:not([class]) { padding-left: 1.2rem; } .docs-article ul:not([class]) li { margin-bottom: .35rem; }
.docs-article .lead { font-size: 1.15rem; }
.docs .breadcrumb a { color: var(--muted); }
.docs .breadcrumb li:not(:has(a)):not([aria-current]) { color: var(--muted); }
.page-toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; font-size: .88rem; max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; }
.page-toc h2 { font-size: .82rem; font-weight: 800; margin: 0 0 .6rem; color: var(--heading); }
.page-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.page-toc a { display: block; padding: .3rem 0 .3rem .8rem; color: var(--muted); text-decoration: none; line-height: 1.35; margin-left: -1px; border-left: 2px solid transparent; }
.page-toc a:hover { color: var(--text); }
.page-toc a.active { color: var(--accent); border-left-color: var(--orange); font-weight: 700; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pn { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); background: var(--surface); }
.pn span { font-size: .8rem; color: var(--muted); } .pn strong { font-size: 1rem; }
.pn:hover { border-color: var(--accent); color: var(--text); }
.pn-next { text-align: right; grid-column: 2; }

.gem-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; aspect-ratio: 16 / 5; background: var(--sea-900); }
.gem-banner img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.gem-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,33,53,.1), rgba(11,33,53,.55)); }
.gem-banner-logo { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: clamp(80px, 16%, 150px); z-index: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.docs .tiles { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .docs .tiles { grid-template-columns: 1fr; } }

.card-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 1.5rem; }
.card-link { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .85rem 2.5rem .85rem 1.1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); text-decoration: none; color: var(--text); position: relative; min-height: 3.2rem; }
.card-link::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
.card-link:hover { border-color: var(--accent); color: var(--text); } .card-link:hover::after { border-color: var(--accent); }
.card-link strong { font-size: .98rem; line-height: 1.35; } .card-link span { font-size: .85rem; color: var(--muted); }
.card-link-accent { border-color: var(--orange); background: var(--warn-bg); }
.card-links-sm .card-link { min-height: 0; padding-block: .7rem; }
@media (max-width: 640px) { .card-links { grid-template-columns: 1fr; } }

.article-block { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.article-block h2 { margin-top: 2rem; font-size: 1.3rem; }
.article-block:target h2, .article-block:has(h2:target) h2 { color: var(--accent); }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.cat-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem .22rem .5rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--heading); background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 50%, var(--surface)); text-decoration: none; }
.cat-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.cat-badge:hover { color: var(--heading); border-color: var(--c); }
.cat-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cat-list li { display: grid; grid-template-columns: auto 8.5rem 1fr; align-items: center; gap: .8rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: 0; }
.cat-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
@media (max-width: 520px) { .cat-list li { grid-template-columns: auto 1fr; } .cat-list li span:last-child { grid-column: 2; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.two-col ul { padding-left: 1.2rem; } .two-col li { margin-bottom: .35rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.job-kop { font-weight: 800; font-size: 1.05rem; color: var(--heading); border-left: 4px solid var(--c); padding-left: .75rem; }
.job { border-left-color: var(--c, var(--blue)); }
.job-title { font-size: 1.25rem !important; margin: 0 0 .3rem !important; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.steps-compact { margin-top: 1rem; }
.steps-compact li::before { background: var(--surface); }
.steps-compact h3 { font-size: 1rem; }
.theme-gemeente .steps li::before { background: var(--bg); }
.gform { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.gform iframe { width: 100%; height: 1400px; border: 0; display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--danger-text); font-size: .85rem; font-weight: 600; margin: .3rem 0 0; }
.char-count { font-size: .8rem; color: var(--muted); text-align: right; margin-top: .25rem; }
.theme-gemeente .form-card { max-width: 720px; }
.news-title { font-size: 1.15rem !important; margin: 0 0 .35rem !important; }
.cmd-copy { font: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .25rem .55rem; cursor: pointer; text-align: left; }
.cmd-copy:hover { border-color: var(--accent); }
.cmd-copy code, .cmd-inline { font-family: inherit; font-weight: 700; color: var(--accent); font-size: .92rem; }
.theme-gemeente .kb-table td:first-child { width: 10rem; }
.calc-title { margin-top: 0 !important; color: #fff !important; font-size: 1.2rem !important; }
.wb-simple .wb-art { width: 7rem; }

/* zoekvenster (Ctrl K) */
.search-dialog { position: fixed; inset: 0; z-index: 300; background: rgba(7, 23, 38, .55); display: grid; justify-items: center; align-items: start; padding: max(8vh, env(safe-area-inset-top, 0px)) 1rem 1rem; }
.search-dialog[hidden] { display: none; }
.search-panel { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(11,33,53,.5); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-field input { border: 0 !important; outline: 0 !important; padding: .2rem 0; font-size: 1.05rem; background: transparent !important; }
.search-close { font: inherit; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .2rem .45rem; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: .4rem; max-height: min(60vh, 520px); overflow-y: auto; }
.search-results a { display: block; padding: .65rem .8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--active-bg); }
.search-results .sr-c { display: block; font-size: .78rem; color: var(--muted); }
.search-results .sr-t { display: block; font-weight: 700; }
.search-results .sr-x { display: block; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results mark { background: var(--mark); color: inherit; border-radius: 2px; }
.search-empty { padding: 1.2rem; color: var(--muted); text-align: center; }

@media (max-width: 1200px) { .docs-main { grid-template-columns: minmax(0, 1fr); } .page-toc { display: none; } }
@media (max-width: 1100px) { .gem-actions .btn-ghost, .gem-actions .btn-blue { display: none; } }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .side-toggle { display: grid; place-items: center; }
  .docs-sidebar { position: fixed; top: var(--header-h); left: 0; bottom: 0; width: min(320px, 88vw); height: auto; z-index: 45; background: var(--surface);
    transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(11,33,53,.2); padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
  .docs-sidebar.open { transform: none; }
  .search-trigger .search-label, .search-kbd { display: none; }
  .search-trigger { flex: 0 0 auto; margin: 0 0 0 auto; padding: .6rem; }
  .gem-actions { display: none; }
}
@media (max-width: 560px) { .prev-next { grid-template-columns: 1fr; } .pn-next { grid-column: 1; } }
@media print { .docs-sidebar, .page-toc, .prev-next, .search-dialog { display: none !important; } .docs { display: block; } }

/* sollicitatieformulier: keuzevragen, secties, afwijzing */
.form-section { font-size: 1.05rem; margin: 2rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--heading); }
.form-card > .form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.req { color: #c0392b; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.3rem; min-width: 0; }
fieldset.field legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.choices { display: grid; gap: .4rem; }
.choices-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice-opt { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; margin: 0; padding: .6rem .8rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s; line-height: 1.4; }
.choice-opt:hover { border-color: var(--hover-line); }
.choice-opt input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--accent); flex: none; }
.choice-opt:has(input:checked) { border-color: var(--accent); background: var(--active-bg); }
.choice-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset[data-type="confirm"] .choice-opt:has(input:checked) { border-color: #2e9e5e; background: var(--ok-bg); }
fieldset[data-type="confirm"] .choice-opt input { accent-color: #2e9e5e; }
.has-error .choice-opt { border-color: var(--danger-line); }
.afsluiting { background: var(--surface-2); border-top: 4px solid var(--accent); border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; font-size: .96rem; }
.afsluiting p { margin-bottom: .6rem; }
.afsluiting-sign { display: flex; flex-direction: column; margin: 1rem 0 0 !important; }
.afsluiting-sign em { color: var(--muted); }
.reject-box { border: 1px solid var(--warn-line); background: var(--warn-bg); border-left: 4px solid var(--orange); border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.reject-box h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.reject-box p { margin: 0; }
.is-rejected-hidden { display: none !important; }

/* ---------- Markdown-artikelen (APV & wetboek) ---------- */
.article-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.article-head h1 { margin-bottom: 1rem; }
.copy-page { flex: none; display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4rem .7rem; cursor: pointer; }
.copy-page:hover { color: var(--text); border-color: var(--hover-line); }
.copy-page svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .copy-page { display: none; } }
.article-body > :is(p, ul, ol, blockquote, h2, h3, hr, .table-scroll, .straf-blok) { max-width: 78ch; }
.wb-art a { color: inherit; text-decoration: none; } .wb-art a:hover { color: var(--accent); text-decoration: underline; }
.article-body > p, .article-body li { line-height: 1.7; }
.article-body strong { color: var(--heading); font-weight: 750; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }
.article-body h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.article-body h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.article-body li { margin-bottom: .45rem; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body ol ol { list-style: lower-alpha; margin: .5rem 0 .25rem; }
.article-body ol ol ol { list-style: lower-roman; }
.article-body ul ul { list-style: circle; margin: .4rem 0 .2rem; }
.article-body a { font-weight: 600; }
.article-body code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.article-body blockquote { margin: 1.25rem 0; padding: .9rem 1.1rem; background: var(--surface-2); border-left: 4px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.callout { border-left-color: var(--accent) !important; background: var(--active-bg) !important; }
.callout-warn { border-left-color: var(--orange) !important; background: var(--warn-bg) !important; }
.callout-danger { border-left-color: #c0392b !important; background: var(--danger-bg) !important; }
.callout-tip { border-left-color: #2e9e5e !important; background: var(--ok-bg) !important; }
.callout-title { font-weight: 800; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: .3rem !important; color: var(--heading); }
.straf-tabel { margin: 1.5rem 0; }
.straf-tabel th[scope="row"] { font-weight: 700; width: 28%; }
.straf-tabel thead th { background: var(--surface-2); }
.straf-blok { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.straf-blok h2 { margin-top: 0 !important; }
.straf-blok ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.straf-blok li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1.05rem; }
.straf-blok li a { color: var(--heading); text-decoration: none; }
.straf-blok li a:hover { text-decoration: underline; }
.straf-blok li span:last-child { color: var(--muted); }
.straf-toelichting { font-style: italic; color: var(--muted); }
.md-table { margin: 0; }
.side-group.has-page > summary > a { padding: 0; background: none !important; box-shadow: none !important; color: inherit; font-weight: 650; flex: 1; }
.side-group.has-page > summary > a[aria-current="page"] { color: var(--accent); }
.side-group.has-page > summary:has(a[aria-current="page"]) { background: var(--active-bg); box-shadow: inset 3px 0 0 var(--orange); }

/* ---------- Discord koppelen + concept ---------- */
.discord-link { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: 1rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--r);
  background: var(--discord-bg); border: 1px solid var(--discord-line); transition: box-shadow .2s; }
.discord-link > div { flex: 1 1 220px; display: flex; flex-direction: column; line-height: 1.35; }
.discord-link span { font-size: .88rem; color: var(--muted); }
.discord-link img { border-radius: 50%; }
.discord-link.is-linked { background: var(--ok-bg); border-color: var(--ok-line); }
.discord-link.pulse { box-shadow: 0 0 0 4px rgba(88, 101, 242, .35); }
.discord-unlink { font-size: .85rem; }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752C4; color: #fff; }
.draft-note { font-size: .85rem; color: var(--muted); margin: 0 0 1.25rem; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- thema-schakelaar ---------- */
.theme-toggle { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.theme-toggle button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button[aria-checked="true"] { background: var(--surface); color: var(--orange-text); box-shadow: 0 1px 3px rgba(11, 33, 53, .18); }
.theme-toggle svg { width: 16px; height: 16px; }
.site-header:not(.gem-header) .theme-toggle { background: transparent; }
@media (max-width: 1240px) { .site-header:not(.gem-header) .main-nav .theme-toggle { align-self: flex-start; margin: .5rem 0; } }
.gem-header .theme-toggle { margin-left: auto; }
.gem-header .search-trigger + .theme-toggle { margin-left: 0; }
@media (max-width: 900px) { .gem-header .theme-toggle button { width: 28px; height: 28px; } }

/* ---------- menukopjes gemeente: duidelijker ---------- */
.side-sec + .side-sec { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.side-label { display: flex; align-items: center; gap: .55rem; margin: 0 0 .55rem .35rem !important; font-size: .74rem !important; font-weight: 800 !important;
  letter-spacing: .09em !important; text-transform: uppercase; color: var(--heading) !important; }
.side-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; background: rgba(243, 156, 18, .16); color: var(--orange-text); }
.side-icon svg { width: 14px; height: 14px; }
.side-sec > ul > li > a, .side-sec > ul > li > details > summary { font-weight: 650; color: var(--text); }
.side-sec > ul > li > details ul a { font-weight: 500; }
.wb-layout > * { min-width: 0; }
#wetboek .wb-art { white-space: normal; }
@media (max-width: 480px) { .gem-header .brand-text { display: none; } .gem-header-inner { gap: .6rem; } .theme-gemeente .kb-table td:first-child { width: auto; } }

/* ---------- terugknop in de gemeente ---------- */
.back-btn { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .5rem .85rem .5rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none; }
.back-btn:hover { border-color: var(--accent); color: var(--accent); }
.back-btn svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .back-label { display: none; } .back-btn { padding: .5rem; } }

/* ---------- serverregels op de hoofdsite ---------- */
.aside-title { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); margin: 0 0 .25rem; }
.aside-note { font-size: .85rem; color: var(--muted); margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.regels { min-width: 0; }
.regels-intro { margin-bottom: 1.5rem; }
.regels-intro > p:first-child { font-size: 1.1rem; }
.regels .filter-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--bg); padding: .75rem 0; margin-bottom: 1rem; }
.regels-sec { margin: 0 0 3rem; scroll-margin-top: calc(var(--header-h) + 5rem); }
.regels-sec > h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); padding-bottom: .6rem; border-bottom: 2px solid var(--orange); margin-bottom: 1rem; }
.regels-sec-intro { color: var(--muted); margin-bottom: 1rem; }
.regels-page .article-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; }
.rule-art { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: .55rem; scroll-margin-top: calc(var(--header-h) + 5rem); }
.rule-art > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: .95rem 1.15rem; font-weight: 700; }
.rule-art > summary::-webkit-details-marker { display: none; }
.rule-art > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: .25rem; transition: transform .15s; }
.rule-art[open] > summary::after { transform: rotate(-135deg); }
.rule-art > summary:hover { background: var(--active-bg); border-radius: var(--r); }
.rule-art[open] { border-color: var(--hover-line); box-shadow: var(--shadow); }
.rule-art:target { outline: 2px solid var(--orange); outline-offset: 2px; }
.rule-art .rule-nr { flex: none; min-width: 4.2rem; color: var(--orange-text); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rule-art .rule-title { flex: 1; }
.rule-cat { flex: none; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.rule-content { padding: .25rem 1.4rem 1.1rem; border-top: 1px solid var(--line); }
.rule-content h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.rule-content .straf-blok { margin-top: 1.25rem; }
.rule-content .straf-blok h3 { margin-top: 0; }
.rule-actions { margin: 1rem 0 0; font-size: .85rem; }
.article-body :is(h3, h4) { color: var(--heading); }
@media (max-width: 600px) { .rule-cat { display: none; } .rule-art .rule-nr { min-width: 3.4rem; } }

/* tabs keybinds / commands */
.page-tabs { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.page-tabs a { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--muted); }
.page-tabs a:hover { color: var(--text); }
.page-tabs a[aria-current="page"] { background: var(--orange); color: var(--sea-900); }
.regels.is-searching .regels-intro, .regels.is-searching .regels-sec:not([data-has-articles]) { display: none; }
.article-body .tile h3, .article-body .service h3, .article-body .news-item h3 { margin-top: 0; }

/* ---------- logo's van de diensten ---------- */
.org-logo { display: grid; place-items: center; flex: none; width: 88px; height: 88px; padding: 8px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(11, 33, 53, .35); }
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-logo-lg { width: 128px; height: 128px; padding: 10px; border-radius: 20px; }
.job.has-logo { grid-template-columns: auto 1fr auto; }
.vac-head { display: flex; align-items: center; gap: 1.25rem; margin: .25rem 0 1.25rem; }
.vac-head .job-kop { margin: 0; }
@media (max-width: 700px) {
  .job.has-logo { grid-template-columns: auto 1fr; } .job.has-logo > .btn { grid-column: 1 / -1; }
  .org-logo { width: 64px; height: 64px; padding: 6px; border-radius: 12px; } .org-logo-lg { width: 88px; height: 88px; }
}
@media (max-width: 700px) { .job.has-logo { align-items: start; } .job.has-logo .org-logo { margin-top: .2rem; } }
.career-logo { width: 56px !important; height: 56px !important; background: #fff !important; padding: 5px; border: 1px solid var(--line); border-radius: 12px !important; }
.career-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-host a { color: var(--foam); font-weight: 700; text-decoration: none; }
.footer-host a:hover { color: var(--orange); }
