/* 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: center;
  min-height: 0;
  padding: 19px 0 60px;
}
.weather-intro h1 {
  max-width: 590px;
  margin: .25rem 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: 48px;
  border: 1px solid #1a482c;
  border-bottom-color: #0b2d1a;
  border-radius: 12px;
  background: repeating-linear-gradient(103deg, rgba(111, 67, 31, .14) 0 2px, transparent 2px 25px), linear-gradient(145deg, #2c7a4d 0%, #1b623c 52%, #12462d 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .26), inset 0 -2px rgba(7, 42, 25, .52), 0 7px 13px rgba(19, 79, 45, .18);
  color: #fff8e7;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-shadow: 0 1px 0 #10321f, 0 -1px rgba(255, 255, 255, .12);
}
.weather-search > .forecast-submit:hover,
.weather-search > .forecast-submit:focus-visible {
  border-color: #123d25;
  background: repeating-linear-gradient(103deg, rgba(124, 76, 35, .15) 0 2px, transparent 2px 25px), linear-gradient(145deg, #36885a 0%, #216d45 52%, #155033 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), inset 0 -2px rgba(7, 42, 25, .52), 0 9px 16px rgba(19, 79, 45, .22);
  color: #fff8e7;
}
.weather-search > .forecast-submit:focus-visible { outline: 3px solid rgba(45, 130, 79, .32); outline-offset: 3px; }
.location-input { position: relative; }
.location-results {
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  border: 1px solid #101519;
  box-shadow: 0 16px 30px rgba(52, 43, 29, .14);
}
.weather-map-card {
  position: sticky;
  top: 92px;
  scroll-margin-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-shell { padding-top: 20px; }
.forecast-location-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 9px 0 14px; }
.forecast-location-tools .forecast-back { margin: 0; }
.forecast-recent-places { flex: 1 1 0; min-width: 0; }
.forecast-recent-places-list { display: flex; justify-content: center; gap: 8px; min-width: 0; }
.forecast-recent-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 164px;
  min-width: 0;
  max-width: 164px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cfae75;
  border-radius: 999px;
  background: radial-gradient(circle at 24% 8%, rgba(255, 255, 255, .94), transparent 43%), linear-gradient(145deg, #fff8eb 0%, #f2dfbd 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .92), inset 0 -1px rgba(157, 104, 40, .13), 0 4px 9px rgba(94, 61, 20, .12);
  color: #4e3820;
  font: 750 .78rem/1 inherit;
  cursor: pointer;
}
.forecast-recent-place:hover, .forecast-recent-place:focus-visible {
  outline: none;
  border-color: #a97935;
  background: radial-gradient(circle at 24% 8%, #fff 0%, transparent 43%), linear-gradient(145deg, #fff9ed 0%, #eacb96 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), inset 0 -1px rgba(139, 82, 25, .17), 0 5px 12px rgba(94, 61, 20, .17);
  transform: translateY(-1px);
}
.forecast-recent-icon { flex: none; color: #9b5d2d; font-size: 1rem; line-height: 1; }
.forecast-recent-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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: 1px solid #1a482c;
  border-bottom-color: #0b2d1a;
  border-radius: 10px;
  background: repeating-linear-gradient(103deg, rgba(111, 67, 31, .14) 0 2px, transparent 2px 25px), linear-gradient(145deg, #2c7a4d 0%, #1b623c 52%, #12462d 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .26), inset 0 -2px rgba(7, 42, 25, .52), 0 4px 9px rgba(19, 79, 45, .17);
  color: #fff8e7;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-shadow: 0 1px 0 #10321f, 0 -1px rgba(255, 255, 255, .12);
}
.forecast-quick-location button:hover,
.forecast-quick-location button:focus-visible {
  outline: none;
  border-color: #123d25;
  background: repeating-linear-gradient(103deg, rgba(124, 76, 35, .15) 0 2px, transparent 2px 25px), linear-gradient(145deg, #36885a 0%, #216d45 52%, #155033 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), inset 0 -2px rgba(7, 42, 25, .52), 0 6px 11px rgba(19, 79, 45, .21);
  color: #fff8e7;
}
.forecast-quick-location button:focus-visible { outline: 3px solid rgba(45, 130, 79, .32); outline-offset: 2px; }
.forecast-location-results { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; left: 0; display: grid; gap: 1px; overflow: hidden; min-width: 0; border: 1px solid #101519; border-radius: 11px; background: #ece7df; box-shadow: 0 16px 30px rgba(52, 43, 29, .14); }
.forecast-location-results:empty { display: none; }
.location-results button,
.forecast-location-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 0;
  padding: .76rem .92rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 800 .82rem/1 inherit;
  letter-spacing: .015em;
  text-align: left;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
.location-results button:hover,
.location-results button:focus-visible,
.forecast-location-results button:hover,
.forecast-location-results button:focus-visible { outline: none; color: var(--ink); background: #fff2da; transform: none; box-shadow: none; }
.forecast-location-results b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-results span,
.forecast-location-results span { flex: none; color: var(--muted); font-weight: 600; }
.location-results p,
.forecast-location-results p { margin: 0; padding: .72rem .86rem; color: var(--muted); background: #fff; font-size: .8rem; }

.forecast-controls { margin-top: 20px; }
.forecast-hero svg.metric-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.forecast-hero .metric-icon-wind { color: #a5f3fc; }
.forecast-hero .metric-icon-pressure { color: #fde68a; }
.forecast-hero .metric-card {
  justify-content: center;
  text-align: center;
}
.forecast-hero .metric-card-humidity .metric-value,
.forecast-hero .metric-card-wind .metric-value,
.forecast-hero .metric-card-pressure .metric-value {
  font-size: 1.14rem;
  line-height: 1.15;
}
@media (min-width: 769px) {
  .location-results button,
  .forecast-location-results button {
    font-size: .9rem;
    letter-spacing: .035em;
  }
  .forecast-hero svg.metric-icon-humidity { width: 44px; height: 44px; }
  .forecast-hero svg.metric-icon-wind { width: 36px; height: 36px; }
  .forecast-hero svg.metric-icon-pressure { width: 48px; height: 48px; }
  .forecast-hero .astro-icon { font-size: 2rem; }
  .forecast-hero .hero-astronomy { align-items: stretch; }
  .forecast-hero .astro-item {
    display: grid;
    flex: 0 0 94px;
    width: 94px;
    grid-template-rows: 2rem 1rem 1.25rem;
    align-content: start;
    justify-items: center;
    row-gap: 4px;
    text-align: center;
  }
  .forecast-hero .astro-icon {
    display: grid;
    align-items: center;
    height: 2rem;
    line-height: 1;
  }
}
.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);
  transform: translateX(24px);
  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: #f1f3f5 !important;
  outline: 0;
}
/* One continuous frame: cell borders must not be painted on separate sticky layers. */
.hourly-row.hourly-now::after {
  content: "";
  position: absolute;
  /* Keep the stroke inside the row, clear of fractional-pixel sticky header edges. */
  inset: 1px 0;
  z-index: 4;
  box-sizing: border-box;
  border: 2px solid #000;
  pointer-events: none;
}
.hourly-table tbody tr.hourly-now > * {
  background: #f1f3f5 !important;
  color: #000;
  box-shadow: none !important;
  border-top: 2px solid transparent !important;
  border-bottom: 2px solid transparent !important;
}
.hourly-row.hourly-now > :first-child::after {
  content: none;
  display: none;
}
.hourly-now .hourly-day:not(.hourly-weekend),
.hourly-now .hourly-clock time,
.hourly-now [data-weather-value],
.hourly-now [data-weather-value]::after { color: #000; }
.hourly-now-badge { background: #000; 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 thead .hourly-time .hourly-heading-text {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.hourly-table-wrap { overflow: visible; }
.hourly-table { border-collapse: separate; border-spacing: 0; }
/* Row headings are data cells, not the sticky column headings in thead. */
.hourly-table tbody .hourly-time {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
}
.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 > :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,
.hourly-table thead th:first-child {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  background: #e2ebf1;
  color: #1f4257;
}
.hourly-table thead th small { color: #52697a; }
.hourly-weekend { color: #b44a3c !important; }
#hourly-forecast > .forecast-section-heading {
  box-sizing: border-box;
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding-left: 14px;
}
.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; }
.hourly-row.hourly-day-start .hourly-day.hourly-weekend { color: #b44a3c !important; }

@media (min-width: 641px) {
  .hourly-table thead { display: table-header-group; width: auto; }
  .hourly-table tbody { display: table-row-group; width: auto; }
  .hourly-table tr { display: table-row; width: auto; }
  .hourly-table th,
  .hourly-table td { display: table-cell; }
  .hourly-table-wrap {
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }
  .hourly-table {
    /* One shared column grid keeps desktop headers and values aligned. */
    width: 840px;
    min-width: 840px;
    table-layout: fixed;
  }
  .hourly-table th,
  .hourly-table td { padding-inline: 12px; }
  .hourly-table thead th { width: auto; text-align: center; }
  .hourly-table .hourly-column-time { width: 120px; }
  .hourly-table .hourly-column-phenomenon { width: 125px; }
  .hourly-table .hourly-column-temperature { width: 82px; }
  .hourly-table .hourly-column-pressure { width: 105px; }
  .hourly-table .hourly-column-humidity { width: 88px; }
  .hourly-table .hourly-column-clouds { width: 92px; }
  .hourly-table .hourly-column-wind { width: 130px; }
  .hourly-table .hourly-column-gust { width: 98px; }
  .hourly-table tbody td { font-size: .92rem; }
}
@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(2, 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: 18px 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: 9px 0 30px; gap: 16px; }
  .weather-intro h1 { margin: .2rem 0 .55rem; font-size: clamp(2.4rem, 11.5vw, 3rem); }
  .weather-intro-description { display: none; }
  .weather-intro > p:not(.weather-error):not(.weather-note) { font-size: .94rem; line-height: 1.52; }
  .weather-search { margin-top: .7rem; padding: 12px; }
  .weather-search > .location-button { margin-top: .55rem; }
  .weather-choice-divider { margin: 9px 0 7px; }
  .weather-coordinate-panel { padding: 9px 10px 10px; }
  .weather-coordinate-panel > p { margin-bottom: 6px; }
  .weather-coordinates { gap: 7px; }
  .weather-search > .forecast-submit { margin-top: .65rem; }
  .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: 7px; }
  .forecast-recent-places { display: none !important; }
  .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(2, 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 + pressure + humidity + wind. */
  .hourly-table tr > :nth-child(6),
  .hourly-table tr > :nth-child(8) { 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(4) { grid-column: 4; }
  .hourly-table tr > :nth-child(5) { grid-column: 5; }
  .hourly-table tr > :nth-child(7) { 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(7) { 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(7) { 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-table .hourly-heading-icon {
    display: block;
    width: clamp(28px, 8vw, 32px);
    height: clamp(28px, 8vw, 32px);
    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(4) .hourly-heading-icon { color: #7c3aed; background: linear-gradient(145deg, #ede9fe, #ddd6fe); }
  .hourly-table thead tr > :nth-child(5) .hourly-heading-icon { color: #2563eb; background: linear-gradient(145deg, #dbeafe, #bfdbfe); }
  .hourly-table thead tr > :nth-child(7) .hourly-heading-icon { color: #087f5b; background: linear-gradient(145deg, #d1fae5, #a7f3d0); }
  .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-label { display: none; }
  .hourly-table .hourly-day-gap {
    display: block;
    height: 14px;
    background:
      linear-gradient(to bottom, transparent 0 calc(50% - 1px), rgba(107, 148, 174, .82) calc(50% - 1px) 50%, rgba(255, 255, 255, .72) 50% calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(90deg, #d4e3ed 0%, #edf4f8 18%, #c1d6e3 50%, #edf4f8 82%, #d4e3ed 100%);
  }
  .hourly-table tbody > .hourly-day-gap > td {
    display: block;
    position: static;
    z-index: auto;
    width: 100%;
    min-height: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent !important;
  }
  .hourly-table tbody > .hourly-day-gap > td::before { display: none; }
  .hourly-row.hourly-day-start > * { border-top-color: #90adbf; }
}

.phenomenon-cell { min-width: 132px; }
.phenomenon-cell .phenomenon-badge {
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 0 auto 4px;
  border: 0;
  border-radius: 0;
  color: #537082;
  background: transparent;
  box-shadow: none;
}
.phenomenon-badge svg,
.daily-weather-symbol svg,
.condition-icon-large svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phenomenon-badge svg { width: 40px; height: 40px; }
.daily-weather-symbol {
  display: inline-grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 0;
  background: transparent !important;
}
.daily-weather-symbol svg { width: 36px; height: 36px; }
.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, .daily-phenomenon-none { color: #397764; }
.phenomenon-clear-day .phenomenon-badge, .daily-phenomenon-clear-day { color: #d98a10; }
.phenomenon-clear-night .phenomenon-badge, .daily-phenomenon-clear-night { color: #5267af; }
.phenomenon-partly-day .phenomenon-badge, .daily-phenomenon-partly-day { color: #b56d08; }
.phenomenon-partly-night .phenomenon-badge, .daily-phenomenon-partly-night { color: #5267af; }
.phenomenon-cloudy .phenomenon-badge, .daily-phenomenon-cloudy { color: #537082; }
.phenomenon-heat .phenomenon-badge, .daily-phenomenon-heat { color: #cc5636; }
.phenomenon-cold .phenomenon-badge, .daily-phenomenon-cold { color: #3479b9; }
.phenomenon-extreme-uv .phenomenon-badge, .daily-phenomenon-extreme-uv { color: #8d45a7; }
.phenomenon-rain-light .phenomenon-badge, .phenomenon-rain-moderate .phenomenon-badge, .phenomenon-rain-heavy .phenomenon-badge, .phenomenon-drizzle .phenomenon-badge,
.daily-phenomenon-rain-light, .daily-phenomenon-rain-moderate, .daily-phenomenon-rain-heavy, .daily-phenomenon-drizzle { color: #187cb5; }
.phenomenon-snow-light .phenomenon-badge, .phenomenon-snow-moderate .phenomenon-badge, .phenomenon-snow-heavy .phenomenon-badge,
.daily-phenomenon-snow-light, .daily-phenomenon-snow-moderate, .daily-phenomenon-snow-heavy { color: #4a7fa6; }
.phenomenon-mixed .phenomenon-badge, .daily-phenomenon-mixed { color: #4f79a6; }
.phenomenon-fog .phenomenon-badge, .phenomenon-dense-fog .phenomenon-badge, .phenomenon-mist .phenomenon-badge,
.daily-phenomenon-fog, .daily-phenomenon-dense-fog, .daily-phenomenon-mist { color: #557382; }
.phenomenon-strong-wind .phenomenon-badge, .daily-phenomenon-strong-wind { color: #27846f; }
.phenomenon-thunderstorm .phenomenon-badge, .phenomenon-thunderstorm-hail .phenomenon-badge,
.daily-phenomenon-thunderstorm, .daily-phenomenon-thunderstorm-hail { color: #6655a8; }
.phenomenon-freezing-rain .phenomenon-badge, .daily-phenomenon-freezing-rain { color: #626ab6; }
.hourly-table-wrap,
.hourly-table-wrap.is-scrolled,
.hourly-table .phenomenon-badge { box-shadow: none !important; }
.hourly-table tbody .phenomenon-badge {
  border: 0;
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) {
  --night-sky:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 104'%3E%3Cpath fill='%23fff2b3' fill-opacity='.24' d='M29 7l1.7 7.5L38 16l-7.3 1.6L29 25l-1.7-7.4L20 16l7.3-1.5z'/%3E%3Cpath fill='%23dbeafe' fill-opacity='.18' d='M150 72l1.1 5.1 5.1 1.1-5.1 1.1-1.1 5.1-1.1-5.1-5.1-1.1 5.1-1.1z'/%3E%3Cpath fill='%23fff7cf' fill-opacity='.21' d='M258 18l2.3 4.8 5.4.8-3.9 3.8.9 5.4-4.7-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z'/%3E%3Cpath fill='%23dbeafe' fill-opacity='.15' d='M330 84l1 4.7 4.7 1-4.7 1-1 4.7-1-4.7-4.7-1 4.7-1z'/%3E%3C/svg%3E") var(--night-star-position, 0 0) / 360px 104px repeat,
    linear-gradient(112deg, #13213b 0%, #1e365a 52%, #142842 100%);
  background: var(--night-sky);
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now):nth-child(3n + 1) {
  --night-star-position: -128px -34px;
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now):nth-child(3n + 2) {
  --night-star-position: -248px -72px;
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now):not(.hourly-dawn):not(.hourly-dusk):hover {
  background: var(--night-sky) !important;
  filter: brightness(1.1);
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) > * {
  background: transparent !important;
  color: #f1f7ff;
  border-bottom-color: rgba(183, 207, 232, .22);
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) .hourly-day {
  color: #c3d3e7;
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) .hourly-weekend {
  color: #ffc6cd !important;
}
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) [data-weather-value],
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) .wind-dir-label,
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) .phenomenon-label,
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) .hourly-clock,
.hourly-table tbody .hourly-row.hourly-night:not(.hourly-now) .hourly-clock time {
  color: #f7fbff !important;
}
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) {
  --twilight-sky:
    linear-gradient(112deg,
      rgba(83, 115, 167, calc(.28 - var(--twilight-progress, .5) * .13)) 0%,
      rgba(255, 187, 116, calc(.23 + var(--twilight-progress, .5) * .14)) 55%,
      rgba(255, 249, 226, .52) 100%),
    linear-gradient(112deg, #b9d4e8 0%, #f5cfa1 54%, #fff5de 100%);
  background: var(--twilight-sky) !important;
}
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) {
  --twilight-sky:
    linear-gradient(112deg,
      rgba(255, 204, 122, calc(.28 - var(--twilight-progress, .5) * .15)) 0%,
      rgba(210, 110, 151, .30) 53%,
      rgba(34, 53, 100, calc(.15 + var(--twilight-progress, .5) * .28)) 100%),
    linear-gradient(112deg, #e7ac67 0%, #a65d91 50%, #1d315d 100%);
  background: var(--twilight-sky) !important;
}
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now):hover,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now):hover {
  background: var(--twilight-sky) !important;
  filter: none;
}
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) > *,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) > * {
  background: transparent !important;
  border-bottom-color: rgba(116, 132, 157, .25);
}
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) > * {
  color: #183247;
}
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) > * {
  color: #fffaf4;
  border-bottom-color: rgba(255, 230, 205, .24);
}
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) [data-weather-value],
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .wind-dir-label,
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .phenomenon-label,
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .hourly-clock,
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .hourly-clock time {
  color: #17394d !important;
}
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) [data-weather-value],
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .wind-dir-label,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .phenomenon-label,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .hourly-clock,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .hourly-clock time {
  color: #fffdf8 !important;
}
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .hourly-weekend {
  color: #a33d3a !important;
}
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .hourly-weekend {
  color: #ffd2cb !important;
}
.hourly-table tbody .hourly-row.hourly-daylight:not(.hourly-now) .hourly-day,
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .hourly-day,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .hourly-day {
  color: #59615d !important;
}
.hourly-table tbody .hourly-row.hourly-daylight:not(.hourly-now) .hourly-day.hourly-weekend,
.hourly-table tbody .hourly-row.hourly-dawn:not(.hourly-now) .hourly-day.hourly-weekend,
.hourly-table tbody .hourly-row.hourly-dusk:not(.hourly-now) .hourly-day.hourly-weekend {
  color: #a6463e !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: 38px; height: 38px; margin-bottom: 3px; }
  .phenomenon-badge svg { width: 35px; height: 35px; }
  .daily-weather-symbol { width: 34px; height: 34px; }
  .daily-weather-symbol svg { width: 32px; height: 32px; }
  .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; }
}

.hourly-period-toggle {
  margin: 14px 0 0;
  color: var(--muted, #667085);
  font-size: .86rem;
}
.hourly-period-toggle a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.signal-source-page{width:min(1040px,calc(100% - 40px));margin:auto;padding:54px 0 78px}.signal-source-hero{max-width:850px;padding:34px 0 32px}.signal-source-hero h1{margin:.65rem 0 1rem;font-size:clamp(2.65rem,6vw,5rem);line-height:1;letter-spacing:-.065em}.signal-source-hero .lead{max-width:780px;color:var(--muted);font-size:1.08rem;line-height:1.55}.signal-source-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:44px;align-items:start}.signal-source-content section{padding:0 0 28px;margin-bottom:28px;border-bottom:1px solid var(--line)}.signal-source-content h2,.signal-source-facts h2{margin:0 0 .8rem;font-size:1.35rem;letter-spacing:-.035em}.signal-source-content p{white-space:pre-line;color:#514c45;line-height:1.7}.signal-source-instruction{padding:22px!important;border:1px solid #e4c887!important;border-radius:14px;background:#fff5dc}.signal-source-language{font-size:.86rem!important;color:var(--muted)!important}.signal-source-facts{padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}.signal-source-facts dl{margin:0 0 22px}.signal-source-facts dt{margin-top:15px;color:#827a70;font-size:.7rem;font-weight:800;text-transform:uppercase}.signal-source-facts dd{margin:.3rem 0 0;line-height:1.45}.signal-source-facts .button{display:block;text-align:center}.signal-source-raw{display:block;margin-top:16px;color:var(--muted);font-size:.78rem;text-align:center;text-decoration:underline}@media(max-width:760px){.signal-source-page{width:min(100% - 28px,1040px);padding-top:34px}.signal-source-layout{grid-template-columns:1fr;gap:20px}.signal-source-facts{order:-1}.signal-source-hero h1{font-size:2.7rem}}

.forecast-hero {
  padding-top: clamp(12px, 2vw, 22px);
  padding-bottom: clamp(12px, 2vw, 22px);
}
.forecast-hero .hero-main {
  grid-template-columns: minmax(0, 1fr) minmax(360px, max-content);
  align-items: center;
  gap: 12px 34px;
}
.forecast-hero .hero-location {
  align-self: center;
}
.forecast-hero .hero-location h1 {
  margin-bottom: 0;
}
.forecast-hero .forecast-location-name {
  display: inline-block;
  max-width: min(100%, 24ch);
  overflow: hidden;
  padding: .14em .42em .19em;
  border: 1px solid rgba(243, 205, 132, .46);
  border-bottom-color: rgba(102, 57, 22, .72);
  border-radius: .32em;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 244, 206, .31), transparent 33%),
    linear-gradient(135deg, rgba(120, 77, 32, .88), rgba(51, 96, 76, .86) 55%, rgba(21, 55, 58, .92));
  box-shadow:
    inset 0 1px rgba(255, 249, 226, .34),
    inset 0 -2px rgba(43, 25, 10, .3),
    0 7px 16px rgba(3, 22, 30, .25);
  color: #fffaf0;
  letter-spacing: .01em;
  line-height: 1.04;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(42, 23, 8, .56);
  white-space: nowrap;
}
.forecast-hero .hero-current {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  justify-content: flex-end;
  margin-top: 0;
  transform: translateX(10px);
}
  .forecast-hero .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: stretch;
    margin-top: 18px;
  }
.forecast-hero .hero-astronomy {
  align-items: center;
}
.forecast-hero .forecast-controls {
  display: grid;
  justify-content: end;
  margin: 0 0 0 auto;
  z-index: 14;
}
.forecast-hero .forecast-unit-menu .forecast-units {
  top: auto;
  bottom: calc(100% + 9px);
  transform: translateX(24px);
}

@media (max-width: 768px) {
  .forecast-hero {
    padding-top: 14px;
    padding-bottom: 16px;
  }
  .forecast-hero .hero-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .forecast-hero .forecast-location-name { max-width: min(100%, 20ch); }
  .forecast-hero .hero-current {
    grid-column: 1;
    margin-top: 0;
    transform: none;
    justify-content: flex-start;
  }
  .forecast-hero .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .forecast-hero .hero-astronomy {
    align-items: center;
    flex-wrap: wrap;
  }
  .forecast-hero .forecast-controls {
    margin-left: 0;
    justify-content: start;
  }
}

/* A restrained sense of depth keeps the navigation and table header tactile,
   while preserving the calm, data-first forecast layout. */
.forecast-tabs {
  border: 1px solid rgba(161, 184, 200, .72);
  background: linear-gradient(145deg, #edf4f8 0%, #d8e4ed 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -1px 0 rgba(111, 143, 164, .20),
    0 5px 12px rgba(44, 73, 93, .08);
}
.forecast-tabs button[aria-selected="true"] {
  border: 1px solid rgba(202, 216, 226, .9);
  background: linear-gradient(145deg, #ffffff 0%, #f3f7fa 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(148, 170, 185, .12),
    0 3px 7px rgba(42, 72, 94, .10);
}
.forecast-tabs::after {
  display: none;
}

@media (min-width: 821px) {
  .hourly-table-wrap {
    border-top-color: transparent;
    border-right-color: rgba(161, 184, 200, .72);
    border-left-color: rgba(161, 184, 200, .72);
  }
  .hourly-table thead {
    background: linear-gradient(145deg, #edf4f8 0%, #d8e4ed 100%);
    border-radius: 13px 13px 0 0;
  }
  .hourly-table thead th,
  .hourly-table thead th:first-child {
    background: transparent;
    border-top-color: transparent;
    border-bottom-color: rgba(132, 160, 178, .52);
    box-shadow:
      0 -1px 0 rgba(161, 184, 200, .72),
      inset 0 1px 0 rgba(255, 255, 255, .88),
      inset 0 -1px 0 rgba(111, 143, 164, .14);
  }
  .hourly-table thead tr > :first-child {
    border-left-color: transparent;
    border-top-left-radius: 13px;
    box-shadow:
      0 -1px 0 rgba(161, 184, 200, .72),
      inset 0 1px 0 rgba(255, 255, 255, .88),
      inset 0 -1px 0 rgba(111, 143, 164, .14);
  }
  .hourly-table thead tr > :last-child {
    border-right-color: transparent;
    border-top-right-radius: 13px;
    box-shadow:
      0 -1px 0 rgba(161, 184, 200, .72),
      inset 0 1px 0 rgba(255, 255, 255, .88),
      inset 0 -1px 0 rgba(111, 143, 164, .14);
  }
}

@media (max-width: 640px) {
  .hourly-table-wrap {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      0 5px 12px rgba(45, 75, 96, .08);
  }
  .hourly-table thead {
    background: linear-gradient(145deg, #edf4f8 0%, #dbe7ef 100%);
    border-radius: 13px 13px 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      inset 0 -1px 0 rgba(116, 147, 168, .18);
  }
  .hourly-table thead th,
  .hourly-table thead th:first-child {
    background: transparent;
    border-right: 0;
    box-shadow: none;
  }
  .hourly-table .hourly-heading-icon {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .70),
      inset 0 -1px 0 rgba(82, 106, 124, .13),
      0 2px 4px rgba(54, 82, 102, .07);
  }
}

@media (max-width: 640px) {
  .forecast-hero .hero-current {
    display: grid;
    grid-template-columns: minmax(122px, max-content) minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
  }
  .forecast-hero .current-temp {
    min-width: 122px;
  }
  .forecast-hero .current-details {
    min-width: 0;
    margin-left: 0;
    padding-left: .35rem;
    text-align: left;
  }
  .forecast-hero .current-condition,
  .forecast-hero .current-feels-like {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .forecast-hero .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .forecast-hero .metric-card {
    min-height: 86px;
    padding: 9px 5px;
  }
  .forecast-hero .metric-icon {
    font-size: 1.05rem;
  }
  .forecast-hero svg.metric-icon { width: 24px; height: 24px; }
  .forecast-hero .metric-label {
    font-size: .58rem;
    letter-spacing: .05em;
  }
  .forecast-hero .metric-value {
    font-size: .78rem;
    line-height: 1.15;
  }
  .forecast-hero .metric-card-humidity .metric-value,
  .forecast-hero .metric-card-wind .metric-value,
  .forecast-hero .metric-card-pressure .metric-value {
    font-size: .86rem;
  }
  .forecast-hero .metric-detail {
    margin-top: 3px;
    font-size: .54rem;
    line-height: 1.12;
  }
  .forecast-hero .forecast-unit-menu .forecast-units {
    right: 10px !important;
    left: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: min(312px, calc(100vw - 64px));
    padding: 10px;
    transform: translateX(0);
  }
  .forecast-hero .forecast-unit-menu .forecast-units label {
    font-size: .56rem;
  }
  .forecast-hero .forecast-unit-menu .forecast-units select {
    min-height: 34px;
    padding: .34rem .28rem;
    font-size: .68rem;
  }
}

@media (max-width: 420px) {
  .forecast-hero .hero-current {
    grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
    column-gap: 14px;
  }
  .forecast-hero .current-temp {
    min-width: 112px;
  }
  .forecast-hero .forecast-unit-menu .forecast-units {
    right: 8px !important;
    width: min(300px, calc(100vw - 52px));
  }
}
