/* Nearby Notices. Accessible public-information styling: GOV.UK Design System patterns (open source) for forms,
   errors and focus, deliberately without the crown, the GOV.UK name or header, or the GDS Transport typeface,
   which are reserved for government services. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
             src: url("/static/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2"); }   /* SIL Open Font License, static/fonts/OFL.txt */
:root {
  --ink: #0f1a1f; --text: #24323a; --muted: #56636b; --line: #dde2e5; --line-strong: #6b7a82; --soft: #f5f7f8;
  --brand: #1f6f6d; --brand-dark: #165553; --brand-tint: #e9f3f2; --link: #1b62a8; --focus: #f0b400;
  --header: #102326; --header-2: #17343a; --page: #f1f4f5; --radius: 10px; --shadow: 0 1px 2px rgba(16, 35, 38, .05), 0 6px 20px rgba(16, 35, 38, .07);
  --green: #00703c;
  --tag-roads: #fff4c2; --tag-roads-ink: #594d00; --tag-planning: #dbe8f5; --tag-planning-ink: #0c2d4a;
  --tag-env: #d5eadf; --tag-env-ink: #005a30; --tag-energy: #f1e4fb; --tag-energy-ink: #491644; --tag-other: #e8eaeb; --tag-other-ink: #282d30;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; font: 17px/1.55 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--page);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; } a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header and the independence banner */
header.site { background: #122528; color: #fff; }   /* the logo's own ground */
header.site .wrap { display: flex; justify-content: space-between; align-items: center; height: 112px; gap: 1rem; }
.brand { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.005em; display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
/* The header logo has a white outline the shape of the pin (logo-header.svg), so its navy edge shows on the dark header. */
.brand img { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.brand:hover { text-decoration: none; opacity: .9; }
/* The name is drawn as a wordmark (static/art/wordmark.webp, white and teal on a clear ground); its alt text is the name. */
/* The logo: the name, the "o" of Notices as a map pin, and the pin landing on a thin 3D strip of a small town (static/art/logo-*.webp,
   drawn on #122528, the header's colour). On phones, where the strip would be too small to read, the lettering and pin alone. */
/* One <picture>: a phone is sent only the lettering, a computer only the logo. */
.brand picture { display: block; line-height: 0; }
.brand img.logo { width: auto; height: 100px; filter: none; }
@media (max-width: 40rem) {
  header.site .wrap { height: 64px; }
  .brand img.logo { height: 40px; margin-top: 18px; }
}
@media (max-width: 22rem) { .brand img.logo { height: 32px; margin-top: 15px; } }
header.site nav { display: flex; gap: 1.6rem; }
header.site nav a { color: #e6eef0; text-decoration: none; font-weight: 600; font-size: .98rem; }
header.site nav a:hover { color: #fff; text-decoration: underline; }
.phase { background: var(--header-2); border-bottom: 3px solid var(--brand); padding: .5rem 0; font-size: .88rem; color: #cfe0e2; }
.phase .wrap { display: flex; align-items: baseline; gap: .7rem; }
.phase .tag-phase { flex: none; background: var(--brand); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
                    padding: .16rem .55rem; border-radius: 999px; position: relative; top: -1px; background: var(--brand); box-shadow: inset 0 0 0 1px #4fb3ae; }   /* white on brand: 5.9 to 1 */
@media (max-width: 30rem) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 1.05rem; gap: .5rem; } .brand img { width: 32px; height: 32px; }
  header.site nav { gap: 1rem; } header.site nav a { font-size: .92rem; }
  .phase .wrap { display: block; } .phase .tag-phase { display: inline-block; margin-right: .5rem; }
}
@media (max-width: 22rem) { .brand { font-size: .95rem; } .brand img { width: 28px; height: 28px; } header.site nav { gap: .75rem; } }

/* Type */
/* The page fills the screen: on a tall screen the content grows and the footer sits at the very bottom. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; } .page { padding-top: 2rem; }
h1 { font-size: 2.3rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: .2rem 0 .8rem; }
h2 { font-size: 1.35rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5rem; }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 44em; margin: 0 0 1.6rem; color: var(--text); }
.small, .muted { color: var(--muted); font-size: .92rem; }
@media (max-width: 40rem) { h1 { font-size: 1.85rem; } .lead { font-size: 1.05rem; } }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.label { display: block; font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: .15rem; }
.hint { color: var(--muted); margin: 0 0 .45rem; font-size: .9rem; }
.input, .select { font: inherit; color: var(--ink); width: 100%; max-width: 30em; padding: 0 .8rem; border: 2px solid var(--line-strong); border-radius: 8px;
                  background: #fff; height: 2.9rem; transition: border-color .15s; }
.input:hover, .select:hover { border-color: var(--ink); }
.input:focus, .select:focus { border-color: var(--ink); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.1rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f1a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8rem center; }
.distance { display: flex; gap: .5rem; } .distance .select { width: auto; min-width: 5.5rem; }
.button { font: inherit; font-weight: 700; color: #fff; background: var(--brand); border: 0; border-radius: 8px; height: 2.9rem; padding: 0 1.6rem;
          cursor: pointer; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); transition: background .15s; }
.button:hover { background: var(--brand-dark); } .button:active { transform: translateY(1px); }
.button:disabled { opacity: .7; cursor: progress; }
.error-summary { border: 2px solid #c62828; border-radius: var(--radius); background: #fff6f5; padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.error-summary h2 { margin: 0 0 .3rem; font-size: 1.15rem; color: #8e1b14; } .error-summary p { margin: 0; }

/* Home: the banner (a drawn town with the kinds of notice pinned above it), the search panel, how it works, what it covers.
   The banner picture's own ground is #e1eceb, so the band is the same colour and the picture has no edge. */
.hero-band { position: relative; overflow: hidden; background: #e1eceb; border-bottom: 1px solid #cfdfdc; padding: 3rem 0 2.6rem; isolation: isolate; }
/* The picture keeps its own shape and sits at the bottom right, so the town never runs under the headline and the search
   panel overlaps only its foreground. Its empty left part is the band's colour. */
.hero-art { position: absolute; right: 0; bottom: 0; width: min(1100px, 74%); z-index: -1; pointer-events: none; }
.hero-art img { width: 100%; height: auto; display: block; }
.hero-text { max-width: 31rem; margin-bottom: 1.6rem; }
.eyebrow { display: inline-block; margin: 0 0 .7rem; padding: .22rem .7rem; border-radius: 999px; background: #fff; color: var(--brand-dark);
           font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(16, 35, 38, .08); }
.hero-band h1 { font-size: 2.7rem; letter-spacing: -.025em; }
.hero-band .lead { color: #1f3036; font-size: 1.08rem; margin-bottom: 0; }
.hero-band .search-panel { margin: 5.5rem 0 0; } .hero-band .progress { margin: 1.2rem 0 0; }
.hero-band .error-summary { max-width: 31rem; }
@media (max-width: 64rem) { .hero-art { opacity: .5; width: 90%; } .hero-band .search-panel { margin-top: 3.5rem; } }
@media (max-width: 52rem) {
  /* Phones: the town sits above the headline as a picture of its own, not behind the text. */
  .hero-band { padding-top: 0; }
  .hero-art { position: relative; inset: auto; right: auto; bottom: auto; display: block; width: 100%; height: 11.5rem; opacity: 1; z-index: 0; margin-bottom: 1.2rem;
              -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero-art img { height: 100%; object-fit: cover; object-position: center 40%; }
  .hero-band h1 { font-size: 2rem; } .hero-band .search-panel { margin-top: 1.6rem; }
}
.search-panel { background: #fff; border: 1px solid #cfdcdc; border-radius: 14px; box-shadow: 0 2px 4px rgba(16, 35, 38, .06), 0 10px 30px rgba(16, 35, 38, .10); padding: 1.4rem 1.5rem .3rem; margin: 0 0 2.5rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 0 1.2rem; align-items: flex-end; }
.search-row .grow { flex: 1 1 18rem; } .search-row .grow .input { max-width: none; }
@media (max-width: 40rem) { .search-panel { padding: 1.1rem 1rem .2rem; } .search-row .button { width: 100%; } .search-row > .form-group:last-child { flex: 1 1 100%; } }
.steps { margin: 0 0 2.6rem; }
.steps h2, .covers h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.step-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; }
.step img { width: 112px; height: 112px; margin: -.2rem 0 .2rem -.3rem; }
.step h3 { font-size: 1.08rem; line-height: 1.3; color: var(--ink); margin: 0 0 .3rem; display: inline; }
.step p { margin: .35rem 0 0; font-size: .95rem; color: var(--text); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff;
          font-weight: 700; font-size: .85rem; margin-right: .5rem; vertical-align: .05em; }
@media (max-width: 52rem) { .step-grid { grid-template-columns: 1fr; } .step { flex-direction: row; align-items: center; gap: 1rem; } .step img { width: 84px; height: 84px; margin: 0; flex: none; } }
.cover-grid { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.cover { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
         transition: transform .15s, box-shadow .15s; }
.cover:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 35, 38, .06), 0 12px 28px rgba(16, 35, 38, .12); }
.cover img { width: 84px; height: 84px; flex: none; }
.cover div { display: flex; flex-direction: column; gap: .45rem; }
.cover p { margin: 0; font-size: .95rem; color: var(--text); }
.cover .tag { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .cover, .cover:hover { transition: none; transform: none; } }
.tag-food { background: #e6f2ea; color: #0b4d2b; } .tag-food .dot { margin: 0 .4em 0 0; width: 9px; height: 9px; vertical-align: 0; }

/* Tags and icons */
.tag { display: inline-flex; align-items: center; font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
       padding: .22rem .55rem; border-radius: 6px; background: var(--tag-other); color: var(--tag-other-ink); }
.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); }
.icon { width: 1em; height: 1em; vertical-align: -.12em; margin-right: .4em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip .icon { width: .95em; height: .95em; }
.kind { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; color: var(--ink); border: 1px solid #c3cbd0; border-radius: 6px; padding: .16rem .5rem; margin-left: .4rem; }
.kind-filters { border-bottom: 0; padding-top: 0; margin-top: -.8rem; }

/* Results: heading, distance, progress */
.crumb { font-size: .92rem; margin: 0 0 .6rem; }
.crumb a { text-decoration: none; font-weight: 600; } .crumb a::before { content: "\2039"; margin-right: .4em; font-size: 1.15em; }
.crumb a:hover { text-decoration: underline; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .5rem 1.5rem; }
.results-head h1 { font-size: 2rem; margin-bottom: .3rem; }
.caption { color: var(--muted); font-size: .95rem; margin: 0 0 .9rem; }
.refine { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); margin-bottom: .9rem; }
.refine .select { height: 2.4rem; width: auto; min-width: 4.8rem; font-size: .95rem; }
.refine { flex-wrap: wrap; } .refine-gap { margin-left: .6rem; }
.progress { margin: .4rem 0 1.4rem; max-width: 38rem; }
.progress-label { font-weight: 600; color: var(--ink); margin: 0 0 .45rem; }
.progress-track { height: 8px; background: #dfe6e8; border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background-color: var(--brand); border-radius: 999px; transition: width .5s ease;
  background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%);
  background-size: 20px 20px; animation: nn-stripes 1s linear infinite; }
@keyframes nn-stripes { from { background-position: 0 0; } to { background-position: 20px 0; } }
.progress-note { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
@media (prefers-reduced-motion: reduce) { .progress-fill { animation: none; transition: none; } }

/* Filter bar: pills for kinds, a segmented switch for the view */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border-bottom: 1px solid #d5dcdf; padding: .7rem 0; margin: .4rem 0 1.2rem;
           position: sticky; top: 0; background: var(--page); z-index: 1100;
           box-shadow: 0 0 0 100vmax var(--page); clip-path: inset(0 -100vmax); }   /* the bar's background runs edge to edge */
.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #c3cbd0; border-radius: 999px;
        padding: .3rem .8rem; cursor: pointer; display: inline-flex; align-items: center; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); background: var(--soft); }
.chip span { color: var(--muted); font-weight: 500; margin-left: .3rem; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; } .chip.active span { color: rgba(255, 255, 255, .75); }
.viewtoggle { margin-left: auto; display: inline-flex; border: 1px solid #c3cbd0; border-radius: 8px; overflow: hidden; font-size: .9rem; }
.viewtoggle a { padding: .3rem .85rem; text-decoration: none; color: var(--ink); font-weight: 600; border-left: 1px solid #c3cbd0; }
.viewtoggle a:first-child { border-left: 0; } .viewtoggle a:hover { background: var(--soft); }
.viewtoggle a.on { background: var(--brand); color: #fff; }
@media (max-width: 40rem) { .viewtoggle { margin-left: 0; } }

/* Notice cards: see the card section at the end of this file. */
.group-title { font-size: 1.15rem; margin: 2rem 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.group-title span { color: var(--muted); font-weight: 400; margin-left: .4rem; }
.empty-state { display: flex; align-items: center; gap: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin: .6rem 0 1.4rem; }
.empty-state img { width: 132px; height: 132px; flex: none; } .empty-state h2 { margin: 0 0 .3rem; } .empty-state .empty { margin: 0; }
@media (max-width: 40rem) { .empty-state { flex-direction: column; text-align: center; } }
.show-on-map { font: inherit; font-size: .9rem; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: .3rem .8rem; cursor: pointer; }
.show-on-map:hover { background: var(--brand-tint); }
.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }

/* Map */
.map { height: 28rem; border: 1px solid #c3cbd0; border-radius: 12px; overflow: hidden; margin: 0 0 .6rem; background: var(--soft); }
.leaflet-container { font: inherit; }
.leaflet-bar { border: 0 !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .25) !important; border-radius: 8px !important; overflow: hidden; }
#map .leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, .22); }
#map .leaflet-popup-content { margin: 12px 14px 10px; font-size: 14.5px; line-height: 1.4; }
.popup .tag { font-size: .66rem; padding: .14rem .45rem; }
.popup-title { font-weight: 700; color: var(--ink); margin: .45rem 0 .25rem; }
.popup-meta { color: var(--muted); font-size: .88rem; margin: 0 0 .45rem; }
.popup-links { margin: 0; } .popup-links a { margin-right: 1rem; font-weight: 600; }
#map .leaflet-popup-close-button { font-size: 20px; }
/* Pins: a filled disc per kind with the kind's icon in white; a hollow dashed disc for a pin outside the circle. */
/* Each kind has its own strong colour (groups.py), so the notices stand out from the softer food dots; white on each
   colour is at least 4.5 to 1. */
.pin { --pin: #52525b; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
       background: var(--pin); color: #fff; border: 2.5px solid #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 3px 8px rgba(0, 0, 0, .3); box-sizing: border-box; }
.pin .icon { width: 16px; height: 16px; margin: 0; stroke-width: 2.2; }
.pin-roads { --pin: #b45309; } .pin-planning { --pin: #1d4ed8; } .pin-environment { --pin: #047857; } .pin-energy { --pin: #6d28d9; }
.pin.outside { background: #fff; color: var(--pin); border: 2px dashed var(--pin); }
.pin-centre { width: 16px; height: 16px; background: var(--brand); border-width: 2px; }
.pin-spoke { stroke: #555; stroke-width: 1.5; }
.leaflet-marker-icon.pin-ring { pointer-events: none !important; }
.pin-ring .pin { pointer-events: auto; cursor: pointer; }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: .5rem 0 .3rem; font-size: .9rem; color: var(--text); }
.map-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.map-legend .pin { width: 22px; height: 22px; box-shadow: none; border-color: var(--line); } .map-legend .pin .icon { width: 12px; height: 12px; }
.map-legend .pin-centre { width: 14px; height: 14px; }
.map-wider { font: inherit; font-size: .92rem; font-weight: 600; background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: .5rem .9rem; cursor: pointer;
             box-shadow: 0 1px 5px rgba(0, 0, 0, .3); }
.map-wider:hover { background: var(--soft); }
.food-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin: .2rem 0 .3rem; padding: .55rem .9rem; background: #fff;
                 border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.food-controls label { font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; }
.food-controls input { width: 1.05rem; height: 1.05rem; margin: 0 .45rem 0 0; accent-color: var(--brand); }
.food-key { font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 1px #888; margin: 0 .3rem 0 .6rem; vertical-align: -1px; }
.dot-good { background: #00703c; } .dot-fair { background: #b58105; } .dot-poor { background: #d4351c; } .dot-other { background: #6f777b; }
.map-notes { margin: .3rem 0 0; } .map-notes summary { font-size: .9rem; } .map-notes p { margin: .4rem 0; }
@media (min-width: 64rem) {
  .map-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start;
    width: min(1400px, calc(100vw - 40px)); margin-left: calc(50% - min(700px, 50vw - 20px)); }
  .map-col { position: sticky; top: 3.9rem; }
  .map-layout .map { height: calc(100vh - 17.5rem); min-height: 22rem; }
  .list-col { position: sticky; top: 3.9rem; max-height: calc(100vh - 4.6rem); overflow-y: auto; padding: 2px .5rem 2px 2px; }
}

/* About and privacy */
/* About and Privacy open under a slim band of the home page's town, and the page's panel rises over it. */
.page-banner { height: 10rem; background: #e1eceb url("/static/art/hero-1100.webp") no-repeat right 0 top 18% / auto 190%; border-bottom: 1px solid #cfdfdc; }
.page-banner + .page { padding-top: 0; } .page-banner + .page .prose { margin-top: -4.5rem; position: relative; }
@media (max-width: 40rem) { .page-banner { height: 7rem; background-size: auto 260%; background-position: 70% center; } .page-banner + .page .prose { margin-top: -2.5rem; } }
.prose { max-width: 50em; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 35, 38, .05); padding: 1.6rem 2rem 1.2rem; }
@media (max-width: 40rem) { .prose { padding: 1.2rem 1.1rem .8rem; } } .prose li { margin-bottom: .6rem; } .prose h2 { margin-top: 1.8rem; } .prose h1 { margin-top: 0; }

/* Footer */
footer { background: var(--header); border-top: 3px solid var(--brand); margin-top: 3.5rem; padding: 1.8rem 0 2.6rem; font-size: .9rem; color: #c4d3d6; }
footer p { max-width: 60em; margin: 0 0 .7rem; }
.disclaimer { color: #e8f0f1; } footer .small { color: #a9bcc0; } footer a { color: #9fd3e8; }

/* Results: a tighter head so the map starts higher on the screen (it began more than halfway down a laptop screen). */
.crumb + .results-head { margin-top: -.3rem; }
body:has(.results-head) .page { padding-top: 1.2rem; }
.results-head h1 { font-size: 1.8rem; }
.results-head .caption { margin-bottom: .6rem; }
.results-head .refine { margin-bottom: .6rem; }
.progress-reading { display: grid; grid-template-columns: auto minmax(8rem, 16rem); align-items: center; gap: .3rem 1rem; max-width: none; margin: .2rem 0 .6rem; }
.progress-reading .progress-label { margin: 0; font-size: .95rem; }
.progress-reading .progress-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.progress-reading[hidden] { display: none; }
@media (max-width: 40rem) { .progress-reading { grid-template-columns: 1fr; } }
.filters { margin: .2rem 0 .9rem; }

/* Home: one big dark banner. The header runs straight into it, the 3D logo is shown large (there is too much in it to read
   at header size), then the headline and the search. The small header logo is hidden on this page so it is not shown twice. */
.home .brand picture { display: none; }
.brand-band { background: #122528; color: #dbe7e8; border-bottom: 3px solid var(--brand); padding: .6rem 0 2.6rem; }
.brand-band .brand-big { display: block; width: min(880px, 100%); height: auto; margin: 0 auto 1rem; }
.brand-band .hero-text { max-width: 46rem; margin: 0 auto; text-align: center; }
.brand-band .eyebrow { display: inline-block; margin: 0 0 .8rem; padding: .22rem .7rem; border-radius: 999px; background: rgba(92, 200, 194, .14); color: #8fe0db;
                       font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(92, 200, 194, .45); }
.brand-band h1 { color: #fff; font-size: 2.5rem; letter-spacing: -.025em; margin-bottom: .6rem; }
.brand-band .lead { color: #c6d6d8; font-size: 1.06rem; margin: 0 auto; }
.brand-band .search-panel { margin: 2rem 0 0; border-color: transparent; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.brand-band .progress { margin: 1.2rem 0 0; }
.brand-band .error-summary { margin: 1.4rem auto 0; max-width: 46rem; color: var(--text); }
@media (max-width: 40rem) { .brand-band h1 { font-size: 1.9rem; } .brand-band .hero-text { text-align: left; } .brand-band .search-panel { margin-top: 1.4rem; } }
.home header.site .wrap { height: 64px; }

/* Flood alerts and warnings near the place (results page, every view). Colours follow the agencies' own: amber for an
   alert, red for a warning, dark red for a severe warning. */
.flood-banner { display: flex; gap: .9rem; align-items: flex-start; border-radius: 12px; padding: .9rem 1.1rem; margin: .4rem 0 1rem;
                border: 1px solid; border-left-width: 6px; box-shadow: var(--shadow); }
.flood-banner.flood-3 { background: #fff7e6; border-color: #d97706; color: #5c3200; }
.flood-banner.flood-2 { background: #fdecea; border-color: #c62828; color: #5f1111; }
.flood-banner.flood-1 { background: #fbe3e3; border-color: #8b0000; color: #4a0000; }
.flood-banner.flood-note { background: #f3f6f7; border-color: #9aa8ae; color: var(--text); box-shadow: none; }
.flood-icon { width: 28px; height: 28px; flex: none; margin-top: .1rem; }
.flood-body { flex: 1; min-width: 0; }
.flood-title { font-weight: 700; font-size: 1.08rem; margin: 0 0 .15rem; color: inherit; }
.flood-means { margin: 0; }
.flood-more { margin: .45rem 0 0; } .flood-more summary { cursor: pointer; font-weight: 600; }
.flood-more ul { margin: .5rem 0 .3rem; padding-left: 1.1rem; } .flood-more li { margin: .2rem 0; }
.flood-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .08rem .45rem; border-radius: 4px; color: #fff; }
.flood-tag-3 { background: #b45309; } .flood-tag-2 { background: #c62828; } .flood-tag-1 { background: #8b0000; }
.swatch { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin: 0 .35rem 0 .2rem; vertical-align: -1px; }
.swatch-risk { background: rgba(37, 99, 235, .45); box-shadow: 0 0 0 1px rgba(37, 99, 235, .7); }
.flood-controls { margin-top: .4rem; }
.flood-banner[hidden] { display: none; }
.tag-flood { background: #e3effa; color: #0b3a66; } .tag-flood .dot { margin: 0 .4em 0 0; width: 9px; height: 9px; vertical-align: 0; }
.dot-flood { background: #2563eb; }


/* ===================================================================================================================
   Results page, rebuilt 01/12/2026. A map app: a dark search bar, then the list and the map side by side filling the
   screen, aligned to the same edges as the header. Notices are entries in one list (no boxes in boxes); the simple
   summary is each entry's main text. Labels in sentence case. The map's colours are muted so the notice pins lead.
   =================================================================================================================== */
.view-map .wrap { max-width: 1600px; }
.results .page { padding-top: 1.2rem; }

/* The search bar */
.search-bar { background: #163238; color: #d4e2e4; padding: .9rem 0 1.1rem; border-bottom: 1px solid #0d1f22; }
.sb-back { color: #9fd9d4; font-weight: 600; font-size: .92rem; text-decoration: none; }
.sb-back::before { content: "\2039"; margin-right: .45em; font-size: 1.2em; }
.sb-back:hover { color: #fff; text-decoration: underline; }
.sb-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .9rem 1.6rem; margin-top: .35rem; }
.sb-title { flex: 1 1 26rem; min-width: 0; }
.search-bar h1 { color: #fff; font-size: 2rem; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .3rem; }
.sb-sub { margin: 0; font-size: .98rem; color: #b8cdd0; } .sb-sub strong { color: #fff; }
:is(.search-bar, .results-tools) .refine { margin: 0; color: #d4e2e4; font-weight: 600; font-size: .92rem; }
:is(.search-bar, .results-tools) .refine .select { background-color: #1f4047; color: #fff; border: 1px solid #3a6168; height: 2.3rem; border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:is(.search-bar, .results-tools) .refine .select:hover, :is(.search-bar, .results-tools) .refine .select:focus { border-color: #9fd9d4; }
:is(.search-bar, .results-tools) .viewtoggle { margin: 0; display: inline-flex; background: #0f262a; border: 1px solid #3a6168; border-radius: 10px; padding: 3px; gap: 2px; }
:is(.search-bar, .results-tools) .viewtoggle a { color: #cfe0e2; border: 0; border-radius: 7px; padding: .32rem .9rem; font-size: .92rem; font-weight: 600; text-decoration: none; }
:is(.search-bar, .results-tools) .viewtoggle a:hover { background: #1f4047; color: #fff; }
:is(.search-bar, .results-tools) .viewtoggle a.on { background: #5cc8c2; color: #0f262a; }
@media (max-width: 40rem) { .search-bar h1 { font-size: 1.55rem; } .sb-row { align-items: flex-start; } }

/* Filters: one row at the top of the list */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .85rem 1.1rem; margin: 0; border-bottom: 1px solid var(--line); background: #fff; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff;
        border: 1px solid #cfd8dc; border-radius: 999px; padding: .28rem .75rem; cursor: pointer; }
.chip span:last-child { color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); } .chip.active span:last-child { color: #b8cdd0; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: #52525b; }
.chip-roads .chip-dot { background: #b45309; } .chip-planning .chip-dot { background: #1d4ed8; } .chip-environment .chip-dot { background: #047857; } .chip-energy .chip-dot { background: #6d28d9; }
.kind-pick { margin-left: auto; } .kind-pick .select { height: 2.1rem; font-size: .88rem; width: auto; max-width: 16rem; border-width: 1px; }
.list-col .progress, .entries-wrap .progress { margin: 0; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); background: #f6faf9; max-width: none; }
.list-col .progress-reading, .entries-wrap .progress-reading { grid-template-columns: 1fr minmax(6rem, 10rem); }
.list-col #one-kind, .entries-wrap #one-kind { margin: 0; padding: .75rem 1.1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .92rem; background: #fffaf0; }

/* Map view: list left, map right, one panel the height of the screen */
.map-layout { display: grid; grid-template-columns: minmax(360px, 470px) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px;
              overflow: hidden; box-shadow: var(--shadow); height: max(560px, calc(100vh - 2.5rem)); margin: 0 0 1.5rem; width: auto; gap: 0; align-items: stretch; }
.map-layout .map-col { order: 2; position: relative; top: auto; height: 100%; min-height: 0; }
.map-layout .map { height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.map-layout .list-col { order: 1; overflow-y: auto; border-right: 1px solid var(--line); position: static; max-height: none; padding: 0; }
.map-layout .filters { position: sticky; top: 0; z-index: 5; }
.leaflet-tile-pane { filter: saturate(1.08) contrast(1.06); }   /* full map colour (01/12/2026 22:18: "the colours are so washed out"); was saturate(.35) */
@media (max-width: 64rem) {
  .map-layout { grid-template-columns: 1fr; height: auto; }
  .map-layout .map-col { order: 1; height: 62vh; }
  .map-layout .list-col { order: 2; border-right: 0; border-top: 1px solid var(--line); }
}

/* List and grouped views: one centred column */
.view-all .entries-wrap, .view-grouped .entries-wrap { max-width: 860px; margin: 0 auto 2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.group-title { font-size: 1.05rem; margin: 0; padding: .8rem 1.25rem; background: #f6f8f9; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }

/* the pin of the entry being pointed at */
.pin.hot { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 4px 14px rgba(0, 0, 0, .45); z-index: 1000; position: relative; transition: transform .12s; }
.empty-state { margin: 0 auto 1.4rem; max-width: 860px; }

/* Sentence case for the small labels that were in capitals */
.tag, .tag-phase, .eyebrow, .flood-tag { text-transform: none !important; letter-spacing: 0 !important; }
.tag { font-size: .8rem; } .tag-phase { font-size: .76rem; } .eyebrow { font-size: .85rem; } .flood-tag { font-size: .78rem; }

/* ---- The header (01/12/2026, "blowing up the image spanning it across the whole header area and then having the
   nearby notices over the top"). On every page but the home page, the 3D town runs across the full width of the header,
   darkened on the left under the name and on the right under the links. The home page keeps a slim header, because its
   banner below is the full logo. ---- */
header.site { position: relative; background: #122528; overflow: hidden; }
body:not(.home) header.site { background: #122528 url("/static/art/header-scene.webp") center 58% / cover no-repeat; }
body:not(.home) header.site::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 37, 40, .94) 0%, rgba(18, 37, 40, .80) 26%, rgba(18, 37, 40, .18) 52%, rgba(18, 37, 40, .10) 70%, rgba(18, 37, 40, .70) 100%),
              linear-gradient(180deg, rgba(18, 37, 40, .35), rgba(18, 37, 40, 0) 45%); }
header.site .wrap { position: relative; height: 150px; }
.home header.site .wrap { height: 64px; }
.brand { gap: .75rem; }
.brand img.brand-icon { width: 46px; height: 46px; }
.brand img.brand-word { width: auto; height: 62px; margin-top: 14px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.home .brand img.brand-word { display: none; }
.home .brand img.brand-icon { width: 38px; height: 38px; }
header.site nav a { text-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-size: 1.02rem; }
@media (max-width: 40rem) {
  header.site .wrap { height: 92px; }
  body:not(.home) header.site { background-image: url("/static/art/header-scene-800.webp"); background-position: 62% 58%; }
  .brand img.brand-icon { width: 36px; height: 36px; }
  .brand img.brand-word { height: 40px; margin-top: 10px; }
}
@media (max-width: 22rem) { .brand img.brand-word { height: 32px; } }
/* List and grouped views: the place on its own line, the controls in one row under it; the flood alert as wide as the list. */
.view-all .sb-title, .view-grouped .sb-title { flex-basis: 100%; }
.view-all .search-bar .viewtoggle, .view-grouped .search-bar .viewtoggle { margin-left: auto; }
.view-all .flood-banner, .view-grouped .flood-banner { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (max-width: 26rem) { .brand { gap: .45rem; } .brand img.brand-icon { width: 30px; height: 30px; } .brand img.brand-word { height: 34px; margin-top: 8px; }
  header.site nav { gap: .8rem; } header.site nav a { font-size: .9rem; } }

/* ===================================================================================================================
   Surfaces (01/12/2026, "you love to do this colour on colour like white on white, it makes things look bad").
   Two tones, never a third in between: DARK (#122528) for the frame (header, search bar, the results ground, the map's
   Layers panel, footer) and WHITE for content, sitting directly on the dark or on a white page. No pale tint on white,
   no white box on near-white. Control edges at least 3:1 against what they sit on; text at least 4.5:1.
   Checked by static/dev/contrast_audit.js (run it on every page before showing a change).
   =================================================================================================================== */
:root { --dark: #122528; --dark-ink: #ffffff; --dark-ink-2: #c3d6d9; --edge: #6b7a82; --rule: #c4cdd1; --radius-s: 6px; }
html, body { background: #ffffff; }
header.site, .phase, footer, .search-bar, .brand-band { background-color: var(--dark); }
.phase { border-bottom: 1px solid #3d5c61; }
footer { border-top: 0; }
/* the results page sits on the dark ground, so the white list and map read as one clear panel */
body.results main { background: var(--dark); }
body.results .page { padding-top: 1.2rem; padding-bottom: 1.6rem; }
.search-bar { border-bottom: 0; padding-bottom: .4rem; }
.map-layout { background: var(--dark); border: 0; border-radius: 12px; box-shadow: none; }
.map-layout .list-col { background: #ffffff; border-right: 0; }
.view-all .entries-wrap, .view-grouped .entries-wrap { border: 0; border-radius: 12px; box-shadow: none; }
.leaflet-container { background: #9fb0b5; }
/* controls in the dark bar: white fields with dark text; the view switch outlined in light ink */
:is(.search-bar, .results-tools) .refine .select { background-color: #ffffff; color: var(--ink); border: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f1a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:is(.search-bar, .results-tools) .refine .select:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
:is(.search-bar, .results-tools) .refine label { color: var(--dark-ink-2); }
:is(.search-bar, .results-tools) .viewtoggle { background: transparent; border: 1px solid #8fb1b5; border-radius: var(--radius-s); padding: 2px; }
:is(.search-bar, .results-tools) .viewtoggle a { color: #ffffff; border-radius: 4px; }
:is(.search-bar, .results-tools) .viewtoggle a:hover { background: #2a4a50; }
:is(.search-bar, .results-tools) .viewtoggle a.on { background: #5cc8c2; color: var(--dark); }
/* the flood alert: a solid light panel with a strong edge, on the dark ground */
.flood-banner { border-width: 0 0 0 6px; box-shadow: none; }
.flood-banner.flood-3 { background: #fff1d6; } .flood-banner.flood-2 { background: #fde2df; } .flood-banner.flood-1 { background: #f9d3d3; }
.flood-banner.flood-note { background: #ffffff; border-color: var(--edge); }
/* chips, selects and small buttons on white: a real edge, small corners, no capsules */
.chip { border: 1px solid var(--edge); border-radius: var(--radius-s); background: #ffffff; }
.chip.active { background: var(--ink); border-color: var(--ink); }
.kind-pick .select { border: 1px solid var(--edge); border-radius: var(--radius-s); }
.filters { border-bottom: 1px solid var(--rule); }
/* hints inside the list: no tinted boxes; a coloured bar marks them */
.list-col .progress, .entries-wrap .progress { background: #ffffff; border-left: 4px solid var(--brand); }
.list-col #one-kind, .entries-wrap #one-kind { background: #ffffff; border-left: 4px solid #b45309; }
/* kind tags: solid colour with white text (each at least 4.5:1), not pastel fills */
.tag { border-radius: 4px; color: #ffffff !important; }
.tag-roads { background: #b45309; } .tag-planning { background: #1d4ed8; } .tag-environment { background: #047857; } .tag-energy { background: #6d28d9; }
.tag-food { background: #0f5132; } .tag-flood { background: #1e40af; }
.tag .dot { box-shadow: 0 0 0 1px #ffffff; }
/* home and info pages: content sits flat on white; no white boxes on a near-white page */
.home .page { padding-top: 2.4rem; }
.step, .cover { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.cover:hover { transform: none; box-shadow: none; }
.step-grid, .cover-grid { gap: 1.6rem 2rem; }
.step-n { border-radius: 4px; }
.prose { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.page-banner + .page .prose { margin-top: 0; }
.page-banner + .page { padding-top: 2rem; }
.empty-state { box-shadow: none; border: 1px solid var(--edge); }
body.results footer { margin-top: 0; border-top: 1px solid #3d5c61; }

/* ===================================================================================================================
   Notices as cards with defined sections, on a grey list ground (01/12/2026, 18:57). The list column is grey (#dde3e6)
   and each card white with a 1px #6b7a82 frame, so cards never melt into the ground. Inside a card: a band in the kind's
   colour with white text; the headline; THE SUMMARY in a panel framed in the kind's colour, with an "In plain English"
   tab, in the largest text; facts; small print; an action bar on grey, ruled off. Kind colours, white text on each >= 4.5:1:
   roads #b45309, planning #1d4ed8, environment #047857, energy #6d28d9, other #4b5563.
   =================================================================================================================== */
.map-layout .list-col, .entries-wrap { background: #dde3e6; }
.entries { padding: 12px; display: grid; gap: 12px; }
.filters { background: #ffffff; border-bottom: 1px solid var(--edge); }
.list-col .progress, .entries-wrap .progress, .list-col #one-kind, .entries-wrap #one-kind { margin: 12px 12px 0; border: 1px solid var(--edge); border-left-width: 5px; border-radius: 8px; }
.list-col .progress, .entries-wrap .progress { border-left-color: var(--brand); }
.list-col #one-kind, .entries-wrap #one-kind { border-left-color: #b45309; }
.group-title { background: var(--dark); color: #ffffff; border: 0; margin: 0; padding: .7rem 1.1rem; font-size: 1rem; }
.group-title span { color: var(--dark-ink-2); }

.card { --k: #4b5563; --k-tint: #eceef1; position: relative; margin: 0; padding: 0; background: #ffffff; border: 1px solid var(--edge); border-radius: 10px;
        overflow: hidden; box-shadow: 0 1px 2px rgba(16, 35, 38, .08); scroll-margin-top: 1rem; }
.card::before { display: none; }
.card-roads { --k: #b45309; --k-tint: #fbeee0; } .card-planning { --k: #1d4ed8; --k-tint: #e7eefc; }
.card-environment { --k: #047857; --k-tint: #e3f3ec; } .card-energy { --k: #6d28d9; --k-tint: #efe8fb; }
.card.picked, .card:target { outline: 3px solid var(--focus); outline-offset: 0; background: #ffffff; }
.card:hover { box-shadow: 0 2px 4px rgba(16, 35, 38, .1), 0 8px 22px rgba(16, 35, 38, .14); }
/* 1. band */
.card-band { display: flex; align-items: center; gap: .6rem; background: var(--k); color: #ffffff; padding: .45rem .9rem .45rem .75rem; font-size: .9rem; font-weight: 700; }
.card-band-kind { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.card-band-kind .icon { width: 1.05rem; height: 1.05rem; margin: 0; stroke-width: 2; }
.card-dist { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .25rem; color: #ffffff; font-weight: 700; white-space: nowrap; }
.card-dist .glyph { color: #ffffff; }
.card-dist-out { opacity: .85; font-weight: 600; }
/* 2. headline */
.card-body { padding: .85rem 1rem .2rem; }
.card h2 { font-size: 1.08rem; line-height: 1.35; margin: 0 0 .9rem; color: var(--ink); font-weight: 700; }
/* 3. the summary: the main part */
.summary { position: relative; margin: 0 0 .95rem; padding: 1.05rem 1rem .85rem; background: var(--k-tint); border: 2px solid var(--k); border-radius: 8px; }
.summary-tab { position: absolute; top: -.72rem; left: .8rem; margin: 0; padding: .08rem .55rem; background: var(--k); color: #ffffff; border-radius: 4px;
               font-size: .78rem; font-weight: 700; line-height: 1.35; }
.summary-text { margin: 0; font-size: 1.14rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.summary-pending { background: #ffffff; border-style: dashed; border-color: var(--edge); }
.summary-pending .summary-tab { background: var(--edge); }
.summary-wait { margin: 0 0 .55rem; color: var(--text); font-size: .95rem; }
.skeleton { display: grid; gap: .4rem; } .skeleton i { display: block; height: .62rem; border-radius: 4px; background: linear-gradient(90deg, #dfe5e8 25%, #eef1f3 50%, #dfe5e8 75%);
            background-size: 200% 100%; animation: shimmer 1.4s linear infinite; } .skeleton i:nth-child(2) { width: 90%; } .skeleton i:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } }
.preview { color: var(--text); font-size: .9rem; margin: 0 0 .8rem; } .preview-label { font-weight: 700; }
.summary-failed { margin: 0 0 .8rem; padding: .7rem .9rem; border: 2px solid var(--edge); border-radius: 8px; color: var(--text); }
/* 4. facts */
.facts { display: grid; gap: .45rem; margin: 0 0 .8rem; font-size: .93rem; }
.fact { display: grid; grid-template-columns: 7.4rem 1fr; gap: .1rem .8rem; align-items: baseline; }
.fact dt { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); }
.fact dt .glyph { color: var(--k); width: 1.05rem; height: 1.05rem; }
.fact dd { margin: 0; color: var(--text); }
.fact-say q { quotes: "\201c" "\201d"; }
.quoted { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.list-col .fact { grid-template-columns: 1fr; gap: 0; }
/* 5. small print */
.card-source { margin: 0 0 .75rem; font-size: .8rem; color: var(--muted); }
/* 6. action bar */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0; padding: .55rem .9rem; background: #eef1f3; border-top: 1px solid var(--edge); }
.act { font: inherit; font-size: .84rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); background: #ffffff;
       border: 1px solid var(--edge); border-radius: 6px; padding: .28rem .6rem; text-decoration: none; cursor: pointer; line-height: 1.25; }
.act .glyph { color: var(--k); }
.act:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; text-decoration: none; } .act:hover .glyph { color: #ffffff; }
.show-on-map.act { background: var(--k); border-color: var(--k); color: #ffffff; } .show-on-map.act .glyph { color: #ffffff; }
.verbatim-box { display: contents; }
.verbatim-box summary { list-style: none; margin: 0; } .verbatim-box summary::-webkit-details-marker { display: none; }
.verbatim-box[open] summary { background: var(--ink); color: #ffffff; border-color: var(--ink); } .verbatim-box[open] summary .glyph { color: #ffffff; }
.verbatim-box .verbatim { flex-basis: 100%; order: 10; white-space: pre-wrap; font-size: .86rem; line-height: 1.55; font-family: inherit; color: var(--text); background: #ffffff;
                          padding: .8rem .9rem; border: 1px solid var(--edge); border-radius: 6px; max-height: 20rem; overflow: auto; margin: .2rem 0 0; }
.vote { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; }
.vote-q { font-size: .8rem; color: var(--text); }
.vote button { font: inherit; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: .2rem; color: var(--ink); background: #ffffff;
               border: 1px solid var(--edge); border-radius: 6px; padding: .12rem .5rem; cursor: pointer; }
.vote button:hover { background: var(--ink); color: #ffffff; }
.vote .count { color: inherit; opacity: .75; }
.list-col .vote { margin-left: 0; }
@media (max-width: 40rem) { .fact { grid-template-columns: 1fr; gap: 0; } .vote { margin-left: 0; } .summary-text { font-size: 1.06rem; } }

/* Layers back under the map (18:58: "the key takes up too much with the layers ... what was under it"):
   one compact dark bar below the map, the key on one line. */
.map-layout .map-col { display: flex; flex-direction: column; }
.map-layout .map { flex: 1 1 auto; height: auto; min-height: 0; }
.map-panel { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; padding: .55rem .9rem; background: var(--dark);
             color: var(--dark-ink-2); font-size: .84rem; border-top: 1px solid #3d5c61; }
.map-panel-title { display: none; }
.map-panel .food-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; margin: 0; padding: 0; border: 0; background: none; font-size: .84rem; }
.map-panel .food-controls label { display: inline-flex; margin: 0; color: #ffffff; font-weight: 700; }
.map-panel .food-controls input { accent-color: #5cc8c2; }
.map-panel .food-key { display: inline; margin: 0; font-size: .8rem; color: var(--dark-ink-2); }
.map-panel .food-key[hidden] { display: none; }
.map-panel .dot { box-shadow: 0 0 0 1px #ffffff; border-color: transparent; margin: 0 .25rem 0 .55rem; }
.map-panel .swatch-risk { box-shadow: 0 0 0 1px #ffffff; }
.map-panel #food-status, .map-panel #flood-status { font-size: .78rem; color: var(--dark-ink-2); }
.map-panel .map-legend { display: flex; margin: 0; padding: 0; border: 0; gap: .2rem .9rem; font-size: .8rem; color: #ffffff; }
.map-panel .map-legend .pin { width: 18px; height: 18px; } .map-panel .map-legend .pin .icon { width: 10px; height: 10px; }
.map-panel .map-notes { margin: 0; } .map-panel .map-notes summary { font-size: .8rem; color: var(--dark-ink-2); margin: 0; }
.map-panel .map-notes[open] { flex-basis: 100%; } .map-panel .map-notes p { color: var(--dark-ink-2); }

/* Flood alert (01/12/2026, "the flood alert also looks basic and childish"): a structured warning panel. A solid
   block in the level's colour with a water icon; the level, what it means and the source; the areas in force, each linked
   to the agency, with when it was raised. White panel framed in the level's colour, on the dark ground.
   Levels: alert #b45309, warning #c62828, severe #7f1d1d. */
.flood-banner { --f: #b45309; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; padding: 0; margin: 0 0 1rem; background: #ffffff;
                border: 2px solid var(--f); border-radius: 10px; overflow: hidden; color: var(--ink); box-shadow: none; }
.flood-banner.flood-3, .flood-banner.flood-2, .flood-banner.flood-1 { background: #ffffff; }
.flood-banner.flood-2 { --f: #c62828; } .flood-banner.flood-1 { --f: #7f1d1d; }
.flood-banner[hidden] { display: none; }
.fb-side { background: var(--f); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.fb-icon { width: 2.1rem; height: 2.1rem; }
.fb-main { padding: .85rem 1.1rem; }
.fb-level { margin: 0 0 .15rem; font-size: 1.12rem; font-weight: 700; color: var(--f); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.fb-count { font-size: .78rem; font-weight: 700; color: #ffffff; background: var(--f); border-radius: 4px; padding: .05rem .45rem; }
.fb-means { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.fb-source { margin: 0; font-size: .8rem; color: var(--muted); }
.fb-areas { list-style: none; margin: 0; padding: .75rem 1.1rem; border-left: 1px solid var(--edge); display: grid; gap: .45rem; align-content: center; }
.fb-areas li { display: flex; gap: .55rem; align-items: baseline; }
.fb-dot { flex: none; width: .65rem; height: .65rem; border-radius: 2px; background: #b45309; transform: translateY(.05rem); }
.fb-dot-2 { background: #c62828; } .fb-dot-1 { background: #7f1d1d; }
.fb-area { display: flex; flex-direction: column; min-width: 0; }
.fb-area a { font-weight: 700; color: var(--ink); text-decoration-color: var(--f); text-underline-offset: .18em; }
.fb-meta { font-size: .78rem; color: var(--muted); }
.fb-more { display: block !important; } .fb-more summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--ink); margin: 0; }
.fb-more ul { list-style: none; padding: .45rem 0 0; margin: 0; display: grid; gap: .45rem; }
.flood-banner.flood-note { display: block; border-color: var(--edge); } .flood-note .fb-main { padding: .7rem 1rem; } .flood-note .fb-means { font-weight: 400; margin: 0; }
@media (max-width: 52rem) { .flood-banner { grid-template-columns: 3.2rem minmax(0, 1fr); } .fb-areas { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--edge); } }
.view-all .flood-banner, .view-grouped .flood-banner { max-width: 860px; margin-left: auto; margin-right: auto; }

/* Header scene v2 (01/12/2026 19:0x): the town zoomed out, on the right, with notices floating over it, blurred a little
   (static/art/header-scene-v2.webp, made by the plan's art/make_header_scene.py). The name sits on plain dark on the left;
   a soft shade behind the links on the right. */
body:not(.home) header.site { background: #122528 url("/static/art/header-scene-v2.webp?v=2") right center / cover no-repeat; }
body:not(.home) header.site::before { background: linear-gradient(90deg, rgba(18, 37, 40, 0) 0%, rgba(18, 37, 40, 0) 80%, rgba(18, 37, 40, .85) 100%); }
@media (max-width: 40rem) { body:not(.home) header.site { background-image: url("/static/art/header-scene-v2-1200.webp?v=2"); background-position: 85% center; }
  body:not(.home) header.site::before { background: rgba(18, 37, 40, .55); } }

/* Home: the scene larger, with small fake notices on thin lines out of its four pins (01/12/2026 18:57: "make the
   scene bigger put little lines and then card like notices with lines like text"). Positions are percentages of the
   stage, which is as tall as the picture: the picture fills the middle 68%, each pin's head is placed from the picture
   (brand-1099.webp: roads 18.9% 44.7%, planning 26.6% 47%, environment 72.1% 47.8%, energy 86.9% 53.6%). */
.brand-stage { position: relative; width: min(1400px, calc(100vw - 60px)); margin: 0 0 1rem calc(50% - min(700px, 50vw - 30px)); }
.brand-band .brand-stage .brand-big { width: 68%; max-width: none; margin: 0 auto; }
.fake-notices { position: absolute; inset: 0; pointer-events: none; }
.fn-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fn-wires polyline { fill: none; stroke: #c3d6d9; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
.fn-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.fn { --k: #4b5563; position: absolute; width: min(186px, 14.5%); transform: translateY(-50%); background: #ffffff; border-radius: 8px; overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.fn-left { right: 85%; } .fn-right { left: 85%; }
.fn-roads { --k: #b45309; } .fn-planning { --k: #1d4ed8; } .fn-environment { --k: #047857; } .fn-energy { --k: #6d28d9; }
.fn-band { margin: 0; display: flex; justify-content: space-between; gap: .4rem; white-space: nowrap; background: var(--k); color: #ffffff; font-size: .72rem; font-weight: 700; padding: .28rem .55rem; }
.fn-band span { opacity: .9; }
.fn-title { margin: .6rem .6rem .32rem; height: .4rem; width: 70%; border-radius: 3px; background: #b8c2c7; }
.fn-lines { margin: 0 .6rem .65rem; display: grid; gap: .32rem; } .fn-lines i { display: block; height: .4rem; border-radius: 3px; background: #b8c2c7; }
@media (max-width: 75rem) { .fake-notices { display: none; } .brand-band .brand-stage .brand-big { width: 86%; } }
@media (max-width: 52rem) { .brand-stage { width: 100%; margin-left: 0; } .brand-band .brand-stage .brand-big { width: 100%; } }
/* small line icons (glyph macro) and screen-reader-only text: restored after the 18:57 card rewrite dropped them */
.glyph { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.13em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flood-banner { align-items: stretch; }
.fact { grid-template-columns: 8.6rem 1fr; } .fact dt { white-space: nowrap; }
/* the links stay legible wherever the header scene's cards fall behind them */
body:not(.home) header.site nav { gap: .4rem; }
body:not(.home) header.site nav a { background: rgba(18, 37, 40, .9); border: 1px solid #3d5c61; border-radius: 6px; padding: .3rem .75rem; text-shadow: none; }
body:not(.home) header.site nav a:hover { background: #ffffff; color: var(--dark); text-decoration: none; }
@media (max-width: 40rem) { .fact { grid-template-columns: 1fr; gap: 0; } .fact dt { white-space: normal; } .card-body { padding: .8rem .85rem .2rem; } }
/* Results page: ONE banner behind the header, the independence strip and the search bar (19:44: "the banner on
   the results page still doesnt work"). The town (static/art/results-hero.webp, made by the plan's art/make_results_hero.py)
   is large on the right and already darkened and blurred, so the three bands are see-through over it. */
body.results { background: #122528 url("/static/art/results-hero.webp?v=1") right top / auto 420px no-repeat; }
body.results header.site, body.results .phase, body.results .search-bar, body.results main { background: transparent !important; }
body.results header.site::before { display: none; }
body.results header.site .wrap { height: 96px; }
body.results .phase { border-bottom: 1px solid rgba(255, 255, 255, .16); }
body.results .search-bar { padding-top: 1.1rem; padding-bottom: 1rem; }
body.results .search-bar h1 { font-size: 2.2rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
body.results .sb-sub, body.results .search-bar .refine label { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (max-width: 40rem) { body.results { background-image: url("/static/art/results-hero-1200.webp?v=1"); background-size: auto 300px; background-position: 70% top; }
  body.results header.site .wrap { height: 72px; } }
body.results .phase { background: rgba(18, 37, 40, .86) !important; border-top: 1px solid rgba(255, 255, 255, .12); }

/* Results page (01/12/2026 22:15 to 22:29): the independence line under "5 notices within ...", on two lines; the
   flood alert across the full width; one line just above the map with the notice filters on the left and the choices
   (distance, time, view) on the right, each set of choices in a see-through grey box; the notices and the map as two
   separate cards. */
.sb-phase { display: flex; align-items: flex-start; gap: .6rem; margin: 1.9rem 0 0; font-size: .88rem; line-height: 1.5;
  color: #ffffff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.sb-phase .tag-phase { flex: none; margin-top: .1rem; background: var(--brand); color: #ffffff; font-weight: 700; font-size: .74rem;
  padding: .12rem .5rem; border-radius: 4px; box-shadow: inset 0 0 0 1px #4fb3ae; text-shadow: none; }
.sb-phase > span:last-child { white-space: nowrap; }
@media (max-width: 40rem) { .sb-phase br { display: none; } .sb-phase > span:last-child { white-space: normal; } }

.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin: 0 0 1rem; }
.view-all .results-tools, .view-grouped .results-tools { max-width: 860px; margin-left: auto; margin-right: auto; }
.results-tools .filters { flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; gap: .5rem;
  position: static; box-shadow: none; }
.results-tools .kind-pick .select { max-width: 12rem; height: 2.3rem; }
.results-tools .filters .kind-pick { margin-left: 0; }
.results-tools .chip { height: 2.3rem; }
.results-tools .chip.active { background: #5cc8c2; border-color: #5cc8c2; color: var(--dark); }
.results-tools .chip.active span:last-child { color: var(--dark); }
.tools-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; margin-left: auto; min-width: 0; }
.tools-right .refine { gap: .6rem; min-width: 0; }
.refine-box { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .35rem .3rem .75rem;
  background: rgba(78, 90, 94, .62); border: 1px solid rgba(255, 255, 255, .38); border-radius: 8px; }
.tools-right .refine-box label { color: #ffffff; white-space: nowrap; }
@media (max-width: 40rem) { .tools-right { margin-left: 0; justify-content: flex-start; } }

/* the notices and the map: two cards with a gap between, each with its own edge */
.map-layout { gap: 1rem; background: transparent; border-radius: 0; overflow: visible; }
.map-layout .list-col { border-radius: 12px; border: 1px solid var(--edge); }
.map-layout .map-col { border-radius: 12px; border: 1px solid var(--edge); overflow: hidden; background: var(--dark); }

/* (01/12/2026 22:35: "make the all planning environment and water etc half in height so there is enough room under for
   other notice types") The filter buttons are half height, two rows to the height of the choices beside them, so places with
   more kinds (roads, energy, other) fill a second row instead of pushing the line down. Rows 6px apart, so each button's
   24px target area stays clear of the next (WCAG 2.5.8). */
.results-tools .filters { flex: 1 1 0; min-width: min(24rem, 100%); flex-wrap: nowrap; align-items: center; gap: .8rem; }
.results-tools .chip-set { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-content: center; gap: 6px .4rem; }
.results-tools .chip { height: 21px; padding: 0 .55rem; gap: .3rem; font-size: .78rem; border-radius: 4px; line-height: 1; }
.results-tools .chip .chip-dot { width: 7px; height: 7px; }
.results-tools .chip span:last-child { font-size: .74rem; }
.results-tools .kind-pick { flex: none; }
@media (max-width: 40rem) { .results-tools .filters { flex-wrap: wrap; } }

/* (01/12/2026 22:37: "the cards for the notices are self contained why not get rid of the white box containing them all
   together") No box round the notices: each card sits straight on the dark ground, lined up with the flood alert and the line
   above; the notes (summaries being written, one kind only) and the group headings sit on the dark too. */
.map-layout .list-col, .view-all .entries-wrap, .view-grouped .entries-wrap { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.map-layout .list-col { overflow-y: auto; padding-right: 10px; scrollbar-color: #6b7a82 transparent; }
.entries { padding: 0; gap: 12px; }
.list-col .progress, .entries-wrap .progress, .list-col #one-kind, .entries-wrap #one-kind { margin: 0 0 12px; }
.group-title { background: transparent; color: #ffffff; padding: 1rem 0 .5rem; margin: 0 0 12px; border-bottom: 1px solid var(--edge); }
.entries > .group:first-child .group-title { padding-top: 0; }
.group { display: grid; gap: 12px; }
.group .group-title { margin-bottom: 0; }
/* (01/12/2026 22:41: "move them up a tiny bit and make them a little bigger so the top ones are on the same top line as
   the within box") The buttons sit from the top of the line, level with the top of the Within box, 23 px tall; two rows
   (23 + 2 + 23) fill the box's 48 px exactly. Rows are 25 px centre to centre, so the 24 px target areas stay clear. */
.results-tools .filters { align-self: stretch; align-items: flex-start; }
.results-tools .chip-set { align-content: flex-start; gap: 2px .4rem; }
.results-tools .chip { height: 23px; padding: 0 .6rem; font-size: .82rem; }
.results-tools .chip .chip-dot { width: 8px; height: 8px; }
.results-tools .chip span:last-child { font-size: .78rem; }
.results-tools .kind-pick { align-self: center; }

/* (01/12/2026 22:42: "can we make the headers for the notices a little larger also. As well as things like the header
   for the flood alert, the title flood alert looks the same size and the other text") A clear order of sizes: each heading is
   plainly bigger than the text under it. Notice title 1.3rem (was 1.08, smaller than its summary at 1.14); the coloured band
   1.02rem (was .9); "Flood alert" 1.55rem (was 1.12, against 1rem under it); group headings 1.2rem. */
.card h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.005em; }
.card-band { font-size: 1.02rem; padding: .55rem .95rem .55rem .8rem; }
.card-band-kind .icon { width: 1.2rem; height: 1.2rem; }
.fb-level { font-size: 1.55rem; line-height: 1.2; margin: 0 0 .3rem; letter-spacing: -.01em; }
.fb-means { font-size: 1.05rem; }
.fb-icon { width: 2.5rem; height: 2.5rem; }
.group-title { font-size: 1.2rem; }
@media (max-width: 40rem) { .card h2 { font-size: 1.18rem; } .fb-level { font-size: 1.35rem; } }
/* (01/12/2026 22:44: "you have moved the notice types up too much same top line as withins box") Their top row now
   lines up with the tops of the white drop-downs (inside the Within box, and "Any kind of notice"), not the grey box's edge. */
.results-tools .chip-set { padding-top: 6px; gap: 3px .4rem; }
/* (01/12/2026 22:46: "when i was talking about headers i meant like "planning application" not the text under") The
   notice title goes back to its earlier size; the coloured band with the kind of notice is the header that grows. */
.card h2 { font-size: 1.08rem; line-height: 1.35; letter-spacing: 0; }
.card-band { font-size: 1.18rem; padding: .6rem 1rem .6rem .85rem; letter-spacing: -.005em; }
.card-band-kind .icon { width: 1.35rem; height: 1.35rem; }
.card-dist { font-size: 1rem; }
@media (max-width: 40rem) { .card h2 { font-size: 1.08rem; } .card-band { font-size: 1.08rem; } }
/* (01/12/2026 22:47: "map list group make the two that it isnt grey like the same colour as the box the within is in")
   The view switch wears the Within box's see-through grey, edge, corner and height; the chosen view stays teal. */
.tools-right .viewtoggle { background: rgba(78, 90, 94, .62); border: 1px solid rgba(255, 255, 255, .38); border-radius: 8px;
  padding: .3rem .35rem; gap: 3px; align-items: center; }
.tools-right .viewtoggle a { display: inline-flex; align-items: center; height: 2.3rem; padding: 0 .9rem; border-radius: 6px; color: #ffffff; }
.tools-right .viewtoggle a:hover { background: rgba(255, 255, 255, .16); color: #ffffff; }
.tools-right .viewtoggle a.on { background: #5cc8c2; color: var(--dark); }
/* (01/12/2026 22:49: "make sure there are boxes around the list and grouped to show they are buttons") Each view is its
   own outlined button inside the grey box: a light edge (over 3:1 against the grey) and a faint fill; the chosen one solid teal. */
.tools-right .viewtoggle { gap: 6px; }
.tools-right .viewtoggle a { border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); height: 2.3rem; }
.tools-right .viewtoggle a:hover { background: rgba(255, 255, 255, .2); border-color: #ffffff; }
.tools-right .viewtoggle a.on { border-color: #5cc8c2; background: #5cc8c2; }
.tools-right .viewtoggle a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* (01/12/2026 22:50: "make the Nearby Notices text bigger and reduce the size of the pin down to what it was
   originally") The wordmark's pin is back to its first length (art/make_wordmark_pin.py), so the picture is shorter (600 x 102)
   and the letters fill more of it: at 66 px tall the capitals are about 37 px (were about 26 px). The picture is moved down so
   the letters, not the pin, sit level with the round icon. Phone sizes keep the same width as before. */
.brand img.brand-word { height: 66px; margin-top: 18px; }
@media (max-width: 40rem) { .brand img.brand-word { height: 30px; margin-top: 8px; } }
@media (max-width: 26rem) { .brand img.brand-word { height: 26px; margin-top: 7px; } }
@media (max-width: 22rem) { .brand img.brand-word { height: 24px; margin-top: 6px; } }

/* Phone layout for the results page (01/12/2026 22:54: "can you look at the phone view, its a mess ... its all over the
   place we need better smarter layout for the phone view"). Everything full width and lined up, in the order a person uses it:
   1. Map / List / Grouped as one bar of three equal buttons; 2. one grey panel with the search choices in two aligned rows
   (Within [n] [unit] / Published in [time]); 3. the notice filters at a size a finger can hit, the kind drop-down full width
   under them. The banner and the flood alert are tightened, the map is shorter, and a card's coloured header stays one line. */
@media (max-width: 40rem) {
  body.results .search-bar { padding-top: .5rem; padding-bottom: .9rem; }
  body.results .search-bar h1 { font-size: 1.6rem; line-height: 1.15; }
  body.results .sb-sub { font-size: .9rem; line-height: 1.45; }
  .sb-phase { margin-top: .85rem; font-size: .8rem; line-height: 1.45; gap: .5rem; }

  .flood-banner { grid-template-columns: 2.8rem minmax(0, 1fr); margin-bottom: .9rem; }
  .fb-icon { width: 1.8rem; height: 1.8rem; }
  .fb-main { padding: .6rem .8rem; }
  .fb-level { font-size: 1.25rem; margin: 0 0 .15rem; }
  .fb-means { font-size: .98rem; margin: 0 0 .2rem; }
  .fb-source { font-size: .76rem; line-height: 1.4; }
  .fb-areas { padding: .5rem .8rem; }

  .results-tools { flex-direction: column; align-items: stretch; gap: .6rem; margin-bottom: .9rem; }
  .tools-right { order: -1; flex-direction: column; align-items: stretch; gap: .6rem; margin: 0; }
  .tools-right .viewtoggle { order: -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-right .viewtoggle a { justify-content: center; padding: 0 .4rem; }
  .tools-right .refine { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: .45rem .5rem;
    padding: .5rem .5rem .5rem .8rem; background: rgba(78, 90, 94, .62); border: 1px solid rgba(255, 255, 255, .38); border-radius: 8px; }
  .tools-right .refine-box { display: contents; }
  .tools-right .refine-box label { padding-right: .35rem; }
  .tools-right .refine .select { width: 100%; min-width: 0; }
  .tools-right #since { grid-column: 2 / span 2; }
  .results-tools .filters { flex: none; min-width: 0; flex-wrap: wrap; align-self: auto; gap: .5rem; }
  .results-tools .chip-set { flex: 1 1 100%; padding-top: 0; gap: .45rem; }
  .results-tools .chip { height: 32px; padding: 0 .7rem; font-size: .86rem; }
  .results-tools .kind-pick { flex: 1 1 100%; align-self: auto; }
  .results-tools .kind-pick .select { width: 100%; max-width: none; }

  .map-layout .map-col { height: auto; }
  .map-layout .map { height: 44vh; min-height: 280px; flex: none; }

  .card-band { font-size: .98rem; padding: .5rem .75rem; gap: .4rem; }
  .card-band-kind .icon { width: 1.15rem; height: 1.15rem; }
  .card-dist { font-size: .85rem; }
}
/* phones: a card's coloured header stays on one line ("0.5 miles" without "away"; slightly smaller text) */
@media (max-width: 40rem) { .card-band { font-size: .93rem; } .card-dist { font-size: .82rem; } .dist-away { display: none; } }

/* Landing page tidy-ups (01/12/2026 23:05: "Tidy those"):
   1. the "Independent" tag square-cornered, as on the results page (no capsule shapes);
   2. below 75rem the four example notices no longer vanish: they sit under the town as a row of four (a 2 by 2 grid on a
      phone), without the wires; on a phone the town and the lettering run edge to edge, so they are as big as the screen allows;
   3. "What it covers": each item's picture and words start from the top, so every row lines up;
   4. the Flood alerts tag in the flood alert's amber with a waves icon, as the alert on the results page. */
.phase .tag-phase { border-radius: 4px; }
@media (max-width: 75rem) {
  .fake-notices { display: grid; position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: .4rem auto 0; width: 86%; }
  .fn-wires, .fn-dot { display: none; }
  .fn { position: static; width: auto; transform: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
}
@media (max-width: 52rem) { .fake-notices { width: 100%; } }
@media (max-width: 40rem) {
  .brand-band .brand-stage { width: calc(100% + 2rem); margin-left: -1rem; margin-right: -1rem; }
  .fake-notices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: calc(100% - 2rem); margin: .3rem 1rem 0; }
  .fn-band { font-size: .7rem; }
}
.cover { align-items: flex-start; }
.tag-flood { background: #b45309; }
.tag-flood .icon-waves { width: 1em; height: 1em; margin-right: .35em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* The search's own progress bar sits on the dark ground (under the landing page's search box, or under the results page's
   line of choices): light words and a light track, so nothing is dark on dark (found 02/12/2026 in the slow-start test). */
.progress-search .progress-label { color: #ffffff; }
.progress-search .progress-note { color: var(--dark-ink-2); }
.progress-search .progress-track { background: rgba(255, 255, 255, .22); }
.results-tools + .progress-search { margin: -.3rem 0 1rem; }
.view-all .results-tools + .progress-search, .view-grouped .results-tools + .progress-search { max-width: 860px; margin-left: auto; margin-right: auto; }
.progress-search .progress-fill { background-color: #5cc8c2; }
