@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/manrope-800-latin.woff2") format("woff2"); }
/* Letters (besluit eigenaar 5 okt 2026): Schibsted Grotesk voor koppen en tekst, het woordmerk blijft Manrope 800.
   Zelf gehost (sneller, geen verzoek naar Google). "Schibsted Fallback" = Arial op dezelfde breedte en regelhoogte
   (gemeten: 103,6%), zodat de pagina niet verspringt als het lettertype binnenkomt. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Fallback"; src: local("Arial"); size-adjust: 103.6%; ascent-override: 94.6%; descent-override: 25.1%; line-gap-override: 0%; }
/* Leaflet zet eigen letters op de zoomknoppen (Lucida Console) en de legendaknop (Arial): ook die in onze letter. */
html .leaflet-container, html .leaflet-bar a, html .leaflet-control-zoom a, html .legend-btn { font-family: var(--font); } /* html ervoor: leaflet.css laadt soms later */

:root {
  /* Merk mijnbuurt.nu */
  --ink: #143b5c;
  --live: #ff8a3d;
  --live-text: #b4530f; /* oranje voor tekst: #ff8a3d is te licht op een lichte achtergrond */
  --sky: #dbe9f5;
  --display: "Schibsted Grotesk", "Schibsted Fallback", ui-sans-serif, system-ui, sans-serif;
  --wordmark: "Manrope", ui-sans-serif, system-ui, sans-serif; /* alleen het woordmerk "mijnbuurt.nu" */

  /* Lichte modus (besluit 2 okt 2026): koele tint verwant aan het merkblauw en aan de donkere modus, meer contrast. */
  --bg: #edf1f5;
  --panel: #ffffff;
  --text: #10151c;
  --muted: #545d6b;
  --line: #dce2e9;
  --hover: #f3f6f9;
  --selected: #fff3d6;
  --shadow: 0 1px 2px rgb(13 36 56 / 8%), 0 6px 18px rgb(13 36 56 / 9%);
  --ambulance-text: #a87800; /* geel als tekst op wit is slecht leesbaar; de streep blijft #e3a400 */
  /* Tekstkleur per dienst (designsysteem v1, 5 okt 2026; waarden uit TOKENS in gen_ds.py): leesbaar als tekst, de vlakken
     en pins houden --ambulance, --brandweer enz. Overig = --muted. */
  --amb-t: #8a6400;
  --brw-t: #c41f2f;
  --pol-t: #1f5bd8;
  --knrm-t: #b34d00;
  --news-t: #5b4bc4;
  --good-t: #18785a;
  --urgent-t: #c41f2f;

  --ambulance: #e3a400;
  --brandweer: #d62839;
  --politie: #1f5bd8;
  --knrm: #f06c00;
  --overig: #7a7f88;
  --urgent: #d62839;

  --radius: 10px;
  --font: "Schibsted Grotesk", "Schibsted Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #dbe9f5;
    --live-text: #ff9d5c;
    --sky: #1b2e40;
    --bg: #0f1216;
    --panel: #181b1f;
    --text: #eef0f2;
    --muted: #9097a1;
    --line: #2a2e34;
    --hover: #20242a;
    --selected: #2f2a17;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
    --politie: #4f86f0;
    --ambulance-text: #e3a400;
    --amb-t: #f0b81f;
    --brw-t: #ff6b78;
    --pol-t: #7aa5ff;
    --knrm-t: #ff9a4d;
    --news-t: #a99cf5;
    --good-t: #4fc79c;
    --urgent-t: #ff6b78;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
}
:root[data-theme="dark"] {
    --ink: #dbe9f5;
    --live-text: #ff9d5c;
    --sky: #1b2e40;
    --bg: #0f1216;
    --panel: #181b1f;
    --text: #eef0f2;
    --muted: #9097a1;
    --line: #2a2e34;
    --hover: #20242a;
    --selected: #2f2a17;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
    --politie: #4f86f0;
    --ambulance-text: #e3a400;
    --amb-t: #f0b81f;
    --brw-t: #ff6b78;
    --pol-t: #7aa5ff;
    --knrm-t: #ff9a4d;
    --news-t: #a99cf5;
    --good-t: #4fc79c;
    --urgent-t: #ff6b78;
    color-scheme: dark;
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Topbalk ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  min-height: 56px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 1100; /* boven de kaartknoppen (Leaflet: 1000), zodat het menu er niet doorheen valt */
  position: relative;
}
/* Merk: beeldmerk + woordmerk. Het woordmerk is altijd compleet ("mijnbuurt.nu"); bij te weinig ruimte verdwijnt het helemaal. */
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.brand:focus-visible { outline: 2px solid var(--politie); outline-offset: 3px; border-radius: 6px; }
.mark { width: 30px; height: 30px; flex-shrink: 0; overflow: visible; --p: 0; transition: width 0.35s, height 0.35s; }
.mark .blocks { fill: var(--ink); }
.mark .mark-dot { fill: var(--live); transform-origin: center; transform-box: fill-box; transform: scale(calc(1 + 1.4 * var(--p))); }
.mark .mark-ring { fill: none; stroke: var(--live); stroke-width: 4; opacity: 0; transform-origin: center; transform-box: fill-box; }
/* Scroll-effect (leespagina): de acht blokken trekken naar de stip, worden kleiner en lossen op. */
.mark .mb {
  transform-origin: center; transform-box: fill-box;
  transform: translate(calc(var(--dx) * var(--p)), calc(var(--dy) * var(--p))) scale(calc(1 - 0.75 * var(--p)));
  opacity: calc(1 - 0.85 * var(--p));
}
.mb1 { --dx: 24px; --dy: 24px; } .mb2 { --dx: 0px; --dy: 24px; } .mb3 { --dx: -24px; --dy: 24px; }
.mb4 { --dx: 24px; --dy: 0px; } .mb5 { --dx: -24px; --dy: 0px; }
.mb6 { --dx: 24px; --dy: -24px; } .mb7 { --dx: 0px; --dy: -24px; } .mb8 { --dx: -24px; --dy: -24px; }
/* Ping bij een nieuwe spoedmelding in je buurt */
.brand-host.live .mark .mark-ring { animation: brand-ping 1.6s ease-out infinite; }
@keyframes brand-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.4); opacity: 0; } }
.word { font-family: var(--wordmark); font-weight: 800; font-size: 20px; letter-spacing: -0.035em; color: var(--ink); transition: font-size 0.35s; }
.word em { font-style: normal; color: var(--live); }
@media (prefers-reduced-motion: reduce) {
  .mark, .mark *, .word, .reader-bar-inner { transition: none !important; animation: none !important; }
}
.place-btn {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
  background: var(--hover); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px 6px 9px; cursor: pointer;
}
.place-btn svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brandweer); }
.place-btn .chev { color: var(--muted); }
.place-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-btn:hover { background: var(--selected); }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.topnav > a, .topnav > button { font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.nav-map { color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.nav-map[aria-current="page"] { color: var(--text); background: var(--hover); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

.live { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--overig); flex-shrink: 0; }
.live[data-state="live"] .live-dot { background: #1fa855; box-shadow: 0 0 0 0 rgb(31 168 85 / 50%); animation: live 2s infinite; }
.live[data-state="error"] .live-dot { background: var(--urgent); }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgb(31 168 85 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(31 168 85 / 0%); } }

/* ---- Layout ---- */
.layout { flex: 1; display: flex; min-height: 0; }
.panel {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  min-height: 0;
}
#map { flex: 1; min-width: 0; background: var(--bg); }
.rail { display: none; width: 332px; flex-shrink: 0; padding: 16px; background: var(--panel); border-left: 1px solid var(--line); }
/* Alleen tonen bij de advertentiestand "aan" of "testposities" (klasse op <html>, ads-boot.js; drie standen sinds
   4 okt 2026); anders is het 332 pixels lege ruimte, op een laptop een kwart van de kaart. */
/* Per schermbreedte: brede kolom (300×600) vanaf 1600 px, smalle "skyscraper" (160×600) van 1280 tot 1600 px,
   daaronder geen kolom (kaart blijft bruikbaar; advertenties staan dan in de feed en op de lees-/meldingpagina's). */
/* Stand 'test' (testposities, 4 okt 2026) toont de kolom ook, zodat de eigenaar de plek kan beoordelen. */
@media (min-width: 1600px) { :is(html.ads-on, html.ads-test) .rail { display: block; } }
@media (min-width: 1280px) and (max-width: 1599px) {
  :is(html.ads-on, html.ads-test) .rail { display: block; width: 192px; }
  :is(html.ads-on, html.ads-test) .ad-rail { width: 160px; }
}
/* Stand 'off' (en als de advertentie-instellingen niet laden): nergens een plek, gestreept vak of gereserveerde
   ruimte (besluit 4 okt 2026). Bewust "niet aan en niet test" in plaats van .ads-off: zo is uit de veilige standaard.
   Bij gevoelige meldingen ([data-no-ads]) in elke stand geen plek. */
html:not(.ads-on):not(.ads-test) :is(.ad-slot, .ad-item, .r-ad, .s-ad, .rail, .ad-box),
[data-no-ads] :is(.ad-slot, .r-ad, .ad-box) { display: none !important; }
/* Nooit lege ruimte: de advertentielader zet .filled zodra er echt een advertentie staat; anders klapt de plek in. */
/* Lege plekken alleen inklappen als dat niet zichtbaar verspringt (zie ads-boot.js: buiten beeld of zijkolom). */
.ad-slot.ad-collapsed, .r-ad:has(.ad-collapsed), .ad-item:has(.ad-collapsed), .ad-box:has(.ad-collapsed) { display: none; }
body.ads-live .rail:has(.ad-slot.ad-collapsed) { display: none; }
.ad-rail { width: 300px; height: 600px; position: sticky; top: 16px; }
.panel-quick { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; }
.panel-quick .seg { flex: 1; }
.filters-btn { display: none; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; cursor: pointer; white-space: nowrap; }
.filters-btn svg { width: 15px; height: 15px; }
.filters-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brandweer); color: #fff; font-size: 11px; padding: 0 5px; }
.filters-n[hidden] { display: none; }
.sheet-grip { display: none; }
.ad-item { padding: 12px 16px; border-bottom: 1px solid var(--line); list-style: none; }
.ad-feed { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.ad-label { display: block; text-align: center; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
/* Lijst op mobiel (onderblad, 5 okt 2026): slanke 320×50 bovenaan de volle lijst onder de tabbladen, alleen als het blad
   helemaal open is (niet in 'peek' of tijdens het slepen vanuit 'peek'); geen zichtbaar label. Nooit op de kaart of in de
   kaartjes op de kaart. In de lijst zelf blijft de 300×250 (.ad-feed) op elke breedte (besluit eigenaar 5 okt 2026).
   - test: het gestreepte vak staat er altijd (de eigenaar ziet de plek);
   - on: pas in de pagina met .ad-shown (gevuld, app.js initListTopBanner). Daarvoor, als hij al is aangevraagd
     (.ad-armed): opgebouwd met maat zodat het netwerk hem kan vullen, maar onzichtbaar en zonder ruimte (absoluut). */
.ad-list-top { display: none; }
@media (max-width: 800px) {
  :is(html.ads-test .panel[data-sheet="full"] .ad-list-top, html.ads-on .panel[data-sheet="full"] .ad-list-top.ad-shown) {
    display: block; padding: 6px 12px; border-bottom: 1px solid var(--line);
  }
  html.ads-on .ad-list-top.ad-armed:not(.ad-shown) { display: block; position: absolute; top: 0; left: 0; right: 0; visibility: hidden; pointer-events: none; }
  .ad-top-m { width: 320px; max-width: 100%; height: 50px; margin: 0 auto; }
}

/* ---- Filters ---- */
.filters { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit; font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
@media (hover: hover) { .chip:hover { background: var(--hover); } } /* geen hangende hover na een tik op iOS */
.chip .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="false"] { opacity: 0.45; }
.chip[aria-pressed="false"] .swatch { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }

.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; }

/* Periode: knoppenbalk */
.seg { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; }
.seg-label { font-size: 12px; color: var(--muted); padding: 0 8px 0 6px; }
.seg button {
  flex: 1;
  font: inherit; font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: none; border: 0; border-radius: 6px;
  padding: 5px 4px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.seg button:focus-visible { outline: 2px solid var(--politie); outline-offset: 1px; }
.field { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
select, .search {
  width: 100%;
  font: inherit; font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
}
select:focus, .search:focus, .chip:focus-visible { outline: 2px solid var(--politie); outline-offset: 1px; }
.toggles { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--brandweer); margin: 0; }

/* ---- Lijst ---- */
.list-head { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); font-weight: 400; }
.list { position: relative; list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.item {
  --c: var(--overig);
  position: relative;
  padding: 10px 16px 10px 19px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.item:hover { background: var(--hover); }
.item.selected { background: var(--selected); }
.item.flash { animation: flash 2.5s ease-out; }
@keyframes flash { from { background: var(--selected); } }
.item.test { opacity: 0.6; }
/* Rijen buiten beeld niet opmeten en tekenen (snelheid uitzoomen, 6 okt 2026): de lijst heeft tot 400 rijen en werd na
   elke zoomstap helemaal opnieuw opgemeten (gemeten op een nagebootste telefoon: per zoomstap ±110 ms → ±55 ms). Een rij
   die eenmaal getekend is, onthoudt zijn hoogte (auto); daarvóór telt hij als ±150 px (125 px inhoud plus padding en rand;
   gemiddelde rij op telefoon en desktop: ±145 px; controle 6 okt 2026). Wat je ziet verandert niet: een rij wordt getekend zodra hij in de buurt van het beeld komt. */
#list > .item:not(.news-item) { content-visibility: auto; contain-intrinsic-size: auto 125px; } /* nieuwslijst: geen scrollplek-logica, dus gewoon opmeten */
/* Boven de scrollplek of op weg naar een gekozen melding: gewoon opmeten (app.js showRowsBefore). */
#list > .item.cv-show { content-visibility: visible; }

.row1 { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 3px; }
.badge {
  font-weight: 700; font-size: 11px; letter-spacing: 0.02em;
  padding: 1px 6px; border-radius: 4px;
  background: var(--hover); color: var(--text);
  border: 1px solid var(--line);
}
.badge.p1 { background: var(--urgent); border-color: var(--urgent); color: #fff; }
.badge.p2 { background: transparent; border-color: var(--c); color: var(--text); }
.disc { font-weight: 600; color: var(--c); }
.row1 time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg { font-family: var(--mono); font-size: 12.5px; word-break: break-word; }
.loc { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.loc svg { width: 12px; height: 12px; flex-shrink: 0; }
.loc.none { font-style: italic; }
.empty { padding: 32px 16px; color: var(--muted); text-align: center; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); }
.tabs button {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted);
  background: none; border: 0;
  padding: 6px 10px 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tabs .n { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs button:focus-visible { outline: 2px solid var(--politie); outline-offset: -2px; }

/* ---- Nieuws ---- */
:root { --news: #5b4bc4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --news: #9a8cf0; } }
:root[data-theme="dark"] { --news: #9a8cf0; }
.news-item { --c: var(--news); }
.news-src { font-weight: 600; color: var(--news); }
.news-title { font-weight: 600; line-height: 1.35; }
.news-title.big { display: block; font-size: 14px; color: var(--text); text-decoration: none; margin: 2px 0 6px; }
.news-title.big:hover { text-decoration: underline; }
.news-title.big svg { width: 12px; height: 12px; vertical-align: -1px; color: var(--muted); }
.news-meta { display: block; font-size: 11.5px; color: var(--muted); }
.news-sum { margin: 0 0 8px; font-size: 12.5px; color: var(--text); }
.news-img { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; background: var(--hover); }
.news-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 10px 0 4px; }
.news-block { margin-top: 6px; }
.news-link {
  display: flex; gap: 7px; align-items: flex-start;
  padding: 6px 8px; margin-top: 4px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--news) 9%, transparent);
  color: var(--text); text-decoration: none; font-size: 12.5px;
}
.news-link:hover { background: color-mix(in srgb, var(--news) 16%, transparent); }
.news-link .news-title { font-weight: 600; }
.news-ico { color: var(--news); flex-shrink: 0; margin-top: 1px; }
.news-ico svg { width: 14px; height: 14px; display: block; }
.news-more { display: inline-block; font-size: 11.5px; color: var(--muted); margin: 3px 0 0 8px; }
.link-badge { background: color-mix(in srgb, var(--news) 14%, transparent); border-color: transparent; color: var(--news); }
.linked {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: start;
  width: 100%; text-align: left;
  font: inherit; font-size: 12px; color: var(--text);
  padding: 6px 8px; margin-top: 4px;
  background: var(--hover); border: 0; border-left: 3px solid var(--c);
  border-radius: 4px; cursor: pointer;
}
.linked:hover { background: var(--selected); }
.linked-msg { font-family: var(--mono); font-size: 11.5px; word-break: break-word; }
.linked .news-meta { grid-column: 1 / -1; }

.news-pin {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 6px;
  background: var(--news); color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
}
.news-pin svg { width: 14px; height: 14px; }
.news-pin.approx { border-style: dashed; }
.news-pin.cluster-news { font-weight: 700; font-size: 11px; }
.news-pin.small { width: 14px; height: 14px; border-width: 1.5px; border-radius: 3px; box-shadow: none; }
.news-pin.small svg { width: 9px; height: 9px; }

/* ---- Markers ---- */
.mk { background: none; border: none; }
.dot {
  --c: var(--overig);
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
  transition: opacity 0.3s;
}
.dot.approx { border-style: dashed; border-color: #fff; background: color-mix(in srgb, var(--c) 70%, transparent); }
.dot.urgent { border-color: #fff; outline: 2px solid var(--urgent); outline-offset: 1px; }
.dot.fresh { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent), 0 1px 3px rgb(0 0 0 / 40%); }
  100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--c) 0%, transparent), 0 1px 3px rgb(0 0 0 / 40%); }
}

.d-ambulance { --c: var(--ambulance); }
.d-brandweer { --c: var(--brandweer); }
.d-politie { --c: var(--politie); }
.d-knrm { --c: var(--knrm); }
.d-overig { --c: var(--overig); }

.cluster {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 85%, transparent);
  color: var(--panel);
  font-weight: 700; font-size: 12px;
  border: 2px solid var(--panel);
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}
.cluster.has-urgent { outline: 2px solid var(--urgent); outline-offset: 1px; }

/* ---- Popup ---- */
.leaflet-popup-content-wrapper { border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--panel); }
.leaflet-popup-content { margin: 12px 14px; font: 13px/1.45 var(--font); min-width: 240px; }
.pop .row1 { margin-bottom: 6px; }
.pop .msg { margin-bottom: 8px; }
.pop dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 12px; }
.pop dt { color: var(--muted); }
.pop dd { margin: 0; }
.pop .caps { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---- Legenda ---- */
.legend {
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  display: grid;
  gap: 3px;
}
.legend .lg { display: flex; align-items: center; gap: 7px; }
.legend .dot { width: 12px; height: 12px; border-width: 1.5px; box-shadow: none; }
.legend hr { border: 0; border-top: 1px solid var(--line); margin: 3px 0; width: 100%; }
/* Vast vakje per pictogram (18 nov 2026): tekst begint overal op dezelfde lijn, rijen even hoog. */
.legend .lg { min-height: 22px; }
.legend .lg-i { flex: none; width: 24px; height: 22px; display: grid; place-items: center; }
.legend .lg .lg-i > * { margin: 0; }
.legend .lg-i .lg-big { width: 22px; height: 22px; }

.leaflet-control-layers, .leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel) 80%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }

/* ---- Mobiel: kaart schermvullend, lijst in een onderblad ---- */
@media (max-width: 800px) {
  /* Precies de zichtbare schermhoogte (dvh), en het document zelf nooit laten scrollen: iOS Safari laat een pagina
     anders soms verschoven binnenkomen (bijv. na inloggen met het toetsenbord open), met de bovenbalk buiten beeld. */
  html { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { overflow: hidden; height: 100%; height: 100dvh; }
  .topbar { padding: 8px 12px; gap: 8px; min-height: 52px; }
  .topbar .word { font-size: 18px; }
  .place-btn { flex: 0 1 auto; }
  /* De oranje stip in het logo is het "nu"; het groene bolletje alleen tonen als de verbinding weg is. */
  .live:not([data-state="error"]) { display: none; }
  .live #live-text { display: none; }
  .live { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; }
  .live[data-state="error"] + .menu-btn { margin-left: 0; }
  .topnav {
    display: none;
    position: absolute; top: 100%; right: 8px; margin: 6px 0 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    min-width: 200px; padding: 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  }
  .topnav.open { display: flex; }
  .topnav > a, .topnav > button { justify-content: flex-start; padding: 10px 12px; border-radius: 8px; }
  .layout { position: relative; }
  #map { position: absolute; inset: 0; }
  .panel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 900;
    height: 88%;
    width: auto;
    border-right: 0; border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 24px rgb(0 0 0 / 16%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    transform: translateY(calc(100% - 168px));
  }
  .panel[data-sheet="half"] { transform: translateY(45%); }
  .panel[data-sheet="full"] { transform: translateY(0); }
  .panel.dragging { transition: none; }
  .sheet-grip { display: block; padding: 8px 0 2px; cursor: grab; touch-action: none; }
  .sheet-grip span { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
  .panel-quick { padding: 6px 12px 8px; touch-action: none; }
  .filters-btn { display: inline-flex; }
  .filters { display: none; padding: 10px 12px; }
  .filters.open { display: grid; }
  .list-head { padding: 8px 12px; }
  .list { overflow-y: auto; }
  .legend { display: none; }
  .legend.open { display: grid; }
  /* Kaartknoppen onderin boven het onderblad houden, en het blad boven de kaartknoppen. */
  .panel { z-index: 1050; }
  #map .leaflet-bottom { bottom: 168px; }
}

/* ---- Leespagina ---- */
body.reader-open { overflow: hidden; }
.reader {
  position: fixed; inset: 0;
  z-index: 2000;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.reader[hidden] { display: none; }
.reader-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgb(0 0 0 / 6%);
}
.reader-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 0 auto;
  padding: 10px 16px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px 9px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.back-btn:hover { background: var(--hover); }
.back-btn:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
.back-btn svg { width: 18px; height: 18px; }

/* Advertentieplekken: vaste maat, zodat de pagina niet verspringt als de advertentie laadt. */
.ad-slot {
  display: grid; place-items: center;
  flex-shrink: 0;
  background: repeating-linear-gradient(45deg, transparent 0 8px, color-mix(in srgb, var(--line) 50%, transparent) 8px 16px);
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden;
}
.ad-desktop { width: 728px; height: 90px; }
.ad-mobile { display: none; width: 320px; height: 50px; margin: 0 auto 8px; }
@media (max-width: 900px) {
  .ad-desktop { display: none; }
  .ad-mobile { display: grid; }
  .reader-bar-inner { padding: 8px 16px; }
}

.reader-body { max-width: 720px; margin: 0 auto; padding: 28px 16px 64px; }
.r-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.r-source { font-weight: 700; color: var(--news); }
.r-title { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 12px; text-wrap: balance; }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.r-tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); }
.r-figure { margin: 0 0 18px; }
.r-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--hover); }
.r-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.r-lead { font-size: 18px; line-height: 1.55; margin: 0 0 22px; }
.r-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--news); color: #fff;
  font-weight: 700; text-decoration: none;
}
.r-cta:hover { filter: brightness(1.08); }
.r-cta:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.r-cta svg { width: 16px; height: 16px; }
.r-credit { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.r-section { margin-top: 36px; }
.r-section h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 10px; }
.r-map { position: relative; z-index: 0; isolation: isolate; height: 260px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.r-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 14px; }
.r-loc > svg { width: 14px; height: 14px; color: var(--muted); }
.r-link-btn { margin-left: auto; font: inherit; font-size: 13px; font-weight: 600; color: var(--news); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.r-link-btn:hover { text-decoration: underline; }

.r-incidents { display: grid; gap: 8px; }
.r-incident {
  display: grid; gap: 4px;
  width: 100%; text-align: left;
  font: inherit; color: var(--text);
  padding: 10px 12px 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 8px;
  cursor: pointer;
}
.r-incident:hover { background: var(--hover); }
.r-incident-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.r-incident-top time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-why { font-size: 12px; color: var(--muted); }

.r-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.r-more a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.r-more a:hover .r-more-title { text-decoration: underline; }
.r-more-title { font-weight: 600; }
.r-more .muted { font-size: 12.5px; }

.read-more { display: inline-block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--news); text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ---- Swipe-knop in de topbalk ---- */
.topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.swipe-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--panel); background: var(--ink);
  border: 0; border-radius: 999px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.swipe-btn svg { width: 16px; height: 16px; }
.swipe-btn:hover { filter: brightness(1.2); }
.swipe-btn:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }

@media (max-width: 520px) { .live #live-text { display: none; } }

/* ---- Swipe-modus ---- */
body.swipe-open { overflow: hidden; }
.swipe {
  --s-bg: #0b0c0f;
  --s-card: #16181d;
  --s-text: #f3f4f6;
  --s-muted: #a3a8b3;
  --s-line: rgb(255 255 255 / 10%);
  position: fixed; inset: 0;
  z-index: 1500;
  background: var(--s-bg);
  color: var(--s-text);
}
.swipe[hidden] { display: none; }

.swipe-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 65%), transparent);
  pointer-events: none;
}
.swipe-top > * { pointer-events: auto; }
.swipe-close {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 700;
  color: #fff; background: rgb(255 255 255 / 14%);
  border: 0; border-radius: 999px;
  padding: 8px 12px 8px 9px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.swipe-close svg { width: 16px; height: 16px; }
.swipe-mode { display: flex; gap: 2px; padding: 3px; background: rgb(255 255 255 / 12%); border-radius: 999px; backdrop-filter: blur(6px); }
.swipe-mode button {
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: rgb(255 255 255 / 75%); background: none;
  border: 0; border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
}
.swipe-mode button[aria-checked="true"] { background: #fff; color: #111; }
.swipe-counter { min-width: 64px; text-align: right; font-size: 12px; font-weight: 600; color: rgb(255 255 255 / 80%); font-variant-numeric: tabular-nums; }
.swipe-close:focus-visible, .swipe-mode button:focus-visible, .swipe-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.swipe-scope {
  position: absolute; top: 54px; left: 0; right: 0; z-index: 5;
  text-align: center; font-size: 11.5px; color: rgb(255 255 255 / 70%);
  pointer-events: none;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
}

.swipe-feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
}
.swipe-feed::-webkit-scrollbar { display: none; }
.s-card {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; justify-content: center;
}
.s-inner {
  --c: #7a7f88;
  position: relative;
  width: 100%; max-width: 480px; height: 100%;
  display: flex; flex-direction: column;
  background: var(--s-card);
  overflow: hidden;
}
@media (min-width: 700px) {
  .s-card { padding: 16px 0; }
  .s-inner { border-radius: 18px; box-shadow: 0 10px 40px rgb(0 0 0 / 50%); }
}
.s-inner.d-ambulance { --c: var(--ambulance); }
.s-inner.d-brandweer { --c: var(--brandweer); }
.s-inner.d-politie { --c: #4f86f0; }
.s-inner.d-knrm { --c: var(--knrm); }
.s-newscard { --c: var(--news); }

.s-visual { position: relative; flex: 1 1 50%; min-height: 0; background: #22252b; }
.s-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to bottom, transparent, var(--s-card));
  pointer-events: none; z-index: 1;
}
.s-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Kaartjes zijn alleen beeld: ze mogen het swipen nooit afvangen. */
.s-map { position: absolute; inset: 0; pointer-events: none; isolation: isolate; z-index: 0; }
:root .s-inner .s-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(0.95); }
.s-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), #1b1e24;
  color: rgb(255 255 255 / 85%);
  font-size: 96px; font-weight: 800;
}
.s-placeholder.news svg { width: 72px; height: 72px; color: rgb(255 255 255 / 70%); }

.s-content {
  position: relative; z-index: 2;
  flex: 0 1 auto;
  padding: 0 76px 28px 20px;
  margin-top: -40px;
  display: grid; gap: 10px;
  max-height: 62%;
  overflow: hidden;
}
.s-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.s-prio {
  font-size: 22px; font-weight: 800; letter-spacing: 0.01em;
  padding: 2px 10px; border-radius: 8px;
  background: rgb(255 255 255 / 12%); color: #fff;
  border: 2px solid var(--c);
}
.s-prio.p1 { background: var(--urgent); border-color: var(--urgent); }
.s-disc { font-size: 15px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: 0.04em; }
.s-urgent { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: var(--urgent); color: #fff; }
.s-msg { margin: 0; font-family: var(--mono); font-size: clamp(17px, 4.6vw, 21px); line-height: 1.35; word-break: break-word; }
.s-loc { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--s-text); }
.s-loc svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--c); }
.s-loc em { color: var(--s-muted); font-style: normal; }
.s-meta { font-size: 12.5px; color: var(--s-muted); } /* geen vaste cijfers: Schibsted rekt dan ook punt en komma op (5 okt 2026) */
.s-source { font-size: 14px; font-weight: 800; color: #b9aefc; }
.s-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 12%); }
.s-title { margin: 0; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
.s-sum { margin: 0; font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / 85%); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.s-cta {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px;
  background: #fff; color: #111;
  font-weight: 800; font-size: 14px; text-decoration: none;
}
.s-cta:hover { filter: brightness(0.92); }
.s-newslink {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 11px; border-radius: 10px;
  background: rgb(255 255 255 / 9%);
  color: var(--s-text); text-decoration: none;
  font-size: 13px; line-height: 1.35;
}
.s-newslink b { display: block; font-weight: 700; }
.s-newslink small { color: var(--s-muted); font-size: 11.5px; }
.s-newslink-ico { color: #b9aefc; margin-top: 1px; }
.s-newslink-ico svg { width: 15px; height: 15px; display: block; }

.s-actions {
  position: absolute; right: 12px; bottom: 32px; z-index: 3;
  display: grid; gap: 14px;
}
.s-actions button {
  display: grid; justify-items: center; gap: 3px;
  font: inherit; font-size: 11px; font-weight: 700; color: #fff;
  background: none; border: 0; cursor: pointer;
}
.s-actions button svg {
  width: 46px; height: 46px; padding: 12px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  backdrop-filter: blur(6px);
}
@media (hover: hover) { .s-actions button:hover svg { background: rgb(255 255 255 / 24%); } }
.s-actions button:focus-visible svg { outline: 2px solid #fff; outline-offset: 2px; }

/* Advertentiekaart */
.s-ad .s-inner { justify-content: center; align-items: center; gap: 16px; background: #121418; }
.s-ad-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-muted); }
.ad-swipe { width: 300px; height: 250px; border-color: var(--s-line); color: var(--s-muted); background: repeating-linear-gradient(45deg, transparent 0 8px, rgb(255 255 255 / 4%) 8px 16px); }
/* Volledig scherm (als een story): zelfde donkere streep als de gewone feedadvertentie (maat staat verderop). */
.ad-swipe-full { border-color: var(--s-line); color: var(--s-muted); background: repeating-linear-gradient(45deg, transparent 0 8px, rgb(255 255 255 / 4%) 8px 16px); }
.s-ad-hint { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--s-muted); }
.s-ad-hint svg { width: 18px; height: 18px; }

.s-empty .s-inner { justify-content: center; align-items: center; }
.s-empty-box { max-width: 320px; text-align: center; padding: 24px; }
.s-empty-box h2 { margin: 0 0 8px; }
.s-empty-box p { color: var(--s-muted); margin: 0 0 16px; }
.s-empty-box button { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 0; background: #fff; color: #111; cursor: pointer; }

.swipe-new {
  position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 6;
  font: inherit; font-size: 13px; font-weight: 800;
  color: #111; background: #fff;
  border: 0; border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 40%);
  cursor: pointer;
}
.swipe-new[hidden] { display: none; }
.swipe-nav { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 5; display: none; gap: 10px; }
.swipe-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 12%); color: #fff; cursor: pointer; display: grid; place-items: center; }
.swipe-nav button:hover { background: rgb(255 255 255 / 22%); }
.swipe-nav svg { width: 24px; height: 24px; }
@media (min-width: 700px) and (hover: hover) { .swipe-nav { display: grid; } }
.swipe-toast {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 7;
  background: #fff; color: #111; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 999px;
}
.swipe-toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .swipe-feed { scroll-behavior: auto; } }
@media (max-width: 420px) {
  .swipe-close span { display: none; }
  .swipe-close { padding: 8px; }
  .swipe-counter { min-width: 0; }
  .swipe-mode button { padding: 5px 9px; }
}

/* ---- Buurtinformatie (CBS) ---- */
.area:empty, .s-area:empty { display: none; }
.area-loading { font-size: 12px; color: var(--muted); margin-top: 10px; }
.area-box { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--hover); border: 1px solid var(--line); }
.area-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; margin-bottom: 8px; }
.area-head span { font-size: 12px; color: var(--muted); }
.area-head span + span::before { content: "· "; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin: 0; }
.area-grid div { min-width: 0; }
.area-grid dt { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-grid dd { margin: 0; font-size: 13px; font-weight: 700; } /* "412.000" zonder opgerekte punt (5 okt 2026) */
.area-grid dd small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.area-src { font-size: 10.5px; color: var(--muted); margin-top: 8px; }
.area-box.full { padding: 16px; background: var(--panel); }
.area-box.full .area-head { font-size: 16px; }
.area-box.full .area-grid dd { font-size: 17px; }
.area-box.full .area-grid dt { font-size: 12px; }
@media (max-width: 480px) { .area-box.full .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-area { font-size: 13px; color: rgb(255 255 255 / 80%); }
.area-line { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 9%); }

/* ---- Gebeurtenissen (samengevoegde meldingen) ---- */
.dot.multi { display: grid; place-items: center; }
.dot.multi b { font-size: 10px; font-weight: 800; color: #fff; text-shadow: 0 0 2px rgb(0 0 0 / 60%); line-height: 1; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.also-chip {
  font-size: 11px; font-weight: 600; color: var(--text);
  padding: 1px 7px 1px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.also-n { margin-left: 2px; }
.details-link { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.details-link:hover { color: var(--text); text-decoration: underline; }
.pop-headline { font-weight: 700; font-size: 13.5px; line-height: 1.3; margin-bottom: 4px; }
.pop-timeline { list-style: none; margin: 8px 0 6px; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: grid; gap: 5px; font-size: 11.5px; }
.pop-timeline li { display: flex; gap: 6px; align-items: baseline; }
.pop-timeline li span:last-child { font-family: var(--mono); word-break: break-word; }
.pop-timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-timeline .badge { font-size: 10px; padding: 0 4px; }
.pop .read-more { margin-top: 8px; }

/* Meldingpagina */
.r-unit { font-size: 12px; font-weight: 700; color: var(--c); }
.r-text { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.r-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.r-share a, .r-share button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; text-decoration: none; cursor: pointer;
}
.r-share a:hover, .r-share button:hover { background: var(--hover); }
.r-share svg { width: 14px; height: 14px; }
.r-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.r-timeline li {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 10px 0 14px;
  border-left: 3px solid var(--c);
  padding-left: 14px;
}
.r-timeline li::before {
  content: ""; position: absolute; left: -8px; top: 14px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--c); border: 2px solid var(--bg);
}
.r-timeline time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; padding-top: 1px; }
.r-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.r-tl-head .disc { color: var(--c); }
.r-tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); word-break: break-word; }
.r-incident { text-decoration: none; }
.r-incident-title { font-weight: 700; font-size: 14px; }
@media (max-width: 480px) { .r-timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Swipe: kop per incident */
.s-headline { font-size: clamp(20px, 5vw, 24px); }
.s-inner:not(.s-newscard) .s-msg { font-size: 15px; color: rgb(255 255 255 / 80%); }
.s-also { font-size: 13px; color: var(--s-muted); }

/* ---- Webcams ---- */
.cam-pin {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0f766e; color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
}
.cam-pin svg { width: 14px; height: 14px; }
.cam-pin.link { background: #5b6b73; }
.cam-pop { min-width: 280px; }
.cam-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cam-title svg { width: 16px; height: 16px; color: #0f766e; }
.cam-play {
  display: grid; place-items: center; gap: 4px;
  width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.cam-play small { font-weight: 400; font-size: 11px; opacity: 0.8; }
.cam-play-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 20%); font-size: 18px; }
.cam-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.cam-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cam-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.cam-meta a { color: inherit; }

/* ---- Verkeer (NDW) ---- */
.traffic-pin {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 6px;
  background: #ea7a0a; color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
}
.traffic-pin svg { width: 12px; height: 12px; }
.traffic-pin.ended { opacity: 0.45; }
.traffic-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #ea7a0a; color: #fff; }
.traffic-badge svg { width: 11px; height: 11px; }
.r-traffic { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, #ea7a0a 12%, transparent); border: 1px solid color-mix(in srgb, #ea7a0a 35%, transparent); margin: 12px 0 0; }

.legend-sym { width: 12px; height: 12px; display: inline-grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; }
.legend-sym.traffic { background: #ea7a0a; border-radius: 3px; }
.legend-sym.cam { background: #0f766e; border-radius: 50%; }

/* ---- Artikel bij een melding ---- */
.r-updated { font-size: 12.5px; color: var(--muted); margin: -4px 0 14px; }
.r-updates { margin: 18px 0; padding: 14px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.r-updates h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 8px; }
.r-updates ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.r-updates li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.r-updates time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--urgent); }
.r-updates .u-nieuws time { color: var(--news); }
.r-updates .u-ndw time { color: #ea7a0a; }
.r-updates a { color: var(--text); }
.r-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.r-facts > div { padding: 12px 14px; border-radius: 10px; background: var(--hover); border: 1px solid var(--line); }
.r-facts h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 6px; }
.r-facts ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 560px) { .r-facts { grid-template-columns: 1fr; } }

/* Uitleg van de P2000-tekst */
.r-explain { margin-top: 6px; font-size: 13px; }
.r-explain summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.r-explain summary:hover { color: var(--text); }
.r-explain dl { margin: 8px 0 0; display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--hover); }
.r-explain dl > div { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 10px; }
.r-explain dt { font-family: var(--mono); font-size: 12px; font-weight: 700; word-break: break-word; }
.r-explain dd { margin: 0; line-height: 1.45; }
@media (max-width: 480px) { .r-explain dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---- 112 vandaag ---- */
.today-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--text); background: var(--hover);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 10px; white-space: nowrap;
}
.today-btn:hover { background: var(--selected); }
@media (max-width: 520px) { .today-btn span { display: none; } }

.today-view { position: fixed; inset: 0; z-index: 1600; background: #07080a; display: grid; place-items: center; }
.today-view[hidden] { display: none; }
.today-view .swipe-close { position: absolute; top: 12px; left: 12px; z-index: 5; }
.today-stage { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); overflow: hidden; }
@media (min-width: 700px) { .today-stage { border-radius: 18px; height: calc(100dvh - 32px); width: calc((100dvh - 32px) * 9 / 16); box-shadow: 0 10px 50px rgb(0 0 0 / 60%); } }

.td { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0d0f13; color: #f5f6f7; font-family: var(--font); container-type: size; }
.td-map { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
:root .td .td-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(1.05) contrast(0.85) saturate(0.35); }
.td-map.leaflet-container { background: #0d0f13; }
.td-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(8 9 12 / 94%) 0%, rgb(8 9 12 / 55%) 20%, transparent 30%, transparent 66%, rgb(8 9 12 / 80%) 80%, rgb(8 9 12 / 96%) 100%); }

/* Kop: links titel, rechts de klok */
.td-top { position: absolute; top: 7cqh; left: 5cqw; right: 36cqw; z-index: 2; }
.td-kicker { display: inline-block; font-size: max(10px, 2.8cqw); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: #e11d2e; color: #fff; padding: 0.35em 0.75em; border-radius: 4px; }
.td-region { font-size: min(34px, 8cqw); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-top: 1.2cqh; text-wrap: balance; }
.td-date { font-size: min(14px, 3.5cqw); color: rgb(255 255 255 / 72%); margin-top: 0.6cqh; }
.td-clock { position: absolute; top: calc(1.6cqh + 50px); right: 5cqw; z-index: 2; text-align: right; }
.td-time { display: block; font-size: min(42px, 10cqw); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; text-shadow: 0 2px 12px rgb(0 0 0 / 70%); }
.td-bar { width: 26cqw; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 18%); margin: 1cqh 0 0 auto; overflow: hidden; }
.td-bar i { display: block; height: 100%; width: 0; background: #e11d2e; }

/* Nieuwsregel bij spoedmeldingen, boven de tellers */
.td-ticker {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 20cqh; z-index: 3;
  display: flex; gap: 2.5cqw; align-items: baseline;
  padding: 1.4cqh 3.5cqw; border-radius: 12px;
  background: rgb(12 13 17 / 90%); border-left: 4px solid var(--c, #fff);
  font-size: min(15px, 3.7cqw); font-weight: 700; line-height: 1.3;
  box-shadow: 0 6px 24px rgb(0 0 0 / 50%);
}
.td-ticker[hidden] { display: none; }
.td-ticker time { font-variant-numeric: tabular-nums; color: var(--c, #fff); font-size: 0.88em; flex-shrink: 0; }
.td-ticker.in { animation: td-in 0.35s ease-out; }
@keyframes td-in { from { transform: translateY(12px); opacity: 0; } }

.td-counters { position: absolute; left: 4cqw; right: 4cqw; bottom: 4cqh; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.td-count { min-width: 0; padding: 1.4cqh 1cqw 1.1cqh; border-radius: 12px; background: rgb(255 255 255 / 7%); border-top: 3px solid var(--c); text-align: center; }
.td-count b { display: block; font-size: min(30px, 7.5cqw); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.td-count span { display: block; font-size: min(11.5px, 2.9cqw); color: rgb(255 255 255 / 72%); font-weight: 600; margin-top: 0.4cqh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-count.bump b { animation: td-bump 0.4s ease-out; }
@keyframes td-bump { 40% { transform: scale(1.18); color: var(--c); } }

.td-dot { transform-box: fill-box; transform-origin: center; animation: td-pop 0.5s cubic-bezier(.2,1.6,.4,1); }
.td-dot.urgent { animation: td-pop 0.5s cubic-bezier(.2,1.6,.4,1), td-glow 1.6s ease-out 0.5s; }
@keyframes td-pop { from { transform: scale(0); } }
@keyframes td-glow { 0% { filter: drop-shadow(0 0 0 #fff); } 30% { filter: drop-shadow(0 0 8px #fff); } 100% { filter: drop-shadow(0 0 0 transparent); } }

.td-intro { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; gap: 1cqh; background: #0b0c10; transition: opacity 0.6s, visibility 0.6s; }
.td-intro.gone { opacity: 0; visibility: hidden; }
/* "Minder beweging": in 112 vandaag geen inschuivende, opploppende of opspringende delen; today.js toont dan meteen
   de eindstand (5 okt 2026). */
@media (prefers-reduced-motion: reduce) {
  .td-ticker.in, .td-count.bump b, .td-dot, .td-dot.urgent, .td-intro-k, .td-intro-r, .td-intro-n, .td-outro, .td-hl li, .td-facts div { animation: none; }
  .td-intro { transition: none; }
}
.td-intro-k { justify-self: center; font-size: max(11px, 3.2cqw); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: #e11d2e; padding: 0.35em 0.8em; border-radius: 4px; animation: td-in 0.5s ease-out; }
.td-intro-r { font-size: min(36px, 9cqw); font-weight: 800; letter-spacing: -0.02em; padding: 0 6cqw; animation: td-in 0.6s ease-out 0.15s backwards; }
.td-intro-n { font-size: min(16px, 4cqw); color: rgb(255 255 255 / 72%); animation: td-in 0.6s ease-out 0.35s backwards; }

.td-outro {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 3cqh 4cqw 3cqh;
  background: linear-gradient(to bottom, rgb(10 11 14 / 0%), rgb(10 11 14 / 96%) 12%);
  animation: td-up 0.6s ease-out;
}
.td-outro[hidden] { display: none; }
@keyframes td-up { from { transform: translateY(40px); opacity: 0; } }
.td-done .td-counters, .td-done .td-ticker { display: none; }
.td-outro-h { font-size: max(10px, 2.8cqw); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(255 255 255 / 65%); margin: 2.5cqh 0 1cqh; }
.td-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 1cqh; }
.td-hl li { display: grid; grid-template-columns: 11cqw 1fr; gap: 2cqw; padding: 1.3cqh 3cqw; border-radius: 10px; background: rgb(255 255 255 / 7%); border-left: 4px solid var(--c); font-size: min(15px, 3.7cqw); font-weight: 700; line-height: 1.3; cursor: pointer; animation: td-in 0.45s ease-out backwards; }
.td-hl li:nth-child(2) { animation-delay: 0.15s; }
.td-hl li:nth-child(3) { animation-delay: 0.3s; }
.td-hl time { font-size: 0.86em; color: rgb(255 255 255 / 65%); font-variant-numeric: tabular-nums; }
.td-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; margin-top: 1.6cqh; }
.td-facts div { min-width: 0; padding: 1.3cqh 1.5cqw; border-radius: 10px; background: rgb(255 255 255 / 5%); text-align: center; animation: td-in 0.45s ease-out 0.5s backwards; }
.td-facts b { display: block; font-size: min(19px, 4.6cqw); font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-facts span { display: block; font-size: min(11px, 2.7cqw); color: rgb(255 255 255 / 65%); }
.td-how { margin-top: .6cqh; font-size: min(14px, 3.6cqw); color: rgba(255,255,255,.82); font-weight: 600; }
.td-next { margin: 1.4cqh 0 0; text-align: center; font-size: min(15px, 3.8cqw); font-weight: 700; color: #fff; }
.td-replay { margin-top: 1.6cqh; width: 100%; font: inherit; font-weight: 700; font-size: min(14px, 3.6cqw); color: #111; background: #fff; border: 0; border-radius: 999px; padding: 1.3cqh; cursor: pointer; }
.td-pause { position: absolute; top: 1.6cqh; right: 3cqw; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 14%); color: #fff; font-size: 13px; cursor: pointer; }
.td-brand { position: absolute; top: 2.6cqh; left: 50%; transform: translateX(-50%); z-index: 5; font-family: var(--display); font-size: max(11px, 3.2cqw); font-weight: 800; letter-spacing: -0.03em; color: rgb(255 255 255 / 70%); pointer-events: none; }
.td-brand em { font-style: normal; color: var(--live); }
.td-done .td-clock { opacity: 0.35; }
/* Advertentiekaart na het afspelen (app.js todayAdCard, 5 okt 2026): zelfde opbouw en kleuren als de advertentiekaart in
   de feed (.s-ad), over het hele beeld, met een knop terug naar de samenvatting. */
.td-ad { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px;
  background: #121418; }
.td-ad-back { min-height: 44px; padding: 0 20px; font: inherit; font-size: 15px; font-weight: 800; color: #0b0c0f; background: #fff; border: 0; border-radius: 999px; cursor: pointer; }
.td-ad-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.td-ad .ad-slot > span { font-size: 13px; letter-spacing: 0; text-transform: none; }
.s-today { padding: 0; } .s-today .td-host { position: absolute; inset: 0; }

.today-stage .td-host { position: absolute; inset: 0; }
/* In de swipe-modus staat de swipe-bovenbalk al bovenin: kop van de video iets lager, geen eigen logo/pauzeknop. */
.s-today .td-brand, .s-today .td-pause { display: none; }
.s-today .td-top { top: calc(5cqh + 52px); }
.s-today .td-clock { top: calc(5cqh + 52px); }

/* ---- Woonplaats kiezen ---- */
.picker { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; background: rgb(10 12 16 / 45%); padding: 16px; }
.picker[hidden] { display: none; }
.picker-card { position: relative; width: min(440px, 100%); background: var(--panel); color: var(--text); border-radius: 16px; padding: 22px 20px 18px; box-shadow: 0 20px 60px rgb(0 0 0 / 30%); }
.picker-card h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.picker-card p { margin: 0 0 14px; font-size: 13.5px; }
.picker-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--hover); color: var(--text); cursor: pointer; }
.picker-close[hidden] { display: none; }
.picker-input { font-size: 16px; padding: 11px 12px; }
.picker-results { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow-y: auto; }
.picker-results button { width: 100%; text-align: left; font: inherit; font-size: 14.5px; color: var(--text); background: none; border: 0; border-radius: 8px; padding: 10px 10px; cursor: pointer; }
.picker-results button:hover, .picker-results button:focus-visible { background: var(--hover); outline: none; }
.picker-empty { padding: 10px; font-size: 13px; }
.picker-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.picker-nl { width: 100%; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.picker-nl:hover { color: var(--text); background: var(--hover); }
@media (max-width: 800px) {
  .picker { place-items: end stretch; padding: 0; }
  .picker-card { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.legend-btn { display: none; }
@media (max-width: 800px) { .legend-btn { display: grid; } }

/* ---- Lees- en meldingpagina: twee kolommen op desktop ---- */
.r-grid { display: block; }
.r-side .r-section:first-child { margin-top: 36px; }
.r-ad { margin: 28px 0; text-align: center; }
.ad-inarticle { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.ad-side { width: 300px; height: 600px; margin: 0 auto; }
.r-ad-side { display: none; }
.r-today {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0 0; padding: 14px 16px;
  border-radius: 12px; text-decoration: none; color: #fff;
  background: #14161b;
}
.r-today:hover { background: #1c1f26; }
.r-today-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e11d2e; font-size: 14px; flex-shrink: 0; }
.r-today b { display: block; font-size: 15px; }
.r-today small { color: rgb(255 255 255 / 70%); font-size: 13px; }
@media (min-width: 1100px) {
  .reader-body { max-width: 1180px; }
  .r-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: stretch; }
  .r-side .r-section:first-child { margin-top: 0; }
  .r-side .r-map { height: 220px; }
  .r-side .area-box.full .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-ad-side { display: block; margin-top: 24px; position: sticky; top: 130px; }
}

/* Themaknop */
.theme-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.theme-btn:hover { color: var(--text); background: var(--hover); }
.theme-btn svg { width: 16px; height: 16px; }

/* Windy-webcams: kleiner en blauw, eigen livestreams groen */
.cam-pin.windy { background: #2563eb; }
.cam-still { display: block; border-radius: 8px; overflow: hidden; background: #000; }
.cam-still img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.cam-timelapse { margin-top: 8px; width: 100%; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--hover); border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.cam-timelapse:hover { background: var(--selected); }
.news-also { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---- Compacte popup bij een incident ---- */
.pop .pop-headline { display: block; font-weight: 750; font-size: 14.5px; line-height: 1.3; color: var(--text); text-decoration: none; margin: 2px 0 4px; }
.pop .pop-headline:hover { text-decoration: underline; }
.pop-summary { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pop-update { font-size: 12.5px; line-height: 1.4; padding: 6px 8px; border-radius: 6px; background: var(--hover); margin-bottom: 6px; }
.pop-update time { font-weight: 700; color: var(--urgent); font-variant-numeric: tabular-nums; }
.pop-msg { font-size: 12px; margin: 6px 0; }
.pop-calls { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 3px; }
.pop-calls a { display: grid; grid-template-columns: 38px auto 1fr; gap: 6px; align-items: baseline; padding: 4px 6px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 11.5px; }
.pop-calls a:hover { background: var(--hover); }
.pop-calls time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pop-calls span:last-child { font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-calls .badge { font-size: 10px; padding: 0 4px; }
.pop-more a { display: block; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 6px; }
.pop-area { font-size: 12px; color: var(--muted); margin: 4px 0; }
.pop-area .area-line { background: none; padding: 0; }
.pop-cta { display: block; margin-top: 8px; text-align: center; font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--panel) !important; text-decoration: none; }
.pop-cta:hover { filter: brightness(1.15); }

/* Incident met gekoppeld nieuws: klein paars icoontje op de marker */
.dot { position: relative; }
.dot .news-badge { position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--news); border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 15%); }

/* ---- Tip de redactie ---- */
.tip-nav {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.tip-nav:hover { background: var(--hover); }
.pop-tip {
  display: block; width: 100%; margin-top: 6px; padding: 6px; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.pop-tip:hover { color: var(--text); }
.r-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--hover);
}
.r-tip b { display: block; font-size: 15px; }
.r-tip span { font-size: 13px; color: var(--muted); }
.r-tip > div { flex: 1 1 220px; }
.r-tip-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--panel); background: var(--text); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.r-tip-btn svg { width: 16px; height: 16px; }
.r-tip-btn:hover { filter: brightness(1.15); }

.tip-dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.tip-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.tip-form { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.tip-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.tip-head h2, .tip-done h2 { margin: 0; font-size: 19px; }
.tip-x { font-size: 26px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px 6px; }
.tip-body { overflow-y: auto; padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 6px; }
.tip-about { margin: 0 0 4px; font-size: 13px; }
.tip-112 { margin: 0 0 6px; padding: 9px 12px; font-size: 13px; border-radius: 8px; background: color-mix(in srgb, var(--urgent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--urgent) 35%, transparent); }
.tip-label { font-size: 13px; font-weight: 700; margin-top: 6px; }
.tip-dialog textarea, .tip-dialog input:not([type="checkbox"]) {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg); width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
}
.tip-dialog textarea { resize: vertical; min-height: 110px; }
.tip-dialog textarea:focus, .tip-dialog input:focus { outline: 2px solid var(--politie); outline-offset: -1px; }
.tip-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.tip-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin-top: 6px; cursor: pointer; }
.tip-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.tip-contact { display: flex; flex-direction: column; gap: 6px; }
.tip-contact[hidden] { display: none; }
.tip-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tip-error { margin: 4px 0 0; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--urgent); background: color-mix(in srgb, var(--urgent) 10%, transparent); border-radius: 8px; }
.tip-privacy { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.tip-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); margin-top: 8px; }
.tip-cancel { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.tip-send { font: inherit; font-size: 14px; font-weight: 700; color: var(--panel); background: var(--text); border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.tip-send:disabled { opacity: 0.6; cursor: wait; }
.tip-done { padding: 28px 22px 22px; text-align: center; }
.tip-done[hidden], .tip-form[hidden] { display: none; }
.tip-done p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.tip-done-icon { width: 48px; height: 48px; margin: 0 auto 10px; display: grid; place-items: center; font-size: 24px; font-weight: 700; border-radius: 50%; color: #fff; background: #2e9e5b; }
@media (max-width: 560px) {
  .tip-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .tip-form { max-height: 100dvh; height: 100%; }
  .tip-body { flex: 1; }
}
.tip-check[hidden], .tip-112[hidden] { display: none; }

/* ---- Snelle reacties ---- */
.rx:empty { display: none; }
.rx-full { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 10px; }
.rx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.rx-head b { font-size: 15px; }
.rx-head span { font-size: 12px; color: var(--muted); }
.rx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rx-q { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 2px; }
/* Ontwerp 10 nov 2026 (eigenaar: "rommelig"): kop met de uitleg eronder, elke vraag een eigen kopje, statusknoppen als één
   schakelaar in twee helften, eigen iconen in plaats van emoji. */
.rx-full .rx-head { display: grid; gap: 2px; justify-content: start; }
.rx-ask { display: grid; gap: 6px; justify-items: start; }
.rx-ask .rx-q { margin: 0; }
.rx-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); }
.rx-seg .rx-btn { border-color: transparent; background: transparent; padding: 6px 14px; }
.rx-seg .rx-btn:hover { border-color: transparent; background: color-mix(in srgb, var(--text) 8%, transparent); }
.rx-ico { display: inline-grid; place-items: center; }
.rx-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rx-thx { display: inline-flex; align-items: center; gap: 6px; }
.rx-thanks { display: inline-flex; align-items: center; gap: 6px; }
.rx-pill-ico .rx-svg { width: 22px; height: 22px; }
.rx-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--hover); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer;
  transition: transform 0.08s ease;
}
.rx-btn:hover { border-color: var(--muted); }
.rx-btn:active { transform: scale(0.96); }
.rx-btn.on { color: var(--panel); background: var(--text); border-color: var(--text); }
.rx-status.rx-voorbij.on { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }
.rx-status.rx-bezig.on { background: var(--knrm); border-color: var(--knrm); color: #fff; }
.rx-n { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.rx-lines { display: grid; gap: 4px; font-size: 13.5px; }
.rx-status-line { font-weight: 600; }
.rx-status-line em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-left: 4px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; }
.rx-note { margin: 0; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ambulance) 14%, transparent); }
.rx-msg { margin: 0; font-size: 12.5px; color: var(--urgent); font-weight: 600; }
.rx-msg[hidden] { display: none; }
.rx-dank { background: color-mix(in srgb, #2e9e5b 12%, var(--hover)); }
.rx-line { display: grid; gap: 2px; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.rx-line[hidden] { display: none; }
.rx-card { display: grid; gap: 8px; margin-top: 10px; }
.rx-card .rx-btn { font-size: 13px; padding: 6px 11px; color: #fff; background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 22%); }
.rx-card .rx-btn.on { color: #111; background: #fff; border-color: #fff; }
.rx-card .rx-status-line em { color: rgb(255 255 255 / 70%); border-color: rgb(255 255 255 / 30%); }
.rx-card .rx-lines { color: #fff; }
.rx-card .rx-q { color: rgb(255 255 255 / 72%); font-size: 12.5px; }
.rx-card .rx-seg { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 18%); }
.rx-card .rx-seg .rx-btn:not(.on) { background: transparent; border-color: transparent; }
.r-feedback { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.r-feedback .r-link-btn { margin-left: 0; color: var(--muted); }
.rx-useful { font-size: 13px; padding: 5px 12px; }
.rx-thanks { font-size: 13px; font-weight: 600; color: var(--muted); }
.today-feedback { position: absolute; right: 12px; bottom: 12px; z-index: 5; }
.today-feedback .rx-btn { color: #fff; background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 25%); backdrop-filter: blur(6px); }
.today-feedback .rx-thanks { color: #fff; }

/* ---- Volg deze melding ---- */
.r-follow { margin: 10px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.follow-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px; cursor: pointer;
}
.follow-btn svg { width: 16px; height: 16px; }
.follow-btn.on { color: #fff; background: var(--politie); border-color: var(--politie); }
.follow-btn:disabled { opacity: 0.6; cursor: wait; }
.follow-msg { margin: 0; font-size: 12.5px; color: var(--muted); flex-basis: 100%; }
.s-actions button[data-follow][aria-pressed="true"] svg { background: var(--politie); }

/* ---- Ik hoor sirenes ---- */
.sirens-btn {
  display: inline-flex !important; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--text); background: var(--panel); border-radius: 999px !important; padding: 7px 12px 7px 9px; box-shadow: var(--shadow);
}
.sirens-btn svg { width: 18px; height: 18px; color: var(--urgent); }
.sirens-btn:hover { background: var(--hover); }
.sirens-card {
  position: absolute; z-index: 1000; top: 60px; right: 10px; width: min(340px, calc(100% - 20px)); max-height: calc(100% - 80px); overflow-y: auto;
  padding: 14px 14px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 14px;
}
.sirens-card p { margin: 0 0 8px; }
.sirens-x { position: absolute; top: 6px; right: 8px; font-size: 22px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.sirens-title { padding-right: 20px; }
.sirens-title small, .sirens-wait small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.sirens-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.sirens-list button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: 0; border-radius: 8px; padding: 7px 6px; cursor: pointer; }
.sirens-list button:hover { background: var(--hover); }
.sirens-list b { display: block; font-size: 13.5px; line-height: 1.3; }
.sirens-list small { color: var(--muted); font-size: 12px; }
.sirens-dots { display: flex; gap: 2px; padding-top: 4px; }
.sirens-dots .dot { width: 10px; height: 10px; }
.sirens-empty { font-size: 13px; }
.sirens-more { font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--hover); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sirens-hint { margin-top: 8px !important; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .sirens-btn span { display: none; }
  /* Alleen het icoon: groot genoeg om makkelijk te raken (min. 44 px). */
  .sirens-btn { padding: 10px; min-width: 46px; min-height: 46px; justify-content: center; }
  .sirens-btn svg { width: 24px; height: 24px; }
}
/* Uitleg bij het icoon (eenmalig, mobiel): grote tekst, duidelijke knop. */
.sirens-hint-bubble {
  position: absolute; z-index: 1001; width: min(270px, calc(100% - 24px)); padding: 14px 16px; border-radius: 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 24px rgb(0 0 0 / 30%);
  font-size: 16px; line-height: 1.45;
}
.sirens-hint-bubble::before { content: ""; position: absolute; top: -8px; right: 15px; width: 14px; height: 14px; background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.sirens-hint-bubble p { margin: 0 0 12px; }
.sirens-hint-bubble button { font: inherit; font-size: 16px; font-weight: 700; width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: var(--urgent); color: #fff; cursor: pointer; }
@media (max-width: 800px) {
  .sirens-card { top: 56px; max-height: calc(100% - 240px); }
  .sirens-btn { border: 1px solid var(--line) !important; }
}
/* Vier actieknoppen (Kaart, Deel, Volg, Tip): compacter en boven de Details-knop. */
.s-actions { gap: 10px; bottom: 76px; }
.s-actions button svg { width: 42px; height: 42px; padding: 11px; }
.rx-line em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); }
.news-old { font-size: 12px; font-weight: 600; color: var(--knrm); margin-top: 2px; }

/* ---- Merk in de balk van de leespagina (met scroll-effect) ---- */
.reader-bar-inner { justify-content: flex-start; transition: padding 0.35s cubic-bezier(.2,.7,.2,1); }
.reader-brand { margin-right: auto; }
.reader-bar .mark { width: 38px; height: 38px; }
.reader-bar .word { font-size: 22px; }
.reader-bar.small .reader-bar-inner { padding-top: 4px; padding-bottom: 4px; }
.reader-bar.small .mark { width: 28px; height: 28px; }
.reader-bar.small .word { font-size: 18px; }
@media (max-width: 420px) {
  .reader-bar.small .word { display: none; }
}

/* Smalle telefoons (onder de iPhone SE-breedte): het woordmerk past niet naast de woonplaats; dan alleen het beeldmerk. */
@media (max-width: 374px) {
  .topbar .word { display: none; }
}

/* ---- Mobiel: tikdoelen, kaartvermelding, iPhone-veilige zones ---- */
.theme-pre { display: none; }
@media (max-width: 800px) {
  .topnav .theme-pre { display: inline; }
  /* Duimvriendelijk: knoppen minstens ~36 px hoog. */
  .seg button { min-height: 34px; }
  .chip { min-height: 36px; }
  .picker .chip, #picker-quick .chip { min-height: 38px; }
  .swipe-mode button { min-height: 34px; }
  .leaflet-touch .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; }
  .leaflet-container a.leaflet-popup-close-button { width: 36px; height: 36px; font-size: 22px; line-height: 34px; }
  .tip-check { min-height: 32px; align-items: center; }
  /* De bronvermelding van de kaart (Windy-vermelding is verplicht) klein en op één regel. */
  /* Niet afkappen: de Windy-vermelding met "add a webcam" moet zichtbaar blijven. */
  .leaflet-control-attribution { font-size: 9.5px; line-height: 1.3; max-width: calc(100vw - 16px); }
  .reader-bar .mark { width: 32px; height: 32px; }
  .reader-bar .word { font-size: 19px; }
}

/* iPhone met thuisbalk/notch (en de app op het beginscherm): niets onder de statusbalk of de thuisbalk. */
.topbar { padding-top: max(8px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.reader-bar { padding-top: env(safe-area-inset-top); }
.swipe-top { padding-top: max(10px, env(safe-area-inset-top)); }
.today-view .swipe-close { top: max(12px, env(safe-area-inset-top)); }
.s-content { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.reader-body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 800px) {
  .panel { padding-bottom: env(safe-area-inset-bottom); }
  .tip-dialog .tip-foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .tip-dialog .tip-head { padding-top: max(14px, env(safe-area-inset-top)); }
}
.s-actions { bottom: calc(76px + env(safe-area-inset-bottom)); }
.s-inner > .s-cta { margin-bottom: env(safe-area-inset-bottom); }

/* ---- Feed: ingangen en kaarten ---- */
.feed-count { font-weight: 600; opacity: 0.8; }
.feed-count::before { content: "· "; }
.swipe-btn.has-new .feed-count { color: var(--live); opacity: 1; }
.feed-fab { display: none; }
@media (max-width: 800px) {
  .feed-fab {
    display: inline-flex; align-items: center; gap: 7px;
    position: absolute; left: 50%; transform: translateX(-50%);
    bottom: calc(168px + 40px + env(safe-area-inset-bottom)); z-index: 1040;
    font: inherit; font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
    color: #fff; background: var(--ink); border: 0; border-radius: 999px;
    padding: 11px 18px 11px 14px; min-height: 46px; cursor: pointer;
    box-shadow: 0 6px 20px rgb(0 0 0 / 35%);
  }
  :root[data-theme="dark"] .feed-fab { color: #0f1216; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feed-fab { color: #0f1216; } }
  .feed-fab svg { width: 16px; height: 16px; }
  .feed-fab .feed-count { font-weight: 600; }
  /* Alleen als het onderblad dicht is; open blad = je bent al aan het lezen. */
  #panel:not([data-sheet="peek"]) ~ .feed-fab { display: none; }
}
.feed-dot { display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgb(255 138 61 / 60%); }
.feed-fab.has-new .feed-dot { display: block; animation: feed-pulse 2s infinite; }
.feed-fab.has-new .feed-count { color: var(--live); }
:root[data-theme="dark"] .feed-fab.has-new .feed-count { color: #b4530f; }
@keyframes feed-pulse { 70% { box-shadow: 0 0 0 8px rgb(255 138 61 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 138 61 / 0%); } }
@media (prefers-reduced-motion: reduce) { .feed-fab.has-new .feed-dot { animation: none; } }
/* Nieuwsfoto als beeld van een melding */
.s-visual { position: relative; }
.s-credit { position: absolute; right: 10px; bottom: 48px; z-index: 2; font-size: 10.5px; color: rgb(255 255 255 / 80%); background: rgb(0 0 0 / 45%); padding: 2px 7px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feed-fab.has-new .feed-count { color: #b4530f; } }

/* Tussenkaart in de feed: de feed waaiert uit van je woonplaats naar buiten */
.s-divider-inner { display: grid; place-items: center; background: var(--ink); }
:root[data-theme="dark"] .s-divider-inner { background: #143b5c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-divider-inner { background: #143b5c; } }
.s-divider-box { text-align: center; color: #fff; padding: 24px; max-width: 320px; }
.s-divider-box h2 { font-family: var(--display); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 8px; }
.s-divider-box p { margin: 0; color: rgb(255 255 255 / 75%); font-size: 14px; }
.s-divider-kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px !important; font-weight: 700; color: var(--live) !important; }
.s-divider-ring { display: block; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--live); box-shadow: 0 0 0 10px rgb(255 138 61 / 18%), 0 0 0 22px rgb(255 138 61 / 8%); }
.s-divider-arrow { display: block; margin-top: 18px; font-size: 22px; color: rgb(255 255 255 / 70%); }
.s-card { position: relative; } /* knoppen blijven bij hun eigen kaart */
.s-tag-good { background: rgb(29 158 117 / 30%) !important; color: #d6f5e9; }

/* Feed: verhaal in plaats van P2000-code, meer tekst bij nieuws, hele kaart aantikbaar */
.s-incident .s-content, .s-news .s-content, .s-incident .s-visual, .s-news .s-visual { cursor: pointer; }
.s-story { margin: 0; font-size: 15.5px; line-height: 1.45; color: rgb(255 255 255 / 88%); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.s-newslink-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; color: rgb(255 255 255 / 78%); margin: 3px 0 2px; }
.back-map { margin-left: 2px; }
@media (max-width: 420px) { .back-map span { display: none; } }

/* Feed: je buurt nu, meedoen, goede afloop */
.s-summary-inner, .s-join-inner { display: grid; place-items: center; background: #0f2f4a; }
.s-summary-inner.calm { background: #123a3a; }
.s-summary-box, .s-join-box { color: #fff; padding: 28px 24px; max-width: 360px; width: 100%; }
.s-summary-box h2, .s-join-box h2 { font-family: var(--display); font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; margin: 6px 0 10px; text-wrap: balance; }
.s-summary-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; font-weight: 700; color: var(--live); }
.s-summary-line { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / 82%); }
.s-summary-hint { margin: 22px 0 0; font-size: 13px; color: rgb(255 255 255 / 55%); }
.s-sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.s-sum-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / 10%); }
.s-sum-chip .dot { width: 9px; height: 9px; }
.s-join-box .rx-card { margin: 14px 0 6px; }
.s-join-box .rx-card .rx-btn { font-size: 15px; padding: 10px 14px; }
.s-join-btn { margin-top: 10px; font: inherit; font-size: 15px; font-weight: 800; color: #0f1216; background: var(--live); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; }
.s-join-link { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; opacity: 0.85; }
.s-good-strip { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: max(52px, calc(env(safe-area-inset-top) + 44px)) 20px 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #d6f5e9; background: linear-gradient(to bottom, rgb(15 110 86 / 85%), transparent); pointer-events: none; }
.s-tag-good { background: #1d9e75 !important; color: #fff !important; }
.s-good .s-content { box-shadow: inset 0 3px 0 #1d9e75; }

/* Ruitpins: incidenten die alleen uit het nieuws bekend zijn (steekincident, explosie …) en goede afloop */
.news-diamond { display: block; width: 15px; height: 15px; margin: 3.5px; transform: rotate(45deg); border-radius: 3px; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 45%); }
.news-diamond.incident { background: #d85a30; }
.news-diamond.good { background: #1d9e75; }
.news-diamond.approx { border-style: dashed; }
.news-diamond.small { display: inline-block; width: 9px; height: 9px; margin: 0 6px 0 2px; border-width: 1.5px; box-shadow: none; vertical-align: middle; }
.news-facts { font-size: 12px; font-weight: 700; color: #d85a30; margin: 4px 0 2px; }
.news-facts.good { color: #1d9e75; }

/* Maandoverzicht */
.ov-months { display: flex; justify-content: space-between; gap: 12px; margin: -4px 0 18px; font-size: 14px; font-weight: 600; }
.ov-months a { color: var(--muted); text-decoration: none; }
.ov-months a:hover { color: var(--text); }
.ov-rust { padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, #1d9e75 14%, transparent); margin-bottom: 16px; }
.ov-rust p { margin: 0; font-weight: 600; }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ov-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.ov-n { font-family: var(--display); font-size: 30px; line-height: 1; }
.ov-label { font-weight: 700; margin-top: 4px; }
.ov-src { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ov-src a { color: var(--news); font-weight: 600; text-decoration: none; }
.ov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ov-item { padding: 10px 12px; border-left: 3px solid #d85a30; background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.ov-item.good { border-left-color: #1d9e75; }
.ov-item p { margin: 4px 0; font-size: 14.5px; }
.ov-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.ov-item-head time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-chip { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--hover); }
.nav-overview { color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.nav-overview:hover { color: var(--text); background: var(--hover); }
.back-btn[hidden] { display: none !important; }

/* ---- Delen in de buurtapp ---- */
:root { --wa: #25d366; --wa-bg: #e5f7ec; --wa-text: #0e5a2c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wa-bg: #12301f; --wa-text: #8fe6b2; } }
:root[data-theme="dark"] { --wa-bg: #12301f; --wa-text: #8fe6b2; }
.r-share-wrap { display: grid; gap: 10px; margin: 16px 0 4px; }
.r-share-wrap .r-share { margin-top: 0; }
.r-share-wa {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  color: var(--wa-text); background: var(--wa-bg);
  border: 1px solid color-mix(in srgb, var(--wa) 45%, transparent); border-radius: 999px;
  padding: 10px 18px 10px 12px;
}
.r-share-wa:hover { border-color: var(--wa); }
.r-share-wa .wa-icon { width: 22px; height: 22px; color: var(--wa); flex: none; }
.s-wa {
  display: grid; justify-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: #fff; text-decoration: none;
}
.s-wa .wa-icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 50%;
  color: #fff; background: #1faa52; box-shadow: 0 2px 10px rgb(0 0 0 / 25%);
}
.s-wa:hover .wa-icon { background: #22bf5c; }
.s-wa:focus-visible .wa-icon { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- In context (eigen historie, NDW) ---- */
.r-context {
  margin: 14px 0 6px; padding: 12px 14px;
  background: var(--sky); border-radius: var(--radius);
}
.r-context h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.r-context ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.r-context li { line-height: 1.45; }
.r-ctx-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.s-context {
  margin: 6px 0 0; font-size: 13px; line-height: 1.4; font-weight: 600;
  color: var(--s-text, #fff); opacity: 0.92;
  padding-left: 10px; border-left: 3px solid var(--live);
}

/* ---- Testomgeving (dev.mijnbuurt.nu): altijd zichtbaar dat dit niet de echte site is ---- */
html[data-env="develop"] body::after {
  content: "TESTOMGEVING"; position: fixed; z-index: 5000; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  pointer-events: none; font: 800 11px/1 var(--font); letter-spacing: 0.12em; color: #fff; background: #7a3cff; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}

/* ---- Lage schermen (oudere laptops, 1366×768 en kleiner in hoogte) ----
   Filters achter de knop "Filters" en de legenda als i-knopje, zodat er ruimte is voor meldingen en kaart. */
@media (min-width: 801px) and (max-height: 820px) {
  .filters-btn { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: grid; }
  .panel-quick { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .legend { display: none; }
  .legend.open { display: grid; }
  .legend-btn { display: grid; }
}

/* ---- Intro: "buurt komt samen" in de bovenbalk (eerste weergave van een bezoek, en na het kiezen van je woonplaats) ----
   Core Web Vitals: alleen transform/opacity/clip-path op een element met vaste maat (geen verschuiving, CLS 0),
   geen afdekkend openingsscherm (LCP onveranderd), pure CSS gestart vóór het eerste beeld (INP onveranderd). */
.mb1 { --fx: -34px; --fy: -34px; } .mb2 { --fx: 0px; --fy: -44px; } .mb3 { --fx: 34px; --fy: -34px; }
.mb5 { --fx: 44px; --fy: 0px; } .mb8 { --fx: 34px; --fy: 34px; } .mb7 { --fx: 0px; --fy: 44px; }
.mb6 { --fx: -34px; --fy: 34px; } .mb4 { --fx: -44px; --fy: 0px; }
@keyframes mb-in { 0% { transform: translate(var(--fx), var(--fy)) scale(0); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes mb-dot { 0%, 58% { transform: scale(0); } 76% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes mb-word { 0% { clip-path: inset(-10% 100% -10% 0); opacity: 0; transform: translateX(-6px); }
  35% { opacity: 1; } 100% { clip-path: inset(-10% 0 -10% 0); opacity: 1; transform: none; } }
html.intro .topbar .mark .mb { animation: mb-in 0.9s cubic-bezier(.2,.8,.2,1) both; }
html.intro .topbar .mark .mb1 { animation-delay: 0s; } html.intro .topbar .mark .mb2 { animation-delay: .08s; }
html.intro .topbar .mark .mb3 { animation-delay: .16s; } html.intro .topbar .mark .mb5 { animation-delay: .24s; }
html.intro .topbar .mark .mb8 { animation-delay: .32s; } html.intro .topbar .mark .mb7 { animation-delay: .40s; }
html.intro .topbar .mark .mb6 { animation-delay: .48s; } html.intro .topbar .mark .mb4 { animation-delay: .56s; }
html.intro .topbar .mark .mark-dot { animation: mb-dot 1.4s ease-out both; }
html.intro .topbar .word { animation: mb-word 1.4s cubic-bezier(.22,1,.36,1) 0.9s both; }

/* ---- "Rondkijken": het logo kijkt rond terwijl we je plek en de meldingen in de buurt zoeken ----
   Groot in het kaartje (daar kijk je naar; op mobiel ligt het kaartje over de knop) en klein in de knop zelf. */
.sirens-btn .mark { width: 18px; height: 18px; }
.sirens-btn .mark .blocks { fill: currentColor; }
.sirens-scan { display: flex; align-items: center; gap: 14px; }
.sirens-scan .mark { width: 52px; height: 52px; flex: none; color: var(--ink); }
.sirens-scan .mark .blocks { fill: currentColor; }
.sirens-scan p { margin: 0; }
@keyframes mb-sweep { 0%, 100% { fill: currentColor; } 8% { fill: var(--live); } 22% { fill: currentColor; } }
.scanning .mark .mb { animation: mb-sweep 1.2s linear infinite; }
.scanning .mark .mb1 { animation-delay: 0s; } .scanning .mark .mb2 { animation-delay: .15s; }
.scanning .mark .mb3 { animation-delay: .3s; } .scanning .mark .mb5 { animation-delay: .45s; }
.scanning .mark .mb8 { animation-delay: .6s; } .scanning .mark .mb7 { animation-delay: .75s; }
.scanning .mark .mb6 { animation-delay: .9s; } .scanning .mark .mb4 { animation-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  html.intro .topbar .mark *, html.intro .topbar .word, .scanning .mark * { animation: none !important; }
}

/* Zolang het sirenekaartje open is: de Feed-knop (mobiel) niet eroverheen. */
body.sirens-open .feed-fab { opacity: 0; pointer-events: none; }

/* Resultaat van "Ik hoor sirenes": het logo blijft staan. Gevonden = één ping; niets = rustig ademende stip. */
.sirens-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sirens-head .mark { width: 36px; height: 36px; flex: none; color: var(--ink); }
.sirens-head .mark .blocks { fill: currentColor; }
.sirens-head .sirens-title { margin: 0; }
@keyframes mb-found { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(3.2); opacity: 0; } }
.sirens-head.found .mark .mark-ring { animation: mb-found 1.1s ease-out 2 both; }
@keyframes mb-breathe { 0%, 100% { transform: scale(0.82); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
.sirens-head.calm .mark .blocks { fill: var(--muted); }
.sirens-head.calm .mark .mark-dot { animation: mb-breathe 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sirens-head .mark * { animation: none !important; } }

/* ---- Beeld in de feed: luchtfoto van de buurt of illustratie per soort (geen persfoto's) ---- */
.s-map.aerial .leaflet-tile-pane, :root .s-inner .s-map.aerial .leaflet-tile-pane { filter: saturate(0.85) brightness(0.72) contrast(1.05); }
/* Luchtfoto op de leespagina: nooit het donkere-kaartfilter (omkeren) erop, anders lijkt de foto verbleekt (3 okt 2026). */
:root .r-aerial-map .leaflet-tile-pane, :root[data-theme="dark"] .r-aerial-map .leaflet-tile-pane { filter: saturate(0.9) brightness(0.85) contrast(1.05); }
.s-map.aerial::after { content: ""; position: absolute; inset: 0; z-index: 500; pointer-events: none;
  background: linear-gradient(180deg, rgb(10 16 24 / 10%) 0%, rgb(10 16 24 / 35%) 100%); }
.aerial-mark { display: block; width: 56px; height: 56px; }
.aerial-mark .mark { width: 56px; height: 56px; }
.aerial-mark .mark .blocks { fill: #fff; opacity: 0.88; }
.aerial-mark .mark .mark-ring { animation: brand-ping 1.8s ease-out infinite; }
.s-illu { position: absolute; inset: 0; display: grid; place-items: center; background: var(--illu-bg, #20242b); }
.s-illu svg { width: min(46%, 190px); height: auto; overflow: visible; }
.s-illu-grid { fill: var(--illu-fg, #fff); opacity: 0.22; }
.s-illu-icon { fill: none; stroke: var(--illu-fg, #fff); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-illu-dot { fill: var(--live); transform-box: fill-box; transform-origin: center; animation: mb-breathe 4s ease-in-out infinite; }
.s-illu.k-brand { --illu-bg: #3a1d1b; --illu-fg: #ff9b85; }
.s-illu.k-ongeval { --illu-bg: #3a2c14; --illu-fg: #ffc96b; }
.s-illu.k-water { --illu-bg: #14293a; --illu-fg: #8cc8f0; }
.s-illu.k-politie { --illu-bg: #1c2240; --illu-fg: #a9b6ff; }
.s-illu.k-explosie { --illu-bg: #3b2414; --illu-fg: #ffb072; }
.s-illu.k-medisch { --illu-bg: #15301f; --illu-fg: #8fdcaa; }
.s-illu.k-nieuws { --illu-bg: #1b2b3b; --illu-fg: #b8d4ee; }
.s-illu.k-calm { --illu-bg: #1d2127; --illu-fg: #8a919b; }
@media (prefers-reduced-motion: reduce) { .aerial-mark .mark *, .s-illu-dot { animation: none !important; } }

/* Maandoverzicht: blokken Hulpdiensten / Veiligheid in het nieuws */
.ov-young { background: var(--sky); color: var(--ink); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin: 0 0 6px; }
.ov-how { font-size: 12.5px; color: var(--muted); margin: 8px 0 10px; }
.pc-wrap { overflow-x: auto; margin: 10px 0 4px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pc-table th, .pc-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
.pc-table th[scope="row"], .pc-table thead th:first-child { text-align: left; font-weight: 600; }
.pc-table thead th { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pc-table td:nth-child(2) { font-weight: 700; }
.pc-sub { display: block; font-weight: 400; }
.pc-group th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 14px; border-bottom: 0; }
.pc-trend { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pc-trend.meer { color: #b4532a; }
.pc-trend.minder { color: #1d7a5c; }

/* ---- X-posts (tekst eerst, post met foto pas na klik) ---- */
.r-xpost { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.r-xhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
.r-xhead svg { color: var(--text); margin-right: 2px; }
.r-xtext { margin: 10px 0 12px; padding: 0; font-size: 16.5px; line-height: 1.5; white-space: pre-line; }
.r-xactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.r-xload { font: inherit; font-size: 14px; font-weight: 700; color: var(--panel); background: var(--ink); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.r-xload:disabled { opacity: .7; cursor: default; }
.r-xactions a { font-size: 14px; font-weight: 600; color: var(--text); }
.r-xnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.r-xembed { margin: 14px 0 18px; min-height: 120px; }

/* ---- Beeld bovenaan leespagina's: luchtfoto of illustratie ---- */
.r-hero { margin: 0 0 18px; }
.r-aerial-map { width: 100%; aspect-ratio: 16 / 9; max-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--hover); }
.r-hero figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.r-hero-illu { position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; }
.r-politie-lead { font-size: 13.5px; margin: 0 0 8px; }
.r-politie .pc-table { font-size: 13.5px; }

/* ---- Soort-markering op de luchtfoto (logoraster + icoon, kleur per soort) ---- */
.kind-mark { display: block; width: 60px; height: 60px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.kind-mark svg { width: 100%; height: 100%; overflow: visible; }
.kind-mark .km-bg { fill: var(--illu-bg, #1b2b3b); opacity: 0.94; }
.kind-mark .km-grid { fill: var(--illu-fg, #fff); opacity: 0.4; }
.kind-mark .km-hole { fill: var(--illu-bg, #1b2b3b); }
.kind-mark .km-icon { fill: none; stroke: var(--illu-fg, #fff); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kind-mark .km-ring { fill: none; stroke: var(--illu-fg, #fff); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: km-ping 2.2s ease-out infinite; }
@keyframes km-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kind-mark .km-ring { animation: none; opacity: 0; } }
.kind-mark.k-brand { --illu-bg: #3a1d1b; --illu-fg: #ff9b85; }
.kind-mark.k-ongeval { --illu-bg: #3a2c14; --illu-fg: #ffc96b; }
.kind-mark.k-water { --illu-bg: #14293a; --illu-fg: #8cc8f0; }
.kind-mark.k-politie { --illu-bg: #1c2240; --illu-fg: #a9b6ff; }
.kind-mark.k-explosie { --illu-bg: #3b2414; --illu-fg: #ffb072; }
.kind-mark.k-medisch { --illu-bg: #15301f; --illu-fg: #8fdcaa; }
.kind-mark.k-nieuws { --illu-bg: #1b2b3b; --illu-fg: #b8d4ee; }

/* ---- Advertenties in de feed ---- */
.ad-swipe { width: 300px; min-height: 250px; }
.s-ad-full .s-inner { padding: 0; gap: 8px; }
.ad-swipe-full { width: 100%; flex: 1 1 auto; min-height: 60vh; max-height: calc(100% - 80px); display: flex; align-items: center; justify-content: center; }

/* Leesbare tekst in plaats van de P2000-code (kaart-pop-up en lijst) */
.pop-story { font-size: 14px; line-height: 1.45; margin: 6px 0 8px; color: var(--text); }
.item-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 2px 0; }

/* ==== Kleur = dienst (ook op luchtfoto en illustraties); besluit 2 okt 2026 ==== */
.kind-mark.d-brandweer, .s-illu.d-brandweer { --illu-bg: #3a1618; --illu-fg: #ff9a9f; }
.kind-mark.d-ambulance, .s-illu.d-ambulance { --illu-bg: #3a2c06; --illu-fg: #ffd25c; }
.kind-mark.d-politie, .s-illu.d-politie { --illu-bg: #15214a; --illu-fg: #a9bcff; }
.kind-mark.d-knrm, .s-illu.d-knrm { --illu-bg: #3b2410; --illu-fg: #ffb072; }
.kind-mark.d-overig, .s-illu.d-overig { --illu-bg: #23272d; --illu-fg: #c4c9d0; }
.kind-mark.d-news, .s-illu.d-news { --illu-bg: #241e4a; --illu-fg: #c6bcff; }

/* ==== Kaartmarkeringen: vorm = bron, kleur = dienst, icoon = soort, grootte = omvang ==== */
.mk-dot {
  --c: var(--overig); --ic: #fff;
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--c); color: var(--ic);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
  transition: opacity .3s, transform .3s;
}
.mk-dot svg { width: 64%; height: 64%; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.mk-dot.d-ambulance { --c: var(--ambulance); --ic: #3d2c00; }  /* geel: donker icoon (contrast) */
.mk-dot.d-brandweer { --c: var(--brandweer); }
.mk-dot.d-politie { --c: var(--politie); }
.mk-dot.d-knrm { --c: var(--knrm); }
.mk-dot.d-overig { --c: var(--overig); }
.mk-dot.urgent { outline: 2.5px solid var(--urgent); outline-offset: 1.5px; }
.mk-dot.lv-3 { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 32%, transparent), 0 1px 4px rgb(0 0 0 / 40%); }
.mk-dot.lv-4 { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 36%, transparent), 0 0 18px 6px color-mix(in srgb, var(--c) 45%, transparent); }
.mk-dot.approx { border-style: dashed; background: color-mix(in srgb, var(--c) 72%, transparent); }
.mk-dot.fresh::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--urgent); animation: mk-fresh 1.8s ease-out infinite; }
@keyframes mk-fresh { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.mk-dot.grew { animation: mk-grow .9s ease-out 1; }
@keyframes mk-grow { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.mk-count { position: absolute; right: -7px; bottom: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: #1b2430; color: #fff; border: 1.5px solid #fff; font: 700 10px/13px var(--font); text-align: center; }
.mk-news { position: absolute; right: -7px; top: -7px; width: 15px; height: 15px; border-radius: 4px; background: var(--news); border: 1.5px solid #fff; display: grid; place-items: center; color: #fff; }
.mk-news svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-sel { display: block; width: 100%; height: 100%; }
.mk-sel .kind-mark { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .mk-dot.fresh::after, .mk-dot.grew { animation: none; } }

/* Clusters en ringen (per plaats, per veiligheidsregio): getal = meldingen, ring = verdeling diensten, rode stip = spoed in het laatste uur. */
.mk-ring { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 3px rgb(0 0 0 / 35%)); cursor: pointer; }
.mk-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mk-ring-wrap { position: relative; width: 100%; height: 100%; }
.mk-ring-name { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; font: 700 11px var(--font); color: var(--text); background: color-mix(in srgb, var(--panel) 88%, transparent); padding: 0 5px; border-radius: 4px; white-space: nowrap; pointer-events: none; }

/* Nieuws zonder P2000-melding: ruit met het soort-icoon. */
.news-diamond { display: grid; place-items: center; }
.news-diamond.incident { background: var(--news); }
.news-diamond > svg { width: 11px; height: 11px; transform: rotate(-45deg); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.news-diamond.big-pin { width: 20px; height: 20px; margin: 4px; }

/* Plaatsoverzicht (tik op een ring) */
.place-card { width: min(320px, 78vw); margin: -14px -20px -14px; }
.place-card .pc-photo { position: relative; aspect-ratio: 32 / 13; background: var(--hover); border-radius: 12px 12px 0 0; overflow: hidden; }
.place-card .pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) brightness(.72) contrast(1.05); }
.place-card .pc-over { position: absolute; inset: auto 0 0 0; padding: 10px 14px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / 55%)); }
.place-card .pc-city { font: 800 24px/1 var(--display); letter-spacing: -.02em; }
.place-card .pc-sub { font-size: 12px; opacity: .92; margin-top: 3px; }
.place-card .pc-body { padding: 10px 14px 14px; display: grid; gap: 10px; }
.place-card .pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.place-card .pc-stat { background: var(--hover); border-radius: 8px; padding: 6px 8px; font-size: 11.5px; color: var(--muted); }
.place-card .pc-stat b { display: block; font: 800 18px/1.1 var(--display); color: var(--text); }
.place-card .pc-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--hover); }
.place-card .pc-bar i { display: block; background: var(--c); }
.place-card .pc-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.place-card .pc-top li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.3; }
.place-card .pc-top .mk-dot { width: 22px; height: 22px; }
.place-card .pc-top time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.place-card .pc-go { font: inherit; font-weight: 700; font-size: 13.5px; width: 100%; padding: 9px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.legend .mk-dot { width: 18px; height: 18px; border-width: 1.5px; box-shadow: none; }
.legend .mk-dot svg { width: 70%; height: 70%; }
.legend .lg-ring { width: 20px; height: 20px; display: inline-block; }
/* Kopbalk op schermen tot ±1200 px: de status "Live · bijgewerkt …" past niet; dan alleen het bolletje (tekst in de tooltip). */
@media (max-width: 1200px) and (min-width: 801px) { .live #live-text { display: none; } }
.place-card .pc-top a { color: var(--text); text-decoration: none; font-weight: 600; }
.place-card .pc-top a:hover { text-decoration: underline; }
.place-card .pc-go { background: var(--text); color: var(--panel); }
.place-card .pc-photo img { filter: saturate(.9) brightness(.85) contrast(1.05); }
.feed-fab { white-space: nowrap; }

/* ==== Filters (4 okt 2026): alles achter de knop Filters: diensten, Op de kaart (nieuws, webcams, NDW), zoeken, regio,
   alleen in beeld, alleen spoed. "Meer instellingen" (volg spoed, geluid, testoproepen) is vervallen. */
@media (min-width: 801px) { .toggle { min-height: 42px; font-size: 14.5px; } }
@media (max-width: 800px) {
  .desk-only { display: none !important; }
  .panel[data-sheet="half"] { transform: translateY(0); }
}
/* Lagenknop (Leaflet): alleen nog de basiskaarten; nieuws, webcams en NDW staan als chips in het filter */
.layers-extra { display: grid; gap: 6px; padding-top: 2px; }
.layers-extra b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.layers-extra label { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.filter-row #f-search { width: 100%; flex: 1 1 auto; grid-column: 1 / -1; }

/* Feed met geheugen: "Je bent bij", "Update", "Gezien" (2 okt 2026) */
.s-caughtup .s-divider-kicker { color: #7fe0bd !important; }
.s-caughtup button { margin-top: 18px; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.s-seen-divider .s-divider-ring { border-color: rgb(255 255 255 / 55%); box-shadow: none; }
.s-tag-update { background: var(--live) !important; color: #fff !important; }
.s-tag-seen { background: rgb(255 255 255 / 16%) !important; color: rgb(255 255 255 / 80%); }
.s-card.is-seen .s-visual { filter: saturate(0.55) brightness(0.9); }

/* Kaart te vol: stap voor stap minder (zie fitCard in swipe.js), altijd met "…" in plaats van half afgesneden. */
.s-content > * { min-height: min-content; }
/* Regels nooit samendrukken (dan valt tekst over de volgende regel, iPhone 2 okt 2026): liever te vol en dan krimpen. */
.s-content { grid-auto-rows: max-content; }
.s-story { -webkit-line-clamp: 3; }
.s-content.fit-1 .s-area { display: none; }
.s-content.fit-2 .s-story { -webkit-line-clamp: 2; }
.s-content.fit-3 .s-context { display: none; }
.s-content.fit-4 .s-story { display: none; }
/* Nieuwskaart: samenvatting korter, dan weg, dan de kop korter. */
.s-content.fit-2 .s-sum { -webkit-line-clamp: 3; }
.s-content.fit-3 .s-sum { -webkit-line-clamp: 2; }
.s-content.fit-4 .s-sum { display: none; }
.s-content.fit-5 .s-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-cta-tip { background: transparent !important; color: var(--text) !important; border: 2px solid currentColor; margin-top: 8px; }

/* Kaartje open op mobiel: knoppen bovenin wijken, zodat ze niet over de tekst liggen; tijd niet onder het kruisje. */
@media (max-width: 800px) {
  .popup-open .leaflet-top .leaflet-control { opacity: 0; pointer-events: none; transition: opacity .15s; }
}
.leaflet-top .leaflet-control { transition: opacity .15s; }
.leaflet-popup-content .pop > :first-child { padding-right: 22px; }

/* ---- Logo-animaties met betekenis (besluit 2 okt 2026). Alleen transform/opacity/fill; uit bij "minder beweging". ---- */
/* 1. Nieuwe spoedmelding in je buurt: één blok in de kleur van de dienst, één ping. */
.brand-host.live .mark .mark-ring { animation: brand-ping 1.6s ease-out 1 both; }
@keyframes tile-hit { 0% { fill: var(--ink); transform: scale(1); } 14% { fill: var(--hit, var(--live)); transform: scale(1.18); } 70% { fill: var(--hit, var(--live)); transform: scale(1); } 100% { fill: var(--ink); } }
.mark .mb.hit { animation: tile-hit 2.2s ease-out both; }
/* 2. Laden: blok voor blok opbouwen. */
.mb-loader { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--muted); font-size: 13.5px; }
.mb-loader .mark { width: 30px; height: 30px; }
.list-loading { list-style: none; }
.list-error { list-style: none; display: grid; gap: 6px; justify-items: center; }
.list-error b { color: var(--text); }
.list-error button { margin-top: 8px; font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
@keyframes mb-build { 0%, 8% { transform: scale(0); opacity: 0; } 22%, 78% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
.mark.loading .mb { animation: mb-build 2.4s cubic-bezier(.2,.8,.2,1) infinite; }
.mark.loading .mb1 { animation-delay: 0s; } .mark.loading .mb2 { animation-delay: .08s; } .mark.loading .mb3 { animation-delay: .16s; }
.mark.loading .mb5 { animation-delay: .24s; } .mark.loading .mb8 { animation-delay: .32s; } .mark.loading .mb7 { animation-delay: .4s; }
.mark.loading .mb6 { animation-delay: .48s; } .mark.loading .mb4 { animation-delay: .56s; }
/* 3. Je bent bij: het raster vult zich groen en de stip wordt een vinkje, zodra de kaart in beeld is. */
.s-caught { display: block; width: 84px; height: 84px; margin: 0 auto 14px; }
.s-caught .mark { width: 84px; height: 84px; }
.s-caught .mark .blocks { fill: rgb(255 255 255 / 85%); }
.s-caught .mark-check { stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
@keyframes caught-fill { to { fill: #1d9e75; } }
@keyframes caught-dot { 0%, 55% { transform: scale(1); } 100% { transform: scale(1.5); fill: #1d9e75; } }
@keyframes caught-draw { to { stroke-dashoffset: 0; } }
.is-active .s-caught .mb { animation: caught-fill .35s ease-out both; }
.is-active .s-caught .mb1 { animation-delay: 0s; } .is-active .s-caught .mb2 { animation-delay: .07s; } .is-active .s-caught .mb3 { animation-delay: .14s; }
.is-active .s-caught .mb5 { animation-delay: .21s; } .is-active .s-caught .mb8 { animation-delay: .28s; } .is-active .s-caught .mb7 { animation-delay: .35s; }
.is-active .s-caught .mb6 { animation-delay: .42s; } .is-active .s-caught .mb4 { animation-delay: .49s; }
.is-active .s-caught .mark-dot { animation: caught-dot 1s cubic-bezier(.2,.8,.2,1) .3s both; }
.is-active .s-caught .mark-check { animation: caught-draw .4s ease-out .95s both; }
/* 4. Rustig in je buurt: de stip ademt langzaam (alleen als er niets groots is). */
.s-calm { display: block; width: 44px; height: 44px; margin-bottom: 10px; }
.s-calm .mark { width: 44px; height: 44px; }
.s-calm .mark .blocks { fill: rgb(255 255 255 / 55%); }
.s-calm .mark .mark-dot { animation: mb-breathe 4s ease-in-out infinite; }
/* 5. Volgen: bevestiging met een opspringend blok. */
.mb-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3000;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--panel); color: var(--text); font-weight: 700; font-size: 14px; box-shadow: 0 10px 28px rgb(13 36 56 / 30%);
  animation: toast-in .35s cubic-bezier(.2,.8,.2,1) both; }
.mb-toast.out { animation: toast-out .35s ease-in both; }
.mb-toast .mark { width: 28px; height: 28px; }
@keyframes toast-in { from { transform: translate(-50%, 16px); opacity: 0; } }
@keyframes toast-out { to { transform: translate(-50%, 16px); opacity: 0; } }
@keyframes mb-pop { 0% { transform: scale(1); } 35% { transform: scale(1.45) translateY(-4px); fill: var(--live); } 70% { transform: scale(.95); } 100% { transform: scale(1); fill: var(--live); } }
.mark.popped .mb2 { animation: mb-pop .6s cubic-bezier(.2,.8,.2,1) .15s both; }
/* 6. Kaartje -> pagina: de pagina groeit uit het kaartje (reader.js morphFrom). */
.morph-dim { position: fixed; inset: 0; z-index: 1999; background: rgb(13 36 56 / 45%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .mark .mb.hit, .mark.loading .mb, .is-active .s-caught *, .s-calm .mark *, .mark.popped .mb2, .mb-toast { animation: none !important; }
  .s-caught .mark-check { stroke-dashoffset: 0; }
  .s-caught .mb { fill: #1d9e75; }
}

/* ---- Lijst: kop die zegt waar je kijkt, en een kleine luchtfoto per melding (besluit 2 okt 2026) ---- */
.list-head { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 9px; }
.list-title { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-right { display: flex; align-items: baseline; gap: 10px; font-size: 12px; }
.list-back { font: inherit; font-size: 12px; font-weight: 700; color: var(--politie); background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; }
.list-back:hover { text-decoration: underline; }
.list-filtered { display: block; width: calc(100% - 32px); margin: 0 16px 8px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.list-filtered b { color: var(--text); }
.list-filtered:hover b { text-decoration: underline; }
.item-title { font-weight: 700; }
.d-ambulance .disc { color: var(--ambulance-text); }
.item.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.item-main { min-width: 0; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--hover); align-self: center; }
.thumb img { display: block; width: 64px; height: 64px; object-fit: cover; }
.thumb .th-ico { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid #fff; display: grid; place-items: center; color: #fff; }
.d-ambulance .thumb .th-ico, .d-ambulance .thumb-kind { color: #1a1d22; }
.thumb .th-ico svg { width: 12px; height: 12px; }
.thumb-kind { display: grid; place-items: center; background: var(--c); color: #fff; }
.thumb-kind svg { width: 28px; height: 28px; }
/* Kaart in de lichte modus iets meer contrast (niet fletser dan donker). Alleen licht: donker heeft zijn eigen filter. */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) #map .leaflet-tile-pane { filter: contrast(1.14) brightness(0.97) saturate(1.1); } }
:root[data-theme="light"] #map .leaflet-tile-pane { filter: contrast(1.14) brightness(0.97) saturate(1.1); }
.thumb svg { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Video (YouTube, pas na een klik geladen) ---- */
.yt { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(0 0 0 / 55%); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 40%); z-index: 2; }
.yt-play svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-play:hover { background: rgb(214 40 57 / 85%); }
.yt-src { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; background: rgb(0 0 0 / 55%); padding: 3px 9px; border-radius: 999px; }
.yt.playing .yt-src { display: none; }
/* In de feed: staande video's krijgen meer ruimte; tijdens afspelen geen verloop over het beeld. */
.s-newscard.s-vert .s-visual { flex-basis: 70%; }
.s-visual:has(.yt.playing)::after { display: none; }
.s-visual .yt { position: absolute; inset: 0; z-index: 2; }
/* Leespagina en melding */
.r-video .yt { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }
.r-video .yt-v { aspect-ratio: 9 / 16; max-height: 70vh; width: auto; margin: 0 auto; }
.r-video figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.r-videos .r-video + .r-video { margin-top: 16px; }
/* TikTok/Instagram-accounts (5 okt 2026): ons eigen voorbeeldbeeld (luchtfoto of illustratie), bij TikTok het plaatje uit
   de officiële oEmbed eroverheen; na de klik de speler van het platform. Instagram meet zijn hoogte zelf: dan scrollen. */
.so-poster { position: absolute; inset: 0; display: grid; place-items: center; background: var(--illu-bg, #20242b); }
.so-poster img { position: absolute; inset: 0; }
.so-poster .kind-mark { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 1; } /* zelfde hoogte als de plek in de luchtfoto (markAt) */
.so-vid .so-thumb { position: absolute; inset: 0; z-index: 1; }
.so-note { position: absolute; left: 10px; right: 10px; top: calc(50% + 46px); z-index: 2; font-size: 12px; color: #fff; text-align: center; text-shadow: 0 1px 3px rgb(0 0 0 / 70%); }
.so-vid.playing { background: #000; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.so-vid.playing .so-note { display: none; }
.so-vid.playing iframe { min-height: 100%; }
.so-fail { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; margin: 0; text-align: center; color: #fff; background: #20242b; font-size: 15px; }
.so-fail a { color: #fff; text-decoration: underline; }
/* Lijst: video-label */
.news-vid { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: var(--brandweer); padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
/* Kijk live bij groot nieuws (alleen een link: insluiten mag niet) */
.r-live { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.r-live small { display: block; color: var(--muted); font-size: 12.5px; }
.r-live svg { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; }
.r-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #d62839; flex-shrink: 0; animation: livedot-red 1.8s ease-out infinite; }
@keyframes livedot-red { 0% { box-shadow: 0 0 0 0 rgb(214 40 57 / 60%); } 70% { box-shadow: 0 0 0 8px rgb(214 40 57 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(214 40 57 / 0%); } }
.s-live { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; background: rgb(214 40 57 / 85%); padding: 6px 12px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .r-live-dot { animation: none; } }

/* ---- Mobiel en iOS (controle 2 okt 2026) ---- */
@media (max-width: 800px) {
  /* iOS zoomt in bij invoervelden kleiner dan 16px en zoomt daarna niet terug. */
  input, select, textarea, .search { font-size: 16px !important; }
  /* Feed-knop wijkt als er een kaartje open is (hij lag over "Bekijk melding en tijdlijn"). */
  body.popup-open .feed-fab { opacity: 0; pointer-events: none; }
  /* Kop boven de lijst is ook een greep van het onderblad. */
  .list-head { touch-action: none; }
}
.feed-fab { transition: opacity .15s; }
/* Liggende video in de feed: gewoon in 16:9 (niets afgesneden); tik = de speler met volledig scherm. */
.s-visual .yt-h { inset: auto 0; top: 50%; transform: translateY(-50%); height: auto; aspect-ratio: 16 / 9; }
.s-visual:has(.yt-h) { background: #000; }

/* ---- Meldingspagina: tijdlijn en buurtkaartjes (2 okt 2026: rustiger, leesbare regel, ruwe tekst ingeklapt) ---- */
.r-tl-intro { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.r-timeline li {
  grid-template-columns: 58px 1fr; gap: 10px;
  padding: 6px 0 14px 18px;
  border-left: 2px solid var(--line);
}
.r-timeline li:last-child { padding-bottom: 4px; }
.r-timeline li::before { left: -6px; top: 10px; width: 10px; height: 10px; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--c); }
.r-timeline li.grew::before { left: -8px; top: 8px; width: 14px; height: 14px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.r-timeline time { font-size: 14px; font-weight: 700; color: var(--text); padding-top: 2px; }
.r-timeline time small { font-size: 11px; font-weight: 500; color: var(--muted); }
.r-tl-head { gap: 8px; margin-bottom: 2px; }
.r-tl-label { font-weight: 650; font-size: 15px; color: var(--text); }
.r-tl-grew { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 2px 7px; border-radius: 999px; }
.r-timeline .r-explain summary { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.r-timeline .r-explain .msg { margin: 6px 0; padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--muted); background: var(--hover); border-radius: 8px; }
.r-incident { grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.r-incident-main { display: grid; gap: 3px; min-width: 0; }
.r-incident .r-why { font-size: 12.5px; color: var(--muted); }
.r-videos { display: grid; gap: 14px; margin: 18px 0 6px; }

/* Meldingspagina: knop naar de video, en de buurtkaartjes als één rustige lijst (2 okt 2026, avond) */
.r-jump { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.r-jump-play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brandweer); color: #fff; font-size: 12px; padding-left: 2px; }
@media (hover: hover) { .r-jump:hover { background: var(--hover); } }
#r-video-sec { scroll-margin-top: 72px; }
.r-incidents { gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.r-incident { position: relative; border: 0; border-radius: 0; background: transparent; padding: 12px 14px 12px 18px; }
.r-incident + .r-incident { border-top: 1px solid var(--line); }
.r-incident::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.r-incident-top { font-size: 12px; gap: 6px; }
.r-incident-top .badge { font-size: 10.5px; padding: 0 5px; }
.r-incident-title { font-size: 15px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-incident .thumb { width: 56px; height: 56px; }
.r-incident .thumb img { width: 56px; height: 56px; }
.r-incident { grid-template-columns: minmax(0, 1fr) 56px; }

/* Feed-mix (2 okt 2026): gebundelde inzetten en lokaal nieuws */
.s-bundle-inner { display: grid; place-items: center; background: var(--s-card, #16181d); }
.s-bundle-box { width: min(100%, 420px); padding: 24px 22px; color: #fff; display: grid; gap: 10px; }
.s-bundle-map { justify-self: start; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 0; background: #fff; color: #143b5c; cursor: pointer; } /* vaste donkere tekst: var(--ink) is licht in donkere modus (wit op wit) */
.s-bundle-box h2 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.s-bundle-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.s-bundle-list a { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #fff; text-decoration: none; font-size: 14.5px; line-height: 1.3; background: rgb(255 255 255 / 6%); border-left: 3px solid var(--c, #888); }
.s-bundle-list time { color: rgb(255 255 255 / 65%); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.s-tag-local { background: rgb(255 255 255 / 92%) !important; color: #14324d !important; }

/* Eén reactie per kaart (2 okt 2026): ronde knop in het rijtje van de feed, pil op de pagina */
.s-actions .rx-useful-wrap { display: contents; }
.rx-pill-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgb(255 255 255 / 14%); backdrop-filter: blur(6px); }
.s-actions button[aria-pressed="true"] .rx-pill-ico { background: rgb(255 138 61 / 85%); }
.rx-pill { gap: 8px; }
.rx-pill[aria-pressed="true"] { border-color: var(--live); color: var(--live-text); }
.r-news-rx { margin: 12px 0 4px; }
/* Na afloop alleen "Bedankt hulpverleners": geen blok, gewoon een knop. */
.rx.rx-compact { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; margin: 10px 0 4px; }
.rx.rx-compact .rx-dank-row { margin: 0; }

/* Krimpen bij een te volle kaart, vervolg: samenvatting onder de nieuwskop, tweede nieuwsbericht, bevestigknoppen,
   pas als laatste de statusknoppen ("Weg is weer vrij"). */
.s-content.fit-5 .s-newslink-sum { display: none; }
.s-content.fit-6 .s-newslink + .s-newslink { display: none; }
.s-content.fit-7 .rx-card .rx-row:not([role="group"]):not(.rx-dank-row) { display: none; }
.s-content.fit-8 .rx-card { display: none; }

/* ==== Overgenomen uit het ontwerp "Nu → Nieuw" (keuze eigenaar, 4 okt 2026): filters, delen, "Wat we weten" ====
   Alleen de jas: dezelfde knoppen, velden en volgorde; niets weggehaald. */
/* Filters: grotere chips met vierkant kleurblokje, schakelaars als rijen, ruimere velden */
.filters { gap: 12px; }
.chip { min-height: 38px; padding: 0 13px 0 11px; gap: 7px; font-size: 14px; font-weight: 700; }
.chip .swatch { width: 12px; height: 12px; border-radius: 4px; }
.chip .n { font-weight: 600; }
.filters .search, .filters select { min-height: 44px; border-radius: 12px; font-size: 14px; }
.filters .search { padding: 9px 12px 9px 38px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a929c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") no-repeat 12px 50% / 18px; }
.filters select { -webkit-appearance: none; appearance: none; font-weight: 700; padding: 9px 36px 9px 14px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238a929c' d='M7 10l5 5 5-5H7Z'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.toggles { display: grid; gap: 0; }
.toggle { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.toggle input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; cursor: pointer;
  background: color-mix(in srgb, var(--muted) 45%, transparent); transition: background .15s; }
.toggle input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 30%); transition: transform .15s; }
.toggle input:checked { background: var(--politie); }
.toggle input:checked::before { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .toggle input, .toggle input::before { transition: none; } }
.seg { border-radius: 999px; }
.seg button { border-radius: 999px; min-height: 36px; font-size: 14px; }
.seg button[aria-checked="true"] { font-weight: 800; }
:root[data-theme="dark"] .seg button[aria-checked="true"] { background: var(--text); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-checked="true"] { background: var(--text); color: var(--bg); } }
.filters-btn { border-radius: 999px; min-height: 42px; padding: 0 14px; font-size: 14.5px; font-weight: 700; }

/* Delen: buurtapp-knop over de volle breedte, grotere deelknoppen */
.r-share-wa { justify-self: stretch; justify-content: center; min-height: 50px; font-size: 16px; font-weight: 800; border: 1.5px solid var(--wa); }
.r-share a, .r-share button { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; }
.r-share svg { width: 15px; height: 15px; }
.r-jump { font-size: 15px; padding: 9px 18px 9px 9px; }

/* Wat we weten (vol blokje) / wat we niet weten (open blokje) */
.r-facts > div { background: var(--panel); border-radius: 14px; padding: 16px 18px; }
.r-facts h2, .r-facts h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font: 800 18px/1.2 var(--display); letter-spacing: -0.02em; text-transform: none; color: var(--text); }
.r-facts h2::before, .r-facts h3::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--ink); }
.r-unknown h2::before, .r-unknown h3::before { background: var(--muted); }
.r-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.r-facts li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; }
.r-facts li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 3px; background: var(--ink); }
.r-unknown li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }

/* ==== Feedback 3–4 okt 2026: mobiele bugs en duidelijkheid ==== */
/* Lege gestippelde rand boven de lijst: de melding "X staat uit" is verborgen, maar display:block won van [hidden]. */
.list-filtered[hidden] { display: none; }
/* Filters: kop met ✕ ook op desktop (4 okt 2026); de knop "Toon 23 meldingen" alleen in de mobiele filterlaag. */
.filters-head, .filters-foot { display: none; }
.filters-head h2 { margin: 0; font: 800 19px/1.2 var(--display); letter-spacing: -0.02em; }
.filters-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; cursor: pointer; }
.filters.open .filters-head { display: flex; align-items: center; justify-content: space-between; } /* ✕ ook op desktop (4 okt 2026) */
.filters-done { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
@media (max-width: 800px) {
  /* Eigen laag over het hele blad: de lijst eronder houdt zijn volle hoogte. */
  .filters.open { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px; background: var(--panel); border-radius: 20px 20px 0 0; }
  .filters.open > * { flex: none; }
  .filters.open > * + * { margin-top: 12px; }
  .filters.open > .filters-foot { margin-top: auto; }
  .filters.open .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 14px 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .filters.open .filters-foot { display: block; position: sticky; bottom: 0; z-index: 2; margin-left: -16px; margin-right: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line); }
  /* Blad makkelijker te pakken: grotere greep, en ook de tabbladen en de lijstkop slepen mee. */
  .sheet-grip { padding: 10px 0 4px; }
  .sheet-grip span { width: 48px; }
  .tabs, .list-head { touch-action: none; }
  /* Woonplaatskiezer tijdens typen bovenaan, zodat het toetsenbord het zoekveld niet uit beeld duwt. Via een klasse en
     niet :focus-within (bug iPhone 4 okt 2026): Safari geeft een aangetikte knop geen focus, dus bij het aantikken van een
     suggestie sprong de kaart terug naar beneden vóór de klik, en viel de tik naast de knop. */
  .picker.typing { place-items: start stretch; }
  .picker.typing .picker-card { border-radius: 0 0 18px 18px; padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: 18px; }
  .picker.typing .picker-results { max-height: 34vh; }
}
/* Feed: videolabel en "nieuw"-pil niet meer over de terugknop en de bereikregel. */
.swipe-new { top: 86px; }
.s-visual .yt-v .yt-src { top: calc(118px + env(safe-area-inset-top, 0px)); }
.s-tag-lead { background: rgb(255 255 255 / 92%) !important; color: #10151c !important; }

/* Tekstlaag van de home onder de lijst (sessie B, 4 okt 2026): H1, antwoordzin, zoekveld, grote incidenten, steden,
   "zo werkt het" en de kleine voettekst van het onderblad (plan §1 en §4). Richting A: open, haarlijnen, geen kaders. */
.list > li.landing { list-style: none; padding: 22px 16px 28px; border-top: 6px solid var(--hover); color: var(--text); cursor: default; }
.landing h1 { font: 800 21px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.landing h2 { font: 800 16px/1.3 var(--display); margin: 20px 0 8px; }
.landing p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.landing-lead { color: var(--muted); }
.landing a { color: inherit; text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.landing .search label { display: block; font-weight: 700; font-size: 13.5px; margin: 12px 0 6px; }
.landing .search-row { display: flex; gap: 8px; }
.landing .search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.landing .search .btn { border: 0; border-radius: 10px; padding: 0 16px; background: var(--ink); color: var(--panel); font: 700 14px var(--font); cursor: pointer; }
.landing .board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.landing .bd-row { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.landing .bd-time { font: 800 15px/1.3 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.landing .is-urgent .bd-time { color: var(--urgent-t); } /* leesbaar in donker, zoals de lijst (5 okt 2026) */
.landing .bd-title { font-weight: 700; text-decoration: none; }
.landing .bd-meta { display: block; font-size: 12.5px; color: var(--muted); }
.landing .blk-row { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: 1px; }
.landing .blk { width: 9px; height: 9px; border-radius: 2px; background: var(--overig); }
.landing .blk.d-brandweer { background: var(--brandweer); } .landing .blk.d-ambulance { background: var(--ambulance); }
.landing .blk.d-politie { background: var(--politie); } .landing .blk.d-knrm { background: var(--knrm); }
/* "Laatste 112-nieuws" in de tekstlaag (7 okt 2026, melding eigenaar: het nieuwsicoon werd een groot zwart vlak): dezelfde
   rijen als op de serverpagina's (site.css .news-rows), want die stijl laadt in de app niet. */
.landing .news-rows { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.landing .news-rows li { padding: 0; border-bottom: 1px solid var(--line); }
.landing .news-rows a.nr-link { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; color: var(--text); text-decoration: none; }
.landing .ni-s { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; background: var(--news, #5b4bc4); color: #fff; }
.landing .ni-s svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.landing .nr-t { min-width: 0; }
.landing .nr-t b { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.landing .nr-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.landing-links { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.landing-links.small { margin-top: 16px; font-size: 13px; }
.landing-112 { margin-top: 14px !important; color: var(--urgent); }

/* Diensten als duidelijke aan/uit-knoppen (feedback eigenaar 4 okt 2026: "zie ik niet dat ik ze kan wegfilteren"):
   kopje met uitleg; aan = licht getint in de dienstkleur met gevuld blokje, uit = bleek met leeg blokje. */
.chips-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.chips-label span { font-weight: 400; color: var(--muted); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, var(--panel)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
@media (hover: hover) { .chip[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--c) 22%, var(--panel)); } }
.layers-extra select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); max-width: 220px; }
/* Kaartlagen als aan/uit-knoppen in het filter (keuze eigenaar 4 okt 2026), zelfde vorm als de diensten. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip-layer.l-news { --c: var(--news); } .chip-layer.l-webcams { --c: #0f766e; } .chip-layer.l-traffic { --c: #ea7a0a; }
.chip-layer:has(input:checked) { background: color-mix(in srgb, var(--c) 14%, var(--panel)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.chip-layer:has(input:not(:checked)) { opacity: 0.45; }

.chip-layer:has(input:focus-visible) { outline: 2px solid var(--politie); outline-offset: 1px; }
.chips + .chips-label { margin-top: 12px; }

/* Alles achter de knop "Filters", ook zoeken (keuze eigenaar 4 okt 2026), op mobiel én desktop.
   Desktop: het filterblok klapt open onder de tijdkeuze; mobiel: eigen laag over het blad. */
.panel-quick .filters-btn { display: inline-flex; flex: none; }
.filters-btn[aria-expanded="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.filters:not(.open) { display: none; }
@media (min-width: 801px) { .panel-quick { padding-bottom: 12px; border-bottom: 1px solid var(--line); } }

/* Icoon van de kaart in de filterknoppen (wens eigenaar 4 okt 2026): aan = gevuld rondje in de dienstkleur met wit icoon
   (ambulance donker voor contrast), uit = hol met het icoon in de dienstkleur. Nieuws en ongevallen als afgerond vierkant,
   zoals hun pin op de kaart. */
.chip-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; margin-left: -4px; }
.chip.d-ambulance .chip-ico { color: #3d2c00; }
.chip-layer.l-news .chip-ico, .chip-layer.l-traffic .chip-ico { border-radius: 7px; }
.chip-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip-ico.filled svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.chip-ico i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip[aria-pressed="false"] .chip-ico, .chip-layer:has(input:not(:checked)) .chip-ico { background: transparent; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
/* Regio in het filter, onder het zoekveld (keuze eigenaar 4 okt 2026; stond in de lagenknop). */
.filter-row #f-region { grid-column: 1 / -1; width: 100%; }
/* "Laatste hier: …" onder "Rustig" (keuze eigenaar 4 okt 2026): tikbaar, opent die melding op de kaart. */
.sirens-last { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: var(--hover); border: 0; border-radius: 10px; padding: 10px 12px; margin: 4px 0 8px; cursor: pointer; }
.sirens-last:hover { background: var(--selected); }

/* Ingeklapt onderblad (mobiel): nieuwste melding in plaats van de kop "Nu rond …" (optie b, keuze eigenaar 4 okt 2026).
   Uitgeklapt en op desktop: de gewone kop. */
.peek-latest { display: none; }
@media (max-width: 800px) {
  .panel[data-sheet="peek"] .peek-latest:not([hidden]) { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
  .panel[data-sheet="peek"] .peek-latest:not([hidden]) ~ .list-title { display: none; }
  .peek-latest time { font: 800 15px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); flex: none; }
  .peek-blk { width: 10px; height: 10px; border-radius: 2.5px; flex: none; background: var(--c, var(--overig)); }
  .peek-latest b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
  .peek-ago { flex: none; font-size: 13px; color: var(--muted); }
}

/* Menu (≡) met de indeling uit plan sessie B §4 (4 okt 2026). Mobiel: kopjes en extra links in het uitklapmenu;
   desktop: ≡ naast de balk met een klein menu (je buurt, Over mijnbuurt.nu, 112-regel). */
.nav-x { display: none; }
@media (max-width: 800px) {
  .topnav.open .nav-x { display: contents; }
  .topnav { max-height: calc(100vh - 80px); overflow-y: auto; min-width: 240px; }
}
.nav-label { display: block; font: 800 14px/1.2 var(--display); color: var(--text); padding: 10px 12px 2px; }
.nav-buurt { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); background: var(--hover); }
.nav-buurt[hidden] { display: none; }
.nav-buurt span { font-size: 12px; color: var(--muted); font-weight: 600; }
.nav-buurt b { font: 800 17px/1.2 var(--display); }
.nav-x > a:not(.nav-buurt), .nav-more > a:not(.nav-buurt) { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.nav-x > a:hover, .nav-more > a:hover { background: var(--hover); }
/* Privacy-instellingen in het menu (6 okt 2026): een echte knop in de jas van de menulinks, tikdoel 44 px. Alleen
   zichtbaar met een toestemmingsbanner (html:not(.mb-cmp)-regel bij de voettekst). */
.nav-x > .nav-privacy, .nav-more > .nav-privacy { display: flex; align-items: center; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.nav-x > .nav-privacy:hover { background: var(--hover); }
.nav-more > .nav-privacy { padding: 0; font-size: 14.5px; font-weight: 500; }
.nav-more > .nav-privacy:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-x > .nav-privacy:focus-visible, .nav-more > .nav-privacy:focus-visible { outline: 2px solid var(--politie); outline-offset: 1px; }
.nav-112 { margin: 6px 12px 4px; font-size: 13px; color: var(--muted); }
.nav-112 b { color: var(--urgent); }
@media (min-width: 801px) {
  .menu-btn { display: grid; place-items: center; margin-left: 8px; flex: none; }
  .nav-more { position: absolute; top: 100%; right: 12px; margin-top: 6px; z-index: 2000; width: 260px; max-height: calc(100vh - 90px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--panel); border-radius: 12px; box-shadow: 0 16px 48px rgb(0 0 0 / 22%); }
  .nav-more[hidden] { display: none; }
}
@media (max-width: 800px) { .nav-more { display: none !important; } }

/* Footer onder de leespagina in het kaartgedeelte: dezelfde voettekst als op de gewone pagina's (site.css). */
.reader > .site-foot { background: #143b5c; color: #e8f0f7; margin-top: 48px; padding: 32px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.reader > .site-foot .foot-in { max-width: 1100px; margin: 0 auto; }
.reader > .site-foot .foot-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.reader > .site-foot .mark .blocks { fill: #dbe9f5; }
.reader > .site-foot .word { color: #fff; }
.reader > .site-foot .foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; margin: 22px 0; }
.reader > .site-foot .foot-col h2 { font: 800 15px/1.2 var(--display); margin: 0 0 8px; color: #fff; text-transform: none; letter-spacing: 0; }
.reader > .site-foot .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* Zelfde tikdoel en onderstreping als de voettekst op de serverpagina's (site.css, stap 7): 44 px hoog. */
.reader > .site-foot .foot-col ul { gap: 0; }
.reader > .site-foot .foot-col a { display: inline-flex; align-items: center; min-height: 44px; color: #e8f0f7; font-size: 14.5px;
  text-decoration: underline; text-decoration-color: rgb(255 255 255 / 30%); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.reader > .site-foot .foot-col a:hover { text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.reader > .site-foot .foot-112 { margin: 18px 0 6px; font-size: 14.5px; color: #fff; }
.reader > .site-foot .foot-112 b { color: #ffb3a8; }
.reader > .site-foot .foot-src { margin: 0; font-size: 13px; color: #b9cad9; }
/* Privacy-instellingen in voettekst en menu (6 okt 2026): alleen met een toestemmingsbanner (ads-boot.js zet .mb-cmp). */
html:not(.mb-cmp) [data-privacy-settings] { display: none !important; }
.reader > .site-foot .foot-privacy .link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgb(255 255 255 / 30%); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Toetsenbord (audit 4 okt 2026): overslaanlink pas zichtbaar bij Tab; lijstitem met duidelijke focusrand. */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 5000; background: var(--ink); color: var(--panel); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 8px; }
.list > li.item:focus-visible { outline: 3px solid var(--politie); outline-offset: -3px; }

/* Scheidingsregel in de lijst: eerst je woonplaats, daarna "Verder in beeld" (4 okt 2026). */
.list > li.list-divider { list-style: none; padding: 14px 16px 6px; font: 800 14px/1.2 var(--display); color: var(--muted); border-top: 6px solid var(--hover); cursor: default; }
.loc b { color: var(--text); font-weight: 700; }

/* ==== Designsysteem v1, stap 2: onderblad (5 okt 2026) ====
   Een nieuwe jas over de lijst, snelbalk, tabbladen, filterlaag en kaartknoppen (borden DS-11 t/m DS-17 en DS-51,
   bron docs/design/canvas-sessie-b/gen_ds.py). Zelfde elementen, teksten en gedrag; alleen maten, letters en vlakken.
   Minimaal 13 px tekst (behalve bronvermelding en advertentielabel); tikdoelen minstens 44 px. */

/* Snelbalk: tijdkeuze als pil op een zacht vlak, Filters met icoon en rode teller, alles 44 px hoog. */
.seg { gap: 0; padding: 0; border: 0; background: var(--hover); border-radius: 999px; }
.seg button { min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 999px; }
.seg button[aria-checked="true"] { background: var(--text); color: var(--panel); font-weight: 800; box-shadow: none; }
.filters-btn { gap: 6px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--hover); font-size: 14.5px; font-weight: 700; }
.filters-btn svg { width: 16px; height: 16px; }
.filters-n { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; font-size: 13px; font-weight: 700; }

/* Tabbladen: 44 px hoog, dikke streep onder het actieve. */
.tabs { gap: 22px; padding: 0 16px; }
.tabs button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; font-size: 15px; font-weight: 700; border-bottom: 3px solid transparent; }
.tabs .n { font-weight: 600; }

/* Lijstkop: titel + subregel links, "← woonplaats" rechts (44 px tikdoel). Geen lijn: de tabbladen hebben er al een. */
.list-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 0; align-items: center; padding: 10px 16px 4px; border-bottom: 0; }
.list-head > .peek-latest, .list-head > .list-title { grid-column: 1; }
.list-right { display: contents; }
.list-title { font-size: 19px; line-height: 1.3; }
#list-sub { grid-column: 1; font-size: 14px; }
.list-right > .list-back { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 14px; font-weight: 700;
  color: var(--pol-t); text-decoration: underline; text-decoration-color: var(--pol-t); text-underline-offset: 3px; }
.list-right > .list-back[hidden] { display: none; }
/* "Ambulance staat uit · Alles tonen": rustig lichtblauw vlak in plaats van een gestippeld kader. */
.list-filtered { display: block; width: calc(100% - 32px); min-height: 44px; margin: 6px 16px 4px; padding: 11px 12px; border: 0; border-radius: 10px;
  background: var(--sky); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.list-filtered b { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Lijstrij (DS-17): tijdkolom | dienst + code, kop, plek, "Ook …", nieuws, Details | miniatuur. Geen gekleurde streep
   meer: het dienstblokje en de dienstnaam in tekstkleur dragen de dienst. */
.list > li.d-ambulance { --ct: var(--amb-t); }
.list > li.d-brandweer { --ct: var(--brw-t); }
.list > li.d-politie { --ct: var(--pol-t); }
.list > li.d-knrm { --ct: var(--knrm-t); }
.list > li.d-overig { --ct: var(--muted); }
.list > li.item { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list > li.item.has-thumb { grid-template-columns: 58px minmax(0, 1fr) 56px; column-gap: 10px; }
.list > li.item::before { content: none; }
.item-time { font: 800 17px/1.25 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.item-time.u { color: var(--urgent-t); }
.item-time time { font: inherit; color: inherit; }
.item-time small { display: block; font: 500 13px/1.5 var(--font); font-variant-numeric: normal; color: var(--muted); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.item-meta .blk { flex: none; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c); }
.item-meta .disc { font-weight: 700; color: var(--ct, var(--muted)); }
.item-meta .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border: 0; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0;
  white-space: nowrap; background: var(--hover); color: var(--text); }
.item-meta .badge.p1 { background: var(--brandweer); color: #fff; }
.item-meta .badge.p2 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); color: var(--ct, var(--text)); }
.item-meta .spoed { font-weight: 600; color: var(--urgent-t); }
/* GRIP in gewone taal (besluit eigenaar 5 okt 2026): rustig lichtblauw label, nooit rood. */
.item-meta .grip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--sky); color: var(--ink); }
.list .item-title { display: block; margin: 3px 0 4px; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--text); }
/* Plek op één regel: "Straat, Plaats · Regio" (buiten je woonplaats de plaats vet vooraan), afgekapt met "…". */
.list .item .loc { margin-top: 0; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
.list .item .loc > span, .list .item .loc.none { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .item .loc.none { display: block; }
.list .item .loc svg { width: 12px; height: 12px; }
/* "Ook …" als één regel; wordt hij te lang, dan kapt alleen de dienstenlijst af en blijft "· n oproepen" staan
   (eindcontrole 5 okt 2026: op 375 px viel het aantal weg). */
.list .item .also { display: flex; flex-wrap: nowrap; gap: 0; min-width: 0; margin-top: 4px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.list .item .also .also-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list .item .also .also-n { flex: none; margin: 0; white-space: pre; }
/* Nieuws bij een melding als één regel, met het paarse nieuwsicoon van de pin (.mk-news). */
.news-line { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none; white-space: nowrap; min-width: 0; }
.news-line .ni-s { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--news); color: #fff; }
.news-line .ni-s svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.news-line .nl-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.news-line .news-more { flex: none; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--news-t); }
@media (hover: hover) { .news-line:hover .nl-t { text-decoration: underline; } }
.list .details-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.list > li.item .thumb { width: 56px; height: 56px; align-self: start; }
.list > li.item .thumb img { width: 56px; height: 56px; }
/* Nieuws-tab: zelfde rijvorm; bron paars, "2 meldingen" als zacht label, "Over een incident van …" in oranje tekst. */
.list > li.news-item .news-src { font-weight: 700; color: var(--news-t); }
.item-meta .badge.link-badge { padding: 0 8px; border-radius: 999px; font-weight: 600; background: var(--hover); color: var(--news-t); }
.list > li.news-item .news-vid { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: 2px; }
.list > li.news-item .news-old { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--live-text); }
.list > li.news-item .news-also { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Lege lijst en fout: zacht vlak met de bestaande teksten; "Opnieuw proberen" als hoofdknop (in donker licht). */
.list > li.empty { margin: 12px 16px; padding: 14px 16px; border-radius: 14px; background: var(--hover); color: var(--text); font-size: 15px; text-align: left; list-style: none; }
.list > li.list-error { display: grid; justify-items: stretch; gap: 2px; }
.list > li.list-error span { font-size: 14.5px; color: var(--muted); }
.list > li.list-error button { margin-top: 10px; min-height: 44px; border: 0; border-radius: 10px; background: var(--ink); color: var(--panel); font-size: 15.5px; }

/* Filterlaag (mobiel en desktop): ✕ 44 px, chips 44 px met kaarticoon, velden 48 px, schakelaars als rijen van 52 px. */
.filters-head h2 { font-size: 20px; }
.filters-x { width: 44px; height: 44px; border: 0; background: var(--hover); font-size: 18px; }
.chips-label { margin-bottom: 0; color: var(--muted); }
.filters > .chips-label + .chips { margin-top: -4px; } /* gat van 12 px (grid/flex) − 4 = 8 px onder het kopje */
.filters .chips { gap: 8px; }
.filters .chip { min-height: 44px; padding: 0 14px 0 9px; gap: 8px; font-size: 14.5px; font-weight: 700; }
.filters .chip-ico { width: 26px; height: 26px; margin-left: 0; }
.filters .search, .filters select { min-height: 48px; border-radius: 10px; background-color: var(--panel); font-size: 16px; }
.filters .toggle { min-height: 52px; font-size: 15.5px; font-weight: 600; }
.filters .toggle input { width: 46px; height: 28px; border-radius: 14px; }
.filters .toggle input::before { width: 22px; height: 22px; }
.filters-done { min-height: 48px; border-radius: 10px; }

/* Kaartknoppen: de legenda-knop krijgt zijn maat hier (stond inline in app.js). */
.legend-btn { width: 34px; height: 34px; }
.legend-btn span { font-weight: 800; font-size: 15px; }

@media (max-width: 800px) {
  .panel-quick { padding: 2px 14px 8px; }
  /* Ingeklapt (168 px): tijdkeuze → tabbladen → nieuwste melding, met de tijdkolom zoals in de lijst. */
  .panel[data-sheet="peek"] .list-head { padding-top: 6px; }
  .panel[data-sheet="peek"] .peek-latest:not([hidden]) { gap: 8px; min-height: 44px; font-size: 15.5px; }
  /* Ingeklapt: "← woonplaats" niet (viel half onder de rand en kneep de nieuwste melding af); bij openschuiven weer zichtbaar. */
  .panel[data-sheet="peek"] .list-right > .list-back { display: none; }
  /* i-knop van de legenda boven de bronvermelding (Leaflet/PDOK/Windy) in plaats van eroverheen (5 okt 2026). */
  .leaflet-bottom.leaflet-left { margin-bottom: 24px; }
  .peek-latest .peek-time { flex: none; width: 62px; font: 800 16px/1.25 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
  .peek-latest .peek-time.u { color: var(--urgent-t); }
  .peek-latest .peek-time time { display: block; font: inherit; color: inherit; }
  .peek-latest .peek-time .peek-ago { display: block; font: 500 13px/1.45 var(--font); font-variant-numeric: normal; color: var(--muted); }
  /* Kaartknoppen minstens 44 px (zoom, i-knop); de lagenknop (44) en sirenes (46) waren al groot genoeg. Plek gelijk. */
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  .legend-btn { width: 44px; height: 44px; border-radius: 50% !important; }
  .legend-btn span { font-size: 18px; }
}
/* Tekstlaag onder de lijst: "gisteren" boven de tijd bij Grotere incidenten (stond hier niet, wel in site.css:127; liep
   over de tijd heen, gezien 5 okt 2026). */
.landing .bd-day { display: block; font: 600 13px/1.3 var(--font); color: var(--muted); }

/* ==== Designsysteem v1, stap 3: kaartjes op de kaart (5 okt 2026) ====
   Een nieuwe jas over alle kaartjes (borden DS-21/22 compact meldingkaartje en DS-23 overige kaartjes, bron
   docs/design/canvas-sessie-b/gen_ds.py popup_compact_board en other_popups_board). Zelfde bouwstenen als het onderblad
   (stap 2): .item-meta, code in drie niveaus, GRIP-label, nieuwsregel met het paarse icoon. Hoeken 14 px (de morph naar de
   pagina in reader.js start ook met "round 14px"), sluitkruisje 44 px, knoppen minstens 44 px, tekst minstens 13 px
   (behalve de bronvermelding van Windy en de luchtfoto). Links onderstreept, zonder "→". */
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; font: 14px/1.45 var(--font); }
/* Sluitkruisje van Leaflet: rond zacht vlak van 44 px rechtsboven, naast de kopregel (DS-21 .x-x). */
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; background: var(--hover); color: var(--text); font: 400 24px/1 var(--font); }
.leaflet-container a.leaflet-popup-close-button:hover, .leaflet-container a.leaflet-popup-close-button:focus { color: var(--text); background: var(--line); }
.leaflet-container a.leaflet-popup-close-button:focus-visible { outline: 3px solid var(--politie); outline-offset: 2px; }
/* Kopregel van elk kaartje: even hoog als het kruisje ernaast, met ruimte ervoor. */
.leaflet-popup-content .pop > :first-child, .leaflet-popup-content .cam-pop > :first-child { padding-right: 40px; }
.leaflet-popup-content .pop-head { min-height: 32px; margin: 0; }

.pop.d-ambulance { --ct: var(--amb-t); }
.pop.d-brandweer { --ct: var(--brw-t); }
.pop.d-politie { --ct: var(--pol-t); }
.pop.d-knrm { --ct: var(--knrm-t); }
.pop.d-overig { --ct: var(--muted); }
.pop-head time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Meldingkaartje compact (DS-21): geen scrollen, elke regel onder de kop op één regel. */
.pop-c { display: grid; min-width: 0; }
.pop-c .pop-grip { margin-top: 4px; }
.pop-c .pop-grip .grip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 13px; font-weight: 700;
  white-space: nowrap; background: var(--sky); color: var(--ink); }
.pop.pop-c .pop-headline { margin: 4px 0; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.pop-c .pop-summary { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.pop-c .pop-loc { margin: 0 0 8px; gap: 5px; font-size: 14px; min-width: 0; }
.pop-c .pop-loc > span, .pop-c .pop-update { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-c .pop-update { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--sky); color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.pop-c .pop-update time { font-weight: 700; color: var(--urgent-t); }
.pop-c .news-line.pop-news { margin: 0 0 12px; font-size: 14.5px; }
.pop-c .news-line.pop-news .nl-t { font-weight: 700; }
.pop-c .news-line.pop-news .news-more { font-size: 14px; }
/* Knop naar de pagina (het kaartje groeit daaruit, app.js .pop-cta → reader.js morphFrom) en de tiplink. */
.pop .pop-cta { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 18px; border-radius: 10px;
  background: var(--ink); color: var(--panel) !important; font-size: 15.5px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.pop .pop-tip { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 2px; padding: 0 6px; font-size: 14.5px;
  color: var(--muted); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pop .pop-tip:hover { color: var(--text); text-decoration-color: var(--muted); }

/* Nieuwsbericht (DS-23): bron in nieuwspaars met blokje, titel 17 px, "Lees meer" onderstreept, gekoppelde meldingen als rijen. */
.news-pop { --c: var(--news); }
.news-pop .pop-head { flex-wrap: nowrap; white-space: nowrap; }
.news-pop .pop-head > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.news-pop .news-src { font-weight: 700; color: var(--news-t); }
.news-pop .news-img { margin: 6px 0 8px; border-radius: 10px; }
.news-pop .news-also { margin-top: 2px; font-size: 14px; }
.news-pop .news-facts { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.news-pop .news-facts.good { color: var(--good-t); }
.news-pop .news-title.big { margin: 4px 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.news-pop .news-old { margin: 0 0 4px; font-size: 14px; color: var(--live-text); }
.news-pop .news-sum { margin: 0 0 6px; font-size: 15px; line-height: 1.45; }
.pop .read-more, .cam-pop .read-more { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.news-pop .loc { margin: 0 0 8px; gap: 5px; font-size: 14px; }
.news-pop > .news-meta { font-size: 14px; }
.news-pop .news-head { margin: 8px 0 4px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.news-pop .linked { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 0; padding: 8px 0; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; background: none; font-size: 14.5px; text-decoration: none; }
.news-pop .linked:hover .linked-msg { text-decoration: underline; }
.news-pop .linked .badge { align-self: start; display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border: 0; border-radius: 4px; font-size: 13px;
  font-weight: 700; letter-spacing: 0; white-space: nowrap; background: var(--hover); color: var(--text); }
.news-pop .linked .badge.p1 { background: var(--brandweer); color: #fff; }
.news-pop .linked .badge.p2 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); color: var(--text); }
.news-pop .linked-msg { font-family: var(--font); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.news-pop .linked .news-meta { font-size: 13.5px; }
.news-pop .area-box { border: 0; border-radius: 12px; padding: 12px; }
.news-pop .area-head { font-size: 14px; }
.news-pop .area-head span, .news-pop .area-src, .news-pop .area-grid dt, .news-pop .area-loading { font-size: 13px; }
.news-pop .area-grid dd { font: 800 16px/1.3 var(--display); }

/* Webcams (DS-23): titel als kopregel naast het kruisje, knoppen 44 px. Windy-vermelding verplicht (mag kleiner). */
.cam-pop .cam-title { gap: 8px; margin-bottom: 6px; font-size: 15px; }
.cam-pop .cam-play { border-radius: 12px; font-size: 17px; font-weight: 800; }
.cam-pop .cam-play small { font-size: 13px; opacity: .9; }
.cam-pop .cam-still { border-radius: 12px; }
.cam-pop .cam-timelapse { min-height: 44px; border: 0; border-radius: 10px; background: var(--hover); font-size: 15px; }
.cam-pop .cam-timelapse:hover { background: var(--line); }
.cam-pop .cam-meta { font-size: 14px; }
.cam-pop .cam-meta a { color: var(--text); text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cam-pop .cam-meta.cam-credit { font-size: 11.5px; }
.cam-pop .cam-meta.cam-credit a { color: inherit; text-decoration-color: currentColor; text-decoration-thickness: 1px; }

/* NDW-ongeval (DS-23): oranje pil, kop 19 px, gemeld/status als rustige tabel. */
.traffic-pop .traffic-badge { gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 13px; }
.traffic-pop .traffic-badge svg { width: 12px; height: 12px; }
.pop.traffic-pop .pop-headline { margin: 4px 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.traffic-pop dl { gap: 2px 12px; margin: 4px 0 8px; font-size: 15px; }
.traffic-pop dt { font-size: 14px; }
.traffic-pop .cam-meta { font-size: 14px; }
/* Rijkswaterstaat bij hetzelfde ongeval (5 okt 2026): eigen blokje onder NDW, zelfde rustige tabel; link onderstreept. */
.traffic-rws { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.traffic-rws .item-meta .disc { color: var(--text); font-weight: 700; }
.traffic-rws .r-chipv { margin-left: 6px; }
.traffic-rws-what { margin: 4px 0 2px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.traffic-rws-what span { font-weight: 400; color: var(--muted); }
.traffic-rws .cam-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Plaatsoverzicht (DS-23): kruisje donker op de luchtfoto, cijfers als zachte tegels, top-3 als onderstreepte links. */
.place-popup a.leaflet-popup-close-button { background: rgb(0 0 0 / 45%); color: #fff; z-index: 1; }
.place-popup a.leaflet-popup-close-button:hover, .place-popup a.leaflet-popup-close-button:focus { background: rgb(0 0 0 / 60%); color: #fff; }
.place-popup .leaflet-popup-content-wrapper { overflow: hidden; }
.place-card { margin: -12px -14px; width: min(320px, 78vw); }
.place-card .pc-photo { border-radius: 14px 14px 0 0; } /* foto houdt 32:13: zo past het kaartje op een telefoon zonder scrollen */
.place-card .pc-sub { font-size: 13px; }
.place-card .pc-body { padding: 12px 16px 14px; }
.place-card .pc-stats { gap: 8px; }
.place-card .pc-stat { border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.3; }
.place-card .pc-stat b { font-size: 20px; }
.place-card .pc-bar { height: 10px; border-radius: 5px; }
.place-card .pc-top { gap: 0; }
.place-card .pc-top li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.place-card .pc-top a { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.place-card .pc-top a:hover { text-decoration-color: var(--muted); }
.place-card .pc-top time { font-size: 13px; }
.place-card .pc-go { min-height: 44px; border-radius: 10px; background: var(--ink); color: var(--panel); font-size: 15.5px; }
/* Plaatsoverzicht: CBS-regel en de verplichte luchtfotovermelding elk een eigen regel; lege CBS-regel niet tonen. */
.place-card .pc-sub:empty { display: none; }
.place-card .pc-credit { opacity: .85; font-size: 12px; }

/* ==== Designsysteem v1, stap 4: feed (5 okt 2026) ====
   Een nieuwe jas over de feed (borden DS-31 t/m DS-37, bron docs/design/canvas-sessie-b/gen_ds.py feed_board, feed_news_board,
   feed_sensitive_board, feed_update_board, feed_ad_board, feed_desktop_board, feed_kinds_board). Zelfde kaarten, teksten, labels,
   knoppen, animaties en fit-niveaus; alleen maten, letters en vlakken. De feed blijft altijd donker, dus hier vaste donkere
   tekstkleuren per dienst (de waarden van --amb-t enz. in donker), ook als de rest van de site licht is. Tekst minstens 13 px
   (behalve de verplichte bronvermelding op het beeld), tikdoelen minstens 44 px. */
.swipe .d-ambulance { --ct: #f0b81f; }
.swipe .d-brandweer { --ct: #ff6b78; }
.swipe .d-politie { --ct: #7aa5ff; }
.swipe .d-knrm { --ct: #ff9a4d; }
.swipe .d-overig { --ct: #aab1ba; }

/* Schil: terug, Uitgelicht/Alles en pijlen 44–48 px; bereikregel links onder de knoppen (DS-31 .f-scope). */
.swipe-close { min-height: 44px; padding: 0 16px 0 12px; font-size: 14.5px; background: rgb(255 255 255 / 14%); }
.swipe-close svg { width: 18px; height: 18px; }
.swipe-mode { gap: 0; padding: 0; background: rgb(255 255 255 / 14%); }
.swipe-mode button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; font-size: 14px; font-weight: 700; color: rgb(255 255 255 / 85%); }
.swipe-mode button[aria-checked="true"] { background: #fff; color: #0b0c0f; }
.swipe-counter { min-width: 44px; font-size: 13px; font-weight: 700; color: #e8eaee; }
.swipe-scope { top: calc(max(10px, env(safe-area-inset-top)) + 54px); left: 16px; right: 16px; text-align: left; font-size: 14px; font-weight: 600; line-height: 1.4; color: #e8eaee; }
.swipe-new { top: calc(max(10px, env(safe-area-inset-top)) + 96px); display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  font-size: 14.5px; font-weight: 800; color: #0b0c0f; box-shadow: 0 8px 24px rgb(0 0 0 / 45%); }
.swipe-nav button { width: 48px; height: 48px; background: rgb(255 255 255 / 14%); }
.swipe-nav button:hover { background: rgb(255 255 255 / 24%); }
.swipe-toast { width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.4;
  text-align: center; color: #10151c; box-shadow: 0 10px 30px rgb(0 0 0 / 50%); }
@media (max-width: 420px) {
  .swipe-close { width: 44px; padding: 0; justify-content: center; }
  .swipe-mode button { padding: 0 13px; }
}

/* Inhoud van een melding- of nieuwskaart: iets dichter op elkaar (gat 8 px), zodat de grotere tekst niet eerder krimpt. */
.s-content { gap: 8px; }
.s-kicker { gap: 6px 8px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
/* Kopregel: dienstblokje + dienstnaam in tekstkleur, code in drie niveaus, "met spoed" (swipe.js incidentHtml). */
.s-blk { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c); }
.s-disc { font-size: 14.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ct, #aab1ba); }
.s-prio { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border: 0; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0;
  white-space: nowrap; background: rgb(255 255 255 / 10%); color: #fff; }
.s-prio.p1 { background: var(--urgent); color: #fff; }
.s-prio.p2 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); color: var(--ct, #fff); }
.s-urgent { padding: 0; border-radius: 0; background: none; font-size: 14.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #ff6b78; }
.s-source { font-size: 14.5px; font-weight: 700; color: #c6bcff; }
/* Labels als rustige pillen van 24 px (DS-31 .f-lab). Eerdere regels gebruiken !important, daarom hier ook. */
.s-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0;
  text-transform: none; white-space: nowrap; background: rgb(255 255 255 / 14%); color: #fff; }
.s-tag.s-tag-news { background: #5b4bc4 !important; color: #fff !important; }
/* GRIP in gewone taal (besluit eigenaar 5 okt 2026): lichtblauw vlak, nooit rood (zoals lijstrij en kaartje). */
.s-tag.s-tag-grip { background: #dbe9f5 !important; color: #143b5c !important; }
.s-tag.s-tag-lead { background: rgb(255 255 255 / 92%) !important; color: #10151c !important; }
.s-tag.s-tag-update { background: #ff8a3d !important; color: #1a0d00 !important; }
.s-tag.s-tag-seen { background: rgb(255 255 255 / 16%) !important; color: rgb(255 255 255 / 82%) !important; }
.s-tag.s-tag-good { background: rgb(29 158 117 / 32%) !important; color: #d6f5e9 !important; }
.s-tag.s-tag-local { background: #fff !important; color: #0b0c0f !important; }
/* Lokale maker (5 okt 2026): eigen rustige kleur (salie), duidelijk anders dan nieuws (paars), lokaal nieuws (wit) en goede
   afloop (groen). De feed is in licht en donker hetzelfde donkere vlak; de kleur is getoetst op contrast (#22301d op #d5e3c4). */
.s-tag.s-tag-maker { background: #d5e3c4 !important; color: #22301d !important; }
.s-illu.d-maker { --illu-bg: #1f2a1b; --illu-fg: #c9dcb4; }
/* Achter de afspeelknop alleen ons logoraster in salie: het camera-icoon erdoor heen oogde rommelig (getest 5 okt 2026). */
.so-poster .s-illu.d-maker .s-illu-icon { display: none; }
.so-poster .s-illu.d-maker .s-illu-grid { opacity: 0.32; }
.s-makercard .s-sum { color: rgb(255 255 255 / 85%); }
.s-maker-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 700; color: #fff;
  text-decoration: underline; text-decoration-color: #c9dcb4; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.s-maker-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Kop 22 px voor alle kaarten (was 20–28 px, meegroeiend): vast, zodat de fit-niveaus niet eerder ingrijpen dan nu. */
.s-title, .s-headline { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.18; letter-spacing: -0.015em; }
.s-story, .s-sum { font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / 88%); }
/* Contextregel: oranje stip in plaats van de oranje streep links (bouwrisico 9 in ds-v1-controle.md). */
.s-context { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-left: 0; border-left: 0; font-size: 14px; font-weight: 600; line-height: 1.4;
  color: #ffc89e; opacity: 1; }
.s-context::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--live); }
.s-context[hidden] { display: none; }
.s-loc { gap: 6px; font-size: 14px; line-height: 1.4; color: #c4cad2; }
.s-loc svg { width: 14px; height: 14px; }
.s-loc em { color: #aab1ba; }
.s-area { font-size: 13px; color: #d7dbe0; }
.s-area .area-line { padding: 3px 10px; background: rgb(255 255 255 / 10%); }
.s-meta { font-size: 14px; color: #aab1ba; }
/* Nieuwslinks: paars nieuwsicoon in een vlakje (zoals de pin en de lijstrij), geen kader; minstens 44 px hoog. */
.s-newslink { gap: 9px; min-height: 44px; padding: 0; border-radius: 0; background: none; font-size: 14px; line-height: 1.35; color: #fff; }
.s-newslink-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 0; border-radius: 6px; background: #5b4bc4; color: #fff; }
.s-newslink-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-newslink small { display: block; font-size: 13px; color: #aab1ba; }
.s-newslink-sum { font-size: 13px; }
@media (hover: hover) { .s-newslink:hover b { text-decoration: underline; } }
/* Reacties als echte knoppen van 44 px (DS-31 .f-rx); indrukken (scale .96) blijft uit de basisregel. */
.rx-card { gap: 6px; margin-top: 4px; }
.rx-card .rx-row { gap: 6px; }
.rx-card .rx-btn { min-height: 44px; padding: 0 13px; border-color: transparent; border-radius: 999px; font-size: 14.5px; font-weight: 700; background: rgb(255 255 255 / 14%); }
.rx-card .rx-btn.on { color: #0b0c0f; background: #fff; border-color: #fff; }
.rx-card .rx-n { font-size: 13px; }
.rx-card .rx-lines { font-size: 13.5px; color: #d7dbe0; }
.rx-card .rx-status-line em { font-size: 13px; }
.rx-card .rx-msg { font-size: 13px; color: #ff6b78; }
.s-join-box .rx-card .rx-btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
/* Details / Lees meer: witte pil van 44 px. Bij een melding staat Details buiten het inhoudsvak (swipe.js), zodat hij nooit
   wegvalt bij een te volle kaart; nu links als pil in plaats van een balk over de hele breedte. */
.s-cta { min-height: 44px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0b0c0f; font-size: 15.5px; font-weight: 800; }
.s-inner > .s-cta { position: relative; z-index: 2; align-self: flex-start; margin: 0 0 calc(20px + env(safe-area-inset-bottom)) 20px; }
.s-incident .s-content { padding-bottom: 14px; }
.s-cta:focus-visible, .s-newslink:focus-visible, .s-join-link:focus-visible, .s-bundle-list a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Zijknoppen: rondjes van 48 px met label van 13 px (DS-31 .f-side). Buurtapp-knop houdt het bestaande groen. */
/* Rechts 4 px (was 12): met labels van 13 px is "Waarschuw" ±72 px breed; zo blijft hij binnen de 76 px naast de tekst. */
.s-actions { right: 4px; gap: 12px; }
.s-actions button, .s-wa { gap: 4px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgb(0 0 0 / 60%); }
.s-actions button svg { width: 48px; height: 48px; padding: 13px; }
.s-wa .wa-icon { width: 48px; height: 48px; padding: 12px; }
.s-actions .rx-pill-ico { width: 48px; height: 48px; }
.s-actions button:focus-visible .rx-pill-ico { outline: 2px solid #fff; outline-offset: 2px; }

/* Advertentiekaart (DS-34): label en hint rustig, vak gestreept zoals op het bord. */
.s-ad-label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: #aab1ba; }
.s-ad-hint { font-size: 14px; color: #aab1ba; }
.ad-swipe, .ad-swipe-full { border-color: #2a2e34; color: #8a929c; background: repeating-linear-gradient(135deg, #14171b 0 10px, #101215 10px 20px); }

/* Overige kaartsoorten (DS-37): koppen 24 px, kicker zonder hoofdletters, knoppen 44 px, links onderstreept. */
.s-summary-kicker, .s-divider-kicker { font-size: 13px !important; font-weight: 700; letter-spacing: 0; text-transform: none; color: #ff8a3d !important; }
.s-caughtup .s-divider-kicker { color: #8fe6b2 !important; }
.s-summary-box h2, .s-join-box h2, .s-divider-box h2, .s-bundle-box h2, .s-empty-box h2 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15;
  letter-spacing: -0.02em; text-wrap: balance; }
.s-summary-line, .s-divider-box p, .s-empty-box p { font-size: 14.5px; line-height: 1.45; color: rgb(255 255 255 / 78%); }
.s-summary-hint { font-size: 13px; color: rgb(255 255 255 / 60%); }
.s-sum-chip { gap: 6px; font-size: 13px; }
.s-join-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14.5px; font-weight: 600; color: #fff; opacity: 1;
  text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.s-join-btn, .s-bundle-map, .s-caughtup button, .s-empty-box button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.s-bundle-map, .s-caughtup button, .s-empty-box button { background: #fff; color: #0b0c0f; }
/* Lege feed: "Toon alle meldingen" is de hoofdknop; "Terug naar de kaart" ernaast als glasknop. */
.s-empty-box button[data-act="all"] + button { margin-top: 10px; background: rgb(255 255 255 / 14%); color: #fff; }
/* Bundels: per regel dienstblokje + tijd + kop, met dunne lijnen in plaats van de gekleurde streep; rijen 44 px. */
.s-bundle-list { gap: 0; }
.s-bundle-list a { grid-template-columns: 10px 44px minmax(0, 1fr); gap: 8px; align-items: start; min-height: 44px; padding: 10px 2px; border-left: 0;
  border-top: 1px solid rgb(255 255 255 / 8%); border-radius: 0; background: none; font-size: 14.5px; line-height: 1.35; }
.s-bundle-list li:first-child a { border-top: 0; }
.s-bundle-list .s-blk { margin-top: 5px; }
.s-bundle-list time { padding-top: 0; font: 800 14.5px/1.35 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
@media (hover: hover) { .s-bundle-list a:hover span:last-child { text-decoration: underline; } }
/* Videolabel op het beeld ("Video · bron · YouTube") in de feed 13 px (was 12). */
.s-visual .yt-src { font-size: 13px; }
.s-ad .ad-slot > span { font-size: 13px; } /* maatlabel bij "Toon testposities" */
/* Na controle stap 4 (5 okt 2026): de hogere zijknoppen vielen over de verplichte luchtfotovermelding (rechtsonder);
   die staat nu linksonder in het beeld. Het videolabel zakt onder de pil "1 nieuw ↑" (die is 44 px hoog geworden). */
.s-credit { left: 10px; right: auto; }
.s-visual .yt-v .yt-src { top: calc(max(10px, env(safe-area-inset-top)) + 150px); }


/* ==== Designsysteem v1, stap 5: leespagina's en tipformulier (5 okt 2026) ====
   Een nieuwe jas over de meldingpagina, de gevoelige melding, de leespagina nieuws, "niet gevonden" en het tipformulier
   (borden DS-44 t/m DS-49, DS-60 t/m DS-62, DS-70 en DS-71, bron docs/design/canvas-sessie-b/gen_ds.py melding_board,
   melding_sensitive_board, melding_parts_board, melding_desktop_board, news_reader_board, news_desktop_board, tip_board,
   tip_states_board). Zelfde onderdelen, teksten, toestanden en animaties (morph, scroll-effect leesbalk, ping, km-ping,
   ademende stip, soepel naar de video, "Link gekopieerd", toasts). Koppen als zin met een stip, vlakken in plaats van kaders,
   links onderstreept zonder "→", tekst minstens 13 px (behalve de luchtfoto-/fotovermelding en het advertentielabel),
   knoppen minstens 44 px. Bouwstenen van stap 2–4: .item-time, .item-meta (blokje, dienstnaam, code in drie niveaus, GRIP),
   tekstkleuren --amb-t enz. en het paarse nieuwsicoon (.ni-s). */
:root {
  --r-page: var(--panel);   /* paginavlak: wit in licht (bord: bg #fff), --bg in donker */
  --r-field: #143b5c;       /* merkvlak (Wat we weten, 112 vandaag) */
  --r-on-field: #ffffff;
  --r-btn: #143b5c;         /* hoofdknop */
  --r-on-btn: #ffffff;
  --r-gas-bg: #fff3c4; --r-gas-text: #4a3a00;
  --r-chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --r-page: var(--bg); --r-field: #16324b; --r-on-field: #eef4fa; --r-btn: #eef4fa; --r-on-btn: #10151c; --r-gas-bg: #3a3210; --r-gas-text: #ffe58a;
    --r-chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310151c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --r-page: var(--bg); --r-field: #16324b; --r-on-field: #eef4fa; --r-btn: #eef4fa; --r-on-btn: #10151c; --r-gas-bg: #3a3210; --r-gas-text: #ffe58a;
  --r-chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310151c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
.reader .d-ambulance { --ct: var(--amb-t); }
.reader .d-brandweer { --ct: var(--brw-t); }
.reader .d-politie { --ct: var(--pol-t); }
.reader .d-knrm { --ct: var(--knrm-t); }
.reader .d-overig { --ct: var(--muted); }
/* Gedeelde bouwstenen op de pagina: onderstreepte link (oranje streep), zachte knop. */
.reader .r-grip-note a, .r-tl-text a, .r-feedback .r-link-btn, .r-bigmap, .r-xactions a {
  color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Schil en leesbalk: zelfde knoppen en logo (scroll-effect en ping blijven), zachte knoppen van 44 px. */
.reader { background: var(--r-page); }
.reader-bar { background: var(--r-page); box-shadow: 0 2px 10px rgb(0 0 0 / 8%); }
.reader-bar .back-btn { min-height: 44px; padding: 0 14px 0 12px; border: 0; border-radius: 10px; background: var(--hover); font-size: 15px; font-weight: 700; }
.reader-bar .back-btn:hover { background: var(--line); }
@media (max-width: 420px) { .reader-bar .back-map { width: 44px; padding: 0; justify-content: center; } }
.reader-body { padding-top: 18px; }
.reader .ad-label { font-size: 12px; letter-spacing: 0.04em; text-transform: none; }
.reader .ad-slot > span { font-size: 13px; letter-spacing: 0; text-transform: none; }

/* Kop: meta-regel met dienstblokjes, GRIP-label + uitleg, kop 28 px (desktop 38 px). */
.r-meta { align-items: center; gap: 4px 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.r-unit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ct, var(--muted)); }
.r-unit .blk { flex: none; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c); }
.r-source { font-weight: 700; color: var(--news-t); }
.r-meta > .r-when::before { content: "· "; }
.r-grip { margin-top: 8px; }
.r-grip .grip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--sky); color: var(--ink); }
.r-title { font: 800 28px/1.15 var(--display); letter-spacing: -0.02em; margin: 8px 0 12px; }
.r-grip-note { margin: -2px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--sky); color: var(--ink); font-size: 15px; line-height: 1.45; }
/* Melding als nieuwsartikel (12 okt 2026): "Door de redactie van MijnBuurt.nu" / "Automatisch samengesteld …" met de
   publicatietijd, onder de kop (public/article-byline.js). Zelfde regel op de server en in de app. */
.r-byline { margin: -4px 0 14px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.r-byline a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.r-byline .muted { color: var(--muted); font-size: 13.5px; }
/* Voorkeursbron in Google (12 okt 2026): eigen knop in de stijl van Google (wit, grijze rand, gele ster). */
.r-prefsrc { margin: -6px 0 16px; }
.r-prefsrc a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.r-prefsrc a:hover { border-color: var(--muted); }
.r-prefsrc svg { width: 18px; height: 18px; fill: #fbbc04; flex: none; }
.reader .r-grip-note a { color: inherit; }

/* Beeld: op de telefoon over de volle breedte (bord DS-45), op bredere schermen met ronde hoeken. De morph (reader.js
   morphFrom) animeert .r-hero zelf; dat blijft zo. */
.r-hero { margin-bottom: 14px; }
.r-aerial-map, .r-hero-illu { border-radius: 14px; }
.r-hero figcaption { font-size: 12px; } /* luchtfotovermelding: mag kleiner */
@media (max-width: 751px) {
  .r-hero { margin-inline: -16px; }
  .r-aerial-map, .r-hero-illu { border-radius: 0; }
  .r-hero figcaption { padding: 0 16px; }
}
.r-figure img, .r-video .yt { border-radius: 14px; }

/* Laatst bijgewerkt, Volg, alinea's, videosprongknop. */
.r-updated { margin: 0 0 10px; font-size: 14px; }
.r-follow { margin: 0 0 16px; }
.r-follow .follow-btn { justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--hover);
  font-size: 15.5px; font-weight: 700; color: var(--text); }
.r-follow .follow-btn svg { width: 18px; height: 18px; }
.r-follow .follow-btn.on { background: #1f5bd8; color: #fff; }
.r-follow .follow-msg { font-size: 14px; }
.r-lead { margin: 0 0 10px; }
.r-text { margin: 0 0 12px; }
.r-jump { gap: 10px; min-height: 44px; margin: 4px 0 16px; padding: 0 16px 0 10px; border: 0; border-radius: 10px; background: var(--hover); font-size: 15.5px; font-weight: 700; }
.r-jump-play { width: 24px; height: 24px; font-size: 11px; }
.r-jump .muted { font-weight: 500; }
@media (hover: hover) { .r-jump:hover { background: var(--line); } }
@media (min-width: 752px) { .r-follow .follow-btn { width: auto; } }

/* Delen: buurtapp lichtgroen over de volle breedte (zoals nu), daaronder zachte knoppen in twee kolommen. */
.r-share-wrap { gap: 8px; margin: 0 0 22px; }
.r-share-wa { gap: 8px; min-height: 50px; border: 0; border-radius: 10px; font-size: 15.5px; font-weight: 700; }
.r-share-wa:hover { border: 0; filter: brightness(0.97); }
.r-share-wa .wa-icon { width: 20px; height: 20px; }
.r-share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.r-share a, .r-share button { justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--hover); font-size: 15.5px; font-weight: 700; }
.r-share a:hover, .r-share button:hover { background: var(--line); }
.r-share svg { width: 16px; height: 16px; }
@media (min-width: 752px) { .r-share-wrap { max-width: 480px; } }

/* Reacties (bord DS-45/DS-44): zacht vlak, knoppen als pillen van 44 px; aan = donker, "voorbij" groen, "bezig" oranje. */
.rx-full { gap: 10px; margin: 0 0 22px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--hover); }
.rx-full .rx-head { display: grid; gap: 0; }
.rx-full .rx-head b { font: 800 17px/1.3 var(--display); }
.rx-full .rx-head span { font-size: 14px; }
.rx-full .rx-q { font-size: 14.5px; color: var(--text); }
.rx-full .rx-btn { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; }
.rx-full .rx-btn:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.rx-full .rx-btn .rx-n { padding: 0; background: none; font-size: 15px; color: var(--muted); }
.rx-full .rx-btn.on { background: var(--text); color: var(--r-page); box-shadow: none; }
.rx-full .rx-btn.on .rx-n { color: inherit; opacity: 0.75; }
.rx-full .rx-status.rx-voorbij.on { background: #1d9e75; color: #fff; }
.rx-full .rx-status.rx-bezig.on { background: var(--live); color: #1a0d00; }
.rx-full .rx-seg { padding: 4px; gap: 4px; background: var(--panel); border: 0; box-shadow: inset 0 0 0 1px var(--line); }
.rx-full .rx-seg .rx-btn:not(.on) { background: transparent; box-shadow: none; }
.rx-full .rx-seg .rx-btn:not(.on):hover { background: var(--hover); }
.rx-full .rx-svg { width: 20px; height: 20px; }
.rx-full .rx-dank { background: color-mix(in srgb, #1d9e75 16%, var(--panel)); color: var(--good-t); box-shadow: none; }
.rx-full .rx-dank.on { background: #1d9e75; color: #fff; }
.rx-full .rx-lines { gap: 2px; font-size: 14px; color: var(--muted); }
.rx-full .rx-status-line { font-weight: 400; }
.rx-full .rx-status-line em, .r-chipv { display: inline-flex; align-items: center; height: 22px; margin-left: 4px; padding: 0 8px; border: 0; border-radius: 999px;
  font-size: 13px; font-style: normal; font-weight: 600; background: var(--panel); color: var(--muted); }
.rx-full .rx-note { padding: 10px 12px; border-radius: 10px; background: var(--r-gas-bg); color: var(--r-gas-text); font-size: 14.5px; }
.rx-full .rx-msg { font-size: 14px; color: var(--brw-t); }

/* Wat we weten (merkvlak, volle blokjes) / Wat we niet weten (zacht vlak, open blokjes). Desktop naast elkaar. */
.r-facts { grid-template-columns: 1fr; gap: 10px; margin: 0 0 28px; }
.r-facts > div { border: 0; border-radius: 14px; padding: 16px 18px; }
.r-facts > .r-known { background: var(--r-field); color: var(--r-on-field); }
.r-facts > .r-unknown { background: var(--hover); }
.r-facts h3 { gap: 10px; margin: 0 0 8px; font-size: 18px; letter-spacing: -0.015em; color: inherit; }
.r-facts h3::before { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.r-unknown h3::before { background: var(--muted); }
.r-facts ul { gap: 4px; font-size: 15px; }
.r-facts li { grid-template-columns: 9px minmax(0, 1fr); gap: 8px; }
.r-facts li::before { width: 9px; height: 9px; margin-top: 7px; border-radius: 2px; background: currentColor; }
.r-unknown li::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (min-width: 752px) { .r-facts { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; } }

/* Sectiekoppen: zin met een stip (kleur per onderwerp via --dot), geen hoofdletters meer. */
.r-grid .r-section, .r-grid .r-side > .r-section:first-child { margin-top: 0; margin-bottom: 26px; }
.r-grid .r-section > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 22px/1.2 var(--display); letter-spacing: -0.015em;
  text-transform: none; color: var(--text); }
.r-grid .r-section > h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--live)); }
.r-grid .r-area > h2, .r-grid .r-politie > h2 { margin-bottom: 6px; font-size: 18px; }

/* In het nieuws: per bericht het paarse nieuwsicoon, kop vet, "bron · tijd · waarschijnlijk (reden)" eronder. */
.r-newslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.r-newslist a { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.r-newslist .ni-s { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--news); color: #fff; }
.r-newslist .ni-s svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.r-nl-t b { display: block; font-weight: 700; }
.r-nl-t small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (hover: hover) { .r-newslist a:hover b { text-decoration: underline; } }

/* Updates en tijdlijn (één lijst, nieuwste boven; public/timeline.js): rijen zoals de lijst, tijdkolom 64 px. */
.r-tl-intro { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.reader .r-timeline { border-top: 1px solid var(--line); }
.reader .r-timeline > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
.reader .r-timeline > li::before { content: none; }
.reader .r-timeline time.item-time { padding: 0; font: 800 17px/1.25 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.reader .r-timeline time.item-time.u { color: var(--urgent-t); }
.reader .r-timeline time.item-time small { display: block; font: 500 13px/1.5 var(--font); color: var(--muted); }
.reader .r-tl-note time.item-time { font-size: 16px; }
.r-tl-body { min-width: 0; }
.r-tl-body .item-meta { gap: 4px 8px; }
.r-tl-note .item-meta .disc { color: var(--text); }
.r-tl-note.n-nieuws { --c: var(--news); }
.r-tl-note.n-ndw { --c: #ea7a0a; }
.r-tl-note.n-bezoekers { --c: var(--overig); }
/* Officiële update (veiligheidsregio e.d., 5 okt 2026): blokje in inktkleur, het label zegt van wie (noteLabel in timeline.js). */
.r-tl-note.n-officieel { --c: var(--ink); }
/* Bron en uitleglink onder een officiële update van de server (VRNHN, Rijkswaterstaat; 5 okt 2026): tikdoel 44 px. */
.r-tl-src { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; font-size: 14px; }
.r-tl-src a { display: inline-block; padding: 11px 0; line-height: 22px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.r-tl-src a svg { display: inline; width: 13px; height: 13px; margin-left: 2px; vertical-align: -1px; }
.r-tl-note.n-officieel .r-tl-label { margin-top: 3px; }
.r-tl-src .r-nowrap { white-space: nowrap; }
/* Goedgekeurde post of video van een bezoeker (tipformulier, 5 okt 2026): zelfde regel, met X-kaart, video of link eronder. */
.r-tl-note.n-post { --c: var(--overig); }
.r-tl-note.n-post .r-xpost, .r-tl-note.n-post .r-video { margin: 8px 0 4px; }
.r-tl-note.n-post .r-tl-text a { display: inline-flex; align-items: center; min-height: 44px; }
/* TikTok en Instagram via hun officiële speler, pas na een klik (social-embed.js, 5 okt 2026). Staand 9:16, nooit breder
   dan de kolom (geen horizontaal scrollen op 375 px), op desktop begrensd zodat een staande video niet het scherm vult.
   Instagram geeft zelf de hoogte door (bericht MEASURE); tot dan een ruime begin-hoogte. */
.r-soembed { margin: 8px 0 4px; max-width: 340px; }
.r-soembed iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--hover); color-scheme: normal; }
.r-soembed-tiktok iframe { aspect-ratio: 9 / 16; height: auto; background: #000; }
.r-soembed-instagram { max-width: 400px; }
.r-soembed-instagram iframe { height: 480px; }
.r-soembed-instagram.is-vertical iframe { height: 640px; }
.r-soembed .r-xactions a { font-size: 14px; }
.reader .r-tl-label { margin: 3px 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.r-tl-update, .r-tl-text { margin: 2px 0 4px; font-size: 15px; line-height: 1.45; }
.reader .r-tl-grew { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0;
  text-transform: none; background: color-mix(in srgb, var(--brandweer) 16%, transparent); color: var(--brw-t); }
.reader .r-timeline .r-explain { margin-top: 0; font-size: 14px; }
.reader .r-timeline .r-explain summary { padding: 12px 0; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--text); text-decoration: underline;
  text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.reader .r-timeline .r-explain .msg { margin: 0 0 8px; padding: 8px 10px; font: 13px/1.5 var(--mono); color: var(--text); background: var(--hover); }
.reader .r-explain dl { margin: 0; padding: 0; gap: 6px; background: none; }
.reader .r-explain dt { font-size: 13px; font-weight: 600; }
.reader .r-explain dd { color: var(--muted); }

/* In context: lichtblauw vlak, kop met stip, regels zonder opsommingstekens. */
.r-context { margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; }
.r-context h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 18px/1.25 var(--display); letter-spacing: -0.015em; text-transform: none; }
.r-context h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.r-context ul { list-style: none; padding: 0; gap: 3px; font-size: 15px; color: var(--ink); }
.r-ctx-note { margin-top: 6px; font-size: 13px; color: var(--ink); opacity: 0.85; }

/* Bronregel, Nuttig + Klopt iets niet?, tipblok. */
.r-credit { margin: 0 0 10px; font-size: 13px; }
.r-credit.r-credit-news { margin-bottom: 26px; }
.r-feedback { flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.r-feedback .rx-useful { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--hover); font-size: 15.5px; font-weight: 700; }
.r-feedback .rx-thanks { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.reader .r-feedback .r-link-btn { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; font-size: 14.5px; }
.r-tip { display: block; margin: 0 0 26px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--hover); }
.r-tip b { font-size: 16px; }
.r-tip span { display: block; margin: 2px 0 10px; font-size: 14.5px; }
.r-tip-btn { justify-content: center; gap: 8px; width: 100%; min-height: 44px; border-radius: 10px; background: var(--r-btn); color: var(--r-on-btn); font-size: 15.5px; }
.r-tip-btn svg { width: 18px; height: 18px; }

/* Video, advertentie in het artikel (label erboven, "300×250 of outstream-video"). */
.r-videos { margin: 0; }
.r-video figcaption { font-size: 14px; }
.r-grid .r-ad { margin: 0 0 26px; }

/* Meer meldingen in de buurt / Gerelateerde P2000-meldingen: rijen zoals de lijst (stap 2) in plaats van één kader. */
.r-incidents { gap: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; overflow: visible; }
.r-incident { display: grid; grid-template-columns: 58px minmax(0, 1fr) 56px; column-gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.r-incident + .r-incident { border-top: 0; }
.r-incident::before { content: none; }
.r-incident:hover { background: none; }
.r-incident .item-time { display: block; }
.r-incident .item-time small { display: block; }
.r-incident .item-meta .badge { font-size: 13px; padding: 0 6px; }
.r-incident-title { margin: 3px 0 4px; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--text); }
@media (hover: hover) { .r-incident:hover .r-incident-title { text-decoration: underline; } }
/* Regel met pin mag doorlopen: de reden van de koppeling ("waarschijnlijk · zelfde straat (…)") stond er altijd helemaal. */
.r-incident .r-why { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.r-incident .r-why svg { flex: none; width: 12px; height: 12px; align-self: center; }
.r-incident .r-why > span { min-width: 0; }
.r-incident .thumb { align-self: start; }

/* 112 vandaag: merkvlak met de rode afspeelbol. */
.r-today { margin: 0 0 26px; padding: 16px 18px; border-radius: 14px; background: var(--r-field); color: var(--r-on-field); }
.r-today:hover { background: var(--r-field); filter: brightness(1.08); }
.r-today-play { background: #d62839; color: #fff; }
.r-today b { font-size: 16px; }
.r-today small { font-size: 14px; color: inherit; opacity: 0.85; }

/* Waar: kaartje 200 px met ronde hoeken (desktop 220), plaatsregel, "Toon op de grote kaart" als onderstreepte link. */
.r-map { height: 200px; border: 0; border-radius: 14px; }
.r-loc { margin: 8px 0 2px; font-size: 14px; color: var(--muted); }
/* Lange regel ("· Locatie bij benadering: ergens op de …") loopt door naast de pin in plaats van eronder (5 okt 2026). */
.r-loc { flex-wrap: nowrap; align-items: flex-start; }
.r-loc > svg { flex: none; margin-top: 3px; }
.r-loc > span { min-width: 0; }
.r-loc > svg { width: 12px; height: 12px; }
.r-loc .muted { opacity: 0.8; }
.reader .r-bigmap { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; font-size: 14.5px; }
.r-where > p { font-size: 15px; }
/* Doorklikken naar de plaats (melding eigenaar 7 okt 2026): "Alles over 112 in {plaats}" (en het stadsdeel) onder "Toon op
   de grote kaart", als dezelfde onderstreepte link met oranje streep en een tikdoel van 44 px; elk op een eigen regel. */
.r-places { list-style: none; margin: 0; padding: 0; }
.reader .r-places a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Kruimelpad in de leesversie van de server (7 okt 2026; de app tekent de pagina daarna zonder): zoals site.css .crumbs. */
.reader-body > .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 8px; padding: 0; font-size: 13.5px; color: var(--muted); }
.reader-body > .crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.reader-body > .crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.reader-body > .crumbs a:hover { text-decoration: underline; text-decoration-color: var(--live); }

/* "Meer over deze buurt" (mobiel achter een uitklapper; desktop open, zonder kopregel): CBS full en politiecijfers. */
.r-side-more { margin: 0 0 28px; }
/* Kopregel: titel met daaronder "buurtcijfers en politiecijfers" (op één regel past het niet op een telefoon), pijltje rechts. */
.r-side-more > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 44px; padding: 10px 18px;
  border-radius: 10px; background: var(--hover); font-size: 15.5px; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.r-side-more > summary::-webkit-details-marker { display: none; }
.r-side-more .r-sm-t { grid-column: 1; }
.r-side-more .r-sm-sub { grid-column: 1; font-size: 14px; font-weight: 500; color: var(--muted); }
.r-side-more .r-chev { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
.r-side-more[open] .r-chev { transform: rotate(180deg); }
.r-side-more > .r-section { margin: 10px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--hover); }
@media (prefers-reduced-motion: reduce) { .r-side-more .r-chev { transition: none; } }
.reader .area-box.full { margin-top: 4px; padding: 0; border: 0; border-radius: 0; background: none; }
.reader .area-box.full .area-head { display: grid; gap: 0; margin-bottom: 10px; font-size: 16px; }
.reader .area-box.full .area-head span { font-size: 14px; }
.reader .area-box.full .area-head span + span::before { content: none; }
.reader .area-box.full .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.reader .area-box.full .area-grid dt { font-size: 13px; }
.reader .area-box.full .area-grid dd { font: 800 18px/1.3 var(--display); color: var(--text); }
.reader .area-box.full .area-grid dd small { font: 400 13px/1.4 var(--font); }
.reader .area-box.full .area-src { font-size: 13px; }
.reader .area-loading, .reader .r-politie .mb-loader { font-size: 14px; }
.r-politie-lead { font-size: 14px; color: var(--muted); }
.reader .r-politie .pc-table { font-size: 14.5px; }
.reader .r-politie .pc-table th, .reader .r-politie .pc-table td { padding: 6px 0 6px 8px; }
.reader .r-politie .pc-table th[scope="row"], .reader .r-politie .pc-table thead th:first-child { padding-left: 0; }
.reader .r-politie .pc-table thead th { font-size: 13px; font-weight: 600; }
.reader .r-politie .ov-how { font-size: 13px; }

/* Leespagina nieuws: tags als pillen, knop naar het artikel (hoofdknop), "Tip de politie" omlijnd, Goed om te weten als pil. */
.r-tags { margin-bottom: 12px; }
.r-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 0; background: var(--hover); font-size: 13px; font-weight: 700; }
.r-figure figcaption { font-size: 12px; } /* fotovermelding: mag kleiner */
.reader .r-cta { display: flex; justify-content: center; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 10px 18px; border-radius: 10px;
  background: var(--r-btn); color: var(--r-on-btn); font-size: 15.5px; line-height: 1.3; text-align: center; }
.reader .r-cta.r-cta-tip { margin: 0 0 18px; border: 0; background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
@media (min-width: 752px) { .reader .r-cta { display: inline-flex; width: auto; margin-right: 8px; } }
.r-news-rx { margin: 0 0 26px; }
.r-cta + .r-share-wrap { margin-top: 10px; }
.r-news-rx .rx-pill { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; }
.r-news-rx .rx-pill b { color: var(--muted); }
.r-news-rx .rx-pill[aria-pressed="true"] { background: var(--text); color: var(--r-page); box-shadow: none; }
.r-news-rx .rx-pill[aria-pressed="true"] b { color: inherit; opacity: 0.75; }
.r-grid .r-more { gap: 0; border-top: 1px solid var(--line); }
.r-grid .r-more a { gap: 2px; min-height: 44px; padding: 10px 0; }
.r-grid .r-more-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.r-grid .r-more .muted { font-size: 14px; }
.r-grid .r-section > p.muted { font-size: 14px; }
/* X-post: zacht vlak, knop en link 44 px. */
.r-xpost { border: 0; border-radius: 14px; background: var(--hover); }
.r-xload { min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.r-xactions a { display: inline-flex; align-items: center; min-height: 44px; }
.r-xnote { font-size: 13px; }

/* Niet gevonden: zelfde teksten en knop in een zacht vlak. */
.r-missing { padding: 18px; border-radius: 14px; background: var(--hover); }
.r-missing .r-title { margin-top: 0; font-size: 24px; }
.r-missing p { margin: 0 0 12px; font-size: 16px; }
.r-missing p:last-child { margin: 0; }
.reader .r-missing .r-cta { margin: 0; }

/* Desktop (≥ 1100 px): twee kolommen zoals nu (besluit eigenaar 4 okt 2026, bord DS-47/48, DS-62). Rechts Waar, buurtcijfers en
   politiecijfers open, en de sticky 300×600; delen, volgen, reacties, Meer in de buurt en 112 vandaag in de hoofdkolom. */
@media (min-width: 1100px) {
  .r-title { font-size: 38px; line-height: 1.12; margin-bottom: 14px; }
  .r-side .r-map { height: 220px; }
  .r-side-more > summary { display: none; }
  .r-side-more > .r-section { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
  .r-side-more > .r-section:first-of-type { margin-top: 0; }
  .r-ad-side { margin-top: 26px; }
}

/* ---- Tipformulier (bord DS-70/71): zelfde velden, vinkjes, teksten en toestanden; alleen de jas. ---- */
.tip-dialog { border: 0; border-radius: 14px; }
.tip-dialog .tip-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tip-dialog .tip-head h2, .tip-dialog .tip-done h2 { font: 800 22px/1.2 var(--display); letter-spacing: -0.02em; }
.tip-dialog .tip-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: var(--hover); color: var(--text); font-size: 24px; }
.tip-dialog .tip-x:hover { background: var(--line); }
.tip-dialog .tip-body { gap: 0; padding: 14px 16px; }
.tip-dialog .tip-about { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.tip-dialog .tip-about b { color: var(--text); }
.tip-dialog .tip-112, .tip-dialog .tip-error { margin: 0 0 16px; padding: 12px 14px; border: 0; border-radius: 12px; font-size: 15px; line-height: 1.45;
  background: color-mix(in srgb, var(--brandweer) 13%, var(--panel)); color: var(--text); }
.tip-dialog .tip-error { margin: 8px 0 0; font-weight: 700; }
.tip-dialog .tip-label { display: block; margin: 6px 0 6px; font-size: 15px; font-weight: 700; }
.tip-dialog .tip-label[for="tip-text"] { margin-top: 0; font-size: 15.5px; }
.tip-dialog .tip-label .muted { font-weight: 700; color: inherit; }
.tip-dialog textarea, .tip-dialog input:not([type="checkbox"]) { min-height: 48px; padding: 12px 14px; border-radius: 10px; background: var(--panel); font-size: 16px; line-height: 1.4; }
.tip-dialog textarea { min-height: 132px; }
.tip-dialog .tip-hint { gap: 12px; margin: 6px 0; font-size: 13px; }
.tip-dialog .tip-check { align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; padding: 10px 0; font-size: 15.5px; line-height: 1.4; }
.tip-dialog .tip-check[hidden] { display: none; }
.tip-dialog .tip-check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: -1px 0 0; border-radius: 6px; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--muted); background: transparent center / 18px no-repeat; }
.tip-dialog .tip-check input:checked { background-color: var(--r-btn); background-image: var(--r-chk); box-shadow: none; }
.tip-dialog .tip-check input:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
.tip-dialog .tip-contact { gap: 0; }
/* Linkveld (5 okt 2026): zelfde veld als naam en contact; verborgen bij "Klopt iets niet?"; fout = rode rand. */
.tip-dialog .tip-linkbox { display: flex; flex-direction: column; margin-top: 6px; }
.tip-dialog .tip-linkbox[hidden], .tip-dialog .tip-privacy-link[hidden] { display: none; }
.tip-dialog input[aria-invalid="true"] { border-color: var(--urgent); box-shadow: inset 0 0 0 1px var(--urgent); }
.tip-dialog .tip-privacy { margin: 14px 0 0; font-size: 14px; }
.tip-dialog .tip-foot { gap: 10px; margin: 0; padding: 12px 16px; }
.tip-dialog .tip-cancel, .tip-dialog .tip-send { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px;
  font-size: 15.5px; font-weight: 700; }
.tip-dialog .tip-cancel { flex: 1; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tip-dialog .tip-foot .tip-send { flex: 1.4; }
.tip-dialog .tip-send { background: var(--r-btn); color: var(--r-on-btn); }
.tip-dialog .tip-done:not([hidden]) { display: grid; justify-items: center; gap: 8px; padding: 28px 20px; }
.tip-dialog .tip-done-icon { width: 56px; height: 56px; margin: 0; font-size: 28px; font-weight: 800; background: #1d9e75; }
.tip-dialog .tip-done p { margin: 0 0 8px; font-size: 15px; }
.tip-dialog .tip-done .tip-send { min-width: 160px; }
/* Telefoon: het formulier vult het scherm, dus geen ronde hoeken en kop/voet vrij van notch en thuisbalk (de regels hierboven
   overschreven die uit de oude jas; eindcontrole 5 okt 2026). */
@media (max-width: 560px) {
  .tip-dialog { border-radius: 0; }
  .tip-dialog .tip-head { padding-top: max(12px, env(safe-area-inset-top)); }
  .tip-dialog .tip-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ==== Designsysteem v1, stap 6: bovenbalk, menu ≡, woonplaatskiezer, Ik hoor sirenes (5 okt 2026) ====
   Een nieuwe jas over de bovenbalk (desktop en mobiel), het menu ≡ (uitklapkaart mobiel, klein menu desktop), de
   woonplaatskiezer en "Ik hoor sirenes" met de uitlegballon (borden DS-18, DS-24 t/m DS-29 en DS-51 t/m DS-53, bron
   docs/design/canvas-sessie-b/gen_ds.py topbar, desktop_bar, desktop_states_board, menu_mobile_board, picker_board,
   siren_card, sirens_states_board, first_visit_board). Zelfde knoppen, teksten, volgorde, toetsenbord en animaties
   (logo-intro, ping, rondkijken, gevonden-ping, ademende stip, live-bolletje); alleen maten, letters en vlakken.
   Knoppen minstens 44 px, tekst minstens 13 px, vlakken in plaats van kaders. */

/* -- Bovenbalk: alles 44 px hoog (balk 65 px met de lijn), woonplaats als zachte pil, ≡ als zacht vierkant. -- */
.topbar { gap: 8px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.brand { gap: 8px; }
.place-btn { gap: 4px; min-height: 44px; padding: 0 10px; border: 0; background: var(--hover); font-size: 14px; font-weight: 700; }
.place-btn svg:first-child { color: var(--brw-t); }
.place-btn .chev { width: 16px; height: 16px; color: var(--muted); }
.place-btn:focus-visible, .menu-btn:focus-visible, .topnav > a:focus-visible, .topnav > button:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
.menu-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--hover); }
.menu-btn svg { width: 22px; height: 22px; }
@media (hover: hover) { .menu-btn:hover { background: var(--line); } }
.menu-btn[aria-expanded="true"] { background: var(--line); }
/* Live-status uiterst rechts vóór ≡ (DS-52): 13,5 px, bolletje 9 px; pulseren en de fouttoestanden blijven zoals ze waren. */
.live { gap: 8px; font-size: 13.5px; }
.live-dot { width: 9px; height: 9px; }

@media (min-width: 801px) {
  .topnav { gap: 2px; margin-left: 4px; }
  /* Kaart, ▶ 112 vandaag, Deze maand, Tip de redactie en Weergave als rustige knoppen van 44 px zonder rand (DS-51). */
  .topnav > a, .topnav > .tip-nav, .topnav > .theme-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px;
    border: 0; border-radius: 999px; background: none; color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
  .topnav > .nav-map[aria-current="page"] { background: var(--hover); color: var(--text); }
  .topnav > .theme-btn { color: var(--muted); }
  @media (hover: hover) {
    .topnav > a:hover, .topnav > .tip-nav:hover, .topnav > .theme-btn:hover { background: var(--hover); color: var(--text); }
    .topnav > .nav-map[aria-current="page"]:hover { background: var(--line); }
  }
  /* Feed: de enige gevulde knop in de balk (merkkleur), 44 px; teller "· n nieuw" oranje, "· n uitgelicht" rustig. */
  .topnav > .swipe-btn { min-height: 44px; padding: 0 16px 0 14px; gap: 6px; font-size: 14px; font-weight: 700; }
  .topnav > .swipe-btn svg { width: 16px; height: 16px; }
  .menu-btn { margin-left: 8px; }
}
/* In donker is de Feed-knop licht: dan het donkere oranje voor "· n nieuw" (zoals de zwevende knop op mobiel). */
@media (min-width: 801px) {
  :root[data-theme="dark"] .swipe-btn.has-new .feed-count { color: #b4530f; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swipe-btn.has-new .feed-count { color: #b4530f; } }
}

/* Smallere desktop (801–1279 px): alles blijft in de balk. Eerst valt de tekst van de live-status weg (al zo tot 1200 px),
   dan (≤ 1140 px) de tekst van de weergaveknop (icoon blijft, naam staat in aria-label en tooltip), dan (≤ 1040 px) het woordmerk (merkregel:
   compleet of helemaal weg), en de knoppen schuiven dichter op. De woonplaats krimpt met "…". */
@media (min-width: 801px) and (max-width: 1140px) {
  .topnav > .theme-btn { width: 44px; padding: 0; justify-content: center; }
  .topnav > .theme-btn > span { display: none; }
}
@media (min-width: 801px) and (max-width: 1040px) {
  .topbar .brand .word { display: none; }
  .topnav > a, .topnav > .tip-nav { padding: 0 10px; }
  .topnav > .swipe-btn { padding: 0 13px 0 11px; }
}
@media (min-width: 801px) and (max-width: 900px) {
  .topbar { gap: 4px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .topnav { margin-left: 0; }
  .topnav > a, .topnav > .tip-nav { padding: 0 8px; }
}
@media (min-width: 801px) {
  .place-btn { flex: 0 1 auto; min-width: 88px; max-width: 220px; }
  .topnav > * { flex: none; }
}
/* Staande iPad Air/Pro (820–834 px) en andere smalle computerschermen tot 960 px (8 okt 2026): de woonplaats werd "H…".
   De link "Kaart" valt weg (je staat al op de kaart; het logo gaat er ook heen) en de woonplaats houdt ruimte voor een
   gewone plaatsnaam; een heel lange naam krijgt nog steeds "…". */
@media (min-width: 801px) and (max-width: 960px) {
  .topnav > .nav-map { display: none; }
  .place-btn { min-width: 132px; }
}

/* -- Mobiel: [logo] [📍 Woonplaats ▾] … [≡], balk 65 px; beeldmerk 26 px en woordmerk 18 px zoals het bord. -- */
@media (max-width: 800px) {
  .topbar { gap: 7px; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); }
  .topbar .brand { gap: 7px; }
  .topbar .mark { width: 26px; height: 26px; }

  /* Menu ≡ (DS-18): kaart van 300 px rechtsboven onder de balk, scrolt zelf; de kaart eronder licht gedimd (alleen beeld:
     een tik ernaast gaat zoals eerder door en sluit het menu). */
  .topnav { z-index: 2; top: 100%; right: 8px; margin-top: 7px; width: 300px; max-width: calc(100vw - 16px); min-width: 0; max-height: calc(100dvh - 80px);
    gap: 0; padding: 12px 8px 14px; border: 0; border-radius: 14px; box-shadow: 0 18px 50px rgb(0 0 0 / 45%); }
  .topbar:has(.topnav.open)::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 100%; height: 100dvh; background: rgb(0 0 0 / 25%); pointer-events: none; }
  .topnav > a, .topnav > button, .topnav .nav-x > a:not(.nav-buurt) { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px;
    border: 0; border-radius: 999px; background: none; color: var(--text); font-size: 15.5px; font-weight: 600; text-align: left; text-decoration: none; filter: none; }
  .topnav > .nav-map[aria-current="page"] { background: var(--hover); }
  @media (hover: hover) { .topnav > a:hover, .topnav > button:hover, .topnav .nav-x > a:not(.nav-buurt):hover { background: var(--hover); } }
  .topnav > .swipe-btn:hover { filter: none; }
  .topnav > .swipe-btn svg { width: 16px; height: 16px; }
  .topnav > .swipe-btn .feed-count { opacity: 1; font-weight: 600; color: var(--muted); }
  .topnav > .swipe-btn.has-new .feed-count { color: var(--live-text); }
  .topnav > .theme-btn { color: var(--muted); }
  .topnav > .theme-btn svg { width: 16px; height: 16px; }
  .topnav .nav-buurt { padding: 4px 12px 10px; border-radius: 10px; background: none; }
  .topnav .nav-buurt b { font-size: 24px; color: var(--ink); }
  .topnav .nav-label { padding: 12px 12px 2px; }
  .topnav .nav-x > .nav-label:first-child, .topnav .nav-buurt + .nav-label { padding-top: 0; }
  .nav-sep { display: block; flex: none; height: 1px; margin: 8px 12px; background: var(--line); }
  .topnav .nav-112 { margin: 8px 12px 0; font-size: 15px; color: var(--text); }
}
.nav-sep { display: none; }
@media (max-width: 800px) { .topnav.open .nav-sep { display: block; } }
/* Kopjes ("Je buurt", "Bekijken", kolomtitels uit beheer) rustig: 13 px gedempt, zoals x-lbl op de borden. */
.nav-label { font: 600 13px/1.3 var(--font); color: var(--muted); }
.nav-buurt span { font-size: 13px; }
.nav-buurt b { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; }
.nav-112 b { color: var(--urgent-t); }
.nav-buurt:focus-visible, .nav-x > a:focus-visible, .nav-more > a:focus-visible { outline: 2px solid var(--politie); outline-offset: 1px; }

/* Desktop: klein menu van 260 px (DS-52). Je buurt groot, Veiligheidsregio's als knop, de kolomlinks per kopje achter
   elkaar met "·" (zoals op het bord), de 112-regel onderaan. */
@media (min-width: 801px) {
  /* Eigen rand en nooit zijwaarts scrollen: in donker viel het menu weg tegen de advertentiekolom eronder, en een
     te lange regel gaf een horizontale scrollbalk (melding eigenaar 6 okt 2026). */
  .nav-more:not([hidden]) { display: block; padding: 12px; border-radius: 12px; box-shadow: 0 16px 48px rgb(0 0 0 / 30%); border: 1px solid var(--line); overflow-x: hidden; }
  .nav-more .nav-buurt { display: flex; margin: 0 -6px 4px; padding: 2px 6px 6px; border-radius: 10px; background: none; }
  .nav-more .nav-buurt[hidden] { display: none; }
  .nav-more .nav-buurt b { font-size: 20px; color: var(--ink); }
  .nav-more > a.nav-regio { display: flex; align-items: center; min-height: 44px; margin: 0 -6px; padding: 0 6px; border-radius: 999px; font-size: 14.5px; }
  .nav-more > .nav-label { display: block; padding: 8px 0 2px; }
  /* inline-block: tussen twee links zonder spatie mag de regel dan in elke browser breken (Firefox en Safari braken
     tussen twee "nowrap"-links niet en zetten een hele rubriek op één regel; 6 okt 2026). */
  .nav-more > a:not(.nav-buurt):not(.nav-regio) { display: inline-block; max-width: 100%; padding: 0; border-radius: 0; font-size: 14.5px; font-weight: 500; line-height: 1.7; white-space: nowrap; }
  /* Het puntje achter de link (niet ervoor): bij een nieuwe regel begint die dan met een link, niet met "·". */
  .nav-more > a:not(.nav-buurt):not(.nav-regio):has(+ a)::after { content: "·"; display: inline-block; margin: 0 6px; color: var(--muted); text-decoration: none; }
  .nav-more > a:not(.nav-buurt):not(.nav-regio):hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
  .nav-more .nav-112 { margin: 10px 0 0; font-size: 14px; color: var(--text); }
}
/* Met een vinger (tablet in de desktopindeling): de kolomlinks als rijen van 44 px in plaats van achter elkaar. */
@media (min-width: 801px) and (pointer: coarse) {
  .nav-more > a:not(.nav-buurt):not(.nav-regio) { display: flex; align-items: center; min-height: 44px; line-height: 1.3; }
  .nav-more > a:not(.nav-buurt):not(.nav-regio):has(+ a)::after { content: none; }
}

/* -- Woonplaatskiezer (DS-24/25): kop 22 px, veld 48 px, chips en knoppen 44 px, suggesties als rijen met pin. -- */
.picker { background: rgb(0 0 0 / 45%); }
.picker-card { padding: 20px; border-radius: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / 35%); }
.picker-card h2 { margin: 0; font: 800 22px/1.2 var(--display); letter-spacing: -0.015em; }
.picker-close:not([hidden]) + h2 { padding-right: 52px; }
.picker-card > p { margin: 6px 0 12px; font-size: 15px; line-height: 1.45; }
.picker-close { top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; font-size: 18px; }
.picker-close[hidden] { display: none; }
@media (hover: hover) { .picker-close:hover { background: var(--line); } }
.picker-input { min-height: 48px; padding: 12px 14px; border-radius: 10px; background: var(--panel); font-size: 16px; line-height: 1.4; }
.picker-input:focus { outline: 0; border-color: var(--politie); box-shadow: 0 0 0 3px color-mix(in srgb, var(--politie) 25%, transparent); }
.picker-results { margin: 8px 0 0; }
.picker-results:has(button) { border: 1px solid var(--line); border-radius: 12px; }
.picker-results button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 0; font-size: 15px; line-height: 1.35; }
.picker-results li + li button { border-top: 1px solid var(--line); }
/* De eerste suggestie zacht gemarkeerd: dat is wat Enter kiest. */
.picker-results li:first-child button { background: var(--hover); }
.picker-results button:hover, .picker-results button:focus-visible { background: var(--line); }
.picker-results button:focus-visible { outline: 2px solid var(--politie); outline-offset: -2px; }
.picker-results button:disabled { opacity: 0.6; cursor: wait; }
.picker-results button svg { flex: none; width: 15px; height: 15px; color: var(--brw-t); }
.picker-results button b { font-weight: 700; }
.picker-results .pr-rest { color: var(--muted); }
.picker-results .picker-empty { padding: 14px 16px; border-radius: 14px; background: var(--hover); color: var(--text); font-size: 15px; }
#picker-quick { gap: 8px; margin: 14px 0; }
#picker-quick .chip { min-height: 44px; padding: 0 14px; font-size: 14.5px; font-weight: 700; }
.picker-nl { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--hover); color: var(--text); font-size: 15.5px; font-weight: 700; }
@media (hover: hover) { .picker-nl:hover { background: var(--line); } }
.picker-close:focus-visible, .picker-nl:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
/* Gebruik mijn locatie (12 okt 2026, canvas LK-*): boven het zoekveld, dezelfde rij als een suggestie met de rode pin. */
.picker-locate { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 2px 0 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.picker-locate[hidden], .picker-locate-note[hidden] { display: none; }
.picker-locate svg { flex: none; width: 17px; height: 17px; color: var(--brw-t); }
.picker-locate:disabled { cursor: wait; opacity: 0.75; }
@media (hover: hover) { .picker-locate:hover { background: var(--hover); } }
.picker-locate:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
.picker-card > p.picker-locate-note { margin: 0 0 14px; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.picker-card > p.picker-locate-note.picker-locate-err { padding: 10px 12px; border-radius: 10px; background: var(--hover); color: var(--text); text-align: left; }
@media (max-width: 800px) {
  .picker-card { padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .picker-close { top: 10px; right: 10px; }
  .picker.typing .picker-card { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 18px; border-radius: 0 0 20px 20px; }
}

/* -- Ik hoor sirenes (DS-26/27): knop 44 px met tekst (desktop) of rond 46 px (≤ 520 px), kaart met kruisje van 44 px,
   regels per melding van 48 px met dienstblokjes, "Laatste hier" als onderstreepte link, Ruimer zoeken als zachte knop. -- */
.leaflet-control.sirens-btn { gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0 !important; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 2px 10px rgb(0 0 0 / 28%); }
.leaflet-control.sirens-btn svg { width: 20px; height: 20px; }
.sirens-btn:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
/* -- Terug naar je buurt (besluit eigenaar 7 okt 2026, canvas TB-01–90): onder Ik hoor sirenes, zelfde maat en schaduw;
   rode pin zoals bij de plaatsknop bovenin. Computer: pil met tekst; ≤ 520 px: rondje van 46 px (zoals de sirene-knop). Alleen buiten je
   woonplaats zichtbaar (klasse .off); verschijnen en verdwijnen in 150 ms, met minder beweging meteen. -- */
.leaflet-control.home-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0 !important; border-radius: 999px !important;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); background: var(--panel); box-shadow: 0 2px 10px rgb(0 0 0 / 28%); cursor: pointer;
  transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
.leaflet-control.home-btn svg { width: 20px; height: 20px; color: var(--urgent); flex: none; }
.leaflet-control.home-btn.off { opacity: 0; transform: scale(.8); visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.home-btn:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
@media (hover: hover) { .leaflet-control.home-btn:hover { background: var(--hover); } }
@media (max-width: 520px) {
  .leaflet-control.home-btn { justify-content: center; width: 46px; min-width: 46px; height: 46px; padding: 0; border: 1px solid var(--line) !important; }
  .leaflet-control.home-btn span { display: none; }
  .leaflet-control.home-btn svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .leaflet-control.home-btn, .leaflet-control.home-btn.off { transition: none; } }
@media (max-width: 520px) {
  .leaflet-control.sirens-btn { width: 46px; min-width: 46px; height: 46px; min-height: 46px; padding: 0; border: 1px solid var(--line) !important; }
  .leaflet-control.sirens-btn svg { width: 24px; height: 24px; }
}
.sirens-card { padding: 14px 16px; border: 0; border-radius: 14px; box-shadow: 0 14px 40px rgb(0 0 0 / 35%); font-size: 15px; line-height: 1.45; }
.sirens-x { top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--hover); color: var(--text);
  font: 400 24px/1 var(--font); }
@media (hover: hover) { .sirens-x:hover { background: var(--line); } }
.sirens-x:focus-visible, .sirens-list button:focus-visible, .sirens-more:focus-visible, .sirens-last:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
/* 1. Rondkijken: logo van 52 px gecentreerd boven de tekst. */
.sirens-scan { flex-direction: column; gap: 10px; padding: 18px 0 8px; text-align: center; }
.sirens-scan p { font-size: 16px; }
.sirens-wait small, .sirens-title small { margin-top: 2px; font-size: 14px; }
/* Geen plek */
.sirens-card .sirens-where { margin: 4px 44px 4px 0; font-size: 17px; line-height: 1.35; }
.sirens-card .sirens-where-sub { margin: 0; font-size: 15px; }
/* 2. Gevonden / 3. Rustig: kop met logo 36 px naast het kruisje. */
.sirens-head { gap: 12px; margin: 0 44px 10px 0; }
.sirens-title { padding-right: 0; }
.sirens-title b { font-size: 17px; line-height: 1.3; }
.sirens-list { gap: 0; margin: 0 0 8px; }
.sirens-list button { gap: 10px; min-height: 48px; padding: 8px 4px; border-top: 1px solid var(--line); border-radius: 0; }
.sirens-list b { font-size: 15px; line-height: 1.35; }
.sirens-list small { font-size: 14px; }
.sirens-dots { gap: 3px; padding-top: 6px; }
.sirens-dots .dot { width: 10px; height: 10px; border: 0; border-radius: 2.5px; box-shadow: none; }
.sirens-last { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sirens-last:hover { background: none; text-decoration-color: var(--live-text); }
.sirens-card .sirens-empty { margin: 4px 0 10px; font-size: 14.5px; }
.sirens-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px;
  background: var(--hover); font-size: 15.5px; font-weight: 700; }
@media (hover: hover) { .sirens-more:hover { background: var(--line); } }
.sirens-card .sirens-hint { margin: 10px 0 0 !important; font-size: 14px; }
/* Uitlegballon (DS-28/29): vorm, plek, regels en pijltje waren al zoals het bord; alleen de knop in de knopmaat van het systeem. */
.sirens-hint-bubble button { font-size: 15.5px; }
.sirens-hint-bubble button:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
/* Tekstlaag van de home: dienstnaam in de tekstkleur van de dienst, net als in de lijst (5 okt 2026). */
.landing .bd-row.d-ambulance { --ct: var(--amb-t); }
.landing .bd-row.d-brandweer { --ct: var(--brw-t); }
.landing .bd-row.d-politie { --ct: var(--pol-t); }
.landing .bd-row.d-knrm { --ct: var(--knrm-t); }
.landing .item-time small { white-space: normal; } /* 'gisteren' of een datum mag onder de tijd doorlopen */
/* Sirenes-knop: rand terug op 521–800 px (stap 6 haalde hem daar per ongeluk weg; op desktop randloos zoals het bord). */
@media (min-width: 521px) and (max-width: 800px) { .leaflet-control.sirens-btn { border: 1px solid var(--line) !important; } }


/* Tikdoelen 44 px (akkoord eigenaar 5 okt 2026, voor/na in docs/design/tikdoelen/). "Details" in de lijstrij: het
   tikvlak groeit onzichtbaar (variant B), de rij blijft even lang en de tekst op zijn plek; boven overlapt het 6 px met de
   regel erboven. Logo in de leesbalk (sluit de pagina): 44 × 44 binnen de balk die al ≥ 52 px is. Bronlinks in het
   maandoverzicht van de app: zelfde 44 px als op de serverpagina's. */
.list .details-link { position: relative; padding: 12px 0; margin: -6px 0 -12px; }
.reader-brand { min-height: 44px; min-width: 44px; }
.ov-src a { display: inline-flex; align-items: center; min-height: 44px; }

/* Buurtmail stap 1 (5 okt 2026): aanmeldveld op de eindkaart van de feed ("Je bent bij"), altijd op donker vlak.
   Veld 48 px met 16 px tekst, knop 48 px in het oranje van de feedknoppen, kleine tekst in wit 70 %. */
.bm-slot { margin: 18px 0 4px; text-align: left; }
.bm-ask { margin: 0 0 10px !important; font: 800 18px/1.3 var(--display); color: #fff !important; text-align: center; }
.bm-dark .bm-form { margin: 0; }
.bm-dark .bm-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: rgb(255 255 255 / 85%); }
.bm-dark .bm-row { display: flex; flex-direction: column; gap: 8px; }
.bm-dark .bm-input { width: 100%; box-sizing: border-box; min-height: 48px; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 30%); background: rgb(255 255 255 / 10%); color: #fff; }
.bm-dark .bm-input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.bm-dark .bm-input[aria-invalid="true"] { border-color: #ff9d9d; }
.bm-dark .bm-btn { min-height: 48px; width: 100%; margin: 0; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; font-weight: 800; color: #0f1216; background: var(--live); border: 0; border-radius: 999px; cursor: pointer; }
.bm-dark .bm-btn:disabled { opacity: 0.6; cursor: progress; }
.bm-dark .bm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bm-dark .bm-fine { margin: 8px 0 0 !important; font-size: 13px !important; line-height: 1.45; color: rgb(255 255 255 / 70%) !important; }
.bm-dark .bm-fine a { color: rgb(255 255 255 / 85%); }
.bm-dark .bm-msg { margin: 8px 0 0 !important; font-size: 14px !important; font-weight: 700; color: #fff !important; }
.bm-dark .bm-msg.bm-error { color: #ffb3b3 !important; }
.bm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-slot .bm-done { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / 10%); text-align: left; }
.bm-slot .bm-done:focus { outline: none; }
.bm-slot .bm-done-title { margin: 0 0 4px !important; font: 800 17px/1.3 var(--display); color: #fff !important; }
.bm-slot .bm-done-text { margin: 0 !important; font-size: 14.5px !important; line-height: 1.45; color: rgb(255 255 255 / 85%) !important; }
.bm-slot:has(.bm-done) .bm-ask { display: none; } /* na aanmelden alleen de uitleg */
/* Lage schermen (iPhone SE e.d.): de eindkaart met aanmeldveld past dan net niet. Het vinkje-merk wordt kleiner (niet
   weg: niets mag verloren gaan) en het label staat alleen voor schermlezers (de vraag erboven zegt al wat er moet). */
@media (max-height: 740px) {
  .s-caughtup:has(.bm-slot:not([hidden])) .s-caught, .s-caughtup:has(.bm-slot:not([hidden])) .s-caught .mark { width: 40px; height: 40px; margin-bottom: 6px; }
  .s-caughtup:has(.bm-slot:not([hidden])) .s-divider-box { padding-top: 8px; padding-bottom: 8px; }
  .s-caughtup:has(.bm-slot:not([hidden])) .s-caughtup button, .s-caughtup:has(.bm-slot:not([hidden])) [data-act="close"] { margin-top: 10px; }
  .bm-dark .bm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .s-caughtup:has(.bm-slot:not([hidden])) .s-divider-box h2 { font-size: 23px; }
}

/* ---- Taalknop en eenmalige taalvraag (besluit eigenaar 6 okt 2026, lang.js) ----
   Mobiel: in het menu ≡ naast Weergave (zelfde knopvorm als de andere menuknoppen). Desktop: vanaf 1281 px als rustige
   knop in de balk (zoals Weergave); smaller staat hij in het kleine menu ≡, want dan is er in de balk geen ruimte. */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.lang-btn svg { width: 16px; height: 16px; flex: none; }
.lang-btn:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
@media (hover: hover) { .lang-btn:hover { color: var(--text); background: var(--hover); } }
.nav-more .lang-more { display: flex; width: 100%; min-height: 44px; padding: 0 12px; font-size: 13.5px; color: var(--text); }
@media (min-width: 801px) {
  .topnav > .lang-btn { min-height: 44px; padding: 0 13px; font-size: 14px; white-space: nowrap; }
}


@media (max-width: 800px) { .topnav > .lang-btn { color: var(--text); } .topnav > .lang-btn svg { color: var(--muted); } }

/* Onder de bovenbalk met het menu (1100) en de woonplaatskiezer (2500), boven het onderblad (1050) en de kaart. */
.lang-ask { position: fixed; z-index: 1090; top: calc(72px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); font-size: 14.5px; }
.lang-ask p { margin: 0; font-weight: 600; }
.lang-ask-btns { display: flex; gap: 6px; flex: none; }
.lang-ask button { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; }
.lang-ask .lang-yes { background: var(--ink); color: var(--panel); }
.lang-ask .lang-no { background: var(--hover); color: var(--text); }
.lang-ask button:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
/* Mobiel (tot 800 px, zelfde grens als app.js mobileMQ): de vraag stond over de zoomknop en de lagenknop (open punt na
   stap 1). Nu onder de kaartknoppen linksboven (zoom tot ±167 px) en rechtsboven (sirenes tot ±179 px), 6 okt 2026. */
@media (max-width: 800px) {
  .lang-ask { top: calc(190px + env(safe-area-inset-top)); }
}

/* Engels: de tekstlaag onder de lijst (homeLanding, src/site-pages.js) komt sinds stap 2 (6 okt 2026) onder /en in het
   Engels van de server; de regel die hem in het Engels verborg is weg. */

/* Teksten van nieuwsbronnen in het Engels (6 okt 2026, public/news-lang.js): klein, rustig label achter de kop of de bron.
   "Translated from Dutch" bij een vertaling, "(in Dutch)" als er (nog) geen is. Alleen in de Engelse versie. */
.news-lang { display: inline; margin-left: 2px; font-size: 12px; font-weight: 500; font-style: normal; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.r-lang { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.r-lang .news-lang { margin-left: 0; font-size: 13px; }
.r-orig summary { cursor: pointer; list-style: revert; }
.r-orig summary:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; border-radius: 4px; }
.r-orig p { margin: 6px 0 0; color: var(--text); }
.r-orig p.muted { color: var(--muted); font-size: 12.5px; }
.r-tl-text .news-lang { white-space: normal; }

/* ---- Volg op iPhone/iPad in Safari: uitleg "zet op beginscherm" (public/follow.js, 7 okt 2026). Zelfde jas als het
   tipformulier: wit vlak, grote kop, zacht blok voor de regel die ertoe doet, ronde knop van 44 px. Onderaan als blad op
   de telefoon (dichter bij de duim), in het midden op een groot scherm. ---- */
.ios-help {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  color: var(--text); background: var(--panel); border: 0; border-radius: 16px; box-shadow: var(--shadow);
}
.ios-help::backdrop { background: rgb(0 0 0 / 45%); }
.ios-help-in { padding: 20px 18px max(18px, env(safe-area-inset-bottom)); }
.ios-help h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 22px/1.2 var(--display); letter-spacing: -0.02em; }
.ios-help h2 svg { width: 22px; height: 22px; flex: none; color: var(--politie); }
.ios-help-intro { margin: 0 0 10px; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.ios-help.short .ios-help-intro { margin-top: 4px; font-weight: 700; color: var(--text); }
.ios-help-steps { list-style: none; counter-reset: stap; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ios-help-steps li { counter-increment: stap; position: relative; padding-left: 38px; font-size: 15.5px; line-height: 1.45; min-height: 28px; }
.ios-help-steps li::before {
  content: counter(stap); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 999px; background: var(--hover); font-weight: 800; font-size: 14px;
}
.ios-help-icon { display: inline-grid; place-items: center; vertical-align: -5px; margin-left: 6px; width: 24px; height: 24px; color: var(--politie); }
.ios-help-icon svg { width: 20px; height: 20px; }
.ios-help-already { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 15.5px; line-height: 1.45; background: color-mix(in srgb, var(--politie) 11%, var(--panel)); }
.ios-help-close {
  display: block; width: 100%; min-height: 48px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  color: var(--panel); background: var(--text); border: 0; border-radius: 999px;
}
@media (max-width: 560px) {
  .ios-help { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}

/* "Stuur me een testbericht" onder de Volg-knop (7 okt 2026): onderstreepte tekstknop, tikdoel 44 px hoog. */
.follow-test {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 0 0 -4px; vertical-align: middle;
  font: inherit; font-weight: 700; color: var(--pol-t); background: none; border: 0; border-radius: 6px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.follow-test:disabled { opacity: 0.6; cursor: wait; }
/* ---- KNMI-waarschuwingen (7 okt 2026, public/weather-bar.js) ----
   Rustig: een blokje in de kleur van de code (geel, oranje, rood uit het designsysteem), de tekst in gewone kleur, geen
   kader met streep links. Tikdoelen ≥ 44 px: de link beslaat de hele regel, het kruisje is 44 × 44. */
.knmi-host:empty { display: none; }
.knmi-bar { margin: 0 16px 8px; }
.knmi-bar[hidden], .knmi-w[hidden] { display: none; }
.knmi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.knmi-w { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; column-gap: 10px; min-height: 44px; padding-left: 12px; border-radius: var(--radius); background: var(--soft, var(--hover)); }
.knmi-blk { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--knmi-c, var(--ambulance)); flex: none; }
.knmi-geel { --knmi-c: var(--ambulance); }
.knmi-oranje { --knmi-c: var(--knrm); }
.knmi-rood { --knmi-c: var(--urgent); }
.knmi-link { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 0; color: var(--text); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.knmi-link:hover .knmi-line { text-decoration: underline; }
.knmi-line b { font-weight: 700; }
.knmi-steps { font-size: 12px; color: var(--muted); }
.knmi-x { width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; border-radius: var(--radius); }
.knmi-x:hover { color: var(--text); }
.knmi-x:focus-visible, .knmi-link:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
/* Feedkaart bij code oranje of rood */
.s-weather-inner .s-summary-kicker { display: flex; align-items: center; gap: 8px; }
.s-weather-inner .knmi-steps { font-size: 13px; }
/* Leespagina: weer op het moment van de eerste oproep */
.r-weather { margin: 8px 0 0; line-height: 1.45; }
/* 112 vandaag: "waarom zo druk?" in het slot */
.td-why { margin: 1.6cqh 0 0; font-size: min(13.5px, 3.3cqw); line-height: 1.4; color: rgb(255 255 255 / 88%); }
.td-why[hidden] { display: none; }

/* ---- Buurtalarm (7 okt 2026, canvas "Buurtalarm · ontwerp", borden BA-*; public/buurtalarm.js). Geen vinkjes (eigenaar:
   knopgrootte): segmentknop voor de afstand, keuzerijen van 64 px, de schakelaar uit de filters. Telefoon: blad onderaan;
   computer: venster van 440 px in het midden, meteen uitgeklapt. ---- */
.ba-sheet {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  color: var(--text); background: var(--panel); border: 0; border-radius: 16px; box-shadow: var(--shadow);
}
.ba-sheet::backdrop { background: rgb(0 0 0 / 45%); }
@media (max-width: 800px) {
  .ba-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: calc(100dvh - 48px); }
}
.ba-in { padding: 16px 16px max(18px, env(safe-area-inset-bottom)); }
.ba-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ba-head h2 { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 800 22px/1.2 var(--display); letter-spacing: -0.015em; }
.ba-bell { display: inline-grid; color: var(--urgent); }
.ba-bell svg { width: 20px; height: 20px; }
.ba-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--hover); color: var(--text); font: inherit; font-size: 17px; cursor: pointer; }
.ba-intro { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ba-label, .ba-h { display: block; margin: 16px 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.ba-input { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-transform: uppercase; }
.ba-input::placeholder { text-transform: none; color: var(--muted); }
.ba-input:focus-visible { outline: none; border-color: var(--politie); box-shadow: 0 0 0 3px color-mix(in srgb, var(--politie) 25%, transparent); }
.ba-help { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ba-map { position: relative; height: 118px; margin-top: 12px; border-radius: 12px; overflow: hidden; background: var(--hover); }
.ba-map[hidden] { display: none; }
.ba-map .leaflet-control-attribution { font-size: 10px; }
.ba-map-label { position: absolute; right: 8px; top: 8px; z-index: 500; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--panel); color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ba-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); } }
:root[data-theme="dark"] .ba-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
.ba-sum { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 12px; padding: 8px 14px; border: 0; border-radius: 12px; background: var(--hover); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ba-sum b { display: block; font-size: 15px; }
.ba-sum small { display: block; font-size: 14px; color: var(--muted); }
.ba-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; cursor: pointer; }
.ba-more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 4px; }
.ba-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.ba-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ba-row .ba-h { margin: 0; }
.ba-seg { display: flex; background: var(--hover); border-radius: 999px; }
.ba-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ba-seg button[aria-checked="true"] { background: var(--text); color: var(--panel); font-weight: 800; }
.ba-opts { display: grid; gap: 8px; }
.ba-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ba-opt[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.ba-opt b { display: block; font-size: 15.5px; }
.ba-opt small { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); }
.ba-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); }
.ba-opt[aria-checked="true"] .ba-dot { box-shadow: inset 0 0 0 7px var(--text); }
.ba-night { margin-top: 14px; align-items: flex-start; padding-top: 12px; }
.ba-night small, .ba-toggle small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.ba-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--urgent-t); background: color-mix(in srgb, var(--urgent) 10%, var(--panel)); }
.ba-err[hidden] { display: none; }
.ba-go, .ba-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; background: var(--ink); color: var(--panel); }
.ba-go .mark { width: 22px; height: 22px; }
.ba-go[disabled] { opacity: .85; cursor: progress; }
.ba-btn { background: var(--hover); color: var(--text); margin-top: 0; }
.ba-btn.ba-off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--urgent-t); }
.ba-actions { display: grid; gap: 8px; margin-top: 16px; }
.ba-actions .ba-go { margin-top: 0; }
.ba-foot { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }
.ba-foot a, .ba-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ba-link { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; cursor: pointer; }
/* Buurtalarm: "Ben je nu thuis? Gebruik je locatie" (12 okt 2026, canvas LK-*), onder de uitleg bij de postcode. */
.ba-here { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; text-decoration: none; }
.ba-here span { text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ba-here svg { flex: none; width: 16px; height: 16px; color: var(--brw-t); }
.ba-here:disabled { cursor: wait; opacity: 0.7; }
.ba-here-ok { color: var(--text); }
.ba-test { margin: 8px 0 0; font-size: 15px; }
.ba-paused { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sky); color: var(--ink); font-size: 15px; font-weight: 600; }
.ba-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 10px;
  width: min(420px, calc(100vw - 24px)); min-height: 52px; padding: 4px 6px 4px 16px; border-radius: 12px; background: #10151c; color: #eef0f2; font-size: 15px; box-shadow: 0 10px 30px rgb(0 0 0 / 35%); }
.ba-toast button { margin-left: auto; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 800; color: #ffb27a; cursor: pointer; }
/* Filters › Op je telefoon */
.ba-toggles { position: relative; }
.ba-toggle { align-items: flex-start; padding-top: 10px; }
.ba-tg-ic { display: inline-grid; vertical-align: -3px; margin-right: 6px; color: var(--urgent); }
.ba-tg-ic svg { width: 16px; height: 16px; }
.ba-set { justify-self: start; min-height: 44px; margin-top: -6px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.ba-set[hidden] { display: none; }
/* Lijstkop: knopje met de stand ("500 m"), rechts naast de titel */
.list-head { grid-template-columns: minmax(0, 1fr) auto auto; }
.list-right > .list-alarm { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--sky); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.list-right > .list-alarm svg { width: 15px; height: 15px; }
.list-right > .list-alarm[hidden] { display: none; }
@media (max-width: 800px) { .panel[data-sheet="peek"] .list-right > .list-alarm { display: none; } }
/* Menu */
.nav-alarm { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.nav-alarm:hover { background: var(--hover); }
.nav-alarm-ic { display: inline-grid; color: var(--urgent); }
.nav-alarm-ic svg { width: 16px; height: 16px; }
.nav-alarm-st { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--wa-bg, #e5f7ec); color: var(--wa-text, #0e5a2c); }
.nav-alarm-st[hidden] { display: none; }
.topnav > .nav-x > .nav-alarm { font-size: 15.5px; }
/* Sirenekaart: uitnodiging onderaan */
.ba-invite { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--hover); }
.ba-invite[hidden] { display: none; }
.ba-invite p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.4; }
.ba-invite-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; }
.ba-invite-btn svg { width: 17px; height: 17px; color: var(--urgent); }
/* Melding geopend vanuit een buurtalarm-bericht */
/* Buurtapp-link (12 okt 2026): balkje bovenaan het onderblad, "Buurtalarm voor 2011 AB? Aanzetten" (public/buurtalarm.js). */
.ba-balk { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 4px 2px 4px 12px; border-radius: 12px; background: var(--sky); color: var(--ink); }
.ba-balk .ba-bell { display: inline-flex; color: #d62839; }
.ba-balk .ba-bell svg { width: 20px; height: 20px; }
.ba-balk-t { display: grid; min-width: 0; flex: 1; font-size: 14.5px; line-height: 1.3; }
.ba-balk-t b { color: var(--text); }
.ba-balk-t small { color: var(--muted); font-size: 13px; }
/* Telefoon: op één regel, zodat de tabbladen in het ingeklapte blad zichtbaar blijven. */
@media (max-width: 800px) { .ba-balk-t small { display: none; } .ba-balk-t { font-size: 14px; } }
.ba-balk-go { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #d62839; color: #fff; font: 700 14.5px/1 var(--font, inherit); cursor: pointer; }
.ba-balk-x { flex: none; width: 36px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.ba-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 48px; margin: 0 0 12px; padding: 4px 6px 4px 12px; border-radius: 12px; background: var(--sky); color: var(--ink); font-size: 14.5px; }
.ba-strip b { color: var(--text); }
.ba-strip .ba-bell svg { width: 16px; height: 16px; }
.ba-strip-a { margin-left: auto; display: flex; }
.ba-strip-a button { min-height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-color: var(--live); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ba-seg button, .ba-opt { transition: none; } }

/* -- Duidelijkheid mobiel (8 okt 2026): eerste zin in de woonplaatskiezer en de rondleiding (coach.js). -- */
.picker-intro { display: none; margin: 0 0 12px; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--text); }
.picker.first .picker-intro { display: block; }
.coach-bubble { position: fixed; z-index: 4000; width: min(300px, calc(100vw - 24px)); box-sizing: border-box; padding: 14px 16px 12px; border-radius: 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 10px 32px rgb(0 0 0 / 35%); font-size: 16px; line-height: 1.45; }
.coach-bubble::after { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--panel); transform: rotate(45deg); }
.coach-bubble.above::after { bottom: -8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coach-bubble.below::after { top: -8px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.coach-bubble.right::after { left: -8px; top: var(--ay, 50%); margin: -7px 0 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); } /* naast de legenda (computer) */
.coach-step { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.coach-text { margin: 0 0 12px; }
.coach-actions { display: flex; gap: 8px; }
.coach-actions button { flex: 1; min-height: 44px; border-radius: 999px; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.coach-next { border: 0; background: var(--urgent); color: #fff; }
.coach-skip { border: 1px solid var(--line); background: transparent; color: var(--text); }
.coach-actions button:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
.coach-target { box-shadow: 0 0 0 4px rgb(255 138 61 / 75%) !important; border-radius: 999px; }
.legend.coach-target, .sheet-grip.coach-target { border-radius: 12px; } /* blok, geen ronde knop */
.legend .lg-h { font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.legend .lg-more { display: flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; color: var(--text); text-decoration: underline; text-decoration-color: var(--live); text-underline-offset: 3px; }
/* Legenda op de telefoon: groter en leesbaar (65+), boven de Overzicht-knop. De vier hulpdiensten in twee kolommen, zodat
   alles (ook de link naar de uitleg) op een telefoon van 760 px hoog past zonder te scrollen; scrollen kan nog als het
   scherm nog lager is. */
@media (max-width: 800px) {
  .legend.open { font-size: 14.5px; gap: 3px 12px; padding: 10px 14px 4px; border-radius: 14px; max-height: calc(100dvh - 330px); overflow-y: auto; position: relative; z-index: 1200; width: min(330px, calc(100vw - 24px)); grid-template-columns: 1fr 1fr; }
  .legend.open > * { grid-column: 1 / -1; }
  .legend.open > .lg:nth-child(-n + 7) { grid-column: auto; } /* sluitknop, overlast-blok, kop, dan de vier diensten (5 nov 2026: KNRM viel er al buiten, nu alle vier) */
  .legend .lg { gap: 10px; min-height: 25px; }
  /* Link naar de uitleg altijd in beeld (13 okt 2026, melding eigenaar iPhone 15 Pro Max: "de uitleg-link valt weg"): de
     legenda scrolt als het scherm te laag is, maar de link blijft onderaan staan. Hoogte nu vanaf de echte ruimte boven
     het onderblad (--legend-max, app.js), met de oude berekening als terugval. */
  .legend.open { max-height: var(--legend-max, calc(100dvh - 330px)); padding-bottom: 0; }
  .legend.open .lg-more { position: sticky; bottom: 0; margin: 2px -14px 0; padding: 0 14px; background: var(--panel); border-top: 1px solid var(--line); }
  @media (max-height: 780px) { .legend.open { font-size: 14px; } .legend .lg { min-height: 23px; } .legend .lg-h { margin-bottom: 3px; } }
  body:has(.legend.open) .feed-fab { opacity: 0; pointer-events: none; }
  body:has(.legend.open) .leaflet-control-zoom { visibility: hidden; } /* de i-knop schuift anders over de − */
}
/* Menu-item "Zo gebruik je mijnbuurt.nu" (8 okt 2026): zelfde rij als Buurtalarm, met een vraagteken in een rondje. */
.nav-help { text-decoration: none; }
.nav-help-ic { width: 18px; height: 18px; border-radius: 50%; place-items: center; background: var(--politie, #1f5bd8); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
/* Legenda op de computer (8 okt 2026): staat daar altijd open, dus kop en link compact (geen tikdoel van 44 px nodig) en
   lange woorden ("Met spoed (zwaailicht en sirene)") mogen afbreken; ongeveer even groot als vóór de kop en de link. */
@media (min-width: 801px) {
  .legend { max-width: 196px; }
  .legend .lg { align-items: center; line-height: 1.25; }
  .legend .lg-h { font-size: 12.5px; margin: 0 0 2px; }
  .legend .lg-more { min-height: 0; margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 12px; }
}
/* Bron als link in het verhaal (8 okt 2026): tekstkleur met een paarse onderstreping, de kleur van "In het nieuws". */
.r-lead a, .r-text a { color: inherit; text-decoration: underline; text-decoration-color: var(--news-t); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Inklapbaar menu (13 okt 2026, eigenaar): kolommen uit beheer als groepen die dicht beginnen, met een pijltje. Telefoon
   (in het uitklapmenu) en computer (het kleine menu ≡). */
.nav-fold { display: none; }
.topnav.open .nav-fold, .nav-more .nav-fold { display: block; border-top: 1px solid var(--line); }
.nav-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px; font: 700 14.5px/1.2 var(--font); color: var(--text); cursor: pointer; border-radius: 8px; }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); margin-right: 4px; transition: transform .15s; }
.nav-fold[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
@media (hover: hover) { .nav-fold > summary:hover { background: var(--hover); } }
.nav-fold > summary:focus-visible { outline: 2px solid var(--politie); outline-offset: 1px; }
.nav-fold-in { padding: 0 0 8px 8px; }
.nav-fold-in > a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; }
@media (hover: hover) { .nav-fold-in > a:hover { background: var(--hover); } }
.nav-more .nav-fold:last-of-type { border-bottom: 1px solid var(--line); }

/* Bovenbalk op de computer (13 okt 2026, eigenaar): Tip de redactie, taal en weergave rechts uitgelijnd; weergave alleen
   als icoon (naam in tooltip en aria-label), taal als bolletje met "EN"/"NL". Zo houdt de woonplaats ruimte. */
.lang-btn .lang-short { display: none; }
@media (min-width: 801px) {
  .topnav { flex: 1 1 auto; min-width: 0; }
  .topnav > .tip-nav { margin-left: auto; }
  .topnav > .theme-btn { width: 44px; padding: 0; justify-content: center; }
  .topnav > .theme-btn > span { display: none; }
  .topnav > .lang-bar { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .topnav > .lang-bar .lang-long { display: none; }
  .topnav > .lang-bar .lang-short { display: inline; }
  .topnav > .lang-bar svg { width: 16px; height: 16px; }
  @media (hover: hover) { .topnav > .lang-bar:hover { background: var(--hover); color: var(--text); } }
  .nav-more .lang-more { display: none; }
}
@media (min-width: 801px) and (max-width: 1040px) {
  .topnav > .lang-bar { display: none; }
  .nav-more .lang-more { display: flex; }
}

/* Linkerpaneel inklappen (13 okt 2026, alleen computer): lipje op de rand van het paneel. */
.panel-toggle { display: none; }
@media (min-width: 801px) {
  .layout { position: relative; }
  .panel-toggle { position: absolute; z-index: 1001; top: 50%; left: 400px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 4px; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--panel); color: var(--muted); box-shadow: var(--shadow); cursor: pointer; font: 600 13px/1 var(--font); }
  .panel-toggle svg { width: 18px; height: 18px; }
  .panel-toggle:hover { color: var(--text); }
  .panel-toggle:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
  .layout.panel-closed .panel { display: none; }
  .layout.panel-closed .panel-toggle { left: 0; padding: 0 10px 0 6px; color: var(--text); }
}

/* Terugblik "Afgelopen week" (variant B, akkoord eigenaar 22 okt 2026; ontwerp WK-20–27). */
.week-open { display: block; width: calc(100% - 32px); margin: 2px 16px 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; }
.week-open span { float: right; color: var(--muted); }
@media (hover: hover) { .week-open:hover { background: var(--hover); } }
.week-open[hidden], .week-top[hidden], .week-soort[hidden], .panel-quick .seg[hidden] { display: none; }
.week-top { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.week-top b { font-size: 16px; white-space: nowrap; }
.week-terug { flex: none; white-space: nowrap; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--hover); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.week-soort { flex-basis: 100%; width: 100%; display: grid; gap: 6px; margin-top: 8px; }
.week-uitleg { margin: 0; font-size: 13px; color: var(--muted); }
.week-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.week-chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.week-chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.panel-quick:has(> #week-soort:not([hidden])) { flex-wrap: wrap; }

/* Overlast per buurt (akkoord eigenaar 22 okt 2026; ontwerp BC-*): paars = meer, groenblauw = minder, grijs = gelijk; geen
   rood/groen (rood is de brandweer, groen leest als "veilig", rood-groen is voor ±1 op 12 mannen niet te onderscheiden).
   De vlakken zelf tekent canvas met deze kleuren (public/buurtcijfers.js leest de tokens). */
:root { --bc-veel-meer: #6b3fa0; --bc-meer: #a786cf; --bc-gelijk: #a3abb5; --bc-minder: #7fc7bb; --bc-veel-minder: #1f8a7a; }
.chip-layer.l-buurt { --c: #6b3fa0; }
.chip-layer.l-buurt .chip-ico { border-radius: 7px; }
.bc-filter-uitleg { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.bc-filter-uitleg[hidden] { display: none; }
.bc-sw, .bc-scale i { background: var(--bc-gelijk); }
.bc-veel-meer.bc-sw, .bc-scale .bc-veel-meer { background: var(--bc-veel-meer); }
.bc-meer.bc-sw, .bc-scale .bc-meer { background: var(--bc-meer); }
.bc-gelijk.bc-sw, .bc-scale .bc-gelijk { background: var(--bc-gelijk); }
.bc-minder.bc-sw, .bc-scale .bc-minder { background: var(--bc-minder); }
.bc-veel-minder.bc-sw, .bc-scale .bc-veel-minder { background: var(--bc-veel-minder); }
.bc-sw.bc-weinig, .bc-sw.bc-geen { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.bc-key { position: absolute; z-index: 800; left: 62px; right: 62px; top: 10px; max-width: 300px; margin-inline: auto; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 7px; box-shadow: 0 4px 14px rgb(0 0 0 / 0.18); font-size: 12px; }
.bc-key[hidden] { display: none; }
.bc-key-h { margin: 0 0 6px; } .bc-key-h b { font-size: 13.5px; }
.bc-key-top { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.bc-soort { flex: 1; min-width: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.bc-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--hover); color: var(--text); font-size: 14px; cursor: pointer; }
.bc-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 10px; }
.bc-scale i { border-radius: 2px; opacity: 0.85; }
.bc-scale-l { display: flex; justify-content: space-between; color: var(--muted); margin-top: 3px; }
.bc-periode { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.bc-zoom { margin-top: 5px; font-weight: 600; text-align: center; }
/* Politiecijfers per buurt: Overlast | Misdrijven (ontwerp 5 nov 2026). */
.bc-tema { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 9px; background: var(--hover); }
.bc-tema-b { font: inherit; font-size: 13.5px; font-weight: 700; border: 0; border-radius: 7px; padding: 6px 4px; min-height: 32px; background: transparent; color: var(--muted); cursor: pointer; }
.bc-tema-b[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); }
.bc-tellen { width: 100%; border-collapse: collapse; font-size: 12.5px; border-top: 1px solid var(--line); }
.bc-tellen th, .bc-tellen td { padding: 2px 4px 2px 0; text-align: left; font-weight: 400; vertical-align: top; }
.bc-tellen thead th { color: var(--muted); font-size: 11.5px; padding-top: 6px; }
.bc-tellen thead th:first-child { color: var(--text); font-weight: 700; font-size: 12.5px; }
.bc-tellen td { font-variant-numeric: tabular-nums; }
.bc-tellen td, .bc-tellen thead th:not(:first-child) { text-align: right; width: 40px; }
.bc-zoom[hidden] { display: none; }
.bc-popup .leaflet-popup-content { margin: 12px 14px; }
.bc-pop { display: grid; gap: 5px; font-size: 13px; line-height: 1.35; }
.bc-pop-h b { font-size: 15px; } .bc-pop-h small { color: var(--muted); font-size: 12px; }
.bc-kern { display: flex; align-items: center; gap: 10px; }
/* Ruimte voor het sluitkruisje rechtsboven, dat anders over de periode valt. */
.bc-pop-h, .bc-kern { padding-right: 30px; }
.bc-kern b { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.bc-kern span { color: var(--muted); font-size: 12px; line-height: 1.3; }
.bc-tr { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.bc-sw { flex: none; width: 14px; height: 14px; border-radius: 3px; }
/* .bc-pop p: Leaflet geeft alinea's in een popup 1,3em marge (de witruimte in het kaartje tot 6 nov 2026). */
.bc-pop p.bc-note { margin: 0; color: var(--muted); font-size: 11.5px; }
@media (max-width: 800px) {
  .bc-key-mini > :not(.bc-key-tema) { display: none; }
  .bc-key-mini .bc-key-tema { margin-bottom: 0; }
}
.lg-bc { display: none; } .bc-on .lg-bc { display: block; }
.lg-bc .bc-sw { width: 16px; height: 16px; opacity: 0.8; }
.lg-sub { font-size: 12px; color: var(--muted); margin: -2px 0 4px; }
.bc-on .legend.open { z-index: 900; }

/* Desktop: open filterpaneel past in de zijbalk en scrollt zelf (bug eigenaar 22 okt 2026: met "Overlast per buurt" aan
   werd het paneel hoger dan een laag laptopscherm, de hele pagina ging scrollen en de kaart schoof weg). */
@media (min-width: 801px) {
  .filters.open { position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; } /* relative: verborgen checkboxen (sr-only) blijven binnen het paneel */
  .panel:has(> .filters.open) { overflow: hidden; } /* tabs en lijstkop eronder duwen de pagina niet langer */
  .filters.open .filters-head { position: sticky; top: -14px; z-index: 2; margin: -14px -16px 0; padding: 14px 16px 10px; background: var(--panel); }
}

/* Landelijk nieuws in het Overzicht (23 okt 2026): merkblauw label en de bronnenregel ("NOS, AT5 en 3 andere bronnen"). */
.s-tag.s-tag-landelijk { background: #143b5c !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%); }
.s-bronnen { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 80%); }
/* Tabblad Nieuws: kop "Landelijk nieuws" met het merkblauwe blokje (23 okt 2026). */
.list > li.list-divider.list-landelijk { color: var(--ink); border-top: 0; }
.list > li.list-divider.list-landelijk::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--live); margin-right: 8px; vertical-align: 1px; }

/* Legenda dichtdoen (5 nov 2026, eigenaar: "in darkmode op mobiel niet duidelijk hoe je hem wegklikt"): een ✕ rechtsboven
   in de legenda (blijft staan als hij scrolt) en de i-knop wordt een opvallende ✕ zolang de legenda open is. Alleen waar de
   legenda achter de i-knop zit (telefoon en lage laptop); op de computer staat hij altijd open. Kleur in style.css i.p.v.
   inline in app.js, zodat de open stand hem kan overschrijven. */
html .legend-btn { background: var(--panel); color: var(--text); }
.legend .lg-close { display: none; }
@media (max-width: 800px), (min-width: 801px) and (max-height: 820px) {
  .legend.open .lg-close { display: grid; place-items: center; position: sticky; top: 0; z-index: 2; grid-column: 1 / -1; justify-self: end; width: 40px; height: 40px; margin: -4px -8px -37px 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--hover); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
  .legend.open .lg-h { padding-right: 38px; }
  html .legend-btn.is-open { background: var(--text); color: var(--panel); }
}

/* -- Oud en nieuw (11 nov 2026, plan oud en nieuw; bord PL-01, public/oud-en-nieuw.js) --
   Balk boven het onderblad in de nacht (zelfde vorm als de buurtalarm-balk), balkje ervoor en erna, meetstations fijnstof
   als gekleurd bolletje met het icoon en het woord van de schaal. Kleuren van de schaal staan in oud-en-nieuw-rules.js. */
.oen-banner, .oen-balk { display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 4px 2px 4px 12px; border-radius: 12px; background: var(--sky); color: var(--ink); }
.oen-b-ic { display: inline-flex; flex: none; color: var(--ink); }
.oen-b-ic svg { width: 22px; height: 22px; }
.oen-b-t { display: grid; min-width: 0; flex: 1; font-size: 14.5px; line-height: 1.3; }
.oen-b-t b { color: var(--text); }
.oen-b-t small { font-size: 13px; color: var(--muted); }
.oen-b-t small a { color: inherit; }
.oen-b-gewoon { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--btn); color: var(--on-btn); font: 700 14px/1 var(--font, inherit); cursor: pointer; }
.oen-balk-t { flex: 1; min-height: 40px; display: flex; align-items: center; font-weight: 700; font-size: 14.5px; color: var(--text); }
.oen-balk-x { flex: none; width: 36px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.oen-b-gewoon:focus-visible, .oen-balk-x:focus-visible, .oen-balk-t:focus-visible { outline: 2px solid var(--politie); outline-offset: 2px; }
#f-window [data-since] { white-space: nowrap; }
.fs-pin { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px 0 3px; border-radius: 12px; background: var(--fs, #9097a1); color: #10151c; box-shadow: 0 1px 4px rgb(0 0 0 / 35%); white-space: nowrap; font: 700 12px/1 var(--font, inherit); }
.fs-pin svg { width: 18px; height: 18px; }
.fs-pop p { margin: 6px 0 0; line-height: 1.4; }
.fs-pop .fs-ic { width: 18px; height: 18px; }
.fs-pop .fs-src { color: var(--muted); font-size: 13px; }
