/* ============================================================
   Jackson Mo Weather — 2026 Redesign
   City of Jackson, MO — Maroon & Gold Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,300&family=Roboto+Condensed:wght@400;600;700&display=swap');

:root {
  /* Core palette — City of Jackson maroon & gold */
  --navy:        #eae3d5;   /* soft tan — section bg in light mode */
  --navy-2:      #e0d8c8;   /* slightly darker tan for depth */
  --navy-3:      #f5f0e8;   /* cream (card bg, was mid navy) */
  --navy-4:      #eae3d5;   /* cream-dark (hover/row bg) */
  --blue:        #7B1C2A;   /* maroon mid */
  --accent:      #C9A84C;   /* gold */
  --accent-2:    #C9A84C;   /* gold (same in light — gold on cream is readable) */
  --teal:        #9e2535;   /* maroon accent (replaces teal) */
  --storm:       #7B1C2A;   /* maroon (replaces storm blue) */
  --warn:        #c0392b;   /* warm red for hi temps */
  --danger:      #c0392b;
  --text:        #1a1008;   /* near-black on cream */
  --text-dim:    #3d2b1a;   /* dark brown-text */
  --text-faint:  #7a6248;   /* muted brown */
  --border:      rgba(123,28,42,0.2);
  --border-2:    rgba(123,28,42,0.1);
  --card:        #ffffff;          /* white card background */
  --card-hover:  #fdf9f4;
  --cell:        #fdf6ee;          /* data cell — warm cream, slightly off-white */
  --cell-border: rgba(123,28,42,0.12);
  --value:       #7B1C2A;          /* data values — maroon in light mode */
  --glow:        rgba(201,168,76,0.2);
  --glow-strong: rgba(201,168,76,0.4);
  --radius:      6px;
  --radius-lg:   12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; }

html {
  overflow-x: hidden;
}

body {
  background: #fdfaf5;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123,28,42,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 60%);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; color: var(--storm); }
h4 { font-size: 1.1rem; font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-2); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT WRAPPER ── */
.site-wrapper {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
}

/* ── TOP CONDITIONS BANNER ── */
.conditions-banner {
  background: linear-gradient(90deg, #4f1119 0%, #7B1C2A 50%, #4f1119 100%);
  border-bottom: 3px solid var(--accent);
  padding: 0.5rem 1.5rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
}

.conditions-banner .cond-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.75);
}

.conditions-banner .cond-item strong {
  color: #fff;
  font-weight: 600;
}

.conditions-banner .cond-item .label {
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.conditions-banner .temp-hero {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.conditions-banner .updated {
  margin-left: auto;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.trend-up   { color: #c0392b; }
.trend-down { color: #2471a3; }
.trend-steady { color: var(--text-dim); }

/* ── HEADER ── */
.site-header {
  background: linear-gradient(135deg, #3d0c14 0%, #7B1C2A 60%, #5a1220 100%);
  border-bottom: 4px solid var(--accent);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0.6;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-logo .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: none;
  line-height: 1;
  text-shadow: none;
}

.site-logo .logo-name span {
  color: var(--accent-2);
}

.site-logo .logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-family: 'Roboto Condensed', sans-serif;
}

.header-right {
  text-align: right;
  font-family: 'Roboto Condensed', sans-serif;
}

.header-temp {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: none;
}

.header-loc {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── HEADER ALERT BANNER ── */
.header-alert-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 1.5rem;
  background: rgba(123,28,42,0.06);
  border-top: 1px solid;
  border-bottom: 1px solid;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s;
}
.header-alert-banner:hover { background: rgba(123,28,42,0.1); }
.header-alert-icon { font-size: 1rem; flex-shrink: 0; }

/* ── NAVIGATION ── */
.site-nav {
  background: #7B1C2A;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item > span:hover,
.nav-item.active > a {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
  background: rgba(0,0,0,0.2);
}

.nav-item .chevron {
  font-size: 0.95rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-item:hover .chevron { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #5a1220;
  border: 1px solid var(--accent);
  border-top: 2px solid var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 200;
}

.nav-item:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.nav-dropdown a:hover {
  color: var(--accent-2);
  background: rgba(0,0,0,0.2);
  border-left-color: var(--accent);
}

/* ── MAIN CONTENT ── */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.page-header h1 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-header .page-desc {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.section-heading { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: 0 4px 20px rgba(123,28,42,0.08);
}

.card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ── DATA GRID ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.data-cell {
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: visible;
  cursor: default;
}

/* ── TOOLTIPS ── */
.data-cell[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a0a0e;
  color: #f5f0e8;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1.4;
  white-space: normal;
  width: 220px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.data-cell[data-tooltip]:hover::after {
  opacity: 1;
}

.data-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.data-cell:hover::before { opacity: 1; }

.data-cell .dc-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.data-cell .dc-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--value);
  line-height: 1;
}

.data-cell .dc-unit {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.data-cell .dc-trend {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ── SIDEBAR ── */
.sidebar {}

.sidebar .card + .card { margin-top: 1.2rem; }

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.15s, padding-left 0.15s;
}

.sidebar-links a::before {
  content: '›';
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.sidebar-links a:hover {
  color: var(--accent-2);
  padding-left: 4px;
}

/* ── TABLE ── */
.wx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wx-table th {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: rgba(123,28,42,0.04);
}

.wx-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-dim);
}

.wx-table tr:hover td {
  background: rgba(123,28,42,0.03);
  color: var(--text);
}

.wx-table td strong {
  color: var(--text);
  font-weight: 500;
}

/* ── RADAR EMBED ── */
.radar-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-3);
  aspect-ratio: 16/10;
}

.radar-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── FORECAST STRIPS ── */
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.forecast-day {
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.2s;
}

.forecast-day:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.forecast-day .fd-day {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.forecast-day .fd-icon {
  font-size: 2rem;
  margin: 0.5rem 0;
  display: block;
}

.forecast-day .fd-hi {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warn);
}

.forecast-day .fd-lo {
  font-size: 0.92rem;
  color: var(--storm);
}

.forecast-day .fd-desc {
  font-size: 0.95rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* ── ALERTS/ADVISORIES ── */
.alert-box {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 3px solid;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-box.warning  { border-color: var(--warn);   background: rgba(244,163,64,0.08); }
.alert-box.watch    { border-color: var(--danger);  background: rgba(255,90,90,0.08); }
.alert-box.advisory { border-color: var(--accent);  background: rgba(123,28,42,0.06); }
.alert-box.none     { border-color: var(--teal);    background: rgba(0,229,192,0.06); }

.alert-box .alert-icon { font-size: 1.4rem; flex-shrink: 0; }
.alert-box .alert-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.alert-box .alert-body {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

/* footer stacking handled in main @media (max-width: 768px) block above */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--accent); }

.footer-disclaimer {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--border-2);
  font-style: italic;
  color: var(--text-faint);
  font-size: 0.92rem;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-blue  { background: rgba(201,168,76,0.15);  color: var(--accent-2); border: 1px solid rgba(201,168,76,0.25); }
.badge-teal  { background: rgba(0,229,192,0.15);  color: var(--teal);     border: 1px solid rgba(0,229,192,0.3); }
.badge-warn  { background: rgba(244,163,64,0.15); color: var(--warn);     border: 1px solid rgba(244,163,64,0.3); }

/* ── ABOUT PAGE SPECIFIC ── */
.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(201,168,76,0.15); }
  50%       { box-shadow: 0 0 25px rgba(201,168,76,0.4); }
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.10s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.20s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.30s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.40s; }

/* ══════════════════════════════════════════════════════
   MOBILE NAVIGATION — HAMBURGER + DRAWER
   ══════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay behind mobile drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,13,26,0.75);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.visible { display: block; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════ */

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {

  /* Layout */
  .main-content {
    padding: 1.2rem 0.9rem;
  }

  /* Conditions banner — scrollable single row */
  .conditions-banner {
    padding: 0.45rem 0.9rem;
    gap: 0.3rem 1.2rem;
    font-size: 0.9rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .conditions-banner::-webkit-scrollbar { display: none; }
  .conditions-banner .updated { display: none; }
  .conditions-banner .temp-hero { font-size: 1.2rem; }

  /* Site header */
  .site-header {
    padding: 0.75rem 1rem;
  }
  .site-logo .logo-name { font-size: 1.5rem; }
  .site-logo .logo-sub  { font-size: 0.95rem; }
  .header-temp { font-size: 1.4rem; }
  .header-loc  { display: none; }

  /* ── HAMBURGER NAV ── */
  .nav-hamburger { display: flex; }

  .site-nav {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 44px;
  }

  /* Mobile drawer — slides in from left */
  .nav-inner {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(280px, 85vw);
    height: 100dvh;
    background: var(--navy-2);
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem 0 2rem;
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 30px rgba(123,28,42,0.15);
  }
  .nav-inner.mobile-open { left: 0; }

  /* Nav items stack vertically */
  .nav-item {
    width: 100%;
    position: static;
  }
  .nav-item > a,
  .nav-item > span {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-2);
    border-left: 3px solid transparent;
  }
  .nav-item.active > a,
  .nav-item > a:hover,
  .nav-item > span:hover {
    border-left-color: var(--accent);
    background: rgba(123,28,42,0.05);
    padding-left: 1.35rem;
  }

  /* Dropdown becomes inline expandable */
  .nav-dropdown {
    position: static;
    display: none;
    min-width: unset;
    border: none;
    border-radius: 0;
    background: rgba(123,28,42,0.06);
    box-shadow: none;
    padding: 0;
  }
  .nav-item:hover .nav-dropdown { display: none; } /* disable hover on mobile */
  .nav-item.mobile-dd-open .nav-dropdown { display: block; }

  .nav-dropdown a {
    padding: 0.7rem 1.25rem 0.7rem 2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-2);
    color: var(--text-dim);
  }
  .nav-dropdown a:hover {
    color: var(--accent-2);
    background: rgba(123,28,42,0.04);
  }

  .nav-item > span .chevron {
    transition: transform 0.2s;
  }
  .nav-item.mobile-dd-open > span .chevron {
    transform: rotate(180deg);
  }

  /* ── DATA GRID ── */
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .data-cell { padding: 0.8rem; }
  .data-cell .dc-value { font-size: 1.3rem; }

  /* ── PAGE HEADER ── */
  .page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; }
  .page-header h1 { font-size: 1.1rem !important; }
  .page-header .page-desc { font-size: 0.9rem; }

  /* ── CARDS ── */
  .card { padding: 1rem; }
  .card h3 { font-size: 0.9rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; }

  /* ── FORECAST STRIP ── */
  .forecast-strip {
    grid-template-columns: repeat(4, minmax(75px, 1fr));
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  /* ── TABLES ── */
  .wx-table { font-size: 0.9rem; }
  .wx-table th, .wx-table td { padding: 0.5rem 0.6rem; }

  /* ── FOOTER ── */
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer { padding: 1.25rem 1rem; margin-top: 2rem; }
  .footer-links { gap: 0.4rem 1rem; }

  /* ── SIDEBAR on mobile: compact ── */
  .sidebar .card + .card { margin-top: 0.75rem; }

  /* ── ALERT BOXES ── */
  .alert-box { padding: 0.75rem 1rem; gap: 0.65rem; }
  .alert-box .alert-icon { font-size: 1.1rem; }

}

/* ── SMALL PHONES (≤ 420px) ── */
@media (max-width: 420px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .data-cell .dc-value { font-size: 1.2rem; }
  .site-logo .logo-name { font-size: 1.25rem; }
  .conditions-banner { font-size: 0.95rem; }
  .main-content { padding: 1rem 0.75rem; }
  .card { padding: 0.85rem; }
  /* Stack today's summary table nicely */
  .wx-table td:last-child { text-align: right; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── IFRAME / EMBED ── */
.embed-container {
  position: relative;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.embed-container iframe {
  width: 100%;
  border: none;
  display: block;
}

/* ── STATUS INDICATORS ── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.ok      { background: var(--teal);   box-shadow: 0 0 6px var(--teal); }
.status-dot.warn    { background: var(--warn);   box-shadow: 0 0 6px var(--warn); }
.status-dot.error   { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.status-dot.unknown { background: var(--text-faint); }

/* ── UV INDEX BAR ── */
.uv-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4caf50, #ffeb3b, #ff9800, #f44336, #9c27b0);
  position: relative;
  margin: 0.5rem 0;
}

.uv-marker {
  position: absolute;
  top: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--navy-2);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* ── WIND DIRECTION ── */
.wind-dir-display {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--storm);
}

/* ── METAR / CODE BLOCKS ── */
.code-block {
  background: rgba(123,28,42,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--teal);
  overflow-x: auto;
  line-height: 1.6;
}

/* ── GRAPHS PLACEHOLDER ── */
.graph-area {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-dim);
}

.graph-area .graph-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ══════════════════════════════════════════════════════
   UTILITY & COMPONENT CLASSES
   (extracted from inline styles during 2026 refactor)
   ══════════════════════════════════════════════════════ */

/* ── CONDITION GROUPS (index.php) ── */
.cond-group {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.cond-group-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.cond-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}
.data-cell-sm { padding: 0.6rem; overflow: visible; }
.data-cell-sm .dc-value { font-size: 1.2rem; word-break: break-word; overflow-wrap: break-word; overflow: hidden; }

/* ── WIND DIR INLINE LABEL ── */
.winddir-label {
  color: var(--storm);
  font-size: 1rem;
}

/* ── GUST TIME LABEL ── */
.gust-time {
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ── BARO VALUE ── */
.baro-value { font-size: 1.4rem; }
.baro-trend {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── MOON / SUN DATA CELLS ── */
.dc-value-moon  { font-size: 1.8rem; }
.dc-value-md    { font-size: 1.4rem; }
.dc-value-sm    { font-size: 1.1rem; }
.dc-value-sunrise { font-size: 1.1rem; color: var(--warn); }
.dc-value-sunset  { font-size: 1.1rem; color: var(--accent); }

/* ── OUTER CONDITIONS GRID ── */
.cond-outer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .cond-outer-grid { grid-template-columns: 1fr; }
}

/* ── FORECAST CARD (today/tonight) ── */
.fc-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.fc-period-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.fc-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.fc-icon { font-size: 2.8rem; line-height: 1; }
.fc-temp {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.6rem;
  color: var(--accent-2);
  line-height: 1;
}
.fc-short {
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}
.fc-wind-pop {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.fc-detail {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  line-height: 1.7;
}
.fc-unavail {
  color: var(--text-faint);
  font-size: 0.88rem;
}
.fc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fc-footer {
  text-align: right;
}
.fc-footer a {
  font-size: 0.82rem;
  color: var(--accent);
}

/* ── STATION INFO TABLE ── */
.station-table { font-size: 0.82rem; }
.station-table td:first-child { color: var(--text-faint); }

/* ── SECTION DIVIDERS / LABELS ── */
.section-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

/* ── OUTAGE / STATUS PANEL ── */
.outage-panel {
  background: rgba(244,163,64,0.08);
  border: 1px solid rgba(244,163,64,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.outage-panel-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warn);
  margin-bottom: 0.75rem;
}
.outage-item {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.outage-item-left { font-weight: 600; }
.outage-item-age {
  font-size: 0.82rem;
  color: var(--text-faint);
}
.outage-item-text {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
}

/* ── STAT SUMMARY BOXES ── */
.stat-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-box {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-box-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
}
.stat-box-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 0.3rem;
}
@media (max-width: 500px) {
  .stat-boxes { grid-template-columns: 1fr; }
}

/* ── RADAR STATUS TABLE ── */
.radar-status-operational { color: var(--teal); }
.radar-status-outage      { color: var(--warn); }
.radar-icao-link          { color: var(--accent); font-weight: 600; }
.radar-icao-plain         { color: var(--text-faint); font-size: 0.88rem; }

/* ── FILTER BUTTONS ── */
.filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--navy-3);
  color: var(--text-dim);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

/* ── SEARCH INPUT ── */
.search-input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── TREND / HISTORY CELLS ── */
.trend-record {
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.trend-hi { color: var(--warn); }
.trend-lo { color: var(--accent-2); }
.trend-val {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.trend-subtext {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.trend-section-head {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  padding: 0.5rem 0.75rem;
  background: var(--navy-2);
}

/* ── ADVISORY / NWS CONTENT ── */
.advisory-meta {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.advisory-body {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.75;
  white-space: pre-wrap;
}
.advisory-none {
  color: var(--text-faint);
  font-size: 0.95rem;
}

/* ── FORECAST STRIP DETAILS ── */
.fcast-period-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.fcast-detail {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.fcast-wind {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ── ASTRONOMY CARDS ── */
.astro-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-2);
}
.astro-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.astro-sun { color: var(--warn); }
.astro-moon { color: var(--storm); }

/* ── METAR / STATION ROWS ── */
.metar-station-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.metar-icao {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-right: 0.5rem;
}
.metar-age {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.metar-sky {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── QUAKE MAP ── */
.quake-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── NOAA / HISTORY LINKS ── */
.report-link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-2);
}
.report-link-row:last-child { border-bottom: none; }

/* ── TEXT UTILITIES ── */
.txt-faint  { color: var(--text-faint); }
.txt-dim    { color: var(--text-dim); }
.txt-warn   { color: var(--warn); }
.txt-teal   { color: var(--teal); }
.txt-danger { color: var(--danger); }
.txt-accent { color: var(--accent); }
.txt-accent2 { color: var(--accent-2); }
.txt-xs  { font-size: 0.78rem; }
.txt-sm  { font-size: 0.85rem; }
.txt-md  { font-size: 0.92rem; }
.txt-condensed { font-family: 'Roboto Condensed', sans-serif; }
.txt-semi { font-family: 'Roboto Condensed', sans-serif; }
.txt-upper { text-transform: uppercase; letter-spacing: 0.1em; }
.txt-right { text-align: right; }
.mt-half  { margin-top: 0.5rem; }
.mt-1     { margin-top: 1rem; }
.mt-2     { margin-top: 1.5rem; }
.mb-1     { margin-bottom: 1rem; }
.mb-2     { margin-bottom: 1.5rem; }
.txt-center { text-align: center; }
.mb-0  { margin-bottom: 0 !important; }
.mt-half { margin-top: 0.5rem; }

/* ── ADVISORY / ALERT COMPONENTS ── */
.alert-count-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(244,163,64,0.08);
  border: 1px solid rgba(244,163,64,0.3);
  border-radius: var(--radius);
}
.alert-count-icon { font-size: 1.4rem; }
.alert-count-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn);
}
.alert-count-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.alert-card {
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.alert-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.alert-card-icon { font-size: 1.6rem; }
.alert-card-event {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alert-card-headline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}
.alert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: 'Roboto Condensed', sans-serif;
}
.alert-card-meta strong { color: var(--text-dim); }
.alert-card-body { padding: 1rem 1.25rem; }
.alert-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.7;
}
.alert-card-desc-fade { display: none; }
.alert-expand-btn { display: none; }

/* Collapsible alert rows */
.alert-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.alert-row:last-child { border-bottom: none; }
.alert-row-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.alert-row-summary::-webkit-details-marker { display: none; }
.alert-row-summary:hover { background: rgba(255,255,255,0.03); }
.alert-row-icon { font-size: 1.1rem; flex-shrink: 0; }
.alert-row-event {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
}
.alert-row-expires {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.alert-row-chevron {
  font-size: 0.7rem;
  color: var(--text-faint);
  transition: transform 0.2s;
}
details[open] .alert-row-chevron { transform: rotate(180deg); }
.alert-row-body {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.alert-row-headline {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-style: italic;
}
.alert-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.alert-row-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.alert-card-instr {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
}
.alert-card-instr-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.alert-card-instr-text {
  font-size: 0.87rem;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.65;
}
.alert-status-box { text-align: center; padding: 0.5rem 0; }
.alert-status-icon { font-size: 2.5rem; }
.alert-status-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}
.alert-status-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* ── ASTRONOMY COMPONENTS ── */
.astro-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.astro-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.astro-mini-cell {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.astro-mini-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.astro-mini-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
}
.astro-big-icon {
  font-size: 4rem;
  margin: 1rem 0;
  line-height: 1;
}
.astro-moon-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--storm);
}
.astro-phase-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.astro-phase-cell {
  background: var(--navy-3);
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  text-align: center;
}
.astro-phase-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--storm);
  margin: 0.3rem 0;
}
.astro-phase-date {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
}
.astro-phase-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}
.astro-note { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.75rem; }
@media (max-width: 600px) {
  .astro-grid-2 { grid-template-columns: 1fr; }
  .astro-phase-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FORECAST STRIP / DETAIL ── */
.fcast-strip-cell {
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: var(--radius);
  padding: 0.8rem 0.4rem;
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}
.fcast-strip-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.fcast-strip-icon { font-size: 2rem; margin: 0.4rem 0; line-height: 1; }
.fcast-strip-hi {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--warn);
}
.fcast-strip-lo { font-size: 0.8rem; color: var(--storm); }
.fcast-strip-pop { font-size: 0.68rem; color: var(--accent-2); margin-top: 0.2rem; }
.fcast-strip-short { font-size: 0.65rem; color: var(--text-faint); margin-top: 0.3rem; line-height: 1.3; }
.fcast-list-row {
  display: grid;
  grid-template-columns: 120px 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.1rem 0.5rem;
  border-bottom: 1px solid var(--border-2);
  transition: background 0.15s;
}
.fcast-list-row:last-child { border-bottom: none; }
.fcast-list-row:hover { background: rgba(123,28,42,0.03); }
.fcast-list-temp-block { text-align: center; }
.fcast-list-period {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.2rem;
}
.fcast-list-temp {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}
.fcast-list-pop { font-size: 0.7rem; color: var(--accent-2); margin-top: 0.25rem; }
.fcast-list-wind { font-size: 0.68rem; color: var(--text-faint); margin-top: 0.2rem; line-height: 1.4; }
.fcast-list-icon { text-align: center; font-size: 2.6rem; padding-top: 0.15rem; }
.fcast-list-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.fcast-list-detail {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.fcast-current-icon { font-size: 3.2rem; margin: 0.6rem 0; }
.fcast-current-desc {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--storm);
}
.fcast-current-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}
.fcast-current-pop {
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-top: 0.4rem;
}
.fcast-current-wind {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.4rem;
}

/* ── STATUS PAGE ── */
.status-section-head {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 0.75rem;
}

/* ── METAR COMPONENTS ── */
.metar-card-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

/* ── TRENDS RECORD ROWS ── */
.rec-head {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 0.5rem;
}

/* ── FORM CONTROLS ── */
.wx-select,
.wx-input {
  background: var(--navy-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}
.wx-select:focus,
.wx-input:focus {
  outline: none;
  border-color: var(--accent);
}
.wx-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.wx-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.wx-btn-primary {
  padding: 0.45rem 1.1rem;
  background: rgba(123,28,42,0.1);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  border-radius: var(--radius);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.wx-btn-primary:hover { background: rgba(201,168,76,0.25); }
.wx-btn-secondary {
  padding: 0.45rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.wx-btn-secondary:hover { background: var(--navy-4); color: var(--text); }

/* ── STATUS ICON CARDS ── */
.status-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.status-icon-cell {
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.status-icon-emoji { font-size: 2rem; }
.status-icon-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 0.4rem;
}
.status-icon-label {
  font-size: 0.82rem;
  margin-top: 0.2rem;
  color: var(--text-dim);
}

/* ── RADAR VIEWER ── */
.radar-wrap {
  position: relative;
  background: #f5f0e8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.radar-age {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-left: 0.5rem;
}
.radar-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(245,240,232,0.85));
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}
.radar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.radar-ts { margin-left: auto; font-size: 0.75rem; color: var(--text-faint); }
.radar-err {
  display: none;
  padding: 3rem;
  color: var(--text-faint);
  text-align: center;
}
.radar-err-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ── HISTORY GALLERY ── */
.history-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.history-thumb {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.history-thumb-footer {
  padding: 0.4rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-caption {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}
.history-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-faint);
}
.history-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.history-empty-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── NOAA CLIMATE REPORTS ── */
.climate-select-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

/* ── METAR DATA CELLS ── */
.metar-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.metar-data-cell {
  background: var(--cell);
  border: 1px solid var(--cell-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}
.metar-data-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.metar-data-val {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  color: var(--value);
}

/* ── REPORT EMPTY STATE ── */
.report-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-faint);
}
.report-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.report-empty-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════════════════
   DARK THEME OVERRIDES
   Applied when <html data-theme="dark">
   Maroon & Gold palette on deep dark background
   ════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* Backgrounds — stepped so cards vs cells are distinguishable */
  --navy:        #0a0305;   /* page bg — near black */
  --navy-2:      #150609;   /* footer/header */
  --navy-3:      #271318;   /* data cells, sub-panels */
  --navy-4:      #321820;   /* hover states */
  --blue:        #3d0c14;

  /* Accents — lighter gold for dark bg readability */
  --accent:      #C9A84C;
  --accent-2:    #e8c96a;   /* lighter gold for text on dark */

  /* Maroon becomes warm coral-red in dark (readable on dark bg) */
  --teal:        #e8634f;
  --storm:       #e8634f;
  --warn:        #ff7a6a;
  --danger:      #ff7a6a;

  /* Text */
  --text:        #f0e6d8;
  --text-dim:    #c8a882;
  --text-faint:  #8a6a4a;

  /* Borders */
  --border:      rgba(201,168,76,0.18);
  --border-2:    rgba(201,168,76,0.09);

  /* Cards vs cells — must be visibly different */
  --card:        #1f1013;          /* outer card */
  --card-hover:  #271318;
  --cell:        #2e161c;          /* inner data cell — noticeably lighter */
  --cell-border: rgba(201,168,76,0.15);
  --value:       #e8c96a;          /* data values — gold in dark mode */

  /* Glow */
  --glow:        rgba(201,168,76,0.15);
  --glow-strong: rgba(201,168,76,0.35);
}

/* Dark body background */
[data-theme="dark"] body {
  background: #0a0305;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61,12,20,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

/* Dark trend arrows */
[data-theme="dark"] .trend-up   { color: #ff7a6a; }
[data-theme="dark"] .trend-down { color: #6ab0e8; }

/* Dark mobile overlay */
[data-theme="dark"] .mobile-nav-overlay { background: rgba(0,0,0,0.85); }

/* Dark sidebar mobile drawer */
[data-theme="dark"] .sidebar-mobile { box-shadow: 4px 0 30px rgba(0,0,0,0.7); }

/* Dark tooltip */
[data-theme="dark"] .data-cell[data-tooltip]::after {
  background: #050103;
  color: #f0e6d8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--accent);
  color: var(--accent-2);
}
.theme-toggle-btn .tog-icon { font-size: 0.9rem; line-height: 1; }

/* Toggle switch track */
.tog-switch {
  position: relative;
  width: 32px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.tog-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.tog-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 18px;
  transition: background 0.25s;
}
.tog-track::before {
  content: '';
  position: absolute;
  width: 13px; height: 13px;
  left: 2px; top: 2.5px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.tog-switch input:checked + .tog-track { background: rgba(201,168,76,0.55); }
.tog-switch input:checked + .tog-track::before {
  transform: translateX(14px);
  background: var(--accent-2);
}

/* ── VISITOR TRACKER WIDGET ─────────────────────────────────────────────── */
.tracker-bar {
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tracker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.tracker-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.tracker-val {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.tracker-lbl {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 0.15rem;
}
.tracker-date {
  font-size: 0.62rem;
  color: var(--text-faint);
  text-align: center;
  opacity: 0.75;
}


/* ============================================================
   MOBILE MENU HOTFIX — CSS-only fallback for phones
   Makes navigation usable without JavaScript by showing the
   full menu and submenu items on small screens.
   Added by ChatGPT on 2026-03-12
   ============================================================ */
@media (max-width: 768px) {
  .nav-hamburger {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  .site-nav {
    display: block;
    padding: 0;
    min-height: 0;
    position: sticky;
    top: 0;
  }

  .nav-inner {
    position: static !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-right: none !important;
    background: #5a1220;
  }

  .nav-item {
    width: 100%;
    position: static;
  }

  .nav-item > a,
  .nav-item > span {
    width: 100%;
    justify-content: space-between;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem 1rem;
  }

  .nav-item > .chevron,
  .nav-item .chevron {
    transform: none !important;
  }

  .nav-dropdown,
  .nav-item:hover .nav-dropdown,
  .nav-item.mobile-dd-open .nav-dropdown {
    display: block !important;
    position: static !important;
    min-width: 100% !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
    background: rgba(0,0,0,0.14) !important;
  }

  .nav-dropdown a {
    padding: 0.75rem 1rem 0.75rem 2rem !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
  }

  .nav-dropdown a:last-child {
    border-bottom: none;
  }
}
