:root {
  --ink: #17202a;
  --muted: #667280;
  --line: #d8e0e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --blue: #1266b0;
  --blue-dark: #0d426e;
  --green: #1b7f64;
  --yellow: #f0b429;
  --red: #c24134;
  --shadow: 0 22px 60px rgba(25, 40, 60, 0.14);
  --page-max: 1640px;
  --edge-space: clamp(18px, 5vw, 82px);
  --section-space-y: clamp(42px, 5.2vw, 84px);
  --section-space-y-compact: clamp(34px, 4vw, 60px);
  --header-space-x: clamp(14px, 4vw, 66px);
  --header-gap: clamp(10px, 1.25vw, 18px);
  --card-pad: clamp(18px, 1.7vw, 26px);
  --hero-gap: clamp(24px, 3vw, 44px);
  --hero-title-size: clamp(2.65rem, 5.6vw, 5.7rem);
  --body-copy-size: clamp(1rem, 0.85rem + 0.35vw, 1.13rem);
  --current-temp-size: clamp(4rem, 5.2vw, 5rem);
  --weather-icon-size: clamp(96px, 7.8vw, 112px);
  --radar-height: clamp(460px, 43vw, 620px);
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, calc(13px + 0.2vw), 16px);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--header-gap);
  min-height: clamp(68px, 5.8vw, 82px);
  padding: 10px var(--header-space-x);
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header > * {
  min-width: 0;
}

.brand,
.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
}

.location-picker {
  position: relative;
  flex: 0 0 auto;
}

.brand {
  gap: 10px;
  min-width: 0;
  max-width: clamp(210px, 24vw, 360px);
  min-height: 46px;
  padding: 0 13px 0 6px;
  border: 1px solid rgba(12, 30, 48, 0.14);
  border-radius: 999px;
  color: var(--white);
  background: #132131;
  appearance: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(25, 40, 60, 0.13);
}

.brand-home {
  max-width: clamp(220px, 22vw, 320px);
}

.brand#location-control::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.86;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.brand#location-control[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.brand span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 5010;
  width: min(340px, 88vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(25, 40, 60, 0.18);
}

.location-menu::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.location-menu p {
  margin: 10px 10px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-menu button {
  position: relative;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.location-menu button[data-action="current-location"] {
  color: var(--white);
  background: var(--blue-dark);
}

.location-menu button[data-action="current-location"]:hover {
  background: #0b3559;
}

.location-menu button:hover {
  background: #f3f6f9;
}

.location-menu-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--line);
}

.location-menu-search {
  display: grid;
  gap: 8px;
  margin: 0;
}

.location-menu-search label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-menu-search > div:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

.location-menu-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
}

.location-menu-search button[type="submit"] {
  min-height: 42px;
  text-align: center;
}

.location-menu-suggestions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.location-menu-suggestions button {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.location-menu-suggestions button:last-child {
  border-bottom: 0;
}

.recent-empty {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.location-suggestions {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% - 8px);
  z-index: 120;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(25, 40, 60, 0.14);
}

.location-suggestions button {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.location-suggestions button:last-child {
  border-bottom: 0;
}

.location-suggestions button:hover,
.location-suggestions button:focus {
  background: #f3f6f9;
  outline: none;
}

.suggestion-muted {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.suggestion-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: #07101d;
  box-shadow: inset 0 0 0 1px rgba(80, 255, 30, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(216, 224, 232, 0.9);
  border-radius: 999px;
  color: #223044;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(25, 40, 60, 0.08);
  font-size: 0.96rem;
  font-weight: 760;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.site-footer a:hover {
  color: var(--blue);
}

.nav-links a[aria-current="page"] {
  background: #edf3f8;
  font-weight: 700;
}

.nav-tropical {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
}

.nav-tropical-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 5020;
  display: grid;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(25, 40, 60, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-tropical:hover .nav-tropical-menu,
.nav-tropical:focus-within .nav-tropical-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-tropical-menu a,
.nav-tropical-menu span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-tropical-menu a:hover {
  color: var(--blue);
  background: #f3f6f9;
}

.nav-cta,
.email-cta,
.search-row button,
.radar-panel button {
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(13, 66, 110, 0.16);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #1266b0, #0d426e);
  box-shadow: 0 12px 28px rgba(13, 66, 110, 0.18);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: var(--hero-gap);
  align-items: center;
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: var(--section-space-y) var(--edge-space) var(--section-space-y-compact);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: var(--hero-title-size);
  line-height: 0.96;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 630px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: var(--body-copy-size);
  line-height: 1.65;
}

.search-panel {
  position: relative;
  max-width: 660px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(25, 40, 60, 0.08);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.search-row button {
  min-height: 48px;
  padding: 0 20px;
}

.search-panel.is-loading {
  cursor: wait;
}

.search-panel.is-loading input,
.search-panel.is-loading button {
  opacity: 0.72;
}

.search-panel.is-loading button {
  cursor: wait;
}

.search-row button:disabled {
  box-shadow: none;
}

.home-tropical-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 660px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 102, 176, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(25, 40, 60, 0.12);
}

.home-tropical-card h2,
.home-tropical-card p {
  margin: 0;
}

.home-tropical-card h2 {
  font-size: clamp(1.05rem, 1.15vw, 1.35rem);
  line-height: 1.1;
}

.home-tropical-card > div:first-child > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-tropical-actions {
  display: grid;
  gap: 8px;
  min-width: min(260px, 100%);
}

.home-tropical-actions select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-tropical-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.current-card,
.forecast-card,
.alert-card,
.detail-card,
.radar-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.current-card {
  position: relative;
  padding: var(--card-pad);
  margin-top: 18px;
  box-shadow: var(--shadow);
}

.current-brand-lockup {
  position: absolute;
  top: -18px;
  right: var(--card-pad);
  transform: translateY(-100%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - (var(--card-pad) * 2));
  color: #102238;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.current-brand-lockup img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(80, 255, 30, 0.5), 0 8px 18px rgba(25, 40, 60, 0.12);
}

.current-stack {
  display: grid;
  gap: 12px;
}

.current-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.current-alert-chip {
  --chip-color: var(--yellow);
  --chip-bg: rgba(240, 180, 41, 0.16);
  --chip-border: rgba(240, 180, 41, 0.5);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--chip-color);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-alert-chip.alert-thunderstorm {
  --chip-color: #7a5707;
  --chip-bg: rgba(240, 180, 41, 0.16);
  --chip-border: rgba(240, 180, 41, 0.5);
}

.current-alert-chip.alert-flood {
  --chip-color: #0f5945;
  --chip-bg: rgba(27, 127, 100, 0.14);
  --chip-border: rgba(27, 127, 100, 0.34);
}

.current-alert-chip.alert-tornado,
.current-alert-chip.alert-severe {
  --chip-color: #8e2f25;
  --chip-bg: rgba(194, 65, 52, 0.13);
  --chip-border: rgba(194, 65, 52, 0.38);
}

.current-alert-chip.alert-winter {
  --chip-color: #383c9a;
  --chip-bg: rgba(91, 95, 199, 0.14);
  --chip-border: rgba(91, 95, 199, 0.34);
}

.current-alert-chip.alert-tropical {
  --chip-color: #08636e;
  --chip-bg: rgba(15, 138, 153, 0.13);
  --chip-border: rgba(15, 138, 153, 0.34);
}

.current-alert-chip.alert-heat {
  --chip-color: #9a3412;
  --chip-bg: rgba(232, 93, 36, 0.15);
  --chip-border: rgba(232, 93, 36, 0.4);
}

.current-alert-chip.alert-fire {
  --chip-color: #92400e;
  --chip-bg: rgba(217, 119, 6, 0.14);
  --chip-border: rgba(217, 119, 6, 0.36);
}

.current-alert-chip.alert-wind {
  --chip-color: #334155;
  --chip-bg: rgba(100, 116, 139, 0.14);
  --chip-border: rgba(100, 116, 139, 0.34);
}

.current-alert-chip.alert-watch,
.current-alert-chip.alert-advisory {
  --chip-color: var(--blue-dark);
  --chip-bg: rgba(18, 102, 176, 0.1);
  --chip-border: rgba(18, 102, 176, 0.28);
}

.current-spc-risk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.spc-risk-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--risk-color) 48%, #d8e0e8);
  border-radius: 999px;
  color: color-mix(in srgb, var(--risk-color) 62%, #17202a);
  background: color-mix(in srgb, var(--risk-color) 11%, #ffffff);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-card .spc-risk-badge,
.forecast-card .spc-risk-badge,
.forecast-card.featured .spc-risk-badge {
  color: color-mix(in srgb, var(--risk-color) 62%, #17202a);
  background: color-mix(in srgb, var(--risk-color) 11%, #ffffff);
}

.forecast-note {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.card-topline,
.condition-row,
.email-section,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-topline h2 {
  margin: 0;
  font-size: 1.3rem;
}

.card-topline span,
.forecast-card span,
.alert-card span,
.radar-panel span,
.section-heading p,
.email-section p {
  color: var(--muted);
}

.condition-row {
  margin: 30px 0;
}

.condition-row strong {
  display: block;
  font-size: var(--current-temp-size);
  line-height: 0.9;
}

.condition-row p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.weather-icon {
  position: relative;
  width: var(--weather-icon-size);
  height: var(--weather-icon-size);
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(145deg, #87cdf2 0%, #d7f1fb 62%, #f9fdff 100%);
  overflow: hidden;
  box-shadow:
    inset -10px -14px 0 rgba(19, 72, 112, 0.08),
    0 14px 28px rgba(25, 40, 60, 0.12);
}

.weather-icon::before,
.weather-icon::after {
  content: "";
  position: absolute;
}

.weather-icon::before {
  left: 14px;
  top: 10px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg, transparent 0 11deg, #f5db2d 11deg 16deg, transparent 16deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 0 38%, #000 39% 52%, transparent 53%);
  mask: radial-gradient(circle, transparent 0 38%, #000 39% 52%, transparent 53%);
}

.weather-icon::after {
  left: 30px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(145deg, #f8e92d 0%, #ecd323 58%, #d8b91c 100%);
  box-shadow: 0 10px 18px rgba(224, 188, 24, 0.2);
}

.weather-icon span {
  position: absolute;
  right: 12px;
  bottom: 25px;
  z-index: 1;
  width: 84px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9eef8, #99d4e4);
  box-shadow:
    15px 10px 0 -9px #95cfdf,
    0 10px 16px rgba(67, 124, 148, 0.18);
}

.weather-icon span::before,
.weather-icon span::after {
  content: "";
  position: absolute;
}

.weather-icon span::before {
  left: 20px;
  top: -28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #bcecf8, #9ad6e6);
  box-shadow: 30px 16px 0 -16px #aadfec;
}

.weather-icon span::after {
  left: 15px;
  right: 14px;
  bottom: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(58, 127, 153, 0.09);
}

.weather-icon.clear span,
.weather-icon.clear-night span {
  display: none;
}

.weather-icon.clear {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(145deg, #88d0f4, #e8f9ff);
}

.weather-icon.clear::before {
  left: 18px;
  top: 16px;
  width: 76px;
  height: 76px;
}

.weather-icon.clear::after {
  left: 35px;
  top: 33px;
  width: 58px;
  height: 58px;
}

.weather-icon.clear-night {
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(145deg, #27384a, #6b7f93 62%, #aebdca);
}

.weather-icon.clear-night::before {
  left: 31px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7c9, #e9d88f);
  box-shadow: 0 10px 18px rgba(255, 238, 166, 0.16);
  -webkit-mask: none;
  mask: none;
}

.weather-icon.clear-night::after {
  left: 49px;
  top: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3f5266;
  box-shadow: none;
}

.weather-icon.rain {
  background:
    linear-gradient(180deg, rgba(27, 44, 63, 0.16), transparent 62%),
    linear-gradient(145deg, #667f97, #bccbd8 58%, #eef4f8);
}

.weather-icon.rain span,
.weather-icon.thunderstorm span {
  right: 10px;
  bottom: 47px;
  width: 88px;
  height: 39px;
  background: linear-gradient(180deg, #f1f5f8, #b5c1cd);
  box-shadow:
    -30px 5px 0 -4px #d9e1e8,
    12px 14px 0 -9px #8fa0af,
    0 9px 16px rgba(24, 37, 52, 0.2);
}

.weather-icon.thunderstorm span {
  right: 18px;
  width: 74px;
  background: linear-gradient(180deg, #f5f8fb, #b9c6d1);
  box-shadow: 0 10px 16px rgba(24, 37, 52, 0.18);
}

.weather-icon.thunderstorm span::before {
  left: 15px;
  top: -22px;
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, #ffffff, #dfe7ee);
  box-shadow: 29px 9px 0 -8px #edf3f7;
}

.weather-icon.thunderstorm span::after {
  display: none;
}

.weather-icon.rain::before,
.weather-icon.rain::after {
  content: "";
  position: absolute;
  top: 61px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #176fb5;
  box-shadow: 17px -4px 0 #176fb5, 34px 0 0 #176fb5;
  transform: rotate(18deg);
}

.weather-icon.rain::before {
  left: 34px;
}

.weather-icon.rain::after {
  left: 42px;
  top: 78px;
  opacity: 0.52;
}

.weather-icon.thunderstorm {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #243447, #6f8192 58%, #b4c0cb);
}

.weather-icon.thunderstorm::before,
.weather-icon.thunderstorm::after {
  content: "";
  position: absolute;
}

.weather-icon.thunderstorm::before {
  left: 35px;
  top: 72px;
  width: 4px;
  height: 17px;
  border-radius: 999px;
  background: #60a5d8;
  box-shadow: 18px -4px 0 #60a5d8, 36px 1px 0 #60a5d8;
  transform: rotate(18deg);
}

.weather-icon.thunderstorm::after {
  left: 53px;
  top: 51px;
  width: 22px;
  height: 48px;
  background: #f0b429;
  clip-path: polygon(42% 0, 100% 0, 66% 43%, 100% 43%, 22% 100%, 47% 54%, 9% 54%);
  filter: drop-shadow(0 4px 8px rgba(240, 180, 41, 0.34));
}

.weather-icon.winter {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.72), transparent 25%),
    linear-gradient(145deg, #8bb3cf, #dbe9f2 58%, #ffffff);
}

.weather-icon.winter span,
.weather-icon.ice span {
  right: 10px;
  bottom: 47px;
  width: 88px;
  height: 39px;
  background: linear-gradient(180deg, #ffffff, #dbe6ef);
  box-shadow:
    -30px 5px 0 -4px #f2f7fb,
    12px 14px 0 -9px #bdcbd7,
    0 9px 16px rgba(68, 88, 107, 0.14);
}

.weather-icon.winter::before,
.weather-icon.winter::after {
  content: "";
  position: absolute;
  top: 76px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 19px -5px 0 #ffffff, 37px 2px 0 rgba(255, 255, 255, 0.86);
}

.weather-icon.winter::before {
  left: 27px;
}

.weather-icon.winter::after {
  left: 36px;
  top: 88px;
  opacity: 0.78;
}

.weather-icon.ice {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.84), transparent 24%),
    linear-gradient(145deg, #7099b5, #cbe8f4 55%, #f8fdff);
}

.weather-icon.ice::before,
.weather-icon.ice::after {
  content: "";
  position: absolute;
  top: 75px;
  width: 10px;
  height: 10px;
  border: 2px solid #e8fbff;
  border-radius: 3px;
  background: rgba(174, 230, 246, 0.52);
  box-shadow: 18px -5px 0 -1px rgba(174, 230, 246, 0.72), 36px 3px 0 -1px rgba(174, 230, 246, 0.62);
  transform: rotate(45deg);
}

.weather-icon.ice::before {
  left: 27px;
}

.weather-icon.ice::after {
  left: 39px;
  top: 88px;
  opacity: 0.78;
}

.weather-icon.tornado {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #2d3743, #65717d 58%, #b8c0c8);
}

.weather-icon.tornado span {
  left: 17px;
  top: 23px;
  width: 78px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3f6f8, #c3ccd4);
  box-shadow:
    7px 15px 0 -3px #aeb8c2,
    16px 29px 0 -6px #8794a2,
    25px 42px 0 -9px #5f6c79,
    0 9px 16px rgba(19, 29, 42, 0.22);
}

.weather-icon.tornado::before,
.weather-icon.tornado::after {
  content: "";
  position: absolute;
}

.weather-icon.tornado::after {
  left: 34px;
  top: 41px;
  width: 50px;
  height: 58px;
  border: 5px solid rgba(246, 248, 250, 0.85);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(28deg);
}

.weather-icon.tornado::before {
  left: 29px;
  top: 82px;
  width: 54px;
  height: 8px;
  border-radius: 50%;
  background: rgba(39, 48, 58, 0.24);
  filter: blur(1px);
}

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

.conditions-grid div {
  padding: 14px;
  border-radius: 8px;
  background: #f3f6f9;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.condition-high {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.condition-uv {
  display: block;
  width: fit-content;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e9f2fb;
  font-size: 0.86rem;
  font-weight: 850;
}

.content-band,
.split-section,
.radar-section,
.about-section {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: var(--section-space-y-compact) var(--edge-space);
}

.email-section {
  padding: var(--section-space-y-compact) var(--edge-space);
}

.radar-section {
  scroll-margin-top: 120px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading h2,
.email-section h2,
.about-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

#alerts .section-heading {
  max-width: 100%;
}

#alerts .section-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading p:not(.eyebrow),
.email-section p {
  margin: 14px 0 0;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.about-page-section {
  min-height: calc(100vh - 164px);
}

.about-page-section .section-heading {
  max-width: 860px;
}

.about-page-section .section-heading h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.about-text {
  max-width: 920px;
}

.about-text p {
  margin: 0;
  color: #2d3a48;
  font-size: clamp(1rem, 0.98rem + 0.18vw, 1.12rem);
  line-height: 1.78;
}

.about-text p + p {
  margin-top: 18px;
}

.about-card {
  min-height: 210px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(25, 40, 60, 0.08);
}

.about-card p {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-card h3 {
  max-width: 680px;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.about-card span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hourly-forecast {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  max-height: 82px;
  margin-bottom: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-color: #9eb0bf #eef3f7;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 40, 60, 0.06);
}

.hourly-forecast::-webkit-scrollbar {
  width: 9px;
}

.hourly-forecast::-webkit-scrollbar-track {
  background: #eef3f7;
}

.hourly-forecast::-webkit-scrollbar-thumb {
  border: 2px solid #eef3f7;
  border-radius: 999px;
  background: #9eb0bf;
}

.hourly-forecast article {
  min-height: 82px;
  padding: 9px 8px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hourly-forecast article:last-child {
  border-right: 0;
}

.hourly-forecast article:nth-child(12n) {
  border-right: 0;
}

.hourly-forecast article:nth-last-child(-n + 12) {
  border-bottom: 0;
}

.hourly-forecast p,
.hourly-forecast span,
.hourly-forecast small {
  margin: 0;
}

.hourly-forecast p {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hourly-forecast strong {
  display: block;
  margin-top: 5px;
  font-size: 1.15rem;
  line-height: 1;
}

.hourly-forecast span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 800;
  overflow: hidden;
  line-height: 1.05;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hourly-forecast small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

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

.forecast-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 18px;
}

.forecast-card:not(.featured) {
  min-height: 178px;
}

.forecast-card p,
.alert-card p,
.detail-card p,
.radar-panel p {
  margin: 0;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
}

.forecast-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 1.65rem;
  line-height: 1;
}

.forecast-date {
  position: absolute;
  right: 16px;
  top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.forecast-summary,
.forecast-risk-row,
.forecast-meta-row {
  display: block;
}

.forecast-card > span:not(.forecast-date) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.forecast-summary {
  margin-top: auto;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.forecast-card:not(.featured) .forecast-summary {
  margin-top: 10px;
  font-size: clamp(0.82rem, 0.78vw, 0.96rem);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-risk-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 26px;
  margin-top: 8px;
}

.forecast-risk-row.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.forecast-card.featured .forecast-risk-row {
  justify-content: flex-start;
}

.forecast-risk-row .spc-risk-badge {
  min-height: 26px;
  font-size: 0.7rem;
}

.forecast-card:not(.featured) > span:not(.forecast-date) {
  flex: 1;
}

.forecast-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 25px;
  padding-top: 0;
}

.forecast-meta-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f3f6f9;
  font-size: 0.68rem;
  font-weight: 850;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-meta-row .forecast-pill-sun {
  font-size: 0.60rem;
  letter-spacing: 0;

}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.detail-card {
  padding: 20px;
  background: #fff;
}

.detail-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.forecast-card.featured {
  justify-content: space-between;
  min-height: 178px;
  color: var(--white);
  background: var(--blue-dark);
}

.forecast-card.featured span,
.forecast-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.forecast-card.featured .forecast-meta-row span {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.forecast-card.featured .forecast-meta-row {
  display: flex;
  flex-wrap: nowrap;
}

.forecast-card.featured .forecast-meta-row span {
  flex: 1 1 0;
  padding: 0 5px;
  font-size: 0.64rem;
}

.forecast-card.featured .forecast-meta-row .forecast-pill-sun {
  font-size: 0.5rem;
}

.forecast-card.featured .forecast-date {
  color: rgba(255, 255, 255, 0.7);
}

.forecast-card.featured h3 {
  margin: 8px 0 0;
  font-size: 1.45rem;
}

.alerts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.alert-card {
  --alert-color: var(--yellow);
  --alert-color-soft: rgba(240, 180, 41, 0.14);
  --alert-title-color: #7a5707;
  padding: 20px;
  border-left: 6px solid var(--alert-color);
}

.alert-card.alert-thunderstorm,
.alert-card.thunderstorm {
  --alert-color: var(--yellow);
  --alert-color-soft: rgba(240, 180, 41, 0.16);
  --alert-title-color: #7a5707;
}

.alert-card.alert-flood {
  --alert-color: var(--green);
  --alert-color-soft: rgba(27, 127, 100, 0.14);
  --alert-title-color: #0f5945;
}

.alert-card.alert-tornado,
.alert-card.warning-red,
.alert-card.severe {
  --alert-color: var(--red);
  --alert-color-soft: rgba(194, 65, 52, 0.13);
  --alert-title-color: #8e2f25;
}

.alert-card.alert-winter {
  --alert-color: #5b5fc7;
  --alert-color-soft: rgba(91, 95, 199, 0.14);
  --alert-title-color: #383c9a;
}

.alert-card.alert-tropical {
  --alert-color: #0f8a99;
  --alert-color-soft: rgba(15, 138, 153, 0.13);
  --alert-title-color: #08636e;
}

.alert-card.alert-heat {
  --alert-color: #e85d24;
  --alert-color-soft: rgba(232, 93, 36, 0.15);
  --alert-title-color: #9a3412;
}

.alert-card.alert-fire {
  --alert-color: #d97706;
  --alert-color-soft: rgba(217, 119, 6, 0.14);
  --alert-title-color: #92400e;
}

.alert-card.alert-wind,
.alert-card.alert-severe {
  --alert-color: #64748b;
  --alert-color-soft: rgba(100, 116, 139, 0.14);
  --alert-title-color: #334155;
}

.alert-card.alert-watch,
.alert-card.alert-advisory,
.alert-card.watch {
  --alert-color: var(--blue);
  --alert-color-soft: rgba(18, 102, 176, 0.1);
  --alert-title-color: var(--blue-dark);
}

.alert-card div {
  margin-bottom: 14px;
}

.alert-card > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.alert-card > div:first-child p {
  margin: 0;
  color: var(--alert-title-color);
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.alert-card > div:first-child span {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.alert-card > p {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
}

.alert-card .alert-safety-message {
  margin-top: 10px;
  color: #7f1d1d;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.alert-card .impact-title {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f3f6f9;
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill.warning {
  border-color: rgba(240, 180, 41, 0.42);
  color: #7a5707;
  background: rgba(240, 180, 41, 0.16);
}

.pill.danger {
  border-color: rgba(194, 65, 52, 0.34);
  color: #8e2f25;
  background: rgba(194, 65, 52, 0.12);
}

.pill.heat {
  border-color: rgba(232, 93, 36, 0.38);
  color: #9a3412;
  background: rgba(232, 93, 36, 0.14);
}

.radar-shell {
  position: relative;
  min-height: var(--radar-height);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.radar-map {
  --radar-opacity: 0.82;
  position: relative;
  overflow: hidden;
  height: var(--radar-height);
  min-height: var(--radar-height);
  background: #2f3338;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  outline: 0;
  background: #2f3338;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-map-pane,
.leaflet-popup-pane,
.leaflet-shadow-pane,
.leaflet-overlay-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-control-container {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  width: 100%;
  height: 100%;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  width: 257px !important;
  height: 257px !important;
  border: 0;
  outline: 1px solid transparent;
  backface-visibility: hidden;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  transition: transform 250ms cubic-bezier(0, 0, 0.25, 1);
}

.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
  transition: none;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.radar-map .leaflet-container,
.radar-map.leaflet-container {
  height: var(--radar-height);
  min-height: var(--radar-height);
  font: inherit;
}

.radar-overlay {
  mix-blend-mode: screen;
  transition: opacity 240ms linear;
}

.radar-grey-basemap {
  filter: grayscale(1) brightness(0.58) contrast(1.32) saturate(0.2);
}

#radar-map img[src*="light_nolabels"] {
  filter: grayscale(1) brightness(0.58) contrast(1.32) saturate(0.2);
}

.radar-boundary-labels {
  filter: grayscale(1) brightness(0.74) contrast(1.72) saturate(0);
  opacity: 0.84;
}

#radar-map img[src*="light_only_labels"] {
  filter: grayscale(1) brightness(0.74) contrast(1.72) saturate(0);
  opacity: 0.84;
}

.leaflet-overlay-pane svg path {
  paint-order: stroke;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.leaflet-pane svg path.leaflet-interactive {
  cursor: pointer;
}

.radar-alert-tooltip {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  color: #111827;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.radar-alert-tooltip strong,
.radar-alert-tooltip span {
  display: block;
}

.radar-alert-tooltip span {
  margin-top: 2px;
  color: #526070;
  font-size: 0.74rem;
  font-weight: 800;
}

.radar-alert-popup {
  max-width: 280px;
  color: #111827;
  font: 13px/1.4 Inter, Arial, sans-serif;
}

.radar-alert-popup strong {
  font-weight: 900;
}

.radar-alert-popup p {
  margin: 6px 0 0;
}

.radar-loading {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  border: 1px solid rgba(216, 224, 232, 0.9);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(25, 40, 60, 0.14);
}

.radar-loading.is-hidden {
  display: none;
}

.radar-layer-menu {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 70;
}

.radar-menu-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #111827;
  background: #f0b429;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.radar-layer-panel {
  width: min(310px, calc(100vw - 42px));
  max-height: min(560px, calc(100vh - 180px));
  overflow: auto;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(22, 25, 29, 0.84);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.radar-layer-panel label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  font-size: 0.82rem;
  font-weight: 800;
}

.radar-layer-panel input[type="checkbox"] {
  accent-color: #f0b429;
}

.radar-alert-filter {
  margin-bottom: 8px;
}

.radar-alert-filter summary,
.radar-spc-filter summary {
  min-height: 34px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.radar-spc-filter {
  margin-bottom: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.radar-filter-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.radar-filter-group p {
  margin: 0 0 6px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-opacity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(22, 25, 29, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.radar-opacity-control input {
  width: 94px;
  accent-color: #f0b429;
}

.radar-speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(22, 25, 29, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.radar-speed-control select {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  color: #111827;
  background: #f0b429;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  outline: none;
}

.radar-location-marker {
  position: relative;
  width: 34px;
  height: 46px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.34));
}

.radar-location-marker::before,
.radar-location-marker::after {
  content: "";
  position: absolute;
}

.radar-location-marker::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, transparent 0 8px, #0e4f88 8.5px 15px, transparent 15.5px),
    linear-gradient(145deg, #2d8bd7 0%, #1266b0 62%, #0d426e 100%);
  clip-path: path("M17 0C7.6 0 0 7.7 0 17.1c0 4.1 1.2 7.5 3.3 10.8L17 46l13.7-18.1c2.1-3.3 3.3-6.7 3.3-10.8C34 7.7 26.4 0 17 0Z");
}

.radar-location-marker::after {
  left: 10px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.92);
  background: transparent;
}

@supports not (clip-path: path("M0 0")) {
  .radar-location-marker::before {
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    clip-path: none;
  }

  .radar-location-marker::after {
    transform: none;
  }
}

.leaflet-control-attribution {
  font-size: 10px;
}

.radar-map-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.radar-primary-controls,
.radar-secondary-controls,
.radar-legend,
.radar-mode-toggle,
.radar-scrubber,
.radar-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-primary-controls {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  max-width: min(850px, calc(100vw - 560px));
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.radar-speed-control {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: start;
}

.radar-primary-controls > button,
.radar-mode-toggle,
.radar-scrubber {
  grid-row: 2;
}

.radar-scrubber {
  width: 100%;
}

.radar-secondary-controls {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "legend legend"
    "zoom opacity";
  justify-items: end;
  justify-content: end;
  gap: 7px;
  margin-left: auto;
  align-self: end;
}

.radar-secondary-controls .radar-legend {
  grid-area: legend;
}

.radar-secondary-controls .radar-zoom-controls {
  grid-area: zoom;
}

.radar-secondary-controls .radar-opacity-control {
  grid-area: opacity;
}

@media (min-width: 981px) {
  .radar-map-controls {
    right: 8px;
    bottom: 8px;
    min-height: 118px;
  }

  .radar-secondary-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: min(560px, 45vw);
  }

  .radar-zoom-controls {
    grid-area: zoom;
  }

  .radar-opacity-control {
    grid-area: opacity;
  }

  .radar-legend {
    grid-area: legend;
    justify-self: end;
  }
}

.radar-map-controls button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #111827;
  background: #f0b429;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  white-space: nowrap;
}

.radar-primary-controls button {
  min-width: 82px;
  padding: 0 14px;
}

.radar-mode-toggle {
  min-height: 38px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(22, 25, 29, 0.72);
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.radar-mode-toggle button {
  min-width: 64px;
  min-height: 32px;
  padding: 0 10px;
  color: #dbe4ee;
  background: transparent;
  box-shadow: none;
}

.radar-mode-toggle button.is-active {
  color: #111827;
  background: #f0b429;
}

.radar-map-controls button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.radar-scrubber {
  min-height: 38px;
  max-width: 100%;
  min-width: min(340px, 36vw);
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(22, 25, 29, 0.72);
  pointer-events: auto;
  touch-action: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.radar-scrubber .radar-time-pill {
  min-width: 76px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: none;
}

.radar-scrubber input {
  width: 100%;
  min-width: 130px;
  height: 24px;
  accent-color: #f0b429;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
}

.radar-time-pill,
.radar-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(22, 25, 29, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.radar-zoom-controls {
  gap: 4px;
}

.radar-zoom-controls button {
  width: 38px;
  padding: 0;
  color: #f8fafc;
  background: rgba(22, 25, 29, 0.72);
  font-size: 1.15rem;
}

.radar-legend {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(22, 25, 29, 0.72);
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.radar-legend span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  backdrop-filter: none;
}

.radar-legend.is-radar {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 8px;
}

.radar-legend .legend-row {
  display: grid;
  grid-template-columns: auto auto minmax(58px, 76px) auto;
  gap: 7px;
  align-items: center;
  min-height: 16px;
  color: #f8fafc;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.radar-legend.is-radar .legend-row span {
  min-height: 0;
}

.radar-legend .legend-row > span:first-child {
  min-width: 30px;
  color: #cbd5e1;
}

.radar-spc-legend {
  gap: 6px;
  max-width: min(500px, 45vw);
  justify-content: flex-end;
}

.radar-spc-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(22, 25, 29, 0.72);
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.radar-spc-legend[hidden] {
  display: none;
}

.radar-map > .radar-spc-legend {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 74;
  max-width: min(540px, calc(100% - 32px));
}

.radar-spc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 1px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.radar-spc-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.legend-gradient {
  width: 100%;
  height: 9px;
  border-radius: 999px;
}

.legend-gradient-rain {
  background: linear-gradient(90deg, #2fc765 0%, #f1d34b 42%, #e57934 70%, #c24134 100%);
}

.legend-gradient-snow {
  background: linear-gradient(90deg, #dff6ff 0%, #8dd8ff 38%, #4776d8 68%, #7c3aed 100%);
}

.email-section {
  margin: 54px 5vw;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-dark);
}

.email-section div {
  max-width: 650px;
}

.email-section .eyebrow,
.email-section p {
  color: rgba(255, 255, 255, 0.76);
}

.email-cta {
  flex: 0 0 auto;
  padding: 15px 18px;
  background: var(--white);
  color: var(--blue-dark);
}

.site-footer {
  min-height: 92px;
  padding: 0 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.site-footer nav {
  gap: 18px;
}

@media (min-width: 981px) and (max-width: 1280px) {
  .radar-map-controls {
    right: 8px;
    bottom: 8px;
    align-items: end;
  }

  .radar-secondary-controls {
    right: 0;
    bottom: 0;
    max-width: min(500px, 43vw);
  }

  .site-header {
    gap: 10px;
    padding-inline: clamp(18px, 2.5vw, 32px);
  }

  .brand {
    max-width: clamp(190px, 22vw, 280px);
    padding-right: 14px;
  }

  .nav-links {
    gap: 4px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .nav-links a {
    padding: 0 clamp(6px, 0.8vw, 10px);
  }

  .nav-cta {
    padding: 0 18px;
  }

  .forecast-card {
    padding: 16px;
  }

  .forecast-meta-row {
    gap: 4px;
  }

  .forecast-meta-row span,
  .forecast-card.featured .forecast-meta-row span {
    padding: 0 5px;
    font-size: clamp(0.56rem, 0.55vw, 0.66rem);
  }

  .forecast-meta-row .forecast-pill-sun,
  .forecast-card.featured .forecast-meta-row .forecast-pill-sun {
    font-size: clamp(0.5rem, 0.48vw, 0.58rem);
  }

  .radar-primary-controls {
    grid-template-columns: auto auto minmax(180px, 1fr);
    gap: 6px;
  }

  .radar-primary-controls button {
    min-width: 72px;
    padding: 0 10px;
  }

  .radar-scrubber {
    min-width: min(280px, 30vw);
  }
}

@media (max-width: 1180px) {
  .forecast-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .forecast-card.featured {
    grid-column: span 2;
  }

  .forecast-card {
    min-height: 166px;
  }

  .forecast-card:not(.featured) {
    min-height: 160px;
  }

  .forecast-card strong {
    font-size: 1.55rem;
  }

  .forecast-meta-row span {
    font-size: 0.66rem;
  }

  .forecast-meta-row .forecast-pill-sun {
    font-size: 0.52rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: clamp(76px, 8vw, 82px);
    padding: 10px var(--edge-space);
  }

  .nav-links {
    display: none;
  }

  .nav-links.has-tropical-menu {
    display: flex;
    flex: 0 1 auto;
    justify-content: center;
    min-height: 52px;
    padding: 0 8px;
    border-width: 4px;
  }

  .nav-links.has-tropical-menu > a {
    display: none;
  }

  .nav-links.has-tropical-menu .nav-tropical {
    display: inline-flex;
  }

  .nav-links.has-tropical-menu .nav-tropical a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 10px;
  }

  .brand,
  .nav-cta {
    min-height: 52px;
    border-width: 4px;
  }

  .hero,
  .email-section {
    grid-template-columns: 1fr;
  }

  .home-tropical-card,
  .tropical-hero,
  .tropical-heading-row,
  .tropical-grid.two-column,
  .storm-product-grid {
    grid-template-columns: 1fr;
  }

  .storm-forecast-card {
    position: static;
  }

  .storm-forecast-copy,
  #storm-graphics {
    grid-template-columns: 1fr;
  }

  .tropical-heading-row {
    display: grid;
    align-items: start;
  }

  .section-storm-select {
    width: 100%;
  }

  .home-tropical-actions {
    min-width: 0;
  }

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

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

  .forecast-card {
    min-height: 158px;
  }

  .forecast-card:not(.featured) {
    min-height: 158px;
  }

  .forecast-card strong {
    font-size: 1.5rem;
  }

  .forecast-summary {
    font-size: 0.94rem;
  }

  .forecast-meta-row {
    gap: 5px;
  }

  .forecast-meta-row span {
    min-height: 26px;
  }

  .hourly-forecast {
    max-height: 82px;
    grid-template-columns: repeat(6, 1fr);
  }

  .hourly-forecast article:nth-child(6n) {
    border-right: 0;
  }

  .hourly-forecast article:nth-child(12n) {
    border-right: 0;
  }

  .hourly-forecast article:nth-last-child(-n + 12) {
    border-bottom: 1px solid var(--line);
  }

  .hourly-forecast article:nth-last-child(-n + 6) {
    border-bottom: 0;
  }

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

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

  .forecast-card.featured {
    grid-column: 1 / -1;
  }

  .forecast-card.featured .forecast-meta-row span {
    font-size: 0.62rem;
  }

  .forecast-card.featured .forecast-meta-row .forecast-pill-sun {
    font-size: 0.35rem;
  }

  .radar-map-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-primary-controls {
    grid-template-columns: auto auto minmax(180px, 1fr);
    width: 100%;
  }

  .radar-scrubber {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    max-width: 52vw;
    padding-right: 14px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 0 18px;
  }

  .hero,
  .content-band,
  .split-section,
  .radar-section {
    padding: var(--section-space-y-compact) var(--edge-space);
  }

  .hero-copy h1 {
    font-size: var(--hero-title-size);
  }

  .search-row,
  .home-tropical-card,
  .conditions-grid,
  .hourly-forecast,
  .detail-grid,
  .alerts-list,
  .scale-grid,
  .tropical-media-grid,
  #storm-graphics {
    grid-template-columns: 1fr;
  }

  .tropical-hero-panel strong {
    font-size: 3rem;
  }

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

  .forecast-card,
  .forecast-card.featured {
    min-height: 0;
  }

  .forecast-card strong {
    font-size: 1.75rem;
  }

  .forecast-card > span:not(.forecast-date) {
    flex: 0 0 auto;
  }

  .forecast-summary {
    margin-top: 4px;
  }

  .forecast-meta-row,
  .forecast-card.featured .forecast-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .forecast-meta-row span,
  .forecast-card.featured .forecast-meta-row span {
    min-height: clamp(26px, 7vw, 30px);
    padding: 0 8px;
    font-size: clamp(0.68rem, 2.8vw, 0.76rem);
  }

  .forecast-meta-row .forecast-pill-sun,
  .forecast-card.featured .forecast-meta-row .forecast-pill-sun {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  }

  .hourly-forecast {
    max-height: 82px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hourly-forecast article:nth-child(6n) {
    border-right: 1px solid var(--line);
  }

  .hourly-forecast article:nth-child(12n) {
    border-right: 1px solid var(--line);
  }

  .hourly-forecast article:nth-child(2n) {
    border-right: 0;
  }

  .hourly-forecast article:nth-last-child(-n + 6) {
    border-bottom: 1px solid var(--line);
  }

  .hourly-forecast article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .current-card {
    padding: var(--card-pad);
  }

  .card-topline,
  .condition-row,
  .email-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .condition-row strong {
    font-size: var(--current-temp-size);
  }

  .weather-icon {
    width: var(--weather-icon-size);
    height: var(--weather-icon-size);
  }

  .radar-map {
    height: var(--radar-height);
    min-height: var(--radar-height);
  }

  .radar-map .leaflet-container,
  .radar-map.leaflet-container {
    height: var(--radar-height);
    min-height: var(--radar-height);
  }

  .radar-map-controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }

  .radar-primary-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .radar-secondary-controls {
    width: auto;
    justify-content: end;
    margin-left: auto;
  }

  .radar-primary-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .radar-mode-toggle {
    grid-column: 2;
  }

  .radar-scrubber {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .radar-legend span {
    min-height: 30px;
    font-size: 0.72rem;
  }

  .email-section {
    margin: clamp(24px, 6vw, 54px) var(--edge-space);
    padding: var(--section-space-y-compact) var(--edge-space);
  }
}

.tropical-page {
  background: #f5f8fb;
}

.tropical-section-rail {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 10px var(--edge-space) 0;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.tropical-section-rail::-webkit-scrollbar {
  display: none;
}

.tropical-section-rail a {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: #536575;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(25, 40, 60, 0.07);
  font-size: 0.82rem;
  font-weight: 900;
}

.tropical-section-rail a:hover,
.tropical-section-rail a:focus-visible {
  border-color: rgba(48, 93, 137, 0.26);
  color: var(--blue-dark);
  background: #f3f6f9;
}

.tropical-page section[id] {
  scroll-margin-top: 98px;
}

.tropical-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: end;
  padding: clamp(28px, 3.5vw, 52px) var(--edge-space) clamp(20px, 2.6vw, 36px);
}

.tropical-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 3.2vw, 3.7rem);
  line-height: 1;
}

.tropical-hero p:not(.eyebrow),
.tropical-hero-panel label {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.tropical-hero-panel {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tropical-hero-panel p,
.tropical-hero-panel label {
  margin: 0;
  font-weight: 800;
}

.tropical-hero-panel strong {
  font-size: 3rem;
  line-height: 1;
}

.active-storm-stat {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.active-storm-stat p {
  color: var(--muted);
  font-size: 0.95rem;
}

.active-storm-stat strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.active-storm-jump {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.tropical-hero-panel select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
}

.tropical-hero-panel .active-storm-pill-select {
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: #f3f6f9;
  font-size: 0.82rem;
  font-weight: 900;
}

.tropical-grid,
.tropical-media-grid,
.scale-grid,
.storm-product-grid {
  display: grid;
  gap: 16px;
}

.tropical-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.tropical-grid.two-column,
.storm-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tropical-card,
.tropical-media-card,
.scale-card,
.tropical-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(25, 40, 60, 0.08);
}

.tropical-card,
.tropical-status {
  padding: 16px;
}

.tropical-card h3,
.tropical-media-card h3,
.scale-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.tropical-card p,
.tropical-media-card p,
.scale-card p {
  color: var(--muted);
  line-height: 1.5;
}

.tropical-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tropical-card-top span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.storm-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.storm-card-title h3 {
  min-width: 0;
}

.storm-card-title span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid color-mix(in srgb, var(--scale-accent) 28%, #cfdbe6);
  border-radius: 999px;
  padding: 0 9px;
  color: color-mix(in srgb, var(--scale-accent) 70%, #122033);
  background: var(--scale-bg);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.tropical-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.tropical-button,
.tropical-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 850;
}

.tropical-button {
  padding: 0 14px;
  color: var(--white);
  background: var(--blue-dark);
}

.tropical-link {
  color: var(--blue-dark);
}

.tropical-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

#tropical-outlooks {
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
}

.surface-graphics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storm-dashboard-section {
  padding-top: clamp(18px, 2vw, 30px);
}

#storm-graphics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  max-width: none;
  margin-inline: 0;
}

.tropical-media-card {
  overflow: hidden;
  background: #fff;
}

.storm-graphic-card {
  padding: 8px;
}

.storm-graphic-card.is-featured {
  grid-column: auto;
  max-width: none;
  justify-self: stretch;
}

.storm-graphic-card h3 {
  margin: 0 0 8px;
  padding: 0 2px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.15;
}

.tropical-media-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.storm-graphic-card img {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 300px;
  object-fit: contain;
}

.storm-graphic-card:not(.is-featured) img {
  max-height: 300px;
  object-fit: contain;
}

.storm-forecast-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(25, 40, 60, 0.08);
}

.storm-forecast-top {
  margin-bottom: 10px;
}

.storm-forecast-top h2,
.storm-forecast-top p {
  margin: 0;
}

.storm-forecast-top h2 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.storm-forecast-copy {
  max-width: 1180px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.storm-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.storm-summary-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  border: 1px solid #cfdbe6;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(25, 40, 60, 0.055);
}

.storm-summary-pill small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.storm-summary-pill strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.storm-summary-pill.is-category {
  border-color: color-mix(in srgb, var(--scale-accent) 28%, #cfdbe6);
  color: color-mix(in srgb, var(--scale-accent) 70%, #122033);
  background: var(--scale-bg);
}

.storm-summary-pill.is-category strong {
  color: color-mix(in srgb, var(--scale-accent) 72%, #122033);
}

.storm-forecast-card .tropical-link {
  margin-top: 12px;
}

.storm-sources {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.storm-sources p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storm-sources div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storm-sources a {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.storm-graphic-card .storm-graphic-fallback {
  display: none;
}

.storm-graphic-card.is-link-only .storm-graphic-fallback {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  background: #f3f6f9;
  font-size: 0.95rem;
  font-weight: 900;
}

.tropical-media-card div {
  padding: 12px;
}

.scale-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.scale-card {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 76px;
  overflow: hidden;
  padding: 10px 11px 10px 18px;
  color: var(--ink);
  border-color: #d7e1ea;
  box-shadow: 0 10px 24px rgba(25, 40, 60, 0.06);
}

.scale-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--scale-accent);
}

.scale-card h3 {
  color: var(--ink);
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  font-weight: 900;
  line-height: 1.08;
}

.scale-card span {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--scale-accent) 28%, #cfdbe6);
  border-radius: 999px;
  padding: 0 8px;
  color: color-mix(in srgb, var(--scale-accent) 70%, #122033);
  background: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.62rem, 0.76vw, 0.68rem);
  font-weight: 900;
  white-space: nowrap;
}

.tropical-page .content-band {
  padding-top: clamp(24px, 2.8vw, 40px);
  padding-bottom: clamp(24px, 2.8vw, 40px);
}

.tropical-page .section-heading {
  margin-bottom: 14px;
}

.tropical-page .section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
}

.tropical-page .section-heading p:not(.eyebrow) {
  margin-top: 8px;
  line-height: 1.45;
}

.tropical-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  max-width: 100%;
}

.section-storm-select {
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.scale-card.cat-ts,
.storm-card-title span.cat-ts,
.storm-summary-pill.cat-ts { --scale-accent: #2f7d72; --scale-bg: #eef7f5; }
.scale-card.cat-1,
.storm-card-title span.cat-1,
.storm-summary-pill.cat-1 { --scale-accent: #b78b22; --scale-bg: #fbf6e8; }
.scale-card.cat-2,
.storm-card-title span.cat-2,
.storm-summary-pill.cat-2 { --scale-accent: #b9702e; --scale-bg: #fbf0e6; }
.scale-card.cat-3,
.storm-card-title span.cat-3,
.storm-summary-pill.cat-3 { --scale-accent: #b65450; --scale-bg: #faeceb; }
.scale-card.cat-4,
.storm-card-title span.cat-4,
.storm-summary-pill.cat-4 { --scale-accent: #8f5576; --scale-bg: #f5edf2; }
.scale-card.cat-5,
.storm-card-title span.cat-5,
.storm-summary-pill.cat-5 { --scale-accent: #66528c; --scale-bg: #f0eef7; }

.scale-card.cat-ts { background: var(--scale-bg); }
.scale-card.cat-1 { background: var(--scale-bg); }
.scale-card.cat-2 { background: var(--scale-bg); }
.scale-card.cat-3 { background: var(--scale-bg); }
.scale-card.cat-4 { background: var(--scale-bg); }
.scale-card.cat-5 { background: var(--scale-bg); }

.product-card pre {
  max-height: 420px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 8px;
  color: #dbeafe;
  background: #111827;
  font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.storm-graphic-card[hidden] {
  display: none;
}

.storm-hero .tropical-hero-panel {
  align-self: stretch;
  align-content: center;
}

.tropical-archive {
  margin-inline: var(--edge-space);
}

@media (min-width: 1180px) {
  .tropical-page:not(.storm-page) main,
  .tropical-page:not(.storm-page) .site-footer {
    padding-left: 92px;
  }

  .tropical-section-rail {
    position: fixed;
    inset: 116px auto auto 16px;
    display: grid;
    gap: 10px;
    width: 78px;
    max-height: calc(100vh - 138px);
    margin: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .tropical-section-rail a {
    min-height: 52px;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: none;
    text-align: center;
    white-space: normal;
    line-height: 1.12;
  }
}

@media (max-width: 640px) {
  .surface-graphics-grid {
    grid-template-columns: 1fr;
  }
}

.signup-page,
.text-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.55fr);
  gap: 48px;
  align-items: start;
  min-height: calc(100vh - 164px);
  padding: var(--section-space-y) var(--edge-space);
}

.signup-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  gap: 48px;
  align-items: center;
  padding: var(--section-space-y) var(--edge-space) var(--section-space-y-compact);
}

.signup-hero .signup-copy h1 {
  max-width: 780px;
}

.signup-card {
  align-self: start;
}

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

.form-heading h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.form-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.signup-detail-band {
  padding: clamp(18px, 2vw, 26px) var(--edge-space) var(--section-space-y);
}

.text-page {
  display: block;
  max-width: 860px;
}

.signup-copy h1,
.text-page h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.signup-copy p:not(.eyebrow),
.text-page p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.signup-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signup-form.is-coming-soon {
  overflow: hidden;
}

.signup-form.is-coming-soon > *:not(.coming-soon-film) {
  filter: saturate(0.72);
}

.signup-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.signup-form input[type="email"],
.signup-form input[type="text"] {
  min-height: 48px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.signup-form input:disabled,
.signup-form button:disabled,
.checkbox-row input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.checkbox-row input {
  margin-top: 2px;
}

.signup-form button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.coming-soon-film {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(3px);
}

.coming-soon-film span {
  display: block;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-status {
  display: none;
  margin: 6px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(27, 127, 100, 0.28);
  border-radius: 8px;
  color: #0f5945;
  background: rgba(27, 127, 100, 0.1);
  font-weight: 700;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .signup-page,
  .signup-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .signup-page,
  .signup-hero,
  .text-page {
    padding: var(--section-space-y-compact) var(--edge-space);
  }

  .signup-detail-band {
    padding: clamp(16px, 4vw, 26px) var(--edge-space) var(--section-space-y-compact);
  }
}

.page-shell {
  min-height: calc(100vh - 72px);
}

.page-heading {
  padding: var(--section-space-y) var(--edge-space) 8px;
  margin-bottom: 0;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.compact-band {
  padding-top: 28px;
}

.alert-card.no-alerts {
  border-left-color: var(--green);
}

.alert-card.warning-active > div:first-child p {
  animation: alert-title-pulse 2.45s ease-in-out infinite;
}

@keyframes alert-title-pulse {
  0%,
  100% {
    color: var(--alert-title-color);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  50% {
    color: var(--alert-color);
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.92),
      0 0 18px var(--alert-color),
      0 0 30px var(--alert-color-soft);
  }
}

@media (max-width: 640px) {
  .page-heading {
    padding-left: var(--edge-space);
    padding-right: var(--edge-space);
  }
}

@media (max-width: 640px) {
  :root {
    --edge-space: clamp(14px, 4.5vw, 20px);
    --section-space-y: 34px;
    --section-space-y-compact: 28px;
    --hero-title-size: clamp(2.25rem, 10vw, 3.25rem);
    --current-temp-size: clamp(3.25rem, 14vw, 4.2rem);
    --weather-icon-size: clamp(76px, 22vw, 96px);
    --radar-height: min(620px, 82svh);
  }

  html {
    scroll-padding-top: 128px;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) var(--edge-space) 8px;
  }

  .location-picker,
  .brand-home {
    flex: 1 1 100%;
    width: 100%;
  }

  .brand {
    width: 100%;
    max-width: none;
    min-height: 46px;
    border-width: 1px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links.has-tropical-menu,
  .nav-cta {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
    border-width: 1px;
  }

  .nav-links.has-tropical-menu {
    padding: 0;
  }

  .nav-links.has-tropical-menu .nav-tropical,
  .nav-links.has-tropical-menu .nav-tropical a,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-tropical-menu {
    left: 0;
    right: auto;
    min-width: min(220px, 88vw);
    transform: translate(0, -4px);
  }

  .nav-tropical:hover .nav-tropical-menu,
  .nav-tropical:focus-within .nav-tropical-menu {
    transform: translate(0, 0);
  }

  .hero {
    gap: 32px;
    padding-top: 30px;
  }

  .hero-copy h1,
  .signup-copy h1,
  .about-page-section .section-heading h1 {
    line-height: 1.02;
  }

  .hero-text {
    margin: 18px 0 22px;
    line-height: 1.55;
  }

  .search-panel,
  .current-card,
  .forecast-card,
  .alert-card,
  .detail-card,
  .about-card,
  .signup-form {
    border-radius: 8px;
  }

  .search-row button,
  .search-row input,
  .location-menu-search input,
  .location-menu-search button,
  .signup-form input[type="email"],
  .signup-form input[type="text"],
  .signup-form button {
    min-height: 46px;
  }

  .current-card {
    margin-top: 42px;
  }

  .current-brand-lockup {
    top: -10px;
    right: 0;
    gap: 7px;
    font-size: 0.82rem;
  }

  .current-brand-lockup img {
    width: 26px;
    height: 26px;
  }

  .card-topline {
    gap: 8px;
  }

  .card-topline h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .conditions-grid {
    gap: 8px;
  }

  .conditions-grid div {
    min-height: 86px;
  }

  .hourly-forecast {
    max-height: 92px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-card {
    gap: 12px;
  }

  .forecast-summary {
    line-height: 1.35;
  }

  .alerts-list {
    gap: 12px;
  }

  .radar-section {
    padding-inline: 0;
  }

  .radar-section > .section-heading {
    padding-inline: var(--edge-space);
  }

  .radar-shell,
  .radar-map {
    border-radius: 0;
  }

  .radar-layer-menu {
    left: 12px;
    top: 12px;
  }

  .radar-menu-button {
    min-height: 44px;
    padding: 0 18px;
  }

  .radar-layer-panel {
    width: min(340px, calc(100vw - 24px));
    max-height: min(560px, calc(100svh - 160px));
  }

  .radar-map-controls {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 8px;
    padding: 8px;
  }

  .radar-primary-controls,
  .radar-secondary-controls {
    gap: 6px;
  }

  .radar-primary-controls button,
  .radar-mode-toggle button,
  .radar-zoom-controls button {
    min-height: 44px;
  }

  .radar-speed-control {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .radar-secondary-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: min(100%, 360px);
  }

  .radar-legend {
    grid-column: 1 / -1;
    justify-self: end;
    max-width: 100%;
    padding: 8px 10px;
  }

  .radar-opacity-control {
    min-width: 0;
  }

  .radar-spc-legend {
    top: 12px;
    right: 12px;
    left: auto;
    max-width: min(280px, calc(100vw - 24px));
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .email-section {
    margin-inline: var(--edge-space);
  }

  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .nav-cta,
  .nav-links.has-tropical-menu .nav-tropical a {
    font-size: 0.9rem;
  }

  .forecast-meta-row,
  .forecast-card.featured .forecast-meta-row {
    grid-template-columns: 1fr 1fr;
  }

  .radar-primary-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .radar-primary-controls > button {
    min-width: 80px;
  }

  .radar-mode-toggle {
    min-width: 0;
  }

  .radar-mode-toggle button {
    min-width: 0;
    padding-inline: 10px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 16px;
  }

  .site-header {
    position: relative;
    top: auto;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top)) var(--edge-space) 12px;
  }

  .location-picker,
  .brand-home {
    width: 100%;
  }

  .brand {
    min-height: 46px;
    max-width: none;
    padding: 0 14px 0 7px;
    border-width: 1px;
  }

  .nav-links,
  .nav-links.has-tropical-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-height: 0;
    padding: 6px;
    gap: 6px;
    border-width: 1px;
    border-radius: 18px;
    overflow: visible;
    font-size: 0.78rem;
  }

  .nav-links > a,
  .nav-links.has-tropical-menu > a,
  .nav-links.has-tropical-menu .nav-tropical,
  .nav-links.has-tropical-menu .nav-tropical a {
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    justify-content: center;
    padding: 0 8px;
  }

  .nav-links .nav-tropical {
    min-height: 38px;
  }

  .nav-tropical-menu {
    left: 0;
    min-width: 180px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    gap: 18px;
    padding-top: 12px;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-text {
    display: none;
  }

  .search-panel {
    padding: 14px;
  }

  .current-card {
    margin-top: 34px;
    padding: 18px;
  }

  .current-brand-lockup {
    top: -8px;
    right: 2px;
    transform: translateY(-100%);
    font-size: 0.8rem;
  }

  .current-brand-lockup img {
    width: 26px;
    height: 26px;
  }

  .card-topline {
    display: flex;
    gap: 10px;
  }

  .card-topline h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    line-height: 1.05;
  }

  .card-topline span {
    font-size: 0.88rem;
  }

  .condition-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
  }

  .condition-row strong {
    font-size: clamp(3rem, 17vw, 4.25rem);
  }

  .condition-row p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.98rem;
  }

  .condition-uv {
    margin-top: 0;
  }

  .weather-icon {
    width: clamp(72px, 23vw, 92px);
    height: clamp(72px, 23vw, 92px);
  }

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

  .conditions-grid div {
    min-height: 82px;
    padding: 14px;
  }

  .forecast-grid {
    gap: 12px;
  }

  .forecast-card,
  .forecast-card.featured,
  .forecast-card:not(.featured) {
    min-height: 0;
    padding: 16px;
    gap: 12px;
  }

  .forecast-card.featured h3 {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .forecast-card strong {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .forecast-card > span:not(.forecast-date),
  .forecast-summary {
    margin: 0;
    min-height: 0;
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .forecast-meta-row,
  .forecast-card.featured .forecast-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .forecast-meta-row span,
  .forecast-card.featured .forecast-meta-row span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .hourly-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 170px;
  }

  .hourly-forecast article {
    min-height: 84px;
  }

  .section-heading h2,
  .email-section h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1.05;
  }

  #forecast > .section-heading,
  #alerts > .section-heading,
  #radar > .section-heading {
    display: none;
  }

  .radar-section {
    padding-inline: 0;
  }

  .radar-section > .section-heading {
    padding-inline: var(--edge-space);
  }

  .radar-map {
    height: min(620px, 78svh);
    min-height: 520px;
  }

  .radar-map-controls {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 8px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .radar-primary-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(24, 29, 38, 0.78);
    backdrop-filter: blur(8px);
  }

  .radar-primary-controls > button {
    min-width: 72px;
    min-height: 40px;
    padding: 0 12px;
  }

  .radar-mode-toggle {
    grid-column: 2;
    min-width: 0;
  }

  .radar-mode-toggle button {
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .radar-speed-control {
    display: none;
  }

  .radar-scrubber {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }

  .radar-secondary-controls,
  .radar-spc-legend,
  .radar-legend,
  .radar-opacity-control,
  .radar-zoom-controls {
    display: none;
  }

  .radar-spc-legend {
    top: 12px;
    right: 12px;
    max-width: min(300px, calc(100vw - 24px));
  }
}

.tropical-section-rail {
  display: none;
}

@media (max-width: 640px) {
  :root {
    --card-pad: 12px;
    --section-space-y: 22px;
    --section-space-y-compact: 18px;
  }

  .content-band {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero {
    padding-bottom: 16px;
  }

  .search-panel {
    padding: 12px;
    gap: 8px;
  }

  .search-panel label {
    font-size: 0.82rem;
  }

  .search-panel input {
    min-height: 42px;
    padding: 0 12px;
    font-size: 1rem;
  }

  .search-panel button {
    min-height: 42px;
    font-size: 0.96rem;
  }

  .current-card {
    margin-top: 28px;
    padding: 12px;
  }

  .current-brand-lockup {
    top: -6px;
    font-size: 0.72rem;
  }

  .current-brand-lockup img {
    width: 22px;
    height: 22px;
  }

  .card-topline {
    gap: 8px;
  }

  .card-label {
    font-size: 0.68rem;
  }

  .card-topline h2 {
    font-size: clamp(1.25rem, 6.4vw, 1.65rem);
  }

  .card-topline span {
    font-size: 0.72rem;
  }

  .condition-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
  }

  .condition-row strong {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .condition-row p {
    gap: 4px 8px;
    font-size: 0.8rem;
  }

  .condition-uv {
    min-height: 20px;
    padding-inline: 8px;
  }

  .weather-icon {
    width: clamp(52px, 16vw, 66px);
    height: clamp(52px, 16vw, 66px);
  }

  .conditions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .conditions-grid div {
    min-height: 54px;
    padding: 8px 6px;
  }

  .conditions-grid p {
    font-size: 0.62rem;
  }

  .conditions-grid strong {
    font-size: 0.92rem;
  }

  .hourly-forecast {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-height: 70px;
    overflow-y: auto;
    padding-right: 7px;
    scrollbar-color: #8fa2b4 #e7edf3;
    scrollbar-width: thin;
  }

  .hourly-forecast::-webkit-scrollbar {
    width: 8px;
  }

  .hourly-forecast::-webkit-scrollbar-track {
    background: #e7edf3;
    border-radius: 999px;
  }

  .hourly-forecast::-webkit-scrollbar-thumb {
    border: 2px solid #e7edf3;
    border-radius: 999px;
    background: #8fa2b4;
  }

  .hourly-forecast article {
    min-height: 68px;
    padding: 5px 4px;
  }

  .hourly-forecast article:nth-child(2n),
  .hourly-forecast article:nth-child(12n) {
    border-right: 1px solid var(--line);
  }

  .hourly-forecast article:nth-child(6n) {
    border-right: 0;
  }

  .hourly-forecast article:nth-last-child(-n + 6) {
    border-bottom: 0;
  }

  .hourly-forecast p {
    font-size: 0.52rem;
  }

  .hourly-forecast strong {
    margin-top: 2px;
    font-size: 0.98rem;
  }

  .hourly-forecast span,
  .hourly-forecast small {
    margin-top: 1px;
    font-size: 0.52rem;
    line-height: 1.1;
  }

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

  .forecast-card,
  .forecast-card.featured,
  .forecast-card:not(.featured) {
    grid-column: auto;
    min-height: 142px;
    padding: 10px;
    gap: 6px;
  }

  .forecast-card p {
    font-size: 0.76rem;
  }

  .forecast-date {
    top: 10px;
    right: 10px;
    font-size: 0.66rem;
  }

  .forecast-card.featured h3 {
    margin-top: 4px;
    font-size: 0.98rem;
  }

  .forecast-card strong {
    margin: 8px 0 2px;
    font-size: clamp(1.25rem, 7.2vw, 1.9rem);
    line-height: 1;
  }

  .forecast-card > span:not(.forecast-date),
  .forecast-summary {
    font-size: 0.7rem;
    line-height: 1.18;
  }

  .forecast-risk-row {
    min-height: 20px;
    margin-top: 2px;
  }

  .forecast-risk-row .spc-risk-badge {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.52rem;
  }

  .forecast-meta-row,
  .forecast-card.featured .forecast-meta-row {
    gap: 4px;
    margin-top: auto;
  }

  .forecast-meta-row span,
  .forecast-card.featured .forecast-meta-row span {
    min-height: 21px;
    padding: 0 4px;
    font-size: 0.54rem;
  }

  .forecast-meta-row .forecast-pill-sun,
  .forecast-card.featured .forecast-meta-row .forecast-pill-sun {
    font-size: 0.48rem;
  }

  .detail-grid {
    display: none;
  }

  .radar-map {
    height: min(520px, 70svh);
    min-height: 420px;
  }

  .radar-map-controls {
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
  }

  .radar-primary-controls {
    display: contents;
    width: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .radar-primary-controls > button,
  .radar-mode-toggle button {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .radar-primary-controls > button {
    position: absolute;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 48px;
    pointer-events: auto;
  }

  .radar-mode-toggle {
    position: absolute;
    left: 62px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    width: 104px;
    gap: 4px;
    padding: 0;
    background: transparent;
    pointer-events: auto;
  }

  .radar-scrubber {
    position: absolute;
    left: 62%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    width: min(38vw, 170px);
    min-width: 132px;
    min-height: 34px;
    gap: 5px;
    padding: 4px 7px;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .radar-scrubber .radar-time-pill {
    min-width: 50px;
    min-height: 26px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .radar-scrubber input {
    min-width: 0;
    height: 20px;
  }

  .radar-speed-control {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 620;
    display: flex;
    min-height: 34px;
    gap: 6px;
    padding: 5px 7px 5px 10px;
    border-radius: 999px;
    background: rgba(24, 29, 38, 0.82);
    pointer-events: auto;
  }

  .radar-speed-control span {
    font-size: 0.72rem;
  }

  .radar-speed-control select {
    min-height: 24px;
    max-width: 82px;
    font-size: 0.72rem;
  }

  .tropical-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .tropical-hero p:not(.eyebrow) {
    display: none;
  }

  .tropical-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .tropical-hero-panel {
    padding: 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .radar-secondary-controls,
  .radar-spc-legend,
  .radar-legend,
  .radar-opacity-control,
  .radar-zoom-controls,
  .radar-speed-control,
  .radar-scrubber {
    display: none !important;
  }

  .radar-map-controls {
    left: 10px;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .radar-primary-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 62px));
    width: max-content;
    gap: 5px;
    padding: 6px;
    border-radius: 14px;
  }

  .radar-mode-toggle {
    display: contents;
  }

  .radar-primary-controls > button,
  .radar-mode-toggle button {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.78rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .radar-map-controls {
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
  }

  .radar-primary-controls {
    display: contents;
    width: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .radar-primary-controls > button {
    position: absolute;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 54px;
    pointer-events: auto;
  }

  .radar-mode-toggle {
    position: absolute;
    left: 68px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    width: 112px;
    gap: 4px;
    padding: 0;
    background: transparent;
    pointer-events: auto;
  }

  .radar-scrubber {
    position: absolute;
    left: 62%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex !important;
    width: min(38vw, 170px);
    min-width: 132px;
    min-height: 34px;
    gap: 5px;
    padding: 4px 7px;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .radar-speed-control {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 620;
    display: flex !important;
    min-height: 34px;
    gap: 6px;
    padding: 5px 7px 5px 10px;
    border-radius: 999px;
    background: rgba(24, 29, 38, 0.82);
    pointer-events: auto;
  }

  .radar-speed-control span {
    font-size: 0.72rem;
  }

  .radar-speed-control select {
    min-height: 24px;
    max-width: 82px;
    font-size: 0.72rem;
  }

  .nav-links.has-tropical-menu .nav-tropical-menu {
    display: none !important;
  }

  .nav-links.has-tropical-menu .nav-tropical {
    pointer-events: auto;
  }

  .nav-links.has-tropical-menu .nav-tropical a {
    pointer-events: auto;
  }

  .storm-page #storm-graphics,
  .storm-page .storm-product-grid {
    grid-template-columns: 1fr !important;
  }

  .storm-page .storm-graphic-card img,
  .storm-page .storm-graphic-card:not(.is-featured) img {
    max-height: none;
    width: 100%;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .radar-map .radar-speed-control {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 900 !important;
    display: flex !important;
    width: auto !important;
    min-height: 34px;
    gap: 6px;
    padding: 5px 7px 5px 10px;
    border-radius: 999px;
    background: rgba(24, 29, 38, 0.86);
    pointer-events: auto;
  }

  .forecast-grid .forecast-card:nth-child(6) {
    display: flex !important;
    visibility: visible !important;
  }
}
