:root {
  --blue: #173783;
  --orange: #db6e2d;

  --bg: #0b1220;
  --card: #121a2b;

  --text: #e8eefc;
  --muted: #9fb0d1;

  --radius: 14px;
}

/* ============================================================
   BASE
   ============================================================ */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
}

.header-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(219,110,45,0.28);
  background: rgba(219,110,45,0.14);
  color: #ffd8c4;
  border-radius: 999px;
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.notification-toggle:hover:not(:disabled) {
  background: rgba(219,110,45,0.20);
  border-color: rgba(219,110,45,0.40);
}

.notification-toggle:disabled {
  opacity: 0.72;
  cursor: default;
}

.site-alert {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: #253b66;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.site-alert + .site-alert {
  margin-top: 8px;
}

.site-alert-notable {
  background: #6f4f18;
}

.site-alert-urgent {
  background: #7a2530;
}

.site-alert-meta {
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-alert strong {
  font-size: 16px;
  line-height: 1.2;
}

.site-alert span,
.site-alert em {
  font-size: 13px;
  line-height: 1.35;
}

.site-alert em {
  color: rgba(255,255,255,0.82);
  font-style: normal;
}

@media (max-width: 520px) {
  .header-top-row {
    align-items: flex-start;
  }

  .notification-toggle {
    max-width: 104px;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }
}

/* ============================================================
   GLOBAL STACK
   ============================================================ */

.top-stack {
  max-width: 660px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FIXED SPACING SYSTEM */
.feelscore-card > * + *,
.df-card > * + * {
  margin-top: 6px;
}

/* ============================================================
   HEADER
   ============================================================ */

.app-header {
  background: linear-gradient(180deg, #122a5a, #0f2247);
  border-bottom: 1px solid rgba(110,168,255,0.18);
}

/* ============================================================
   TIM'S FORECAST BOARD
   ============================================================ */

.forecast-board-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(130, 180, 255, 0.20);
  background:
    radial-gradient(circle at 88% 16%, rgba(219,110,45,0.20), transparent 34%),
    linear-gradient(135deg, rgba(23,55,131,0.66), rgba(10,18,32,0.86)),
    #111a2c;
  box-shadow:
    0 18px 42px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.forecast-board-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.forecast-board-hero > * {
  position: relative;
  z-index: 1;
}

.forecast-board-kicker {
  color: #9ecbff;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-transform: uppercase;
}

.forecast-board-hero h2 {
  max-width: 680px;
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.03;
  letter-spacing: 0;
}

.forecast-board-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(232,238,252,0.86);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.52;
}

.forecast-board-chips,
.forecast-card-chips,
.forecast-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forecast-board-chips {
  margin-top: 18px;
}

.week-ahead-summary-chips {
  margin-top: 0;
}

.week-ahead-summary-chips .forecast-board-chip {
  flex: 1 1 170px;
}

.forecast-board-chip,
.forecast-info-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 118px;
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.forecast-board-chip em,
.forecast-info-chip em {
  color: rgba(159,176,209,0.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-board-chip strong,
.forecast-info-chip strong {
  color: #f4f8ff;
  font-size: 13px;
  line-height: 1.18;
}

.forecast-board-chip.risk-high {
  background: rgba(219,110,45,0.18);
  border-color: rgba(219,110,45,0.34);
}

.forecast-board-chip.risk-medium,
.forecast-board-chip.trend-mixed,
.forecast-board-chip.trend-declining {
  background: rgba(255,194,122,0.14);
  border-color: rgba(255,194,122,0.26);
}

.forecast-board-chip.risk-low,
.forecast-board-chip.trend-improving,
.forecast-board-chip.best {
  background: rgba(98,211,148,0.13);
  border-color: rgba(98,211,148,0.25);
}

.week-ahead-signals {
  display: grid;
  gap: 12px;
  border-radius: 18px;
  padding: clamp(14px, 3vw, 18px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.026)),
    rgba(18,26,43,0.72);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.week-ahead-signals-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.week-ahead-signals-head span {
  display: block;
  color: #9ecbff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.week-ahead-signals-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.08;
}

.week-ahead-signals-head p {
  max-width: 360px;
  margin: 0;
  color: rgba(232,238,252,0.64);
  font-size: 13px;
  line-height: 1.4;
}

.week-ahead-global-strip {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.week-ahead-global-item {
  min-width: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(5,10,20,0.24);
  border: 1px solid rgba(255,255,255,0.06);
}

.week-ahead-global-item.global-pattern {
  background: rgba(110,168,255,0.13);
  border-color: rgba(110,168,255,0.25);
}

.week-ahead-global-item.global-temperature {
  background: rgba(219,110,45,0.16);
  border-color: rgba(219,110,45,0.30);
}

.week-ahead-global-item.global-wind {
  background: rgba(56,189,248,0.13);
  border-color: rgba(56,189,248,0.26);
}

.week-ahead-global-item.global-rain {
  background: rgba(98,211,148,0.10);
  border-color: rgba(98,211,148,0.20);
}

.week-ahead-global-item.global-mountain {
  background: rgba(167,139,250,0.11);
  border-color: rgba(167,139,250,0.22);
}

.week-ahead-global-item span {
  display: block;
  color: rgba(159,176,209,0.9);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-ahead-global-item strong {
  display: block;
  margin-top: 3px;
  color: rgba(244,248,255,0.92);
  font-size: 12px;
  line-height: 1.28;
}

.week-ahead-global-item.global-pattern span,
.week-ahead-global-item.global-wind span {
  color: #cfeaff;
}

.week-ahead-global-item.global-temperature span {
  color: #ffd6bd;
}

.week-ahead-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.week-ahead-signal-grid.card-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.week-ahead-signal-grid.card-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.week-ahead-signal-card {
  --signal-accent: rgba(159,176,209,0.72);
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.075);
}

.week-ahead-signal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--signal-accent);
}

.week-ahead-signal-card.signal-comfort { --signal-accent: #2dd4bf; }
.week-ahead-signal-card.signal-impact { --signal-accent: #fb7a3c; }
.week-ahead-signal-card.signal-pattern { --signal-accent: #6ea8ff; }
.week-ahead-signal-card.signal-uncertainty { --signal-accent: #a78bfa; }
.week-ahead-signal-card.signal-mountain { --signal-accent: #38bdf8; }
.week-ahead-signal-card.signal-custom { --signal-accent: #a7b1c2; }

.week-ahead-signal-card span {
  display: block;
  color: #d9e6ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.week-ahead-signal-card.signal-comfort span { color: #b9fff6; }
.week-ahead-signal-card.signal-impact span { color: #ffd4bd; }
.week-ahead-signal-card.signal-pattern span { color: #cfe2ff; }
.week-ahead-signal-card.signal-uncertainty span { color: #ddd6fe; }
.week-ahead-signal-card.signal-mountain span { color: #c5f3ff; }
.week-ahead-signal-card.signal-custom span { color: #d8dee9; }

.week-ahead-signal-card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.08;
}

.week-ahead-signal-card p {
  margin: 7px 0 0;
  color: rgba(232,238,252,0.72);
  font-size: 12px;
  line-height: 1.38;
}

.forecast-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.forecast-board-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    #121a2b;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.forecast-board-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #6ea8ff;
}

.forecast-board-card.sunny::before { background: #ffd166; }
.forecast-board-card.partly::before { background: #9ecbff; }
.forecast-board-card.cloudy::before { background: #a7b1c2; }
.forecast-board-card.rain::before { background: #db6e2d; }

.forecast-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.forecast-card-day {
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.forecast-card-date {
  margin-top: 2px;
  color: rgba(159,176,209,0.9);
  font-size: 12px;
}

.forecast-condition {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.forecast-condition span {
  font-size: 28px;
  line-height: 1;
}

.forecast-condition strong {
  color: rgba(232,238,252,0.82);
  font-size: 11px;
  line-height: 1.15;
}

.forecast-card-temps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.forecast-card-temps div {
  border-radius: 12px;
  padding: 8px;
  background: rgba(255,255,255,0.055);
}

.forecast-card-temps span {
  display: block;
  color: rgba(159,176,209,0.9);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-card-temps strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.forecast-board-card h3 {
  margin: 13px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.16;
}

.forecast-board-card p {
  margin: 8px 0 0;
  color: rgba(232,238,252,0.84);
  font-size: 13px;
  line-height: 1.45;
}

.forecast-card-chips {
  margin-top: 12px;
}

.forecast-info-chip {
  flex: 1 1 100%;
  min-width: 0;
}

.forecast-card-tags {
  margin-top: 10px;
}

.forecast-card-tags span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(110,168,255,0.13);
  color: #cfe2ff;
  font-size: 11px;
  line-height: 1;
}

.forecast-card-local {
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px;
  background: rgba(219,110,45,0.12);
  color: rgba(255,236,220,0.9);
  font-size: 12px;
  line-height: 1.4;
}

.forecast-card-local span {
  display: block;
  margin-bottom: 4px;
  color: #ffd6a0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .forecast-board-grid,
  .week-ahead-signal-grid,
  .week-ahead-global-strip,
  .week-ahead-signal-grid.card-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .week-ahead-signals-head {
    display: grid;
    gap: 7px;
  }

  .forecast-board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .forecast-board-hero {
    padding: 18px;
  }

  .forecast-board-chip {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .week-ahead-signal-grid,
  .week-ahead-global-strip,
  .week-ahead-signal-grid.card-count-2,
  .week-ahead-signal-grid.card-count-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FORECAST PAGE REFRESH
   ============================================================ */

.forecast-refresh {
  --forecast-ink: #ecf4ff;
  --forecast-soft: rgba(236, 244, 255, 0.74);
  --forecast-subtle: rgba(159, 176, 209, 0.86);
  --forecast-panel: rgba(18, 26, 43, 0.78);
  --forecast-line: rgba(255, 255, 255, 0.1);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(15, 34, 71, 0.72), rgba(11, 18, 32, 0) 360px),
    radial-gradient(circle at 86% 8%, rgba(219, 110, 45, 0.18), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(110, 168, 255, 0.16), transparent 30%),
    #0b1220;
}

.forecast-refresh * {
  box-sizing: border-box;
}

.forecast-refresh .app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 20, 42, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.forecast-refresh .header-inner,
.forecast-refresh .forecast-page {
  max-width: 1120px;
}

.forecast-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.forecast-header-row .brand {
  color: inherit;
  text-decoration: none;
}

.forecast-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.forecast-nav a,
.forecast-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.forecast-nav a:hover,
.forecast-nav a:focus-visible,
.forecast-nav a.active,
.forecast-admin-link:hover,
.forecast-admin-link:focus-visible {
  color: #fff;
  background: rgba(110, 168, 255, 0.18);
  border-color: rgba(110, 168, 255, 0.32);
}

.forecast-refresh .forecast-page {
  box-sizing: border-box;
  width: min(calc(100vw - 28px), 1120px);
  max-width: 1120px;
  padding: clamp(18px, 3vw, 30px) 0 46px;
}

.forecast-refresh .forecast-page > * {
  max-width: 100%;
  min-width: 0;
}

.forecast-page-intro {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.forecast-page-kicker {
  color: #ffb47f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.forecast-page-intro h1 {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--forecast-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.forecast-page-intro p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--forecast-soft);
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.forecast-admin-link {
  min-width: 118px;
  background: rgba(219, 110, 45, 0.16);
  border-color: rgba(219, 110, 45, 0.3);
  color: #ffd8c4;
}

.forecast-refresh #forecast-root {
  gap: 18px;
}

.forecast-refresh .card.forecast-summary {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--forecast-soft);
  background: var(--forecast-panel);
  border: 1px solid var(--forecast-line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.forecast-refresh .forecast-error {
  color: #ffd8c4;
  border-color: rgba(219, 110, 45, 0.32);
  background: rgba(74, 30, 22, 0.34);
}

.forecast-refresh .forecast-board-hero {
  min-height: 260px;
  display: grid;
  align-content: end;
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(180deg, rgba(8, 19, 43, 0.08), rgba(8, 19, 43, 0.86)),
    radial-gradient(circle at 88% 4%, rgba(247, 200, 115, 0.36), transparent 26%),
    linear-gradient(135deg, rgba(19, 64, 142, 0.9), rgba(10, 18, 32, 0.96));
  border-color: rgba(255, 255, 255, 0.12);
}

.forecast-refresh .forecast-board-kicker {
  color: #9ecbff;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.14em;
}

.forecast-refresh .forecast-board-hero h2 {
  max-width: 830px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.forecast-refresh .forecast-board-hero p {
  max-width: 860px;
  color: rgba(236, 244, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.forecast-refresh .week-ahead-signals {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.026)),
    rgba(18, 26, 43, 0.76);
}

.forecast-refresh .week-ahead-signals.signals-summary-only {
  grid-template-columns: 1fr;
}

.forecast-refresh .week-ahead-signals-head,
.forecast-refresh .week-ahead-summary-chips {
  grid-column: 1;
}

.forecast-refresh .week-ahead-signals.signals-summary-only .week-ahead-signals-head,
.forecast-refresh .week-ahead-signals.signals-summary-only .week-ahead-summary-chips {
  grid-column: auto;
}

.forecast-refresh .week-ahead-global-strip,
.forecast-refresh .week-ahead-signal-grid {
  grid-column: 2;
}

.forecast-refresh .week-ahead-signals-head {
  align-items: start;
}

.forecast-refresh .week-ahead-signals-head h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.forecast-refresh .week-ahead-summary-chips {
  align-content: end;
}

.forecast-refresh .week-ahead-summary-chips .forecast-board-chip {
  flex: 1 1 190px;
}

.forecast-refresh .week-ahead-global-strip {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.forecast-refresh .week-ahead-signal-grid,
.forecast-refresh .week-ahead-signal-grid.card-count-2,
.forecast-refresh .week-ahead-signal-grid.card-count-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.forecast-refresh .forecast-board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.forecast-refresh .forecast-board-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 420px;
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(16, 25, 43, 0.9);
  border-color: rgba(255, 255, 255, 0.09);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.forecast-refresh .forecast-board-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 168, 255, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.forecast-refresh .forecast-card-day {
  font-size: 1.05rem;
}

.forecast-refresh .forecast-condition span {
  font-size: 2.35rem;
}

.forecast-refresh .forecast-card-temps {
  gap: 8px;
}

.forecast-refresh .forecast-card-temps div {
  min-height: 68px;
}

.forecast-refresh .forecast-card-temps strong {
  font-size: clamp(1.18rem, 2.5vw, 1.52rem);
}

.forecast-refresh .forecast-board-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.forecast-refresh .forecast-card-chips {
  margin-top: auto;
  padding-top: 14px;
}

.forecast-refresh .forecast-info-chip {
  border-radius: 12px;
}

.forecast-refresh .site-footer {
  width: min(calc(100% - 28px), 1120px);
}

@media (max-width: 980px) {
  .forecast-refresh .week-ahead-signals {
    grid-template-columns: 1fr;
  }

  .forecast-refresh .week-ahead-signals-head,
  .forecast-refresh .week-ahead-summary-chips,
  .forecast-refresh .week-ahead-global-strip,
  .forecast-refresh .week-ahead-signal-grid {
    grid-column: auto;
  }

  .forecast-refresh .forecast-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .forecast-header-row,
  .forecast-page-intro {
    grid-template-columns: 1fr;
  }

  .forecast-header-row {
    display: grid;
  }

  .forecast-nav {
    justify-content: flex-start;
  }

  .forecast-refresh .forecast-page {
    width: 100%;
    max-width: 100%;
    padding-inline: 10px;
    align-items: stretch;
  }

  .forecast-page-intro h1 {
    font-size: clamp(2.15rem, 11vw, 2.85rem);
    line-height: 0.98;
  }

  .forecast-admin-link {
    width: 100%;
  }

  .forecast-refresh .forecast-board-hero {
    min-height: 270px;
  }

  .forecast-refresh .forecast-board-hero h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
    line-height: 0.98;
  }

  .forecast-refresh .forecast-board-grid {
    grid-template-columns: 1fr;
  }

  .forecast-refresh .forecast-board-card {
    min-height: 0;
  }

  .forecast-refresh .forecast-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .forecast-refresh .forecast-condition {
    min-width: 74px;
  }
}

/* Forecast palette aligned with the light homepage preview. */
.forecast-refresh {
  --forecast-paper: #f6f2eb;
  --forecast-white: #fffdf8;
  --forecast-ink: #142033;
  --forecast-muted: #617085;
  --forecast-line: #dce5ed;
  --forecast-blue: #0f4cc4;
  --forecast-blue-dark: #0b214d;
  --forecast-blue-soft: #dbe8ff;
  --forecast-orange: #f57d23;
  --forecast-gold: #f7c873;
  --forecast-green: #4fa66a;
  --forecast-shadow: 0 18px 44px rgba(11, 30, 67, 0.12);
  color: var(--forecast-ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 76, 196, 0.08), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(245, 125, 35, 0.08), transparent 26%),
    var(--forecast-paper);
}

.forecast-refresh .app-header {
  background: rgba(255, 253, 248, 0.92);
  border-bottom-color: var(--forecast-line);
  box-shadow: 0 8px 26px rgba(11, 30, 67, 0.06);
}

.forecast-refresh .brand-title {
  color: var(--forecast-ink);
}

.forecast-refresh .brand-title::after {
  background: var(--forecast-orange);
}

.forecast-refresh .brand-sub {
  color: var(--forecast-muted);
}

.forecast-refresh .forecast-nav a,
.forecast-refresh .forecast-admin-link {
  color: var(--forecast-blue);
  background: var(--forecast-blue-soft);
  border-color: rgba(15, 76, 196, 0.1);
  box-shadow: none;
}

.forecast-refresh .forecast-nav a.active,
.forecast-refresh .forecast-nav a:hover,
.forecast-refresh .forecast-nav a:focus-visible {
  color: var(--forecast-white);
  background: var(--forecast-blue);
  border-color: var(--forecast-blue);
}

.forecast-refresh .forecast-admin-link {
  color: var(--forecast-white);
  background: var(--forecast-orange);
  border-color: var(--forecast-orange);
}

.forecast-refresh .forecast-admin-link:hover,
.forecast-refresh .forecast-admin-link:focus-visible {
  color: var(--forecast-white);
  background: #d96516;
  border-color: #d96516;
}

.forecast-refresh .forecast-board-hero {
  color: var(--forecast-white);
  background:
    radial-gradient(circle at 88% 0%, rgba(247, 200, 115, 0.24), transparent 30%),
    linear-gradient(135deg, #101b33, #0d2e72);
  border-color: rgba(15, 76, 196, 0.18);
  box-shadow: var(--forecast-shadow);
}

.forecast-refresh .forecast-board-hero::before {
  opacity: 0.45;
}

.forecast-refresh .forecast-board-kicker,
.forecast-refresh .week-ahead-signals-head span {
  color: var(--forecast-orange);
}

.forecast-refresh .forecast-board-hero h2 {
  color: var(--forecast-white);
}

.forecast-refresh .forecast-board-hero p {
  color: rgba(255, 253, 248, 0.78);
}

.forecast-refresh .week-ahead-signals,
.forecast-refresh .forecast-board-card {
  color: var(--forecast-ink);
  background: var(--forecast-white);
  border: 1px solid var(--forecast-line);
  box-shadow: var(--forecast-shadow);
}

.forecast-refresh .week-ahead-signals {
  background: var(--forecast-white);
}

.forecast-refresh .week-ahead-signals-head h2,
.forecast-refresh .forecast-card-day,
.forecast-refresh .forecast-board-card h3 {
  color: var(--forecast-ink);
}

.forecast-refresh .week-ahead-signals-head p,
.forecast-refresh .forecast-card-date,
.forecast-refresh .forecast-board-card p {
  color: var(--forecast-muted);
}

.forecast-refresh .forecast-board-chip,
.forecast-refresh .forecast-info-chip,
.forecast-refresh .forecast-card-temps div {
  background: #f8fafc;
  border-color: var(--forecast-line);
}

.forecast-refresh .forecast-board-chip em,
.forecast-refresh .forecast-info-chip em,
.forecast-refresh .forecast-card-temps span {
  color: #6b7890;
}

.forecast-refresh .forecast-board-chip strong,
.forecast-refresh .forecast-info-chip strong,
.forecast-refresh .forecast-card-temps strong {
  color: var(--forecast-ink);
}

.forecast-refresh .forecast-board-chip.risk-low,
.forecast-refresh .forecast-board-chip.trend-improving,
.forecast-refresh .forecast-board-chip.best {
  background: #eff8f0;
  border-color: rgba(79, 166, 106, 0.32);
}

.forecast-refresh .forecast-board-chip.risk-medium,
.forecast-refresh .forecast-board-chip.trend-mixed,
.forecast-refresh .forecast-board-chip.trend-declining {
  background: #fff5e8;
  border-color: rgba(245, 125, 35, 0.28);
}

.forecast-refresh .forecast-board-chip.risk-high {
  background: #fff0ec;
  border-color: rgba(217, 71, 47, 0.28);
}

.forecast-refresh .week-ahead-global-item,
.forecast-refresh .week-ahead-signal-card {
  background: #f8fafc;
  border-color: var(--forecast-line);
}

.forecast-refresh .week-ahead-global-item.global-pattern {
  background: var(--forecast-blue-soft);
  border-color: rgba(15, 76, 196, 0.18);
}

.forecast-refresh .week-ahead-global-item.global-temperature {
  background: #fff1e7;
  border-color: rgba(245, 125, 35, 0.24);
}

.forecast-refresh .week-ahead-global-item.global-wind,
.forecast-refresh .week-ahead-global-item.global-rain,
.forecast-refresh .week-ahead-global-item.global-mountain {
  background: #edf8f4;
  border-color: rgba(79, 166, 106, 0.24);
}

.forecast-refresh .week-ahead-global-item span,
.forecast-refresh .week-ahead-signal-card span {
  color: #6b7890;
}

.forecast-refresh .week-ahead-global-item strong,
.forecast-refresh .week-ahead-signal-card strong {
  color: var(--forecast-ink);
}

.forecast-refresh .week-ahead-signal-card p {
  color: var(--forecast-muted);
}

.forecast-refresh .forecast-board-card {
  background: var(--forecast-white);
}

.forecast-refresh .forecast-board-card:hover {
  border-color: rgba(15, 76, 196, 0.18);
  box-shadow: 0 20px 48px rgba(11, 30, 67, 0.16);
}

.forecast-refresh .forecast-board-card::before {
  background: var(--forecast-orange);
}

.forecast-refresh .forecast-board-card.sunny::before {
  background: var(--forecast-gold);
}

.forecast-refresh .forecast-board-card.partly::before {
  background: var(--forecast-blue);
}

.forecast-refresh .forecast-board-card.cloudy::before {
  background: #8fa0b8;
}

.forecast-refresh .forecast-board-card.rain::before {
  background: var(--forecast-orange);
}

.forecast-refresh .forecast-condition strong {
  color: var(--forecast-muted);
}

.forecast-refresh .forecast-card-tags span {
  color: var(--forecast-blue);
  background: var(--forecast-blue-soft);
}

.forecast-refresh .forecast-card-local {
  color: #75451f;
  background: #fff1e7;
}

.forecast-refresh .forecast-card-local span {
  color: var(--forecast-orange);
}

.header-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 18px 12px 14px; /* slightly more breathing room */
}

/* ------------------------------------------------------------
   BRAND
   ------------------------------------------------------------ */

.brand-title {
  color: #6ea8ff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand-title::after {
  background: var(--orange);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-top: 7px;
  width: 44px;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 7px;
}

/* ------------------------------------------------------------
   LIVE ROW
   ------------------------------------------------------------ */

.live-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

#metric-chips {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 0.9fr 1.2fr 0.9fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-left: 0;
  min-width: 0;
  overflow: visible;
  padding-bottom: 2px;
  scrollbar-width: none;
}

#metric-chips::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------
   METRIC CHIPS
   ------------------------------------------------------------ */

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;

  min-height: 50px;
  padding: 0 10px;
  border-radius: 14px;

  font-size: clamp(13px, 2vw, 16px);
  font-weight: 600;
  letter-spacing: 0;

  color: rgba(232, 240, 255, 0.90);
  background: rgba(255,255,255,0.105);
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 10px 24px rgba(0,0,0,0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  white-space: nowrap; /* prevents awkward wraps */
}

/* primary signal (temperature) */
.metric-chip.temp {
  background: rgba(255,255,255,0.13);
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 800;
  padding: 0 12px;
}

/* optional label/value refinement */
.metric-chip .label {
  opacity: 0.72;
  margin-right: 5px;
  font-weight: 700;
}

.metric-chip .metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  margin-right: 5px;
  font-size: 1em;
  line-height: 1;
  opacity: 0.9;
}

.metric-chip.temp .metric-icon {
  font-size: 0.9em;
}

.metric-chip .value {
  color: #f4f8ff;
  font-weight: 800;
}

.metric-chip .gust {
  opacity: 0.75;
  margin-left: 4px;
  font-weight: 600;
  font-size: 0.74em;
}

.metric-chip .unit {
  opacity: 0.72;
  font-weight: 700;
  margin-left: 3px;
}

.metric-chip.uv {
  background: rgba(255, 210, 96, 0.14);
  border-color: rgba(255, 210, 96, 0.10);
}

@media (max-width: 980px) {
  #metric-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow: visible;
    padding-right: 0;
  }

  .metric-chip {
    flex: 0 0 auto;
    min-height: 58px;
    font-size: 16px;
  }

  .metric-chip.temp {
    width: 118px;
    font-size: 18px;
  }

  .metric-chip.humidity {
    width: 122px;
  }

  .metric-chip.dew {
    width: 112px;
  }

  .metric-chip.wind {
    width: 190px;
  }

  .metric-chip.uv {
    width: 106px;
  }
}

@media (max-width: 560px) {
  #metric-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-chip,
  .metric-chip.temp,
  .metric-chip.humidity,
  .metric-chip.dew,
  .metric-chip.wind,
  .metric-chip.uv {
    width: auto;
    min-width: 0;
  }

.metric-chip.wind {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   DROUGHT CARD
   ============================================================ */

.df-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 194, 122, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 34px rgba(0,0,0,0.22);
  transition:
    background 0.4s ease,
    box-shadow 0.3s ease;
}

.df-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,179,71,0.78), rgba(255,107,107,0.48), transparent);
}

 .df-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.df-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.df-subtitle {
  margin-top: 6px;
  color: rgba(232,238,252,0.68);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.df-info-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff2d6;
  background: rgba(255,179,71,0.14);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255,179,71,0.26);
  animation: dfInfoPulse 4.6s ease-in-out infinite;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.df-info-cta span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2b1f18;
  background: #ffd166;
  font-size: 12px;
  font-weight: 900;
  font-family: ui-serif, Georgia, serif;
}

.df-info-cta:hover,
.df-info-cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,179,71,0.22);
  border-color: rgba(255,209,102,0.38);
}

@keyframes dfInfoPulse {
  0%, 72%, 100% {
    box-shadow: 0 0 0 0 rgba(255,179,71,0);
  }

  18% {
    box-shadow: 0 0 0 7px rgba(255,179,71,0);
  }

  28% {
    box-shadow: 0 0 18px 0 rgba(255,179,71,0.18);
  }
}

.df-scores {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.df-score {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;

  transition: color 0.4s ease;
}

.df-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.df-official {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.df-badge {
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 600;
}

.df-headline {
  font-size: 14px;
}

.df-bullet {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   FEELSCORE HERO
   ============================================================ */

.feelscore-card.hero {
  padding: 32px 28px 28px;
  border-radius: 22px;

  background: linear-gradient(180deg, #142544, #101b33);

  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.04);

  transition:
    background 0.4s ease,
    box-shadow 0.3s ease;
}

/* FIXED HEADER ALIGNMENT */
.fs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fs-title {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.fs-hero-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* SCORE */
.fs-score {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;

  transition:
    color 0.4s ease,
    transform 0.3s ease;
}

/* BUMP ANIMATION */
.fs-score.bump {
  transform: scale(1.08);
}

/* STATUS */
.fs-status {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;

  transition: color 0.4s ease;
}

.fs-headline {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.fs-subhead {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}

.fs-footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-top: 16px;
}

.fs-bullets {
  min-width: 0;
}

.fs-bullet {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.fs-temp-outlook {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: flex-end;
  gap: 28px;
  width: min(100%, 360px);
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 16px 13px;
  border-radius: 17px;
  background: rgba(8, 21, 36, 0.64);
  border: 1px solid rgba(159, 176, 209, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(0,0,0,0.16);
  max-width: 100%;
}

.fs-temp-main,
.fs-temp-low {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fs-temp-low {
  justify-items: end;
}

.fs-temp-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.fs-temp-value {
  color: #f3f7ff;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

.fs-temp-low-value {
  color: #b8d8f6;
  font-size: 31px;
  font-weight: 800;
  line-height: 0.95;
  padding-bottom: 3px;
}

/* GLOW FIXED */
.feelscore-card.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 50px rgba(255,255,255,0.04);
  pointer-events: none;
  z-index: 0;
}

.feelscore-card.hero > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  .feelscore-card.hero {
    padding: 28px 26px 26px;
  }

  .fs-headline {
    font-size: 20px;
  }

  .fs-subhead {
    font-size: 16px;
  }

  .fs-footer-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fs-temp-outlook {
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .feelscore-card.hero {
    padding: 24px 22px 24px;
  }

  .fs-info-cta em {
    display: none;
  }

  .fs-temp-outlook {
    width: 100%;
    min-width: 0;
    gap: 16px;
  }

  .fs-temp-label {
    font-size: 11px;
  }

  .fs-temp-value {
    font-size: 38px;
  }

  .fs-temp-low-value {
    font-size: 28px;
  }
}

/* ============================================================
   INFO BUTTON
   ============================================================ */

.fs-info-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(126, 211, 135, 0.26);
  border-radius: 999px;
  padding: 7px 10px 7px 8px;
  color: #dfffe5;
  background: rgba(86, 194, 95, 0.14);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(86, 194, 95, 0.28);
  animation: fsInfoPulse 4.8s ease-in-out infinite;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.fs-info-cta span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #082111;
  background: #7bd389;
  font-size: 12px;
  font-weight: 900;
  font-family: ui-serif, Georgia, serif;
}

.fs-info-cta em {
  font-style: normal;
}

.fs-info-cta:hover,
.fs-info-cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(86, 194, 95, 0.22);
  border-color: rgba(126, 211, 135, 0.48);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  outline: none;
}

@keyframes fsInfoPulse {
  0%, 70%, 100% {
    box-shadow: 0 0 0 0 rgba(86, 194, 95, 0);
  }

  18% {
    box-shadow: 0 0 0 7px rgba(86, 194, 95, 0);
  }

  28% {
    box-shadow: 0 0 18px 0 rgba(126, 211, 135, 0.18);
  }
}

.info-btn {
  margin-left: 6px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.6;
}

/* ============================================================
   MODAL
   ============================================================ */

.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(3,7,18,0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;

  z-index: 999;
}

.info-content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,179,71,0.16), transparent 32%),
    linear-gradient(145deg, rgba(30,41,64,0.98), rgba(9,17,33,0.99));
  color: var(--text);
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.48);
  max-width: 620px;
  width: min(94vw, 620px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
}

.info-close {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
}

.info-panel {
  padding: 24px;
}

.info-hero {
  margin: -24px -24px 18px;
  padding: 24px 56px 22px 24px;
  background:
    linear-gradient(135deg, rgba(255,179,71,0.18), rgba(239,68,68,0.10)),
    rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-kicker {
  color: #ffd166;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-hero h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.info-hero p,
.info-panel p {
  color: rgba(232,238,252,0.78);
  line-height: 1.5;
}

.info-score-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 750;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.info-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

.info-card h3,
.info-panel h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
}

.info-card p {
  margin: 0;
  font-size: 13px;
}

.info-scale {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.info-band {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.055);
  color: rgba(232,238,252,0.82);
  font-size: 12px;
}

.info-band b {
  color: #fff;
}

.info-band.ideal { border-left: 3px solid #57c45f; }
.info-band.comfort { border-left: 3px solid #6ea8ff; }
.info-band.slight { border-left: 3px solid #ffd166; }
.info-band.low { border-left: 3px solid #7bd389; }
.info-band.mod { border-left: 3px solid #ffd166; }
.info-band.high { border-left: 3px solid #ff944d; }
.info-band.extreme { border-left: 3px solid #ff6b6b; }

.feelscore-info-panel .info-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(126, 211, 135, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(86, 194, 95, 0.18), rgba(110, 168, 255, 0.10)),
    rgba(255,255,255,0.03);
}

.feelscore-info-panel .info-kicker {
  color: #9ff3aa;
}

.feelscore-info-panel .info-score-callout {
  background: rgba(86, 194, 95, 0.13);
  border-color: rgba(126, 211, 135, 0.2);
}

.feelscore-info-panel .info-list li::before {
  background: #7bd389;
}

.info-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding-left: 18px;
  position: relative;
  color: rgba(232,238,252,0.78);
  font-size: 13px;
  line-height: 1.45;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd166;
}

@media (max-width: 560px) {
  .info-panel {
    padding: 18px;
  }

  .info-hero {
    margin: -18px -18px 16px;
    padding: 22px 50px 20px 18px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none;
}

/* ============================================================
   FUTURE COMFORT STRIP (UPGRADED)
   ============================================================ */

.next6-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 4px;
}

.next6-strip::-webkit-scrollbar {
  display: none;
}

/* CARD */
.next6-hour {
  min-width: 70px;
  border-radius: 12px;
  padding: 10px 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  border: 1px solid rgba(255,255,255,0.04);

  transition:
    transform 0.2s ease,
    background 0.4s ease;
}

/* hover / tap feel */
.next6-hour:hover {
  transform: translateY(-2px);
}

/* TIME */
.next6-hour-label {
  font-size: 11px;
  color: #9fb0d1;
}

/* ICON */
.next6-hour-emoji {
  font-size: 18px;
}

/* TEMP */
.next6-hour-temp {
  font-size: 16px;
  font-weight: 600;
}

/* SCORE */
.next6-hour-score {
  font-size: 12px;
  font-weight: 500;
}

/* SCORE COLORS */
.next6-hour-score.great { color: #4caf50; }
.next6-hour-score.good { color: #8bc34a; }
.next6-hour-score.okay { color: #ffc107; }
.next6-hour-score.poor { color: #ff9800; }
.next6-hour-score.bad  { color: #f44336; }

/* GOLDILOCKS MOMENT */
.next6-hour.goldilocks {
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
}

.next6-hour-goldi {
  font-size: 12px;
}

.comfort-support {
  font-size: 13px;
  color: #9fb0d1;
  margin-top: 4px;
}

/* ============================================================
   TOMORROW CARD
   ============================================================ */

.tomorrow-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.tm-headline {
  font-size: 15px;
  margin-top: 6px;
}

.tm-bullet {
  font-size: 13px;
  color: #9fb0d1;
}

/* ============================================================
   CONTENT CARDS (PULSE + UPDATE) — V2
   ============================================================ */

.content-card {
  border-radius: 16px;
  padding: 14px;

  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.04);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    #121a2b;

  transition:
    transform 0.18s ease,
    background 0.35s ease,
    border-color 0.25s ease;
}

/* subtle lift (mobile-safe) */
.content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.08);
}

/* consistent internal spacing */
.content-card > * + * {
  margin-top: 6px;
}

/* ============================================================
   MEDIA
   ============================================================ */

.content-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ============================================================
   TEXT SYSTEM
   ============================================================ */

.content-card .section-title {
  font-size: 11px;
  letter-spacing: 1px;
  color: #9fb0d1;
}

.content-card h3,
.update-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.content-card .meta,
.update-date,
.pulse-meta {
  font-size: 12px;
  color: #9fb0d1;
}

.content-card .body,
.update-excerpt,
.pulse-text {
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   CTA
   ============================================================ */

.content-card .cta,
.update-cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  display: inline-block;
}

/* ============================================================
   PULSE (BLUE)
   ============================================================ */

.pulse-card {
  background:
    linear-gradient(
      rgba(23,55,131,0.18),
      rgba(23,55,131,0.05)
    ),
    #121a2b;
}

.pulse-expand {
  font-size: 12px;
  color: #6ea8ff;
}

/* ============================================================
   UPDATE (ORANGE)
   ============================================================ */

.update-card {
  background:
    linear-gradient(
      rgba(219,110,45,0.18),
      rgba(219,110,45,0.05)
    ),
    #121a2b;
}

.update-cta {
  color: #db6e2d;
}

/* NEW badge */
.update-new {
  font-size: 10px;
  background: #db6e2d;
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

/* ============================================================
   OPTIONAL: SUBTLE GLOW (matches hero system)
   ============================================================ */

.content-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.03);
  pointer-events: none;
}

/* ============================================================
   STAGGER ANIMATION SYSTEM
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* ============================================================
   SPLASH
   ============================================================ */

.splash {
  position: fixed;
  inset: 0;
  background: #0b1220;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash.hide {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.splash-inner {
  text-align: center;
}

.splash-title {
  font-size: 22px;
  font-weight: 700;
  color: #6ea8ff;
}

.splash-sub {
  font-size: 13px;
  color: #9fb0d1;
  margin-top: 6px;
}

.splash {
  pointer-events: all;
}

/* ============================================================
   ACTIVE WEATHER NOW
   ============================================================ */

.active-weather-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(244, 248, 255, 0.94);
  background:
    linear-gradient(145deg, rgba(20, 31, 48, 0.96), rgba(9, 17, 33, 0.98)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(159, 176, 209, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 30px rgba(0,0,0,0.20);
}

.active-weather-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(110, 168, 255, 0.72), transparent);
}

.active-weather-card.rain::before {
  background: linear-gradient(90deg, rgba(84, 190, 255, 0.78), transparent);
}

.active-weather-card.winter::before {
  background: linear-gradient(90deg, rgba(181, 229, 255, 0.82), transparent);
}

.active-weather-card.storm::before {
  background: linear-gradient(90deg, rgba(255, 200, 87, 0.86), rgba(132, 189, 255, 0.55), transparent);
}

.active-weather-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 23px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.08);
}

.active-weather-copy {
  min-width: 0;
}

.active-weather-label {
  color: rgba(159, 176, 209, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.active-weather-headline {
  margin-top: 3px;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.active-weather-detail {
  margin-top: 4px;
  color: rgba(232, 240, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.active-weather-rate {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.10);
  color: #cfe6ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .active-weather-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 13px 14px;
  }

  .active-weather-rate {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
    padding: 9px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
}

/* ============================================================
   FEELSCORE TIMELINE MODULE
   ============================================================ */

.timeline-card {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(145deg, rgba(20, 31, 48, 0.96), rgba(9, 17, 33, 0.98)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(159, 176, 209, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 34px rgba(0,0,0,0.22);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 211, 160, 0.7), rgba(110, 168, 255, 0.45), transparent);
}

.timeline-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.timeline-card .feelscore-title {
  margin-bottom: 0;
}

.timeline-kicker {
  margin-top: 7px;
  color: rgba(159, 176, 209, 0.78);
  font-size: 12px;
  line-height: 1.25;
}

.timeline-best-pill {
  min-width: 48px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #dfffe8;
  font-size: 21px;
  font-weight: 800;
  background: rgba(125, 211, 160, 0.12);
  border: 1px solid rgba(125, 211, 160, 0.28);
  box-shadow: 0 0 22px rgba(125, 211, 160, 0.08);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 2px;
  scrollbar-width: none;
  min-width: 0;
}

.timeline-row::-webkit-scrollbar {
  display: none;
}

.hour-block {
  min-width: 0;
  min-height: 126px;
  border-radius: 14px;
  padding: 12px 7px 11px;
  text-align: center;
  background: rgba(5, 12, 27, 0.52);
  border: 1px solid rgba(159, 176, 209, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hour-block:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 176, 209, 0.24);
}

.timeline-card .hour-time {
  margin: 0;
  color: rgba(159, 176, 209, 0.74);
  font-size: clamp(10px, 1.65vw, 12px);
  line-height: 1.1;
  white-space: nowrap;
}

.timeline-card .hour-icon {
  font-size: clamp(18px, 3vw, 21px);
  line-height: 1;
}

.timeline-card .hour-temp,
.timeline-card .hour-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}

.timeline-card .hour-temp {
  color: #f4f8ff;
  font-size: clamp(27px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.32);
}

.timeline-card .hour-temp span {
  font-size: 13px;
  opacity: 0.68;
  transform: translateY(-1px);
}

.timeline-card .hour-score {
  color: #bfe0ff;
  font-size: clamp(13px, 2.4vw, 15px);
  font-weight: 800;
}

.timeline-card .hour-score span {
  color: #7dd3a0;
  font-size: 11px;
}

.timeline-card .best-hour {
  background: linear-gradient(180deg, rgba(125, 211, 160, 0.13), rgba(5, 12, 27, 0.58));
  border-color: rgba(125, 211, 160, 0.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 18px rgba(125, 211, 160, 0.10);
}

.timeline-editorial {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(232, 240, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
  background: rgba(110, 168, 255, 0.08);
  border: 1px solid rgba(110, 168, 255, 0.16);
}

@media (max-width: 680px) {
  .timeline-card {
    overflow: hidden;
    padding: 16px 14px 14px;
  }

  .timeline-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }

  .hour-block {
    flex: 0 0 112px;
    min-height: 128px;
    scroll-snap-align: start;
  }

  .timeline-card .hour-temp {
    font-size: 30px;
  }
}

.df-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.df-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}

.df-icon {
  font-size: 22px;
}

.df-value {
  font-weight: 600;
}

/* ============================================================
   DROUGHT / FIRE — UPGRADED
   ============================================================ */

.df-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.df-block {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 12px;
}

.df-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.df-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
}

.df-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.df-trend {
  font-size: 14px;
  opacity: 0.85;
}

.df-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.df-block {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
}

.df-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.df-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.df-scale-label {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.df-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.df-headline {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  color: rgba(255,255,255,0.92);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.df-driver {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(255,209,102,0.42);
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.35;
}

@media (max-width: 420px) {
  .df-header {
    align-items: stretch;
    flex-direction: column;
  }

  .df-info-cta {
    align-self: flex-start;
  }

  .df-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .df-block {
    padding: 9px;
  }

  .df-label {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .df-main {
    gap: 5px;
    font-size: 19px;
  }

  .df-icon {
    font-size: 20px;
  }

  .df-scale-label {
    padding: 4px 7px;
    font-size: 10px;
  }

  .df-sub {
    font-size: 10px;
  }
}

/* ============================================================
   DAY CARDS
   ============================================================ */

.day-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.04);
}

.day-card > * + * {
  margin-top: 6px;
}

.day-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-title {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.day-score {
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-score-value {
  font-size: 22px;
  font-weight: 600;
  color: inherit;
}

.day-emoji {
  font-size: 18px;
}

.day-headline {
  font-size: 16px;   /* match fs-headline */
  font-weight: 600;  /* slight bump */
  line-height: 1.3;
}

.day-bullet {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.9;   /* subtle separation */
}

.day-narrative {
  margin-top: 2px;   /* was 6px */
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.85;
}

/* ============================================================
   EXTENDED FORECAST LINK
   ============================================================ */

.forecast-link-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(130, 180, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(110,168,255,0.18), rgba(125,211,160,0.08) 44%, rgba(219,110,45,0.12)),
    #101b33;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.forecast-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(156,196,255,0.18), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.045), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.forecast-link-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  box-shadow: inset 0 0 34px rgba(255,255,255,0.035);
  pointer-events: none;
}

.forecast-link {
  position: relative;
  z-index: 1;
  min-height: 96px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.forecast-link-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.forecast-link-kicker {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.forecast-link-title {
  max-width: 340px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
}

.forecast-link-sub {
  max-width: 340px;
  color: rgba(232,238,252,0.72);
  font-size: 12px;
  line-height: 1.35;
}

.forecast-link-preview {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 82px;
  width: 166px;
  transform: translateY(-50%) rotate(-1.5deg);
  opacity: 0.55;
  pointer-events: none;
}

.forecast-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(5,12,27,0.46);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.forecast-preview-day {
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.055);
}

.forecast-preview-day b,
.forecast-preview-day em {
  font-style: normal;
  line-height: 1;
}

.forecast-preview-day b {
  color: rgba(159,176,209,0.84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forecast-preview-day i {
  font-style: normal;
  font-size: 17px;
  line-height: 1;
}

.forecast-preview-day em {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(125,211,160,0.58);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 800;
}

.forecast-link-main {
  position: relative;
  z-index: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.forecast-link-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(156,196,255,0.16);
  border: 1px solid rgba(156,196,255,0.22);
  color: #cfe2ff;
  font-size: 24px;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.forecast-link:hover .forecast-link-arrow,
.forecast-link:focus-visible .forecast-link-arrow {
  transform: translateX(3px);
  background: rgba(156,196,255,0.24);
}

.forecast-link:hover .forecast-link-preview,
.forecast-link:focus-visible .forecast-link-preview {
  opacity: 1;
}

.forecast-link:focus-visible {
  outline: 2px solid rgba(156,196,255,0.75);
  outline-offset: -4px;
}

@media (max-width: 820px) {
  .forecast-link-preview {
    right: 70px;
    width: 142px;
    opacity: 0.42;
  }

  .forecast-link-copy {
    max-width: calc(100% - 108px);
  }
}

@media (max-width: 680px) {
  .forecast-link {
    min-height: 0;
    gap: 12px;
  }

  .forecast-link-preview {
    display: none;
  }

  .forecast-link-title {
    font-size: 18px;
  }

  .forecast-link-main {
    font-size: 0;
  }
}

/* ============================================================
   HIKING GUIDE LINK
   ============================================================ */

.hiking-guide-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 211, 148, 0.24);
  background:
    radial-gradient(circle at 82% 18%, rgba(98,211,148,0.18), transparent 34%),
    linear-gradient(135deg, rgba(18,56,42,0.72), rgba(16,27,51,0.95) 46%, rgba(219,110,45,0.13)),
    #101b33;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.hiking-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent),
    radial-gradient(circle at 18% 100%, rgba(110,168,255,0.14), transparent 42%);
  pointer-events: none;
}

.hiking-guide-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  box-shadow: inset 0 0 34px rgba(255,255,255,0.035);
  pointer-events: none;
}

.hiking-guide-link {
  position: relative;
  z-index: 1;
  min-height: 106px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.hiking-guide-copy {
  min-width: 0;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hiking-guide-kicker {
  color: #9ee6bd;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hiking-guide-title {
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.15;
}

.hiking-guide-sub {
  max-width: 360px;
  color: rgba(232,238,252,0.74);
  font-size: 12px;
  line-height: 1.35;
}

.hiking-guide-preview {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 86px;
  width: 172px;
  height: 74px;
  transform: translateY(-50%);
  opacity: 0.76;
  pointer-events: none;
}

.hiking-ridge {
  position: absolute;
  inset: auto 0 0;
  height: 58px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.hiking-peak {
  flex: 1;
  display: block;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(110,168,255,0.48), rgba(98,211,148,0.35));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hiking-peak-low { height: 34px; }
.hiking-peak-mid { height: 46px; }
.hiking-peak-high { height: 64px; }

.hiking-guide-score {
  position: absolute;
  top: 2px;
  right: 12px;
  width: 64px;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  background: rgba(5,12,27,0.56);
  border: 1px solid rgba(98,211,148,0.24);
}

.hiking-guide-score b,
.hiking-guide-score i {
  display: block;
  font-style: normal;
  line-height: 1;
}

.hiking-guide-score b {
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}

.hiking-guide-score i {
  margin-top: 4px;
  color: #9ee6bd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hiking-guide-main {
  position: relative;
  z-index: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hiking-guide-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98,211,148,0.14);
  border: 1px solid rgba(98,211,148,0.24);
  color: #c9f7d9;
  font-size: 24px;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.hiking-guide-link:hover .hiking-guide-arrow,
.hiking-guide-link:focus-visible .hiking-guide-arrow {
  transform: translateX(3px);
  background: rgba(98,211,148,0.22);
}

.hiking-guide-link:focus-visible {
  outline: 2px solid rgba(158,230,189,0.78);
  outline-offset: -4px;
}

@media (max-width: 820px) {
  .hiking-guide-preview {
    right: 72px;
    width: 142px;
    opacity: 0.54;
  }

  .hiking-guide-copy {
    max-width: calc(100% - 110px);
  }
}

@media (max-width: 680px) {
  .hiking-guide-link {
    min-height: 0;
    gap: 12px;
  }

  .hiking-guide-preview {
    display: none;
  }

  .hiking-guide-title {
    font-size: 18px;
  }

  .hiking-guide-main {
    font-size: 0;
  }
}
/* ============================================================
   TITLES (PULSE + UPDATE)
   ============================================================ */

.section-title {
  font-size: 1.15rem;                 /* larger, more prominent */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ============================================================
   PULSE MODULE — CLEAN EXPANSION
   ============================================================ */

.pulse-body {
  position: relative;
  max-height: 90px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.pulse-card.expanded .pulse-body {
  max-height: 600px;
}

.update-body {
  position: relative;
  max-height: 84px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.update-card.expanded .update-body {
  max-height: 700px;
}

/* Fade overlay (color matched to card background) */
.pulse-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(18,26,43,0),
    rgba(18,26,43,0.95)
  );
}

.pulse-card.expanded .pulse-fade {
  display: none;
}

.update-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(
    to bottom,
    rgba(43,31,38,0),
    rgba(43,31,38,0.96)
  );
}

.update-card.expanded .update-fade {
  display: none;
}
/* ============================================================
   PULSE HEADER POLISH
   ============================================================ */

.pulse-card .section-title {
  position: relative;
  color: #9ecbff;                 /* cool blue accent (not white) */
  letter-spacing: 0.05em;
}

.pulse-heading {
  margin-bottom: 8px;
}

.pulse-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 0 rgba(158, 203, 255, 0);
  animation: pulseTitleBreathe 3.2s ease-in-out infinite;
}

.pulse-title-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7dd3ff;
  box-shadow: 0 0 0 0 rgba(125, 211, 255, 0.38);
  animation: pulseHeartbeat 3.2s ease-in-out infinite;
}

.pulse-subtitle {
  margin-top: 5px;
  color: rgba(207, 226, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* subtle cool accent line */
.pulse-card .section-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 4px;

  background: linear-gradient(
    to right,
    #6ea8ff,
    transparent
  );
}

@keyframes pulseHeartbeat {
  0%, 42%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(125, 211, 255, 0.36);
  }

  10% {
    transform: scale(1.45);
    box-shadow: 0 0 0 7px rgba(125, 211, 255, 0);
  }

  20% {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px rgba(125, 211, 255, 0.18);
  }

  29% {
    transform: scale(1.32);
    box-shadow: 0 0 0 6px rgba(125, 211, 255, 0);
  }
}

@keyframes pulseTitleBreathe {
  0%, 100% {
    text-shadow: 0 0 0 rgba(158, 203, 255, 0);
  }

  18% {
    text-shadow: 0 0 12px rgba(158, 203, 255, 0.28);
  }

  42% {
    text-shadow: 0 0 4px rgba(158, 203, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-title,
  .pulse-title-dot {
    animation: none;
  }
}
/* ============================================================
   META / TEXT
   ============================================================ */

.pulse-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.pulse-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.pulse-text p {
  margin: 0 0 0.75em;
}

.pulse-text p:last-child {
  margin-bottom: 0;
}

.pulse-text ul,
.pulse-text ol {
  margin: 0.45em 0 0.75em 1.25em;
  padding: 0;
}

.pulse-text a {
  color: #9ecbff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   MEDIA (IMAGE + VIDEO UNIFIED)
   ============================================================ */

.pulse-media {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
}

/* Unified behavior */
.pulse-media img,
.pulse-media video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Tap hint */
.pulse-media::after {
  content: "Tap to expand";
  position: absolute;
  bottom: 8px;
  right: 10px;

  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;

  background: rgba(0,0,0,0.55);
  color: #fff;
  pointer-events: none;
}

/* ============================================================
   TOGGLE BUTTON
   ============================================================ */

.pulse-toggle {
  margin-top: 10px;
  background: rgba(110,168,255,0.15);
  color: #cfe2ff;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pulse-toggle:hover {
  background: rgba(110,168,255,0.25);
}

/* ============================================================
   COMPACT RECENT PULSE RAIL
   ============================================================ */

.pulse-rail {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.pulse-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(207, 226, 255, 0.68);
}

.pulse-rail-head a {
  color: #9ecbff;
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.pulse-rail-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.pulse-rail-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.pulse-rail-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}

.pulse-rail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pulse-rail-card:hover .pulse-rail-media img,
.pulse-rail-card:focus-visible .pulse-rail-media img {
  opacity: 0.88;
  transform: scale(1.04);
}

.pulse-rail-card:focus-visible {
  outline: 2px solid rgba(158, 203, 255, 0.75);
  outline-offset: 3px;
  border-radius: 10px;
}

.pulse-rail-kind {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.pulse-rail-time {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(207, 226, 255, 0.7);
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .pulse-rail-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }

  .pulse-rail-card {
    flex: 0 0 72px;
    scroll-snap-align: start;
  }
}

.update-toggle {
  display: inline-block;
  margin-top: 10px;
  background: rgba(219,110,45,0.18);
  color: #ffd6a0;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.update-toggle:hover {
  background: rgba(219,110,45,0.28);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.pulse-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.pulse-lightbox.hidden {
  display: none;
}

.pulse-lightbox-inner {
  position: relative;
  max-width: 95%;
  max-height: 90%;
}

/* Lightbox media */
#pulse-lightbox-content img,
#pulse-lightbox-content video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 12px;
}

/* Close button */
.pulse-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 26px;
  color: #fff;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 8px;
}

/* ============================================================
   UPDATE (SUBSTACK HEADER FIXES)
   ============================================================ */

.update-title-row {
  display: flex;
  align-items: center;
  gap: 6px;

  flex-wrap: nowrap;          /* keep everything on one line */
  white-space: nowrap;
}

/* Target ONLY the title text (not all spans) */
.update-title-text {
  flex: 1;                    /* allow text to fill available space */
  min-width: 0;               /* required for ellipsis in flex layouts */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-heading {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.update-heading .update-title-text {
  flex: initial;
}

.update-tagline {
  color: rgba(255, 214, 160, 0.72);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

/* keep icon + NEW badge stable */
.substack-icon,
.update-new {
  flex-shrink: 0;
}

/* Substack icon */
.substack-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.9;

  transform: translateY(1px);     /* optical alignment */
  transition: transform 0.2s ease;
}

/* subtle hover polish */
.update-card:hover .substack-icon {
  transform: translateY(1px) scale(1.1);
}

.update-card .section-title {
  color: #ffd6a0;
  font-weight: 700;
  letter-spacing: 0.05em;

  text-shadow: 0 1px 6px rgba(0,0,0,0.4);   /* subtle lift off background */
}

.update-card .section-title {
  position: relative;
}

.update-card .section-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 4px;

  background: linear-gradient(
    to right,
    #ffb86c,
    transparent
  );
}
/* ============================================================
   FEELSCORE HEADER (TONED DOWN)
   ============================================================ */

.feelscore-title {
  font-size: 0.9rem;                 /* smaller than Pulse/Update */
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.6);      /* softer */
  font-weight: 600;

  margin-bottom: 10px;
}
.feelscore-title::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  margin-top: 6px;

  background: rgba(255,255,255,0.2);
}

.feelscore-title,
.forecast-link-kicker,
.pulse-card .section-title,
.update-card .section-title {
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* slightly tighter now that it's one phrase */
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Keep your atmospheric dot — this is good */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-color, #7dd3a0);
  box-shadow: 0 0 0 rgba(125, 211, 160, 0.4);
  animation: liveBreathe 2.8s ease-in-out infinite;
}

.live-dot.ping {
  animation: livePing 0.4s ease-out;
}

@keyframes livePing {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.8); }
  100% { transform: scale(1); }
}

/* This becomes the primary text now */
.live-age {
  font-weight: 500;      /* slight bump so it carries the label */
  opacity: 0.7;          /* was 0.5 — too faint now that it's doing more work */
}

/* Slow, calming pulse */
@keyframes liveBreathe {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(125, 211, 160, 0.35);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(125, 211, 160, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(125, 211, 160, 0);
  }
}

:root {
  --live-color: #7dd3a0; /* default */
}

.feel-good {
  --live-color: #86efac; /* soft green */
}

.feel-crisp {
  --live-color: #7dd3fc; /* airy blue */
}

.feel-heavy {
  --live-color: #fca5a5; /* muted red */
}

.feel-neutral {
  --live-color: #cbd5f5; /* soft indigo-gray */
}

/* =========================================
   PAGE LAYOUT (FIX: anchor footer properly)
   ========================================= */

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: #020617; /* ensures smooth blend into footer */
}

#app {
  flex: 1;
}

/* =========================================
   FOOTER — 828 STYLE (FINAL)
   ========================================= */

.site-footer {
  margin-top: 30px;
  padding: 28px 20px 32px;
  color: #cbd5e1;
  font-size: 13px;

  /* Atmospheric fade into footer */
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0) 0%,
    rgba(2, 6, 23, 0.55) 35%,
    rgba(2, 6, 23, 0.95) 100%
  );
}

/* Constrained content column (matches card width) */
.footer-inner {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 10px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  align-items: flex-start;
  text-align: left;
}

/* Subtle divider aligned with content column */
.site-footer::before {
  content: "";
  display: block;
  max-width: 420px;
  margin: 0 auto 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------
   Brand
----------------------------------------- */

.footer-logo {
  color: #6ea8ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-tagline {
  opacity: 0.85; /* bumped for readability */
  max-width: 520px;
  line-height: 1.4;
}


/* -----------------------------------------
   Live indicator
----------------------------------------- */

.footer-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.9;
}

.footer-live .live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}


/* -----------------------------------------
   Links
----------------------------------------- */

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #e2e8f0;
}


/* -----------------------------------------
   Meta
----------------------------------------- */

.footer-meta {
  font-size: 12px;
  opacity: 0.75; /* slightly stronger */
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 11px;
  opacity: 0.65;
}


/* -----------------------------------------
   Social (icons only)
----------------------------------------- */

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-icon {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-social a:hover .social-icon {
  color: #e2e8f0;
}


/* -----------------------------------------
   Bottom line
----------------------------------------- */

.footer-bottom {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.5;
}

.comfort-score-block.storm {
  background: linear-gradient(
    135deg,
    rgba(80, 120, 200, 0.25),
    rgba(120, 60, 160, 0.25)
  );
}

.comfort-impact-badge {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

/* =========================
   PAGE CONTAINER
   ========================= */

.page-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

/* =========================
   BACKGROUND
   ========================= */

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(80,120,200,0.28), transparent 55%),
    linear-gradient(to bottom, #0a1325 0%, #060b18 100%);

  color: #e6edf7;
}

/* =========================
   FORECAST PAGE
   ========================= */

.forecast-page {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 18px;
  padding-bottom: 30px;
}

.forecast-page > * {
  width: 100%;
  max-width: 520px;
}

/* glow behind stack */
.forecast-page::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 240px;

  background: radial-gradient(
    circle,
    rgba(100,140,255,0.18),
    transparent 70%
  );

  pointer-events: none;
}

/* =========================
   HEADER
   ========================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: linear-gradient(
    to bottom,
    rgba(18,42,90,0.96),
    rgba(15,34,71,0.86)
  );

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(110,168,255,0.18);
}

/* =========================
   SUMMARY
   ========================= */

.forecast-summary {
  font-size: 0.95rem;
  padding: 10px 14px;

  border-radius: 12px;
  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.06);
}

/* =========================
   FORECAST CARD (ENHANCED)
   ========================= */

.forecast-row {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 18px;
  border-radius: 20px;

  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.15));

  border: 1px solid rgba(255,255,255,0.07);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease;
}

@media (hover: hover) {
  .forecast-row:hover {
    transform: translateY(-4px);

    box-shadow:
      0 18px 42px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }
}

/* =========================
   ATMOSPHERIC LAYER
   ========================= */

.forecast-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* tone refinement (less neon, more natural) */
.forecast-row.sunny::before {
  background: radial-gradient(circle at 80% 0%, rgba(255,210,110,0.22), transparent 60%);
}

.forecast-row.partly::before {
  background: radial-gradient(circle at 80% 0%, rgba(255,180,130,0.18), transparent 60%);
}

.forecast-row.cloudy::before {
  background: radial-gradient(circle at 80% 0%, rgba(170,190,210,0.15), transparent 60%);
}

.forecast-row.rain::before {
  background: radial-gradient(circle at 80% 0%, rgba(90,150,255,0.22), transparent 60%);
}

/* =========================
   TOP ROW
   ========================= */

.row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.6;
}

.icon {
  font-size: 1.7rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

.forecast-row:hover .icon {
  transform: scale(1.05);
}

/* =========================
   MAIN ROW
   ========================= */

.row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.temps {
  display: flex;
  gap: 12px;
  font-size: 1.35rem;
}

.high {
  font-weight: 700;
}

.low {
  opacity: 0.4;
}

/* =========================
   FEELSCORE (UPGRADED)
   ========================= */

.feelscore {
  text-align: right;
}

.fs-value {
  font-size: 1.7rem;
  font-weight: 700;
}

.fs-label {
  font-size: 0.68rem;
  opacity: 0.65;
}

/* bar container */
.fs-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

/* dynamic gradient (neutral default) */
.fs-fill {
  height: 100%;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #60a5fa,
    #4ade80,
    #22c55e
  );

  transition: width 0.4s ease;
}

/* FS-driven visual states */
.fs-veryComfortable .fs-fill {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  box-shadow: 0 0 12px rgba(74,222,128,0.6);
}

.fs-comfortable .fs-fill {
  background: linear-gradient(90deg, #60a5fa, #34d399);
}

.fs-slightlyUncomfortable .fs-fill {
  background: linear-gradient(90deg, #facc15, #fb923c);
}

.fs-uncomfortable .fs-fill {
  background: linear-gradient(90deg, #fb923c, #ef4444);
}

.fs-harsh .fs-fill {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 12px rgba(239,68,68,0.5);
}

/* =========================
   NARRATIVE
   ========================= */

.takeaway {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

/* =========================
   EXPANDABLE
   ========================= */

.expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}

.forecast-row.open .expand-content {
  max-height: 460px;
  opacity: 1;
  margin-top: 12px;
}

/* =========================
   HOURLY STRIP (IMPROVED)
   ========================= */

.hourly-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(40px, 1fr);

  gap: 6px;

  overflow-x: auto;
  padding: 6px 4px 12px;

  scrollbar-width: none;
}

.hourly-strip::-webkit-scrollbar {
  display: none;
}

/* hour */
.hour {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.85;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* time */
.hour-time {
  opacity: 0.55;
  margin-bottom: 2px;
}

/* temp */
.hour-temp {
  font-weight: 600;
  margin-bottom: 5px;
}

/* precip container */
.precip-bar {
  height: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* precip fill */
.precip-fill {
  width: 4px;
  min-height: 2px;
  border-radius: 3px;

  background: linear-gradient(to top, #3b82f6, #60a5fa);

  transition:
    height 0.2s ease,
    opacity 0.2s ease;
}

/* intensity scale (more balanced visually) */
.precip-fill.level-0 { height: 2px; opacity: 0.12; }
.precip-fill.level-1 { height: 4px; opacity: 0.35; }
.precip-fill.level-2 { height: 7px; opacity: 0.55; }
.precip-fill.level-3 { height: 10px; opacity: 0.75; }
.precip-fill.level-4 { height: 14px; opacity: 0.9; }
.precip-fill.level-5 { height: 18px; opacity: 1; }

/* =========================
   FOOTER
   ========================= */

.footer-bottom {
  margin-top: 14px;
  font-size: 11px;
  opacity: 0.5;
}

.override-note {
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.override-note.highlight {
  background: rgba(255,200,80,0.15);
}

.override-note.alert {
  background: rgba(255,80,80,0.18);
  border: 1px solid rgba(255,80,80,0.4);
}
.composer-trigger {
  font-size: 12px;
  opacity: 0.6;
  cursor: pointer;
  margin-top: 6px;
}

.composer-trigger:hover {
  opacity: 1;
}

/* ============================================================
   4-DAY FORECAST — MANUAL PUBLISH VIEW
   ============================================================ */

.forecast-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forecast-headline {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.forecast-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.forecast-timeline-block {
  min-width: 0;
  border-radius: 12px;
  padding: 9px 8px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.06);
}

.forecast-timeline-block span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.forecast-timeline-block strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}

.forecast-row .row-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forecast-row .day-headline {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.forecast-row .takeaway {
  margin-top: 0;
}

.forecast-card-icon {
  min-width: 58px;
  text-align: right;
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.45));
}

.forecast-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.forecast-signal {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(232,238,252,0.86);
  font-size: 0.76rem;
  line-height: 1.25;
}

.forecast-signal-wind {
  background: rgba(110,168,255,0.12);
  border-color: rgba(110,168,255,0.2);
  color: #cfe2ff;
}

.forecast-signal-rain {
  background: rgba(96,165,250,0.13);
  border-color: rgba(96,165,250,0.22);
  color: #dbeafe;
}

.forecast-signal-humidity {
  background: rgba(45,212,191,0.11);
  border-color: rgba(45,212,191,0.2);
  color: #ccfbf1;
}

.forecast-local {
  border-left: 2px solid rgba(110,168,255,0.45);
  padding-left: 10px;
  color: rgba(232,238,252,0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.forecast-local span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .forecast-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   4-DAY FORECAST - CLEANER FORECAST VIEW
   ============================================================ */

.forecast-page {
  max-width: 960px;
  gap: 20px;
  padding: 14px 16px 36px;
}

.forecast-page > * {
  max-width: 920px;
}

.forecast-page .section-header {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.forecast-page .section-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  line-height: 0.98;
}

.forecast-page .section-header .subhead {
  max-width: 640px;
  margin: 0;
  color: rgba(232,238,252,0.72);
  font-size: 1rem;
  line-height: 1.55;
}

#forecast-root {
  display: grid;
  gap: 14px;
}

.forecast-lead {
  padding: 17px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(23,55,131,0.48), rgba(10,18,32,0.72)),
    radial-gradient(circle at 90% 10%, rgba(219,110,45,0.18), transparent 34%);
  box-shadow: 0 16px 42px rgba(0,0,0,0.28);
}

.forecast-lead-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.forecast-lead-metrics {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 132px;
}

.forecast-lead .forecast-card-icon {
  min-width: 0;
  font-size: 3.25rem;
}

.forecast-lead .temps {
  justify-content: flex-end;
}

.forecast-kicker {
  margin-bottom: 8px;
  color: #8dbbff;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forecast-headline {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.forecast-lead .takeaway {
  max-width: 680px;
  margin-top: 8px;
  color: rgba(232,238,252,0.78);
}

.forecast-lead .forecast-signals {
  margin-top: 12px;
}

.forecast-lead .forecast-local {
  margin-top: 12px;
}

.forecast-timeline {
  margin-top: 12px;
}

.forecast-timeline-block {
  border-radius: 10px;
  background: rgba(5,10,20,0.26);
}

.forecast-list {
  display: grid;
  gap: 12px;
}

.forecast-row {
  min-height: 0;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
}

.forecast-list .forecast-row {
  display: grid;
  grid-template-columns: 150px minmax(190px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.forecast-list .forecast-row .row-top,
.forecast-list .forecast-row .row-main,
.forecast-list .forecast-row .row-bottom,
.forecast-list .forecast-row .expand-content {
  min-width: 0;
}

.forecast-list .forecast-row .row-top {
  display: grid;
  gap: 6px;
  justify-content: start;
}

.forecast-list .forecast-row .row-main {
  align-items: start;
}

.forecast-list .forecast-row .expand-content {
  grid-column: 1 / -1;
}

.forecast-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.forecast-row > * {
  position: relative;
  z-index: 1;
}

.forecast-expand-label {
  color: rgba(232,238,252,0.46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.temps {
  align-items: flex-end;
  gap: 12px;
}

.temp-block {
  display: grid;
  gap: 1px;
  font-size: clamp(2.15rem, 4vw, 2.75rem);
  line-height: 1;
}

.temp-block span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.temp-block.low {
  font-size: clamp(1.55rem, 3vw, 2rem);
  opacity: 0.78;
}

.forecast-card-icon {
  min-width: 46px;
  font-size: 2.65rem;
}

.forecast-row .day-headline {
  font-size: 1.02rem;
}

.forecast-row .takeaway {
  color: rgba(232,238,252,0.76);
  font-size: 0.9rem;
}

.forecast-signals {
  gap: 6px;
}

.forecast-signal {
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.forecast-local {
  border-left-color: rgba(219,110,45,0.65);
  color: rgba(232,238,252,0.72);
}

.forecast-row.open .expand-content {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.manual-timeline-strip {
  grid-auto-columns: minmax(120px, 1fr);
}

.hour {
  min-height: 58px;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
}

@media (max-width: 860px) {
  .forecast-list {
    grid-template-columns: 1fr;
  }

  .forecast-list .forecast-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .forecast-board-kicker {
    font-size: clamp(15px, 4vw, 18px);
    letter-spacing: 0.12em;
  }

  .forecast-page {
    gap: 12px;
    padding: 10px 10px 24px;
  }

  #forecast-root {
    gap: 10px;
  }

  .forecast-lead {
    padding: 13px;
    border-radius: 14px;
  }

  .forecast-lead-main {
    gap: 10px;
  }

  .forecast-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .forecast-row {
    gap: 10px;
    min-height: 0;
    padding: 11px;
    border-radius: 12px;
  }

  .forecast-lead-main {
    grid-template-columns: 1fr;
  }

  .forecast-lead-metrics {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .forecast-timeline {
    gap: 6px;
    margin-top: 10px;
  }

  .forecast-timeline-block {
    padding: 7px;
  }

  .forecast-list .forecast-row .row-top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .day {
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    opacity: 0.86;
  }

  .temps {
    gap: 14px;
  }

  .temp-block {
    font-size: 2.55rem;
  }

  .temp-block.low {
    font-size: 1.9rem;
  }

  .forecast-card-icon {
    font-size: 2.35rem;
  }

  .forecast-row .takeaway {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .forecast-signals {
    gap: 5px;
  }

  .forecast-signal {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
}

/* ============================================================
   CURRENT OBS + FEELSCORE LAYOUT RESET
   Last in file so it wins against the older component rules.
   ============================================================ */

.live-row {
  margin-top: 16px;
  position: relative;
}

.metric-scroll-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

#metric-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 42px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 166, 255, 0.46) transparent;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

#metric-chips.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

#metric-chips::-webkit-scrollbar {
  display: block;
  height: 7px;
}

#metric-chips::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

#metric-chips::-webkit-scrollbar-thumb {
  background: rgba(126, 166, 255, 0.42);
  border-radius: 999px;
}

.metric-scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(16, 35, 74, 0.9);
  color: rgba(232,240,255,0.92);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.metric-scroll-btn:hover,
.metric-scroll-btn:focus-visible {
  background: rgba(36, 65, 118, 0.96);
  outline: none;
}

.metric-scroll-left {
  left: 0;
}

.metric-scroll-right {
  right: 0;
}

.obs-scroll-cue {
  display: block;
  align-self: stretch;
  margin-top: -1px;
  padding-right: 8px;
  color: rgba(203, 213, 245, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: right;
  text-transform: uppercase;
}

.metric-chip,
.metric-chip.temp,
.metric-chip.humidity,
.metric-chip.dew,
.metric-chip.wind,
.metric-chip.pressure,
.metric-chip.uv {
  width: auto;
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 16px;
  scroll-snap-align: start;
}

.metric-chip.temp {
  width: 104px;
  font-size: 21px;
}

.metric-chip.wind {
  width: 184px;
  padding-inline: 14px;
  white-space: nowrap;
  line-height: 1.1;
}

.metric-chip.humidity {
  width: 122px;
  padding-inline: 14px;
}

.metric-chip.dew {
  width: 112px;
}

.metric-chip.uv {
  width: 94px;
}

.metric-chip.pressure {
  width: 156px;
  padding-inline: 14px;
}

.metric-chip.wind .value {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: center;
}

.metric-chip .label,
.metric-chip .value,
.metric-chip .unit,
.metric-chip .gust {
  min-width: 0;
}

.metric-chip .gust {
  display: inline;
  width: auto;
  margin: 0 0 0 3px;
  font-size: 0.72em;
  line-height: 1;
}

.metric-chip .metric-icon {
  font-size: 1.12em;
  margin-right: 6px;
}

.metric-chip.temp .metric-icon {
  font-size: 0.95em;
}

.metric-chip .label {
  margin-right: 5px;
}

.metric-chip .unit {
  margin-left: 2px;
}

.metric-chip.humidity .label {
  margin-right: 9px;
}

.metric-chip.dew .label {
  margin-right: 9px;
}

.metric-chip.wind .unit {
  margin-left: 0;
}

@media (max-width: 980px) {
  #metric-chips {
    gap: 9px;
  }
}

@media (max-width: 560px) {
  .live-row {
    gap: 6px;
  }

  #metric-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 20px 5px 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  }

  #metric-chips::-webkit-scrollbar {
    display: none;
  }

  .metric-scroll-btn {
    display: none;
  }

  .obs-scroll-cue {
    display: block;
    align-self: stretch;
    margin-top: -1px;
    padding-right: 8px;
    color: rgba(203, 213, 245, 0.74);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: right;
    text-transform: uppercase;
  }

  .metric-chip,
  .metric-chip.temp,
  .metric-chip.humidity,
  .metric-chip.dew,
  .metric-chip.wind,
  .metric-chip.pressure,
  .metric-chip.uv {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 11px;
    font-size: 15px;
  }

  .metric-chip.temp {
    width: 94px;
    font-size: 19px;
  }

  .metric-chip.humidity {
    width: 110px;
  }

  .metric-chip.dew {
    width: 102px;
  }

  .metric-chip.wind {
    width: 156px;
    grid-column: auto;
  }

  .metric-chip.pressure {
    width: 138px;
  }

  .metric-chip.uv {
    width: 90px;
  }

  .metric-chip .metric-icon {
    font-size: 1.08em;
    margin-right: 5px;
  }

  .metric-chip .label {
    margin-right: 4px;
  }

  .metric-chip.humidity .label,
  .metric-chip.dew .label {
    margin-right: 7px;
  }
}

.feelscore-card.hero {
  min-height: 0 !important;
  padding-bottom: 28px;
}

.fs-bullets {
  max-width: none !important;
}

.fs-footer-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.fs-temp-outlook {
  position: static !important;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto auto;
  width: auto;
  min-width: 298px;
  max-width: 100%;
  margin: 0;
  margin-left: auto;
  gap: 28px;
  padding: 12px 16px 13px;
}

.fs-temp-main,
.fs-temp-low {
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.fs-temp-low {
  text-align: right;
}

.fs-temp-label {
  font-size: 13px;
  letter-spacing: 0.12em;
}

@media (min-width: 560px) {
  .feelscore-card.hero {
    display: block;
  }

  .fs-header,
  .fs-hero-row,
  .fs-headline,
  .fs-subhead {
    grid-column: auto;
  }

  .fs-bullets {
    grid-column: auto;
  }

  .fs-temp-outlook {
    grid-column: auto;
    justify-self: end;
    align-self: end;
    width: auto;
    margin-top: 0;
    margin-right: 0;
  }
}

@media (max-width: 700px) {
  .fs-footer-row {
    grid-template-columns: minmax(120px, 1fr) auto !important;
    gap: 6px !important;
    align-items: end !important;
  }

  .fs-temp-outlook {
    display: flex !important;
    flex-direction: column !important;
    width: 122px !important;
    min-width: 0 !important;
    max-width: 122px !important;
    gap: 4px !important;
    padding: 7px 9px !important;
    border-radius: 12px !important;
    justify-self: end !important;
    align-self: end !important;
    grid-template-columns: none !important;
  }

  .fs-temp-main,
  .fs-temp-low {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 5px !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .fs-temp-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 7.5px !important;
    letter-spacing: 0.035em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .fs-temp-value {
    flex: 0 0 auto !important;
    font-size: 22px !important;
    line-height: 0.92 !important;
  }

  .fs-temp-low-value {
    flex: 0 0 auto !important;
    font-size: 19px !important;
    line-height: 0.92 !important;
    padding-bottom: 0 !important;
  }

  .fs-bullet {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .fs-temp-outlook {
    width: 112px !important;
    max-width: 112px !important;
    padding: 6px 8px !important;
  }

  .fs-temp-label {
    font-size: 7px !important;
    letter-spacing: 0.02em !important;
  }

  .fs-temp-value {
    font-size: 20px !important;
  }

  .fs-temp-low-value {
    font-size: 17px !important;
  }
}

/* ============================================================
   SHARED CONTAINED FOOTER
   Matches the hiking guide footer card.
   ============================================================ */

.site-footer {
  box-sizing: border-box;
  width: min(calc(100% - 18px), 760px);
  max-width: 100%;
  margin: 48px auto 0;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  background: none;
}

.site-footer::before {
  content: none;
}

.footer-inner {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 16px 14px;
  display: grid;
  gap: 14px;
  align-items: start;
  text-align: left;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  color: var(--muted);
}

.footer-logo {
  color: #6ea8ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.footer-tagline,
.footer-meta,
.footer-bottom {
  font-size: 13px;
  line-height: 1.45;
  opacity: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
}

.footer-links a {
  color: #d8e7ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links .footer-support-link {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 999px;
  color: #ffe3a6;
  background: rgba(255, 209, 102, 0.07);
}

.footer-links .footer-support-link:hover,
.footer-links .footer-support-link:focus-visible {
  color: #fff4d6;
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.36);
}

.footer-links .footer-support-link:focus-visible {
  outline: 2px solid rgba(110, 168, 255, 0.62);
  outline-offset: 3px;
}

.footer-disclaimer {
  margin-top: 4px;
  font-size: 13px;
  opacity: 1;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-social {
  display: none;
}

@media (max-width: 520px) {
  .site-footer {
    width: calc(100% - 20px);
    margin-top: 28px;
  }
}
