/* Final UX layer shared by location selection and the rendered forecast. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.weather-home {
  grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
  min-height: 0;
  padding: 38px 0 60px;
}
.weather-intro h1 {
  max-width: 590px;
  margin: .5rem 0 .7rem;
  font-size: clamp(3.2rem, 4.7vw, 4.85rem);
  line-height: .97;
}
.weather-intro > p:not(.weather-error):not(.weather-note) { max-width: 560px; font-size: 1rem; }
.weather-search { max-width: 600px; margin-top: 1.15rem; padding: 18px; box-shadow: 0 18px 40px rgba(40, 48, 54, .09); }
.weather-search-primary { position: relative; }
.weather-search-primary > label, .weather-coordinate-panel legend { color: #273f50; }
.weather-search-hint { margin-bottom: 0; }
.weather-search > .location-button {
  display: flex;
  width: 100%;
  margin-top: .75rem;
  border: 1px solid #d5e0e7;
  background: #edf4f8;
  color: #173c53;
}
.location-button-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.weather-choice-divider { display: flex; align-items: center; gap: 10px; margin: 13px 0 10px; color: #6b7781; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.weather-choice-divider::before, .weather-choice-divider::after { content: ""; height: 1px; flex: 1; background: #dbe3e8; }
.weather-coordinate-panel { min-width: 0; margin: 0; padding: 12px 13px 13px; border: 1px solid #d6e0e7; border-radius: 13px; background: #f8fafb; }
.weather-coordinate-panel legend { padding: 0 6px; font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.weather-coordinate-panel > p { margin: 0 0 8px; color: #65727c; font-size: .72rem; line-height: 1.4; }
.weather-coordinates { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.weather-coordinates input { margin-bottom: 0; background: #fff; }
.weather-status:empty { display: none; }
.weather-search > .forecast-submit { margin-top: .8rem; min-height: 44px; }
.location-results { top: calc(100% + 5px); right: 0; left: 0; }
.weather-map-card {
  position: sticky;
  top: 92px;
  border-color: #cbd7df;
  box-shadow: 0 20px 46px rgba(28, 51, 65, .14);
}
.weather-map-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid #d7e1e8; background: #f7fafc; }
.weather-map-header b, .weather-map-header span { display: block; }
.weather-map-header b { color: #173c53; font-size: .9rem; }
.weather-map-header span { margin-top: 2px; color: #647480; font-size: .7rem; line-height: 1.35; }
.weather-map-header output { flex: none; padding: 6px 9px; border-radius: 9px; background: #e4eef4; color: #1e526f; font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.weather-map { height: clamp(470px, calc(100vh - 220px), 570px); min-height: 470px; }
.weather-map-card > p { color: #5f6870; background: #fff; }

.forecast-location-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 14px; }
.forecast-location-tools .forecast-back { margin: 0; }
.forecast-quick-location { display: flex; align-items: center; gap: 7px; width: min(390px, 100%); }
.forecast-quick-location-field { position: relative; flex: 1 1 auto; min-width: 0; }
.forecast-quick-location input { min-width: 0; width: 100%; margin: 0; padding: .6rem .72rem; border-color: #cbd8e1; background: #fff; }
.forecast-quick-location button { flex: none; min-height: 40px; padding: .65rem .85rem; border-color: #0b527b; background: #0b527b; color: #fff; font-size: .78rem; }
.forecast-location-results { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; left: 0; display: grid; gap: 1px; overflow: hidden; min-width: min(360px, calc(100vw - 40px)); border: 1px solid #d7e0e6; border-radius: 11px; background: #e2e8ec; box-shadow: 0 16px 34px rgba(20, 42, 56, .2); }
.forecast-location-results:empty { display: none; }
.forecast-location-results button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 43px; padding: 9px 11px; border: 0; border-radius: 0; color: #173343; background: #fff; text-align: left; cursor: pointer; }
.forecast-location-results button:hover, .forecast-location-results button:focus-visible { outline: none; color: #173343; background: #edf7fa; transform: none; box-shadow: inset 3px 0 #168a70; }
.forecast-location-results b { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.forecast-location-results span { flex: none; color: #687983; font-size: .66rem; font-weight: 650; }
.forecast-location-results p { margin: 0; padding: 11px; color: #687983; background: #fff; font-size: .72rem; }

.forecast-controls { margin-top: 20px; }
.forecast-hero {
  /* Opaque fallback beneath the decorative gradient. */
  background-color: #0a283d;
}
.forecast-time-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .32rem;
}
.forecast-product, .forecast-time-details { display: inline-flex; align-items: center; }
.forecast-time-details { flex-wrap: wrap; gap: .32rem; }
.forecast-timezone { overflow-wrap: anywhere; }
.forecast-unit-menu { z-index: 12; }
.forecast-unit-menu .forecast-units {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.55fr) minmax(0, .75fr) minmax(0, 1fr);
  gap: 10px;
  top: auto;
  right: 0 !important;
  bottom: calc(100% + 9px);
  left: auto !important;
  width: min(500px, calc(100vw - 72px));
  min-width: 0;
  padding: 14px;
  border-color: #cdd9e2;
  box-shadow: 0 18px 42px rgba(4, 27, 43, .24);
}
.forecast-unit-menu[open] > summary { border-color: #8fc2da; background: #f4fbff; color: #0b527b; }
.forecast-unit-menu .forecast-units label { color: #3d5061; }
.forecast-unit-menu .forecast-units label { min-width: 0; }
.forecast-unit-menu .forecast-units select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-color: #c8d3dc;
}

.hourly-row.hourly-now {
  position: relative;
  z-index: 1;
  background: #fff4dd !important;
  outline: 2px solid #d97706;
  outline-offset: -2px;
}
.hourly-row.hourly-now > * { box-shadow: none !important; }
.hourly-row.hourly-now > :first-child {
  box-sizing: border-box;
}
.hourly-row.hourly-now > :first-child::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 -1px;
  box-sizing: border-box;
  border: 2px solid #d97706;
  border-right: 0;
  pointer-events: none;
}
.hourly-now-badge { background: #7c3f0c; color: #fff !important; text-shadow: none; box-shadow: none; }
.hourly-now-badge[hidden] { display: none !important; }
.hourly-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hourly-heading-icon { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hourly-heading-text { display: block; }
.hourly-table-wrap { overflow: visible; }
.hourly-table { border-collapse: separate; border-spacing: 0; }
.hourly-table thead tr:first-child > :first-child { border-top-left-radius: 13px; }
.hourly-table thead tr:first-child > :last-child { border-top-right-radius: 13px; }
.hourly-table tbody tr:last-child { background: transparent !important; }
.hourly-table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.hourly-table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }
.forecast-tabs::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 6px;
  background: var(--paper, #fffdf8);
  pointer-events: none;
}
.forecast-tabs {
  background: rgba(226, 235, 241, .97);
}
.forecast-tabs button[aria-selected="true"] {
  background: #f7fafc;
}
.hourly-table thead {
  position: sticky;
  top: 135px;
  z-index: 5;
  filter: none;
}
.hourly-table thead th {
  position: static;
  background: #e2ebf1;
}
.hourly-day-gap { height: 8px; }
.hourly-table tbody > .hourly-day-gap > td {
  position: relative;
  z-index: 3;
  height: 8px;
  padding: 0;
  border: 0;
  background: var(--paper, #fffdf8) !important;
  box-shadow: none;
}
.hourly-table tbody > .hourly-day-gap > td::before {
  content: "";
  position: absolute;
  inset: 0 -2px;
  background: var(--paper, #fffdf8);
  pointer-events: none;
}
.hourly-row.hourly-day-start > * { border-top: 1px solid var(--border-color, #d9e1e8); }
.hourly-row.hourly-day-start .hourly-day { color: #315a72; font-weight: 800; }

@media (min-width: 641px) and (max-width: 980px) {
  .hourly-table-wrap { overflow-x: auto; }
}

@media (min-width: 641px) and (max-width: 768px) {
  .hourly-table thead { top: 123px; }
}

.chart-container { height: auto; min-height: 310px; padding-bottom: 12px; }
.chart-container .uplot { margin-bottom: 0; }
.chart-card { padding-bottom: 24px; }
.chart-help-mobile { display: none; }
.chart-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #d5e0e8;
  border-radius: 14px;
  background: #f7fafc;
}
.chart-toolbar-label { color: #40566a; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.chart-range-control { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 3px; padding: 3px; border-radius: 10px; background: #e6edf2; }
.chart-range-control button {
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #40566a;
  font-size: .74rem;
  box-shadow: none;
  transform: none;
}
.chart-range-control button[aria-pressed="true"] { background: #fff; color: #075b88; box-shadow: 0 2px 7px rgba(15,39,58,.13); }
.chart-range-summary { margin: 0 0 0 auto; color: #526476; font-size: .72rem; }
.later-outlook {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ccd9e2;
}
.later-outlook-heading {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(280px, 1.35fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}
.later-outlook-kicker { margin: 0 0 3px; color: #8a4b14; font-size: .64rem; font-weight: 850; letter-spacing: .09em; }
.later-outlook-heading h3 { margin: 0; color: #142230; font-size: 1.2rem; }
.later-outlook-heading > p { max-width: 620px; margin: 0; color: #526476; font-size: .78rem; line-height: 1.5; }
.daily-card-later { background: #fbfcfd; border-color: #cfdbe4; }
.daily-weather-symbol svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.daily-phenomenon-clear-day { color: #d97706; background: linear-gradient(145deg, #fff9c7, #fde68a); }
.daily-phenomenon-clear-night { color: #5368b7; background: linear-gradient(145deg, #eef2ff, #c7d2fe); }
.daily-phenomenon-partly-day, .daily-phenomenon-partly-night { color: #b66a08; background: linear-gradient(145deg, #fff7cf, #dbeafe); }
.daily-phenomenon-cloudy { color: #536b7b; background: linear-gradient(145deg, #f1f5f9, #d7e2ea); }
.daily-phenomenon-rain-light, .daily-phenomenon-rain-moderate, .daily-phenomenon-rain-heavy, .daily-phenomenon-drizzle { color: #0878b9; background: linear-gradient(145deg, #e0f2fe, #bae6fd); }
.daily-phenomenon-snow-light, .daily-phenomenon-snow-moderate, .daily-phenomenon-snow-heavy { color: #2563a8; background: linear-gradient(145deg, #f0f9ff, #bae6fd); }
.daily-phenomenon-mixed, .daily-phenomenon-freezing-rain { color: #5b4aa2; background: linear-gradient(145deg, #e0f2fe, #ede9fe); }
.daily-phenomenon-fog, .daily-phenomenon-dense-fog, .daily-phenomenon-mist { color: #53677a; background: linear-gradient(145deg, #f1f5f9, #dce6ee); }
.daily-phenomenon-strong-wind { color: #087f5b; background: linear-gradient(145deg, #d1fae5, #a7f3d0); }
.daily-phenomenon-thunderstorm, .daily-phenomenon-thunderstorm-hail { color: #7c3aed; background: linear-gradient(145deg, #fef3c7, #ddd6fe); }
.daily-phenomenon-heat { color: #b42318; background: linear-gradient(145deg, #fff1c7, #fecaca); }
.daily-phenomenon-cold { color: #1d4ed8; background: linear-gradient(145deg, #e0f2fe, #bfdbfe); }
.daily-phenomenon-extreme-uv { color: #7e22ce; background: linear-gradient(145deg, #fef3c7, #e9d5ff); }

@media (max-width: 980px) {
  .weather-home { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 48px; }
  .weather-intro h1 { max-width: 720px; font-size: clamp(3.25rem, 8vw, 5rem); }
  .weather-intro > p:not(.weather-error):not(.weather-note), .weather-search, .weather-note { max-width: 720px; }
  .weather-map-card { position: static; }
  .weather-map { height: 500px; min-height: 0; }
}
@media (max-width: 768px) {
  .forecast-unit-menu .forecast-units {
    display: grid;
    width: min(380px, calc(100vw - 92px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .forecast-unit-menu .forecast-units select { width: 100%; min-width: 0; }
  .chart-container { min-height: 302px; }
}
@media (max-width: 640px) {
  /* main already owns the mobile page gutter; avoid applying it twice. */
  .forecast-shell { width: 100%; }
  .weather-home { width: 100%; max-width: 100%; padding: 26px 0 36px; gap: 20px; }
  .weather-intro h1 { font-size: clamp(2.65rem, 12.5vw, 3.45rem); }
  .weather-intro > p:not(.weather-error):not(.weather-note) { font-size: .94rem; line-height: 1.52; }
  .weather-search { margin-top: 1rem; padding: 15px; }
  .weather-coordinate-panel { padding: 11px; }
  .weather-coordinates { gap: 7px; }
  .weather-map-header { align-items: flex-start; padding: 12px; }
  .weather-map-header output { max-width: 47%; white-space: normal; text-align: right; }
  .weather-map { height: 390px; min-height: 0; }
  .forecast-location-tools { align-items: stretch; flex-direction: column; gap: 9px; margin-top: 14px; }
  .forecast-quick-location { width: 100%; }
  .forecast-quick-location input { font-size: .86rem; }

  .hero-location .forecast-time-context {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: fit-content;
    max-width: 100%;
    margin-bottom: 10px;
    gap: 0 9px;
    padding: 6px 9px 6px 6px;
    border: 1px solid #cad9e3;
    border-radius: 10px;
    background: rgba(247, 252, 255, .96);
    color: #29465c;
    opacity: 1;
    line-height: 1.2;
    letter-spacing: .055em;
  }
  .forecast-product {
    align-self: stretch;
    padding: 4px 7px;
    border-radius: 7px;
    background: #e5f3fa;
    color: #075985;
    white-space: nowrap;
  }
  .forecast-time-details {
    display: grid;
    align-content: center;
    gap: 1px;
    min-width: 0;
  }
  .forecast-time-separator { display: none; }
  .forecast-timezone {
    color: #587083;
    font-size: .62rem;
    letter-spacing: .035em;
    text-transform: none;
  }

  .chart-help-desktop { display: none; }
  .chart-help-mobile { display: block; max-width: 32rem; line-height: 1.45; }
  .chart-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 9px;
    margin-bottom: 12px;
    padding: 9px;
  }
  .chart-range-control { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .chart-range-control button { min-width: 0; min-height: 36px; padding: 6px 4px; font-size: clamp(.62rem, 2.55vw, .72rem); }
  .chart-range-summary { grid-column: 1 / -1; margin: 0; padding-left: 2px; }
  .charts-grid { gap: 12px; }
  .chart-card {
    width: 100%;
    padding: 14px 9px 12px;
    border-radius: 14px;
  }
  .chart-card h3 { margin: 0 4px 9px; font-size: .92rem; }
  .chart-container { min-height: 292px; padding-bottom: 6px; }
  .chart-container .uplot { width: 100% !important; max-width: 100%; }
  .chart-container .u-axis { font-size: 10px !important; }
  .chart-container .u-legend {
    width: 100%;
    margin-top: 4px;
    color: #294255;
    font-size: .66rem;
    line-height: 1.25;
  }
  .chart-container .u-legend tbody { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 8px; }
  .chart-container .u-legend .u-series { margin: 0; }
  .chart-container .u-legend .u-series:first-child { display: none; }
  .chart-container .u-series > * { padding: 2px; }
  .chart-container .u-legend .u-marker { width: .75rem; height: .75rem; }

  /* Keep daily forecasts compact enough to compare without losing hierarchy. */
  .daily-cards {
    justify-items: center;
    gap: 12px;
  }
  .daily-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    column-gap: 12px;
    width: min(100%, 302px);
    padding: 14px;
  }
  .daily-card-header {
    grid-column: 1 / -1;
    align-items: center;
    margin-bottom: 9px;
  }
  .daily-confidence {
    width: auto;
    height: auto;
    min-height: 22px;
    padding: 3px 7px;
    font-size: .54rem;
    letter-spacing: .025em;
    white-space: nowrap;
  }
  .daily-condition {
    align-self: center;
    min-width: 0;
    margin: 0;
  }
  .daily-condition-text {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .daily-temps {
    align-self: center;
    width: 126px;
    margin: 0;
  }
  .temp-range {
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 5px;
    font-size: 1.08rem;
  }
  .temp-reading { justify-items: end; }
  .daily-metrics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #dce5eb;
  }
  .daily-metric {
    align-items: center;
    min-width: 0;
    text-align: center;
  }
  .daily-metric .metric-sub { line-height: 1.25; }
  .later-outlook { margin-top: 24px; padding-top: 19px; }
  .later-outlook-heading { grid-template-columns: 1fr; gap: 7px; margin: 0 auto 13px; width: min(100%, 302px); }
  .later-outlook-heading > p { font-size: .72rem; line-height: 1.45; }

  .hourly-table-wrap {
    overflow: visible;
    border-color: #c5d3de;
    border-radius: 14px;
  }
  .hourly-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .hourly-table thead, .hourly-table tbody { display: block; width: 100%; }
  /* Create the costly sticky layer only when the table reaches the viewport. */
  .hourly-table thead { position: static; top: 114px; z-index: auto; }
  .hourly-table-wrap.is-header-sticky .hourly-table thead {
    position: sticky;
    z-index: 5;
  }
  .hourly-table tr {
    display: grid;
    grid-template-columns: minmax(70px, 1.25fr) repeat(5, minmax(0, 1fr));
    width: 100%;
  }
  .hourly-table tbody .hourly-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 52px;
  }
  .hourly-table tbody tr[hidden] { display: none !important; }
  .hourly-table .hourly-progress-sentinel {
    display: grid;
    grid-template-columns: 1fr;
    content-visibility: visible;
  }
  .hourly-table .hourly-progress-sentinel > td {
    display: grid;
    grid-column: 1 / -1;
    place-items: center;
    width: 100%;
    padding: 10px;
    border: 0;
    text-align: center;
  }
  .hourly-progress-sentinel button {
    min-height: 36px;
    padding: 8px 13px;
    border-color: #bfd0dc;
    background: #edf5f9;
    color: #244b63;
    font-size: .7rem;
    box-shadow: none;
    transform: none;
  }
  .hourly-table th, .hourly-table td {
    display: grid;
    place-items: center;
    place-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 8px 2px;
    gap: 1px;
    border: 0;
    border-right: 1px solid #d0dce5;
    border-bottom: 1px solid #d0dce5;
    text-align: center;
    font-size: clamp(.61rem, 2.35vw, .74rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    z-index: auto;
  }
  .hourly-row.hourly-now { z-index: auto; }
  .hourly-row.hourly-now > :first-child::after { z-index: auto; }
  .hourly-table tr > :first-child {
    place-items: center;
    place-content: center;
    padding: 8px 5px;
    border-right-color: #d0dce5;
    text-align: center;
  }
  /* Mobile: time + phenomenon + temperature + wind + humidity + pressure. */
  .hourly-table tr > :nth-child(4),
  .hourly-table tr > :nth-child(5),
  .hourly-table tr > :nth-child(6),
  .hourly-table tr > :nth-child(8),
  .hourly-table tr > :nth-child(11),
  .hourly-table tr > :nth-child(12),
  .hourly-table tr > :nth-child(13) { display: none; }
  .hourly-table tr > :nth-child(1) { grid-column: 1; }
  .hourly-table tr > :nth-child(2) { grid-column: 2; }
  .hourly-table tr > :nth-child(3) { grid-column: 3; }
  .hourly-table tr > :nth-child(7) { grid-column: 4; }
  .hourly-table tr > :nth-child(9) { grid-column: 5; }
  .hourly-table tr > :nth-child(10) { grid-column: 6; border-right: 0; }
  .hourly-table thead tr:first-child > :last-child { border-top-right-radius: 0; }
  .hourly-table thead tr:first-child > :nth-child(10) { border-top-right-radius: 13px; }
  .hourly-table tbody tr:last-child > :last-child { border-bottom-right-radius: 0; }
  .hourly-table tbody tr:last-child > :nth-child(10) { border-bottom-right-radius: 13px; }
  .hourly-table thead th {
    position: static;
    row-gap: 5px;
    color: #304b60;
  }
  .hourly-table thead tr > :first-child {
    position: static;
    width: auto;
    min-width: 0;
    padding: 8px 2px;
    place-items: center;
    border-right-color: #d0dce5;
  }
  .hourly-table tbody tr > :first-child { position: static; width: auto; }
  .hourly-row.hourly-now > :first-child { position: relative; }
  .hourly-table thead th { border-bottom-color: #b9cad6; }
  .hourly-table tbody tr:last-child > * { border-bottom: 0; }
  .hourly-heading-text { display: none; }
  .hourly-heading-icon {
    display: block;
    width: 29px;
    height: 29px;
    padding: 5px;
    border-radius: 10px;
    stroke-width: 2;
    filter: none;
  }
  .hourly-table thead tr > :nth-child(1) .hourly-heading-icon { color: #6d28d9; background: linear-gradient(145deg, #f3e8ff, #ddd6fe); }
  .hourly-table thead tr > :nth-child(2) .hourly-heading-icon { color: #0369a1; background: linear-gradient(145deg, #dbeafe, #bae6fd); }
  .hourly-table thead tr > :nth-child(3) .hourly-heading-icon { color: #d9480f; background: linear-gradient(145deg, #ffedd5, #fed7aa); }
  .hourly-table thead tr > :nth-child(7) .hourly-heading-icon { color: #087f5b; background: linear-gradient(145deg, #d1fae5, #a7f3d0); }
  .hourly-table thead tr > :nth-child(9) .hourly-heading-icon { color: #2563eb; background: linear-gradient(145deg, #dbeafe, #bfdbfe); }
  .hourly-table thead tr > :nth-child(10) .hourly-heading-icon { color: #7c3aed; background: linear-gradient(145deg, #ede9fe, #ddd6fe); }
  .hourly-table thead small {
    display: block;
    margin: 0;
    color: #40566a;
    font-size: .52rem;
    line-height: 1;
    text-transform: none;
  }
  .hourly-time { min-width: 0; white-space: normal; }
  .hourly-day { font-size: .59rem; line-height: 1.2; }
  .hourly-clock { justify-content: center; width: 100%; font-size: .86rem; text-align: center; }
  .hourly-now-badge {
    padding: 2px 4px;
    color: #fff !important;
    font-size: .48rem;
    text-shadow: 0 1px 1px rgba(60, 25, 3, .28);
  }
  .hourly-table td small { display: none; }
  .hourly-table tbody td {
    place-items: center;
    place-content: center;
    text-align: center;
    font-weight: 700;
    color: #172b3d;
  }
  .hourly-table tbody td > [data-weather-value] {
    display: grid;
    place-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .hourly-table tbody td > [data-weather-value]::after {
    display: block;
    width: 100%;
    text-align: center;
  }
  .hourly-table .wind-dir, .hourly-table .wind-dir-label { display: none; }
  .hourly-table .hourly-day-gap {
    display: block;
    height: 7px;
  }
  .hourly-table .hourly-day-gap > td {
    display: block;
    position: static;
    z-index: auto;
    width: 100%;
    min-height: 7px;
    height: 7px;
    padding: 0;
    border: 0;
  }
  .hourly-table tbody > .hourly-day-gap > td::before { display: none; }
  .hourly-row.hourly-day-start > * { border-top-color: #d0dce5; }
}

.phenomenon-cell { min-width: 132px; }
.phenomenon-cell .phenomenon-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 5px;
  border-radius: 11px;
  color: #2f6f95;
  background: linear-gradient(145deg, #e0f2fe, #bfdbfe);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 3px 8px rgba(33,72,101,.14);
}
.phenomenon-badge svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phenomenon-label { display: block; max-width: 126px; margin: auto; color: #263d50; font-size: .72rem; font-weight: 780; line-height: 1.2; white-space: normal; }
.phenomenon-label-mobile { display: none; }
.phenomenon-none .phenomenon-badge { color: #287a62; background: linear-gradient(145deg, #ecfccb, #d1fae5); }
.phenomenon-clear-day .phenomenon-badge { color: #d97706; background: linear-gradient(145deg, #fff9c7, #fde68a); }
.phenomenon-clear-night .phenomenon-badge { color: #5368b7; background: linear-gradient(145deg, #eef2ff, #c7d2fe); }
.phenomenon-partly-day .phenomenon-badge { color: #b66a08; background: linear-gradient(145deg, #fff7cf, #dbeafe); }
.phenomenon-partly-night .phenomenon-badge { color: #52649d; background: linear-gradient(145deg, #eef2ff, #dbeafe); }
.phenomenon-cloudy .phenomenon-badge { color: #536b7b; background: linear-gradient(145deg, #f1f5f9, #d7e2ea); }
.phenomenon-heat .phenomenon-badge { color: #b42318; background: linear-gradient(145deg, #fff1c7, #fecaca); box-shadow: inset 0 0 0 2px #f97316, 0 3px 9px rgba(194,65,12,.2); }
.phenomenon-cold .phenomenon-badge { color: #1d4ed8; background: linear-gradient(145deg, #e0f2fe, #bfdbfe); box-shadow: inset 0 0 0 2px #60a5fa, 0 3px 9px rgba(29,78,216,.18); }
.phenomenon-extreme-uv .phenomenon-badge { color: #7e22ce; background: linear-gradient(145deg, #fef3c7, #e9d5ff); box-shadow: inset 0 0 0 2px #a855f7, 0 3px 9px rgba(126,34,206,.2); }
.phenomenon-rain-light .phenomenon-badge, .phenomenon-drizzle .phenomenon-badge { color: #2787b7; background: linear-gradient(145deg, #effaff, #d7f0fb); }
.phenomenon-rain-moderate .phenomenon-badge { color: #0878b9; background: linear-gradient(145deg, #e0f2fe, #bae6fd); }
.phenomenon-rain-heavy .phenomenon-badge { color: #075985; background: linear-gradient(145deg, #bae6fd, #7dd3fc); }
.phenomenon-snow-light .phenomenon-badge, .phenomenon-snow-moderate .phenomenon-badge, .phenomenon-snow-heavy .phenomenon-badge { color: #2563a8; background: linear-gradient(145deg, #f0f9ff, #bae6fd); }
.phenomenon-snow-light .phenomenon-badge { color: #4b83ad; background: linear-gradient(145deg, #f8fcff, #e0f2fe); }
.phenomenon-snow-heavy .phenomenon-badge { color: #1e40af; background: linear-gradient(145deg, #dbeafe, #a5d8ff); }
.phenomenon-mixed .phenomenon-badge { color: #6d5bab; background: linear-gradient(145deg, #e0f2fe, #ede9fe); }
.phenomenon-fog .phenomenon-badge, .phenomenon-dense-fog .phenomenon-badge, .phenomenon-mist .phenomenon-badge { color: #53677a; background: linear-gradient(145deg, #f1f5f9, #dce6ee); }
.phenomenon-strong-wind .phenomenon-badge { color: #087f5b; background: linear-gradient(145deg, #d1fae5, #a7f3d0); }
.phenomenon-thunderstorm .phenomenon-badge, .phenomenon-thunderstorm-hail .phenomenon-badge { color: #7c3aed; background: linear-gradient(145deg, #fef3c7, #ddd6fe); }
.phenomenon-freezing-rain .phenomenon-badge { color: #4338ca; background: linear-gradient(145deg, #dbeafe, #ddd6fe); }
.phenomenon-rain-heavy .phenomenon-badge, .phenomenon-snow-heavy .phenomenon-badge, .phenomenon-dense-fog .phenomenon-badge { box-shadow: inset 0 0 0 2px #f97316, 0 3px 9px rgba(194,65,12,.18); }
.hourly-table-wrap,
.hourly-table-wrap.is-scrolled,
.hourly-table .phenomenon-badge { box-shadow: none !important; }
.forecast-methodology-link { color: #075b88; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.hourly-table .precipitation-interval {
  display: block;
  margin: 3px 0 0;
  color: #4f7188;
  font-size: .62rem;
  font-weight: 720;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .phenomenon-cell { min-width: 0; }
  .phenomenon-cell .phenomenon-badge { width: 28px; height: 28px; margin-bottom: 3px; border-radius: 9px; }
  .phenomenon-badge svg { width: 21px; height: 21px; }
  .phenomenon-label { max-width: 58px; font-size: clamp(.48rem, 1.8vw, .58rem); line-height: 1.08; }
  .phenomenon-label-full { display: none; }
  .phenomenon-label-mobile { display: block; }
}

.phenomena-methodology { width: min(1040px, calc(100% - 36px)); margin: 0 auto; padding: 26px 0 80px; color: #223343; }
.methodology-hero { padding: clamp(28px, 6vw, 64px); border-radius: 24px; color: #fff; background: linear-gradient(135deg, #063c5a, #0b6d93 58%, #16866f); box-shadow: 0 22px 46px rgba(8,55,81,.2); }
.methodology-hero h1 { max-width: 780px; margin: 8px 0 16px; color: #fff; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.055em; }
.methodology-hero > p:last-child { max-width: 760px; margin: 0; color: #d9f3ff; font-size: clamp(.95rem, 2vw, 1.16rem); line-height: 1.65; }
.methodology-section { margin-top: 22px; padding: clamp(22px, 4vw, 38px); border: 1px solid #d5e0e8; border-radius: 20px; background: #fff; box-shadow: 0 9px 24px rgba(27,56,77,.06); }
.methodology-section h2 { margin: 0 0 13px; color: #123b54; font-size: clamp(1.25rem, 2.7vw, 1.8rem); letter-spacing: -.025em; }
.methodology-section p { color: #435b6d; line-height: 1.7; }
.methodology-inputs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.methodology-inputs span { padding: 7px 11px; border-radius: 999px; color: #075b78; background: #e6f5fb; font-size: .78rem; font-weight: 780; }
.methodology-table-wrap { overflow-x: auto; }
.methodology-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.methodology-table th, .methodology-table td { padding: 12px 14px; border: 1px solid #d8e3ea; text-align: center; }
.methodology-table th { color: #163f56; background: #edf6fa; }
.methodology-table tbody th { text-align: left; }
.methodology-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(26px, 5vw, 52px); }
.methodology-formula { padding: 14px 17px; border-left: 4px solid #0c82ac; border-radius: 0 12px 12px 0; background: #edf8fc; color: #123b54 !important; font-weight: 760; }
.methodology-limitations { border-color: #f0c78f; background: #fffaf2; }
.methodology-sources ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.methodology-sources a { color: #075b88; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .phenomena-methodology { width: min(100% - 24px, 1040px); padding-top: 14px; }
  .methodology-hero { border-radius: 18px; }
  .methodology-grid { grid-template-columns: 1fr; }
  .methodology-section { border-radius: 16px; }
  .methodology-table th, .methodology-table td { padding: 9px 7px; font-size: .72rem; }
}
@media (max-width: 420px) {
  .forecast-unit-menu .forecast-units { width: calc(100vw - 92px); gap: 8px; padding: 12px; }
  .forecast-unit-menu .forecast-units label { font-size: .62rem; }
  .forecast-unit-menu .forecast-units select { padding: .42rem .34rem; font-size: .72rem; }
}
