/* ── Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background 0.8s ease;
}
.safe-top { padding-top: env(safe-area-inset-top, 0); }

/* ── Dynamic weather themes ─────────────────────── */
.wx-default  { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #93c5fd 100%); }
.wx-sunny    { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 30%, #7dd3fc 100%); }
.wx-cloudy   { background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 50%, #64748b 100%); }
.wx-rainy    { background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 50%, #0f172a 100%); color: #e2e8f0; }
.wx-snow     { background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #f1f5f9 100%); }
.wx-stormy   { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%); color: #e2e8f0; }
.wx-night    { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%); color: #e2e8f0; }
.wx-fog      { background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%); }

html.dark .wx-default,
html.dark .wx-sunny,
html.dark .wx-cloudy,
html.dark .wx-snow,
html.dark .wx-fog { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
html.dark .wx-rainy { background: linear-gradient(135deg, #0c1929 0%, #111827 50%, #0f172a 100%); }
html.dark .wx-stormy { background: linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 50%, #0f172a 100%); }
html.dark .wx-night { background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #0c4a6e 100%); }

/* ── Rain overlay ────────────────────────────────── */
.rain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    transparent 0%,
    transparent 95%,
    rgba(56,189,248,0.08) 100%
  );
  background-size: 3px 20px;
  animation: rain-fall 0.4s linear infinite;
}
.rain-overlay.hidden { display: none; }
@keyframes rain-fall {
  to { background-position: -1px 20px; }
}

/* ── Header glass ────────────────────────────────── */
.header-glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: background 0.5s;
}
.dark .header-glass {
  background: rgba(15,23,42,0.7);
  border-bottom-color: rgba(100,116,139,0.2);
}

/* ── Cards ───────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 1rem;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  z-index: 2;
}
.dark .card {
  background: rgba(30,41,59,0.85);
  border-color: rgba(100,116,139,0.2);
}

/* ── Stat pills ──────────────────────────────────── */
.stat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0,0,0,0.05);
  color: #334155;
}
.dark .stat-pill { background: rgba(255,255,255,0.08); color: #e2e8f0; }

/* ── Section Titles ──────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}
.dark .section-title { color: #cbd5e1; }

/* ── iOS WU-style section headers ────────────────── */
.section-header-wu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.5rem;
}
.section-title-wu {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  margin: 0;
}
.dark .section-title-wu { color: #f1f5f9; }

.btn-share {
  padding: 0.25rem;
  color: #475569;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.dark .btn-share { color: #cbd5e1; }
.btn-share:hover { color: #3b82f6; }
.dark .btn-share:hover { color: #60a5fa; }

.dark .card-wu { background: rgba(30,41,59,0.85); }

.daily-cols-wrap { padding: 0 0.5rem 0.5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hourly-cols-wrap { padding: 0 0.5rem 0.75rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }

.hourly-day-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin: 0 1rem 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(148,163,184,0.15);
}
.dark .hourly-day-label {
  color: #f1f5f9;
  border-top-color: rgba(100,116,139,0.25);
}

.chart-wrap {
  padding: 0 0.25rem;
  background: rgba(0,0,0,0.08);
}
.dark .chart-wrap { background: rgba(0,0,0,0.25); }

.more-wrap {
  text-align: center;
  padding: 0.4rem 0 0.6rem;
}
.more-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.dark .more-link { color: #60a5fa; }
.more-link:hover { text-decoration: underline; }

/* ── MORE narratives panel ───────────────────────── */
.daily-narratives {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.daily-narratives.expanded { max-height: 600px; }
.narr-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(148,163,184,0.1);
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}
.dark .narr-row { color: #cbd5e1; border-top-color: rgba(100,116,139,0.15); }
.narr-day {
  font-weight: 700;
  min-width: 2.5rem;
  flex-shrink: 0;
  color: #1e293b;
}
.dark .narr-day { color: #f1f5f9; }

/* ── Insight rows ───────────────────────────────── */
.insight-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.6rem;
  background: rgba(0,0,0,0.03);
}
.dark .insight-row { background: rgba(255,255,255,0.04); }
.insight-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insight-icon.rain { background: rgba(14,165,233,0.15); color: #0ea5e9; }
.dark .insight-icon.rain { background: rgba(56,189,248,0.15); color: #38bdf8; }
.insight-icon.heat { background: rgba(239,68,68,0.12); color: #ef4444; }
.dark .insight-icon.heat { background: rgba(248,113,113,0.15); color: #f87171; }
.insight-icon.warm { background: rgba(245,158,11,0.12); color: #f59e0b; }
.dark .insight-icon.warm { background: rgba(251,191,36,0.15); color: #fbbf24; }
.insight-icon.cool { background: rgba(59,130,246,0.1); color: #3b82f6; }
.dark .insight-icon.cool { background: rgba(96,165,250,0.12); color: #60a5fa; }
.insight-icon.dry { background: rgba(34,197,94,0.1); color: #22c55e; }
.dark .insight-icon.dry { background: rgba(74,222,128,0.12); color: #4ade80; }
.insight-body { flex: 1; min-width: 0; }
.insight-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}
.dark .insight-title { color: #f1f5f9; }
.insight-detail {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
  margin-top: 0.1rem;
}
.dark .insight-detail { color: #cbd5e1; }

/* ── Form Inputs ─────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #475569;
}
.dark .form-label { color: #cbd5e1; }

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.dark .form-input {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
.dark .form-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

/* ── Scrollbar hide ──────────────────────────────── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ── Daily columns (iOS WU) ───────────────────────── */
.daily-col {
  flex: 1 0 0;
  min-width: 4.25rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.2rem 0.6rem;
  border-right: 1px solid rgba(148,163,184,0.1);
}
.daily-col:last-child { border-right: none; }
.dark .daily-col { border-right-color: rgba(100,116,139,0.2); }

.daily-col-day {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155;
  text-align: center;
  white-space: nowrap;
}
.dark .daily-col-day { color: #f1f5f9; }

.daily-col-temps {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}
.daily-hi { font-weight: 600; color: #1e293b; }
.dark .daily-hi { color: #f8fafc; }
.daily-sep { font-size: 0.75rem; font-weight: 400; color: #64748b; }
.daily-lo { font-weight: 500; color: #475569; }
.dark .daily-lo { color: #cbd5e1; }

.daily-col-precip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0284c7;
  margin-top: 0.35rem;
}
.dark .daily-col-precip { color: #38bdf8; }
.daily-col-precip [data-lucide] { flex-shrink: 0; }
.daily-col-qpf {
  font-size: 0.75rem;
  color: #0284c7;
  margin-top: 0.1rem;
}
.dark .daily-col-qpf { color: #7dd3fc; }

#daily-chart { width: 100%; display: block; }

/* ── Hourly / forecast detail cards (iOS WU) ─────── */
.forecast-detail-card {
  flex: 0 0 4.5rem;
  min-width: 4.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.3rem 0.6rem;
  border-right: 1px solid rgba(148,163,184,0.1);
}
.forecast-detail-card:last-child { border-right: none; }
.dark .forecast-detail-card { border-right-color: rgba(100,116,139,0.2); }

.fdc-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; color: #334155; text-align: center; line-height: 1.25; min-height: 1.5em; }
.dark .fdc-label { color: #f1f5f9; }
.fdc-temp { font-size: 0.95rem; font-weight: 600; color: #1e293b; }
.dark .fdc-temp { color: #f8fafc; }
.fdc-unit { font-size: 0.7rem; font-weight: 400; color: #475569; margin-left: 1px; }
.dark .fdc-unit { color: #cbd5e1; }
.fdc-wind { display: flex; align-items: center; gap: 0.2rem; font-size: 0.78rem; color: #475569; margin-top: 0.05rem; }
.dark .fdc-wind { color: #cbd5e1; }
.fdc-wind [data-lucide] { color: #64748b; }
.fdc-wind-unit { font-size: 0.7rem; opacity: 0.85; }
.fdc-precip { display: flex; align-items: center; gap: 0.2rem; font-size: 0.78rem; font-weight: 600; color: #0284c7; margin-top: 0.2rem; }
.dark .fdc-precip { color: #38bdf8; }
.fdc-qpf { font-size: 0.7rem; color: #0284c7; }
.dark .fdc-qpf { color: #7dd3fc; }

/* ── Sunrise arc ─────────────────────────────────── */
#sun-arc { width: 100%; height: auto; display: block; }

/* ── Moon phase ──────────────────────────────────── */
.moon-sphere {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
}
.dark .moon-sphere { background: #cbd5e1; }
.moon-shadow {
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
}
.dark .moon-shadow { background: #0f172a; }

/* ── Wind compass ────────────────────────────────── */
.wind-compass {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(100,116,139,0.35);
  position: relative;
  flex-shrink: 0;
  background: rgba(0,0,0,0.06);
}
.dark .wind-compass { border-color: rgba(148,163,184,0.35); background: rgba(255,255,255,0.06); }
.wind-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  margin-top: -7px;
  background: linear-gradient(to top, #93c5fd, #3b82f6);
  border-radius: 1px;
  transform-origin: center center;
  transition: transform 0.5s ease;
}
.wind-arrow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #3b82f6;
}

/* ── Skeleton loader ─────────────────────────────── */
.skel-card {
  border-radius: 1rem;
  background: rgba(255,255,255,0.4);
  animation: skel-pulse 1.2s ease-in-out infinite;
}
.dark .skel-card { background: rgba(30,41,59,0.5); }
@keyframes skel-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Staggered card entrance ─────────────────────── */
.stagger-in {
  opacity: 0;
  transform: translateY(16px);
  animation: stagger-enter 0.45s ease forwards;
}
#main-content > :nth-child(1).stagger-in { animation-delay: 0s; }
#main-content > :nth-child(2).stagger-in { animation-delay: 0.06s; }
#main-content > :nth-child(3).stagger-in { animation-delay: 0.12s; }
#main-content > :nth-child(4).stagger-in { animation-delay: 0.18s; }
#main-content > :nth-child(5).stagger-in { animation-delay: 0.24s; }
#main-content > :nth-child(6).stagger-in { animation-delay: 0.30s; }
#main-content > :nth-child(7).stagger-in { animation-delay: 0.36s; }
#main-content > :nth-child(8).stagger-in { animation-delay: 0.42s; }
#main-content > :nth-child(9).stagger-in { animation-delay: 0.48s; }
@keyframes stagger-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Pull-to-refresh ─────────────────────────────── */
.pull-indicator {
  position: fixed;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  transition: top 0.25s ease;
}
.dark .pull-indicator { background: rgba(30,41,59,0.9); color: #cbd5e1; }
.pull-indicator.visible { top: 72px; }
.pull-indicator.refreshing svg { animation: spin 0.7s linear infinite; }

/* ── Toast ───────────────────────────────────────── */
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toast-in 0.3s ease;
  max-width: 320px;
  z-index: 91;
}
.toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.dark .toast-error { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
.toast-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.dark .toast-success { background: #052e16; color: #86efac; border-color: #166534; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── AQI gauge ───────────────────────────────────── */
.aqi-gauge {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-weight: 700; font-size: 1.5rem;
  border: 5px solid; transition: border-color 0.3s, color 0.3s;
}
.aqi-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.125rem; }

/* ── Leaflet overrides ───────────────────────────── */
.leaflet-container { background: #e2e8f0; }
.dark .leaflet-container { background: #1e293b; }
.leaflet-control-zoom a { background: rgba(255,255,255,0.9) !important; border-color: #e2e8f0 !important; }
.dark .leaflet-control-zoom a { background: rgba(30,41,59,0.9) !important; color: #e2e8f0 !important; border-color: #334155 !important; }

/* ── Spinner ─────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.refresh-icon { transition: transform 0.2s; }
.refresh-icon.spinning { animation: spin 0.7s linear infinite; }

/* ── HV icon toggle ─────────────────────────────── */
.hv-visible { display: none; }
html.hv .hv-hidden { display: none; }
html.hv .hv-visible { display: block; }

/* ═══════════════════════════════════════════════════
   HIGH VISIBILITY MODE
   Toggled via html.hv — bigger fonts, full-opacity
   cards, maximum contrast colors.
   ═══════════════════════════════════════════════════ */

/* ── HV: Body base ─────────────────────────────── */
html.hv body { font-size: 1.1rem; }

/* ── HV: Cards — fully opaque ──────────────────── */
html.hv .card {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.1);
}
html.hv.dark .card {
  background: rgba(15,23,42,0.96);
  border-color: rgba(148,163,184,0.25);
}

/* ── HV: Header — fully opaque ─────────────────── */
html.hv .header-glass {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(0,0,0,0.1);
}
html.hv.dark .header-glass {
  background: rgba(15,23,42,0.95);
  border-bottom-color: rgba(148,163,184,0.2);
}

/* ── HV: Hero section ─────────────────────────── */
html.hv #hero-temp { font-size: 4rem; font-weight: 300; }
html.hv #hero-condition { font-size: 1rem; color: #1e293b; font-weight: 500; }
html.hv.dark #hero-condition { color: #f1f5f9; }
html.hv #hero-hilo { font-size: 0.95rem; color: #334155; }
html.hv.dark #hero-hilo { color: #e2e8f0; }
html.hv #hero-location { font-size: 0.95rem; color: #1e293b; font-weight: 500; }
html.hv.dark #hero-location { color: #f1f5f9; }
html.hv #hero-updated { font-size: 0.8rem; color: #475569; }
html.hv.dark #hero-updated { color: #cbd5e1; }

/* ── HV: Stat pills ───────────────────────────── */
html.hv .stat-pill {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  color: #1e293b;
  background: rgba(0,0,0,0.07);
}
html.hv.dark .stat-pill { color: #f8fafc; background: rgba(255,255,255,0.1); }

/* ── HV: Section titles ───────────────────────── */
html.hv .section-title {
  font-size: 0.95rem;
  color: #1e293b;
}
html.hv.dark .section-title { color: #f8fafc; }
html.hv .section-title-wu {
  font-size: 1rem;
  color: #0f172a;
}
html.hv.dark .section-title-wu { color: #f8fafc; }

/* ── HV: Daily columns ────────────────────────── */
html.hv .daily-col { min-width: 5rem; padding: 0.5rem 0.3rem 0.7rem; }
html.hv .daily-col-day { font-size: 0.95rem; color: #0f172a; }
html.hv.dark .daily-col-day { color: #f8fafc; }
html.hv .daily-col-temps { font-size: 1.1rem; }
html.hv .daily-hi { color: #0f172a; font-weight: 700; }
html.hv.dark .daily-hi { color: #f8fafc; }
html.hv .daily-sep { font-size: 0.85rem; color: #475569; }
html.hv .daily-lo { color: #334155; font-weight: 600; }
html.hv.dark .daily-lo { color: #e2e8f0; }
html.hv .daily-col-precip { font-size: 0.95rem; color: #0369a1; }
html.hv.dark .daily-col-precip { color: #38bdf8; }
html.hv .daily-col-qpf { font-size: 0.85rem; color: #0369a1; }
html.hv.dark .daily-col-qpf { color: #7dd3fc; }

/* ── HV: Hourly cards ─────────────────────────── */
html.hv .forecast-detail-card { flex: 0 0 5.5rem; min-width: 5.5rem; gap: 0.25rem; padding: 0.6rem 0.4rem 0.7rem; }
html.hv .fdc-label { font-size: 0.9rem; color: #0f172a; }
html.hv.dark .fdc-label { color: #f8fafc; }
html.hv .fdc-temp { font-size: 1.1rem; font-weight: 700; }
html.hv .fdc-unit { font-size: 0.8rem; color: #334155; }
html.hv.dark .fdc-unit { color: #e2e8f0; }
html.hv .fdc-wind { font-size: 0.9rem; color: #334155; }
html.hv.dark .fdc-wind { color: #e2e8f0; }
html.hv .fdc-wind-unit { font-size: 0.8rem; }
html.hv .fdc-precip { font-size: 0.9rem; color: #0369a1; }
html.hv.dark .fdc-precip { color: #38bdf8; }
html.hv .fdc-qpf { font-size: 0.8rem; }
html.hv .hourly-day-label { font-size: 1rem; color: #0f172a; }
html.hv.dark .hourly-day-label { color: #f8fafc; }

/* ── HV: Precip section ────────────────────────── */
html.hv #precip-pct { font-size: 1.3rem; }
html.hv #precip-narrative { font-size: 0.95rem; color: #1e293b; }
html.hv.dark #precip-narrative { color: #f1f5f9; }

/* ── HV: Insights ──────────────────────────────── */
html.hv .insight-row { padding: 0.5rem 0.6rem; }
html.hv .insight-icon { width: 34px; height: 34px; }
html.hv .insight-title { font-size: 0.95rem; color: #0f172a; }
html.hv.dark .insight-title { color: #f8fafc; }
html.hv .insight-detail { font-size: 0.9rem; color: #334155; line-height: 1.45; }
html.hv.dark .insight-detail { color: #e2e8f0; }

/* ── HV: Sunrise/sunset/moon ───────────────────── */
html.hv #sunrise-time,
html.hv #sunset-time { font-size: 0.9rem; color: #1e293b; font-weight: 500; }
html.hv.dark #sunrise-time,
html.hv.dark #sunset-time { color: #f1f5f9; }
html.hv #daylight-length { font-size: 0.85rem; color: #334155; }
html.hv.dark #daylight-length { color: #e2e8f0; }
html.hv #moon-label { font-size: 0.8rem; color: #334155; width: 4.5rem; }
html.hv.dark #moon-label { color: #e2e8f0; }
html.hv .moon-sphere { width: 34px; height: 34px; }
html.hv .moon-shadow { width: 34px; height: 34px; }

/* ── HV: Narratives ────────────────────────────── */
html.hv .narr-row { font-size: 0.95rem; color: #1e293b; line-height: 1.5; }
html.hv.dark .narr-row { color: #f1f5f9; }
html.hv .narr-day { color: #0f172a; }
html.hv.dark .narr-day { color: #f8fafc; }
html.hv .more-link { font-size: 1rem; }

/* ── HV: AQI gauge ─────────────────────────────── */
html.hv .aqi-gauge { width: 110px; height: 110px; font-size: 1.75rem; border-width: 6px; }
html.hv .aqi-label { font-size: 0.85rem; }

/* ── HV: Wind compass ─────────────────────────── */
html.hv .wind-compass { width: 26px; height: 26px; border-width: 2px; }
html.hv .wind-arrow { height: 16px; margin-top: -8px; width: 2.5px; }

/* ── HV: Footer ────────────────────────────────── */
html.hv footer { font-size: 0.85rem; opacity: 0.85; }

/* ── HV: Toast ─────────────────────────────────── */
html.hv .toast { font-size: 1rem; font-weight: 600; padding: 0.85rem 1.1rem; }

/* ── HV: Settings modal ───────────────────────── */
html.hv .form-label { font-size: 0.95rem; font-weight: 600; color: #1e293b; }
html.hv.dark .form-label { color: #f8fafc; }
html.hv .form-input { font-size: 1rem; padding: 0.75rem 1rem; }
