/* Shared by every page: theme colours, header, menus, footer, help contacts and the header buttons */
:root { --bg:#f7f8fa; --card:#fff; --text:#1d2433; --muted:#5b6578; --grid:#e3e7ee;
        --fc:#1f6feb; --warn:#b54708; --warnbg:#fff4e5; --high:#d92d20;
        --band:rgba(31,111,235,.18); --band-fade:rgba(31,111,235,.07); --footer-bg:#e9edf2; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#0f1218; --card:#171b23; --text:#e6e9ef; --muted:#9aa3b2; --grid:#2a303c;
          --fc:#58a6ff; --warn:#fdb022; --warnbg:#2b2112; --high:#f97066;
          --band:rgba(88,166,255,.22); --band-fade:rgba(88,166,255,.08); --footer-bg:#090b0f; }
}
* { box-sizing:border-box }
/* Plain links in the Floodlight blue, visited or not (:where keeps this below any styled link or button) */
:where(a) { color:var(--fc) }
:where(a:visited) { color:var(--fc) }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
       padding-top:var(--site-header-h, 46px) }
main { max-width:980px; margin:0 auto; padding:20px 16px 40px }
.site-header { position:fixed; top:0; left:0; right:0; z-index:200; background:var(--card);
               border-bottom:1px solid var(--grid); transform:translateY(0);
               transition:transform .22s ease; box-shadow:0 1px 0 rgba(0,0,0,.04) }
.site-header.is-hidden { transform:translateY(-100%); pointer-events:none }
@media (prefers-reduced-motion: reduce) { .site-header { transition:none } }
.site-header-inner { max-width:980px; margin:0 auto; padding:6px 12px 7px;
                     display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto;
                     gap:4px 8px; align-items:center }
.site-header-rows { grid-column:1; grid-row:1 / span 2; display:flex; flex-direction:column; gap:4px; min-width:0 }
.site-header-line--brand .site-header-title { font-size:13px; font-weight:700; letter-spacing:.01em; margin:0; min-width:0; line-height:1.2 }
.site-header-line--tools { display:flex; flex-wrap:nowrap; align-items:center; gap:6px; min-width:0; font-size:12px }
.brand { font-weight:800; color:var(--fc); text-decoration:none }
.brand span { color:var(--muted); font-weight:600 }
/* Header: the icon (public/floodlight-icon.svg) left of the text wordmark, sized to the text */
.brand-logo { display:inline-flex; align-items:center; gap:5px }
.brand-logo img { display:block; height:1.45em; width:auto; flex:none }
.brand .brand-word { color:inherit; font-weight:inherit }
.header-sep { display:none; color:var(--muted); font-weight:400 }
.header-river { font-weight:600; white-space:nowrap; flex-shrink:0; font-size:12px }
.location-menu { position:relative; display:inline-flex; align-items:center; margin:0; flex:0 1 auto; min-width:0 }
/* River menu (site-chrome.js): on a phone the button reads "Thames", to leave room for the location */
.river-menu { flex-shrink:0 }
.river-menu .river-word { display:none }
.sections-menu { position:relative; display:inline-flex; align-items:center; margin:0; flex:1 1 0; min-width:0 }
.sections-menu[hidden] { display:none }
.sections-menu-label { max-width:min(6.5rem,26vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.header-menu-wrap { grid-column:2; grid-row:1; align-self:start; margin-left:0 }
@media (min-width:768px) {
  .site-header-inner { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center;
                       justify-content:space-between; gap:10px 14px; padding:8px 16px }
  .site-header-rows { flex:1 1 auto; flex-direction:row; flex-wrap:wrap; align-items:center; gap:.35em }
  .site-header-line--brand .site-header-title { font-size:14px }
  .site-header-line--tools { font-size:14px; flex-wrap:wrap; gap:6px }
  .header-river { font-size:inherit }
  .river-menu .river-word { display:inline }
  .site-header-line--brand, .site-header-line--tools { display:contents }
  .header-sep { display:inline }
  .sections-menu-label { max-width:min(12rem,38vw) }
  .header-menu-wrap { flex-shrink:0; margin-left:auto }
  .location-menu, .sections-menu { flex:0 1 auto }
}
.location-menu-btn { font:inherit; font-size:12px; font-weight:600; line-height:1.2; display:inline-flex;
                     align-items:center; gap:0; padding:3px 4px 3px 7px; margin:0; border:1px solid var(--grid);
                     border-radius:6px; background:var(--bg); color:var(--text); cursor:pointer;
                     white-space:nowrap; max-width:100%; min-width:0 }
@media (min-width:768px) {
  .location-menu-btn { font-size:14px; line-height:1.25; gap:2px; padding:3px 6px 3px 10px; border-radius:8px }
}
.location-menu-btn:hover { border-color:var(--muted); background:var(--card) }
.location-menu-btn[aria-expanded="true"] { border-color:var(--muted); background:var(--card);
                                            box-shadow:0 0 0 1px var(--grid) inset }
.location-menu-btn .chev { flex:none; display:flex; align-items:center; justify-content:center;
                            width:18px; height:18px; margin:0 -1px 0 0; color:var(--muted) }
.location-menu-btn:hover .chev, .location-menu-btn[aria-expanded="true"] .chev { color:var(--text) }
.location-menu-btn .chev svg { display:block; width:18px; height:18px }
@media (min-width:768px) {
  .location-menu-btn .chev { width:20px; height:20px; margin:0 -2px 0 0 }
  .location-menu-btn .chev svg { width:20px; height:20px }
}
.location-menu-panel { position:absolute; top:calc(100% + 6px); left:0; z-index:10; min-width:11rem;
                       padding:6px; border-radius:10px; border:1px solid var(--grid); background:var(--card);
                       box-shadow:0 8px 24px rgba(0,0,0,.12); display:flex; flex-direction:column; gap:2px }
.location-menu-panel[hidden] { display:none }
.location-menu-panel a { display:block; padding:7px 10px; border-radius:8px; color:var(--text);
                         text-decoration:none; font-size:13px; font-weight:600; white-space:nowrap }
.location-menu-panel a:hover { background:var(--bg) }
.location-menu-panel a[aria-current="page"] { background:var(--fc); color:var(--card) }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
           clip:rect(0,0,0,0); white-space:nowrap; border:0 }
.header-menu-wrap { position:relative; flex-shrink:0 }
.burger-btn { font:inherit; display:inline-flex; align-items:center; justify-content:center;
              width:36px; height:36px; padding:0; margin:0; border:1px solid var(--grid); border-radius:8px;
              background:var(--bg); color:var(--text); cursor:pointer }
@media (min-width:768px) {
  .burger-btn { width:34px; height:28px; border-radius:8px }
}
.burger-btn:hover { border-color:var(--muted); background:var(--card) }
.burger-btn[aria-expanded="true"] { border-color:var(--muted); background:var(--card) }
.burger-icon { position:relative; width:22px; height:16px; display:block }
.burger-icon .bar { position:absolute; left:0; right:0; height:2px; border-radius:1px; background:currentColor;
                    transition:transform .2s ease, opacity .2s ease, top .2s ease }
.burger-icon .bar-top { top:0 }
.burger-icon .bar-mid { top:7px }
.burger-icon .bar-bot { top:14px }
.burger-btn[aria-expanded="true"] .bar-top { top:7px; transform:rotate(45deg) }
.burger-btn[aria-expanded="true"] .bar-mid { opacity:0 }
.burger-btn[aria-expanded="true"] .bar-bot { top:7px; transform:rotate(-45deg) }
@media (prefers-reduced-motion: reduce) { .burger-icon .bar { transition:none } }
.burger-layer[hidden] { display:none }
.burger-layer:not([hidden]) { display:block }
.burger-backdrop { position:fixed; inset:0; z-index:250; background:rgba(15,18,24,.45); border:0; padding:0;
                   margin:0; cursor:pointer }
.burger-panel { position:fixed; top:0; right:0; z-index:260; width:min(320px, 88vw);
                height:100vh; height:100dvh; max-height:100dvh; box-sizing:border-box;
                padding:calc(var(--site-header-h, 46px) + 16px) 20px 28px; overflow-y:auto;
                -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
                background:var(--card); border-left:1px solid var(--grid);
                box-shadow:-12px 0 40px rgba(0,0,0,.15) }
.burger-h { margin:0 0 10px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
            color:var(--muted) }
.burger-list { list-style:none; margin:0 0 20px; padding:0 }
.burger-list--nav { margin-top:24px; padding-top:20px; border-top:1px solid var(--grid) }
.burger-list li { margin:0 }
.burger-list a { display:block; padding:9px 0; color:var(--text); text-decoration:none; font-size:15px;
                 font-weight:600; line-height:1.3 }
.burger-list a:hover { color:var(--fc) }
.burger-list a[aria-current="page"] { color:var(--fc) }
.burger-list--nav a { font-size:14px; font-weight:600 }
body.burger-open { overflow:hidden }
.site-footer { margin:24px 0 0; padding:24px max(16px, calc((100% - 980px) / 2 + 16px)) 48px;
               background:var(--footer-bg); border-top:1px solid var(--grid) }
/* Full-width band; the content keeps main's 980 px column (the side padding centres it) */
.site-footer-brand { margin:0 0 12px; font-size:14px; font-weight:700; letter-spacing:.01em }
.site-footer-brand .brand { font-size:inherit }
.site-footer nav.sites { margin:0 0 4px }
.site-footer-links { display:flex; flex-wrap:wrap; gap:8px 18px; margin:18px 0 0; font-size:13px; font-weight:600 }
.site-footer-links a { color:var(--muted); text-decoration:none }
.site-footer-links a:hover { color:var(--fc) }
.site-footer-alerts { margin:18px 0 0; padding:12px 14px; border-radius:8px; border:1px solid var(--grid);
                      background:var(--bg); font-size:13px; line-height:1.5; color:var(--text) }
.site-footer-h { margin:0 0 8px; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
                 color:var(--muted) }
.site-footer-alert-text { margin:0 }
.site-footer-alert-text a { color:var(--fc); font-weight:600; text-decoration:none }
.site-footer-alert-text a:hover { text-decoration:underline; text-underline-offset:2px }
.site-footer-disclaimer { margin:16px 0 0; font-size:12px; line-height:1.5; color:var(--muted); max-width:52rem }
.site-footer-copy { margin:14px 0 0; font-size:12px; color:var(--muted) }
.site-footer-copy a { color:var(--fc); font-weight:600; text-decoration:none }
.site-footer-copy a:hover { text-decoration:underline; text-underline-offset:2px }
nav.sites { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px }
nav.sites a { padding:5px 11px; border-radius:999px; background:var(--card); color:var(--text); text-decoration:none; font-size:13px; font-weight:600; border:1px solid var(--grid) }
nav.sites a[aria-current="page"] { background:var(--fc); color:var(--card); border-color:var(--fc) }
.card { background:var(--card); border-radius:10px; padding:12px 14px 8px; margin-bottom:12px }
.card h2, .card-h1 { font-size:16px; margin:0 0 4px; color:var(--text); font-weight:650 }
.help-contacts { font-size:15px; line-height:1.45 }
.help-alert { background:var(--warnbg); color:var(--warn); padding:10px 12px; border-radius:8px; margin:0 0 12px; font-size:14px }
.help-h { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:20px 0 8px; font-weight:600 }
.help-intro { font-size:14px; color:var(--muted); line-height:1.45; margin:0 0 8px }
.help-list { margin:0; padding:0; list-style:none }
.help-item { padding:10px 0; border-top:1px solid var(--grid); display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline }
.help-name { font-weight:600; flex-basis:100%; color:var(--text) }
.help-note { font-size:14px; color:var(--muted); flex-basis:100%; line-height:1.45 }
.help-item a { font-weight:600; color:var(--fc); text-decoration:none; white-space:nowrap }
.help-item a.help-web { font-size:14px; font-weight:500; word-break:break-all; white-space:normal }
.help-muted { font-size:14px; color:var(--muted) }
.help-flood { display:flex; flex-wrap:wrap; gap:4px 12px; align-items:baseline; margin:12px 0 4px; padding:12px 14px; border:1px solid var(--fc); border-left-width:4px; border-radius:8px; background:var(--band-fade); scroll-margin-top:calc(var(--site-header-h, 46px) + 12px) }
.help-flood .help-h { flex-basis:100%; margin:0 0 2px }
.help-flood .help-name { font-size:17px }
.help-flood a { font-weight:600; color:var(--fc); text-decoration:none; white-space:nowrap }
.help-flood a.help-web { font-size:14px; font-weight:500; word-break:break-all; white-space:normal }
.help-foot { font-size:12px; color:var(--muted); margin:16px 0 0 }

/* Header buttons left of the menu: Info & emergency (/help) and Wildlife. Icons only on narrow screens. */
:root { --emerg-bg:#fef3f2; --emerg-line:#fda29b; --emerg-text:#b42318; --emerg-mark:#fff;
        --beaver:#9a6b3f; --beaver-dark:#5f3f22; --beaver-ink:#1d2433 }
@media (prefers-color-scheme: dark) {
  :root { --emerg-bg:#2d1613; --emerg-line:#7a2a22; --emerg-text:#fda29b; --emerg-mark:#2d1613;
          --beaver:#c8955f; --beaver-dark:#8a5d33; --beaver-ink:#10141b }
}
.header-menu-wrap { display:flex; align-items:center; gap:6px }
/* Same height, padding and corners as .location-menu-btn: the icon stands in for its chevron */
.header-action { display:inline-flex; align-items:center; justify-content:center; gap:6px;
                 padding:3px 5px; border:1px solid var(--grid); border-radius:6px; background:var(--bg); color:var(--text);
                 text-decoration:none; font-size:12px; font-weight:650; line-height:1.2; white-space:nowrap }
.header-action svg { display:block; width:18px; height:18px; flex:none }
.header-action--wildlife svg { width:24px; height:18px }
@media (min-width:768px) {
  .header-action { padding:3px 8px; border-radius:8px; font-size:14px; line-height:1.25 }
  .header-action svg { width:20px; height:20px }
  .header-action--wildlife svg { width:27px; height:20px }
}
.header-action:hover { border-color:var(--muted); background:var(--card) }
.header-action:focus-visible { outline:2px solid var(--fc); outline-offset:2px }
.header-action-label { display:none }
.header-action--emergency { background:var(--emerg-bg); border-color:var(--emerg-line); color:var(--emerg-text) }
.header-action--emergency:hover { background:var(--emerg-bg); border-color:var(--emerg-text) }
@media (min-width:860px) {
  .header-menu-wrap { gap:8px }
  .header-action { padding:3px 10px 3px 8px }
  .header-action-label { display:inline }
}

/* Questions & answers (/faq, /faq/<slug>, and the "Questions about <place>" card on place pages) */
.faq { line-height:1.55 }
.faq h1 { font-size:24px; line-height:1.25; margin:0 0 8px }
.faq h2 { font-size:17px; margin:22px 0 8px }
.faq h3 { font-size:15px; margin:16px 0 6px }
.faq-lead { color:var(--muted); margin:0 0 6px; max-width:64ch }
.faq-list { list-style:none; margin:0; padding:0; display:grid; gap:12px }
.faq-item a { font-weight:650; text-decoration:none; font-size:15.5px }
.faq-item a:hover { text-decoration:underline; text-underline-offset:2px }
.faq-item p { margin:2px 0 0; color:var(--muted); font-size:14px; max-width:70ch }
/* The hub's filter: topic chips and a place menu */
.faq-filter { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:14px 0 6px }
.faq-chips { display:flex; flex-wrap:wrap; gap:6px }
.faq-chip { display:inline-block; padding:5px 12px; border:1px solid var(--grid); border-radius:999px; font-size:13.5px;
            font-weight:600; text-decoration:none; color:var(--text); background:var(--card) }
.faq-chip:hover { border-color:var(--fc) }
.faq-chip[aria-current=true] { background:var(--fc); border-color:var(--fc); color:#fff }
.faq-place-pick { font-size:13.5px; color:var(--muted); display:inline-flex; align-items:center; gap:6px }
.faq-place-pick select, .faq-go { font:inherit; font-size:13.5px; padding:4px 8px; border:1px solid var(--grid); border-radius:8px;
            background:var(--card); color:var(--text) }
.faq-count { color:var(--muted); font-size:13px; margin:8px 0 10px }
.faq-none { color:var(--muted) }
/* A question that opens to its short answer (hub and place pages), with its tags below */
.faq-qs { gap:0 }
.faq-q { border-top:1px solid var(--grid); padding:10px 0 }
.faq-q:last-child { border-bottom:1px solid var(--grid) }
.faq-q summary { cursor:pointer; list-style:none; font-weight:650; font-size:15.5px; line-height:1.4; padding-left:20px; position:relative }
.faq-q summary::-webkit-details-marker { display:none }
.faq-q summary::before { content:''; position:absolute; left:3px; top:.42em; border:5px solid transparent; border-left:7px solid var(--fc);
            transition:transform .15s }
.faq-q details[open] summary::before { transform:rotate(90deg); transform-origin:3px 5px }
.faq-short { padding:6px 0 2px 20px; max-width:70ch; font-size:14.5px }
.faq-short p { margin:0 0 6px }
.faq-full a { font-weight:600; text-decoration:none }
.faq-tags { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0 0 20px }
.faq-answer .faq-tags { margin:0 0 16px }
.faq-tag { font-size:12px; padding:1px 8px; border-radius:999px; background:color-mix(in srgb, var(--fc) 12%, transparent);
           color:var(--fc); text-decoration:none; font-weight:600 }
.faq-tag-place { background:transparent; border:1px solid var(--grid); color:var(--muted) }
.faq-tag:hover { text-decoration:underline }
.faq-forecasts { color:var(--muted); font-size:14px; border-top:1px solid var(--grid); padding-top:12px; margin:18px 0 0 }
.faq-back { margin:0 0 10px; font-size:14px }
.faq-back a { text-decoration:none }
.faq-meta { color:var(--muted); font-size:13px; margin:0 0 8px }
.faq-body { max-width:70ch }
.faq-body p, .faq-body ul, .faq-body ol { margin:0 0 12px }
.faq-body li + li { margin-top:4px }
.faq-table { overflow-x:auto; margin:4px 0 14px }
.faq-table table { border-collapse:collapse; font-size:14px; min-width:100% }
.faq-table th, .faq-table td { text-align:left; padding:6px 10px; border-bottom:1px solid var(--grid); vertical-align:top }
.faq-table td:first-child { white-space:nowrap }
.faq-table th { color:var(--muted); font-weight:600; font-size:12.5px }
.faq-ask { margin:22px 0 0; color:var(--muted); font-size:14px }
.faq-more { margin-top:14px }
.faq-place h2 { margin-top:0 }
.faq-place .foot { margin:12px 0 0 }

/* River health pills (place pages' River health card and the river page's summary) */
.rh-pill { display:inline-block; padding:1px 8px; border-radius:999px; font-size:12px; font-weight:650; white-space:nowrap;
           background:color-mix(in srgb, var(--muted) 16%, transparent); color:var(--muted) }
.rh-pill.rh-good { background:color-mix(in srgb, #1a7f37 16%, transparent); color:#1a7f37 }
.rh-pill.rh-moderate { background:color-mix(in srgb, #d97706 18%, transparent); color:#b45309 }
.rh-pill.rh-poor { background:color-mix(in srgb, var(--high) 16%, transparent); color:var(--high) }
@media (prefers-color-scheme: dark) { .rh-pill.rh-good { color:#3fb950 } .rh-pill.rh-moderate { color:#fbbf24 } }
.rh-summary h2 { margin-top:0 }
.rh-summary .rh-lead { margin:4px 0 10px; line-height:1.5; color:var(--muted); font-size:14px }
.rh-stretches { list-style:none; margin:0; padding:0 }
.rh-stretch { padding:10px 0; border-top:1px solid var(--grid) }
.rh-stretch .rh-top { display:flex; justify-content:space-between; align-items:center; gap:10px }
.rh-places { margin:4px 0 0; font-size:13.5px }
.rh-why { margin:4px 0 0; font-size:13px; color:var(--text); line-height:1.45 }
.rh-summary .rh-cert, .river-health .rh-cert { color:var(--muted); font-size:12px }
.rh-summary .foot { margin:12px 0 0; font-size:12.5px; color:var(--muted) }
/* River health: how old the assessment is, and the groups pushing for proper testing */
.rh-age { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:var(--warnbg); color:var(--text); font-size:13.5px; line-height:1.5 }
.rh-age b { color:var(--warn) }
.river-health h3, .rh-act h3 { margin:14px 0 6px; font-size:15px }
.river-health p { line-height:1.5 }
.rh-act { margin:14px 0 0; padding:10px 14px 12px; border:1px solid var(--grid); border-left:4px solid var(--fc); border-radius:8px }
.rh-act h3 { margin-top:2px }
.rh-act p { margin:0 0 6px; font-size:14px; line-height:1.5 }
.rh-act ul { margin:0; padding-left:18px; font-size:14px; line-height:1.6 }
.river-health .rh-el .rh-cert { display:block; font-size:11.5px; margin-top:1px; color:var(--high) }
p.rh-act { padding:8px 12px; font-size:13.5px; line-height:1.6 }
