.weather-map {
  --weather-ink: #0b1420;
  --weather-line: #253a4c;
  --weather-panel: #111821;
  --weather-panel-border: #263241;
  --weather-control: #121e2b;
  --weather-control-border: #2d4357;
  --weather-accent: #98ccdf;
  background: #0a0d13;
}

.weather-map .map-panel,
.weather-map .filters {
  border-color: var(--weather-panel-border);
  background: var(--weather-panel);
}

.weather-map .map-heading {
  align-items: center;
  padding: 21px 26px;
}

.weather-map .map-label,
.weather-map .filters .section-kicker {
  color: var(--weather-accent);
  letter-spacing: .22em;
}

.weather-map .map-label span {
  background: #52dccc;
  box-shadow: 0 0 10px #52dccc80;
}

.weather-map .map-heading h2 {
  margin-top: 8px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.12;
}

.weather-map .map-heading h2 em { color: #b9d7ee; }
.weather-map .map-heading p,
.weather-map .filter-description { color: #9aabbe; }

.weather-map .count-card,
.weather-map .filter-button {
  background: var(--weather-control);
  border-color: var(--weather-control-border);
}

.weather-map .count-card {
  font-variant-numeric: tabular-nums;
}

.weather-map .count-card span,
.weather-map .count-card small { color: #a5bbd0; }

.weather-map .filter-label { color: #d5e2ee; }
.weather-map .filter-button { color: #b7c9db; }
.weather-map .filter-button:hover { background: #172638; }
.weather-map .filter-button.active { border-color: #60a8bd; color: #e5f3fb; }
.weather-map .filters .reset { color: var(--weather-accent); }

.weather-map .map-stage {
  min-height: 0;
  height: clamp(420px, 51vw, 620px);
  background: radial-gradient(ellipse at 52% 44%, #14293c 0%, var(--weather-ink) 73%);
  border-color: var(--weather-line);
}

.weather-map #map { min-height: 0; }
.weather-map .map-grid { opacity: 0; }
.weather-map #countries path { fill: #1a2b3e; stroke: #7293ab; stroke-opacity: .66; stroke-width: .75; }
.weather-map #states path { fill: #1a2b3e; stroke: #7293ab; stroke-opacity: .51; }
.weather-graticule {
  fill: none;
  stroke: #8baac4;
  stroke-opacity: .19;
  stroke-width: .7;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.weather-outlines { pointer-events: none; }
.weather-outlines path {
  fill: none;
  stroke: #b5d0e4;
  stroke-opacity: .25;
  stroke-width: .65;
  vector-effect: non-scaling-stroke;
}

.weather-layer { pointer-events: none; }
.weather-layer canvas { display: block; width: 100%; height: 100%; }

.weather-map .map-controls,
.weather-map .map-overlay,
.weather-scope {
  border: 1px solid #3c5568;
  background: #0b1723ed;
  box-shadow: 0 6px 24px #060b1566;
}

.weather-scope {
  position: absolute;
  top: 17px;
  left: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #b7c9db;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.weather-scope-icon { color: #70ddd4; font-size: 17px; line-height: 1; }
.weather-scope-divider { width: 1px; height: 12px; background: #466078; }

.weather-map .map-overlay {
  display: grid;
  gap: 6px;
  width: 208px;
  padding: 10px 12px;
  border-radius: 8px;
}

.weather-legend-title {
  color: #cbddea;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.weather-map .heat-scale {
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg,#223f98,#2f6cf4,#27c4f3,#2ae4ae,#a7e96c,#ffdb61,#ff5f69);
}

.weather-legend-labels { display: flex; justify-content: space-between; color: #b1c4d9; }
.weather-map .map-attribution { bottom: 19px; color: #a0b4c9; background: #0b1723b3; }
.weather-map footer a[hidden] { display: none; }

@media (max-width: 600px) {
  .weather-map .map-heading { padding: 18px 14px; gap: 9px; }
  .weather-map .map-heading h2 { font-size: 22px; }
  .weather-map .count-card { padding: 9px; min-width: 100px; }
  .weather-map .map-stage { height: clamp(310px, 87vw, 380px); }
  .weather-map .map-controls { flex-direction: row; }
  .weather-map .map-controls button + button { border-top: 0; border-left: 1px solid #ffffff18; }
  .weather-scope { top: 10px; left: 10px; gap: 6px; font-size: 9px; }
  .weather-map .map-overlay { width: 160px; padding: 8px 9px; }
  .weather-map .map-attribution { bottom: 11px; max-width: 128px; text-align: right; }
}

@media (max-width: 360px) {
  .weather-scope-divider, .weather-scope .weather-data-label { display: none; }
}

.launch-closed .intro-gate::before {
  background: radial-gradient(ellipse at 50% 42%, #193549, #0a0d13 72%);
}
.launch-closed .launch-status {
  padding-top: 15px;
  margin: 19px 0 0;
  border-top: 1px solid var(--weather-control-border);
  color: var(--weather-accent);
}

.share-survey {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 21px;
  border: 1px solid #69b8dc44;
  border-radius: 16px;
  background: linear-gradient(110deg, #142939, #111a24 70%);
}
.share-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #63e2ce55;
  border-radius: 10px;
  color: #79ebd8;
  font-size: 20px;
}
.share-message h2 {margin: 0 0 4px;font-size: 16px;letter-spacing: -.02em}
.share-message p {margin: 0;color: #bfd0e0;font-size: 13px;line-height: 1.5}
.share-message #share-status {margin-top: 5px;color: #83eadb}
.share-message input {width: 100%;margin-top: 6px;color: #e8f8ff;background: #102030;border: 1px solid #5a839f;border-radius: 6px;padding: 5px 8px}
#share-survey {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #77c9e85c;
  border-radius: 99px;
  padding: 8px 13px;
  background: #1a3245;
  color: #e0f4ff;
  font: 600 12px Types, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
#share-survey:hover {background: #23465e}
@media (max-width: 540px) {
  .share-survey {grid-template-columns: auto minmax(0, 1fr);gap: 10px 12px;padding: 15px}
  #share-survey {grid-column: 2;justify-self: start}
}
