:root {
  --bg-top: #f6efe0;
  --bg-mid: #dee8ef;
  --bg-bottom: #c6d5de;
  --ink: #0f2230;
  --muted: #4f6777;
  --panel: rgba(252, 250, 244, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(15, 34, 48, 0.1);
  --shadow: 0 20px 60px rgba(24, 47, 62, 0.14);
  --accent: #0e8c8f;
  --accent-soft: rgba(14, 140, 143, 0.14);
  --storm-red: #b8342f;
  --storm-orange: #db7a22;
  --storm-gold: #d7aa21;
  --storm-blue: #2d6cc4;
  --storm-cyan: #0c92b8;
  --storm-teal: #168f83;
  --storm-purple: #6d3caa;
  --storm-slate: #385468;
  --good: #1f8f57;
  --warn: #b4611f;
  --danger: #bf3d39;
  --leaflet-popup-content-wrapper: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(247, 183, 63, 0.18), transparent 24%),
    linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(300deg, rgba(22, 143, 131, 0.08), transparent 42%);
  opacity: 0.9;
}

a {
  color: var(--storm-blue);
}

button,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 2rem));
  margin: 1.1rem auto 2rem;
  padding-bottom: 15.5rem;
}

.hero,
.panel,
.summary-card,
.card-surface,
.source-card {
  backdrop-filter: blur(16px);
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.local-status {
  margin-bottom: 1rem;
}

.local-status__bar,
.local-ticker {
  backdrop-filter: blur(16px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.local-status__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 24px;
  border-left: 12px solid rgba(15, 34, 48, 0.16);
}

.local-status__bar--green {
  border-left-color: var(--good);
}

.local-status__bar--orange {
  border-left-color: var(--storm-orange);
}

.local-status__bar--red {
  border-left-color: var(--danger);
}

.local-status__bar--loading {
  border-left-color: rgba(15, 34, 48, 0.22);
}

.local-status__detail {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.local-status__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.local-status__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-status__pill--green {
  color: #fff;
  background: var(--good);
}

.local-status__pill--orange {
  color: #fff;
  background: var(--storm-orange);
}

.local-status__pill--red {
  color: #fff;
  background: var(--danger);
}

.local-status__pill--loading {
  color: var(--storm-slate);
  background: rgba(15, 34, 48, 0.08);
}

.local-ticker {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 20px;
}

.local-ticker__track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.local-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 34, 48, 0.08);
  color: var(--storm-slate);
  font-size: 0.88rem;
  line-height: 1.3;
}

.local-ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.aviation-strip {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 25;
  width: min(1500px, calc(100% - 2rem));
  margin: 0;
}

.aviation-ticker {
  backdrop-filter: blur(16px);
  background: rgba(252, 250, 244, 0.92);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.aviation-ticker {
  padding: 0.8rem;
  border-radius: 22px;
  overflow: hidden;
  scrollbar-width: none;
}

.aviation-ticker__track {
  display: flex;
  min-width: max-content;
  will-change: transform;
  animation: aviation-ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

.aviation-ticker__track:hover {
  animation-play-state: paused;
}

.aviation-ticker__group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.aviation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 0.92rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 34, 48, 0.08);
  box-shadow: 0 10px 24px rgba(15, 34, 48, 0.06);
  white-space: nowrap;
}

.aviation-chip__code {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.aviation-chip__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.aviation-chip__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.9rem;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aviation-chip__cat--vfr {
  background: rgba(31, 143, 87, 0.16);
  color: var(--good);
}

.aviation-chip__cat--mvfr {
  background: rgba(45, 108, 196, 0.14);
  color: var(--storm-blue);
}

.aviation-chip__cat--ifr {
  background: rgba(219, 122, 34, 0.16);
  color: var(--storm-orange);
}

.aviation-chip__cat--lifr {
  background: rgba(191, 61, 57, 0.16);
  color: var(--danger);
}

.aviation-chip__cat--unk {
  background: rgba(15, 34, 48, 0.08);
  color: var(--storm-slate);
}

.aviation-ticker::-webkit-scrollbar {
  display: none;
}

@keyframes aviation-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--ticker-shift, -50%));
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.95fr);
  gap: 1.5rem;
  padding: 1.6rem;
  border-radius: 28px;
}

.hero__copy {
  position: relative;
  overflow: hidden;
  padding-right: 1rem;
}

.hero__copy::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 122, 34, 0.22), transparent 66%);
  filter: blur(8px);
}

.eyebrow,
.panel__eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.hero__lede {
  max-width: 68ch;
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero__meta {
  display: grid;
  gap: 1rem;
}

.meta-block {
  padding: 1rem;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(15, 34, 48, 0.08);
}

.meta-block__label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--storm-slate);
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.custom-scope {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(15, 34, 48, 0.08);
}

.custom-scope__inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 0.75rem;
}

.custom-scope__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.custom-scope__status {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.scope-button,
.action-button,
.ghost-button,
.toggle-chip,
select {
  border-radius: 999px;
  border: 1px solid rgba(15, 34, 48, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.scope-button,
.action-button,
.ghost-button {
  cursor: pointer;
}

.scope-button {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.68);
  color: var(--storm-slate);
  font-weight: 600;
}

.scope-button:hover,
.action-button:hover,
.ghost-button:hover,
.toggle-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 34, 48, 0.08);
}

.scope-button.is-active {
  border-color: rgba(14, 140, 143, 0.5);
  background: linear-gradient(135deg, rgba(14, 140, 143, 0.14), rgba(14, 140, 143, 0.03));
  color: var(--ink);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 0.85rem;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  font-weight: 600;
}

.toggle-chip input {
  margin: 0;
  accent-color: var(--accent);
}

.meta-block--actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--storm-slate);
}

select {
  width: 100%;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.action-button {
  padding: 0.82rem 1.1rem;
  background: linear-gradient(135deg, #112a3d, #1f4e63);
  color: #f7f8f9;
  font-weight: 700;
}

.ghost-button {
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 600;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  grid-column: 1 / -1;
  padding-top: 0.2rem;
}

.status-row__time {
  color: var(--muted);
  font-size: 0.95rem;
}

.feed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 34, 48, 0.08);
}

.feed-pill.is-loading {
  color: var(--warn);
  background: rgba(180, 97, 31, 0.12);
}

.feed-pill.is-ok {
  color: var(--good);
  background: rgba(31, 143, 87, 0.12);
}

.feed-pill.is-warn {
  color: var(--danger);
  background: rgba(191, 61, 57, 0.12);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.summary-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(15, 34, 48, 0.08);
}

.summary-card__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--storm-slate);
}

.summary-card__value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.summary-card__detail {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.dashboard-grid {
  display: block;
  width: 100%;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.panel {
  border-radius: 28px;
  padding: 1.15rem;
}

.panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel__header--tight {
  align-items: center;
}

.panel__subtle {
  margin: 0;
  max-width: 26ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: right;
}

.panel--map {
  display: block;
  width: 100%;
  overflow: hidden;
}

.panel--alerts-wide {
  grid-column: 1 / -1;
}

#map {
  width: 100%;
  min-height: 670px;
  border-radius: 22px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  overflow: hidden;
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.stack-list {
  display: grid;
  gap: 0.8rem;
}

.stack-card {
  padding: 0.92rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.stack-card__top,
.stack-card__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stack-card__meta {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.stack-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.stack-card__body {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tag,
.severity-tag,
.outlook-tag,
.metric-badge,
.storm-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tag,
.severity-tag,
.outlook-tag,
.metric-badge {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.tag--tornado,
.severity-tag--extreme,
.outlook-tag--high {
  color: #fff;
  background: var(--storm-red);
}

.tag--severe,
.outlook-tag--enh {
  color: #fff;
  background: var(--storm-orange);
}

.tag--watch,
.outlook-tag--slgt,
.outlook-tag--mrgl {
  color: #fff;
  background: var(--storm-gold);
}

.tag--flood,
.outlook-tag--none {
  color: #fff;
  background: var(--storm-blue);
}

.tag--wind {
  color: #fff;
  background: var(--storm-cyan);
}

.tag--hail {
  color: #fff;
  background: var(--storm-purple);
}

.tag--tropical {
  color: #fff;
  background: var(--storm-teal);
}

.metric-badge {
  color: var(--storm-slate);
  background: rgba(15, 34, 48, 0.08);
}

.severity-tag--severe {
  color: #fff;
  background: var(--storm-orange);
}

.severity-tag--moderate {
  color: #fff;
  background: var(--storm-blue);
}

.severity-tag--minor {
  color: var(--ink);
  background: rgba(15, 34, 48, 0.08);
}

.map-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 1rem;
  margin-top: 1rem;
}

.legend-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legend-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.legend-swatch--tornado {
  background: var(--storm-red);
}

.legend-swatch--severe {
  background: var(--storm-orange);
}

.legend-swatch--flood {
  background: var(--storm-blue);
}

.legend-swatch--hail {
  background: var(--storm-purple);
}

.legend-swatch--wind {
  background: var(--storm-cyan);
}

.legend-swatch--storm {
  background: var(--storm-teal);
}

.legend-swatch--river {
  background: var(--storm-blue);
}

.legend-swatch--lightning {
  background: #c445ff;
}

.radar-legend {
  display: grid;
  gap: 0.4rem;
}

.radar-legend__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--storm-slate);
}

.radar-legend img {
  max-width: 100%;
  min-height: 24px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.briefing-top,
.briefing-grid,
.sounding-top,
.sources-grid {
  display: grid;
  gap: 1rem;
}

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

.briefing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.panel--reports-wide {
  margin-top: 1rem;
}

.card-surface,
.source-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.subpanel__header {
  margin-bottom: 0.85rem;
}

.subpanel__header h3 {
  font-size: 1.08rem;
}

.subpanel__header p,
.source-card p,
.source-card h3,
.footer-note {
  margin: 0.35rem 0 0;
}

.subpanel__header p,
.source-card p,
.footer-note {
  color: var(--muted);
  line-height: 1.55;
}

.current-grid,
.metric-card-grid,
.metric-mini-grid {
  display: grid;
  gap: 0.8rem;
}

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

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

.metric-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1rem;
}

.metric-mini-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.metric-card,
.mini-metric {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(14, 140, 143, 0.06);
  border: 1px solid rgba(14, 140, 143, 0.14);
}

.metric-card strong,
.mini-metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  line-height: 1.1;
}

.metric-card span,
.mini-metric span,
.muted-copy,
.small-copy {
  color: var(--muted);
}

.small-copy {
  font-size: 0.88rem;
  line-height: 1.45;
}

.outlook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.7rem;
}

.signal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.signal-watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  align-content: start;
}

.hazard-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hazard-card {
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: linear-gradient(135deg, rgba(14, 140, 143, 0.08), rgba(255, 255, 255, 0.92));
}

.hazard-card strong,
.hydro-card__value,
.product-card__headline {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.hazard-card strong {
  font-size: 1.15rem;
}

.hazard-card span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.watch-compact-card {
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(249, 248, 244, 0.96);
}

.watch-compact-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.watch-compact-card__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.watch-compact-card__body {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.watch-compact-card__meta,
.stack-card__chips,
.stack-card__metrics,
.product-card__meta,
.hydro-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.stack-card__details {
  margin-top: 0.75rem;
}

.outlook-card {
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(249, 248, 244, 0.96);
}

.outlook-card__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--storm-slate);
}

.outlook-card__time {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.outlook-card .small-copy {
  margin: 0.55rem 0 0;
}

.hourly-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hydro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hourly-card {
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 34, 48, 0.08);
}

.hourly-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.hourly-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.header-controls {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.sounding-chart {
  min-height: 430px;
}

.sounding-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.sounding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sounding-table th,
.sounding-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(15, 34, 48, 0.08);
  text-align: left;
}

.sounding-table th {
  color: var(--storm-slate);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.source-card h3 {
  font-size: 1.02rem;
}

.product-card,
.hydro-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.product-card__headline {
  font-size: 1.1rem;
  line-height: 1.05;
}

.product-card__body {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.product-highlights {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--ink);
}

.product-highlights li + li {
  margin-top: 0.35rem;
}

.product-details {
  margin-top: 0.85rem;
}

.product-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--storm-slate);
}

.product-pre {
  margin: 0.8rem 0 0;
  padding: 0.85rem;
  max-height: 280px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(15, 34, 48, 0.06);
  color: var(--ink);
  font: 0.82rem/1.45 "IBM Plex Sans", sans-serif;
  white-space: pre-wrap;
}

.hydro-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.hydro-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.hydro-card__value {
  font-size: 1.5rem;
  line-height: 1;
}

.hydro-card__body {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.flood-tag,
.trend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.flood-tag--major {
  color: #fff;
  background: var(--storm-red);
}

.flood-tag--moderate {
  color: #fff;
  background: var(--storm-orange);
}

.flood-tag--minor {
  color: #fff;
  background: var(--storm-blue);
}

.flood-tag--action {
  color: var(--ink);
  background: rgba(215, 170, 33, 0.24);
}

.flood-tag--none {
  color: var(--storm-slate);
  background: rgba(15, 34, 48, 0.08);
}

.trend-chip {
  color: var(--storm-slate);
  background: rgba(14, 140, 143, 0.12);
}

.river-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
}

.river-marker--major {
  background: var(--storm-red);
}

.river-marker--moderate {
  background: var(--storm-orange);
}

.river-marker--minor {
  background: var(--storm-blue);
}

.river-marker--action {
  background: var(--storm-gold);
}

.river-marker--none {
  background: var(--storm-slate);
}

.footer-note {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(15, 34, 48, 0.08);
}

.storm-marker {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
}

.storm-marker--hu,
.storm-marker--ts {
  background: var(--storm-teal);
}

.storm-marker--td,
.storm-marker--sts,
.storm-marker--ptc,
.storm-marker--pc {
  background: var(--storm-cyan);
}

.storm-marker--other {
  background: var(--storm-slate);
}

.empty-state {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 34, 48, 0.05);
  color: var(--muted);
  line-height: 1.55;
}

.leaflet-container {
  font-family: "IBM Plex Sans", sans-serif;
}

.leaflet-control-layers {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 34, 48, 0.12);
}

.leaflet-popup-content {
  margin: 0.95rem 1rem;
}

.popup-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.popup-card p {
  margin: 0.3rem 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .dashboard-grid,
  .detail-grid,
  .ops-grid,
  .scope-grid,
  .hero,
  .local-status__bar {
    grid-template-columns: 1fr;
  }

  .panel__subtle {
    text-align: left;
    max-width: 50ch;
  }

  .meta-block--actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 1rem, 1500px);
    padding-bottom: 16.5rem;
  }

  .toggle-grid,
  .current-grid,
  .metric-card-grid,
  .metric-mini-grid,
  .metric-mini-grid--wide,
  .hazard-ribbon,
  .briefing-top,
  .briefing-grid,
  .sounding-top,
  .sources-grid,
  .map-footer,
  .signal-layout,
  .outlook-grid,
  .hourly-strip,
  .reports-grid,
  .hydro-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .header-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #map {
    min-height: 510px;
  }

  .custom-scope__inputs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding-bottom: 17.5rem;
  }

  .hero,
  .panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .local-status__bar,
  .local-ticker,
  .aviation-ticker {
    padding: 0.9rem;
    border-radius: 20px;
  }

  .aviation-strip {
    width: calc(100% - 1rem);
    bottom: 0.5rem;
  }

  h1 {
    max-width: none;
  }

  .segmented-control {
    flex-direction: column;
  }

  .scope-button,
  .action-button,
  .ghost-button,
  .toggle-chip,
  select {
    width: 100%;
  }

  .custom-scope__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aviation-ticker {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .aviation-ticker__track {
    animation: none;
  }
}
