@font-face{font-family:"Bricolage Grotesque";font-weight:700;font-display:swap;src:url(/static/bricolage-grotesque-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-weight:700;font-display:swap;src:url(/static/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-weight:800;font-display:swap;src:url(/static/bricolage-grotesque-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-weight:800;font-display:swap;src:url(/static/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Atkinson Hyperlegible";font-weight:400;font-display:swap;src:url(/static/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Atkinson Hyperlegible";font-weight:400;font-display:swap;src:url(/static/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Atkinson Hyperlegible";font-weight:700;font-display:swap;src:url(/static/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Atkinson Hyperlegible";font-weight:700;font-display:swap;src:url(/static/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ==========================================================================================================
   Shoal's design language. One place for every colour, surface, spacing step and type size; the shared
   pieces below (card, section header, tide line, button, chip) are what every screen is built from.
   The look is the harbour: deep water, sea, foam, and the flag yellow of a beach flag. Nothing here is
   one-off: a new screen should need only these.
   ========================================================================================================== */
:root{
  /* the harbour palette */
  --deep:#0C3547;--deep-2:#0E3E53;--sea:#1F7A8C;--sea-ink:#16606F;--flag:#F4B400;--flag-ink:#6B4E00;--flag-soft:#FFF3CC;
  --foam:#EEF4F2;--pale:#DDEEF1;--soft:#CFE0E0;--ink:#14232B;--mute:#4F6068;--faint:#7A8B91;
  --line:#C9D6D2;--line-soft:#DCE6E3;--ok:#2E7D4F;--ok-bg:#DCEFE3;--bad:#B3261E;
  /* surfaces and elevation: paper on foam, lifted by a soft shadow and lit along its top edge */
  --surface:#fff;--surface-2:#F7FAF9;--sunk:#E4EDEA;
  --lit:inset 0 1px 0 rgba(255,255,255,.9);
  --shadow-1:0 1px 1px rgba(12,53,71,.04),0 2px 6px rgba(12,53,71,.05);
  --shadow-2:0 1px 2px rgba(12,53,71,.06),0 10px 28px rgba(12,53,71,.10);
  /* shape and space */
  --r-sm:8px;--r-md:12px;--r-lg:18px;--r-pill:999px;
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:20px;--s-6:28px;--s-7:40px;
  --gutter:clamp(16px,4.5vw,24px);
  /* type: Bricolage for display, Atkinson for reading; system fonts carry Arabic (neither face has it) */
  --display:"Bricolage Grotesque",system-ui,"Segoe UI","Noto Sans Arabic",sans-serif;
  --body:"Atkinson Hyperlegible",system-ui,"Segoe UI","Noto Sans Arabic","Noto Naskh Arabic",Tahoma,sans-serif;
  --t-xs:12.5px;--t-sm:14px;--t-md:16px;--t-lg:18px;--t-xl:clamp(20px,4.6vw,23px);--t-2xl:clamp(28px,7.4vw,40px);
  /* motion: one ease, short; everything has a still state under [data-calm] */
  --ease:cubic-bezier(.2,.7,.2,1);--quick:.16s;
  /* the tide line: a fine wave, the divider motif (section headers, the end of the header) */
  --tide:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Cpath d='M0 4 Q7 1 14 4 T28 4' fill='none' stroke='%23B5C9C4' stroke-width='1.3'/%3E%3C/svg%3E");
  --tide-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Cpath d='M0 4 Q7 1 14 4 T28 4' fill='none' stroke='%2364A3AE' stroke-opacity='.55' stroke-width='1.3'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--foam);color:var(--ink);font-family:var(--body);font-size:var(--t-md);line-height:1.5;padding-bottom:170px;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-synthesis:none;text-rendering:optimizeLegibility}
body.plain,body.mod{padding-bottom:var(--s-7)}
[hidden]{display:none!important}
a{color:var(--sea-ink);text-underline-offset:3px}
:focus-visible{outline:3px solid var(--flag);outline-offset:2px;border-radius:4px}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance;text-rendering:geometricPrecision}
p{text-wrap:pretty}
button{font:inherit;cursor:pointer;color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Arabic joins its letters: letter-spacing would break the words apart, and it reads better a little taller */
:lang(ar) .top h1,:lang(ar) .block-head h2,:lang(ar) .block>h2{letter-spacing:0}
:lang(ar) body{line-height:1.65}

/* ---------- header: the deep water, ending in a water line ---------- */
header.top{position:relative;background:linear-gradient(180deg,var(--deep) 0%,var(--deep-2) 100%);color:#fff;
  padding:max(16px,env(safe-area-inset-top)) var(--gutter) 30px;display:flex;flex-direction:column;gap:var(--s-3);isolation:isolate}
header.top::after{content:"";position:absolute;inset-inline:0;bottom:-1px;height:16px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'%3E%3Cpath d='M0 9 C150 2 300 2 450 8 S750 15 900 9 S1100 3 1200 7 V16 H0Z' fill='%23EEF4F2'/%3E%3C/svg%3E") bottom/100% 100% no-repeat}
/* phone: the date and "Need help?" share a line, so the title has the full width and keeps to one line */
.top-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"date help" "title title";align-items:center;gap:2px var(--s-3)}
.brand{display:contents}
.top-row .date{grid-area:date}
.top-row h1{grid-area:title}
.top-row .help{grid-area:help}
.date{font-size:var(--t-sm);line-height:1.45;min-height:1.45em;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top h1{font-weight:800;font-size:var(--t-2xl);line-height:1.08;letter-spacing:-.02em;margin-top:2px;min-height:1.08em}
.top h1 a,.top a{color:#fff;text-decoration:none}
.block-head .pill{background:var(--flag-soft);color:var(--flag-ink)}
.pill{font-size:var(--t-xs);padding:2px 9px;border-radius:var(--r-pill);background:rgba(244,180,0,.16);color:var(--flag);font-weight:700;white-space:nowrap}
.help{flex:none;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:var(--r-pill);
  padding:5px 12px;font-size:13px;font-weight:700;min-height:34px;min-width:88px;transition:background var(--quick)}
.help:hover{background:rgba(255,255,255,.16)}
.askbar{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:var(--r-md);padding:4px 5px 4px 14px;
  box-shadow:0 1px 0 rgba(255,255,255,.25),0 6px 18px rgba(0,0,0,.18);color:var(--deep)}
.askbar input,.askbar input[type=text],.askbar input[type=search]{border:0;outline:none;font:inherit;font-size:var(--t-md);color:var(--ink);flex:1;background:transparent;padding:10px 0;min-width:0;border-radius:0}
.askbar button{border:0;background:var(--flag);color:var(--ink);font-weight:700;border-radius:var(--r-sm);padding:10px 16px;min-height:42px}
.askbar:focus-within{box-shadow:0 0 0 3px rgba(244,180,0,.55),0 6px 18px rgba(0,0,0,.18)}
/* the signature: a shoal in the water line, one point for each thing live today (signature in app.js) */
/* the harbour scene (scene.js) fills the header behind its content; the header keeps room for the water at its foot */
.scene{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity 1.2s var(--ease)}
.scene.quick{transition-duration:.5s}
.scene.on{opacity:1}
body:not(.plain):not(.mod) header.top{padding-bottom:calc(var(--water) + 22px)}
:root{--water:clamp(48px,13vw,64px)}
#fps{position:fixed;top:8px;inset-inline-start:8px;z-index:9999;background:rgba(12,53,71,.9);color:#fff;font:12px/1.3 ui-monospace,monospace;padding:4px 8px;border-radius:6px}

/* area picker: a town row, and a neighbourhood row once a town is chosen. Rows scroll sideways on a phone.
   The first row's height is kept from the first paint, so nothing below jumps when the towns arrive. */
.regionbar{display:flex;flex-direction:column;gap:var(--s-2);margin:0 calc(-1 * var(--gutter));min-height:36px}
.regionbar.two{min-height:76px}
.regionrow{display:flex;gap:var(--s-2);overflow-x:auto;scrollbar-width:none;padding:0 var(--gutter)}
.regionrow::-webkit-scrollbar{display:none}
.regionbar .chip{flex:none;min-height:36px;padding:5px 14px;font-size:var(--t-sm);color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.28);white-space:nowrap}
.regionbar .chip:hover{background:rgba(255,255,255,.14)}
.regionbar .chip[aria-pressed=true]{background:var(--flag);border-color:var(--flag);color:var(--ink);font-weight:700}
.regionrow.sub .chip{font-size:13px;min-height:32px;padding:3px 12px;border-style:dashed}

/* ---------- layout ---------- */
main{max-width:640px;margin:0 auto;padding:var(--s-4) 0 0}
section.tab{display:flex;flex-direction:column;gap:var(--s-6)}
.block{display:flex;flex-direction:column;gap:var(--s-3);padding:0 var(--gutter)}
.rail{display:flex;gap:var(--s-3);overflow-x:auto;padding:2px var(--gutter) 10px;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding-inline:var(--gutter)}
.rail::-webkit-scrollbar{display:none}
.rail .card{flex:0 0 min(78vw,290px);scroll-snap-align:start}
.cols,.col{display:flex;flex-direction:column;gap:var(--s-6)}

/* the first paint: a still outline of Today in the same places, so nothing jumps when it fills in */
.skel .sk-card{gap:10px;min-height:118px;box-shadow:var(--lit)}
.skel i{display:block;height:12px;width:92%;border-radius:6px;background:var(--sunk)}
.skel i:first-child{width:38%;height:16px}
.skel i:last-child{width:64%}
.skel .sk-h{width:150px;height:20px;flex:none}
.col-slot:empty{display:none}

/* ---------- section header: the title, then a tide line to the edge ---------- */
.block-head{display:flex;align-items:center;gap:var(--s-3);min-height:32px}
.block-head h2,.block>h2{font-size:var(--t-xl);font-weight:700;letter-spacing:-.01em;color:var(--deep)}
.block-head::after{content:"";flex:1 1 24px;min-width:24px;height:8px;background:var(--tide) repeat-x 0 50%/28px 8px;order:1}
.block-head>:not(h2){order:2;flex:none}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:var(--s-3);padding:0 var(--gutter)}
.sheet-head h2{font-size:var(--t-xl);color:var(--deep)}
.sub{margin:-4px 0 0;color:var(--mute);font-size:15px}

/* ---------- card: paper on foam, lit along its top edge ---------- */
.card{position:relative;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:var(--s-4);
  display:flex;flex-direction:column;gap:var(--s-2);box-shadow:var(--lit),var(--shadow-1);min-width:0}
.card h3{font-size:var(--t-lg);line-height:1.22;font-weight:700;color:var(--ink)}
.card p{margin:0;font-size:15.5px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.card.dark{background:radial-gradient(120% 90% at 100% 0%,#14506A 0%,var(--deep) 60%);color:#fff;border-color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),var(--shadow-2)}
.card.dark h3{color:#fff}
.card.dark .meta,.card.dark .who{color:var(--soft)}
.card.dark .who strong{color:#fff}
.card.dark .acts button,.card.dark .acts a{color:var(--flag)}
.card.dark .tag{background:rgba(255,255,255,.12);color:#fff}
.card.dark .tag.live{background:var(--flag);color:var(--ink)}
.card.summary{border:1.5px solid var(--sea);box-shadow:var(--lit),var(--shadow-1),inset 4px 0 0 var(--sea)}
/* live conditions (weather and sea): a quieter, sea-tinted card */
.card.cond{background:linear-gradient(180deg,#F4FAFA 0%,var(--surface) 100%);border-color:var(--pale)}
.card.cond{padding:14px var(--s-4);gap:6px}
.card.cond h3{font-size:var(--t-md)}
.card.cond p{font-size:14.5px;line-height:1.45;color:#24363E}
.card.cond>.acts{border:0;padding:0;margin-top:-6px}
/* sponsored: always labelled, and set apart by a warm edge, never by rank */
.card.sponsored{border-color:#F1DE9C;box-shadow:var(--lit),var(--shadow-1),inset 0 3px 0 var(--flag)}
.card-head{display:flex;align-items:center;gap:10px}
.avatar{width:36px;height:36px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;background:var(--sea);color:#fff;box-shadow:inset 0 -2px 0 rgba(0,0,0,.12)}
.avatar.b{background:var(--flag);color:var(--ink)}
.who{display:flex;flex-direction:column;flex:1;min-width:0;font-size:13px;color:var(--mute);line-height:1.3}
.who strong{font-size:15px;color:var(--ink)}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;font-size:13px;color:var(--mute)}
.meta a{color:var(--sea-ink)}
p.meta{display:block;margin:0}

/* tags: a time or kind at the top of a card */
.tag{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:var(--t-xs);font-weight:700;padding:3px 9px;border-radius:var(--r-sm);background:var(--pale);color:var(--deep);font-variant-numeric:tabular-nums}
.tag.live{background:var(--flag);color:var(--ink)}
.tag.live::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.75}
.tag.out{background:transparent;border:1px solid var(--line);color:var(--mute);font-weight:400}
.tag.sponsor{background:var(--flag-soft);color:var(--flag-ink)}
.badge{font-size:12px;font-weight:700;color:var(--ok);background:var(--ok-bg);padding:2px 8px;border-radius:var(--r-sm)}
.closed{font-size:12px;color:var(--mute);border:1px solid var(--line);padding:1px 6px;border-radius:var(--r-sm)}

/* actions along the foot of a card: quiet until needed; Report sits apart at the end */
.acts{display:flex;flex-wrap:wrap;align-items:center;gap:2px 16px;margin-top:2px}
.acts button,.acts a,.link{border:0;background:none;padding:8px 0;min-height:36px;color:var(--sea-ink);font-weight:700;font-size:14px}
.acts a{text-decoration:none;display:inline-flex;align-items:center}
.acts button:hover,.acts a:hover{text-decoration:underline}
.acts button[aria-pressed=true]{color:var(--ok)}
.card>.acts{border-top:1px solid var(--line-soft);padding-top:4px;margin-top:4px}
.card.dark>.acts{border-top-color:rgba(255,255,255,.14)}
.acts .quiet{margin-inline-start:auto;color:var(--faint);font-weight:400}
.card.dark .acts .quiet{color:var(--soft)}
.link{text-decoration:underline;text-underline-offset:3px;font-weight:400;align-self:flex-start}
.panel{display:flex;flex-direction:column;gap:var(--s-2);margin-top:4px}
.empty{color:var(--mute);font-size:15px;padding:4px 0;margin:0}
/* an empty list says so kindly, and offers the next step */
.calm-empty{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-3);padding:var(--s-5) var(--s-4);border:1.5px dashed var(--line);border-radius:var(--r-lg);background:var(--surface-2)}
.calm-empty p{margin:0;color:var(--mute)}
.lead{font-size:var(--t-md);font-weight:700}
.written{background:var(--surface);border-inline-start:5px solid var(--sea);border-radius:var(--r-md);padding:12px 14px;box-shadow:var(--shadow-1)}
.written p{margin:0;white-space:pre-wrap}
.written .ai-note{font-size:13px;color:var(--mute);margin-bottom:6px;white-space:normal}
.ai-vote{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;margin-top:10px;font-size:14px}
.day{display:flex;align-items:center;gap:var(--s-3);font-family:var(--display);font-size:var(--t-lg);font-weight:700;color:var(--deep);margin-top:var(--s-2)}
.day::after{content:"";flex:1;height:8px;background:var(--tide) repeat-x 0 50%/28px 8px}

/* ---------- forms ---------- */
input[type=text],input[type=email],input[type=search],input[type=datetime-local],textarea,select{width:100%;font:inherit;font-size:16px;padding:12px 14px;border:1.5px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--ink);transition:border-color var(--quick)}
input:focus,textarea:focus,select:focus{border-color:var(--sea);outline:none;box-shadow:0 0 0 3px rgba(31,122,140,.18)}
textarea{resize:vertical}
.prompt{white-space:pre-wrap;font-size:13px;background:var(--pale);border-radius:10px;padding:10px;max-height:240px;overflow:auto;margin:6px 0}
details>summary{cursor:pointer;font-weight:700;padding:6px 0}
[aria-invalid=true]{border-color:var(--bad)!important}
.field{display:flex;flex-direction:column;gap:6px}
.field>span,legend{font-size:var(--t-sm);font-weight:700;color:var(--deep)}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row>*{flex:1 1 140px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.check input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--sea)}
fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.form{display:flex;flex-direction:column;gap:14px}
.msg{font-size:14px;margin:0}
.msg:empty{display:none}
.msg.ok{color:var(--ok);font-weight:700}
.flash{background:var(--ok-bg);color:var(--ok);font-weight:700;padding:12px 14px;border-radius:var(--r-md);margin:0 var(--gutter) var(--s-4);box-shadow:var(--shadow-1)}
.snapnote{color:var(--mute);font-size:13px;margin:0 var(--gutter) var(--s-3)}

/* ---------- chips and buttons ---------- */
.choices{display:flex;flex-wrap:wrap;gap:var(--s-2)}
.chip{border:1.5px solid var(--line);background:var(--surface);color:var(--deep);border-radius:var(--r-pill);padding:8px 15px;font-size:var(--t-sm);min-height:40px;
  transition:background var(--quick),border-color var(--quick),color var(--quick)}
.chip:hover{border-color:var(--sea)}
.chip[aria-pressed=true]{background:var(--deep);border-color:var(--deep);color:#fff;font-weight:700}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--deep);background:var(--deep);color:#fff;border-radius:var(--r-md);
  padding:11px 18px;font-weight:700;min-height:48px;text-decoration:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1px 2px rgba(12,53,71,.15);
  transition:background var(--quick),transform var(--quick)}
.btn:hover{background:#114760}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent;color:var(--deep);box-shadow:none}
.btn.ghost:hover{background:rgba(12,53,71,.06)}
.btn.flag{background:var(--flag);border-color:var(--flag);color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(107,78,0,.2)}
.btn.flag:hover{background:#FFC21A}
.btn.danger{background:transparent;color:var(--bad);border-color:var(--bad);box-shadow:none}
.btn:disabled{opacity:.6;cursor:wait}
.btns{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 var(--gutter)}
.kinds button{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:14px;text-align:start;display:flex;flex-direction:column;gap:2px;min-height:76px;color:var(--ink);box-shadow:var(--lit),var(--shadow-1);transition:border-color var(--quick)}
.kinds button:hover{border-color:var(--sea)}
.kinds strong{font-family:var(--display);font-size:17px;color:var(--deep)}
.kinds span{font-size:13px;color:var(--mute)}
.tiers{display:flex;flex-direction:column;gap:8px}
.tier{display:flex;gap:10px;align-items:center;border:1.5px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}
.tier input{width:20px;height:20px;accent-color:var(--sea)}
.tier strong{flex:1}
/* the Motion switch in Me */
.switch,.card.switch{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--s-3)}
.switch strong{display:block}
.switch span{font-size:13px;color:var(--mute)}
.toggle{position:relative;flex:none;width:52px;height:32px;border-radius:var(--r-pill);border:0;background:var(--line);transition:background var(--quick)}
.toggle::after{content:"";position:absolute;top:4px;inset-inline-start:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:inset-inline-start var(--quick) var(--ease)}
.toggle[aria-checked=true]{background:var(--sea)}
.toggle[aria-checked=true]::after{inset-inline-start:24px}

/* install banner */
#install{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:12px;margin:var(--s-6) var(--gutter) 0;box-shadow:var(--shadow-1)}
#install img{border-radius:10px}
#install strong{flex:1 1 140px}

/* ---------- the post button and the tab bar ---------- */
.fab{position:fixed;inset-inline-end:max(var(--gutter),calc(50% - 300px));bottom:calc(84px + env(safe-area-inset-bottom));z-index:30;width:58px;height:58px;border-radius:50%;border:0;background:var(--flag);color:var(--ink);
  display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 2px 4px rgba(12,53,71,.18),0 8px 22px rgba(12,53,71,.22);transition:transform var(--quick) var(--ease)}
.fab:hover{transform:translateY(-1px)}
nav.tabs{position:fixed;bottom:0;left:0;right:0;z-index:25;background:rgba(12,53,71,.97);display:flex;padding:6px 2px calc(8px + env(safe-area-inset-bottom));
  box-shadow:0 -1px 0 rgba(255,255,255,.06),0 -6px 20px rgba(12,53,71,.18)}
nav.tabs button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;color:var(--soft);font-size:12.5px;padding:4px 0;min-height:50px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
nav.tabs button::before{content:"";width:22px;height:3px;border-radius:2px;background:transparent;transition:background var(--quick),width var(--quick) var(--ease)}
nav.tabs button[aria-selected=true]{color:#fff;font-weight:700}
nav.tabs button[aria-selected=true]::before{background:var(--flag);width:28px}

/* the screens appear with a short rise; the text ends with no transform left on it */
@keyframes rise{from{opacity:0;transform:translateY(6px)}}
section.tab:not([hidden]){animation:rise .32s var(--ease) backwards}

/* ---------- plain pages (join, guidelines, privacy, sign-in) share the same pieces ---------- */
.plain main{padding:var(--s-4) var(--gutter) 0;display:flex;flex-direction:column;gap:var(--s-4)}
.plain main.page{padding-top:var(--s-4)}
.plain .card h2{font-size:var(--t-xl);color:var(--deep)}
.plain header.top{padding-bottom:34px}
.page{padding:18px var(--gutter)}

/* "Your Shoal minute": a dark player card with big captions; the header's shoal moves with the voice */
.brief{position:relative;overflow:hidden;border-radius:var(--r-lg);padding:var(--s-4) var(--s-4) var(--s-3);color:#fff;
  background:radial-gradient(130% 120% at 0% 0%,#1B6476 0%,var(--deep) 55%,#0A2A38 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),var(--shadow-2)}
.brief-head{display:flex;align-items:center;gap:var(--s-3)}
.brief h2{font-size:var(--t-xl);color:#fff;letter-spacing:-.01em}
.brief-sub{margin:2px 0 0;font-size:14px;color:var(--soft)}
.brief-mark{flex:none;width:52px;height:52px;border-radius:50%;background:var(--flag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12c3-4 7-6 11-6 3 0 5 2 7 6-2 4-4 6-7 6-4 0-8-2-11-6z' fill='%230C3547'/%3E%3Ccircle cx='16' cy='11' r='1.3' fill='%23F4B400'/%3E%3C/svg%3E") center/30px no-repeat;box-shadow:var(--shadow-1)}
.brief-status{margin:var(--s-2) 0 0;font-size:14px;color:var(--soft)}
.brief-status:empty{display:none}
.brief-lines{list-style:none;margin:var(--s-3) 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.brief-lines:empty{display:none}
.brief-lines li{font-family:var(--display);font-weight:700;font-size:clamp(17px,4.4vw,20px);line-height:1.3;color:rgba(255,255,255,.94)}
.brief-sources{margin-top:var(--s-3);font-size:13px;color:var(--soft)}
.brief-sources:empty{display:none}
.brief-sources summary{color:var(--flag);font-weight:700}
.brief-sources ol{margin:6px 0 0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px}
.brief-sources a{color:#fff}
.brief-ai{margin:6px 0 0}

/* the Seagull Water Score: a seagull with a speech bubble, and each beach out of five chips */
.gullcard{background:linear-gradient(180deg,#F4FAFB 0%,var(--surface) 60%);border:1px solid var(--pale);border-radius:var(--r-lg);padding:var(--s-4);
  box-shadow:var(--lit),var(--shadow-1);display:flex;flex-direction:column;gap:var(--s-3)}
.gull-top{display:flex;align-items:center;gap:var(--s-3)}
.gull{flex:none;width:clamp(92px,26vw,116px);aspect-ratio:120/104;margin-top:-6px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gull svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 4px rgba(12,53,71,.18))}
.gull .gull-body,.gull .gull-head,.gull .gull-wing,.gull .gull-beak{transform-box:fill-box}
.gull .gull-body{transform-origin:50% 100%;animation:gullstrut 2.4s ease-in-out infinite}
.gull .gull-head{transform-origin:20% 90%;animation:gullnod 2.4s ease-in-out infinite}
.gull .gull-shades{animation:gullglint 6s linear infinite}
.gull .gull-beak{transform-origin:0% 0%}
.gull.squawk .gull-beak{animation:gullbeak .14s ease-in-out 6 alternate}
.gull.squawk .gull-wing{transform-origin:90% 30%;animation:gullflap .18s ease-in-out 6 alternate}
.gull.squawk .gull-body{animation:gullhop .6s var(--ease) 1}
@keyframes gullstrut{0%,100%{transform:rotate(0)}25%{transform:rotate(-2.5deg) translateY(-1px)}75%{transform:rotate(2.5deg) translateY(-1px)}}
@keyframes gullnod{0%,40%,100%{transform:rotate(0)}50%{transform:rotate(-7deg)}60%{transform:rotate(3deg)}}
@keyframes gullglint{0%,88%,100%{opacity:1}92%{opacity:.75}}
@keyframes gullbeak{to{transform:rotate(22deg)}}
@keyframes gullflap{to{transform:rotate(-16deg)}}
@keyframes gullhop{0%,100%{transform:translateY(0)}40%{transform:translateY(-10px) rotate(-4deg)}}
@media (prefers-reduced-motion:reduce){.gull .gull-body,.gull .gull-head,.gull .gull-shades{animation:none}}
[dir=rtl] .gull{transform:scaleX(-1)}
.gull-talk{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-2)}
.gullcard h2{font-size:var(--t-lg);color:var(--deep)}
.gull-say{position:relative;margin:0;background:var(--surface);border:1px solid var(--line-soft);border-radius:14px;padding:10px 12px;font-size:15px;line-height:1.45;box-shadow:var(--shadow-1)}
.gull-say::before{content:"";position:absolute;top:-7px;inset-inline-start:52px;width:12px;height:12px;background:var(--surface);
  border-inline-start:1px solid var(--line-soft);border-top:1px solid var(--line-soft);transform:rotate(45deg)}

.gull-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--flag-ink)}
.gull-quip{display:block;font-family:var(--display);font-size:18px;line-height:1.25;color:var(--deep);margin-bottom:4px}
.gullcard{position:relative;overflow:hidden}
.gullcard::before{content:"";position:absolute;inset:-40% -30% auto auto;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(244,180,0,.22),rgba(244,180,0,0) 70%);pointer-events:none}
.gull-beta{margin:0;font-size:12.5px;color:var(--flag-ink);background:var(--flag-soft);border-radius:var(--r-sm);padding:6px 10px}
.gull-beaches{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.gull-beaches li{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line-soft)}
.gull-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
.gull-row strong,.gull-row a{font-size:15px;font-weight:700}
.gull-row a{color:var(--ink);text-decoration:none}
.gull-row a:hover{color:var(--sea-ink);text-decoration:underline}
/* five chips standing in a red paper carton; the ones the seagull took are only outlines */
.chips{position:relative;display:inline-flex;align-items:flex-end;gap:2px;flex:none;padding:0 5px 7px;height:30px}
.chips::after{content:"";position:absolute;inset-inline:0;bottom:0;height:13px;border-radius:2px 2px 6px 6px;
  background:linear-gradient(180deg,#E0533F,#C23B2B);clip-path:polygon(0 0,100% 0,88% 100%,12% 100%)}
.chips i{position:relative;z-index:0;display:block;width:5px;height:22px;border-radius:2px 2px 0 0}
.chips i:nth-child(1){transform:rotate(-9deg);height:19px}.chips i:nth-child(2){transform:rotate(-3deg)}
.chips i:nth-child(4){transform:rotate(4deg);height:20px}.chips i:nth-child(5){transform:rotate(10deg);height:18px}
.chip-on{background:linear-gradient(90deg,#E9B53A,#FFE08A 55%,#E2A92B)}
.chip-off{background:transparent;box-shadow:inset 0 0 0 1px #C9B98F;opacity:.7}
.gull-more{border-top:1px solid var(--line-soft);padding-top:4px}
.gull-harbour:empty{display:none}
.gull-harbour{display:flex;flex-direction:column;gap:6px;margin-top:var(--s-3)}
.gull-harbour h3{font-size:var(--t-md,16px);color:var(--deep);margin:0}
.chips-unknown{flex:none;display:grid;place-items:center;width:44px;height:30px;border-radius:6px;border:2px dashed #7A8A91;color:#4A5A61;font-weight:800}
.gull-how{font-size:13.5px;color:var(--mute)}
.gull-how ul{margin:6px 0 0;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px}

/* Today: local news as headlines that open the original */
.newslist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-lg);box-shadow:var(--lit),var(--shadow-1)}
.newslist li{display:flex;flex-direction:column;gap:2px;padding:12px var(--s-4)}
.newslist li+li{border-top:1px solid var(--line-soft)}
.newslist a{font-weight:700;color:var(--ink);text-decoration:none;line-height:1.35}
.newslist a:hover{color:var(--sea-ink);text-decoration:underline}

/* who runs Shoal: a quiet line at the foot of every page */
.legal{margin:var(--s-7) var(--gutter) 0;font-size:12.5px;line-height:1.5;color:var(--faint);text-wrap:pretty}
.plain .legal{margin:var(--s-5) 0 0}
@media (min-width:960px){.legal{margin-inline:0}}

/* ---------- moderator page ---------- */
.mod main{max-width:980px;padding:18px var(--gutter)}
.mod section{margin-bottom:30px;display:flex;flex-direction:column;gap:10px}
.mod h2{font-size:20px;display:flex;align-items:center;gap:10px;color:var(--deep)}
.count{display:inline-block;min-width:1.8em;padding:1px 7px;border-radius:6px;background:var(--deep);color:#fff;font-size:13px;text-align:center;font-family:var(--body)}
.mod .card{gap:6px}
.flag-note{color:var(--flag-ink);font-weight:700;font-size:14px}
.usage{display:flex;flex-direction:column;gap:6px}
.usage-row{display:grid;grid-template-columns:minmax(140px,260px) 1fr 3.5em;gap:10px;align-items:center;font-size:14px}
.usage-row meter{width:100%;height:14px}
.usage-row strong{text-align:end}
.version{border-top:1px solid var(--line);padding-top:8px}

/* Services: council links as tappable cards */
.linkgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.linkcard{display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-md);padding:12px 14px;text-decoration:none;color:var(--ink);min-height:64px;box-shadow:var(--lit),var(--shadow-1);transition:border-color var(--quick),box-shadow var(--quick)}
.linkcard strong{font-family:var(--display);font-size:17px;color:var(--deep)}
.linkcard span{font-size:14px;color:var(--mute)}
.linkcard::after{content:"Opens the council's site ↗";font-size:12px;color:var(--sea-ink);margin-top:2px}
.linkcard:hover,.linkcard:focus-visible{border-color:var(--sea);box-shadow:var(--lit),var(--shadow-2)}

/* ---------- Motion: [data-calm] on <html> (the Motion switch in Me, or the system's reduced-motion setting) ---------- */
[data-calm] *,[data-calm] *::before,[data-calm] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* tablets: the phone layout, a little wider */
@media (min-width:640px) and (max-width:959px){
  main{max-width:760px}
  .fab{inset-inline-end:max(20px,calc(50% - 360px))}
  .rail .card{flex-basis:300px}
}

/* computers: a website layout, not a stretched phone. Tabs move to a bar along the top, content gets a proper
   width, and each screen uses columns or a grid. Moderator and plain pages are left alone. */
@media (min-width:960px){
  body:not(.mod):not(.plain){display:flex;flex-direction:column;min-height:100vh;padding-bottom:0}
  body:not(.mod):not(.plain) header.top{order:1;padding:24px max(32px,calc((100% - 1180px)/2)) calc(var(--water) + 18px);display:grid;
    grid-template-columns:auto minmax(320px,560px) 1fr;grid-template-areas:"brand ask help" "regions regions regions";
    align-items:center;gap:18px 40px}
  body:not(.mod):not(.plain) .top-row{display:contents}
  header.top .brand{grid-area:brand;display:block}
  header.top .help{grid-area:help;justify-self:end}
  header.top .askbar{grid-area:ask}
  header.top .regionbar{grid-area:regions;margin:0}
  .regionrow{flex-wrap:wrap;overflow:visible;padding:0}
  .top h1{font-size:40px}

  nav.tabs{order:2;position:sticky;top:0;bottom:auto;left:auto;right:auto;z-index:20;background:#fff;
    border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(255,255,255,.8);padding:0 max(32px,calc((100% - 1180px)/2));gap:2px;justify-content:flex-start}
  nav.tabs button{flex:0 0 auto;flex-direction:row;min-height:56px;padding:0 20px;font-size:16px;color:var(--mute);border-bottom:3px solid transparent;overflow:visible}
  nav.tabs button::before{display:none}
  nav.tabs button:hover{background:var(--foam);color:var(--ink)}
  nav.tabs button[aria-selected=true]{color:var(--deep);font-weight:700;border-bottom-color:var(--flag)}

  main{order:3;flex:1;width:100%;max-width:1244px;padding:36px 32px 110px}
  .block{padding:0}
  .rail{padding:2px 0 4px;flex-wrap:wrap;overflow:visible;scroll-snap-type:none}
  .rail .card{flex:1 1 280px;max-width:420px}
  .flash{margin:0 0 20px}
  #install{margin:28px 0 0}
  .sheet-head,.kinds{padding:0}
  .card{transition:box-shadow var(--quick),border-color var(--quick)}
  .card:hover{border-color:var(--line);box-shadow:var(--lit),var(--shadow-2)}
  .card.dark:hover{border-color:transparent}

  /* Today: what's on, beside what neighbours posted */
  .cols{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:44px;align-items:start}
  .col{gap:32px}
  /* Ask: the question and its answer, beside questions neighbours asked */
  #t-ask{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:44px;align-items:start}
  /* Meet up and Local: a grid of cards */
  #t-meet .block,#t-local .form{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px;align-items:start}
  #t-meet .block>:not(.card),#t-local .block>:not(.form){grid-column:1/-1}
  #t-local .block{display:flex;flex-direction:column}
  #t-local .form{display:grid}
  #t-local input[type=search]{max-width:520px}
  .day{margin-top:14px}
  .linkgrid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
  #t-services .block>:not(.linkgrid){max-width:760px}
  #t-me,#t-view{max-width:780px}
  #t-me .block,#t-view .block{max-width:none}
  .fab{inset-inline-end:36px;bottom:36px;width:62px;height:62px}
  .plain main{max-width:760px;margin:0 auto}
}

.hp { position: absolute; left: -9999px; }

/* water tab */
.wq-top{gap:6px}
.wq-premium{border:2px solid var(--flag);background:#FFFBEA}
.wq-premium h3{color:var(--deep)}
.wq-recon{position:relative;display:flex;align-items:center;gap:8px;min-width:140px}
.wq-recon span{display:block;height:10px;border-radius:5px;background:var(--sea);max-width:100px}
.wq-recon em{font-style:normal;font-weight:700;font-size:13px}
.wq-target{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#0C3547;color:#fff;font-weight:700;font-size:12px;border:2px solid #F4B400}
.wq-hist{width:100%;height:auto;background:var(--foam);border-radius:8px}
.wq-mapwrap{display:grid;grid-template-columns:1fr;gap:12px}
.wq-mapcol{display:flex;flex-direction:column;gap:8px;min-width:0}
.wq-side{gap:8px;max-height:70vh;overflow:auto}
.wq-side h3{font-size:18px}
.wq-side p{margin:0}
.wq-side-close{align-self:flex-end;font-size:13px}
.wq-side-head{display:flex;align-items:center;gap:12px}
.wq-side-head strong{color:var(--deep)}
.wq-dot-sm{width:34px;height:34px;box-shadow:0 0 0 4px color-mix(in srgb,var(--lv,#999) 20%,transparent)}
.wq-sidelist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.wq-sidelist .wq-place{width:100%}
.wq-health{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding-top:10px}
.wq-health h4{font-family:var(--display);font-size:15px;margin:0}
.wq-health p{margin:0}
.wq-legend-row{flex-direction:row;flex-wrap:wrap}
.tier-one{font-size:18px;margin:0}
.wq-reportpage main{max-width:860px}
.wq-report-page{gap:16px}
.wq-report-page h2{font-size:19px}
.wq-card{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.wq-card h3{font-size:16px}
.wq-sources{font-size:13px;margin:4px 0 0;padding-left:18px}
@media print{.noprint,nav.tabs,.fab{display:none!important}body{background:#fff}.card{break-inside:avoid;border-color:#bbb}}
.wq-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wq-sample{border-left:6px solid var(--lv)}
.wq-sampleform .field input,.wq-sampleform .field select,.wq-sampleform .field textarea{width:100%}
.wq-depth{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:var(--mute)}
.wq-depth .chip{min-height:32px;padding:3px 11px;font-size:13px}
.wq-ramp{display:inline-flex;align-items:center;gap:2px}
.wq-ramp em{font-style:normal;margin:0 4px}
.wq-legend i.sq{border-radius:2px;width:16px}
.wq-beta{align-self:center;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:#FFF3CC;color:#6B4E00;white-space:nowrap}
.wq-subtabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin-top:6px}
.wq-subtabs button{flex:none;background:none;border:0;border-bottom:3px solid transparent;padding:10px 12px;font-size:15px;color:var(--mute);min-height:44px}
.wq-subtabs button[aria-selected=true]{color:var(--deep);font-weight:700;border-bottom-color:var(--flag)}
.wq-body{display:flex;flex-direction:column;gap:22px}
.wq-ask{display:flex;gap:8px}
.wq-ask input{flex:1;min-width:0;font:inherit;font-size:16px;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff}
.wq-pickers{display:flex;flex-direction:column;gap:10px}
.wq-pickers select{font:inherit;font-size:16px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;width:100%}
.wq-pickers .chip{min-height:38px;padding:6px 12px;font-size:14px}
.wq-hero{border-width:2px;border-color:var(--lv,var(--line));gap:10px}
.wq-verdict{display:flex;align-items:center;gap:14px}
.wq-dot-big{flex:none;width:56px;height:56px;border-radius:50%;background:var(--lv,var(--mute));box-shadow:0 0 0 6px color-mix(in srgb,var(--lv,#999) 20%,transparent)}
.wq-verdict strong{display:block;font-family:var(--display);font-size:30px;line-height:1.05;color:var(--deep)}
.wq-verdict span{color:var(--mute);font-size:15px}
.wq-title{margin:0;font-weight:700}
.wq-lines{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.wq-strip{margin:0}
.wq-strip svg{width:100%;height:84px;display:block}
.wq-marks{position:relative;height:18px;font-size:12px;color:var(--mute)}
.wq-marks span{position:absolute;top:2px;border-left:1px solid var(--line);padding-left:3px}
.wq-marks span.noon{color:var(--line)}
.wq-ax{font-size:5px;fill:var(--mute);font-family:var(--body)}
.wq-outlook{margin:0;font-weight:700;color:var(--deep)}
.wq-places{display:grid;grid-template-columns:1fr;gap:8px}
.wq-place{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;text-align:left;min-height:48px}
.wq-place[aria-pressed=true]{border:2px solid var(--deep)}
.wq-place i{flex:none;width:14px;height:14px;border-radius:50%;background:var(--lv)}
.wq-place span{flex:1}
.wq-place b{font-size:14px;color:var(--lv)}
.wq-badge{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;color:#fff;background:var(--lv,var(--mute))}
.wq-details summary{cursor:pointer;font-weight:700}
.wq-details h4{font-family:var(--display);font-size:15px;margin:10px 0 4px}
.wq-table{width:100%;border-collapse:collapse;font-size:14px}
.wq-table th,.wq-table td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.wq-table th[scope=row]{font-weight:400;color:var(--mute);width:55%}
.wq-spills{font-size:13px;white-space:nowrap}
.wq-scroll{overflow-x:auto}
.wq-pts{font-weight:700;color:var(--deep);font-variant-numeric:tabular-nums;width:44px}
.wq-rules{margin:6px 0 0;padding-left:0;list-style:none;font-size:14px}
.wq-small{font-size:13px;color:var(--mute);margin:0}
.wq-map{height:64vh;min-height:380px;border-radius:18px;border:1px solid var(--line);overflow:hidden;background:#F4F7F8}
.wq-map.wq-pickmap{height:300px;min-height:240px;margin:8px 0}
.wq-coords{margin:8px 0}.wq-coords summary{cursor:pointer;color:var(--muted,#586C75)}
.wq-checkline[data-key="much_higher"],.wq-checkline[data-key="much_lower"]{color:#B3261E;font-weight:600}
.wq-report{margin-top:8px}
.wq-heavy{font-weight:600}
.wq-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 12px;margin:6px 0}
.wq-filter-text{grid-column:1/-1}
.wq-samplerow{border:1px solid var(--line);border-radius:12px;margin:6px 0;background:var(--card,#fff)}
.wq-samplerow summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 12px;cursor:pointer;list-style:none;min-height:44px}
.wq-samplerow summary::-webkit-details-marker{display:none}
.wq-samplerow summary::before{content:"\25B8";color:var(--mute)}
.wq-samplerow[open] summary::before{content:"\25BE"}
.wq-r-when{font-size:13px;color:var(--mute);min-width:9.5em}.wq-r-place{flex:1 1 10em}.wq-r-val{font-size:14px}
.wq-r-flag{font-size:12px;font-weight:600;color:#B3261E;border:1px solid #B3261E;border-radius:999px;padding:1px 8px}
.wq-r-body{padding:0 12px 12px}
.wq-toggles .chip{min-height:34px;padding:4px 11px;font-size:13px}
.wq-replay{display:flex;align-items:center;gap:10px}
.wq-replay input{flex:1;accent-color:var(--sea)}
.wq-replay .btn{min-height:40px;padding:6px 14px}
.wq-replay-at{min-width:120px;font-size:14px;font-weight:700;color:var(--deep);text-align:right}
.wq-legend{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--mute)}
.wq-legend span{display:inline-flex;align-items:center;gap:5px;margin-right:12px}
.wq-legend i{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--lv)}
.wq-town{font-family:var(--display);font-weight:700;font-size:12px;color:#36505C;white-space:nowrap;text-shadow:0 0 3px #fff,0 0 3px #fff}
.wq-pop{display:flex;flex-direction:column;gap:3px;font-family:var(--body);font-size:13px;max-width:280px}
.wq-pop strong{font-size:14px}
.wq-spark{width:100%;height:auto}
.wq-rivers{display:grid;grid-template-columns:1fr;gap:12px}
.wq-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wq-stats div{display:flex;flex-direction:column;background:var(--foam);border-radius:10px;padding:8px 10px}
.wq-stats b{font-family:var(--display);font-size:19px;color:var(--deep)}
.wq-stats span{font-size:12px;color:var(--mute)}
.wq-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--pale)}
.wq-bar span{display:block;height:100%;background:var(--lv)}
.wq-modal{position:fixed;inset:0;z-index:2000;background:rgba(12,53,71,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.wq-modal-card{max-width:480px;gap:12px}
.wq-modal-card h2{font-size:24px}
.wq-modal-card p{margin:0}
@media (min-width:960px){
  .wq-mapwrap{grid-template-columns:minmax(0,1fr) 340px;align-items:start}
  .wq-side{max-height:680px;position:sticky;top:72px}
  .wq-map{height:620px}
  .wq-rivers{grid-template-columns:1fr 1fr}
  .wq-places{grid-template-columns:repeat(2,1fr)}
  .wq-pickers{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
  .wq-pickers .field{min-width:320px}
}

/* Water: the chat */
.wq-chat{display:flex;flex-direction:column;gap:12px}
.wq-thread{display:flex;flex-direction:column;gap:18px}
.wq-msg{display:flex}
.wq-msg.me{justify-content:flex-end}
.wq-bubble{max-width:min(620px,92%);padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.wq-bubble p{margin:0}
.wq-bubble h4{margin:4px 0 0;font-size:14px;color:var(--deep)}
.wq-msg.me .wq-bubble{background:var(--deep);color:#fff;border-color:var(--deep);border-bottom-right-radius:4px}
.wq-msg.ai .wq-bubble{border-bottom-left-radius:4px}
.wq-bubble .wq-verdict strong{font-size:24px}
.wq-bubble .wq-dot-big{width:40px;height:40px;box-shadow:0 0 0 5px color-mix(in srgb,var(--lv,#999) 20%,transparent)}
.wq-suggest{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.wq-suggest .chip{flex:none;white-space:nowrap}
.wq-thread .wq-suggest{flex-wrap:wrap}
.wq-turn{display:flex;flex-direction:column;gap:8px}
.wq-intro{margin:0;color:var(--mute)}
.wq-more summary{cursor:pointer;color:var(--sea);font-weight:600}
.wq-chat .wq-ask{position:sticky;top:0;z-index:5;background:var(--foam);padding:8px 0}
.wq-verdict-line{display:flex;align-items:center;gap:8px;margin:0}
.wq-verdict-line i{width:12px;height:12px;border-radius:50%;background:var(--lv,var(--mute));flex:none}
.wq-feeds{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.wq-feeds li{display:grid;grid-template-columns:14px minmax(140px,220px) 1fr;gap:8px;align-items:baseline}
.wq-feeds i{width:10px;height:10px;border-radius:50%;background:var(--lv,var(--mute));display:inline-block}
@media (max-width:560px){.wq-feeds li{grid-template-columns:14px 1fr}.wq-feeds li span{grid-column:2}}
.wq-stormhint { border-left: 3px solid var(--accent, #2a6f97); padding-left: 8px; }
.wq-pin { background: #c0392b; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.wq-precaution{display:inline-block;margin-left:10px;padding:1px 8px;border-radius:999px;border:1px solid #2E7D4F;background:#EAF4EE;color:#1F5A37;font:600 12px/1.6 var(--body, system-ui);font-style:normal;vertical-align:middle}
.wq-eta{background:rgba(255,255,255,.94);border:1px solid #8C2A12;color:#5A0F0A;font-size:11px;font-weight:600;line-height:1;padding:3px 7px;border-radius:10px;white-space:nowrap;margin:-10px 0 0 10px;pointer-events:none}
.wq-eta-note{font-weight:600}

/* Water: the map (MapLibre GL, map redesign 1, 8 Nov 2026) */
.wq-mapbox{position:relative;height:56vh;min-height:340px;border-radius:18px;border:1px solid var(--line);overflow:hidden;background:#F2F3F0}
.wq-gl,.wq-mapbox .wq-gl.maplibregl-map{position:absolute;inset:0}
.wq-gl .empty{padding:16px}
.wq-mapctl{position:absolute;top:10px;left:10px;display:flex;gap:6px;z-index:2}
.wq-seg{display:flex;background:#fff;border-radius:10px;box-shadow:0 1px 2px rgba(20,30,28,.08),0 4px 16px rgba(20,30,28,.12);padding:3px}
.wq-seg button{border:0;background:none;padding:6px 10px;border-radius:8px;cursor:pointer;font:inherit;font-size:13px;color:var(--ink)}
.wq-seg button[aria-pressed=true]{background:var(--ink);color:#fff}
.wq-more{position:relative}
.wq-more-btn{border:0;background:#fff;box-shadow:0 1px 2px rgba(20,30,28,.08),0 4px 16px rgba(20,30,28,.12);border-radius:10px;padding:9px 12px;font:inherit;font-size:13px;cursor:pointer;color:var(--ink)}
.wq-menu{position:absolute;top:42px;left:0;background:#fff;border-radius:10px;box-shadow:0 1px 2px rgba(20,30,28,.08),0 4px 16px rgba(20,30,28,.16);padding:8px 12px;min-width:240px;font-size:13px;z-index:3}
.wq-menu[hidden]{display:none}
.wq-menu label{display:flex;gap:8px;align-items:center;padding:5px 0;cursor:pointer}
.wq-menu p{margin:6px 0 0}
.wq-sw{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none;background:var(--lv)}
.wq-timeline{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;padding:2px 2px 0}
.wq-play{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--foam);cursor:pointer;display:grid;place-items:center;color:var(--ink);padding:0}
.wq-play svg{width:16px;height:16px;fill:currentColor}
.wq-when{display:flex;justify-content:space-between;align-items:baseline;gap:4px 10px;flex-wrap:wrap}
.wq-when .wq-replay-at{min-width:0;text-align:left;font-size:15px}
.wq-ovf-count{color:var(--mute);font-size:12px}
.wq-track{grid-column:1/-1;position:relative;padding-top:2px}
.wq-track input[type=range]{width:100%;margin:0;height:28px;background:transparent;cursor:pointer;accent-color:var(--ink)}
.wq-ticks{position:relative;height:16px;font-size:11px;color:var(--mute)}
.wq-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.wq-ticks span.now{color:var(--ink);font-weight:700}
.wq-nowline{position:absolute;top:4px;width:2px;height:20px;background:var(--ink);opacity:.35;pointer-events:none;transform:translateX(-1px)}
.wq-legend2{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--mute)}
.wq-k{display:inline-flex;align-items:center;gap:5px}
.wq-swl{width:18px;height:6px;border-radius:3px;display:inline-block;background:var(--lv)}
.wq-swl.halo{height:10px;background:color-mix(in srgb,#6B3E1F 55%,transparent);position:relative}
.wq-swl.halo::after{content:"";position:absolute;left:0;right:0;top:3px;height:4px;border-radius:2px;background:#E0A100}
.wq-swl.hatch{height:10px;width:14px;background:repeating-linear-gradient(135deg,#6B3E1F 0 2px,transparent 2px 5px),#E0A100}
.wq-swl.grey{background:#78909C;opacity:.6;height:8px}
.wq-od{width:10px;height:10px;border-radius:50%;display:inline-block;background:var(--lv);border:1.5px solid #fff;box-shadow:0 0 0 1px var(--line)}
.wq-od.ring{background:#fff;border:2px solid #90A4AE;box-shadow:none}
.wq-od.off{background:#ECEFF1;border:1.5px dashed #546E7A;box-shadow:none}
.wq-cards{display:grid;gap:8px}
.wq-place2{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;cursor:pointer;width:100%;font:inherit;color:var(--ink)}
.wq-place2:hover{border-color:var(--mute)}
.wq-place2-nm{font-weight:700;font-size:14px}
.wq-place2-lv{font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 0}
.wq-place2-lv b{font-weight:600}
.wq-badge2{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:14px;grid-row:span 2;background:var(--lv);flex:none}
.wq-side-head .wq-badge2{width:36px;height:36px;font-size:17px}
.wq-side-head{flex-wrap:wrap}
.wq-sewtag{margin-left:8px;display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#6B3E1F}
.wq-sewtag::before{content:"";width:8px;height:8px;border-radius:50%;background:#6B3E1F;flex:none}
.wq-river-sewage .wq-sewtag{margin-left:0;font-size:inherit}
.wq-hourwrap{position:relative;grid-column:1/-1;margin-top:6px}
.wq-hours{display:flex;height:8px;border-radius:4px;overflow:hidden}
.wq-hours.big{height:14px}
.wq-hours i{flex:1;display:block;background:var(--lv,transparent)}
.wq-hours i.sw::after{content:"";display:block;height:100%;background:repeating-linear-gradient(135deg,transparent 0 2px,rgba(0,0,0,.28) 2px 3px)}
.wq-cursor{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ink);border-radius:1px;pointer-events:none}
.wq-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--mute);margin-top:3px}
.wq-side h4{margin:6px 0 0;font-size:14px;color:var(--deep)}
.wq-back{border:0;background:none;color:var(--sea);padding:0;cursor:pointer;font:inherit;font-size:14px;align-self:flex-start}
.wq-pm{border:2px solid #fff;border-radius:999px;display:flex;align-items:center;gap:5px;padding:0;height:26px;min-width:26px;color:#fff;font:700 13px var(--body);box-shadow:0 1px 4px rgba(0,0,0,.35);cursor:pointer;justify-content:center;background:var(--lv,#7A8A91)}
.wq-pm.sew{border-color:#6B3E1F;border-width:3px}
.wq-pm-lab{display:none;font-weight:600;font-size:12px;padding-right:9px;white-space:nowrap}
.wq-pm-gl{width:22px;text-align:center}
.wq-zin .wq-pm-lab{display:inline}
.wq-zin .wq-pm{padding-left:2px}
.wq-pm.hide,.wq-target.hide{display:none}
.wq-pm.sel{outline:3px solid var(--ink);outline-offset:1px}
.wq-gl .wq-target{width:22px;height:22px;padding:0;cursor:pointer;font-family:var(--body)}
.wq-gl .maplibregl-ctrl-attrib{font-size:10px}
@media (min-width:960px){.wq-mapbox{height:620px}}

/* the map's side panel (PIMBA #607): each place's reason now, how the sea is worked out, the monitors that matter */
.wq-place2-why{grid-column:1/-1;font-size:13px;line-height:1.35;color:#4A5A61;text-align:start}
.wq-sea-note{margin:10px 0;font-size:14px}
.wq-sea-note summary{cursor:pointer;font-weight:700}
.wq-monitors{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:13.5px;line-height:1.4}
.wq-monitors li{padding-inline-start:12px;border-inline-start:3px solid #546E7A}
.wq-monitors li[data-state=spilling]{border-color:#C62828}
.wq-monitors li[data-state=offline]{border-color:#B0BEC5;border-inline-start-style:dashed}
