/* Frontend source-of-truth file (preferred over web/style.css mirror). */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg0: #050a12;
  --bg1: #0a1120;
  --bg2: #0f1829;
  --bg-glow: rgba(0, 80, 160, 0.09);
  --card: rgba(11, 24, 42, 0.8);
  --card-hover: rgba(16, 33, 56, 0.9);
  --card-glass: rgba(255, 255, 255, 0.02);
  --stroke: rgba(255, 255, 255, 0.085);
  --stroke2: rgba(255, 255, 255, 0.16);
  --text: #e8ecf2;
  --text-soft: #a8b8cc;
  --muted: #7a8ba3;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.25);
  --accent-glow: rgba(0, 212, 255, 0.24);
  --warm: #ffa94d;
  --cold: #00d4ff;
  --precip: #79c0ff;
  --danger: #ff4444;
  --success: #22e066;
  --live: #00ff88;

  --font: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.22);
  --shadow-glow: 0 0 80px var(--accent-glow);

  --pad: 24px;
  --gap: 20px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
html, body { height: 100%; margin: 0; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible on focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg0);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Cinematic background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--bg-glow) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%, rgba(0, 50, 100, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
  pointer-events: none;
  z-index: 0;
  transition: background 1s ease;
}
body.temp-cold::before {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 120, 200, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%, rgba(0, 80, 140, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
}
body.temp-mild::before {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 160, 120, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%, rgba(0, 100, 80, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
}
body.temp-hot::before {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 80, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 100%, rgba(180, 60, 0, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
}
body > * { position: relative; z-index: 1; }

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .dot { animation: none; }
  .temp { animation: none; }
  .hero-live-badge { animation: none; }
  .forecast-tile { animation: none; }
  .skeleton-temp { animation: none; background: var(--stroke) !important; }
  .skeleton-tile { animation: none; background: var(--stroke) !important; }
}

body.loading .hero-temp .temp { opacity: .5; }
body.loading .hero-temp .temp.skeleton-temp { color: transparent; background: linear-gradient(90deg, var(--stroke) 25%, var(--stroke2) 50%, var(--stroke) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
body.loading .skeleton-ready { opacity: 0.6; pointer-events: none; }
body.loading .skeleton-tile { display: block !important; }
body:not(.loading) .skeleton-tile { display: none !important; }
.skeleton-tile {
  display: none;
  min-height: 160px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--stroke) 25%, var(--stroke2) 50%, var(--stroke) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.loading-spinner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border: 3px solid var(--stroke);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
}
body.loading .loading-spinner { opacity: 1; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

/* Topbar — broadcast chrome */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand center"
    "nav nav";
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  padding: 12px 20px 8px;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.98) 0%, rgba(5, 10, 18, 0.92) 100%);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.brand {
  grid-area: brand;
  display: flex;
  gap: 12px;
  align-items: center;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.45);
  animation: none;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--live); }
  50% { opacity: 0.7; box-shadow: 0 0 6px var(--live); }
}
.brand-title {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; letter-spacing: 0.01em; }

.topbar-center {
  grid-area: center;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.topbar-status {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.topbar-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.updated { font-size: 12px; color: var(--text-soft); font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.updated-sub { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.updated.is-stale, .updated-sub.is-stale { color: var(--warm); }

.topbar-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.topbar-pill-temp {
  min-width: 56px;
  text-align: center;
}
.topbar-pill-school {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn.btn-primary {
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-weight: 700;
}
.btn.btn-primary:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #7ae8ff;
}
.btn.btn-subtle {
  color: var(--muted);
  padding: 7px 8px;
}

/* NWS alerts banner */
.nws-alerts-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 169, 77, 0.12);
  border-bottom: 1px solid rgba(255, 169, 77, 0.35);
  color: var(--text);
  font-size: 14px;
}
.nws-alerts-icon { font-size: 22px; color: var(--warm); flex-shrink: 0; }
.nws-alerts-content { flex: 1; min-width: 0; }
.nws-alerts-content strong { display: block; margin-bottom: 6px; }
.nws-alerts-list { margin: 4px 0; }
.nws-alerts-list .nws-alert-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 169, 77, 0.15);
  font-size: 13px;
  color: var(--text-soft);
}
.nws-alerts-list .nws-alert-item:last-child { border-bottom: none; }
.nws-alerts-list .nws-alert-type { font-weight: 600; color: var(--warm); margin-right: 8px; }
.nws-alerts-link { font-size: 12px; color: var(--accent); text-decoration: none; margin-top: 6px; display: inline-block; }
.nws-alerts-link:hover { text-decoration: underline; }

/* Outage banner */
.outage-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 68, 68, 0.12);
  border-bottom: 1px solid rgba(255, 68, 68, 0.35);
  color: var(--text);
  font-size: 14px;
}
.outage-banner-icon { font-size: 22px; color: var(--danger); }

/* Load error banner */
.load-error-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(255, 169, 77, 0.12);
  border-bottom: 1px solid rgba(255, 169, 77, 0.35);
  color: var(--text);
  font-size: 14px;
}
.load-error-icon { font-size: 22px; color: var(--warm); flex-shrink: 0; }
.load-error-msg { flex: 1; }
.load-error-retry { flex-shrink: 0; color: var(--accent); font-weight: 600; }

.outages-summary { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.outages-by-state { font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.outages-state { margin-bottom: 6px; }
.outages-counties { font-size: 12px; color: var(--muted); font-weight: 400; }

.nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nav::-webkit-scrollbar { display: none; }
.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--stroke2);
  margin: 0 8px;
  flex-shrink: 0;
}
.tab {
  appearance: none; border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0.01em;
}
.tab:hover { color: var(--text); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab.tab-advanced {
  font-size: 12px;
  opacity: 0.78;
}
.tab.tab-advanced.is-active {
  opacity: 1;
}

.btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-soft);
  padding: 8px 14px;
  font-weight: 600; font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { color: var(--text); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.ghost { border: none; }

/* What changed strip */
.change-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.change-card {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--stroke);
  background: rgba(255, 255, 255, 0.015);
}
.change-card h3 {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 700;
}
.change-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
}
.change-strip-meta {
  grid-column: 1 / -1;
  margin-top: -2px;
  font-size: 10.5px;
  color: var(--muted);
}

/* Mobile quick first view */
.mobile-first-view {
  display: none;
  margin-top: 14px;
  grid-template-columns: 1fr;
  gap: 10px;
}
.mobile-brief-card {
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
}
.mobile-brief-card h3 {
  margin: 0 0 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.mobile-brief-value {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 700;
}
.mobile-brief-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Page */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 52px;
  opacity: 1;
  transition: opacity 0.15s ease-out;
}
.page.is-transitioning { opacity: 0.5; }

/* HERO — Broadcast dominance */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 30px 22px 34px;
  background: transparent;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 16px;
}
.hero-left { display: flex; align-items: center; min-height: 140px; }
.hero-temp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-location {
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-temp-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.temp {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 0 24px var(--accent-glow);
  animation: temp-reveal 0.6s ease-out;
}
@keyframes temp-reveal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.hero-conditions {
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 600;
}
.hero-cond-sep { opacity: .4; margin: 0 10px; font-weight: 400; }
.hero-submeta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--live);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--r-sm);
  animation: none;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.sep { opacity: .5; margin: 0 10px; }

.hero-right { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.status-inline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.status-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.status-compact .status-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.status-compact .status-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  font-family: var(--font-mono);
}
.meter.short { width: 132px; height: 6px; margin-top: 0; border-radius: 999px; background: rgba(0,0,0,.4); overflow: hidden; }
.meter.short .meter-fill { border-radius: 999px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

.hero-brief {
  margin: 8px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}

.pillrow.hero-pills { display: none; }
.pillrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--card-glass);
  border: 1px solid var(--stroke);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

/* Meters */
.meter {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  overflow: hidden;
}
.meter.thin { height: 6px; }
.meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #40e0ff);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.meter-fill.low-risk { background: var(--success); }
.meter-fill.med-risk { background: var(--warm); }
.meter-fill.high-risk { background: var(--danger); }

/* METRICS — glass chyron strip */
.metrics {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed var(--stroke);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
}
.metrics-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.metrics-band .m-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 12px;
}
.metrics-band .m-item:first-child { padding-left: 0; }
.metrics-band .m-sep {
  width: 1px;
  min-width: 1px;
  height: 16px;
  background: var(--stroke2);
  padding: 0;
  flex-shrink: 0;
  align-self: center;
}
.metrics-band .m-k {
  font-size: 10px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.metrics-band .m-v { font-size: 14px; font-weight: 700; color: var(--text-soft); letter-spacing: -0.02em; font-family: var(--font-mono); }

/* DECISION BRIEF */
.decision-brief {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.actions-card {
  min-height: 220px;
  order: 1;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(0, 212, 255, 0.25);
}
.trust-card {
  min-height: 220px;
  order: 2;
  opacity: 0.95;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.trust-kpi {
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.2);
}
.trust-kpi .k {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.trust-kpi .v {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}
.trust-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.55;
}

.actions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.actions-card .card-head {
  margin-bottom: 14px;
}
.actions-card .card-head h2 {
  font-size: 1.2rem;
}
.actions-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.action-mode-pill {
  padding: 4px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}
.action-mode-pill.mode-act_now {
  border-color: rgba(255, 68, 68, 0.65);
  color: var(--danger);
}
.action-mode-pill.mode-prepare {
  border-color: rgba(255, 169, 77, 0.7);
  color: var(--warm);
}
.action-mode-pill.mode-monitor {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--accent);
}
.action-mode-pill.mode-low_concern {
  border-color: rgba(34, 224, 102, 0.5);
  color: var(--success);
}
.action-item {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 14px;
  border-left: 3px solid var(--stroke2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}
.actions-list .action-item:first-child {
  background: rgba(0, 212, 255, 0.08);
  border-left-width: 4px;
}
.action-state {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.action-state.state-act_now {
  border-color: rgba(255, 68, 68, 0.65);
  color: var(--danger);
}
.action-state.state-prepare {
  border-color: rgba(255, 169, 77, 0.7);
  color: var(--warm);
}
.action-state.state-monitor {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--accent);
}
.action-state.state-low_concern {
  border-color: rgba(34, 224, 102, 0.5);
  color: var(--success);
}
.action-text {
  color: inherit;
}
.action-item.action-low { border-left-color: rgba(34, 224, 102, 0.7); }
.action-item.action-medium { border-left-color: rgba(255, 169, 77, 0.85); }
.action-item.action-high { border-left-color: rgba(255, 68, 68, 0.85); }

/* FORECAST STRIP */
.forecast-strip { margin-top: 36px; }
.strip-title {
  font-size: 11px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  font-weight: 600;
}
.forecast-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}
.forecast-tiles-full { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }

.forecast-tiles-page {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}
.forecast-tile-full {
  padding: 24px 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--stroke);
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  cursor: pointer;
}
.forecast-tile-full:hover {
  background: var(--card-hover);
  border-color: var(--stroke2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.forecast-tile-full .ft-day { font-weight: 700; font-size: 16px; }
.forecast-tile-full .ft-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.forecast-tile-full .ft-icon-wrap { margin-top: 14px; height: 56px; display: flex; align-items: center; justify-content: center; }
.forecast-tile-full .ft-icon { width: 56px; height: 56px; }
.forecast-tile-full .ft-hi { font-size: 1.9rem; font-weight: 700; color: var(--text); margin-top: 12px; }
.forecast-tile-full .ft-lo { font-size: 14px; color: var(--muted); margin-top: 4px; }
.forecast-tile-full .ft-meta { font-size: 11px; color: var(--muted); margin-top: 8px; }
.forecast-tile-full .ft-narrative {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  text-align: center;
  border-top: 1px solid var(--stroke);
}

.forecast-tile {
  padding: 22px 16px;
  min-height: 160px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--stroke);
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: none;
  cursor: pointer;
}
.forecast-tile:hover {
  background: var(--card-hover);
  border-color: var(--stroke2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.forecast-tile .ft-day { font-weight: 700; font-size: 14px; }
.forecast-tile .ft-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.forecast-tile .ft-icon-wrap { margin-top: 12px; height: 52px; display: flex; align-items: center; justify-content: center; }
.forecast-tile .ft-icon { width: 52px; height: 52px; }
.forecast-tile .ft-hi { font-size: 1.75rem; font-weight: 700; color: var(--text); margin-top: 12px; }
.forecast-tile .ft-lo { font-size: 13px; color: var(--muted); margin-top: 4px; }
.forecast-tile .ft-meta { font-size: 11px; color: var(--muted); margin-top: 8px; }
.forecast-tile:focus-visible,
.forecast-tile-full:focus-visible,
.snow-day-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.forecast-tile.is-selected,
.forecast-tile-full.is-selected,
.snow-day-card.is-selected {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35), var(--shadow-card);
  transform: translateY(-2px);
}

/* CONTENT GRID */
.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 24px;
  align-items: start;
}
.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.2); }
.card-wide { min-height: 360px; }
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}
.card-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-card .card-head h2,
.trust-card .card-head h2 {
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}
.card-head .snow-ai-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--accent);
  flex-shrink: 0;
}
.card-meta { font-size: 12px; color: var(--muted); font-weight: 600; }

.grid .card.card-wide {
  max-width: 900px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.grid .card.card-wide .card-head {
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 16px;
  padding-bottom: 10px;
}
.grid .card.card-wide .card-head h2.section-title {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 700;
}
.disc .disc-alt-label,
.disc .disc-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.grid .card.card-wide .card-meta { font-size: 11px; color: var(--muted); }

/* DISCUSSION */
.disc { display: flex; flex-direction: column; gap: 0; }
.disc-prose {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.75;
}
.disc-lead {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}
.disc-body {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}
.disc-alt {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}
.disc-alt-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}
.disc-alt-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.disc-alt-list li { margin: 0.2rem 0; }
.disc-impacts-block { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--stroke); }
.disc-impacts-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.disc-footer {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}
.disc-meta {
  margin-top: 0;
  padding-top: 14px;
  border-top: none;
}
.disc-meta-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 6px;
}
.disc-meta-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.disc-meta-list li { margin: 0.15rem 0; }

/* SNOW */
.snow { display: flex; flex-direction: column; gap: 0; }
.prob {
  padding: 16px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stroke);
  transition: background 0.2s;
}
.prob:hover { background: var(--card-glass); }
.prob .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.prob .v { font-size: 1.1rem; font-weight: 700; font-family: var(--font-mono); }
.callout {
  padding: 20px 22px;
  background: var(--card-glass);
  border: none;
  border-bottom: 1px solid var(--stroke);
}
.callout .k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.callout .big { margin-top: 10px; font-size: 1.4rem; font-weight: 700; }
.callout .sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
#snowConfDetail { color: var(--text-soft); }
#snowWindowHint { font-size: 11px; color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags .tag {
  padding: 4px 0;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}
.tags { gap: 0; }
.tags .tag + .tag::before { content: " · "; color: var(--muted); margin-right: 4px; }

/* SNOW TAB */
.snow-tab-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--stroke);
}
.snow-tab-unified { display: flex; flex-direction: column; gap: 14px; }
.snow-tab-top {
  padding: 18px 22px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stroke);
}
.snow-tab-top.on-time,
.snow-tab-top.no-change { background: rgba(34, 224, 102, 0.06); border-color: rgba(34, 224, 102, 0.2); }
.snow-tab-top.no-school { background: rgba(122, 143, 181, 0.08); border-color: rgba(122, 143, 181, 0.2); }
.snow-tab-top.delay { background: rgba(255, 169, 77, 0.06); border-color: rgba(255, 169, 77, 0.25); }
.snow-tab-top.closure { background: rgba(255, 68, 68, 0.06); border-color: rgba(255, 68, 68, 0.25); }
.snow-tab-primary { display: flex; flex-direction: column; gap: 2px; }
.snow-tab-primary .snow-tab-value { font-size: 1.5rem; font-weight: 700; }
.snow-tab-primary .snow-tab-meta { font-size: 13px; color: var(--muted); }
.snow-tab-decision {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.snow-tab-decision.tone-high { color: var(--danger); }
.snow-tab-decision.tone-medium { color: var(--warm); }
.snow-tab-decision.tone-low { color: var(--success); }
.snow-tab-window {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.snow-tab-probs-inline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--text-soft);
}
.snow-tab-sep { opacity: .5; margin: 0 10px; }
.snow-tab-drivers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.snow-tab-drivers .tag { font-size: 12px; }
.snow-tab-guidance {
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stroke);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}
.snow-tab-ops-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}
.snow-tab-guidance .snow-tab-prep-inner { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.snow-tab-guidance h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; }
.snow-tab-guidance ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.snow-tab-extras {
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.snow-tab-extras .snow-tab-road + .snow-tab-road { margin-top: 8px; }
.snow-tab-road { font-size: 14px; color: var(--text-soft); }
.snow-tab-road .road-alert-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: rgba(255, 169, 77, 0.2);
  color: var(--warm);
  margin-right: 8px;
}
.snow-tab-road-signup { background: transparent !important; }
.snow-tab-road-signup a { color: var(--accent); text-decoration: none; }
.snow-tab-road-signup a:hover { text-decoration: underline; }

/* SMS signup */
.sms-signup {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--stroke);
}
.sms-signup-title { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.sms-signup-desc { font-size: 13px; color: var(--text-soft); margin: 0 0 14px; line-height: 1.5; }
.sms-signup-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sms-input {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.3);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
}
.sms-input::placeholder { color: var(--muted); }
.sms-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2); }
.sms-btn { flex-shrink: 0; }
.sms-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sms-signup-result { font-size: 13px; margin: 10px 0 0; }
.snow-llm { margin-top: 12px; padding: 12px 14px; background: rgba(0,0,0,.2); border-radius: var(--r-sm); font-size: 13px; line-height: 1.55; color: var(--text-soft); }

.snow-legend { font-size: 11px; color: var(--muted); margin: -4px 0 12px; }
.snow-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.snow-day-card {
  padding: 14px 12px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--stroke);
  transition: all 0.25s ease;
  cursor: pointer;
}
.snow-day-card:hover { border-color: var(--stroke2); transform: translateY(-1px); }
.snow-day-card.high-risk { border-color: rgba(255, 68, 68, 0.4); background: rgba(255, 68, 68, 0.05); }
.snow-day-card.moderate-risk { border-color: rgba(255, 169, 77, 0.3); }
.snow-day-card .sd-date { font-weight: 700; font-size: 13px; }
.snow-day-card .sd-day { font-size: 11px; color: var(--muted); margin-top: 2px; }
.snow-day-card .sd-most { font-size: 12px; font-weight: 700; margin-top: 10px; }
.snow-day-card .sd-most.on-time,
.snow-day-card .sd-most.no-change { color: var(--success); }
.snow-day-card .sd-most.no-school { color: var(--muted); }
.snow-day-card .sd-most.delay { color: var(--warm); }
.snow-day-card .sd-most.closure { color: var(--danger); }
.snow-day-card .sd-probs { font-size: 10px; color: var(--muted); margin-top: 6px; font-family: var(--font-mono); }
.snow-day-card .sd-reasons { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--stroke); }
.snow-day-card .sd-reason {
  display: block;
  font-size: 10px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-top: 3px;
}
.snow-day-card .sd-reason:first-child { margin-top: 0; }

/* Tile detail overlay */
body.tile-overlay-open { overflow: hidden; }
.tile-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tile-overlay[hidden] { display: none; }
.tile-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 10, 18, 0.74);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.tile-overlay-panel {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke2);
  background: rgba(8, 20, 36, 0.96);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.tile-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--stroke2);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.tile-overlay-close:hover { color: var(--text); border-color: var(--accent-dim); }
.tile-overlay-title {
  margin: 0 0 10px;
  padding-right: 72px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.tile-overlay-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.tile-overlay-intro { margin: 0; }
.tile-overlay-kv {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.tile-overlay-list {
  margin: 0;
  padding-left: 18px;
}
.tile-overlay-list li { margin: 4px 0; }

/* Verification tab */
.verify-card {
  max-width: 1080px;
}
.verify-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.verify-kpi {
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.2);
}
.verify-kpi .k {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.verify-kpi .v {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}
.verify-help,
.verify-learning {
  margin: 10px 0 0;
}
.verify-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.verify-block {
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
}
.verify-block h3 {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.verify-block-meta {
  margin: 0 0 8px;
  font-size: 12px;
}
.verify-table-wrap {
  overflow: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 2px;
}
.verify-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12px;
}
.verify-table th,
.verify-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  white-space: nowrap;
}
.verify-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.verify-table tbody tr:last-child td {
  border-bottom: none;
}
.verify-table tbody tr.is-partial td {
  color: var(--text-soft);
}
.verify-na {
  color: var(--muted);
  font-style: italic;
}
.verify-partial-note {
  margin-top: 8px;
}

/* Models tab */
.models-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.model-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 14px;
}
.model-row span:first-child { font-family: var(--font-mono); font-weight: 500; }
.model-row span:last-child { color: var(--muted); }
.muted { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* AFD / Discussion page */
.afd-card { max-width: 900px; background: transparent; border: none; box-shadow: none; padding: 0; }
.afd-card .card-head { border-bottom: 1px solid var(--stroke); }
.afd-card .card-head h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
.afd-external { margin-bottom: 24px; }
.afd-link {
  display: inline-block;
  padding: 6px 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.afd-link:hover { text-decoration: underline; }
.afd-section { margin-bottom: 24px; }
.afd-h3 {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.afd-list { margin: 0; padding-left: 20px; color: var(--text-soft); }
.afd-list li { margin: 8px 0; line-height: 1.55; }
.afd-p { margin: 0 0 12px; line-height: 1.6; color: var(--text-soft); }
.afd-p:last-child { margin-bottom: 0; }
.afd-llm { margin: 0; line-height: 1.65; color: var(--text-soft); white-space: pre-wrap; }

/* Maps tab */
.maps-card { overflow: hidden; }
.maps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.maps-subnav { display: flex; gap: 6px; }
.maps-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.maps-btn:hover { color: var(--text-soft); border-color: var(--stroke2); }
.maps-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.maps-btn.is-active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
}
.maps-panel { display: none; }
.maps-panel.is-active { display: block; }
.maps-embed {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: 0;
  padding-bottom: 60%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--stroke);
}
.maps-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.maps-attrib {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.maps-attrib a { color: var(--accent); text-decoration: none; }
.maps-attrib a:hover { text-decoration: underline; }

/* Region lookup card */
.region-card #region-lookup-result {
  margin-top: 10px;
  display: none;
}
.region-saved {
  margin: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.region-saved-btn {
  border: 1px solid var(--stroke2);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 11px;
}
.region-saved-btn.is-empty { opacity: 0.75; }
.region-save-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.region-save-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.region-save-btn {
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 11px;
}
.region-lookup-status.error { color: #ff9aa2; }
.region-outlook {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.region-outlook-label {
  margin: 0 0 6px;
  font-weight: 700;
}
.region-outlook-meta,
.region-outlook-confidence {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
}
.region-outlook-call {
  margin: 8px 0;
}
.region-outlook-narrative {
  margin-top: 8px;
  line-height: 1.55;
  color: var(--text-soft);
}
.region-outlook-days {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.region-outlook-days li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--stroke);
}
.region-outlook-days li span:first-child {
  color: var(--muted);
  white-space: nowrap;
}
.region-outlook-days li span:last-child {
  text-align: right;
  color: var(--text-soft);
}

/* Responsive */
@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "center"
      "nav";
    padding: 12px 16px 8px;
  }
  .topbar-center { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px 34px; }
  .change-strip { grid-template-columns: 1fr; }
  .temp { font-size: 6.5rem; }
  .grid { grid-template-columns: 1fr; }
  .decision-brief { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-grid { grid-template-columns: 1fr; }
  .sidebar-cards { order: 2; }
  .snow-days-grid { grid-template-columns: repeat(4, 1fr); }
  .forecast-tiles-page { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
  .metrics-band { flex-wrap: wrap; gap: 8px; }
  .metrics-band .m-sep { display: none; }
}
@media (max-width: 768px) {
  .topbar {
    padding: 12px 14px 8px;
    row-gap: 10px;
  }
  .topbar-status {
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar-pill-school {
    max-width: 100%;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .btn-subtle { display: none; }
  .nav { max-width: 100%; }
  .tab.tab-advanced { display: none; }
  .page { padding: 0 16px 34px; }
  .change-strip { display: none; }
  .mobile-first-view { display: grid; }
  #metrics, #forecastStrip { display: none !important; }
  .decision-brief { grid-template-columns: 1fr; margin-top: 12px; }
  .decision-brief .trust-card { display: none; }
  .temp { font-size: 5.5rem; }
  .metrics-band { flex-wrap: wrap; gap: 6px; }
  .metrics-band .m-sep { display: none; }
  .metrics-band .m-item { padding: 0 8px 0 0; }
  .forecast-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .forecast-tiles-full { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .forecast-tiles-page { grid-template-columns: repeat(2, 1fr); }
  .topbar-center { width: 100%; }
  .hero-brief { font-size: 14px; }
  .actions-head-right { align-items: flex-start; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snow-days-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Print styles */
@media print {
  body {
    background: #fff;
    color: #111;
  }
  body::before { display: none; }
  .skip-link,
  .loading-spinner,
  .tile-overlay,
  .topbar .nav,
  .topbar .btn,
  .topbar .topbar-pill,
  .dot,
  .maps-embed iframe,
  .sms-signup { display: none !important; }
  .topbar {
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
  }
  .topbar-center { justify-content: flex-start; }
  .updated { color: #333; }
  .card, .forecast-tile, .forecast-tile-full {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .tab { color: #333; }
  .tab.is-active { color: #000; border-bottom-color: #000; }
  .temp, .hero-conditions, .brand-title, .card-head h2 { color: #111 !important; }
  .muted, .card-meta { color: #555 !important; }
  .metrics { background: #f5f5f5 !important; border-color: #ccc !important; }
  .metrics-band .m-k { color: #555; }
  .metrics-band .m-v { color: #111; }
  .disc-lead, .disc-body, .disc-footer { color: #222 !important; }
  .disc-alt-list, .disc-meta-list { color: #444 !important; }
  .snow .prob .k, .snow .callout .k { color: #555; }
  .snow .prob .v, .snow .callout .big { color: #111; }
  .meter-fill { background: #333 !important; }
  .meter-fill.low-risk { background: #2a7a2a !important; }
  .meter-fill.med-risk { background: #b8860b !important; }
  .meter-fill.high-risk { background: #c22 !important; }
  a { color: #0066cc; }
  .sr-only, .hero-live-badge, .skeleton-tile { display: none !important; }
}
