/* Wijkblik: huisstijl uit het brandbook (brand/), licht en donker. Zes themakleuren en één schaal van
   ongunstig (oranje) tot gunstig (blauw). Lettertypen staan op de eigen site (brand/fonts, OFL-licentie). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/brand/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/brand/fonts/PublicSans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #F7F4EE; --surface: #FFFFFF; --surface-2: #EEE8F1; --line: #E0D9E3; --rand: #847A89; --ink: #28232D; --muted: #655E6A;
  --primary: #553D62; --primary-hover: #432D50; --on-primary: #FFFFFF; --accent: #553D62; --focus: #553D62; --oranje-accent: #A34426;
  --oranje: #A84C12; --blauw: #255CA8; --paars: #79459B; --teal: #146D68; --roze: #B03968; --oker: #7D5B08; --grijs: #847A89;
  --s-2: #A64B22; --s-1: #D99862; --s0: #EEE6D4; --s1: #85B3D1; --s2: #286181; --s-geen: #DED9E1;
  --succes: #27624F; --waarschuwing: #8D520C; --fout: #A12F45;
  --radius: 12px; --schaduw: 0 1px 2px rgb(40 35 45 / .05), 0 4px 16px rgb(40 35 45 / .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1820; --surface: #26212C; --surface-2: #332B3C; --line: #3E3547; --rand: #998C9F; --ink: #F7F4EE; --muted: #C8BFCF;
    --primary: #DCC6EB; --primary-hover: #EADAF3; --on-primary: #261A2E; --accent: #DCC6EB; --focus: #DCC6EB; --oranje-accent: #F4AD8E;
    --oranje: #F0AF78; --blauw: #A5C4F5; --paars: #D1AEEA; --teal: #8BD2C8; --roze: #F1A6C3; --oker: #E3C36F; --grijs: #998C9F;
    --s-2: #A64B22; --s-1: #D99862; --s0: #EEE6D4; --s1: #85B3D1; --s2: #286181; --s-geen: #49414F;
    --succes: #9ED3B7; --waarschuwing: #F2C273; --fout: #FFADC0;
    --schaduw: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #1B1820; --surface: #26212C; --surface-2: #332B3C; --line: #3E3547; --rand: #998C9F; --ink: #F7F4EE; --muted: #C8BFCF;
    --primary: #DCC6EB; --primary-hover: #EADAF3; --on-primary: #261A2E; --accent: #DCC6EB; --focus: #DCC6EB; --oranje-accent: #F4AD8E;
    --oranje: #F0AF78; --blauw: #A5C4F5; --paars: #D1AEEA; --teal: #8BD2C8; --roze: #F1A6C3; --oker: #E3C36F; --grijs: #998C9F;
    --s-2: #A64B22; --s-1: #D99862; --s0: #EEE6D4; --s1: #85B3D1; --s2: #286181; --s-geen: #49414F;
    --succes: #9ED3B7; --waarschuwing: #F2C273; --fout: #FFADC0;
    --schaduw: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Public Sans", system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Public Sans", sans-serif; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 .8em; }
a { color: var(--accent); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label:has(> input.sr:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.noot { color: var(--muted); font-size: 13.5px; }
.laden { padding: 60px 0; color: var(--muted); }

/* Bovenbalk */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.merk { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-size: 19px; font-weight: 600; white-space: nowrap; }
.merk img { height: 30px; width: auto; display: block; }
.merk .logo-donker { display: none; }
:root[data-theme="dark"] .merk .logo-licht { display: none; } :root[data-theme="dark"] .merk .logo-donker { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .merk .logo-licht { display: none; } :root:not([data-theme="light"]) .merk .logo-donker { display: block; } }
.merk .regio { font-size: 15px; font-weight: 600; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.paginas { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.paginas a { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 10px; font-weight: 500; font-size: 15px; white-space: nowrap; }
.paginas a:hover { color: var(--ink); background: var(--surface-2); }
.paginas a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.thema-knop { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; flex: none; }
.thema-knop svg { width: 18px; height: 18px; }
.menu-knop { display: none; }
.zoek-knop { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14.5px; flex: none; }
.zoek-knop:hover { color: var(--ink); border-color: var(--rand); }
.zoek-knop svg { width: 17px; height: 17px; }
.zoek-knop kbd { font: 600 12px "Public Sans", sans-serif; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface-2); color: var(--muted); }
@media (max-width: 960px) {
  .zoek-knop span, .zoek-knop kbd { display: none; }
  .zoek-knop { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 860px) {
  .menu-knop { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }
  .menu-knop svg { width: 18px; height: 18px; }
  .zoek-knop { margin-left: auto; }
  .paginas { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; padding: 8px 16px 14px; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(0 0 0 / .08); }
  .paginas.open { display: flex; }
  .paginas a { padding: 12px 12px; font-size: 16px; }
  .merk .regio { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
}

/* Kop van een pagina */
.kop { padding: 34px 0 18px; }
.kop .meta { color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.kop .intro { font-size: 18px; max-width: 760px; color: var(--ink); }
.kop .acties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Bouwstenen */
.blok { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--schaduw); min-width: 0; }
.sectie { margin: 26px 0; }
.sectie > h2 { display: flex; align-items: center; gap: 10px; }
.sectie > h2 .ticoon, .tegel .ticoon { width: 24px; height: 24px; color: var(--tc); flex: none; }
.sectie > h2 .stip { width: 12px; height: 12px; border-radius: 4px; background: var(--tc, var(--ink)); flex: none; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.twee { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .twee { grid-template-columns: minmax(0, 1fr); } }
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px; }
.knop.licht { background: var(--surface); color: var(--primary); border-color: var(--rand); border-width: 1px; }
.knop.klein { min-height: 38px; padding: 5px 12px; font-size: 14px; }
.knop:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.knop.licht:hover { background: var(--surface-2); color: var(--primary); }
.knop:disabled { opacity: .55; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rand); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; cursor: pointer; }
button.chip { min-height: 40px; }
.chip[aria-pressed="true"] { border: 2px solid var(--primary); background: var(--surface-2); color: var(--primary); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.invoer, select.invoer, textarea.invoer { min-height: 44px; border: 1px solid var(--line); background-color: var(--surface); border-radius: 12px; padding: 9px 12px; width: 100%; min-width: 0; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.invoer:hover { border-color: var(--rand); }
.invoer:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
select.invoer { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23655E6A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
:root[data-theme="dark"] select.invoer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8BFCF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) select.invoer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8BFCF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; }
.filters .label { flex: 1 1 200px; }

/* Zoeken */
.zoek { position: relative; max-width: 560px; margin-top: 16px; }
.zoek input { width: 100%; padding: 14px 16px 14px 46px; font-size: 17px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.zoek svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; color: var(--muted); }
.suggesties { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; list-style: none; margin: 0; padding: 4px; box-shadow: 0 8px 30px rgb(0 0 0 / .12); max-height: 320px; overflow: auto; }
.suggesties a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.suggesties a:hover, .suggesties a.actief { background: var(--surface-2); }
.suggesties small { color: var(--muted); }

/* Scoreschaal */
.s-2 { --sc: var(--s-2); } .s-1 { --sc: var(--s-1); } .s0 { --sc: var(--s0); } .s1 { --sc: var(--s1); } .s2 { --sc: var(--s2); } .s-geen { --sc: var(--s-geen); }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); margin: 8px 0 0; padding: 0; list-style: none; }
.legenda li { display: flex; align-items: center; gap: 5px; }
.legenda i { width: 14px; height: 14px; border-radius: 4px; background: var(--sc); display: inline-block; }

/* Kaart */
.kaart { position: relative; }
.kaart svg { width: 100%; height: auto; display: block; }
.kaart path { vector-effect: non-scaling-stroke; }
.kaart path.w { fill: var(--sc, var(--s-geen)); stroke: var(--surface); stroke-width: .7; cursor: pointer; transition: opacity .15s; }
.kaart a:hover path.w, .kaart a:focus-visible path.w { stroke: var(--ink); stroke-width: 2; }
.kaart a:focus-visible { outline: none; }
.kaart path.w.gekozen { stroke: var(--ink); stroke-width: 2.5; }
.kaart path.w.getikt { stroke: var(--ink); stroke-width: 2.5; }
.kaart-tip { max-width: calc(100% - 16px); white-space: normal; text-align: center; }
.kaart path.g { fill: none; stroke: var(--ink); stroke-width: 1.2; pointer-events: none; opacity: .5; }
.kaart rect.kader { fill: var(--surface-2); stroke: var(--line); vector-effect: non-scaling-stroke; }
.kaart text.kader-naam { fill: var(--muted); font-weight: 600; }
.kaart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); z-index: 5; }

/* Themategels */
.tegels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 400px) { .tegel { padding: 12px; } .tegel b { font-size: 14px; } }
.tegel { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tc); text-decoration: none; color: var(--ink); }
.tegel b { font-size: 15px; hyphens: auto; overflow-wrap: break-word; }
.tegel .plek { font-family: "Bricolage Grotesque", sans-serif; font-size: 24px; font-weight: 800; }
.tegel .plek small { font-family: "Public Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.tegel .oordeel { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.tegel .oordeel i { width: 10px; height: 10px; border-radius: 3px; background: var(--sc); }
.blokjes { display: inline-flex; gap: 3px; }
.blokjes i { width: 14px; height: 14px; border-radius: 4px; background: var(--sc, var(--s-geen)); display: inline-block; }

/* Tabellen */
.tabel-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tabel { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.tabel th, .tabel td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabel thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.tabel tbody tr:last-child > * { border-bottom: 0; }
.tabel td.getal, .tabel th.getal { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabel tr.gekozen { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tabel button.sorteer { background: none; border: 0; padding: 0; font-weight: 600; color: inherit; cursor: pointer; }
.tabel .bron { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.tabel a { color: var(--ink); font-weight: 600; }

/* Verschilbalk: midden is Rotterdam, links ongunstiger, rechts gunstiger */
.vbalk { position: relative; height: 10px; width: 120px; background: var(--surface-2); border-radius: 999px; display: inline-block; vertical-align: middle; }
.vbalk::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--muted); }
.vbalk i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--sc); }

/* Ontwikkeling (lijntje) */
.spark { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.spark svg { overflow: visible; flex: none; }
.spark path { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark path.lijn { stroke: var(--ink); }
.spark path.ref { stroke: var(--muted); stroke-dasharray: 2 3; stroke-width: 1.3; }
.spark circle { fill: var(--sc); stroke: var(--ink); stroke-width: 1; }
.spark small { font-size: 12px; color: var(--muted); }

/* Kerncijfers en instellingen */
.kern { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 16px; }
.kern div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.kern b { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; }
.kern span { font-size: 13px; color: var(--muted); }
.balk-instel { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; position: static; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0; margin: 18px 0 0; border-bottom: 1px solid var(--line); }
.balk-instel .label { flex: 0 1 260px; }
.balk-instel .noot { flex: 1 1 260px; margin: 0; }
@media (max-width: 860px) { .balk-instel { position: static; } }

/* Stappen, lijsten */
.stappen { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stappen li { display: flex; gap: 12px; }
.stappen .nr { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
.gebieden-lijst, .wijken-lijst { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gebied-kaartje h3, .wijk-kaartje h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.gebied-kaartje h3 a, .wijk-kaartje h3 a { color: var(--ink); text-decoration: none; }
.wijk-rij, .buurt-rij { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.wijk-rij a, .buurt-rij a { color: var(--ink); text-decoration: none; }
.wijk-rij a:hover, .buurt-rij a:hover { text-decoration: underline; }

/* Advies */
.prio { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.prio-hoog { background: color-mix(in srgb, var(--s-2) 22%, transparent); color: var(--ink); }
.prio-versterken { background: color-mix(in srgb, var(--s-1) 30%, transparent); }
.prio-behouden { background: color-mix(in srgb, var(--s1) 30%, transparent); }
.advies-kaart { display: grid; gap: 8px; }
.advies-kaart h3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.advies-kaart h3 a { color: var(--ink); text-decoration: none; }
ul.punten { margin: 0; padding-left: 18px; }
ul.punten li { margin: 3px 0; }

/* Vraagbaak */
.vraag form { display: flex; gap: 8px; }
.vraag form input { flex: 1; }
.vraag .antwoord { margin-top: 12px; }
.vraag .antwoord ol { padding-left: 22px; margin: 6px 0; }

/* Wat is er al / Praktijk */
.item { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; }
.item:first-child { border-top: 0; }
.item .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.item .rij { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.formulier { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.formulier .breed { grid-column: 1 / -1; }
.meldingsbalk { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; }

/* Voettekst */
.voet { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0 40px; font-size: 14px; color: var(--muted); }
.voet b { color: var(--ink); }

@media print {
  .topbar, .voet, .acties, .zoek, .filters, .thema-knop { display: none !important; }
  body { background: #fff; }
  .blok { box-shadow: none; break-inside: avoid; }
}

/* Landelijke start */
.kolommen { list-style: none; padding: 0; margin: 0; columns: 2 180px; column-gap: 18px; }
.kolommen li { break-inside: avoid; padding: 3px 0; }
.alle-gemeenten { columns: 4 170px; font-size: 14.5px; }
.alle-gemeenten a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.alle-gemeenten a:hover { text-decoration: underline; }
.blokje { width: 10px; height: 10px; border-radius: 3px; background: var(--sc); display: inline-block; flex: none; }
.sectie > h2 .ticoon { color: var(--primary); }
.gem-kies select { min-height: 36px; padding: 4px 10px; font-weight: 600; width: auto; }


/* ---------- Bediening: segmentknoppen en tabbladen ---------- */
.segment { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-2); border-radius: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; vertical-align: middle; }
.segment::-webkit-scrollbar { display: none; }
.segment button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 7px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; min-height: 38px; transition: background .15s, color .15s; }
.segment button:hover { color: var(--ink); }
.segment button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 2px 8px rgb(0 0 0 / .06); }
.segment i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.segment.klein button { padding: 5px 11px; font-size: 13.5px; min-height: 34px; }
.veld { display: grid; gap: 6px; min-width: 0; }
.veld > .titel { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.tabbalk { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 60px; z-index: 6; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); margin: 18px 0 22px; }
.tabbalk::-webkit-scrollbar { display: none; }
.tabbalk button { border: 0; background: none; padding: 14px 14px 11px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabbalk button:hover { color: var(--ink); }
.tabbalk button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.tabbalk .teller { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 20px; }
[role="tabpanel"] > .sectie:first-child { margin-top: 0; }

/* Schaal (legenda) */
.schaal { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.schaal .balk { display: flex; border-radius: 999px; overflow: hidden; height: 10px; width: 150px; }
.schaal .balk i { flex: 1; background: var(--sc); }
.schaal .geen { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.schaal .geen i { width: 10px; height: 10px; border-radius: 3px; background: var(--s-geen); }

/* Zoeken vanuit de bovenbalk */
.zoek-dialoog { border: 0; padding: 0; background: transparent; width: min(640px, 100% - 24px); max-width: none; margin: 12vh auto auto; overflow: visible; color: var(--ink); }
.zoek-dialoog::backdrop { background: rgb(20 15 25 / .45); backdrop-filter: blur(3px); }
.zoek-dialoog .zoek { margin: 0; max-width: none; }
.zoek-dialoog .zoek input { box-shadow: 0 20px 50px rgb(0 0 0 / .25); border-color: var(--rand); }
.zoek-dialoog .suggesties { box-shadow: 0 20px 50px rgb(0 0 0 / .2); }
.zoek-dialoog .tip { color: #fff; font-size: 13px; margin: 10px 4px 0; opacity: .85; }

/* Startpagina */
.held { padding: 56px 0 28px; text-align: center; }
.held h1 { font-size: clamp(36px, 7vw, 64px); margin-bottom: 12px; }
.held .intro { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: 18px; }
.held .zoek { margin: 26px auto 0; max-width: 620px; }
.held .zoek input { padding: 18px 18px 18px 52px; font-size: 18px; border-radius: 16px; box-shadow: 0 2px 4px rgb(40 35 45 / .04), 0 12px 32px rgb(40 35 45 / .08); }
.held .zoek svg { left: 19px; width: 22px; }
.held .snel { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.held .tellers { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.held .tellers b { color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-size: 18px; margin-right: 4px; }
.pil { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: border-color .15s, background .15s; }
.pil:hover { border-color: var(--rand); background: var(--surface-2); }
.pil small { color: var(--muted); font-size: 12.5px; }
.kaartblok { display: grid; gap: 14px; }
.kaartblok .kop-rij { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.kaartblok .kop-rij h2 { margin: 0; }

/* Kop van een buurt of gemeente */
.kruimel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.kruimel a { color: var(--muted); text-decoration: none; font-weight: 600; }
.kruimel a:hover { color: var(--ink); text-decoration: underline; }
.kruimel .sep { opacity: .5; }
.soort { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 2px 8px; }
.samenvatting { font-size: 18px; max-width: 760px; margin: 4px 0 0; }
.samenvatting .oordeel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 30%, var(--surface)); font-weight: 700; white-space: nowrap; }
.samenvatting .oordeel-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); }
.kop .acties { align-items: center; }
.icoonknop { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icoonknop:hover { color: var(--ink); border-color: var(--rand); }
.icoonknop svg { width: 18px; height: 18px; }

/* Signalen (overzicht) */
.signalen { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.signalen ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.signalen li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.signalen li i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); flex: none; translate: 0 1px; }
.blok h3 { margin-bottom: 10px; }
.blok > h2:first-child, .blok > h3:first-child { margin-top: 0; }

/* Algemene verfijning */
.blok { border-radius: 16px; }
.tabel-wrap { border-radius: 14px; }
.tabel thead th { background: var(--surface); border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; }
.tabel tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.tegel { transition: transform .15s, box-shadow .15s; border-radius: 14px; }
.tegel:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(40 35 45 / .08); }
.kern div { border-radius: 14px; padding: 12px 14px; }
.knop { border-radius: 10px; }
.kop { padding: 30px 0 8px; }
.filters.blok { align-items: end; }

/* Tabellen op de telefoon als kaartjes */
@media (max-width: 640px) {
  .tabel.stapel thead { display: none; }
  .tabel.stapel, .tabel.stapel tbody { display: block; }
  .tabel.stapel tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tabel.stapel tr > * { border: 0; padding: 0; text-align: left !important; }
  .tabel.stapel tr > th { grid-column: 1 / -1; font-size: 15px; }
  .tabel.stapel td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .tabel.stapel td.breed { grid-column: 1 / -1; }
}
ol.rang { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: r; }
ol.rang li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
ol.rang li:first-child { border-top: 0; }
ol.rang li > span:first-child i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); }
ol.rang a { color: var(--ink); text-decoration: none; font-weight: 600; }
ol.rang a:hover { text-decoration: underline; }
@media print { [role="tabpanel"][hidden] { display: block !important; } .tabbalk, .icoonknop { display: none !important; } }
.kop h1 .soort { vertical-align: middle; margin-left: 6px; translate: 0 -4px; }
.tegels.vijf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1060px) { .tegels.vijf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tegels.vijf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kern.twee-kol { grid-template-columns: 1fr 1fr; }
.kern.twee-kol div { background: var(--surface-2); border: 0; }
ul.signaal-lijst { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.signaal-lijst li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
ul.signaal-lijst li i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); flex: none; translate: 0 1px; }
@media (max-width: 520px) {
  .topbar-in { gap: 8px; }
  .merk .regio { display: none; }
  .merk img { height: 26px; }
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .chips.scroll::-webkit-scrollbar { display: none; }
  .chips.scroll .pil { flex: none; }
}

/* Ontwikkeling: grafieken */
.grafieken { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grafiek-blok { margin: 0; padding: 14px; display: grid; gap: 8px; align-content: start; }
.grafiek-blok figcaption { display: grid; gap: 2px; font-size: 14.5px; }
.grafiek { width: 100%; height: auto; overflow: visible; }
.grafiek .raster { stroke: var(--line); stroke-width: 1; }
.grafiek .as { font-size: 10.5px; fill: var(--muted); font-family: "Public Sans", sans-serif; }
.grafiek path { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.grafiek path.lijn { stroke: var(--tc, var(--primary)); stroke-width: 2.6; }
.grafiek path.ref { stroke: var(--ink); stroke-dasharray: 5 4; stroke-width: 1.6; opacity: .75; }
.grafiek path.nl { stroke: var(--muted); stroke-dasharray: 1.5 3.5; stroke-width: 1.8; }
.grafiek circle { fill: var(--surface); stroke: var(--tc, var(--primary)); stroke-width: 2; }
.lgd { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; white-space: nowrap; }
.lgd i { display: inline-block; width: 22px; border-top: 2.6px solid var(--primary); }
.lgd i.ref { border-top: 1.6px dashed var(--ink); }
.lgd i.nl { border-top: 2px dotted var(--muted); }

/* Kaart zoomen */
.kaart > svg { touch-action: pan-y; }
.kaart.ingezoomd > svg { touch-action: none; cursor: grab; }
.kaart.ingezoomd > svg:active { cursor: grabbing; }
.kaart-zoom { position: absolute; top: 8px; right: 8px; display: grid; gap: 4px; }
.kaart-zoom button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; box-shadow: var(--schaduw); }
.kaart-zoom button:hover { background: var(--surface-2); }
.kaart-zoom button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kaart .kaart-zoom svg { width: 16px; height: 16px; }
@media print { .kaart-zoom { display: none; } }
.suggesties .adres-pin { color: var(--primary); font-weight: 700; }
.held .recent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.held .recent .pil { background: var(--surface-2); }
.link-knop { background: none; border: 0; padding: 4px; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13.5px; }
.link-knop:hover { color: var(--ink); }

/* Rapportpagina */
.rapport-kop { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
@media (max-width: 760px) { .rapport-kop { grid-template-columns: 1fr; } }
.prijs-blok { display: grid; gap: 4px; border-top: 4px solid var(--primary); }
.prijs-blok .prijs { font-family: "Bricolage Grotesque", sans-serif; font-size: 38px; font-weight: 800; line-height: 1.1; }
ul.vinkjes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
ul.vinkjes li { padding-left: 24px; position: relative; }
ul.vinkjes li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2.5px solid var(--succes); border-bottom: 2.5px solid var(--succes); transform: rotate(-45deg); }
.inhoud-lijst { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.inhoud-lijst .nr { background: var(--primary); color: var(--on-primary); }
.leestekst { max-width: 780px; } .leestekst p { line-height: 1.65; }
.tabel tr.eigen th, .tabel tr.eigen td { background: var(--surface-2); }
