/* Het ZwemKompas: public site styles.
   Palette: zand (beige) als ondergrond, Delfts blauw voor tekst en links, oker als enige accent voor acties.
   Opvallende elementen: de stadsdelenkaart in de hero en de gestikte diplomabadges. */
:root {
  --bg: #f4eee3;            /* zand */
  --surface: #fbf8f2;       /* gebroken wit */
  --surface-2: #ece3d3;     /* donkerder zand */
  --ink: #1b2f63;           /* Delfts blauw, hoofdtekst */
  --ink-2: #44547e;
  --ink-3: #737a8f;
  --line: #e2d8c6;
  --line-strong: #cbbb9f;
  --water: #2a4a9e;         /* links en blauwe knoppen */
  --water-ink: #fbf8f2;
  --water-deep: #1b2f63;
  --shallow: #ebe2d1;       /* zachte zandtint voor hover en labels */
  --buoy: #e2a93b;          /* oker accent */
  --buoy-soft: #f6e8c8;
  --buoy-ink: #2b2208;
  --ok: #2f6f4f;
  --ok-soft: #e2eedf;
  --warn: #93561a;
  --warn-soft: #f6e4cc;
  --patch-a: #2a4a9e;
  --patch-b: #3b7a63;
  --patch-c: #c47c22;
  --map-land: #e8dcc6;
  --map-land-hover: #e2a93b;
  --map-water: #b7c8ea;
  --footer-bg: #e7dcc8;
  --shadow: 0 1px 2px rgba(27, 47, 99, 0.06), 0 6px 18px -8px rgba(27, 47, 99, 0.2);
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-s: 8px;
  --wrap: 1160px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
/* Bewust één thema: altijd zand met blauwe letters, ook als het apparaat in donkere modus staat. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--water); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--water-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-200%); background: var(--buoy); color: var(--buoy-ink); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { transform: none; }

/* ---------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand > span { white-space: nowrap; }
.brand-het { font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--shallow); color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; }
.menu-toggle summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; position: relative; }
  .menu-toggle[open] .nav-mobile { display: block; }
  .nav-mobile { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; min-width: 240px; }
  .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
  .nav-mobile a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .nav-mobile a:hover { background: var(--shallow); }
}

/* ---------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--buoy); color: var(--buoy-ink); border-color: var(--buoy); }
.btn-primary:hover { color: var(--buoy-ink); filter: brightness(0.96); }
.btn-water { background: var(--water); color: var(--water-ink); }
.btn-water:hover { color: var(--water-ink); background: var(--water-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); background: var(--shallow); }
.btn-small { padding: 7px 14px; font-size: 0.92rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
label { font-weight: 600; }
select, input[type='text'], input[type='search'], input[type='email'], input[type='number'], input[type='url'], input[type='date'], input[type='password'], textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; width: 100%; max-width: 100%;
}
select:focus, input:focus, textarea:focus { border-color: var(--water); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--water) 25%, transparent); }

/* ---------- hero */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 56px 48px; }
.hero h1 { margin-bottom: 0.35em; max-width: 13ch; }
.hero .lede { margin-bottom: 1.4em; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); max-width: 560px; }
.search-form label { display: block; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink-2); }
.search-form .btn { height: 48px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.95rem; }
.hero-facts strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 32px; gap: 28px; }
  .search-form { grid-template-columns: 1fr; }
}

/* district map */
.district-map { width: 100%; max-width: 520px; justify-self: center; }
.district-map svg { width: 100%; height: auto; display: block; }
.district-map .water { fill: var(--map-water); }
.district-map .river { fill: none; stroke: var(--map-water); stroke-width: 10; stroke-linecap: round; pointer-events: none; }
.district-map a .tile { fill: var(--map-land); stroke: var(--surface); stroke-width: 3; transition: fill 0.15s; }
.district-map a:hover .tile, .district-map a:focus .tile { fill: var(--map-land-hover); }
.district-map a:focus { outline: none; }
.district-map a:focus-visible .tile { stroke: var(--ink); }
.district-map text { font-family: var(--font-display); fill: var(--ink); pointer-events: none; }
.district-map .t-name { font-size: 15px; font-weight: 700; }
.district-map .t-count { font-size: 17px; font-weight: 750; fill: var(--water-deep); }
.district-map .t-water { font-size: 12px; font-style: italic; fill: var(--water); letter-spacing: 0.06em; }
.district-map figcaption { text-align: center; font-size: 0.9rem; color: var(--ink-3); margin-top: 6px; }

/* lane rope divider: the one decorative device, used once per page at most */
.lane-rope { height: 8px; background: repeating-linear-gradient(90deg, var(--water) 0 18px, transparent 18px 24px, var(--buoy) 24px 42px, transparent 42px 48px); border-radius: 999px; opacity: 0.8; }

/* ---------- sections */
.section { padding-block: 56px; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* diploma patches: stitched cloth badges */
.patch { --c: var(--patch-a); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; position: relative; flex: none; }
.patch::after { content: ''; position: absolute; inset: 3px; border: 1.5px dashed rgba(255, 255, 255, 0.75); border-radius: 5px; }
.patch.b { --c: var(--patch-b); }
.patch.c { --c: var(--patch-c); }
.patch.off { background: transparent; color: var(--ink-3); border: 1.5px dashed var(--line-strong); }
.patch.off::after { display: none; }
.patch.lg { width: 76px; height: 76px; font-size: 2.4rem; border-radius: 16px; }
.patch.lg::after { inset: 6px; border-width: 2px; border-radius: 11px; }
.patches { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; flex: none; }
.diploma-col { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.diploma-col h3 { margin-bottom: 0.3em; }
.diploma-col p { color: var(--ink-2); margin: 0; }

.type-col { border-top: 3px solid var(--buoy); padding-top: 14px; }
.type-col .stat { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4em; }
.type-col p { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
a.chip:hover { background: var(--shallow); color: var(--ink); }
.chip .count { color: var(--ink-3); font-weight: 500; }

.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.link-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.link-list a strong { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.link-list a span { color: var(--ink-2); font-size: 0.98rem; }
.link-list a:hover strong { color: var(--water); }

.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.principles li { padding-left: 16px; border-left: 3px solid var(--buoy); }
.principles strong { display: block; }

/* ---------- page header & breadcrumbs */
.page-head { padding-block: 32px 8px; }
.crumbs { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }

/* ---------- results layout */
.results { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 72px; }
@media (max-width: 960px) { .results { grid-template-columns: 1fr; gap: 16px; } }
.filters { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters details > summary { display: none; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; padding: 0; }
.filters .opt { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 3px 0; cursor: pointer; }
.filters .opt input { width: 18px; height: 18px; accent-color: var(--water); flex: none; }
.filters .opt .count { margin-left: auto; color: var(--ink-3); font-size: 0.88rem; }
.filters .reset { font-size: 0.92rem; }
@media (max-width: 960px) {
  .filters { position: static; padding: 0; border: 0; background: transparent; }
  .filters details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .filters details > summary { display: flex; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; }
  .filters details > summary::-webkit-details-marker { display: none; }
  .filters details > div { padding: 0 16px 16px; }
}
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar .count { font-weight: 700; }
.results-bar select { width: auto; padding: 8px 10px; }
.result-list { display: grid; gap: 14px; }
.group-label { font-family: var(--font-display); font-weight: 700; color: var(--ink-2); font-size: 0.95rem; margin: 10px 0 2px; }
.empty-state { padding: 28px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--ink-2); }

/* ---------- school card */
.school { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 14px; }
.school.is-sponsored { border: 2px solid var(--buoy); }
.school-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.school h3 { margin: 0 0 4px; font-size: 1.22rem; }
.school h3 a { color: var(--ink); text-decoration: none; }
.school h3 a:hover { color: var(--water); text-decoration: underline; }
.where { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.area-tag { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--water); background: var(--shallow); padding: 2px 9px; border-radius: 999px; margin-right: 4px; }
.sponsor-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--buoy-ink); background: var(--buoy-soft); border: 1px solid var(--buoy); padding: 2px 9px; border-radius: 999px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts dd small { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.8rem; }
.unknown { color: var(--ink-3); font-weight: 500; font-style: italic; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.school-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.9rem; }
.checked { color: var(--ink-3); }
.cmp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.cmp input { width: 18px; height: 18px; accent-color: var(--water); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.status-pill.ok { color: var(--ok); background: var(--ok-soft); }
.status-pill.warn { color: var(--warn); background: var(--warn-soft); }
.status-pill.info { color: var(--water-deep); background: var(--shallow); }

/* compare tray */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); color: var(--ink); border-top: 2px solid var(--buoy); box-shadow: 0 -6px 20px -12px rgba(27, 47, 99, 0.35); padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.compare-tray .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0; }
.compare-tray .names { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-tray button.link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
body.has-tray { padding-bottom: 76px; }

/* ---------- school page */
.school-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 24px; }
@media (max-width: 960px) { .school-hero { grid-template-columns: 1fr; } }
.school-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: none; }
.photo-ph { aspect-ratio: 16 / 6; border-radius: var(--radius); background:
  repeating-linear-gradient(0deg, transparent 0 34px, var(--line) 34px 36px),
  repeating-linear-gradient(90deg, transparent 0 34px, var(--line) 34px 36px),
  var(--surface-2);
  display: grid; place-items: center; color: var(--water); font-family: var(--font-display); font-weight: 750; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.03em; max-width: 100%; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.keybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.keybox dl { margin: 0; display: grid; gap: 10px; }
.keybox dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.keybox dt { color: var(--ink-2); }
.keybox dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.keybox .btn { width: 100%; }
.keybox .note { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-bottom: 72px; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.detail section { padding-block: 22px; border-top: 1px solid var(--line); }
.detail section:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: 1.45rem; }
.source { font-size: 0.86rem; color: var(--ink-3); margin-top: 8px; }
.source a { color: var(--ink-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.amount { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.info-list { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.info-list dt { color: var(--ink-2); font-weight: 600; }
.info-list dd { margin: 0; }
@media (max-width: 560px) { .info-list { grid-template-columns: 1fr; } .info-list dd { margin-bottom: 8px; } }
.venue { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; background: var(--surface); display: grid; gap: 6px; }
.venue h3 { margin: 0; font-size: 1.05rem; }
.venue .map-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.venues { display: grid; gap: 12px; }
.aside-box { background: var(--surface-2); border-radius: var(--radius); padding: 18px; }
.aside-box h2, .aside-box h3 { font-size: 1.1rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notice { border-left: 4px solid var(--buoy); background: var(--buoy-soft); padding: 14px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink); }
.notice.water { border-left-color: var(--water); background: var(--shallow); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- compare page */
.compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; background: var(--surface-2); min-width: 150px; font-weight: 700; }
.compare-table td { min-width: 200px; }
.compare-table thead th { background: var(--surface); }
.compare-table thead th:first-child { background: var(--surface); }
.compare-table .best { color: var(--ok); }

/* ---------- articles & exercises */
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 760px) { .article-list { grid-template-columns: 1fr; } }
.exercise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.exercise h3 { margin-bottom: 6px; font-size: 1.3rem; }
.exercise-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.exercise .prose { max-width: none; }
.exercise ol { padding-left: 1.3em; }
.exercises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .exercises { grid-template-columns: 1fr; } }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.filter-chips button { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter-chips button[aria-pressed='true'] { background: var(--water); border-color: var(--water); color: var(--water-ink); }
.safety { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 2px solid var(--buoy); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.safety svg { width: 40px; height: 40px; color: var(--water); }
.safety ul { margin: 0.4em 0 0; }

/* stats on costs page */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.stat-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; }
.stat-row .v { font-family: var(--font-display); font-weight: 750; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat-row .k { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.95rem; }
.bar-list .bar { height: 12px; background: var(--buoy); border-radius: 0 6px 6px 0; min-width: 2px; }
.bar-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-list .val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .bar-list li { grid-template-columns: minmax(0, 1fr) auto; } .bar-list .bar { grid-column: 1 / -1; order: 3; } }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.faq details > div { padding-top: 10px; }
.toc { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- footer */
.site-footer { background: var(--footer-bg); color: var(--ink-2); margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 44px 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: var(--ink); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--water); text-decoration: underline; }
.site-footer .brand { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); padding-top: 18px; font-size: 0.88rem; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* consent banner (only shown when external analytics is configured) */
.consent { position: fixed; left: var(--gutter-l); right: var(--gutter-r); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.consent p { margin-bottom: 10px; }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .compare-tray, .filters, .consent { display: none !important; } }
