/* ==========================================================================
   SIMA — South Island Met Agency
   Design system "Contour": navy ink, glacier mist, ice accents.
   ========================================================================== */

:root {
  --ink: #0b1f30;
  --ink-2: #26394a;
  --muted: #5b6d7c;
  --faint: #8797a4;
  --line: #dde5ea;
  --line-2: #e9eef1;
  --bg: #f2f5f6;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --navy: #0e2a42;
  --navy-2: #143a5a;
  --brand: #1b4a72;
  --cobalt: #1f62a8;
  --ice: #a9cdee;
  --ice-2: #dcebf8;
  --ice-3: #eef5fb;
  --glow: #f2a541;

  --none: #3f9d74;
  --none-bg: #e6f4ed;
  --slight: #d9a91a;
  --slight-bg: #fdf6dc;
  --slight-fg: #7a5b00;
  --enhanced: #e9782b;
  --enhanced-bg: #fdeee2;
  --enhanced-fg: #8f3e08;
  --high: #d63c3c;
  --high-bg: #fce8e8;
  --high-fg: #8e1c1c;
  --significant: #7a4bc2;
  --significant-bg: #f1eafb;
  --significant-fg: #4d2490;


  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 31, 48, .05), 0 6px 24px -12px rgba(11, 31, 48, .18);
  --shadow-lift: 0 2px 6px rgba(11, 31, 48, .06), 0 24px 48px -20px rgba(11, 31, 48, .32);
  --wrap: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

[data-theme='dark'] {
  --ink: #e8eff4;
  --ink-2: #c5d2dc;
  --muted: #93a6b5;
  --faint: #6c8090;
  --line: #22374a;
  --line-2: #1b2e3f;
  --bg: #08141f;
  --surface: #0e1e2c;
  --surface-2: #122536;
  --ice-2: #17324a;
  --ice-3: #112638;
  --cobalt: #7fb6ee;
  --none-bg: #10322a;
  --slight-bg: #33290b;
  --slight-fg: #f2d168;
  --enhanced-bg: #3a2210;
  --enhanced-fg: #ffb27a;
  --high-bg: #3c1616;
  --high-fg: #ff9c9c;
  --significant-bg: #2a1b44;
  --significant-fg: #cfb2ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -14px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ice); color: var(--navy); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .mono { font-family: var(--f-mono); font-feature-settings: 'tnum' 1, 'zero' 0; letter-spacing: -.01em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; }
.display em { font-style: italic; color: var(--cobalt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; opacity: .6; }
.h-section { font: 800 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--f-ui); letter-spacing: -.02em; }
.lede { font-size: clamp(1rem, .96rem + .25vw, 1.14rem); color: var(--ink-2); max-width: 64ch; }
.prose { color: var(--ink-2); max-width: 70ch; }
.prose p { margin: 0 0 1em; }
.prose h2 { font: 800 1.35rem/1.25 var(--f-ui); letter-spacing: -.02em; margin: 2em 0 .6em; color: var(--ink); }
.prose h3 { font: 800 1.08rem/1.3 var(--f-ui); margin: 1.6em 0 .4em; color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--cobalt); }
.prose a, .link { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--cobalt) 40%, transparent); font-weight: 650; }
.prose a:hover, .link:hover { text-decoration-color: var(--cobalt); }
.text-pre { white-space: pre-line; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .92rem/1 var(--f-ui); text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); box-shadow: 0 8px 20px -10px rgba(14, 42, 66, .7); }
[data-theme='dark'] .btn-primary { background: var(--ice); color: var(--navy); }
.btn-ice { background: var(--ice); color: var(--navy); }
.btn-ice:hover { background: #c3dcf3; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .84rem; }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; color: var(--ink-2); transition: .2s;
}
.icon-btn:hover { color: var(--cobalt); border-color: var(--cobalt); }
.icon-btn svg { width: 19px; height: 19px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  font: 700 .76rem/1 var(--f-ui); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--none); box-shadow: 0 0 0 0 var(--none); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--none) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* Risk levels */
.lvl { --c: var(--faint); --b: var(--surface-2); --f: var(--ink-2); }
.lvl-none { --c: var(--none); --b: var(--none-bg); --f: var(--none); }
.lvl-slight { --c: var(--slight); --b: var(--slight-bg); --f: var(--slight-fg); }
.lvl-enhanced { --c: var(--enhanced); --b: var(--enhanced-bg); --f: var(--enhanced-fg); }
.lvl-high { --c: var(--high); --b: var(--high-bg); --f: var(--high-fg); }
.lvl-significant { --c: var(--significant); --b: var(--significant-bg); --f: var(--significant-fg); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px;
  background: var(--b); color: var(--f); font: 800 .72rem/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 800;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
[data-theme='dark'] .site-header { background: color-mix(in srgb, #06111b 92%, transparent); }
.hdr { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font: 800 1.08rem/1 var(--f-ui); letter-spacing: .06em; }
.brand-name span { font: 500 .7rem/1.3 var(--f-ui); color: rgba(255, 255, 255, .62); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav > li { list-style: none; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 10px;
  color: rgba(255, 255, 255, .82); text-decoration: none; background: none; border: 0; font: 650 .9rem/1 var(--f-ui);
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link[aria-expanded='true'] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link.active { color: #fff; }
.nav-link.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: -14px; height: 2.5px; border-radius: 2px; background: var(--ice); }
.nav-link .caret { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.nav-link[aria-expanded='true'] .caret { transform: rotate(180deg); }
.nav ul { margin: 0; padding: 0; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 13px; min-width: 230px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .7); font: 600 .86rem/1 var(--f-ui); transition: .2s;
}
.search-trigger:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.search-trigger svg { width: 17px; height: 17px; }
.search-trigger kbd { margin-left: auto; font: 600 .7rem/1 var(--f-mono); padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.hdr .icon-btn { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; }
.hdr .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.menu-btn { display: none; }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: -12px; z-index: 900;
  width: min(760px, 92vw); padding: 14px; border-radius: 22px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .22s var(--ease);
}
.mega.small { width: 300px; grid-template-columns: 1fr; }
.mega.open { opacity: 1; transform: none; pointer-events: auto; }
.mega-grid { display: grid; gap: 6px; }
.mega-item {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px;
  border-radius: 14px; text-decoration: none; transition: background .15s;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--ice-3); }
.mega-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ice-3); color: var(--cobalt); }
.mega-item:hover .mega-ico { background: var(--surface); }
.mega-ico svg { width: 21px; height: 21px; }
.mega-item b { display: block; font: 750 .94rem/1.25 var(--f-ui); }
.mega-item small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.mega-aside { border-radius: 16px; padding: 18px; background: var(--navy); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.mega-aside::before { content: ''; position: absolute; inset: 0; background: url('/synoptic.svg') center/cover; opacity: .6; }
.mega-aside > * { position: relative; }
.mega-aside h4 { color: #fff; font: 400 1.7rem/1.05 var(--f-display); }
.mega-aside p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .86rem; }
.mega-aside .btn { margin-top: auto; align-self: flex-start; }
.mini-status { display: grid; gap: 6px; }
.mini-status a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; text-decoration: none; color: rgba(255, 255, 255, .86); padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }

/* Status ribbon */
.ribbon { background: var(--navy-2); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
[data-theme='dark'] .ribbon { background: #0b1b29; }
.ribbon-in { display: flex; align-items: center; gap: 10px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.ribbon-in::-webkit-scrollbar { display: none; }
.ribbon-label { font: 700 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.ribbon-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fd3a0; animation: pulse 2s infinite; }
.rb {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; flex-shrink: 0;
  border-radius: 999px; text-decoration: none; font: 650 .8rem/1 var(--f-ui); color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .15s;
}
.rb:hover { background: rgba(255, 255, 255, .13); }
.rb i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, #6b8295); flex-shrink: 0; }
.rb b { font-weight: 800; color: #fff; }
.rb.sk { width: 150px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

/* Banner */
.notice-banner { position: relative; }
.notice-banner .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.notice-banner b { font-weight: 800; }
.notice-banner p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
.notice-banner.t-blue { background: var(--ice-2); color: var(--navy); }
[data-theme='dark'] .notice-banner.t-blue { color: var(--ink); }
.notice-banner.t-amber { background: var(--enhanced-bg); color: var(--enhanced-fg); }
.notice-banner.t-red { background: var(--high-bg); color: var(--high-fg); }
.notice-banner.t-green { background: var(--none-bg); color: var(--none); }
.notice-banner .x { background: none; border: 0; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: inherit; opacity: .7; }
.notice-banner .x:hover { opacity: 1; background: rgba(0,0,0,.06); }
.notice-banner .x svg { width: 16px; height: 16px; }

/* Mobile nav */
.drawer {
  position: fixed; inset: 0; z-index: 1200; background: var(--bg); overflow-y: auto;
  transform: translateX(100%); transition: transform .32s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-hd { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 16px; background: var(--navy); color: #fff; z-index: 1; }
.drawer-bd { padding: 18px 16px 48px; display: grid; gap: 22px; }
.drawer h3 { font: 700 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-grid a {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); font: 750 .92rem/1.2 var(--f-ui); min-height: 96px;
}
.drawer-grid a .mega-ico { width: 36px; height: 36px; }
.drawer-grid a small { display: block; font: 600 .74rem/1.2 var(--f-ui); color: var(--muted); margin-top: 3px; }
.drawer-grid a.active { border-color: var(--cobalt); background: var(--ice-3); }
.drawer-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }

/* ---------- Command palette ---------- */
.palette-scrim { position: fixed; inset: 0; z-index: 1500; background: rgba(6, 18, 29, .55); backdrop-filter: blur(4px); display: none; padding: 10vh 16px 16px; }
.palette-scrim.open { display: block; animation: fade .18s; }
.palette { width: min(640px, 100%); margin: 0 auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); overflow: hidden; animation: rise .25s var(--ease); }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-in svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.palette-in input { flex: 1; height: 60px; border: 0; background: none; outline: none; font-size: 1.05rem; font-weight: 600; }
.palette-in kbd { font: 600 .7rem/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.palette-results { max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 6px; font: 700 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 0; background: none; text-align: left; text-decoration: none; }
.palette-item .mega-ico { width: 36px; height: 36px; border-radius: 10px; }
.palette-item .mega-ico svg { width: 18px; height: 18px; }
.palette-item b { display: block; font-weight: 750; font-size: .94rem; }
.palette-item small { display: block; color: var(--muted); font-size: .8rem; }
.palette-item[aria-selected='true'] { background: var(--ice-3); }
.palette-item .go { margin-left: auto; color: var(--faint); width: 16px; height: 16px; }
.palette-empty { padding: 28px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); background: var(--surface-2); }

/* ---------- Page header ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
[data-theme='dark'] .page-hero { background: #0a1825; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url('/synoptic.svg') center/cover no-repeat; opacity: .75; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(transparent, rgba(6, 18, 29, .35)); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; padding: 34px 0 34px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 .8rem/1 var(--f-ui); color: rgba(255, 255, 255, .6); margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }
.page-hero .eyebrow { color: var(--ice); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem); margin: 12px 0 12px; }
.page-hero h1 em { color: var(--ice); }
.page-hero .lede { color: rgba(255, 255, 255, .78); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-meta .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .92); }
.hero-meta .chip b { color: #fff; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }

/* Sticky in-page tabs */
.subnav { position: sticky; top: var(--header-h); z-index: 700; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 54px; align-items: center; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; text-decoration: none; font: 700 .86rem/1 var(--f-ui); color: var(--muted); transition: .15s; }
.subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a.on { color: var(--navy); background: var(--ice-2); }
[data-theme='dark'] .subnav a.on { color: var(--ink); }
.subnav a .count { font: 700 .7rem/1 var(--f-mono); padding: 3px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.subnav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; flex-shrink: 0; }

/* ---------- Layout primitives ---------- */
main { min-height: 60vh; }
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.section-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-hd p { margin: 6px 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: clamp(18px, 2.4vw, 28px); }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 74px); display: grid; gap: 18px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 650; }
.kv dd { margin: 0; font-weight: 700; }

/* Skeleton / empty / error */
.sk { position: relative; overflow: hidden; background: var(--line-2); border-radius: 12px; }
.sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.3s infinite; background-size: 200% 100%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { text-align: center; padding: clamp(32px, 6vw, 64px) 24px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.empty .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--none-bg); color: var(--none); }
.empty .ico svg { width: 30px; height: 30px; }
.empty h3 { font: 400 1.9rem/1.1 var(--f-display); margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.alert-inline { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.alert-inline svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--cobalt); }
.alert-inline.warn { background: var(--enhanced-bg); color: var(--enhanced-fg); border-color: color-mix(in srgb, var(--enhanced) 30%, transparent); }
.alert-inline.warn svg { color: var(--enhanced); }

/* ---------- Disclaimer strip ---------- */
.official { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--ice-3); border: 1px solid var(--ice-2); font-size: .85rem; color: var(--ink-2); }
.official svg { width: 20px; height: 20px; color: var(--cobalt); flex-shrink: 0; margin-top: 1px; }

/* ---------- Home ---------- */
.home-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
[data-theme='dark'] .home-hero { background: #0a1825; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: url('/synoptic.svg') center/cover no-repeat; opacity: .9; }
.home-hero .emblem { position: absolute; right: -60px; bottom: -120px; width: 420px; opacity: .06; pointer-events: none; filter: brightness(10); }
.home-hero .wrap { position: relative; padding: 40px 0 120px; }
.home-hero h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); color: #fff; max-width: 14ch; }
.home-hero h1 em { color: var(--ice); }
.home-hero .lede { color: rgba(255, 255, 255, .75); margin: 18px 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.hero-date { font: 600 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }

.town-search { position: relative; }
.town-search-box {
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 18px; border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.town-search-box svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.town-search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 1.02rem; font-weight: 650; }
.town-search-box .btn { height: 44px; }
.town-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: var(--surface); color: var(--ink); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lift); padding: 6px; max-height: 360px; overflow-y: auto; }
.town-results button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; text-align: left; }
.town-results button:hover, .town-results button[aria-selected='true'] { background: var(--ice-3); }
.town-results small { color: var(--muted); display: block; font-size: .78rem; }
.quick-towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-towns button { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .86); font: 650 .8rem/1 var(--f-ui); }
.quick-towns button:hover, .quick-towns button.on { background: var(--ice); color: var(--navy); border-color: var(--ice); }

.overlap { margin-top: -88px; position: relative; z-index: 2; }

/* Now card (town) */
.now { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; }
.now-main { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line); }
.now-place { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.now-place h2 { font: 400 clamp(2rem, 1.6rem + 1.6vw, 2.8rem)/1 var(--f-display); }
.now-place p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.now-temp { display: flex; align-items: center; gap: 18px; }
.now-temp .wx { width: 84px; height: 84px; }
.now-temp .t { font: 500 clamp(3.4rem, 2.6rem + 3vw, 5rem)/.9 var(--f-mono); letter-spacing: -.05em; }
.now-temp .t sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; margin-left: 2px; letter-spacing: 0; }
.now-temp .cond b { display: block; font: 800 1.15rem/1.2 var(--f-ui); }
.now-temp .cond span { color: var(--muted); font-size: .88rem; }
.now-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.now-stats div { background: var(--surface); padding: 12px; }
.now-stats dt { font: 700 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.now-stats dd { margin: 0; font: 600 1rem/1.1 var(--f-mono); }
.now-stats dd small { font-size: .72em; color: var(--muted); }
.snow-flag { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--ice-3); border: 1px solid var(--ice-2); font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.snow-flag svg { width: 18px; height: 18px; color: var(--cobalt); flex-shrink: 0; }
.now-side { padding: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); min-width: 0; }
.days { display: grid; gap: 2px; }
.day-row { display: grid; grid-template-columns: 62px 34px 46px minmax(60px, 1fr) 46px 60px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 0; background: none; text-align: left; width: 100%; }
.day-row:hover, .day-row.on { background: var(--surface); box-shadow: var(--shadow); }
.day-row .dn { font-weight: 800; font-size: .9rem; }
.day-row .dn small { display: block; font: 600 .68rem/1.2 var(--f-mono); color: var(--faint); }
.day-row svg { width: 30px; height: 30px; }
.day-row .lo, .day-row .hi { font: 600 .92rem/1 var(--f-mono); text-align: right; }
.day-row .lo { color: var(--muted); text-align: left; }
.range { position: relative; height: 6px; border-radius: 3px; background: var(--line-2); }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #79b6e8, #f2b45b, #e46d3a); }
.day-row .pr { font: 600 .78rem/1 var(--f-mono); color: var(--cobalt); text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.day-row .pr svg { width: 12px; height: 12px; }

.hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hour { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.hour.now-h { background: var(--navy); color: #fff; border-color: var(--navy); }
.hour.now-h .hp { color: var(--ice); }
.hour .hh { font: 700 .7rem/1 var(--f-mono); color: var(--muted); }
.hour.now-h .hh { color: rgba(255,255,255,.7); }
.hour svg { width: 28px; height: 28px; }
.hour .ht { font: 600 .95rem/1 var(--f-mono); }
.hour .hp { font: 600 .66rem/1 var(--f-mono); color: var(--cobalt); min-height: 10px; }

/* Charts */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 600 10.5px var(--f-mono); fill: var(--faint); }
.chart .grid-l { stroke: var(--line-2); stroke-width: 1; }
.chart .now-l { stroke: var(--cobalt); stroke-dasharray: 3 3; }
.chart-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.chart-tabs button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: 700 .8rem/1 var(--f-ui); color: var(--muted); }
.chart-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; padding: 8px 10px; border-radius: 10px; font: 600 .76rem/1.4 var(--f-mono); white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-lift); }

/* Status board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; min-height: 210px;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tile-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-hd .mega-ico { background: var(--b); color: var(--c); }
.tile h3 { font: 800 1.08rem/1.2 var(--f-ui); }
.tile .state { font: 400 1.75rem/1.05 var(--f-display); color: var(--ink); }
.tile p { margin: 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font: 600 .72rem/1 var(--f-mono); color: var(--faint); }
.tile .foot svg { width: 16px; height: 16px; color: var(--cobalt); transition: transform .2s; }
.tile:hover .foot svg { transform: translateX(3px); }

/* Outlook strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.strip-day { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; text-align: left; transition: .2s var(--ease); position: relative; overflow: hidden; }
.strip-day::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.strip-day:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.strip-day .d { font: 700 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.strip-day .w { font: 400 1.6rem/1 var(--f-display); }
.strip-day p { margin: 0; font-size: .78rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip-day.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }

/* Feature split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.media-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.media-card .bg { position: absolute; inset: 0; }
.media-card .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6, 18, 29, .85)); }
.media-card .bd { position: relative; padding: 24px; }
.media-card h3 { color: #fff; font: 400 2rem/1 var(--f-display); }
.media-card p { margin: 8px 0 0; color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* News */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: .2s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.post-card .ph { aspect-ratio: 16/9; background: var(--ice-2) center/cover; position: relative; }
.post-card .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font: 800 1.12rem/1.3 var(--f-ui); letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { margin-top: auto; padding-top: 6px; font: 600 .72rem/1 var(--f-mono); color: var(--faint); display: flex; gap: 10px; }
.post-card.feature .ph { aspect-ratio: 16/10; }
.post-card.feature h3 { font: 400 2rem/1.05 var(--f-display); }
.post-list { display: grid; gap: 10px; }
.post-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: .2s; }
.post-row:hover { border-color: var(--cobalt); }
.post-row .ph { aspect-ratio: 4/3; border-radius: 12px; background: var(--ice-2) center/cover; }
.post-row h3 { font: 800 .98rem/1.3 var(--f-ui); }
.post-row .meta { font: 600 .7rem/1 var(--f-mono); color: var(--faint); margin-top: 6px; }

.article-canvas-wrap { position: relative; width: 100%; overflow: hidden; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.article-canvas { transform-origin: 0 0; position: absolute; top: 0; left: 0; }

/* Guides */
.guide-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: .2s var(--ease); position: relative; overflow: hidden; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--ice); }
.guide-card .n { font: 400 3rem/1 var(--f-display); color: var(--ice); }
.guide-card h3 { font: 800 1.1rem/1.3 var(--f-ui); }
.guide-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.guide-card .foot { margin-top: auto; font: 700 .8rem/1 var(--f-ui); color: var(--cobalt); display: flex; align-items: center; gap: 6px; }
.guide-card .foot svg { width: 15px; height: 15px; }

.toc { display: grid; gap: 2px; font-size: .88rem; }
.toc a { padding: 8px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); font-weight: 650; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--cobalt); }

/* ---------- Forecast products ---------- */
.day-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { position: relative; text-align: left; padding: 12px 14px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: .18s var(--ease); overflow: hidden; }
.day-tab::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.day-tab .d { font: 700 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day-tab .w { font: 800 1rem/1.1 var(--f-ui); }
.day-tab .l { font: 700 .74rem/1 var(--f-ui); color: var(--f); }
.day-tab:hover { border-color: var(--c); }
.day-tab[aria-selected='true'] { background: var(--b); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.product-map { background: #e9eef1; position: relative; min-height: 320px; display: grid; place-items: center; border-right: 1px solid var(--line); }
[data-theme='dark'] .product-map { background: #0b1823; }
.product-map img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.product-map .zoom { position: absolute; right: 12px; bottom: 12px; }
.product-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.product-body h2 { font: 400 clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem)/1.05 var(--f-display); }

.meter { display: grid; gap: 8px; }
.meter-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter-bar span { height: 8px; border-radius: 4px; background: var(--line-2); }
.meter-bar span.on { background: var(--c); }
.meter-lbl { display: flex; justify-content: space-between; font: 600 .66rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

.conf { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--f-ui); color: var(--ink-2); }
.conf i { display: inline-flex; gap: 2px; }
.conf i b { width: 6px; height: 14px; border-radius: 2px; background: var(--line); }
.conf i b.on { background: var(--cobalt); }

.legend { display: grid; gap: 10px; }
.legend-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--b); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.legend-row b { color: var(--f); font: 800 .88rem/1.3 var(--f-ui); display: flex; align-items: center; gap: 8px; }
.legend-row b::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.legend-row span { font-size: .86rem; color: var(--ink-2); }
.legend-row small { display: block; font: 600 .7rem/1.4 var(--f-mono); color: var(--f); opacity: .8; }

/* Notice cards */
.notice { position: relative; display: grid; grid-template-columns: 6px minmax(0, 1fr); overflow: hidden; }
.notice::before { content: ''; background: var(--c); }
.notice-in { padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 16px; }
.notice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.notice-title { display: flex; gap: 14px; align-items: flex-start; }
.notice-title .mega-ico { background: var(--b); color: var(--c); width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.notice-title .mega-ico svg { width: 24px; height: 24px; }
.notice-title h3 { font: 800 1.3rem/1.2 var(--f-ui); letter-spacing: -.015em; }
.notice-title p { margin: 4px 0 0; color: var(--muted); font-weight: 650; font-size: .9rem; }
.timeline { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.timeline .t b { display: block; font: 700 .64rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.timeline .t span { font: 750 .88rem/1.25 var(--f-ui); }
.timeline .t:last-child { text-align: right; }
.tl-bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); overflow: visible; }
.tl-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--c); }
.tl-bar em { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); transform: translate(-50%, -50%); }
.tl-cap { grid-column: 1 / -1; text-align: center; font: 700 .76rem/1 var(--f-mono); color: var(--f); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.fact { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.fact b { display: flex; align-items: center; gap: 7px; font: 700 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.fact b svg { width: 14px; height: 14px; color: var(--cobalt); }
.fact span { font-weight: 700; font-size: .92rem; color: var(--ink); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--b); color: var(--f); font: 700 .78rem/1 var(--f-ui); }
.flag svg { width: 14px; height: 14px; }
details.more { border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font: 750 .86rem/1 var(--f-ui); color: var(--cobalt); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 16px; height: 16px; transition: transform .2s; }
details.more[open] summary svg { transform: rotate(180deg); }
details.more pre { white-space: pre-wrap; font: 500 .84rem/1.6 var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0 0; color: var(--ink-2); }

/* Region table */
.rtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.rtable th { text-align: left; font: 700 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 14px 10px; }
.rtable td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.rtable tr td:first-child { font-weight: 800; }

/* Map */
.map-shell { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #dfe7ec; }
.map-shell .leaflet-container { background: #dfe7ec; font-family: var(--f-ui); }
.map-tall { height: min(72vh, 640px); }
.map-med { height: 460px; }
.map-controls { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-controls input[type='range'] { flex: 1; accent-color: var(--cobalt); }
.map-controls .time { font: 700 .86rem/1 var(--f-mono); min-width: 120px; }
.map-legend { position: absolute; z-index: 500; top: 12px; right: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); font-size: .74rem; box-shadow: var(--shadow); display: grid; gap: 6px; }
.map-legend .scale { width: 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #88ddee, #0099cc, #00cc00, #ffff00, #ff8800, #ff0000, #cc00cc); }
.map-legend .lbls { display: flex; justify-content: space-between; font: 600 .64rem/1 var(--f-mono); color: var(--muted); }
.map-legend .k { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.map-legend .k i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; font-family: var(--f-ui) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-size: .86rem !important; line-height: 1.45 !important; }
.leaflet-popup-content b { font-weight: 800; }
.leaflet-popup-content a { color: var(--cobalt); font-weight: 700; }

.embed { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #0b1823; }
.embed iframe { display: block; width: 100%; height: min(72vh, 640px); border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1600; background: rgba(6, 14, 22, .92); display: none; flex-direction: column; }
.lightbox.open { display: flex; animation: fade .2s; }
.lightbox-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: #fff; gap: 12px; }
.lightbox-hd b { font-weight: 800; }
.lightbox-bd { flex: 1; display: grid; place-items: center; padding: 0 16px 16px; overflow: auto; }
.lightbox-bd img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field .lbl { font: 750 .84rem/1.2 var(--f-ui); color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px;
  font-size: .96rem; font-weight: 550; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 15%, transparent); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--high); }
.err { color: var(--high); font-size: .8rem; font-weight: 650; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.radio-card { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: .15s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--cobalt); background: var(--ice-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 12%, transparent); }
.radio-card:has(input:focus-visible) { outline: 2.5px solid var(--cobalt); outline-offset: 2px; }
.radio-card .price { font: 500 1.9rem/1 var(--f-mono); letter-spacing: -.03em; }
.radio-card .price small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.radio-card b { font-weight: 800; }
.radio-card span { font-size: .84rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cobalt); }
.success { text-align: center; padding: 36px 20px; }
.success .ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--none-bg); color: var(--none); }
.success .ico svg { width: 30px; height: 30px; }
.success h3 { font: 400 2rem/1.1 var(--f-display); }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--cobalt); transition: width .2s; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 36px 1fr; gap: 12px; counter-increment: s; font-size: .9rem; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ice-3); color: var(--cobalt); font: 700 .9rem/1 var(--f-mono); }
.steps li b { display: block; color: var(--ink); }
.steps { padding: 0; margin: 0; }

/* FAQ / explainer accordion */
.accordion { display: grid; gap: 8px; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.accordion summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font: 800 .98rem/1.3 var(--f-ui); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.accordion details[open] summary svg { transform: rotate(45deg); color: var(--cobalt); }
.accordion .bd { padding: 0 18px 16px; color: var(--ink-2); font-size: .92rem; }
.accordion .bd p { margin: 0 0 .8em; }
.accordion .bd ul { margin: 0 0 .8em; padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: 40px; position: relative; overflow: hidden; }
[data-theme='dark'] .site-footer { background: #06111b; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: url('/synoptic.svg') center/cover; opacity: .35; pointer-events: none; }
.site-footer .wrap { position: relative; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 56px 0 40px; }
.foot-brand p { font-size: .88rem; margin: 14px 0; max-width: 40ch; }
.site-footer h4 { font: 700 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .88rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-official { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; max-width: 46ch; }
.foot-official svg { width: 18px; height: 18px; color: var(--ice); flex-shrink: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.foot-bottom button { background: none; border: 0; color: rgba(255, 255, 255, .82); padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }

/* Cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1400; max-width: 860px; margin: 0 auto; display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--navy); color: rgba(255, 255, 255, .82); box-shadow: var(--shadow-lift); border: 1px solid rgba(255,255,255,.1); animation: rise .35s var(--ease); font-size: .86rem; }
.consent p { margin: 0; flex: 1; }
.consent a { color: var(--ice); }
.consent .row { flex-shrink: 0; flex-wrap: nowrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1700; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-lift); animation: rise .25s var(--ease); }

.ad-slot { margin: 8px auto; min-height: 0; }

/* Motion */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.reveal { animation: rise .55s var(--ease) both; }
.reveal-1 { animation-delay: .06s; } .reveal-2 { animation-delay: .12s; } .reveal-3 { animation-delay: .18s; } .reveal-4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .nav, .hdr-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .layout-aside, .hero-top, .now, .product, .split, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .now-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-map { border-right: 0; border-bottom: 1px solid var(--line); }
  .sticky-aside { position: static; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; }
  .brand-name span { display: none; }
  .board, .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .now-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-row { grid-template-columns: 52px 30px 36px minmax(40px, 1fr) 36px 46px; gap: 7px; padding: 8px 6px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
  .legend-row { grid-template-columns: 1fr; gap: 4px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline .tl-bar { grid-column: 1 / -1; grid-row: 2; }
  .post-row { grid-template-columns: 88px 1fr; }
  .home-hero .wrap { padding-bottom: 104px; }
  .rtable thead { display: none; }
  .rtable tr { display: grid; padding: 12px 0; border-top: 1px solid var(--line); }
  .rtable td { border: 0; padding: 4px 0; }
  .map-tall { height: 62vh; }
}

@media print {
  .site-header, .ribbon, .subnav, .site-footer, .consent, .notice-banner, .ad-slot, .map-controls { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero .lede { color: #000; }
  .card { box-shadow: none; }
}

/* ---------- Additions ---------- */
.notice-title p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.notice-title p svg { width: 15px; height: 15px; flex-shrink: 0; }
.wx { width: 64px; height: 64px; }
.wx-sm { width: 40px; height: 40px; margin: 4px auto; }
.snow-bands { display: grid; gap: 6px; }
.snow-band { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.snow-band::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--ice-2), transparent); opacity: .9; }
.snow-band > * { position: relative; }
.snow-band span { font-weight: 700; font-size: .82rem; color: var(--muted); }
.snow-band b { font-weight: 800; }
.town-card { transition: border-color .15s, transform .15s var(--ease); }
.town-card:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.tc-ico svg { width: 40px; height: 40px; }
.day-row { color: inherit; font: inherit; }
button.day-row { cursor: pointer; }
.icon-btn[disabled] { cursor: not-allowed; }
.blog-flow > * + * { margin-top: 1.1em; }
.blog-flow img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-stacked img { max-width: 100%; height: auto; }
.hero-meta .chip.live::before { background: #5fd3a0; }
.media-card:hover .bd h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.tile .badge { flex-shrink: 0; }
[data-theme='dark'] .product-map, [data-theme='dark'] .map-shell { background: #0b1823; }
[data-theme='dark'] .wm-pin span { background: #0e1e2c; color: #e8eff4; }
[data-theme='dark'] .rd-lbl { color: #e8eff4 !important; text-shadow: 0 0 3px #000, 0 0 3px #000 !important; }
[data-theme='dark'] .leaflet-popup-content-wrapper, [data-theme='dark'] .leaflet-popup-tip { background: #0e1e2c; color: #e8eff4; }
@media (max-width: 1000px) {
  .layout-aside[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr) !important; }
  #t-week { grid-template-columns: minmax(0, 1fr) !important; }
  .card-pad[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr) !important; }
  .notice-in[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .town-search-box .btn { padding: 0 14px; }
  .product-body h2 { font-size: 1.8rem; }
}

/* ==========================================================================
   Theme v2 — light, conventional weather-site styling.
   Plain sans-serif type, white header, bright sky-blue accents.
   ========================================================================== */
:root {
  --ink: #1b2a3a; --ink-2: #3b4e61; --muted: #5d7083; --faint: #8697a6;
  --line: #d8e1e9; --line-2: #e7edf2; --bg: #eef3f8; --surface: #ffffff; --surface-2: #f5f8fb;
  --navy: #1d6bb5; --navy-2: #155a9c; --brand: #1d6bb5; --cobalt: #1d6bb5;
  --ice: #bfdcf5; --ice-2: #dcecf9; --ice-3: #eef6fd;
  --f-display: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --f-ui: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --f-mono: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 60, .06), 0 2px 10px rgba(20, 40, 60, .06);
  --shadow-lift: 0 4px 12px rgba(20, 40, 60, .10), 0 12px 32px -8px rgba(20, 40, 60, .18);
  color-scheme: light;
}
[data-theme='dark'] { color-scheme: dark; }

body { font: 400 16.5px/1.55 var(--f-ui); font-variant-numeric: tabular-nums; }
.num, .mono, .price, .t { font-family: var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.display { font-family: var(--f-ui); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.display em, .page-hero h1 em, .home-hero h1 em { font-style: normal; color: inherit; }
.eyebrow { font: 700 .74rem/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow::before { display: none; }
.h-section { font-weight: 800; letter-spacing: -.01em; }
.ribbon-label, .now-stats dt, .fact b, .timeline .t b, .rtable th, .meter-lbl, .palette-group, .site-footer h4, .drawer h3,
.day-tab .d, .strip-day .d, .legend-row small, .hero-date, .map-legend .lbls, .tile .foot, .crumbs { letter-spacing: .03em; }

/* Buttons: conventional rounded rectangles */
.btn { border-radius: 8px; font-weight: 700; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); box-shadow: none; }
[data-theme='dark'] .btn-primary { background: var(--ice); color: #0e2a42; }
.btn-ice { background: var(--ice-2); color: var(--cobalt); }
.btn-ice:hover { background: var(--ice); }
.icon-btn { border-radius: 8px; }

/* Header */
.site-header { background: rgba(255, 255, 255, .97); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(20, 40, 60, .05); }
[data-theme='dark'] .site-header { background: rgba(14, 30, 44, .97); }
.brand { color: var(--ink); }
.brand img { box-shadow: none; }
.brand-name b { font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; }
.brand-name span { color: var(--muted); font-weight: 600; }
.nav-link { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav-link:hover, .nav-link[aria-expanded='true'] { color: var(--cobalt); background: var(--ice-3); }
.nav-link.active { color: var(--cobalt); }
.nav-link.active::after { background: var(--cobalt); }
.search-trigger { border-color: var(--line); background: var(--surface-2); color: var(--muted); border-radius: 8px; }
.search-trigger:hover { background: var(--surface); color: var(--ink); border-color: var(--cobalt); }
.search-trigger kbd { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.hdr .icon-btn { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.hdr .icon-btn:hover { background: var(--ice-3); color: var(--cobalt); border-color: var(--cobalt); }
.mega { border-radius: 14px; }
.mega-aside { background: var(--ice-3); color: var(--ink); border: 1px solid var(--ice-2); border-radius: 12px; }
.mega-aside::before { display: none; }
.mega-aside h4 { color: var(--ink); font: 800 1.2rem/1.2 var(--f-ui); }
.mega-aside p { color: var(--ink-2); }
.mega-aside .eyebrow { color: var(--cobalt) !important; }
.mega-aside .btn-ice { background: var(--navy); color: #fff; }

/* Live status strip */
.ribbon { background: var(--ice-3); color: var(--ink); border-bottom: 1px solid var(--line); }
[data-theme='dark'] .ribbon { background: var(--surface-2); }
.ribbon-in { height: 48px; }
.ribbon-label { color: var(--muted); }
.ribbon-label::before { background: var(--none); }
.rb { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-radius: 8px; font-weight: 600; }
.rb:hover { background: var(--surface); border-color: var(--cobalt); color: var(--ink); }
.rb b { color: var(--ink); font-weight: 700; }
.rb i { border-radius: 50%; }
.rb.sk { background: linear-gradient(90deg, var(--line-2), var(--surface), var(--line-2)); background-size: 200% 100%; border-color: var(--line); }

/* Inner page headers: light sky band, dark text */
.page-hero { background: linear-gradient(180deg, #d4e8f8 0%, #e6f1fa 65%, #eef3f8 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
[data-theme='dark'] .page-hero { background: linear-gradient(180deg, #12293c, #0e1e2c); }
.page-hero::before, .page-hero::after { display: none; }
.page-hero .wrap { padding: 22px 0 26px; }
.crumbs { color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.crumbs a { color: var(--cobalt); }
.crumbs a:hover { text-decoration: underline; }
.page-hero .eyebrow { color: var(--cobalt); }
.page-hero h1 { color: var(--ink); font: 800 clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem)/1.1 var(--f-ui); letter-spacing: -.02em; margin: 8px 0 8px; }
.page-hero .lede { color: var(--ink-2); }
.hero-meta { margin-top: 14px; }
.hero-meta .chip { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.hero-meta .chip b { color: var(--ink); }
.page-hero .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Home: bright sky hero */
.home-hero { background: linear-gradient(180deg, #2a7ac4 0%, #4d9ddf 55%, #86c0ee 100%); color: #fff; }
.home-hero::before { opacity: 1; }
.home-hero .wrap { padding: 30px 0 108px; }
.home-hero h1 { font: 800 clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem)/1.08 var(--f-ui); letter-spacing: -.025em; max-width: 18ch; color: #fff; }
.home-hero .lede { color: rgba(255, 255, 255, .94); font-size: 1.1rem; }
.hero-date { color: rgba(255, 255, 255, .9); font-weight: 700; text-transform: none; font-size: .9rem; }
.quick-towns button { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; font-weight: 700; border-radius: 8px; }
.quick-towns button:hover, .quick-towns button.on { background: #fff; color: var(--cobalt); border-color: #fff; }
.quick-towns a { color: #fff !important; }
.town-search-box { border-radius: 10px; box-shadow: 0 8px 24px -10px rgba(10, 40, 80, .5); }
.town-search-box .btn { border-radius: 8px; }
.overlap { margin-top: -80px; }

/* Cards, tiles and radii */
.card { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tile, .strip-day, .guide-card, .media-card, .map-shell, .post-card, .empty { border-radius: 14px; }
.day-tab { border-radius: 12px; }
.tile .state { font: 800 1.35rem/1.15 var(--f-ui); letter-spacing: -.01em; }
.tile .foot { font-weight: 600; }
.strip-day .w { font: 800 1.2rem/1.1 var(--f-ui); }
.post-card.feature h3 { font: 800 1.55rem/1.2 var(--f-ui); letter-spacing: -.015em; }
.media-card h3 { font: 800 1.5rem/1.15 var(--f-ui); }
.guide-card .n { font: 800 1.8rem/1 var(--f-ui); color: var(--ice); }
.success h3, .empty h3 { font: 800 1.5rem/1.2 var(--f-ui); }
.product-body h2 { font: 800 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.15 var(--f-ui); letter-spacing: -.015em; }
.now-place h2 { font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--f-ui); letter-spacing: -.015em; }
.now-temp .t { font-family: var(--f-ui); font-weight: 300; letter-spacing: -.04em; }
.now-stats dd, .day-row .lo, .day-row .hi, .hour .ht { font-weight: 700; font-family: var(--f-ui); }
.day-row .lo { font-weight: 500; }
.chart text { font-family: var(--f-ui); font-weight: 600; }

/* Footer: light */
.site-footer { background: var(--surface); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 48px; }
[data-theme='dark'] .site-footer { background: var(--surface); }
.site-footer::before { display: none; }
.site-footer h4 { color: var(--ink); font-weight: 800; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--cobalt); }
.foot-official { background: var(--ice-3); border-color: var(--ice-2); }
.foot-official svg { color: var(--cobalt); }
.foot-bottom { border-top-color: var(--line); }
.foot-bottom button { color: var(--ink-2); }

/* Cookie banner and mobile menu */
.consent { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.consent a { color: var(--cobalt); }
.consent .btn-glass { background: var(--surface); color: var(--ink); border-color: var(--line); }
.consent .btn-ice { background: var(--navy); color: #fff; }
.drawer-hd { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }

/* Notices: neutral blue band instead of dark */
.notice-banner.t-blue { background: var(--ice-2); }

/* ==========================================================================
   Fixes: icon sizing safety net and skip link
   ========================================================================== */
/* Any inline SVG without its own size rule falls back to text size (zero specificity, so every
   existing icon rule still wins). Prevents unsized icons from expanding to fill their container. */
:where(svg:not(.leaflet-zoom-animated)) { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.notice-banner svg { width: 20px; height: 20px; }
.post-card .ph svg, .empty .ph svg { width: 36px; height: 36px; }
.notice-banner { border-bottom: 1px solid var(--line); }
.notice-banner .wrap { padding: 8px 0; }
.notice-banner p { font-size: .88rem; }
.notice-banner .btn { height: 32px; flex-shrink: 0; }

/* Search is the primary way to find a town: make it obvious. */
.search-trigger { min-width: 250px; border: 1.5px solid var(--cobalt); background: var(--surface); color: var(--ink-2); font-weight: 650; }
.search-trigger svg { color: var(--cobalt); }
@media (max-width: 1180px) { .hdr-cta { display: none; } }

/* Plain, static status indicators (no pulsing dots) */
.chip.live::before, .ribbon-label::before { display: none !important; animation: none !important; }
.hero-live-pill { display: none !important; }

.wm-refresh{margin-left:auto;margin-right:8px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line,#d4d4d8);background:#fff;cursor:pointer;font-size:15px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:none}
.wm-refresh:hover{background:#f4f4f5}
.wm-refresh:disabled{cursor:progress;opacity:.7}
.wm-refresh.is-spinning{animation:wm-spin .8s linear infinite}
@keyframes wm-spin{to{transform:rotate(360deg)}}
