/* Local fonts and assets only. The list does the work; details open on request. */
:root {
  --bg: #35164b;
  --surface: #47245d;
  --text: #faf0ff;
  --muted: #cfb9db;
  --line: #644574;
  --accent: #f5c1e1;
  --accent-text: #35164b;
  --focus: #f5c1e1;
  --ok: #8cd8a0;
  --error: #ff9daa;
  color-scheme: dark;
}
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 24px; }
header.site { padding: 20px 0 12px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; text-decoration: none; }
.brand picture { display: block; }
.brand img { display: block; width: 215px; height: auto; }
nav.site { display: flex; gap: 24px; font-size: .9rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a[aria-current], nav.site a:hover { color: var(--text); }
main { padding: 24px 0 48px; }
h1 { margin: 0 0 12px; font-size: clamp(1.65rem, 3.5vw, 2rem); font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
h2 { margin: 32px 0 12px; font-size: 1.2rem; font-weight: 650; }
h3 { font-size: 1rem; margin: 24px 0 8px; font-weight: 650; }
p { margin: 0 0 12px; }
.hero { padding: 8px 0 22px; }
.hero h1 { margin-bottom: 0; }
.hero p:last-child { color: var(--muted); margin: 0; }
.eyebrow { color: var(--muted); font-size: .8rem; margin: 0 0 8px; }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); }
.filters { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.nearby-button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #9576a5; border-radius: 4px; background: var(--surface); color: var(--text); cursor: pointer; }
.nearby-button:hover, .nearby-button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.nearby-button:disabled { opacity: .6; cursor: wait; }
.nearby-button[aria-busy="true"] svg { animation: nearby-pulse 1s ease-in-out infinite alternate; }
#nearby-status { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.catalog-title { margin: 24px 0 16px; font-size: 1.1rem; }
@keyframes nearby-pulse { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .nearby-button[aria-busy="true"] svg { animation: none; } }
.search-label { display: block; }
input[type="search"], input[type="text"], input[type="email"], textarea, select { width: 100%; min-width: 0; padding: 10px 12px; font: inherit; background: var(--surface); color: var(--text); border: 1px solid #9576a5; border-radius: 4px; }
input[type="search"] { background: var(--surface); }
input::placeholder, textarea::placeholder { color: #bba4c8; opacity: 1; }
summary { cursor: pointer; }
.filter-options { position: relative; font-size: .9rem; }
.filter-options > summary { padding: 12px 0; white-space: nowrap; color: var(--text); }
.filter-fields { position: absolute; right: 0; top: 100%; z-index: 2; width: min(310px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.filter-fields > label { display: grid; gap: 6px; margin-bottom: 16px; }
.filter-fields > label:last-child { margin-bottom: 0; }
.filter-fields .check { display: flex; align-items: flex-start; gap: 8px; }
.kind-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.kind-options legend { margin-bottom: 6px; font-weight: 600; }
.kind-options .check { padding: 5px 0; cursor: pointer; }
.kind-options { position: relative; margin-bottom: 16px; }
/* A floated legend sits inside the fieldset box, so the (i) beside it can be placed from the top. */
.kind-options legend { float: left; width: 100%; padding: 0 24px 0 0; }
.kind-options > label:first-of-type { clear: both; }
.kind-options > .hint { position: absolute; top: 0; right: 0; }
.check-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.hint { position: relative; }
.hint > summary { list-style: none; cursor: pointer; color: var(--muted); padding: 0 2px; line-height: 1.4; }
.hint > summary::-webkit-details-marker { display: none; }
.hint > summary:hover, .hint[open] > summary { color: var(--accent); }
.hint > p { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 260px; margin: 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: .78rem; line-height: 1.45; }
.check input { margin-top: 5px; accent-color: var(--accent); }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px 0 12px; color: var(--muted); font-size: .8rem; }
.list-meta p { margin: 0; }
.about-note { position: relative; max-width: 36rem; }
.about-note > summary { display: grid; place-items: center; width: 26px; height: 26px; color: var(--accent); font-size: 1.15rem; list-style: none; }
.about-note > summary::-webkit-details-marker { display: none; }
.about-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 3; width: min(25rem, calc(100vw - 36px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 18px; font-size: .9rem; }
.about-panel p { margin: 0 0 12px; }
.catalog { border-top: 1px solid var(--line); }
.results-map { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--surface); }
.map-heading h3 { margin: 0; font-size: .9rem; }
.map-toggle, .map-fit { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .8rem; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
#results-map { height: 440px; background: #261536; isolation: isolate; contain: layout paint; font: inherit; }
/* The bar under the map: drag it (or use the arrow keys) to make the map taller or lower. */
.map-resize { height: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface); cursor: ns-resize; touch-action: none; border-top: 1px solid var(--line); }
.map-resize::before { content: ""; width: 44px; height: 4px; border-radius: 2px; background: var(--muted); opacity: .7; }
.map-resize:hover::before, .map-resize:focus-visible::before { background: var(--accent); opacity: 1; }
.map-footer { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.map-info { flex: 1; min-width: 0; }
.map-info > summary { color: var(--accent); font-size: .8rem; }
.map-info > p { font-size: .75rem; color: var(--muted); margin: 10px 0 0; max-width: 38rem; }
.map-info .map-legend { padding: 8px 0 0; }
.map-fit { padding: 0; white-space: nowrap; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 4px 16px 12px; font-size: .75rem; color: var(--muted); }
.map-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend img { object-fit: contain; }
.piet-marker { display: grid; place-items: center; border: 0; background: transparent; touch-action: none; user-select: none; }
.piet-single { position: relative; display: inline-block; width: 40px; height: 42px; }
.piet-single img { width: 34px; height: 40px; margin-left: 3px; object-fit: contain; pointer-events: none; }
.piet-combination { position: relative; display: inline-flex; align-items: center; height: 42px; }
.piet-combination img { flex: none; width: 34px; height: 40px; object-fit: contain; pointer-events: none; }
.piet-combination img + img { margin-left: -11px; }
.map-legend .piet-combination { height: 28px; }
.map-legend .piet-combination img { width: 20px; height: 24px; }
.map-legend .piet-combination img + img { margin-left: -6px; }
.piet-cluster { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 5px; background: var(--accent); color: var(--accent-text); border: 3px solid #fff8; border-radius: 50%; font-size: .85rem; font-weight: 750; box-shadow: 0 2px 7px #160c2780; }
.piet-none { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--muted); background: var(--surface); color: var(--text); border-radius: 50%; }
.piet-marker:hover, .piet-marker:focus-visible { z-index: 1000 !important; /* Keep the hovered marker above its neighbours. */ }
#results-map .leaflet-control-zoom a { background: var(--surface); color: var(--text); border-color: var(--line); }
#results-map .leaflet-control-attribution { background: #261536e8; color: var(--muted); font-size: .6rem; }
#results-map .leaflet-control-attribution a { color: var(--muted); }
#results-map .leaflet-popup-content-wrapper, #results-map .leaflet-popup-tip { background: var(--surface); color: var(--text); }
#results-map .leaflet-popup-content { font: .85rem/1.45 system-ui, sans-serif; margin: 14px 24px 14px 16px; }
#results-map .leaflet-popup-close-button { color: var(--text); }
#results-map .intocht-popup a { color: var(--accent); }
.intocht-popup h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text); }
.intocht-popup article + article { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.intocht-popup .popup-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 10px; }
.intocht-popup .popup-facts dt { color: var(--muted); }
.intocht-popup .popup-facts dd { margin: 0; overflow-wrap: anywhere; }
.intocht-popup .row-facts { margin: 12px 0; gap: 8px; }
.intocht-popup .place-link { font-size: .8rem; }
#results-map .map-marker-label { display: none; position: absolute; top: 43px; left: 50%; transform: translateX(-50%); max-width: 180px; overflow: hidden; text-overflow: ellipsis; padding: 4px 6px; border-radius: 3px; white-space: nowrap; background: #261536df; color: var(--text); font: .7rem/1.3 system-ui, sans-serif; pointer-events: none; }
#results-map.map-show-labels .map-marker-label { display: block; }
@media (max-width: 575px) {
  #results-map { height: clamp(400px, 60svh, 500px); }
  .map-footer { padding: 10px 12px; }
  .map-heading { padding: 10px 12px; }
  #results-map .map-marker-label { max-width: 120px; padding: 3px 5px; }
  .map-toggle { display: grid; place-items: center; width: 28px; height: 28px; font-size: 0; text-decoration: none; }
  .map-toggle::after { content: '⌃'; font-size: 1.15rem; }
  .map-toggle[aria-expanded="false"]::after { content: '⌄'; }
  .map-legend { gap: 6px 12px; padding: 6px 12px 12px; }
}
#empty { margin: 24px 0 32px; }
.intocht { border-bottom: 1px solid var(--line); }
/* Rows out of view are laid out only when they scroll near: the long list costs little until it is used. */
.intocht { content-visibility: auto; contain-intrinsic-size: auto 72px; }
.intocht > summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.2fr) 12px; align-items: center; gap: 16px; list-style: none; padding: 16px 0; }
.intocht > summary::-webkit-details-marker { display: none; }
.intocht > summary::after { content: "⌄"; color: var(--muted); justify-self: end; align-self: center; }
.intocht[open] > summary::after { content: "⌃"; }
.intocht > summary:hover .row-place strong { color: var(--accent); }
.row-place { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-name { min-width: 0; }
.row-piet { flex: none; display: inline-flex; align-items: center; min-width: 30px; }
.row-piet img { width: 30px; height: 36px; object-fit: contain; }
.row-piet img + img { margin-left: -10px; }
/* Older piet evidence is drawn beside the current answer; "Alleen actuele informatie" picks one. */
.intocht:not(.shows-old) [data-when="old"], .intocht.shows-old [data-when="now"] { display: none !important; }
.row-place strong { font-weight: 600; line-height: 1.35; display: block; }
.row-province { color: var(--muted); font-size: .75rem; }
.when { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { font-size: .83rem; color: var(--muted); line-height: 1.45; }
.badge-known { color: var(--text); }
.row-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .5fr); gap: 24px; margin: 0 0 16px; padding: 20px 22px; background: var(--surface); border-radius: 4px; border-left: 2px solid #a97bbd; font-size: .9rem; }
.row-facts { margin: 0; display: grid; gap: 16px; }
.row-facts dt { margin-bottom: 3px; font-size: .75rem; color: var(--muted); }
.row-facts dd { margin: 0; }
.row-actions { border-left: 1px solid var(--line); padding-left: 24px; align-self: stretch; }
.place-link { display: inline-block; text-decoration: none; font-weight: 550; }
.place-link:hover { text-decoration: underline; }
.evidence { margin-top: 12px; }
.evidence > summary { color: var(--accent); font-size: .85rem; }
.explanation { margin: 16px 0 0; }
.sources { padding-left: 20px; overflow-wrap: anywhere; }
.sources li { margin: 0 0 12px; }
.sources p { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.province-nav { margin-top: 24px; font-size: .9rem; }
.province-nav > nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0 0; }
.breadcrumbs { margin-bottom: 24px; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); margin-right: 8px; }
.answer, .event, .piet-years, .evidence-full, .notice { max-width: 46rem; }
.answer { margin: 20px 0 28px; }
.answer .lead { margin: 0; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.evidence-full { margin-top: 36px; padding: 4px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.evidence-full > h2 { margin-top: 20px; }
.notice { padding: 16px 0; margin-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.notice p:last-child { margin-bottom: 0; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 4px; width: min(46rem, calc(100% - 32px)); max-height: calc(100% - 40px); padding: 24px; }
dialog::backdrop { background: rgb(0 0 0 / .4); }
dialog h2 { margin-top: 16px; }
.dialog-close { display: block; margin-left: auto; }
button { font: inherit; border: 1px solid var(--accent); border-radius: 4px; padding: 9px 16px; background: var(--accent); color: var(--accent-text); cursor: pointer; }
button:disabled { opacity: .6; cursor: progress; }
.dialog-close { background: none; color: var(--accent); border: 0; padding: 0; font-size: .9rem; }
footer.site { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: .8rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a { color: var(--muted); }
.about-updated { font-weight: 600; }
.skip { position: fixed; top: -10rem; left: 16px; background: var(--surface); padding: 12px; z-index: 10; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
form.contact { display: grid; gap: 20px; margin-top: 28px; max-width: 42rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.hint, .privacy { color: var(--muted); font-size: .9rem; }
.privacy { max-width: 42rem; }
textarea { min-height: 10rem; resize: vertical; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { margin: 0; min-height: 1.6em; }
.status[data-kind="ok"] { color: var(--ok); }
.status[data-kind="error"] { color: var(--error); }
.status[data-kind="busy"] { color: var(--muted); }
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  header.site { padding: 16px 0 8px; }
  .brand img { width: 165px; }
  nav.site { gap: 16px; font-size: .8rem; }
  main { padding-top: 20px; }
  .hero { padding-top: 0; }
  .intocht > summary { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) 10px; gap: 3px 16px; padding: 14px 0; }
  .row-place { grid-column: 1; grid-row: 1; }
  .when { grid-column: 1; grid-row: 2; }
  .badge { grid-column: 2; grid-row: 1 / 3; font-size: .8rem; }
  .intocht > summary::after { grid-column: 3; grid-row: 1 / 3; }
  .row-province { display: none; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .row-detail { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .row-actions { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .filter-fields { width: min(290px, calc(100vw - 36px)); }
}
