/* ==========================================================================
   SIMA — Modern Meteorological Interface Polish (loaded after site.css).
   Atmospheric alpine-ocean palette, crisp sans-serif & tabular figures,
   concise weather-portal hero, rich 7-day daily summaries, and interactive map.
   ========================================================================== */
:root {
  --ink: #0d2135;
  --ink-2: #2b4257;
  --muted: #586f84;
  --faint: #8296a8;
  --line: #d6e2ec;
  --line-2: #e6eff6;
  --bg: #edf3f8;
  --surface: #ffffff;
  --surface-2: #f4f8fc;
  --navy: #0e2d4a;
  --navy-2: #164066;
  --brand: #185a98;
  --cobalt: #1a66b0;
  --ice: #9fd0f7;
  --ice-2: #d6ebfc;
  --ice-3: #ebf5fe;
  --glow: #f59e0b;

  --header-h: 64px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --shadow: 0 1px 3px rgba(13, 33, 53, .06), 0 8px 24px -12px rgba(13, 33, 53, .12);
  --shadow-lift: 0 4px 14px rgba(13, 33, 53, .09), 0 18px 38px -14px rgba(13, 33, 53, .22);
}

[data-theme='dark'] {
  --ink: #ecf3f9;
  --ink-2: #c5d5e3;
  --muted: #8ea5b8;
  --faint: #677f94;
  --line: #21374b;
  --line-2: #182b3c;
  --bg: #07131e;
  --surface: #0e2030;
  --surface-2: #13283c;
  --navy: #123658;
  --navy-2: #1a4772;
  --cobalt: #6cb4f5;
  --ice: #8ec8f8;
  --ice-2: #183650;
  --ice-3: #12293e;
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 28px -12px rgba(0, 0, 0, .55);
  --shadow-lift: 0 6px 18px rgba(0, 0, 0, .45), 0 22px 44px -16px rgba(0, 0, 0, .7);
}

body {
  background: var(--bg);
  font-family: var(--f-ui);
}

/* ---- Announcement Banner ---- */
.notice-banner { border-bottom: 1px solid var(--line); }
.notice-banner .wrap { flex-wrap: nowrap; padding: 8px 0; gap: 10px; }
.notice-banner p { flex: 1 1 auto; min-width: 0; font-size: .88rem; line-height: 1.35; }
.notice-banner svg { width: 17px; height: 17px; flex: 0 0 17px; }
.notice-banner .btn { height: 30px; padding: 0 12px; font-size: .8rem; }
.notice-banner .x { flex: 0 0 30px; width: 30px; height: 30px; }
@media (max-width: 640px) {
  .notice-banner p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .notice-banner .btn { display: none; }
}

/* ---- Header & Live Ribbon ---- */
.site-header {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(13, 33, 53, .05);
}
.hdr { gap: 14px; }
.brand img { width: 36px; height: 36px; }
.brand-name b { font: 800 1.12rem/1 var(--f-ui); letter-spacing: .02em; }
.brand-name span { font-size: .7rem; letter-spacing: .03em; }
.nav-link { height: 38px; padding: 0 12px; border-radius: 8px; font-size: .93rem; font-weight: 650; }
.nav-link.active::after { bottom: -13px; left: 12px; right: 12px; }
.search-trigger { min-width: 200px; height: 38px; border-radius: 10px; }

.ribbon { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ribbon-in { height: 42px; gap: 8px; }
.rb { height: 28px; border-radius: 999px; font-size: .78rem; padding: 0 11px 0 9px; }

/* ---- Compact Weather Website Hero Header ---- */
.home-hero {
  position: relative;
  background: linear-gradient(135deg, #0d2c49 0%, #154978 52%, #1e67a8 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  overflow: visible;
}
[data-theme='dark'] .home-hero {
  background: linear-gradient(135deg, #071828 0%, #0d2b47 55%, #133c63 100%);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(159, 208, 247, .22), transparent 45%), url('/synoptic.svg') center/cover no-repeat;
  opacity: .55;
  pointer-events: none;
}
.home-hero .wrap {
  position: relative;
  z-index: 2;
  padding: 22px 0 22px;
}
.hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 20px;
  align-items: center;
}
.hero-title-block h1 {
  font: 800 clamp(1.65rem, 1.35rem + 1.2vw, 2.25rem)/1.1 var(--f-ui);
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  max-width: none;
}
.hero-title-block .lede {
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
  margin: 4px 0 0;
  max-width: none;
}
.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 650 .8rem/1 var(--f-ui);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 6px;
}
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .22);
  border: 1px solid rgba(52, 211, 153, .45);
  color: #a7f3d0;
  font: 800 .68rem/1 var(--f-ui);
  letter-spacing: .08em;
}
.hero-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, .3);
}

.town-search-box {
  height: 50px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 28px -10px rgba(5, 18, 32, .5);
  padding: 0 6px 0 14px;
}
.town-search-box:focus-within {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(159, 208, 247, .35), 0 10px 28px -10px rgba(5, 18, 32, .5);
}
.town-search-box .btn {
  height: 38px;
  border-radius: 9px;
  padding: 0 14px;
}
.town-results {
  border-radius: 12px;
  z-index: 600;
}

/* ---- Hero Quick-Select Town Forecast Strip ---- */
.hero-town-strip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.q-town-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.q-town-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(6px);
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.q-town-card:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .38);
  transform: translateY(-2px);
}
.q-town-card.on {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(5, 18, 32, .55);
}
[data-theme='dark'] .q-town-card.on {
  background: var(--ice);
  color: #071828;
  border-color: var(--ice);
}
.q-town-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.q-town-names {
  min-width: 0;
}
.q-town-names b {
  display: block;
  font: 750 .83rem/1.2 var(--f-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-town-names small {
  display: block;
  font: 600 .66rem/1.2 var(--f-ui);
  opacity: .72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-xs {
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0;
}
.q-town-bot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.q-town-temp {
  font: 800 1.25rem/1 var(--f-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.q-town-hl {
  font: 650 .68rem/1 var(--f-ui);
  font-variant-numeric: tabular-nums;
  opacity: .78;
}
.hero-strip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .82);
  flex-wrap: wrap;
}
.hero-strip-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.hero-strip-hint svg {
  width: 14px;
  height: 14px;
  color: var(--ice);
}
.hero-all-towns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
}
.hero-all-towns:hover {
  text-decoration: underline;
}
.hero-all-towns svg {
  width: 15px;
  height: 15px;
}

/* ---- Top Map & Active Bulletins Section ---- */
.section-map-top {
  padding: 22px 0 8px;
}
.map-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr);
  gap: 20px;
  align-items: stretch;
}
.map-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.map-col .wm-root {
  flex: 1;
  height: 100%;
  min-height: 510px;
}
.aside-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.aside-bulletins-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bulletin-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 11px 13px;
  text-decoration: none;
  border-radius: 12px;
  border-left: 4px solid var(--c);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bulletin-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.empty-compact {
  padding: 24px 16px;
  border-radius: 14px;
}
.empty-compact .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 10px;
}
.empty-compact .ico svg {
  width: 24px;
  height: 24px;
}
.aside-quick-links {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.aside-qlink {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font: 700 .78rem/1.2 var(--f-ui);
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.aside-qlink:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: var(--ice-3);
}
.aside-qlink svg:first-child {
  width: 15px;
  height: 15px;
  color: var(--cobalt);
}
.aside-qlink svg:last-child {
  width: 13px;
  height: 13px;
  margin-left: auto;
  opacity: .55;
}

/* ---- Current Conditions Card (Now) & Today's Summary Box ---- */
.now-wx-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--ice-3);
  border: 1px solid var(--ice-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.now-wx-wrap .wx {
  width: 58px;
  height: 58px;
}
.pin-chip {
  cursor: pointer;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  transition: .15s;
}
.pin-chip:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.pin-chip.is-pinned {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
[data-theme='dark'] .pin-chip.is-pinned {
  background: #3b2a0c;
  border-color: #f59e0b;
  color: #fcd34d;
}
.now-stats dt {
  display: flex;
  align-items: center;
  gap: 5px;
}
.now-stats dt svg {
  width: 13px;
  height: 13px;
  color: var(--cobalt);
}
.now-summary-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ice-3), var(--surface-2));
  border: 1px solid var(--ice-2);
  display: grid;
  gap: 6px;
}
.now-summary-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.now-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 .72rem/1 var(--f-ui);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--cobalt);
}
.now-summary-tag svg {
  width: 14px;
  height: 14px;
}
.now-summary-cond {
  font: 750 .8rem/1.2 var(--f-ui);
  color: var(--ink);
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.now-summary-text {
  margin: 2px 0 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.day-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.day-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 .75rem/1.2 var(--f-ui);
}
.day-flag svg {
  width: 13px;
  height: 13px;
}
.day-flag.tone-snow { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.day-flag.tone-frost { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.day-flag.tone-wind { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.day-flag.tone-rain { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
[data-theme='dark'] .day-flag.tone-snow { background: #0c2f49; color: #7dd3fc; border-color: #0284c7; }
[data-theme='dark'] .day-flag.tone-frost { background: #1e1b4b; color: #a5b4fc; border-color: #4338ca; }
[data-theme='dark'] .day-flag.tone-wind { background: #3b2506; color: #fcd34d; border-color: #d97706; }
[data-theme='dark'] .day-flag.tone-rain { background: #172554; color: #93c5fd; border-color: #2563eb; }

.now-side-Quick {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.nearby-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nearby-pill {
  cursor: pointer;
  background: var(--surface);
  transition: .15s;
}
.nearby-pill:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background: var(--ice-3);
}

/* ---- 7-Day Written Forecast Explorer & Daily Summaries ---- */
.week-explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.days-detailed {
  display: grid;
  gap: 8px;
}
.days-detailed .day-row {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  width: 100%;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.days-detailed .day-row:hover {
  background: var(--surface);
  border-color: var(--cobalt);
  box-shadow: var(--shadow);
}
.days-detailed .day-row.on {
  background: var(--surface);
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 16%, transparent), var(--shadow);
}
.day-row-top {
  display: grid;
  grid-template-columns: 58px 38px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: start;
}
.day-row .dn {
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.2;
  padding-top: 2px;
}
.day-row .dn small {
  display: block;
  font: 600 .72rem/1.2 var(--f-ui);
  color: var(--muted);
  margin-top: 2px;
}
.day-wx svg {
  width: 36px;
  height: 36px;
}
.day-summary-col {
  min-width: 0;
}
.day-cond-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.day-cond-label {
  font: 750 .92rem/1.25 var(--f-ui);
  color: var(--ink);
}
.day-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dchip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font: 700 .68rem/1.2 var(--f-ui);
  font-variant-numeric: tabular-nums;
}
.dchip svg {
  width: 11px;
  height: 11px;
}
.dchip.tone-rain { background: var(--ice-2); color: var(--cobalt); }
.dchip.tone-snow { background: #e0f2fe; color: #0284c7; }
.dchip.tone-wind { background: #fef3c7; color: #b45309; }
.dchip.tone-frost { background: #e0e7ff; color: #4338ca; }
[data-theme='dark'] .dchip.tone-snow { background: #0c2f49; color: #7dd3fc; }
[data-theme='dark'] .dchip.tone-wind { background: #3b2506; color: #fcd34d; }
[data-theme='dark'] .dchip.tone-frost { background: #1e1b4b; color: #a5b4fc; }

.day-summary-text {
  margin: 4px 0 0;
  font-size: .83rem;
  line-height: 1.42;
  color: var(--ink-2);
  font-weight: 450;
}
.day-temps {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 2px;
}
.day-hi-lo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.day-hi-lo .hi {
  font: 800 .98rem/1 var(--f-ui);
  color: var(--ink);
}
.day-hi-lo .lo {
  font: 600 .82rem/1 var(--f-ui);
  color: var(--muted);
}
.day-temps .range {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}

/* ---- Selected Day Detail & Through-the-Day Period Cards ---- */
.day-detail-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.day-detail-sub {
  font-size: .9rem;
  color: var(--ink-2);
  margin-top: 4px;
}
.day-detail-wx {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.day-detail-wx .wx {
  width: 56px;
  height: 56px;
}
.day-detail-bigtemp {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.day-detail-bigtemp .hi {
  font: 800 2rem/1 var(--f-ui);
  color: var(--ink);
}
.day-detail-bigtemp .lo {
  font: 600 1.05rem/1 var(--f-ui);
  color: var(--muted);
}
.day-narrative-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ice-3);
  border: 1px solid var(--ice-2);
}
.day-narrative-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 .72rem/1 var(--f-ui);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--cobalt);
}
.day-narrative-label svg {
  width: 14px;
  height: 14px;
}
.day-narrative-p {
  margin: 6px 0 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.period-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.period-card.is-past {
  opacity: .55;
}
.period-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.period-name {
  display: block;
  font: 800 .88rem/1.2 var(--f-ui);
  color: var(--ink);
}
.period-range {
  display: block;
  font: 600 .68rem/1.2 var(--f-ui);
  color: var(--muted);
}
.period-top .wx-sm {
  width: 34px;
  height: 34px;
  margin: 0;
}
.period-phrase {
  font: 750 .8rem/1.25 var(--f-ui);
  color: var(--cobalt);
}
.period-temp {
  font: 800 1.05rem/1.2 var(--f-ui);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.period-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 650 .74rem/1.2 var(--f-ui);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.period-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.period-meta svg {
  width: 12px;
  height: 12px;
  color: var(--cobalt);
}
.period-detail {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line-2);
  font-size: .76rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.day-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* ---- Town Detail Grid & 7-Day Table ---- */
.sub-h {
  font: 800 .76rem/1 var(--f-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 12px;
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.dcell {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dk {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 .7rem/1 var(--f-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dk svg { width: 14px; height: 14px; color: var(--cobalt); }
.dcell b { font: 750 1.18rem/1.2 var(--f-ui); }
.dcell small { color: var(--muted); font-size: .8rem; }

.wtable-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.wtable {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 760px;
}
.wtable th, .wtable td {
  padding: 11px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.wtable thead th {
  font: 750 .68rem/1 var(--f-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.wtable tbody tr:last-child > * { border-bottom: 0; }
.wtable th:first-child, .wtable td:nth-child(2) { text-align: left; }
.wtable tbody th { font-weight: 750; }
.wtable tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.wtable td:nth-child(2) { white-space: normal; min-width: 280px; max-width: 420px; }
.wtable-cond { display: flex; align-items: flex-start; gap: 10px; }
.wtable-cond svg { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.wl-title { display: block; font-weight: 750; color: var(--ink); font-size: .88rem; }
.wl-sum { display: block; color: var(--muted); font-size: .79rem; line-height: 1.35; margin-top: 2px; }
.wtable .hi { font-weight: 800; }
.wtable .lo { color: var(--muted); }

/* ---- Private Forecast CTA ---- */
.cta-private-card {
  background: linear-gradient(135deg, #0d2c49 0%, #174c7c 100%);
  color: #fff;
  border: 0;
  overflow: hidden;
  position: relative;
}
.cta-private-bg {
  position: absolute;
  inset: 0;
  background: url('/synoptic.svg') center/cover;
  opacity: .45;
  pointer-events: none;
}
.cta-private-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

/* ---- Significant Weather Outlook Sheet & Radar tweaks ---- */
.outlook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.outlook-day-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  flex: 1;
}
.outlook-day-strip::-webkit-scrollbar { display: none; }
.outlook-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 700 .86rem/1.2 var(--f-ui);
  white-space: nowrap;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.outlook-day-pill:hover {
  border-color: var(--cobalt);
  background: var(--surface-2);
}
.outlook-day-pill.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px -4px rgba(13, 33, 53, .3);
}
[data-theme='dark'] .outlook-day-pill.on {
  background: var(--cobalt);
  color: #07131e;
  border-color: var(--cobalt);
}
.outlook-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}
.outlook-day-pill.on .outlook-pill-dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.outlook-pill-day small {
  font-weight: 500;
  opacity: .72;
  margin-left: 2px;
}
.outlook-pill-lvl {
  font: 750 .72rem/1 var(--f-ui);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--b);
  color: var(--f);
}
.outlook-day-pill.on .outlook-pill-lvl {
  background: rgba(255, 255, 255, .16);
  color: inherit;
}

.outlook-sheet {
  overflow: hidden;
  border-top: 4px solid var(--c);
}
.outlook-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.outlook-day-kicker {
  display: block;
  font: 700 .78rem/1.2 var(--f-ui);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.outlook-sheet-title h2 {
  font: 800 clamp(1.3rem, 1.1rem + .6vw, 1.65rem)/1.2 var(--f-ui);
  color: var(--ink);
  margin-top: 3px;
}
.outlook-sheet-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.outlook-conf {
  font-size: .84rem;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.outlook-conf b {
  color: var(--ink);
  font-weight: 750;
}
.outlook-step-btns {
  display: inline-flex;
  gap: 4px;
}
.outlook-step-btns .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.outlook-sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}
.outlook-map-col {
  padding: 20px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.outlook-map-frame {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(13, 33, 53, .06);
}
.outlook-map-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.outlook-map-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--line-2);
  background: var(--surface);
  font: 650 .78rem/1 var(--f-ui);
  color: var(--muted);
}
.outlook-map-caption svg {
  width: 14px;
  height: 14px;
  color: var(--cobalt);
}
.outlook-map-frame:hover .outlook-map-caption {
  color: var(--cobalt);
}

.outlook-copy-col {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.outlook-subhead {
  display: block;
  font: 750 .75rem/1 var(--f-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.outlook-discussion {
  display: grid;
  gap: 12px;
}
.outlook-para {
  margin: 0;
  font-size: .98rem;
  line-height: 1.62;
  color: var(--ink);
  white-space: pre-line;
}
.outlook-tags-block {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.outlook-sheet-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.outlook-list-card {
  border-left: 4px solid var(--c);
  overflow: hidden;
}
.outlook-list-in {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: start;
}
.outlook-list-map {
  all: unset;
  cursor: zoom-in;
  display: block;
}
.outlook-list-map img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.product-map { background: var(--surface-2); min-height: 0; display: block; padding: 0; align-self: stretch; }
.map-btn { all: unset; box-sizing: border-box; display: block; position: relative; width: 100%; cursor: zoom-in; }
.map-btn img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.map-expand { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; background: rgba(14, 42, 66, .86); color: #fff; font: 700 .76rem/1 var(--f-ui); }
.map-expand svg { width: 14px; height: 14px; }
.synoptic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; }
.map-controls { left: 12px; right: auto; bottom: 12px; width: auto; max-width: calc(100% - 24px); gap: 10px; padding: 6px 8px 6px 14px; border-radius: 10px; }
.map-controls .time { font: 700 .82rem/1 var(--f-ui); white-space: nowrap; }

/* ---- Responsive ---- */
@media (max-width: 1120px) {
  .q-town-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-dashboard-grid { grid-template-columns: 1fr; }
  .week-explorer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-bar { grid-template-columns: 1fr; gap: 14px; }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-private-in { grid-template-columns: 1fr; }
  .outlook-sheet-grid { grid-template-columns: 1fr; }
  .outlook-map-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .outlook-list-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .q-town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-row-top { grid-template-columns: 48px 32px minmax(0, 1fr) 58px; gap: 8px; }
  .period-grid { grid-template-columns: 1fr; }
  .day-metrics-grid { grid-template-columns: 1fr 1fr; }
  .synoptic { grid-template-columns: 1fr; gap: 12px; }
}

/* ---- Regional forecast ---- */
.rf-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.rf-pick { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 650 .88rem/1 var(--f-ui); cursor: pointer; transition: border-color .15s, background .15s; }
.rf-pick:hover { border-color: var(--cobalt); }
.rf-pick.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rf-region-hd { margin-bottom: 14px; }
.rf-region-hd p { margin: 4px 0 0; }
.rf-today { padding: 26px 28px; display: grid; gap: 16px; border-left: 5px solid var(--cobalt); }
.rf-today-hd, .rf-day-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rf-today h3 { margin: 4px 0 0; font-size: 1.7rem; letter-spacing: -.02em; }
.rf-day-card h4 { margin: 4px 0 0; font-size: 1.2rem; }
.rf-day { font: 750 .8rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--cobalt); }
.rf-day small { font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.rf-text { margin: 0; font-size: 1.04rem; line-height: 1.65; color: var(--ink); max-width: 75ch; }
.rf-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.rf-day-card { padding: 20px 22px; display: grid; gap: 12px; align-content: start; }
.rf-outlook-hd { margin: 26px 0 12px; }
.rf-chance { display: grid; grid-template-columns: auto 90px; grid-template-areas: 'n bar' 'l l'; align-items: center; gap: 2px 10px; min-width: 150px; }
.rf-chance-n { grid-area: n; font: 800 1.35rem/1 var(--f-ui); font-variant-numeric: tabular-nums; color: var(--ink); }
.rf-chance-bar { grid-area: bar; height: 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.rf-chance-bar i { display: block; height: 100%; background: #60a5fa; }
.rf-chance.rf-mid .rf-chance-bar i { background: #3b82f6; }
.rf-chance.rf-hi .rf-chance-bar i { background: #1d4ed8; }
.rf-chance-l { grid-area: l; font: 600 .72rem/1 var(--f-ui); color: var(--muted); }
.rf-towns { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 14px; }
.rf-towns li { flex: 1 1 150px; }
.rf-towns a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rf-towns a:hover { border-color: var(--cobalt); }
.rf-towns b { font-size: .9rem; font-weight: 700; }
.rf-hl { display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 800; }
.rf-hi { color: #c2410c; }
.rf-lo { color: #1d4ed8; }
.rf-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rf-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rf-table th, .rf-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rf-table th { font: 700 .72rem/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.rf-table tr.on td { background: var(--ice-3); }
.rf-table a { text-decoration: none; color: var(--ink); }
.rf-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .rf-today { padding: 20px; } .rf-today h3 { font-size: 1.4rem; } }

/* ---- My area picker + personalised home ---- */
.ma-scrim { position: fixed; inset: 0; z-index: 1600; background: rgba(6, 18, 29, .55); display: grid; place-items: center; padding: 16px; }
.ma { width: min(560px, 100%); max-height: min(86vh, 700px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lift); overflow: hidden; }
.ma-hd { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; }
.ma-hd h2 { margin: 0; font-size: 1.35rem; }
.ma-hd p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.ma-tabs { display: flex; gap: 6px; padding: 8px 22px 0; border-bottom: 1px solid var(--line); }
.ma-tabs button { padding: 10px 14px; border: 0; background: none; font: 700 .9rem/1 var(--f-ui); color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.ma-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--cobalt); }
.ma-body { padding: 16px 22px 22px; overflow-y: auto; display: grid; gap: 12px; align-content: start; }
.ma-body[hidden] { display: none; }
.ma-q { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: 600 1rem var(--f-ui); background: var(--surface); color: var(--ink); }
.ma-q:focus { outline: none; border-color: var(--cobalt); }
.ma-geo { justify-self: start; }
.ma-list { display: grid; gap: 6px; }
.ma-item { display: grid; gap: 2px; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ma-item:hover { border-color: var(--cobalt); background: var(--ice-3); }
.ma-item b { font-size: .96rem; }
.ma-item small { color: var(--muted); font-size: .8rem; }
.ma-empty { color: var(--muted); margin: 6px 0; }
.hero-area { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm, 0 2px 8px rgba(11, 31, 48, .08)); }
.hero-area-l { font: 700 .72rem/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-area b { font-size: 1.15rem; }
.hero-area-clear { border: 0; background: none; color: var(--cobalt); font: 650 .84rem var(--f-ui); cursor: pointer; text-decoration: underline; padding: 0; }
.hero-bar-personal { align-items: center; }
.hero-set-area { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.region-home .rf-region-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Home page collapsible sections */
.home-fold { border: 1px solid var(--line); border-radius: 16px; background: var(--card, #fff); }
.home-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; font-weight: 700; cursor: pointer; list-style: none; }
.home-fold > summary::-webkit-details-marker { display: none; }
.home-fold > summary:focus-visible, .home-fold-bar .btn:focus-visible { outline: 3px solid var(--ice, #5aa9ef); outline-offset: 2px; }
.home-fold-state::after { content: 'Show'; font-size: .8rem; font-weight: 600; opacity: .7; }
.home-fold[open] .home-fold-state::after { content: 'Hide'; }
.home-fold-body { padding: 4px 18px 20px; }
.home-fold-body .section-hd { margin-top: 8px; }
.home-fold-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 4px; }
.home-fold-lbl { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
@media (max-width: 720px) { .home-fold-body { padding: 0 14px 16px; } .home-fold-body .section-hd p { display: none; } }

/* ======================================================================
   Simplified chrome: calmer header, quieter status strip, tidier home page
   ====================================================================== */

/* Header: five tabs, lighter touch */
.hdr { gap: 12px; }
.nav { margin-left: 6px; gap: 0; }
.nav-link { height: 36px; padding: 0 11px; font-size: .92rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.nav-link .caret { width: 12px; height: 12px; opacity: .55; }
.nav-link.active { background: var(--ice-3); }
.nav-link.active::after { display: none; }
.search-trigger { min-width: 0; width: 124px; height: 36px; padding: 0 8px 0 11px; gap: 8px; font-weight: 600; background: transparent; }
.search-trigger kbd { display: none; }
.hdr-cta { white-space: nowrap; }
.mega.small { width: 290px; }
.mega-item small { max-width: 34ch; }

/* Status strip: one calm line instead of a row of pills */
.ribbon { background: var(--surface); border-bottom: 1px solid var(--line); }
.ribbon-in { height: 38px; gap: 2px; }
.ribbon-label { margin-right: 8px; font-size: .64rem; letter-spacing: .12em; opacity: .75; }
.rb { height: 30px; padding: 0 10px; gap: 7px; background: transparent; border: 0; border-radius: 8px; font-size: .8rem; font-weight: 600; box-shadow: none; }
.rb:hover { background: var(--ice-3); border: 0; }
.rb + .rb { position: relative; }
.rb + .rb::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.rb b { font-weight: 600; color: var(--muted); }
.rb i { width: 8px; height: 8px; }
.rb.sk { border: 0; }
@media (max-width: 900px) {
  .rb .rb-txt { display: none; }
  .rb-radar { display: none; }
}

/* Home: fewer competing blocks */
.hero-strip-hint { opacity: .8; font-weight: 500; }
.hero-strip-foot .btn { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.aside-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 12px; }
.aside-qlink { padding: 8px 10px; background: transparent; font-weight: 650; }
.aside-qlink svg:last-child { display: none; }
.section { padding: 34px 0; }
.section-tight { padding: 22px 0; }
.home-fold-body .section-hd .eyebrow { display: none; }
.home-fold-body .section-hd { margin-bottom: 14px; }
.home-fold-bar { padding-top: 10px; }
.media-card { min-height: 180px; }
.media-card h3 { font-size: 1.25rem; }
.media-card .bd { padding: 20px; }
.media-card p { font-size: .86rem; }
.cta-private-in { padding: 22px 24px; }
.cta-private-in .display { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem) !important; }
@media (max-width: 720px) {
  .media-card { min-height: 130px; }
  .media-card p { display: none; }
  .hero-strip-hint { display: none; }
  .section { padding: 26px 0; }
  .section-tight { padding: 16px 0; }
}

/* Town detail: compact, collapsible sections */
.td-fold{padding:0}
.td-fold details,.td-metrics{border-top:1px solid var(--line,#e2e8f0)}
.td-fold>details:first-child{border-top:0}
.td-sum{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;list-style:none;font-size:.95rem}
.td-sum::-webkit-details-marker{display:none}
.td-caret{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;opacity:.6}
details[open]>.td-sum .td-caret{transform:rotate(-135deg)}
.td-body{padding:0 16px 14px}
.td-fold .td-body .row.between{margin-bottom:10px}
.week-list-panel{padding:12px}
.now{padding:14px}

/* RWN: prominent "View Detailed Forecast" button */
details.more { border-top: 0; padding-top: 0; }
details.more summary.btn { padding: 12px 22px; font-size: .95rem; font-weight: 800; color: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(29,107,181,.3); }
details.more summary.btn svg { color: #fff; }

/* Regional forecast: day icon + edited / computer-generated note */
.rf-hd-main { display: flex; align-items: center; gap: 12px; }
.rf-wx { width: 52px; height: 52px; flex-shrink: 0; }
.rf-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: .8rem; color: var(--muted); }
.rf-note svg { width: 15px; height: 15px; flex-shrink: 0; }
.rf-note-edit { padding: 12px 14px; border-radius: 12px; font-size: .92rem; color: var(--enhanced-fg); background: var(--enhanced-bg); border: 1px solid color-mix(in srgb, var(--enhanced) 40%, transparent); }
.rf-note-edit svg { width: 20px; height: 20px; color: var(--enhanced); }
