:root {
  --paper: #fbf8f3; --card: #ffffff; --ink: #1b2a41; --muted: #5b6678; --line: #e7e1d6;
  --teal: #0f766e; --teal-soft: #e3f2ef; --warn: #9a3412; --warn-soft: #fdf0e7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; }
a { color: var(--teal); }
.top { display: flex; gap: 16px; align-items: center; padding: 12px 20px; background: var(--ink); }
.brand { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: .2px; }
.search { flex: 1; display: flex; gap: 8px; max-width: 640px; }
.search input { flex: 1; font-size: 16px; padding: 10px 12px; border-radius: 8px; border: 0; }
.search button, .detail .back, .linkish { font: inherit; }
.search button { background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; font-weight: 600; cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--card); font-size: 14px; }
.chips { display: flex; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; }
.chips button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.filters select { font: inherit; padding: 3px 6px; margin-left: 4px; }
/* Keep the desktop filter bar on one row on laptop widths: the council list's longest
   name would otherwise size the select and push it to a second row. */
@media (min-width: 821px) { .filters label.council select { max-width: 200px; } }
@media (min-width: 821px) and (max-width: 1320px) { .filters { gap: 10px; padding: 10px 16px; } }
.check { display: flex; gap: 6px; align-items: center; }
main { flex: 1; display: flex; min-height: 0; }
.panel { width: 460px; min-width: 340px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--paper); }
.map { flex: 1; min-height: 300px; }
.status { padding: 12px 16px; font-size: 14px; color: var(--muted); }
.status strong { color: var(--ink); }
.status.warn { color: var(--warn); background: var(--warn-soft); }
.list { list-style: none; margin: 0; padding: 0 12px 16px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex; gap: 10px; cursor: pointer; }
.row:hover, .row.hot { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.row .main { flex: 1; min-width: 0; }
.row .name { font-weight: 650; }
.row .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row .miles { font-weight: 700; color: var(--teal); white-space: nowrap; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12px; border-radius: 6px; padding: 2px 7px; background: #f1ede5; color: var(--ink); }
.tag.dist { background: var(--teal-soft); color: #0b4f4a; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.detail { padding: 12px 16px 28px; background: var(--card); min-height: 100%; }
.detail .back { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0; margin-bottom: 8px; font-weight: 600; }
.detail h1 { font-size: 22px; margin: 4px 0 6px; line-height: 1.2; }
.detail h2 { font-size: 16px; margin: 0; }
.detail h3 { font-size: 14px; margin: 14px 0 6px; }
.detail .meta { color: var(--muted); font-size: 14px; line-height: 1.5; }
.detail .you { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--teal-soft); font-size: 14px; }
.detail details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; padding: 10px 12px; }
.detail summary { cursor: pointer; font-weight: 650; }
.detail summary .count { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 6px 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 6px 0; }
th, td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12px; }
td.num, th.num { text-align: right; white-space: nowrap; }
table:not(.dist) tbody td:first-child { min-width: 170px; }
table.dist tr.method td { background: #f6f3ee; padding-top: 6px; }
/* Narrow panels (phones, the desktop side panel): each year becomes a card, the distance beside the year, so it is never scrolled off. */
.dist-wrap { container-type: inline-size; }
@container (max-width: 560px) {
  table.dist thead { display: none; }
  table.dist, table.dist tbody, table.dist tr.method, table.dist tr.method td { display: block; }
  table.dist tbody tr:not(.method) { display: grid; grid-template-columns: auto auto 1fr; column-gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.dist tbody tr:not(.method) td { border: 0; padding: 1px 6px; }
  table.dist tbody tr:not(.method) td:nth-child(1) { grid-area: 1 / 1; font-weight: 600; }
  table.dist tbody tr:not(.method) td:nth-child(2) { grid-area: 1 / 2; font-weight: 600; }
  table.dist tbody tr:not(.method) td:nth-child(4) { grid-area: 1 / 3; }
  table.dist tbody tr:not(.method) td:nth-child(3) { grid-area: 2 / 1 / 3 / 4; color: var(--muted); }
  table.dist tbody tr:not(.method) td:nth-child(5) { grid-area: 3 / 1 / 4 / 4; }
  table.dist tbody tr:not(.method) td.num strong { font-size: 15px; }
  table.dist tbody tr:not(.method) td.num { white-space: normal; }
}
.detail ul { padding-left: 18px; overflow-wrap: anywhere; }
.na { color: var(--muted); font-style: italic; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; margin: 6px 0; }
.kv div:nth-child(even) { text-align: right; font-weight: 600; }
.bar { display: flex; height: 10px; border-radius: 4px; overflow: hidden; background: #eee; margin: 3px 0 8px; }
.bar span { display: block; height: 100%; }
.pv-q { font-size: 13px; margin-top: 6px; }
.flows { list-style: none; padding: 0 !important; margin: 6px 0; font-size: 13.5px; }
.flows li { margin: 0 0 4px; }
.flow-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.flow-n { min-width: 0; }
.flow-v { flex: none; font-weight: 600; white-space: nowrap; }
.flow-s { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.flow-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.flow-t span { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.mini { font-size: 11px; color: var(--muted); background: #f1f6fc; border-radius: 4px; padding: 1px 5px; margin-left: 2px; white-space: nowrap; }
.flows .bar { height: 5px; margin: 2px 0 6px; background: #eef0f8; }
.flows.near li { padding: 5px 0; border-bottom: 1px solid var(--line); margin: 0; }
.flows.near li:last-child { border-bottom: 0; }
.flows .linkish { text-align: left; }
.linkish { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0; text-decoration: underline; }
.foot { font-size: 12px; color: var(--muted); padding: 6px 20px; border-top: 1px solid var(--line); background: var(--card); }
.home-pin { background: var(--ink); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
/* Area around a postcode: one card of flush rows (the school detail's row look), then the school list. */
.area-panel { padding: 0 12px 4px; }
.area-group { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; overflow: hidden; }
.area-group > summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; padding: 11px 16px; font-weight: 700; font-size: 15px; }
.area-group > summary::-webkit-details-marker { display: none; }
.area-group > summary .acc-t { flex: 1 1 auto; min-width: 0; }
.area-group > summary::after { content: "\2212"; flex: none; font-size: 20px; line-height: 1; font-weight: 500; }
.area-group:not([open]) > summary::after { content: "+"; }
.area-group[open] > summary { border-bottom: 1px solid var(--line); }
.area-body > .note { padding: 0 16px; }
div.area-rows > details.acc { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--card); }
div.area-rows > details.acc:last-child { border-bottom: 0; }
div.area-rows > details.acc > summary { min-height: 46px; padding: 6px 16px; }
.acc-b > div.area-rows { margin: 0 -16px -12px; border-top: 1px solid var(--line); } /* nested in the school's "Area around the school" row */
.detail .acc-b > div.area-rows > details.acc > summary { padding-left: 30px; }
.area-block h4 { font-size: 13.5px; margin: 10px 0 4px; color: var(--ink); }
.area-block .src { font-size: 11.5px; margin: 10px 0 2px; }
.area-block details.sub { border: 0; padding: 0; margin: 4px 0; background: none; }
.area-block details.sub summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--teal); }
.area-block details.about > summary { font-size: 12px; font-weight: 500; color: var(--muted); }
.area-block table:not(.dist) tbody td:first-child { min-width: 0; }
.chip { display: inline-block; font-size: 12px; border-radius: 6px; padding: 2px 7px; background: var(--teal-soft); color: #0b4f4a; margin: 2px 4px 2px 0; }
.badge-be { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 5px; padding: 1px 6px; background: var(--warn-soft); color: var(--warn); margin-left: 4px; }
.catch-label { background: rgba(255,255,255,.9); border: 1px solid var(--teal); color: var(--ink); font-size: 11px; font-weight: 600; box-shadow: none; max-width: min(420px, 70vw); overflow: hidden; text-overflow: ellipsis; }
/* Ofsted-coloured pins (letter = phase), last-distance ring and home line labels, map key. */
.pin { display: inline-block; width: 24px; height: 30px; }
.pin svg { display: block; width: 100%; height: 100%; overflow: visible; fill: var(--c, #a8b3c4); filter: drop-shadow(2px 1.5px 1px rgba(0,0,0,.3)); }
.pin.big { width: 30px; height: 38px; }
.pin.big svg { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 0 1px var(--ink)) drop-shadow(2px 2px 1.5px rgba(0,0,0,.35)); }
.pin.sm { width: 15px; height: 19px; vertical-align: -4px; margin-right: 6px; }
.pin.sm svg { filter: none; }
.pin-wrap { background: none; border: 0; }
.pin-wrap:hover .pin { transform: scale(1.15); }
.map-key { background: #fff; border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.3); font-size: 12px; max-width: 250px; }
.leaflet-bottom.leaflet-left .map-key { margin-bottom: 36px; } /* clear of the Google logo, which must stay visible */
.map-key summary { list-style: none; cursor: pointer; background: #2f6fb5; color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 8px; }
.map-key summary::-webkit-details-marker { display: none; }
.map-key[open] summary { border-radius: 8px 8px 0 0; }
.map-key-body { padding: 8px 10px; display: grid; gap: 5px; }
.map-key-body .note { margin: 2px 0; font-size: 11.5px; }
.map-key-body { max-height: min(60vh, 520px); overflow-y: auto; }
.key-overlays:empty { display: none; }
.key-ov { border-top: 1px solid var(--line); padding-top: 5px; }
.key-ov img { display: block; margin-top: 3px; max-width: 100%; }
.heat-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; padding-top: 12px; background: linear-gradient(to right, rgba(59,130,246,.35), rgba(34,197,94,.45), rgba(234,179,8,.5), rgba(239,68,68,.55), rgba(185,28,28,.6)) top / 100% 10px no-repeat; }
.heat-layer, .glow-layer { pointer-events: none; }
@media (max-width: 700px) { .map-key-body { max-height: 190px; } .map-key { max-width: 220px; } .leaflet-bottom.leaflet-left .map-key { margin-bottom: 56px; } }
.leaflet-control-layers-overlays label { font-size: 12.5px; }
.key-ring { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px dashed #1d4ed8; vertical-align: -4px; margin-right: 6px; }
.key-line { display: inline-block; width: 16px; border-top: 2px dashed var(--ink); vertical-align: middle; margin-right: 6px; }
.ring-label, .line-label { background: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.25); white-space: nowrap; z-index: 2; }
.ring-label { border: 1px solid #1d4ed8; color: #1d4ed8; }
.line-label { border: 1px solid var(--ink); color: var(--ink); }
.ring-label::before, .line-label::before { display: none; }
/* Detail sections: collapsed accordion rows with summary chips. */
/* One list: flush rows split by hairlines (no separate cards), title left, one or two chips right. */
.detail details.acc { margin: 0 -16px; border-radius: 0; border-width: 0 0 1px; padding: 0; }
.detail :not(details.acc) + details.acc { margin-top: 12px; border-top-width: 1px; }
details.acc > summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; min-height: 50px; padding: 8px 16px; font-weight: 450; font-size: 14.5px; color: #2b3445; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:hover { background: #f7f8fb; }
details.acc[open] > summary { font-weight: 650; }
details.acc > summary .acc-t { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.acc-p { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.acc-b { padding: 0 16px 12px; }
.acc-i { display: inline-flex; flex: none; width: 22px; height: 22px; color: #5b5bd6; }
.acc-i svg { width: 22px; height: 22px; fill: currentColor; fill-opacity: .16; }
details.acc > summary::after { content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--ink); font-weight: 500; }
details.acc[open] > summary::after { content: "\2212"; }
details.acc > summary .count { margin-left: 0; font-size: 13px; white-space: nowrap; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 500; line-height: 1.3; padding: 4px 9px; border-radius: 5px; background: #f1f6fc; color: var(--ink); white-space: nowrap; }
.pill[style] { background: color-mix(in srgb, var(--c) 24%, white); }
.detail table.kv tbody td:first-child { min-width: 0; width: 84px; color: var(--muted); }
.detail .links { font-size: 13.5px; margin: 8px 0; }
.pill.solid { background: var(--c); color: #fff; font-weight: 600; }
.pill.solid.ink { color: var(--ink); }
/* Strengths & weaknesses quoted from the Ofsted report: green thumbs up, red thumbs down. */
.sw-n { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; line-height: 1.3; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.sw-n svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.sw-n.up { color: #1a7f45; background: #e7f5ec; }
.sw-n.down { color: #b42318; background: #fdecea; }
.sw-n.down svg { transform: rotate(180deg); }
.sw-h { display: flex; align-items: center; gap: 8px; }
.sw-l { margin: 4px 0 6px; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.sw-l li { margin: 4px 0; }
.sw-l.up li::marker { color: #1a7f45; }
.sw-l.down li::marker { color: #b42318; }
.detail details.sw-more { margin: 0 0 10px; padding: 0; border: 0; background: none; }
.sw-more > summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 13px; padding-left: 2px; }
.sw-more[open] > summary { display: none; }
.sw-more > .sw-l { margin-top: 0; }
@media (max-width: 560px) { .acc-p .pill + .pill { display: none; } } /* phones: one chip per row */
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.queue { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.stars { color: #b45309; letter-spacing: 1px; white-space: nowrap; }
ul.reviews { list-style: none; padding: 0; margin: 6px 0; }
ul.reviews li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 13.5px; }
ul.reviews li:first-child { border-top: 0; }
.review-text { margin: 4px 0; white-space: pre-line; line-height: 1.45; }
.status-own { font-size: 13px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 6px 10px; }
form.review { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; font-size: 13.5px; }
form.review .ratings { display: flex; flex-wrap: wrap; gap: 4px 12px; }
form.review .ratings label { cursor: pointer; }
.review-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; }
form.review select { font: inherit; margin-left: 4px; }
form.review textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
form.review button, .queue-view .review-row button { font: inherit; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.queue-view .review-row button[data-decision="reject"] { background: var(--warn); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-300%); background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 6px; z-index: 2000; }
.skip:focus { transform: none; }
.more { position: relative; }
.more summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.more summary .count { color: var(--muted); font-weight: 400; }
.more-body { position: absolute; z-index: 1100; top: 26px; left: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: 0 6px 24px rgba(27,42,65,.15); display: grid; gap: 8px; min-width: 280px; }
.more-body label { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.more-body select { width: 58%; }
.row .name .open { font: inherit; font-weight: 650; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.row .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.cmp { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--teal); border-radius: 999px; padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.cmp.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.detail-actions { margin: 4px 0 8px; }
.tray { position: sticky; bottom: 0; background: var(--ink); color: #fff; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.tray .chip { background: rgba(255,255,255,.12); color: #fff; }
.tray .x { background: none; border: 0; color: #fff; cursor: pointer; font-size: 15px; padding: 0 2px; }
.tray-actions { display: flex; gap: 10px; align-items: center; }
.tray .note { color: #fde68a; margin: 0; }
.tray .go { font: inherit; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.tray .linkish { color: #fff; }
.panel.wide { width: 780px; }
table.compare th[scope="col"] { color: var(--ink); font-size: 13px; min-width: 150px; }
table.compare th[scope="row"] { font-weight: 500; color: var(--muted); min-width: 150px; }
table.compare tr.group th { color: var(--ink); font-size: 13px; padding-top: 12px; background: #f6f3ee; }
.linkish.small { font-size: 12px; }
.here { position: absolute; z-index: 1000; top: 10px; left: 50%; transform: translateX(-50%); font: inherit; font-size: 14px; font-weight: 600; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: 0 2px 10px rgba(27,42,65,.2); cursor: pointer; }
/* Header "Use my location" icon, phone filters button (hidden on desktop). */
.search .locate-top { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; padding: 0; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
.search .locate-top:hover { background: rgba(255,255,255,.24); }
.filters-toggle { display: none; }
/* Landing hero: shown until the first search (body.is-landing); the map loads after. */
.landing { display: none; }
body.is-landing .landing { display: block; flex: 1; overflow-y: auto; }
body.is-landing .filters, body.is-landing main, body.is-landing .top .search { display: none; }
body.is-landing .top { justify-content: space-between; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; max-width: 1140px; margin: 0 auto; padding: 48px 32px 28px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.6px; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 8px 28px rgba(27,42,65,.10); }
.hero-search input { flex: 1; min-width: 0; font-size: 17px; border: 0; background: none; padding: 12px; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft), 0 8px 28px rgba(27,42,65,.10); }
.hero-search button { font: inherit; font-size: 16px; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 0 24px; cursor: pointer; }
.locate-me { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 15px; font-weight: 650; color: var(--teal); cursor: pointer; }
.locate-me:hover { text-decoration: underline; }
.hero-msg { margin: 8px 0 0; font-size: 14px; color: var(--muted); max-width: 560px; }
.hero-msg.warn { color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 26px 0 0; }
.hero-stats div { display: flex; flex-direction: column; max-width: 170px; }
.hero-stats strong { font-size: 26px; color: var(--ink); letter-spacing: -.3px; }
.hero-stats span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.hero-note { font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.hero-art { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 12px 40px rgba(27,42,65,.10); }
.features { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1140px; margin: 0 auto; padding: 8px 32px 40px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.features svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; color: var(--teal); background: var(--teal-soft); }
.features h2 { font-size: 16px; margin: 12px 0 6px; }
.features p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.landing-links { max-width: 1140px; margin: -24px auto 0; padding: 0 32px 40px; font-weight: 600; }
@media (max-width: 820px) {
  body { height: auto; }
  main { flex-direction: column-reverse; }
  .panel { width: auto; min-width: 0; border-right: 0; overflow: visible; }
  .map { height: 62vh; height: 62svh; flex: none; }
  .top { gap: 10px; padding: 10px 12px; }
  .brand { font-size: 16px; line-height: 1.1; }
  .search { min-width: 0; }
  .search input { min-width: 0; padding: 9px 10px; }
  .search button { padding: 0 12px; }
  .filters { gap: 8px 12px; padding: 8px 12px; }
  .filters-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
  .filters-toggle svg { flex: none; color: var(--teal); }
  .filters-toggle strong { color: var(--teal); }
  .filters-summary { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .filters-toggle::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .filters.open .filters-toggle::after { transform: rotate(-135deg); margin-bottom: -4px; }
  .filters:not(.open) > :not(.filters-toggle) { display: none; }
  .chips { width: 100%; overflow-x: auto; }
  .chips button { flex: none; }
  .panel.wide { width: auto; }
  .more[open] { width: 100%; }
  .more-body { position: static; box-shadow: none; margin-top: 8px; min-width: 0; }
  .tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; }
  body.has-tray { padding-bottom: 130px; }
  .filters > label.council { width: 100%; display: flex; gap: 6px; align-items: center; }
  #council { flex: 1; min-width: 0; width: 100%; margin-left: 0; }
  body.is-landing .landing { overflow: visible; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 26px 18px 18px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .hero-sub { font-size: 16px; margin-bottom: 18px; }
  .hero-art { max-width: 420px; justify-self: center; border-radius: 22px; }
  .hero-stats { gap: 10px 18px; margin-top: 20px; }
  .hero-stats div { max-width: 30%; flex: 1; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 12px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 18px 28px; }
}
#queue, #accountButton { margin-left: 0; }
.cmp.save.on { background: #fef3c7; border-color: #f59e0b; color: #78350f; }
.detail-actions .cmp { margin-right: 6px; }
.my-note { margin: 8px 0; font-size: 14px; }
.my-note label { font-weight: 650; display: block; margin-bottom: 4px; }
.my-note textarea, .saved-note { width: 100%; font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf7; }
.saved-note { margin-top: 6px; cursor: text; }
.saved-list { padding: 0; margin-top: 8px; }
.saved-list .row { cursor: default; }
@media (max-width: 520px) {
  .top { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .features { grid-template-columns: 1fr; }
  .hero-search button { padding: 0 16px; }
}
@media (max-width: 400px) {
  table:not(.dist) tbody td:first-child { min-width: 0; }
  th, td { padding: 5px 4px; }
  .detail { padding: 12px 10px 28px; }
  .detail details.acc { margin: 0 -10px; }
  .detail details.acc > summary { padding: 7px 10px; }
  .acc-b { padding: 0 10px 12px; }
  .acc-b > div.area-rows { margin: 0 -10px -12px; }
  div.area-rows > details.acc > summary, .area-group > summary { padding-left: 12px; padding-right: 12px; }
  .detail .acc-b > div.area-rows > details.acc > summary { padding-left: 22px; }
}
/* Paywall (Cloudflare site only): lock prompts, the account view and the legal pages. */
.lock-i { width: 14px; height: 14px; flex: none; fill: currentColor; vertical-align: -2px; }
.lock { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; background: #f4f1fb; border: 1px solid #ddd6f3; border-radius: 12px; font-size: 14px; }
.lock > .lock-i { width: 22px; height: 22px; color: #5b5bd6; margin-top: 1px; }
.lock-t { margin: 0 0 4px; font-weight: 650; }
.lock ul { margin: 4px 0 10px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.unlock { font: inherit; font-size: 14px; font-weight: 650; background: #5b5bd6; color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.unlock:hover { background: #4b4bc4; }
.lock-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 8px 0; padding: 7px 10px; background: #f4f1fb; border-radius: 8px; font-size: 13px; color: #3f3a78; }
.lock-line .lock-i { color: #5b5bd6; }
.lock-line span { flex: 1; min-width: 0; }
.lock-line .linkish { color: #4338ca; font-weight: 600; }
.lock-inline { display: inline-flex; gap: 5px; align-items: center; font: inherit; font-size: 13px; font-weight: 600; background: #f4f1fb; color: #4338ca; border: 1px solid #ddd6f3; border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.tag.locked { display: inline-flex; gap: 4px; align-items: center; background: #f4f1fb; color: #4338ca; }
.account-view h1 { margin-bottom: 12px; }
.account-view .banner { background: var(--teal-soft); color: #0b4f4a; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.account-view .card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.account-view .card h3 { margin: 0 0 6px; font-size: 16px; }
.account-view .card p { margin: 4px 0; }
.account-view .price strong { font-size: 24px; letter-spacing: -.3px; }
.account-view ul.incl { list-style: none; padding: 0 !important; margin: 8px 0 12px; }
.account-view ul.incl li { position: relative; padding-left: 22px; margin: 5px 0; font-size: 13.5px; }
.account-view ul.incl li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 13.5px; cursor: pointer; }
.consent input { margin-top: 3px; flex: none; }
.pay, form.signin button { font: inherit; font-size: 15px; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; }
form.signin { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
form.signin input { flex: 1; min-width: 200px; font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.foot a { color: inherit; }
@media (max-width: 820px) { body:has(#detail:not([hidden]) > .account-view) .map { display: none; } } /* phones: the account page needs no map */
body.page { height: auto; display: block; }
.page-top { background: var(--ink); padding: 12px 20px; }
main.page-main { display: block; max-width: 720px; margin: 0 auto; padding: 24px 20px 48px; line-height: 1.55; font-size: 15.5px; }
.page-main h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 6px; }
.page-main h2 { font-size: 18px; margin: 26px 0 6px; }
.page-main .updated { color: var(--muted); font-size: 14px; margin-top: 0; }
.page-main li { margin: 4px 0; }
/* Worker-rendered school, nursery and council pages (worker/src/seo.js). */
.seo-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.seo-search { flex: 1; display: flex; gap: 8px; max-width: 480px; min-width: 220px; }
.seo-search input { flex: 1; font-size: 16px; padding: 8px 11px; border-radius: 8px; border: 0; min-width: 0; }
.seo-search button { font: inherit; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; font-weight: 600; cursor: pointer; }
main.seo-main { max-width: 820px; }
.seo-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.seo-crumbs a { color: var(--muted); }
.seo-sub { color: var(--muted); margin: 0 0 10px; font-size: 14.5px; }
.seo-lead { font-size: 16.5px; margin: 10px 0 14px; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.seo-btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 10px 16px; }
.seo-btn.ghost { background: var(--teal-soft); color: var(--teal); }
.seo-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 12px; margin: 14px 0; }
.seo-card h2 { margin-top: 14px; }
.seo-card h3 { font-size: 15px; margin: 14px 0 4px; }
.seo-facts { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 14px; margin: 8px 0; }
.seo-facts dt { color: var(--muted); }
.seo-facts dd { margin: 0; }
.seo-grade { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eef0f3; color: var(--muted); vertical-align: 1px; }
.seo-grade.g-out { background: #d9f2e3; color: #166534; }
.seo-grade.g-good { background: var(--teal-soft); color: var(--teal); }
.seo-grade.g-ri { background: #fdf0d5; color: #92400e; }
.seo-grade.g-bad { background: #fde2e1; color: #b91c1c; }
.seo-tag { display: inline-block; font-size: 12px; border: 1px dashed var(--teal); color: var(--teal); border-radius: 999px; padding: 1px 8px; }
.seo-quotes { padding-left: 18px; }
.seo-quotes li { margin: 6px 0; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.seo-table th, .seo-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.seo-table th { color: var(--muted); font-weight: 600; }
.seo-list { list-style: none; padding: 0; margin: 6px 0; }
.seo-list li { padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.seo-list li:last-child { border-bottom: 0; }
.seo-list a { font-weight: 600; }
.seo-cols { columns: 3 200px; padding: 0; list-style: none; }
.seo-cols li { break-inside: avoid; }
.seo-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-jump a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; font-size: 14px; }
.seo-pass { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-soft), var(--card) 70%); }
.seo-incl { list-style: none; padding: 0; }
.seo-incl li { position: relative; padding-left: 22px; }
.seo-incl li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
.seo-foot { max-width: 820px; margin: 0 auto; padding: 8px 20px 40px; color: var(--muted); font-size: 13px; }
.seo-foot a { color: inherit; }
@media (max-width: 560px) { .seo-facts { grid-template-columns: 1fr; gap: 0 0; } .seo-facts dd { margin-bottom: 8px; } .page-main h1 { font-size: 24px; } }
