/* storm-live.css — the page for a storm on its way or in progress (storm-live.php through /storm/{slug}; Marc's mockups, 22 Oct 2026). */
.s2page {
    --s2-bg: #f3f6fa; --s2-card: #fff; --s2-text: #13233a; --s2-muted: #5b6b80; --s2-border: #e1e7ef; --s2-accent: #1d5fd1;
    --s2-sea: #dfe9f3; --s2-land: #f7f8f5; --s2-coast: #b9c4cf; --s2-soft: #eef3f9;
    --s2-severe: #7c1d1d; --s2-warning: #d92d20; --s2-alert: #f08c00;
    --s2-red: #d0021b; --s2-amber: #f08c00; --s2-yellow: #f2c300;
    background: var(--s2-bg); color: var(--s2-text);
}
:root[data-theme="dark"] .s2page {
    --s2-bg: #0d1622; --s2-card: #142131; --s2-text: #e6edf5; --s2-muted: #9db0c4; --s2-border: #24364b; --s2-accent: #6aa5ff;
    --s2-sea: #10243a; --s2-land: #1d2c3e; --s2-coast: #3a5068; --s2-soft: #1a2a3d;
}
.s2page a { color: var(--s2-accent); }

/* ── header ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.s2-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: 300px; display: flex; align-items: flex-end; background: #0b1726; }
.s2-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 92%; z-index: -2; }
.s2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(6,16,30,.88) 0%, rgba(6,16,30,.62) 42%, rgba(6,16,30,.12) 78%), linear-gradient(0deg, rgba(6,16,30,.55) 0%, rgba(6,16,30,0) 45%); }
.s2-hero-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.25rem 1.6rem; }
.s2-crumbs { font-size: .82rem; color: #d3deea; margin: 0 0 .9rem; }
.s2-crumbs a { color: #fff; text-decoration: none; }
.s2-crumbs a:hover { text-decoration: underline; }
.s2-badge { display: inline-block; margin: 0 0 .55rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 99px; }
.s2-badge-forecast { background: #f59e0b; color: #2b1a00; }
.s2-badge-live { background: #dc2626; color: #fff; }
.s2-hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1; margin: 0 0 .45rem; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.s2-hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; margin: 0 0 .3rem; }
.s2-hero-meta { font-size: .9rem; color: #d3deea; margin: 0 0 1.1rem; }
.s2-hero-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.s2-hbtn { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1.05rem; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none;
    background: #fff; color: #0e2340 !important; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.s2-hbtn svg { width: 18px; height: 18px; fill: currentColor; }
.s2-hbtn:hover { background: #e9f1fb; }
.s2-hbtn-ghost { background: rgba(255,255,255,.08); color: #fff !important; border: 1.5px solid rgba(255,255,255,.75); box-shadow: none; backdrop-filter: blur(4px); }
.s2-hbtn-ghost:hover { background: rgba(255,255,255,.18); }
.s2-credit { position: absolute; right: .8rem; bottom: .5rem; font-size: .66rem; color: rgba(255,255,255,.72) !important; text-decoration: none; }
.s2-credit:hover { color: #fff !important; text-decoration: underline; }

/* ── the grid of cards ──────────────────────────────────────────────────────────────────────────────────────────── */
.s2 { max-width: 1200px; margin: 0 auto; padding: 1.2rem 1.25rem 3rem; }
.s2-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.s2-news, .s2-met, .s2-fp { grid-column: 1 / -1; }
.s2-stack { display: grid; gap: 1.1rem; }
.s2-card { background: var(--s2-card); border: 1px solid var(--s2-border); border-radius: 16px; padding: 1.1rem 1.25rem; box-shadow: 0 1px 2px rgba(16,32,56,.04); min-width: 0; }
.s2-card h2 { font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.s2-card h2 small { font-size: .8rem; font-weight: 600; color: var(--s2-muted); margin-left: .3rem; }
.s2-card h3 { font-size: .95rem; font-weight: 800; margin: 0; }
.s2-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .75rem; flex-wrap: wrap; }
.s2-head > a, .s2-sub > a { font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.s2-head-wrap { align-items: flex-start; }
.s2-note, .s2-src { font-size: .78rem; color: var(--s2-muted); font-weight: 600; }
.s2-lede { margin: .2rem 0 0; font-size: .86rem; color: var(--s2-muted); }
.s2-cap { font-size: .76rem; color: var(--s2-muted); line-height: 1.5; margin: .7rem 0 0; }
.s2-empty { color: var(--s2-muted); font-size: .9rem; }
.s2-sub { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: 1.1rem 0 .55rem; flex-wrap: wrap; }

/* tabs */
.s2-tabs { display: inline-flex; gap: .25rem; background: var(--s2-soft); border-radius: 10px; padding: .25rem; margin-bottom: .7rem; }
.s2-tabs button { font: inherit; font-size: .84rem; font-weight: 700; border: 0; background: transparent; color: var(--s2-muted); padding: .38rem .8rem; border-radius: 8px; cursor: pointer; }
.s2-tabs button[aria-selected="true"] { background: var(--s2-card); color: var(--s2-text); box-shadow: 0 1px 3px rgba(16,32,56,.12); }

/* the track map */
#s2Fan svg { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--s2-sea); }
.s2-fan-land { fill: var(--s2-land); stroke: var(--s2-coast); stroke-width: .7; }
.s2-fan-place { font: 600 12px/1 system-ui, sans-serif; fill: #6b7f95; letter-spacing: .02em; }
.s2-fan-sea { font-style: italic; fill: #7f9bb8; }
.s2-fan-run { fill: none; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.s2-fan-run.s2-future { stroke-opacity: .16; }
.s2-fan-run.s2-past { stroke-opacity: .85; }
.s2-fan-median { fill: none; stroke: #13233a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
:root[data-theme="dark"] .s2-fan-median { stroke: #f1f5fa; }
.s2-fan-dot { fill: #13233a; stroke: #fff; stroke-width: 2; }
.s2-fan-lab rect { fill: rgba(255,255,255,.92); stroke: #cfd8e3; }
.s2-fan-lab text { font: 700 11px/1 system-ui, sans-serif; fill: #13233a; }
.s2-fan-now { fill: #d92d20; stroke: #fff; stroke-width: 2.5; }
.s2-fan-rundot { stroke: #fff; stroke-width: .6; }
.s2-play { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; align-items: center; margin-top: .75rem; }

.s2-ticks { position: relative; height: 1.1rem; font-size: .72rem; color: var(--s2-muted); }
.s2-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.s2-now { grid-column: 1 / -1; margin: 0; font-size: .86rem; font-weight: 700; }
.s2-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .78rem; color: var(--s2-muted); margin-top: .6rem; }
.s2-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.s2-lg-median { width: 26px; border-top: 2.4px dashed var(--s2-text); }
.s2-lg-runs { width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #d7263d, #f0713a, #f2b84b); }

/* the weather-map frame */
.s2-wxframe { display: block; position: relative; height: 430px; border-radius: 12px; overflow: hidden; background: var(--s2-sea); text-decoration: none; }
/* the forecast map (its frame mode) drawn at a desktop size and scaled to the card (storm-live.js fitFrame) */
.s2-wxframe iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 900px; border: 0; pointer-events: none; transform-origin: 0 0; }
.s2-wxframe-cta { position: absolute; right: .8rem; bottom: .8rem; background: #0e2340; color: #fff; font-weight: 700; font-size: .88rem; padding: .55rem .9rem; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.s2-wxframe:hover .s2-wxframe-cta { background: var(--s2-accent); }

/* buttons under the map */
.s2-btnrow { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.s2-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 10px; font-weight: 700; font-size: .88rem; text-decoration: none;
    border: 1.5px solid var(--s2-border); color: var(--s2-text) !important; background: var(--s2-card); }
.s2-btn svg { width: 16px; height: 16px; fill: currentColor; }
.s2-btn:hover { border-color: var(--s2-accent); color: var(--s2-accent) !important; }
.s2-btn-main { background: var(--s2-accent); border-color: var(--s2-accent); color: #fff !important; }
.s2-btn-main:hover { filter: brightness(1.08); color: #fff !important; }

/* at a glance */
.s2-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; margin: .7rem 0 .6rem; }
.s2-kpis > div { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; padding-right: .6rem; }
.s2-kpis > div + div { border-left: 1px solid var(--s2-border); padding-left: .9rem; }
.s2-kpis svg { width: 22px; height: 22px; color: var(--s2-accent); grid-row: span 2; }
.s2-kpis b { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.s2-kpis span { font-size: .76rem; color: var(--s2-muted); grid-column: 2; }
.s2-glance-words { font-size: .9rem; line-height: 1.55; margin: .3rem 0 .8rem; }
.s2-info { display: flex; gap: .65rem; background: #eaf2fe; border-radius: 10px; padding: .7rem .85rem; font-size: .84rem; line-height: 1.45; }
:root[data-theme="dark"] .s2-info { background: #172a44; }
.s2-info svg { width: 20px; height: 20px; flex: none; color: var(--s2-accent); margin-top: .1rem; }
.s2-info p { margin: 0; }
.s2-sevs { list-style: none; margin: 0; padding: 0; }
.s2-sevs li { display: grid; grid-template-columns: 38px 46px 1fr; align-items: center; gap: .4rem; padding: .45rem 0; border-top: 1px solid var(--s2-border); }
.s2-sevs li:first-child { border-top: 0; }
.s2-sevs b { font-size: 1.7rem; font-weight: 800; text-align: center; }
.s2-sevs span { font-size: .78rem; color: var(--s2-muted); line-height: 1.35; }
.s2-sevs strong { display: block; color: var(--s2-text); font-size: .9rem; }
.s2-tri-ico { width: 34px; height: 34px; }
.s2-sev-severe { color: var(--s2-severe); }
.s2-sev-warning { color: var(--s2-warning); }
.s2-sev-alert { color: var(--s2-alert); }
.s2-sevs .s2-sev-severe b { color: var(--s2-severe); } .s2-sevs .s2-sev-warning b { color: var(--s2-warning); } .s2-sevs .s2-sev-alert b { color: var(--s2-alert); }
.s2-mochips { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.s2-mochips a { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: .55rem; text-decoration: none; color: var(--s2-text) !important; padding: .45rem .6rem; border-radius: 9px; background: var(--s2-soft); font-size: .84rem; }
.s2-mochips a:hover { outline: 1.5px solid var(--s2-accent); }
.s2-mochips i, .s2-mosw, .s2-key i[data-tone], .s2-mo-level i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--s2-yellow); }
[data-tone="amber"] > i, i[data-tone="amber"], .s2-mosw[data-tone="amber"] { background: var(--s2-amber); }
[data-tone="red"] > i, i[data-tone="red"], .s2-mosw[data-tone="red"] { background: var(--s2-red); }
.s2-mochips span { font-size: .76rem; color: var(--s2-muted); }

/* current conditions */
.s2-cond { grid-column: 1; }
.s2-sw { display: inline-flex; gap: .3rem; background: var(--s2-soft); padding: .25rem; border-radius: 11px; }
.s2-sw button { font: inherit; font-size: .86rem; font-weight: 700; border: 0; background: transparent; color: var(--s2-muted); padding: .42rem .8rem; border-radius: 8px; cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }
.s2-sw button span { font-size: .74rem; background: var(--s2-card); color: var(--s2-text); border-radius: 99px; padding: .05rem .45rem; }
.s2-sw button[aria-pressed="true"] { background: #13233a; color: #fff; }
.s2-sw button[aria-pressed="true"] span { background: rgba(255,255,255,.18); color: #fff; }
:root[data-theme="dark"] .s2-sw button[aria-pressed="true"] { background: #e6edf5; color: #0d1622; }
.s2-cond-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.1rem; }
.s2-map { margin: 0; }
.s2-map svg { width: 100%; height: auto; max-height: 560px; display: block; border-radius: 12px; }
.s2-sea { fill: var(--s2-sea); }
.s2-land { fill: var(--s2-land); stroke: var(--s2-coast); stroke-width: 1; }
.s2-mk-tri { stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; }
.s2-mk-severe .s2-mk-tri { fill: var(--s2-severe); }
.s2-mk-warning .s2-mk-tri { fill: var(--s2-warning); }
.s2-mk-alert .s2-mk-tri { fill: var(--s2-alert); }
.s2-mk-bang { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.s2-mk:hover .s2-mk-tri { stroke: #13233a; stroke-width: 3.2; }
.s2-mo path { fill: color-mix(in srgb, var(--s2-yellow) 48%, transparent); stroke: #d9a400; stroke-width: 1.6; }
.s2-mo[data-tone="amber"] path { fill: color-mix(in srgb, var(--s2-amber) 58%, transparent); stroke: #c46a00; }
.s2-mo[data-tone="red"] path { fill: color-mix(in srgb, var(--s2-red) 55%, transparent); stroke: #9b0014; }
.s2-mo:hover path { stroke-width: 3; }
.s2-mo-lab text { font: 800 22px/1 system-ui, sans-serif; fill: #13233a; stroke: #fff; stroke-width: 5px; paint-order: stroke; text-anchor: middle; dominant-baseline: middle; }
.s2-cond[data-layer="flood"] .s2-l-met, .s2-cond[data-layer="met"] .s2-l-flood { display: none; }
.s2-cond[data-layer="flood"] .s2-cap-met, .s2-cond[data-layer="met"] .s2-cap-flood { display: none; }
.s2-cond[data-layer="flood"] .s2-list-met, .s2-cond[data-layer="met"] .s2-list-flood { display: none; }
.s2-map figcaption { margin-top: .6rem; font-size: .76rem; color: var(--s2-muted); }
.s2-map figcaption > div { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.s2-cap-met { flex-direction: column; align-items: flex-start !important; gap: .3rem !important; }
.s2-key { display: inline-flex; align-items: center; gap: .4rem; }
.s2-key i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--s2-warning); border-radius: 0; background: none !important; }
.s2-key i.s2-k-alert { border-bottom-color: var(--s2-alert); }
.s2-key i.s2-k-severe { border-bottom-color: var(--s2-severe); }
.s2-key i[data-tone] { width: 12px; height: 12px; border: 0; border-radius: 3px; flex: none; }
.s2-key i[data-tone="yellow"] { background: var(--s2-yellow) !important; } .s2-key i[data-tone="amber"] { background: var(--s2-amber) !important; } .s2-key i[data-tone="red"] { background: var(--s2-red) !important; }
.s2-cap-flood a { margin-left: auto; font-weight: 700; text-decoration: none; }
.s2-attr { font-size: .72rem; }
.s2-wlist { list-style: none; margin: 0; padding: 0; }
.s2-wlist li + li { border-top: 1px solid var(--s2-border); }
.s2-wlist a { display: grid; grid-template-columns: 34px 1fr 14px; gap: .7rem; align-items: center; padding: .65rem .2rem; text-decoration: none; color: var(--s2-text) !important; }
.s2-wlist a:hover { background: var(--s2-soft); border-radius: 8px; }
.s2-wlist a > span:nth-child(2) { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.s2-wlist b { font-size: .9rem; }
.s2-wname { font-size: .88rem; }
.s2-wlist small { font-size: .74rem; color: var(--s2-muted); }
.s2-wlist .s2-tri-ico { width: 30px; height: 30px; }
.s2-wlist .s2-mosw { width: 18px; height: 18px; border-radius: 4px; justify-self: center; }
.s2-chev { color: var(--s2-muted); font-size: 1.3rem; }

/* news */
.s2-more { font: inherit; font-size: .84rem; font-weight: 700; color: var(--s2-accent); background: none; border: 0; cursor: pointer; padding: 0; }
/* Met Office warnings in full */
.s2-mocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.s2-mocard { --tone: var(--s2-yellow); border: 1px solid var(--s2-border); border-top: 5px solid var(--tone); border-radius: 12px; padding: .85rem .95rem; scroll-margin-top: 90px; }
.s2-mocard[data-tone="amber"] { --tone: var(--s2-amber); }
.s2-mocard[data-tone="red"] { --tone: var(--s2-red); }
.s2-mocard:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 55%, transparent); }
.s2-mo-level { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .9rem; margin: 0 0 .15rem; }
.s2-mo-level i { background: var(--tone) !important; }
.s2-mo-when { font-size: .8rem; color: var(--s2-muted); margin: 0 0 .5rem; font-weight: 600; }
.s2-mocard h3 { font-size: .95rem; line-height: 1.4; font-weight: 700; margin: 0 0 .45rem; }
.s2-mo-where { font-size: .78rem; color: var(--s2-muted); margin: 0 0 .6rem; line-height: 1.45; }
.s2-mocard a { font-size: .84rem; font-weight: 700; text-decoration: none; }

/* footprint */
.s2-fpnums { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: .6rem; }
.s2-fpnums div { display: flex; flex-direction: column; }
.s2-fpnums b { font-size: 1.6rem; font-weight: 800; }
.s2-fpnums span { font-size: .74rem; color: var(--s2-muted); }
.s2-c-severe { color: var(--s2-severe); } .s2-c-warning { color: var(--s2-warning); } .s2-c-alert { color: var(--s2-alert); }
.s2-fplists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.s2-fplists h3 { font-size: .78rem; color: var(--s2-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.s2-fplists ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.s2-fplists li { display: flex; justify-content: space-between; gap: .6rem; padding: .25rem 0; border-bottom: 1px dashed var(--s2-border); }

.s2-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; font-size: .9rem; font-weight: 700; }
.s2-nav a { text-decoration: none; }
.s2-disclaimer { font-size: .78rem; color: var(--s2-muted); margin-top: 1.4rem; line-height: 1.5; }

/* ── narrower screens ───────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .s2-grid { grid-template-columns: minmax(0, 1fr); }
    .s2-cond { grid-column: auto; }
    .s2-cond-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .s2-hero { min-height: 360px; }
    .s2-hero::after { background: linear-gradient(0deg, rgba(6,16,30,.92) 0%, rgba(6,16,30,.6) 55%, rgba(6,16,30,.25) 100%); }
    .s2-hero-in { padding: .9rem 1rem 1.3rem; }
    .s2-banner-in { padding: .65rem 1rem; }
    .s2-banner-sep { display: none; }
    .s2-banner p b { display: block; }
    .s2 { padding: 1rem .75rem 2.5rem; }
    .s2-card { padding: 1rem; border-radius: 14px; }
    .s2-newsrow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
    .s2-newsrow li { scroll-snap-align: start; }
    .s2-newsrow .s2-n-extra { display: block; }
    .s2-more { display: none; }
    .s2-wxframe { height: 380px; }
    .s2-bars li { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto; }
    .s2-kpis b { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .s2-newsrow a { transition: none; } }

/* ── the warning strip under the header: one tidy line ──────────────────────────────────────────────────────────── */
.s2-banner { --tone: var(--s2-amber); --bg: #fff4e0; --ink: #3a2400; background: var(--bg); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.s2-banner[data-tone="yellow"] { --tone: #e0b000; --bg: #fff9db; --ink: #3a3000; }
.s2-banner[data-tone="red"] { --tone: var(--s2-red); --bg: #fdeaea; --ink: #3d0a0a; }
.s2-banner[data-tone="none"] { --tone: var(--s2-muted); --bg: var(--s2-soft); --ink: var(--s2-text); }
:root[data-theme="dark"] .s2-banner { --bg: #2c2210; --ink: #f6e3c2; }
:root[data-theme="dark"] .s2-banner[data-tone="yellow"] { --bg: #2b2810; --ink: #f4ecbf; }
:root[data-theme="dark"] .s2-banner[data-tone="red"] { --bg: #331314; --ink: #f7d4d4; }
.s2-banner-in { max-width: 1200px; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: .55rem .9rem; font-size: .9rem; }
.s2-banner p { margin: 0; }
.s2-bn-tag { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; white-space: nowrap; flex: none; }
.s2-bn-tag svg { width: 22px; height: 22px; color: var(--tone); }
.s2-bn-when { font-weight: 700; white-space: nowrap; flex: none; padding: .12rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--tone) 22%, transparent); font-size: .82rem; }
.s2-bn-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.s2-bn-links { display: flex; gap: .5rem; flex: none; align-items: center; }
.s2-bn-go { font-weight: 800; font-size: .84rem; text-decoration: none; color: #fff !important; background: color-mix(in srgb, var(--tone) 85%, #000); padding: .35rem .75rem; border-radius: 8px; }
.s2-bn-go:hover { filter: brightness(1.1); }
.s2-bn-more { font-weight: 700; font-size: .82rem; color: inherit !important; text-decoration: none; padding: .3rem .6rem; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); }
.s2-bn-more:hover { background: color-mix(in srgb, var(--tone) 15%, transparent); }

/* ── when: arrives, until, for how long ─────────────────────────────────────────────────────────────────────────── */
.s2-when { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .35rem; padding: 0; }
.s2-when li { display: flex; flex-direction: column; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: .4rem .75rem; backdrop-filter: blur(4px); }
.s2-when span { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: #c9d6e6; font-weight: 700; }
.s2-when b { font-size: 1rem; font-weight: 800; }
.s2-when-src { font-size: .72rem; color: #b7c6d8; margin: 0 0 1rem; }

/* ── the player ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.s2-play { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: .35rem .85rem; align-items: center; margin-top: .8rem; }
.s2-playbtn { box-sizing: border-box; width: 46px; height: 46px; min-width: 46px; min-height: 46px; padding: 0; margin: 0; border-radius: 50%; border: 0;
    background: var(--s2-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--s2-accent) 40%, transparent); transition: transform .12s, filter .12s; }
.s2-playbtn:hover { filter: brightness(1.08); transform: scale(1.04); }
.s2-playbtn:focus-visible { outline: 3px solid color-mix(in srgb, var(--s2-accent) 45%, transparent); outline-offset: 2px; }
.s2-playbtn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.s2-playbtn .s2-i-play { transform: translateX(1.5px); }
.s2-playbtn .s2-i-pause { display: none; }
.s2-playbtn[aria-pressed="true"] .s2-i-play { display: none; }
.s2-playbtn[aria-pressed="true"] .s2-i-pause { display: inline; }
.s2-scrub input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.s2-scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--s2-soft); box-shadow: inset 0 0 0 1px var(--s2-border); }
.s2-scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--s2-soft); }
.s2-scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--s2-accent); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.s2-scrub input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--s2-accent); }
.s2-now { grid-column: 1 / -1; margin: .1rem 0 0; font-size: .86rem; font-weight: 700; }

/* ── gauge rows: wettest and rising ─────────────────────────────────────────────────────────────────────────────── */
.s2-gl { list-style: none; margin: 0; padding: 0; }
.s2-gl li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: .2rem .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--s2-border); }
.s2-gl li:first-child { border-top: 0; padding-top: .1rem; }
.s2-gl-name { display: flex; flex-direction: column; min-width: 0; font-weight: 800; font-size: .92rem; }
.s2-gl-name a { color: var(--s2-text) !important; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-gl-name a:hover { color: var(--s2-accent) !important; }
.s2-gl-name small { font-size: .74rem; font-weight: 500; color: var(--s2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-gl-bar { height: 14px; background: var(--s2-soft); border-radius: 4px; overflow: hidden; }
.s2-gl-bar i { display: block; height: 100%; background: #1d5fd1; border-radius: 4px; }
.s2-gl-val { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.s2-gl-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem; }
.s2-gl-spark { height: 34px; --line: #1d5fd1; }
.s2-gl-spark[data-tone="red"] { --line: #d92d20; } .s2-gl-spark[data-tone="amber"] { --line: #e07a00; }
.s2-spark { width: 100%; height: 34px; display: block; overflow: visible; }
.s2-spark-l { fill: none; stroke: var(--line); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.s2-spark-a { fill: color-mix(in srgb, var(--line) 12%, transparent); stroke: none; }
.s2-spark circle { fill: var(--line); }
.s2-arrow { display: inline-block; color: #1d5fd1; font-weight: 800; }
.s2-arrow[data-speed="2"] { color: #e07a00; }
.s2-arrow[data-speed="3"] { color: #d92d20; }
.s2-tag { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; line-height: 1; padding: .3rem .5rem; border-radius: 99px; background: var(--s2-soft); color: var(--s2-text); }
.s2-tag[data-tone="red"] { background: #fde4e2; color: #9b1c12; }
.s2-tag[data-tone="amber"] { background: #ffefd6; color: #8a4a00; }
.s2-tag[data-tone="yellow"] { background: #fff6c7; color: #6b5300; }
.s2-tag[data-tone="green"] { background: #e3f4ea; color: #1e6b3d; }
.s2-tag[data-tone="blue"] { background: #e6efff; color: #1d4fb0; }
:root[data-theme="dark"] .s2-tag[data-tone="red"] { background: #4a1714; color: #ffc9c3; }
:root[data-theme="dark"] .s2-tag[data-tone="amber"] { background: #47300d; color: #ffd9a3; }
:root[data-theme="dark"] .s2-tag[data-tone="yellow"] { background: #403810; color: #fbe7a1; }
:root[data-theme="dark"] .s2-tag[data-tone="green"] { background: #173a27; color: #b5e8c9; }
:root[data-theme="dark"] .s2-tag[data-tone="blue"] { background: #172d52; color: #bcd3ff; }
.s2-tag-plain { background: transparent !important; color: var(--s2-muted); padding-left: .2rem; }

/* ── news: compact cards ────────────────────────────────────────────────────────────────────────────────────────── */
.s2-newsrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.s2-newsrow .s2-n-extra { display: none; }
.s2-newsrow.s2-open .s2-n-extra { display: block; }
.s2-newsrow a { display: flex; gap: .7rem; align-items: flex-start; height: 100%; box-sizing: border-box; padding: .7rem; text-decoration: none; color: var(--s2-text) !important; border-radius: 12px; border: 1px solid var(--s2-border); background: var(--s2-card); transition: border-color .15s, box-shadow .15s; }
.s2-newsrow a:hover { border-color: var(--s2-accent); box-shadow: 0 4px 14px rgba(16,32,56,.08); }
.s2-nbadge, .s2-nthumb { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.s2-nbadge { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: -.01em; background: linear-gradient(135deg, #12304f, #2c6a99); }
.s2-nimg-1 { background: linear-gradient(135deg, #1b2b44, #49607c); }
.s2-nimg-2 { background: linear-gradient(135deg, #0f3b3a, #2a8077); }
.s2-nimg-3 { background: linear-gradient(135deg, #2c2347, #5b5a9a); }
.s2-nimg-4 { background: linear-gradient(135deg, #3a2a16, #8a6a3a); }
.s2-ntxt { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.s2-ntxt b { font-size: .9rem; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s2-ntxt small { font-size: .72rem; color: var(--s2-muted); }

/* ── the depth meter under the pressure figure ──────────────────────────────────────────────────────────────────── */
.s2-pm { margin: .2rem 0 .7rem; }
.s2-pm-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #f6dfa3 0%, #f2b84b 30%, #f0713a 58%, #d7263d 82%, #7a0f2a 100%); }
.s2-pm-bar i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #13233a; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.s2-pm-scale { display: grid; grid-template-columns: 14fr 21.5fr 21.5fr 21.5fr 21.5fr; font-size: .66rem; color: var(--s2-muted); margin-top: .3rem; font-weight: 600; text-align: center; }
.s2-pm-word { margin: .35rem 0 0; font-size: .86rem; }
.s2-pm-word b { font-weight: 800; }

/* ── a pulse on flood warnings in force ─────────────────────────────────────────────────────────────────────────── */
.s2-pulse .s2-tri-ico { animation: s2pulse 1.6s ease-in-out infinite; transform-origin: 50% 60%; }
.s2-pulse b { animation: s2glow 1.6s ease-in-out infinite; }
@keyframes s2pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(217,45,32,0)); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(217,45,32,.55)); } }
@keyframes s2glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .s2-pulse .s2-tri-ico, .s2-pulse b { animation: none; } }

@media (max-width: 960px) {
    .s2-newsrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .s2-banner-in { flex-wrap: wrap; padding: .6rem 1rem; }
    .s2-bn-text { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .s2-bn-links { flex-basis: 100%; }
    .s2-newsrow { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; overflow: visible; }
    .s2-newsrow .s2-n-extra { display: none; }
    .s2-newsrow.s2-open .s2-n-extra { display: block; }
    .s2-more { display: inline; }
    .s2-gl li { grid-template-columns: minmax(0, 1fr) 90px auto; }
    .s2-when b { font-size: .92rem; }
}

/* the weather tab's Rain / Wind switch */
.s2-wxsw { display: inline-flex; gap: .25rem; background: var(--s2-soft); padding: .22rem; border-radius: 10px; margin: 0 0 .55rem; }
.s2-wxsw button { font: inherit; font-size: .82rem; font-weight: 700; border: 0; background: transparent; color: var(--s2-muted); padding: .32rem .8rem; border-radius: 8px; cursor: pointer; }
.s2-wxsw button[aria-pressed="true"] { background: #13233a; color: #fff; }
:root[data-theme="dark"] .s2-wxsw button[aria-pressed="true"] { background: #e6edf5; color: #0d1622; }
.s2-log { margin: 0 0 .9rem; font-size: .88rem; color: #d3deea; }
.s2-log a { color: #fff !important; font-weight: 800; }
.s2-updated { white-space: nowrap; }

/* "Show more" under the gauge lists */
.s2-gl .s2-gl-more { display: none; }
.s2-gl.s2-open .s2-gl-more { display: grid; }
.s2-showmore { font: inherit; font-size: .84rem; font-weight: 700; color: var(--s2-accent); background: var(--s2-soft); border: 0; border-radius: 9px; padding: .45rem .8rem; margin-top: .6rem; cursor: pointer; width: 100%; }
.s2-showmore:hover { filter: brightness(.97); }
.s2-alertline { margin: .9rem 0 0; font-size: .86rem; font-weight: 700; }
.s2-alertline a { text-decoration: none; }
.s2-views { white-space: nowrap; }
.s2-views svg { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; margin-right: .25rem; opacity: .85; }
.s2-gl-doubt .s2-gl-bar i { background: repeating-linear-gradient(135deg, #9aa7b6 0 6px, #b8c2cd 6px 12px); }
.s2-gl-doubt .s2-gl-val { color: var(--s2-muted); }
.s2-tag[data-tone="grey"] { background: #eef1f5; color: #4a5768; }
:root[data-theme="dark"] .s2-tag[data-tone="grey"] { background: #243244; color: #c3cfdc; }
