/*
 * Site-specific styles on top of theme.css + kit.css + signature.css
 * (content-site standard, zonderslop kit 5d435f2). Only --zs-* / --gk-* tokens.
 */
h1 { font-size: clamp(1.8rem, 2.4vw + 1.2rem, 2.8rem); margin: .7em 0 .4em; }
h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.8rem); margin: 1.6em 0 .6em; }
h3 { margin: 1.2em 0 .4em; }
.zs-head h2, .zs-method h2, .zs-footer h2 { margin-top: 0; }
table { border-collapse: collapse; width: 100%; }
small, .small { font-size: .88rem; color: var(--zs-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--zs-wrap, 76rem); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }
.lead { font-size: 1.12rem; max-width: 62ch; }
main { padding-bottom: 3rem; }
.page-home main { padding-bottom: 0; }

.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo svg { color: var(--zs-highlight); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1rem 0 0; font-size: .88rem; color: var(--zs-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .25rem; }

/* Search with autocomplete */
.search { position: relative; display: flex; gap: .5rem; max-width: 40rem; margin: 1rem 0 1.25rem; }
.zs-maphero__card .search { margin: 0; }
.search input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .65rem .75rem; min-height: 2.9rem; border: 1px solid var(--zs-ink); border-radius: var(--zs-radius-sm); background: #fff; color: var(--zs-ink); }
.search input:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 1px; }
.suggestions { position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; margin: .25rem 0 0; padding: .25rem 0; list-style: none; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); box-shadow: 0 8px 24px rgb(16 38 47 / .15); }
.suggestions li { padding: .5rem .9rem; cursor: pointer; }
.suggestions li[aria-selected=true], .suggestions li:hover { background: var(--zs-surface-alt); }
.suggestions small { margin-left: .4rem; }

/* Map */
.map-shell { position: relative; margin: 1rem 0; }
.map { height: var(--map-h, min(68vh, 620px)); border-radius: var(--zs-radius); border: 1px solid var(--zs-line); background: var(--zs-surface-alt); }
.zs-maphero .map-shell { margin: 0; height: 100%; }
.zs-maphero .map { border: 0; border-radius: 0; }
.map-legend { position: absolute; z-index: 500; right: .75rem; bottom: 1.5rem; }
.layer-control { background: var(--zs-surface); padding: .4rem .5rem; border-radius: var(--zs-radius-sm); box-shadow: 0 1px 4px rgb(16 38 47 / .3); font-size: .85rem; }
.layer-control select { font: inherit; padding: .2rem; }
.leaflet-container { font-family: var(--zs-font-body); }
.popup-values { margin: .4rem 0; font-size: .85rem; }
.popup-values td { padding: 2px 6px 2px 0; }
.popup-values .chip { min-width: 46px; }

/* Noise colours are data: only on the map, chips, scale and band labels. */
.q1 { background: var(--gk-q1); } .q2 { background: var(--gk-q2); } .q3 { background: var(--gk-q3); } .q4 { background: var(--gk-q4); }
.q5 { background: var(--gk-q5); } .q6 { background: var(--gk-q6); } .q7 { background: var(--gk-q7); }
.chip { display: inline-block; padding: 2px 8px; border-radius: var(--zs-radius-sm); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; color: var(--zs-ink); box-shadow: inset 0 0 0 1px rgb(24 36 46 / .18); }
.chip.q6, .chip.q7 { color: #fff; }

/* Address result */
.lookup-result { margin: 1.5rem 0; align-items: start; }
.lookup-sources-title { margin: 0 0 .25rem; font-size: 1.25rem; }
.lookup-night-title { font-size: 1.05rem; }
.noise-table th, .noise-table td { text-align: left; padding: .45rem .4rem .45rem 0; border-bottom: 1px solid var(--zs-line); font-size: .95rem; }
.noise-table th { font-weight: 600; }
.noise-table td { white-space: nowrap; }
.noise-table td:last-child { white-space: normal; }
.notice { background: var(--zs-highlight); color: var(--zs-highlight-ink); padding: .6rem .9rem; border-radius: var(--zs-radius-sm); }
.callout { background: var(--zs-surface-alt); border-radius: var(--zs-radius); padding: .25rem 1.25rem .5rem; margin: 1.5rem 0; }
.callout h2 { margin-top: .8em; }

/* Lists */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .5rem 2.5rem; }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem 1rem; }
.link-grid small { display: block; }
.ranked { padding-left: 1.4em; }
.ranked li { padding: .2rem 0; }
.ranked span { color: var(--zs-muted); font-variant-numeric: tabular-nums; float: right; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .9rem; }
.cards a { display: block; height: 100%; padding: 1rem 1.1rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); text-decoration: none; color: var(--zs-ink); }
.cards a:hover { border-color: var(--zs-brand); color: var(--zs-ink); }
.cards strong { display: block; margin-bottom: .25rem; font-family: var(--zs-font-display); color: var(--zs-brand); }
.cards span { font-size: .92rem; color: var(--zs-muted); }
.az { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.az a { padding: .1rem .5rem; border: 1px solid var(--zs-line); border-radius: var(--zs-radius-sm); text-decoration: none; background: var(--zs-surface); }

/* Guides */
.prose p, .prose li { max-width: 68ch; }
.prose table { margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--zs-line); padding: .4rem .5rem; text-align: left; }

.affiliate { border: 1px solid var(--zs-line); background: var(--zs-surface); border-radius: var(--zs-radius); padding: .75rem 1.1rem; margin: 1.5rem 0; }
.affiliate-title { font-weight: 700; margin: 0 0 .25rem; }
.affiliate-note { font-size: .8rem; color: var(--zs-muted); margin: .25rem 0 0; }
.ad-slot { min-height: 280px; margin: 1.5rem 0; }

@media (max-width: 37.5rem) {
    .search { flex-direction: column; }
    .map-legend { left: .5rem; right: auto; bottom: 1.1rem; }
    .zs-sources tbody th { white-space: normal; width: auto; }
}

/* Address result on phones: big number, then per source, then night values. */
@media (max-width: 55.99rem) {
    .lookup-result > div:first-child { display: contents; }
    .lookup-result > div:first-child > :not(figure) { order: 2; }
    .lookup-result > div:last-child { order: 1; }
    .lookup-night-title { margin-bottom: 0; }
}
