/* Sober public-sector styling following GOV.UK Design System patterns (open source), deliberately without the
   crown, the GOV.UK name or header, or the GDS Transport typeface, which are reserved for government services. */
:root { --ink: #0b0c0c; --muted: #505a5f; --line: #b1b4b6; --light: #f3f2f1; --link: #1d70b8; --focus: #ffdd00;
        --green: #00703c; --tag-roads: #fff7bf; --tag-roads-ink: #594d00; --tag-planning: #d2e2f1; --tag-planning-ink: #0c2d4a;
        --tag-env: #cce2d8; --tag-env-ink: #005a30; --tag-energy: #efdfff; --tag-energy-ink: #491644; --tag-other: #e5e6e7; --tag-other-ink: #282d30; }
* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; font: 19px/1.45 "Helvetica Neue", Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--link); } a:focus, button:focus, input:focus, select:focus, summary:focus { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 15px; }
header.site { background: var(--ink); color: #fff; border-bottom: 10px solid #2b7a78; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { color: #fff; font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: .01em; }
.brand:hover { text-decoration: underline; text-underline-offset: .2em; }
header.site nav a { color: #fff; margin-left: 1.5rem; text-decoration: none; font-weight: 700; } header.site nav a:hover { text-decoration: underline; }
.phase { border-bottom: 1px solid var(--line); padding: .6rem 0; font-size: .95rem; }
.phase .tag-phase { display: inline-block; background: #2b7a78; color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .5rem; margin-right: .6rem; }
main { padding-top: 1.5rem; min-height: 60vh; }
h1 { font-size: 2.6rem; line-height: 1.1; font-weight: 700; margin: .6rem 0 1rem; }
h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; margin: 0 0 .5rem; }
.lead { font-size: 1.25rem; max-width: 40em; margin: 0 0 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.label { display: block; font-weight: 700; font-size: 1.2rem; margin-bottom: .4rem; }
.hint { color: var(--muted); margin: 0 0 .5rem; font-size: 1rem; }
.input, .select { font: inherit; width: 100%; max-width: 30em; padding: .5rem; border: 2px solid var(--ink); background: #fff; height: 2.6rem; }
.select { max-width: 12em; }
.distance { display: flex; gap: .5rem; } .distance .select { max-width: 7em; }
.button { font: inherit; font-weight: 700; color: #fff; background: var(--green); border: 2px solid transparent; box-shadow: 0 2px 0 #002d18; padding: .55rem 1.2rem; cursor: pointer; }
.button:hover { background: #005a30; } .button:active { top: 2px; }
.inset { border-left: 10px solid var(--line); padding: .6rem 0 .6rem 1rem; margin: 1.5rem 0; }
.legend { list-style: none; padding: 0; margin: .6rem 0; }
.legend li { padding: .25rem 0; }
.tag { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; padding: .2rem .55rem; background: var(--tag-other); color: var(--tag-other-ink); }
.icon { width: 1em; height: 1em; vertical-align: -.12em; margin-right: .35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .icon { width: .95em; height: .95em; }
/* Map pins: a filled disc per kind with the kind's icon in white; a hollow dashed disc for a pin outside the circle. */
.pin { --pin: var(--tag-other-ink); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
       background: var(--pin); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); box-sizing: border-box; }
.pin .icon { width: 16px; height: 16px; margin: 0; stroke-width: 2; }
.pin-roads { --pin: var(--tag-roads-ink); } .pin-planning { --pin: var(--tag-planning-ink); } .pin-environment { --pin: var(--tag-env-ink); } .pin-energy { --pin: var(--tag-energy-ink); }
.pin.outside { background: #fff; color: var(--pin); border: 2px dashed var(--pin); }
.pin-centre { width: 16px; height: 16px; background: #2b7a78; border-width: 2px; }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: .6rem 0 .4rem; font-size: 1rem; }
.map-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.map-legend .pin { width: 24px; height: 24px; box-shadow: none; border-color: var(--line); } .map-legend .pin .icon { width: 13px; height: 13px; }
.map-legend .pin-centre { width: 14px; height: 14px; }
.tag-roads { background: var(--tag-roads); color: var(--tag-roads-ink); } .tag-planning { background: var(--tag-planning); color: var(--tag-planning-ink); }
.tag-environment { background: var(--tag-env); color: var(--tag-env-ink); } .tag-energy { background: var(--tag-energy); color: var(--tag-energy-ink); }
.caption { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.crumb { font-size: 1rem; margin: 0 0 .5rem; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.refine { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.refine .select { height: 2.3rem; width: auto; max-width: 7em; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; border-bottom: 1px solid var(--line); padding: .6rem 0; margin: 1rem 0 1.2rem; position: sticky; top: 0; background: #fff; z-index: 2; }
.chip { font: inherit; font-weight: 700; color: var(--link); background: none; border: 0; padding: .2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.chip span { color: var(--muted); font-weight: 400; margin-left: .25rem; }
.chip.active { color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--ink); }
.viewtoggle { margin-left: auto; font-size: 1rem; } .viewtoggle a.on { color: var(--ink); font-weight: 700; text-decoration: none; }
.group-title { font-size: 1.3rem; margin: 2rem 0 .8rem; padding-bottom: .3rem; border-bottom: 2px solid var(--ink); }
.group-title span { color: var(--muted); font-weight: 400; margin-left: .4rem; }
.card { border-top: 2px solid var(--ink); padding: 1rem 0 1.2rem; margin: 0 0 .6rem; }
.card:target { outline: 3px solid var(--focus); outline-offset: 6px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.date { color: var(--muted); font-size: 1rem; }
.facts { display: grid; grid-template-columns: 11rem 1fr; gap: .35rem 1rem; margin: .8rem 0; border-top: 1px solid var(--line); padding-top: .8rem; }
.facts dt { font-weight: 700; } .facts dd { margin: 0; }
@media (max-width: 40rem) { .facts { grid-template-columns: 1fr; } .facts dt { margin-top: .4rem; } h1 { font-size: 2rem; } }
.summary { background: var(--light); border-left: 10px solid #2b7a78; padding: .8rem 1rem; margin: .8rem 0; }
.reading { color: var(--muted); font-style: italic; }
.preview { color: var(--muted); font-size: 1rem; border-left: 4px solid var(--line); padding-left: .8rem; margin: .4rem 0 .8rem; }
.verbatim { white-space: pre-wrap; font: .95rem/1.5 "Helvetica Neue", Arial, sans-serif; background: var(--light); padding: 1rem; border-left: 4px solid var(--line); max-height: 24rem; overflow: auto; margin: .5rem 0; }
details summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: .2em; margin: .4rem 0; }
.actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
form.inline { display: inline-flex; align-items: center; gap: .5rem; } form.inline button { font: inherit; background: #fff; border: 2px solid var(--ink); padding: .15rem .55rem; cursor: pointer; }
.error-summary { border: 5px solid #d4351c; padding: 1rem; margin: 0 0 1.5rem; } .error-summary h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.empty { border-left: 10px solid var(--line); padding: .6rem 1rem; }
.map { height: 28rem; border: 2px solid var(--ink); margin: 0 0 .5rem; background: var(--light); }
.leaflet-container { font: inherit; }
/* Popups: square corners, one tag, a short title, one line of facts, two links. */
#map .leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
#map .leaflet-popup-content { margin: 12px 14px 10px; font-size: 15px; line-height: 1.35; }
.popup .tag { font-size: .72rem; padding: .12rem .45rem; }
.popup-title { font-weight: 700; margin: .45rem 0 .3rem; }
.popup-meta { color: var(--muted); font-size: .9rem; margin: 0 0 .45rem; }
.popup-links { margin: 0; } .popup-links a { margin-right: 1rem; font-weight: 700; }
#map .leaflet-popup-close-button { font-size: 20px; }
.pin-spoke { stroke: #555; stroke-width: 1.5; }
footer { border-top: 1px solid var(--line); background: var(--light); margin-top: 3rem; padding: 1.5rem 0 2.5rem; font-size: 1rem; }
.small, .muted { color: var(--muted); font-size: 1rem; }
.disclaimer { font-weight: 700; }
