@font-face {
  font-family: "Space Grotesk";
  src: url("./vendor/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./vendor/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./vendor/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./vendor/fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./vendor/fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./vendor/fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./vendor/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./vendor/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  --coral: #E8593C;
  --coral-strong: #C4401F;
  --page-bg: #F4F2EF;
  --shell-bg: rgba(15, 15, 15, 0.045);
  --shell-ring: rgba(15, 15, 15, 0.075);
  --core-bg: #FAFAF8;
  --card-bg: #FFFFFF;
  --glass-bg: rgba(250, 250, 248, 0.88);
  --surface-muted: #F1EFEA;
  --text-primary: #0F0F0F;
  --text-secondary: #4E5258;
  --text-tertiary: #767B82;
  --hairline: rgba(15, 15, 15, 0.08);
  --inner-shine: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --ambient-shadow: 0 18px 48px -16px rgba(18, 18, 22, 0.12), 0 4px 14px -4px rgba(18, 18, 22, 0.06);
  --map-bg: #EAE7E1;
}

html[data-theme="dark"] {
  --page-bg: #0B0C0E;
  --shell-bg: rgba(255, 255, 255, 0.045);
  --shell-ring: rgba(255, 255, 255, 0.09);
  --core-bg: #131519;
  --card-bg: #1A1D23;
  --glass-bg: rgba(22, 25, 31, 0.86);
  --surface-muted: #22262E;
  --text-primary: #F0EEEB;
  --text-secondary: #A9AFB8;
  --text-tertiary: #7B828E;
  --hairline: rgba(255, 255, 255, 0.09);
  --inner-shine: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ambient-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.55), 0 6px 18px -6px rgba(0, 0, 0, 0.38);
  --map-bg: #16181D;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.is-embed {
  background: transparent;
}

/* Double-bezel outer enclosure */
.explorer-shell {
  padding: 6px;
  margin: 12px auto;
  max-width: 1280px;
  border-radius: 26px;
  background: var(--shell-bg);
  box-shadow: 0 0 0 1px var(--shell-ring), var(--ambient-shadow);
}

body.is-embed .explorer-shell {
  margin: 0;
  max-width: 100%;
  border-radius: 22px;
}

.explorer-core {
  background: var(--core-bg);
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--hairline), var(--inner-shine);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Command Deck Header */
.deck-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--core-bg);
}

.deck-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  box-shadow: 0 0 0 1px var(--hairline);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.turnout-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.deck-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.deck-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: 0 0 0 1px var(--hairline);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: transform 0.35s var(--spring), opacity 0.35s var(--spring);
}
.brand-badge:hover {
  transform: translateY(-1px);
}
.brand-dot {
  color: var(--coral);
  font-weight: 700;
  margin: 0 1px;
}
.brand-n {
  font-weight: 500;
  color: var(--text-secondary);
}

.icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: var(--surface-muted);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s var(--spring), background-color 0.35s var(--spring);
}
.icon-pill:hover {
  transform: scale(1.04);
}
.icon-pill:active {
  transform: scale(0.96);
}
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }

/* Button-in-button island CTA */
.cta-island {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--core-bg);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.4s var(--spring), opacity 0.4s var(--spring);
}
.cta-island:hover {
  transform: translateY(-1px);
}
.cta-island:active {
  transform: scale(0.97);
}
.cta-island-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--spring);
}
html[data-theme="dark"] .cta-island-icon {
  background: rgba(0, 0, 0, 0.16);
}
.cta-island:hover .cta-island-icon {
  transform: translate(1.5px, -1.5px) scale(1.05);
}

/* Segmented controls */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.control-right-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.control-cluster {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: 0 0 0 1px var(--hairline);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.control-cluster::-webkit-scrollbar { display: none; }

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--spring), background-color 0.35s var(--spring), color 0.35s var(--spring);
}
.seg-btn:hover {
  color: var(--text-primary);
}
.seg-btn.is-active {
  background: var(--card-bg);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--hairline);
}
.year-cluster .seg-btn.is-active {
  background: var(--coral-strong);
  color: #FFFFFF;
}

/* Party filter pills & margin toggle */
.subcontrols-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.party-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px 0;
  scrollbar-width: none;
}
.party-pills::-webkit-scrollbar { display: none; }

.party-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: var(--surface-muted);
  color: var(--text-secondary);
  box-shadow: 0 0 0 1px var(--hairline);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--spring), background-color 0.3s var(--spring), color 0.3s var(--spring);
}
.party-pill:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}
.party-pill.is-active {
  background: var(--text-primary);
  color: var(--core-bg);
  font-weight: 600;
}
.swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.margin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.margin-toggle input {
  accent-color: var(--coral);
  cursor: pointer;
}

/* Search + Quick Jumps */
.locator-bar {
  display: grid;
  grid-template-columns: minmax(250px, 370px) 1fr;
  align-items: center;
  gap: 10px;
}

.search-box-shell {
  position: relative;
  z-index: 30;
  padding: 2px;
  border-radius: 999px;
  background: var(--shell-bg);
  box-shadow: 0 0 0 1px var(--hairline);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--card-bg);
}

.search-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12.5px;
}
.search-box input::placeholder {
  color: var(--text-tertiary);
}

.search-clear {
  border: none;
  background: var(--surface-muted);
  color: var(--text-secondary);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--hairline), var(--ambient-shadow);
  max-height: 280px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  transition: background-color 0.25s var(--spring);
}
.search-item:hover, .search-item.is-focused {
  background: var(--surface-muted);
}
.search-item-main {
  font-weight: 500;
  color: var(--text-primary);
}
.search-item-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.quick-jumps {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.quick-jumps::-webkit-scrollbar { display: none; }

.jump-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: 0 0 0 1px var(--hairline);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--spring), background-color 0.3s var(--spring), color 0.3s var(--spring);
}
.jump-pill:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}
.jump-pill.is-active {
  background: rgba(232, 89, 60, 0.13);
  color: var(--coral);
  box-shadow: 0 0 0 1px rgba(232, 89, 60, 0.35);
  font-weight: 600;
}

/* Map Stage + Overlays */
.stage-wrap {
  position: relative;
  height: 620px;
  background: var(--map-bg);
}

.map-canvas {
  width: 100%;
  height: 100%;
}

.loading-state {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: opacity 0.45s var(--spring);
}
.loading-state.is-done {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--coral);
  animation: spin 0.85s cubic-bezier(0.45, 0.15, 0.55, 0.85) infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Floating Hover Tooltip */
.hover-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 25;
  pointer-events: none;
  width: 236px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--hairline), var(--ambient-shadow);
  font-size: 11.5px;
  color: var(--text-primary);
  will-change: transform;
}
.ht-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}
.ht-title {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.ht-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ht-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.ht-party {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
}
.ht-hint {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--coral);
}
@media (hover: none), (max-width: 767px) {
  .hover-tooltip {
    display: none !important;
  }
}

/* Floating Legend (Double-Bezel Glass HUD) */
.legend-shell {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 12;
  padding: 4px;
  border-radius: 16px;
  background: var(--shell-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--shell-ring), var(--ambient-shadow);
  max-width: min(440px, calc(100% - 28px));
}
.legend-core {
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--glass-bg);
  box-shadow: 0 0 0 1px var(--hairline), var(--inner-shine);
  font-size: 11.5px;
}
.legend-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  align-items: center;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--text-primary);
}
.legend-ramp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
}
.legend-ramp-bar {
  height: 8px;
  border-radius: 999px;
  width: 100%;
}
.legend-ramp-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

/* Floating Inspector Panel */
.inspector-shell {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 14;
  width: 368px;
  max-height: calc(100% - 28px);
  padding: 5px;
  border-radius: 20px;
  background: var(--shell-bg);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--shell-ring), var(--ambient-shadow);
  display: flex;
  flex-direction: column;
}
.inspector-core {
  background: var(--glass-bg);
  border-radius: 15px;
  box-shadow: 0 0 0 1px var(--hairline), var(--inner-shine);
  padding: 14px 15px;
  overflow-y: auto;
}

.insp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.insp-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.insp-heading {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.insp-close {
  border: none;
  background: var(--surface-muted);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  flex-shrink: 0;
}
.insp-close:hover {
  color: var(--text-primary);
}

.insp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.insp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  box-shadow: 0 0 0 1px var(--hairline);
}
.insp-badge-winner {
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: none;
}

.insp-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.insp-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.insp-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}
.insp-party-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.insp-party-Seat {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  white-space: nowrap;
}
.insp-metrics {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.insp-pct {
  font-weight: 600;
  color: var(--text-primary);
}
.insp-delta {
  font-size: 10px;
}
.insp-delta.pos { color: #0D9488; }
.insp-delta.neg { color: #D94832; }
html[data-theme="dark"] .insp-delta.pos { color: #2DD4BF; }
html[data-theme="dark"] .insp-delta.neg { color: #F87171; }

.insp-bar-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}
.insp-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s var(--spring);
}

.insp-foot {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
}

/* Address search pin */
.address-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
}

/* Footer strip */
.deck-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--hairline);
  background: var(--core-bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.seat-mini-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.seat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-primary);
}
.seat-chip strong {
  font-weight: 600;
}

.attribution-line {
  margin: 0;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* MapLibre overrides */
.maplibregl-ctrl-group {
  border-radius: 12px !important;
  box-shadow: 0 0 0 1px var(--hairline), var(--ambient-shadow) !important;
  overflow: hidden;
  background: var(--card-bg) !important;
}
.maplibregl-ctrl-group button {
  background-color: var(--card-bg) !important;
}
html[data-theme="dark"] .maplibregl-ctrl-icon {
  filter: invert(0.92);
}
.maplibregl-ctrl-attrib {
  display: none !important;
}

/* HERO RENDER MODE (?hero=1 for 4:3 Barna.News high-res feature image) */
body.is-hero {
  background: var(--page-bg);
}
body.is-hero .explorer-shell {
  margin: 0;
  max-width: 1600px;
  width: 1600px;
  height: 1200px;
  border-radius: 0;
  padding: 16px;
}
body.is-hero .explorer-core {
  height: 100%;
  border-radius: 22px;
}
body.is-hero .controls-bar,
body.is-hero .subcontrols-bar,
body.is-hero .locator-bar,
body.is-hero .icon-pill,
body.is-hero .cta-island,
body.is-hero .maplibregl-ctrl-top-left {
  display: none !important;
}
body.is-hero .deck-header {
  padding: 20px 28px 16px;
}
body.is-hero .deck-title {
  font-size: 34px;
}
body.is-hero .brand-badge {
  font-size: 21px;
  padding: 7px 16px;
}
body.is-hero .stage-wrap {
  flex: 1;
  height: auto;
}
body.is-hero .inspector-shell {
  top: 20px;
  right: 20px;
  width: 370px;
}
body.is-hero .hero-inset-shell {
  display: block !important;
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 15;
  width: 356px;
  height: 332px;
  padding: 5px;
  border-radius: 20px;
  background: var(--shell-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--shell-ring), var(--ambient-shadow);
}
body.is-hero .hero-inset-core {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.is-hero .hero-inset-header {
  padding: 9px 13px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.is-hero .hero-inset-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--coral);
}
body.is-hero .hero-inset-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
body.is-hero .inset-canvas {
  flex: 1;
  width: 100%;
}

/* Mobile Collapse (< 768px) */
@media (max-width: 767px) {
  .explorer-shell {
    padding: 4px;
    border-radius: 20px;
  }
  .explorer-core {
    border-radius: 16px;
  }
  .deck-header {
    padding: 12px 12px 10px;
    gap: 9px;
  }
  .deck-brand-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
  .deck-actions {
    justify-content: space-between;
    width: 100%;
  }
  .eyebrow-pill {
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
  .locator-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stage-wrap {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .map-canvas {
    height: 400px;
    position: relative;
  }
  .legend-shell {
    position: static;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-top: 1px solid var(--hairline);
  }
  .legend-core {
    border-radius: 0;
    box-shadow: none;
  }
  .inspector-shell {
    position: static;
    width: 100%;
    max-height: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-top: 1px solid var(--hairline);
  }
  .inspector-core {
    border-radius: 0;
    box-shadow: none;
  }
}
