:root {
  color-scheme: dark;
  --bg: #050912;
  --bg-2: #0b1322;
  --panel: rgba(8, 16, 30, 0.78);
  --panel-strong: rgba(10, 20, 36, 0.92);
  --panel-border: rgba(178, 203, 255, 0.12);
  --text: #eef3ff;
  --muted: #93a4c7;
  --faint: #627191;
  --accent: #7fe0ff;
  --accent-2: #8ff7bb;
  --warning: #ffc861;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(127, 224, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(143, 247, 187, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(80, 108, 182, 0.25), transparent 30%),
    linear-gradient(180deg, #04070d 0%, var(--bg) 35%, #03050a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  pointer-events: none;
  opacity: 0.5;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 30% 78%, rgba(127, 224, 255, 0.07), transparent 24%);
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.55;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 50%,
    transparent 100%
  );
  background-size: 100% 140px;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.shell {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px 44px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.headline {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  padding-top: 2px;
}

.eyebrow {
  grid-column: 1 / 2;
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

h1 {
  grid-column: 1 / 2;
  margin: 0;
  font-size: clamp(2.6rem, 4.2vw, 4.9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 100%;
}

.lede {
  grid-column: 1 / 2;
  margin: 16px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.meta-row {
  grid-column: 2 / 3;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  justify-self: end;
  max-width: 320px;
}

.meta-row span {
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  width: fit-content;
}

.panel,
.status-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card {
  border-radius: 24px;
  padding: 20px 20px 18px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(15, 24, 43, 0.95), rgba(7, 13, 24, 0.9));
}

.status-label,
.panel-header span,
.decision-label,
.globe-summary,
.route-chip__meta,
.route-intel p {
  color: var(--muted);
}

.status-card strong {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

#readinessState {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warning);
}

.status-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.status-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.status-card p {
  margin: 0;
  color: var(--faint);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border-radius: 26px;
  padding: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-header h2 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
  outline: none;
}

.panel-footnote {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-panel {
  margin-bottom: 20px;
}

.globe-shell {
  display: grid;
  gap: 14px;
}

.globe-copy--compact {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.globe-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.globe-summary {
  margin: 8px 0 0;
  max-width: 52ch;
  line-height: 1.45;
  font-size: 0.95rem;
}

.globe-hint {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.globe-attribution {
  margin: 0;
  color: rgba(214, 236, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.4;
  max-width: 20rem;
}

.globe-attribution a {
  color: inherit;
}

.globe-attribution a:hover,
.globe-attribution a:focus-visible {
  color: var(--text);
}

.globe-frame {
  position: relative;
  min-height: clamp(480px, 54vh, 700px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(127, 224, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(7, 12, 23, 0.96), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#globeSvg,
.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  min-height: inherit;
  background: #0a1220;
}

.leaflet-container {
  font-family: inherit;
  background: #0a1220;
  outline: none;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane {
  pointer-events: auto;
}

.leaflet-tile {
  filter: grayscale(0.78) saturate(0.26) contrast(0.84) brightness(0.88);
}

.route-launch-overlay {
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
}

.route-launch-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(240px, calc(100% - 36px));
  padding: 14px 15px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 20, 35, 0.96), rgba(7, 12, 23, 0.9));
  border: 1px solid rgba(127, 224, 255, 0.24);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.route-launch-badge strong {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.route-launch-badge__eyebrow,
.route-launch-badge__meta {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-launch-badge__meta {
  margin-top: 4px;
  color: rgba(214, 236, 255, 0.76);
}

.route-launch-lines {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.route-launch-lines path {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.35));
}

.route-label {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 2px rgba(5, 9, 18, 1),
    0 0 10px rgba(5, 9, 18, 0.9),
    0 2px 10px rgba(5, 9, 18, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-link-marker {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.route-link-marker.leaflet-div-icon {
  background: transparent !important;
  border: 0 !important;
}

.route-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  text-shadow:
    0 0 2px rgba(5, 9, 18, 1),
    0 0 10px rgba(5, 9, 18, 0.85),
    0 1px 14px rgba(5, 9, 18, 0.6);
  -webkit-text-stroke: 2px rgba(5, 9, 18, 0.8);
  paint-order: stroke fill;
  white-space: nowrap;
  pointer-events: auto;
}

.route-link-label:hover,
.route-link-label:focus-visible,
.route-link-label--selected {
  color: var(--accent);
  text-shadow:
    0 0 2px rgba(5, 9, 18, 1),
    0 0 14px rgba(127, 224, 255, 0.5),
    0 1px 14px rgba(5, 9, 18, 0.8);
}

.route-link-marker:hover .route-link-label {
  color: var(--warning);
  text-shadow:
    0 0 2px rgba(5, 9, 18, 1),
    0 0 16px rgba(255, 200, 97, 0.45),
    0 1px 14px rgba(5, 9, 18, 0.8);
}

.route-strip {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border-radius: 22px;
  background: rgba(7, 12, 23, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  overflow-y: hidden;
}

.detail-section {
  display: grid;
  gap: 18px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 0 2px;
}

.detail-meta {
  display: grid;
  gap: 12px;
  min-width: 280px;
}

.detail-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-lede {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.6;
}

.detail-pill {
  min-width: 220px;
  padding: 15px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(127, 224, 255, 0.12), rgba(143, 247, 187, 0.05));
  border: 1px solid rgba(127, 224, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.detail-pill__label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.status-card--compact {
  width: 100%;
  padding: 16px 16px 14px;
  border-radius: 20px;
}

.status-card--compact strong {
  font-size: 2.2rem;
}

.status-card--compact p {
  font-size: 0.9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.detail-panel--intel {
  grid-column: span 5;
}

.detail-panel--probability {
  grid-column: span 7;
}

.detail-panel--weather {
  grid-column: span 7;
}

.detail-panel--concerns {
  grid-column: span 5;
}

.detail-panel--evidence {
  grid-column: 1 / -1;
}

.route-chip {
  appearance: none;
  flex: 1 1 240px;
  min-width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 15px 16px 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.route-chip:hover,
.route-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(127, 224, 255, 0.35);
  outline: none;
}

.route-chip[data-active="true"] {
  background: linear-gradient(180deg, rgba(127, 224, 255, 0.12), rgba(143, 247, 187, 0.08));
  border-color: rgba(127, 224, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(127, 224, 255, 0.12);
}

.route-chip__eyebrow,
.route-chip__meta {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-chip strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.route-chip__score {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--accent);
}

.probability-stack,
.weather-brief,
.concerns-list {
  display: grid;
  gap: 12px;
}

.probability-card,
.concern-card,
.route-intel > div,
.evidence-list li,
.constraint-pill {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.probability-card {
  padding: 14px 15px 15px;
}

.probability-card__head,
.concern-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.probability-card__head strong,
.concern-card__head strong {
  font-size: 1rem;
}

.probability-card__head span {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 700;
}

.probability-bar {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.probability-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.probability-meta,
.concern-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.86rem;
}

.weather-brief {
  display: grid;
  gap: 14px;
}

.weather-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.weather-group__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.weather-group__head strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.weather-group__head p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.weather-date {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.weather-card {
  padding: 13px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.weather-card.active {
  background: linear-gradient(180deg, rgba(127, 224, 255, 0.12), rgba(143, 247, 187, 0.07));
  border-color: rgba(127, 224, 255, 0.35);
}

.weather-card__head,
.weather-card__temps,
.weather-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.weather-card__head {
  align-items: baseline;
}

.weather-card__head strong {
  font-size: 0.98rem;
}

.weather-card__head span {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weather-card__temps,
.weather-card__meta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.weather-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.concern-card {
  padding: 14px 15px 15px;
}

.concern-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.concern-severity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.severity-low {
  color: #9cf5c7;
  background: rgba(156, 245, 199, 0.08);
  border-color: rgba(156, 245, 199, 0.18);
}

.severity-medium {
  color: #ffd67d;
  background: rgba(255, 214, 125, 0.08);
  border-color: rgba(255, 214, 125, 0.18);
}

.severity-high {
  color: #ff8f8f;
  background: rgba(255, 143, 143, 0.08);
  border-color: rgba(255, 143, 143, 0.18);
}

.route-intel {
  display: grid;
  gap: 14px;
}

.route-intel > div {
  padding: 14px 15px;
}

.route-intel strong,
.route-intel p {
  display: block;
  margin: 6px 0 0;
  line-height: 1.5;
}

.route-intel strong {
  color: var(--text);
  font-size: 1.03rem;
}

.constraint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.constraint-pill {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.stack {
  display: grid;
  gap: 20px;
}

.evidence-list li {
  padding: 15px 16px 15px 18px;
  margin: 8px 0 0;
  line-height: 1.55;
}

.evidence-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  margin-left: -18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(127, 224, 255, 0.35);
}

/* SVG globe layers */
.globe-scene {
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.38));
}

.globe-body {
  fill: url(#oceanGradient);
  stroke: rgba(141, 220, 255, 0.18);
  stroke-width: 2;
}

.globe-atmosphere {
  fill: rgba(127, 224, 255, 0.08);
  filter: blur(12px);
}

.globe-rim {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.5;
}

.globe-glare {
  fill: url(#glareGradient);
  opacity: 0.78;
}

.globe-glare--selected {
  opacity: 0.42;
}

.graticule path {
  fill: none;
  stroke: rgba(180, 206, 255, 0.12);
  stroke-width: 1;
}

.route-layer {
  mix-blend-mode: screen;
}

.flight-layer {
  mix-blend-mode: screen;
}

.terrain-layer {
  mix-blend-mode: normal;
  opacity: 1;
}

.terrain-layer image {
  image-rendering: auto;
}

.terrain-vignette {
  fill: url(#terrainVignetteGradient);
  opacity: 0.24;
}

.terrain-fill {
  stroke: rgba(246, 242, 216, 0.24);
  stroke-width: 1.6;
}

.terrain-fill--base {
  fill: rgba(38, 72, 38, 0.96);
}

.terrain-fill--ridge {
  fill: rgba(62, 104, 52, 0.98);
}

.terrain-fill--peak {
  fill: rgba(140, 158, 92, 0.98);
}

.terrain-layer--active .terrain-ring {
  stroke-width: 2.4;
  stroke: rgba(255, 228, 165, 0.88);
  opacity: 0.52;
}

.terrain-layer--active .terrain-fill {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.22));
}

.city-layer {
  mix-blend-mode: screen;
}

.route-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-path.muted {
  opacity: 0.4;
  stroke-width: 3;
  stroke: var(--route-color);
}

.route-path.active {
  opacity: 1;
  stroke-width: 5;
  stroke: var(--route-color);
  filter: url(#pinGlow);
}

.road-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  stroke: var(--route-color);
  filter: url(#pinGlow);
}

.flight-path {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
  opacity: 0.34;
  stroke: var(--flight-color);
  filter: url(#pinGlow);
}

.terrain-ring {
  fill: none;
  stroke-width: 1.5;
  stroke: rgba(127, 224, 255, 0.55);
  stroke-dasharray: 3 8;
  filter: url(#pinGlow);
}

.city-label {
  pointer-events: none;
}

.city-label__dot {
  fill: var(--accent-2);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1;
}

.city-label__text {
  fill: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: rgba(5, 9, 18, 0.9);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.pin {
  filter: url(#pinGlow);
  cursor: pointer;
  outline: none;
}

.pin:focus-visible .pin-halo {
  stroke: var(--warning);
  stroke-width: 3;
}

.pin:hover .pin-halo {
  stroke: var(--warning);
}

.pin-halo {
  fill: rgba(127, 224, 255, 0.1);
  stroke: rgba(127, 224, 255, 0.56);
  stroke-width: 2;
}

.pin.origin .pin-halo {
  fill: rgba(143, 247, 187, 0.1);
  stroke: rgba(143, 247, 187, 0.7);
}

.pin.active .pin-halo {
  fill: rgba(255, 255, 255, 0.08);
}

.pin-core {
  fill: var(--accent);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.2;
}

.pin.origin .pin-core {
  fill: var(--accent-2);
}

.pin.departure .pin-halo {
  fill: rgba(255, 200, 97, 0.1);
  stroke: rgba(255, 200, 97, 0.7);
}

.pin.departure .pin-core {
  fill: var(--warning);
}

@media (prefers-reduced-motion: reduce) {
  #globeSvg {
    animation: none;
  }

  .route-chip,
  .route-chip:hover,
  .route-chip:focus-visible {
    transform: none;
  }
}

@media (max-width: 1120px) {
  .topbar,
  .grid {
    grid-template-columns: 1fr;
  }

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

  .eyebrow,
  h1,
  .lede,
  .meta-row {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .meta-row {
    max-width: none;
    justify-self: start;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-meta {
    width: 100%;
    min-width: 0;
  }

  .detail-pill {
    min-width: 0;
    width: 100%;
  }

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

  .detail-panel--intel,
  .detail-panel--probability,
  .detail-panel--weather,
  .detail-panel--concerns,
  .detail-panel--evidence {
    grid-column: 1 / -1;
  }

  .route-strip {
    top: 8px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
  }

  .globe-frame {
    min-height: 440px;
  }

  .globe-copy--compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .globe-hint {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 20px 14px 32px;
  }

  .panel,
  .status-card {
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .globe-frame {
    min-height: 320px;
  }

  .route-strip {
    padding: 10px;
    border-radius: 18px;
    gap: 10px;
  }

  .route-chip {
    min-width: 210px;
    padding: 12px 13px 11px;
  }
}
