:root {
  --bg0: #000000;
  --bg1: #010001;
  --bg2: #040002;
  --fg0: #f9f4f5;
  --fg1: rgba(249, 244, 245, 0.84);
  --fg2: rgba(249, 244, 245, 0.62);
  --edge: rgba(181, 41, 67, 0.28);
  --edge-hot: rgba(255, 102, 131, 0.78);
  --accent: #ff3d63;
  --accent-soft: #ff7f9a;
  --accent-dark: #460716;
  --panel-top: rgba(112, 12, 33, 0.2);
  --panel-bottom: rgba(3, 0, 1, 0.97);
  --panel-solid: rgba(2, 0, 1, 0.98);
  --ok: #ff8ea2;
  --warn: #ffb37a;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 62, 98, 0.18);
  --container: 1280px;
  --geo-panel-min-height: 440px;
  --geo-panel-max-height: 880px;
  --geo-panel-offset: 220px;
}

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

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

body {
  color: var(--fg0);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1180px 640px at -10% -20%, rgba(163, 19, 47, 0.18), transparent 62%),
    radial-gradient(980px 700px at 112% -8%, rgba(72, 4, 20, 0.24), transparent 68%),
    linear-gradient(170deg, rgba(177, 17, 47, 0.03) 0%, rgba(177, 17, 47, 0) 46%),
    repeating-linear-gradient(90deg, rgba(137, 18, 40, 0.032) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.008) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, var(--bg0), var(--bg1) 56%, var(--bg2));
  text-shadow: 0 0 0 transparent;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2200;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0b0204;
  border: 1px solid var(--edge);
}

.skip:focus {
  top: 10px;
  outline: none;
}

.container {
  width: min(100% - 36px, var(--container));
  margin: 0 auto;
}

.map-top {
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 1px solid rgba(120, 21, 43, 0.44);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(1, 0, 0, 0.98), rgba(4, 0, 1, 0.94)),
    linear-gradient(90deg, rgba(100, 11, 31, 0.24), rgba(100, 11, 31, 0));
}

.map-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.map-top__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.map-top__home {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255, 106, 133, 0.5);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #000000;
  background:
    linear-gradient(180deg, rgba(255, 95, 128, 0.38), rgba(120, 13, 34, 0.66)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 1px rgba(255, 185, 201, 0.2);
}

.map-top__kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-size: 11px;
}

.map-top__title {
  margin: 2px 0 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.05;
}

.map-top__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-top__links a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  color: var(--fg1);
}

.map-top__links a:hover {
  border-color: var(--edge-hot);
  color: var(--fg0);
  background: rgba(255, 60, 94, 0.14);
}

.map-top__links a.map-top__link--cta {
  border-color: rgba(255, 109, 145, 0.62);
  color: #fff7fa;
  background:
    linear-gradient(180deg, rgba(255, 102, 136, 0.3), rgba(110, 15, 36, 0.62)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  box-shadow: 0 10px 22px rgba(255, 47, 90, 0.24);
}

.map-top__links a.map-top__link--cta:hover {
  border-color: rgba(255, 144, 171, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 129, 159, 0.42), rgba(129, 18, 44, 0.72)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
}

@keyframes field-guide-pulse {
  0%,
  100% {
    box-shadow: 0 7px 14px rgba(255, 47, 90, 0.26), 0 0 0 0 rgba(255, 109, 145, 0.22);
  }
  50% {
    box-shadow: 0 10px 20px rgba(255, 64, 104, 0.4), 0 0 0 3px rgba(255, 109, 145, 0.1);
  }
}

.map-main {
  padding-bottom: 42px;
}

.map-intro {
  margin-top: 18px;
  margin-bottom: 14px;
}

.map-intro__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.map-intro__score-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 124, 151, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 78, 114, 0.28), rgba(107, 12, 35, 0.7)),
    linear-gradient(90deg, rgba(255, 235, 240, 0.08), rgba(255, 235, 240, 0));
  box-shadow: 0 10px 22px rgba(255, 47, 90, 0.22);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 242, 246, 0.95);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.map-intro__score-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 156, 180, 0.84);
  box-shadow: 0 12px 24px rgba(255, 61, 102, 0.3);
}

.map-intro__lede {
  margin: 0;
  max-width: 88ch;
  color: var(--fg1);
}

.map-intro__status {
  margin: 10px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--fg2);
  font-size: 12px;
}

.map-workspace {
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--panel-top), rgba(120, 12, 35, 0.04) 34%, var(--panel-bottom)),
    repeating-linear-gradient(135deg, rgba(120, 17, 37, 0.05) 0 2px, transparent 2px 14px);
  box-shadow: var(--shadow);
  padding: 14px;
  scroll-margin-top: 110px;
}

.map-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.map-subtab {
  border: 1px solid rgba(206, 62, 90, 0.4);
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(38, 6, 14, 0.9), rgba(11, 2, 5, 0.92));
  color: var(--fg0);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.map-subtab.is-active {
  border-color: rgba(255, 138, 164, 0.76);
  background:
    linear-gradient(180deg, rgba(228, 46, 79, 0.96), rgba(89, 8, 25, 0.94)),
    linear-gradient(90deg, rgba(255, 228, 234, 0.14), rgba(255, 228, 234, 0));
  box-shadow: inset 0 0 0 1px rgba(255, 213, 224, 0.24), 0 8px 20px rgba(0, 0, 0, 0.42);
}

.map-subview {
  display: none;
}

.map-subview.is-active {
  display: block;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 12px;
}

.geo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 420px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "filters details"
    "map details";
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  height: clamp(var(--geo-panel-min-height), calc(100vh - var(--geo-panel-offset)), var(--geo-panel-max-height));
  height: clamp(var(--geo-panel-min-height), calc(100dvh - var(--geo-panel-offset)), var(--geo-panel-max-height));
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 21px;
}

.geo-dgs-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Orbitron", "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff8fb;
  text-shadow: 0 0 10px rgba(255, 66, 105, 0.34), 0 0 14px rgba(0, 0, 0, 0.76);
  justify-self: center;
}

.geo-dgs-mark em {
  color: #ff688c;
  font-style: normal;
}

.geo-provider-badge {
  display: inline-grid;
  gap: 2px;
  margin-left: 0;
  max-width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 113, 139, 0.52);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(132, 16, 39, 0.52), rgba(6, 1, 3, 0.98)),
    linear-gradient(90deg, rgba(255, 244, 247, 0.12), rgba(255, 244, 247, 0));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 197, 0.12), 0 9px 20px rgba(0, 0, 0, 0.54);
}

.geo-provider-badge__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 233, 239, 0.9);
}

.geo-provider-badge strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff9fb;
}

.geo-provider-badge__meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 220, 229, 0.76);
}

.geo-provider-badge.is-loading strong,
.geo-provider-badge.is-loading .geo-provider-badge__meta {
  opacity: 0.74;
}

.updated-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 98, 124, 0.36);
  border-radius: 999px;
  font-size: 11px;
  padding: 5px 9px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--fg2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 1px solid rgba(255, 106, 133, 0.42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(86, 12, 28, 0.88), rgba(34, 7, 14, 0.88));
  padding: 7px 10px;
  cursor: pointer;
}

button.secondary {
  border-color: rgba(255, 146, 168, 0.48);
  background: linear-gradient(180deg, rgba(255, 58, 96, 0.68), rgba(97, 13, 30, 0.84));
}

button:hover {
  border-color: var(--edge-hot);
  background: linear-gradient(180deg, rgba(111, 14, 34, 0.9), rgba(45, 8, 17, 0.92));
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  border-color: rgba(255, 126, 149, 0.22);
  background: linear-gradient(180deg, rgba(50, 11, 20, 0.72), rgba(26, 6, 11, 0.82));
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.geo-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.geo-filter-row .field {
  margin-bottom: 0;
}

.field span {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.field-note {
  margin: -2px 0 4px;
  color: var(--fg2);
  font-size: 12px;
}

select,
input[type="search"] {
  border: 1px solid rgba(255, 106, 133, 0.34);
  border-radius: 10px;
  background: rgba(12, 4, 7, 0.82);
  padding: 8px 10px;
  outline: none;
}

select:focus,
input[type="search"]:focus {
  border-color: rgba(255, 83, 122, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 43, 87, 0.2);
}

.toolbar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta-line {
  margin-bottom: 10px;
  color: var(--fg2);
  font-size: 12px;
  line-height: 1.4;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.disclaimer {
  margin: 0 0 10px;
  color: var(--fg1);
  font-size: 13px;
}

.geo-left-column,
.geo-map-column,
.geo-right-column,
.list-column,
.detail-column {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(83, 10, 26, 0.28), rgba(5, 1, 3, 0.96) 34%, rgba(1, 0, 1, 0.98)),
    repeating-linear-gradient(125deg, rgba(114, 15, 36, 0.03) 0 1px, transparent 1px 12px);
  padding: 12px;
  min-height: 420px;
  box-shadow: inset 0 0 0 1px rgba(176, 44, 70, 0.12);
}

.geo-left-column,
.geo-right-column,
.list-column,
.detail-column {
  overflow: auto;
}

.geo-map-column,
.geo-right-column {
  min-height: 0;
  height: 100%;
}

.geo-left-column,
.geo-right-column {
  overscroll-behavior: contain;
}

.geo-left-column {
  grid-area: filters;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 10px;
}

.geo-left-column .panel-head {
  align-items: center;
  margin-bottom: 8px;
}

.geo-left-column .panel-head h2 {
  font-size: 16px;
}

.geo-left-column .updated-pill {
  font-size: 10px;
  padding: 4px 8px;
}

.geo-left-column .field span {
  font-size: 10px;
  letter-spacing: 0.05em;
}

.geo-left-column select {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.geo-map-column {
  grid-area: map;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.geo-map-column .panel-head {
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr) max-content;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 8px;
}

.geo-right-column {
  grid-area: details;
}

.geo-map {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(137, 33, 57, 0.62);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(188, 52, 80, 0.1);
}

.geo-map-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.geo-map-shell .geo-map-actions {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 920;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.geo-map-shell .geo-map-actions button,
.geo-map-shell .geo-map-actions button.secondary {
  border: 1px solid rgba(255, 235, 241, 0.76);
  border-radius: 999px;
  padding: 4px 8px;
  background: transparent !important;
  box-shadow: none;
  color: rgba(255, 247, 250, 0.98);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.9);
}

.geo-map-shell .geo-map-actions button:hover,
.geo-map-shell .geo-map-actions button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.98);
  background: transparent !important;
  color: #ffffff;
}

.geo-map-shell .geo-map-actions button:disabled {
  background: transparent !important;
  opacity: 0.48;
}

.geo-code-rail {
  position: absolute;
  top: 54px;
  left: 10px;
  z-index: 840;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100% - 68px);
  pointer-events: none;
}

.geo-code-rail.is-collapsed {
  gap: 6px;
}

.geo-code-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(255, 167, 188, 0.46);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 3, 8, 0.94), rgba(4, 1, 3, 0.96));
  color: rgba(255, 236, 241, 0.92);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.32);
}

.geo-code-bubble:hover {
  border-color: rgba(255, 186, 202, 0.78);
  background: linear-gradient(180deg, rgba(29, 5, 13, 0.94), rgba(8, 1, 4, 0.96));
}

.geo-code-bubble.is-active {
  border-color: var(--code-accent, rgba(255, 186, 202, 0.92));
  color: rgba(255, 251, 252, 0.99);
  background:
    linear-gradient(180deg, rgba(255, 67, 105, 0.96), rgba(73, 10, 23, 0.94)),
    linear-gradient(90deg, rgba(255, 220, 229, 0.2), rgba(255, 220, 229, 0));
  box-shadow: 0 0 0 1px rgba(255, 212, 223, 0.54), 0 7px 14px rgba(0, 0, 0, 0.42);
}

.geo-code-bubble--all {
  border-color: rgba(255, 194, 209, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 99, 128, 0.9), rgba(74, 9, 23, 0.96)),
    linear-gradient(90deg, rgba(255, 235, 241, 0.18), rgba(255, 235, 241, 0));
  font-weight: 700;
  letter-spacing: 0.07em;
}

.geo-code-bubble--all:hover {
  border-color: rgba(255, 219, 228, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 122, 149, 0.94), rgba(96, 12, 30, 0.96)),
    linear-gradient(90deg, rgba(255, 235, 241, 0.2), rgba(255, 235, 241, 0));
}

.geo-brand-tag {
  position: absolute;
  right: 12px;
  z-index: 900;
  pointer-events: none;
  user-select: none;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 149, 170, 0.58);
  background:
    linear-gradient(180deg, rgba(35, 8, 15, 0.92), rgba(16, 4, 8, 0.92)),
    linear-gradient(90deg, rgba(255, 62, 98, 0.24), rgba(255, 62, 98, 0));
  color: rgba(255, 232, 237, 0.96);
  font-size: 11px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255, 207, 217, 0.12);
}

.geo-brand-tag--top {
  top: 12px;
}

.geo-brand-tag--bottom {
  bottom: 18px;
}

.usa-title-marker {
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  color: rgba(228, 236, 245, 0.9);
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Lucida Handwriting", cursive;
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: 0.018em;
  line-height: 1;
  transform-origin: center center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.76), 0 0 18px rgba(14, 44, 79, 0.38);
}

.ocean-title-marker {
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  color: rgba(143, 186, 227, 0.95);
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Lucida Handwriting", cursive;
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0.014em;
  line-height: 1;
  transform-origin: center center;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.74), 0 0 16px rgba(9, 38, 68, 0.46);
}

.ocean-title-marker--gulf {
  font-size: 32px;
}

.ocean-title-marker--atlantic,
.ocean-title-marker--pacific {
  font-size: 35px;
}

.geo-map .leaflet-control-attribution {
  background: rgba(15, 4, 7, 0.82);
  color: rgba(249, 244, 245, 0.72);
}

.geo-map .leaflet-control-attribution a {
  color: rgba(255, 215, 225, 0.94);
}

.code-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(255, 110, 137, 0.25);
  border-radius: 12px;
  padding: 8px;
  background: rgba(12, 4, 7, 0.58);
}

.code-button {
  border: 1px solid rgba(255, 106, 133, 0.28);
  border-radius: 10px;
  text-align: left;
  padding: 7px 9px;
  background: rgba(45, 9, 19, 0.72);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.code-button.is-active {
  border-color: rgba(255, 154, 174, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 57, 96, 0.98), rgba(151, 10, 40, 0.9)),
    linear-gradient(90deg, rgba(255, 220, 229, 0.2), rgba(255, 220, 229, 0));
}

.item-list {
  display: grid;
  gap: 8px;
}

.item-card {
  --code-accent: #ff6a8a;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 99, 126, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(56, 10, 22, 0.74), rgba(16, 4, 8, 0.86)),
    repeating-linear-gradient(0deg, rgba(255, 74, 108, 0.035) 0 1px, transparent 1px 6px);
  padding: 9px;
  cursor: pointer;
}

.item-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--code-accent);
}

.item-card.is-selected {
  border-color: rgba(255, 153, 174, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 92, 121, 0.44), 0 10px 20px rgba(0, 0, 0, 0.38);
}

.item-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
}

.item-card .meta {
  margin: 0;
  color: var(--fg2);
  font-size: 12px;
  line-height: 1.3;
}

.item-card .stats {
  margin: 6px 0 0;
  color: var(--fg1);
  font-size: 12px;
  line-height: 1.3;
}

.item-card .code-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--code-accent);
  border-radius: 999px;
  padding: 1px 6px;
  color: var(--code-accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.detail-empty {
  border: 1px dashed rgba(255, 123, 148, 0.32);
  border-radius: 12px;
  padding: 12px;
  color: var(--fg2);
  font-size: 13px;
}

.detail-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.detail-address {
  margin: 0 0 10px;
  color: var(--fg1);
}

.detail-card h4 {
  margin: 10px 0 5px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.geo-share-panel {
  margin: 0 0 12px;
  border: 1px solid rgba(255, 122, 148, 0.46);
  border-radius: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 66, 101, 0.22), rgba(24, 7, 12, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 98, 130, 0.07) 0 1px, transparent 1px 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 208, 0.11);
}

.geo-share-panel__head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.geo-share-panel__title {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 16px;
}

.geo-share-panel__status {
  margin: 0;
  color: var(--fg1);
  font-size: 12px;
  line-height: 1.4;
}

.geo-share-panel__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.geo-share-panel__actions button {
  padding: 8px 9px;
  font-size: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.03em;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--fg1);
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.geo-side-list h4 {
  margin: 12px 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.leaflet-tooltip {
  font-size: 12px;
  border: 1px solid rgba(255, 136, 161, 0.4);
  border-radius: 10px;
  background: rgba(12, 3, 6, 0.92);
  color: rgba(255, 237, 242, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

.medicaid-hover-popup.maplibregl-popup {
  pointer-events: none;
  z-index: 980;
}

.medicaid-click-popup-wrap.maplibregl-popup {
  z-index: 990;
}

.medicaid-click-popup-wrap .maplibregl-popup-content {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(8, 12, 18, 0.97);
  color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.medicaid-click-popup-wrap .maplibregl-popup-tip {
  border-top-color: rgba(8, 12, 18, 0.97) !important;
  border-bottom-color: rgba(8, 12, 18, 0.97) !important;
}

.medicaid-click-popup-wrap .maplibregl-popup-close-button {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  padding: 2px 6px;
}

.medicaid-click-popup-wrap .maplibregl-popup-close-button:hover {
  color: #fff;
  background: transparent;
}

.medicaid-click-popup {
  display: grid;
  gap: 4px;
  min-width: 240px;
}

.medicaid-hover-popup .maplibregl-popup-content {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(0, 0, 0, 0.96);
  color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.56);
}

.medicaid-hover-popup .maplibregl-popup-tip {
  border-top-color: rgba(0, 0, 0, 0.96) !important;
  border-bottom-color: rgba(0, 0, 0, 0.96) !important;
}

.medicaid-hover-card {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.medicaid-hover-title {
  margin: 0 0 2px;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.98);
}

.medicaid-popup-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.3;
}

.medicaid-popup-key {
  color: rgba(255, 255, 255, 0.88);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.geo-point {
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 236, 0.84);
  box-shadow: 0 0 0 1px rgba(17, 3, 7, 0.86);
}

.geo-hotspot {
  border-radius: 999px;
  border: 1px solid rgba(255, 132, 158, 0.7);
}

@media (max-width: 1400px) {
  .geo-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 1200px) {
  .geo-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "filters"
      "map"
      "details";
    height: auto;
  }

  .geo-left-column,
  .geo-map-column,
  .geo-right-column {
    height: auto;
  }

  .geo-map-shell {
    min-height: 420px;
    height: clamp(320px, 62vh, 520px);
  }

  .geo-map {
    min-height: 0;
    height: 100%;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --map-top-mobile-offset: 104px;
  }

  .container {
    width: min(100% - 12px, var(--container));
  }

  .map-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 2100;
    backdrop-filter: none;
  }

  .map-top__inner {
    gap: 8px;
    padding-top: calc(5px + env(safe-area-inset-top, 0px));
    padding-bottom: 5px;
  }

  .map-top__identity {
    gap: 8px;
  }

  .map-top__home {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 11px;
  }

  .map-top__kicker {
    display: none;
  }

  .map-top__title {
    margin-top: 0;
    font-size: clamp(13px, 3vw, 16px);
    line-height: 1;
  }

  .map-top__links {
    gap: 3px;
  }

  .map-top__links a {
    padding: 4px 6px;
    border-radius: 9px;
    font-size: 9px;
    letter-spacing: 0.05em;
    line-height: 1;
  }

  .map-top__links a.map-top__link--cta {
    border-color: rgba(255, 145, 172, 0.86);
    box-shadow: 0 7px 14px rgba(255, 47, 90, 0.26), 0 0 0 1px rgba(255, 199, 212, 0.2);
    animation: field-guide-pulse 3.6s ease-in-out infinite;
  }

  .map-top__links a.map-top__link--cta:hover {
    animation-play-state: paused;
  }

  .map-main {
    padding-top: calc(var(--map-top-mobile-offset) + env(safe-area-inset-top, 0px));
  }

  .map-intro {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .map-intro__row {
    margin-bottom: 6px;
  }

  .map-intro__score-pill {
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .map-intro__lede {
    font-size: 12px;
    line-height: 1.4;
  }

  .map-workspace {
    padding: 8px;
    scroll-margin-top: calc(var(--map-top-mobile-offset) + env(safe-area-inset-top, 0px) + 14px);
  }

  .geo-left-column {
    min-height: 0;
    padding: 8px;
  }

  .geo-left-column .panel-head {
    align-items: center;
    margin-bottom: 6px;
    gap: 6px;
  }

  .geo-left-column .panel-head h2 {
    font-size: 13px;
    line-height: 1;
  }

  .geo-left-column .updated-pill {
    font-size: 9px;
    padding: 3px 6px;
  }

  .geo-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .geo-filter-row .field {
    min-width: 0;
  }

  .geo-filter-row .field span {
    font-size: 8px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .geo-filter-row select {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    padding: 4px 5px;
    font-size: 9px;
  }

  .geo-map-column .panel-head {
    align-items: center;
    margin-bottom: 4px;
    grid-template-columns: auto minmax(52px, 1fr) max-content;
    column-gap: 8px;
  }

  .geo-map-column {
    padding: 8px;
  }

  .geo-map-shell,
  .geo-map {
    border-radius: 12px;
  }

  .geo-map-column .panel-head h2 {
    font-size: 13px;
    line-height: 1.08;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .geo-provider-badge {
    padding: 4px 7px;
    border-radius: 10px;
    gap: 1px;
  }

  .geo-provider-badge strong {
    font-size: 14px;
  }

  .geo-provider-badge__label,
  .geo-provider-badge__meta {
    font-size: 7px;
    letter-spacing: 0.05em;
  }

  .geo-dgs-mark {
    font-size: 14px;
    letter-spacing: 0.09em;
  }

  .geo-map-shell .geo-map-actions {
    top: 8px;
    gap: 4px;
  }

  .geo-map-shell .geo-map-actions button,
  .geo-map-shell .geo-map-actions button.secondary {
    border-radius: 7px;
    padding: 3px 6px;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }

  .geo-brand-tag--top {
    display: none;
  }

  .geo-brand-tag--bottom {
    bottom: 12px;
    right: 8px;
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .geo-brand-tag--bottom::before {
    content: "Dispatch Geo Signals • ";
  }

  .usa-title-marker {
    font-size: 30px;
  }

  .ocean-title-marker {
    font-size: 24px;
  }

  .ocean-title-marker--gulf {
    font-size: 22px;
  }

  .ocean-title-marker--atlantic,
  .ocean-title-marker--pacific {
    font-size: 25px;
  }

  .geo-code-rail {
    top: 44px;
    left: 6px;
    right: auto;
    max-height: calc(100% - 52px);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .geo-code-bubble {
    min-width: 30px;
    height: 16px;
    padding: 0 4px;
    font-size: 8px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 8px, var(--container));
  }

  .map-workspace {
    padding: 6px;
  }

  .geo-left-column,
  .geo-map-column {
    padding: 6px;
  }

  .map-top__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding-top: calc(3px + env(safe-area-inset-top, 0px));
    padding-bottom: 3px;
  }

  .map-top__identity {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .map-top__title {
    font-size: clamp(11px, 4.1vw, 14px);
  }

  .map-top__links {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 3px;
    margin-top: 0;
  }

  .map-top__links a {
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .map-intro__score-pill {
    padding: 5px 8px;
    font-size: 8px;
  }

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

  .geo-share-panel__actions {
    grid-template-columns: 1fr;
  }

  .geo-map-shell {
    min-height: 320px;
    height: 360px;
  }

  .geo-map {
    min-height: 0;
    height: 100%;
  }

  .geo-map-column .panel-head h2 {
    font-size: 12px;
  }

  .geo-provider-badge {
    padding: 3px 6px;
  }

  .geo-provider-badge strong {
    font-size: 12px;
  }

  .geo-provider-badge__label,
  .geo-provider-badge__meta {
    font-size: 6px;
  }

  .geo-dgs-mark {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .geo-map-shell .geo-map-actions {
    top: 7px;
    gap: 3px;
  }

  .geo-map-shell .geo-map-actions button,
  .geo-map-shell .geo-map-actions button.secondary {
    border-radius: 6px;
    padding: 2px 5px;
    font-size: 8px;
  }

  .geo-brand-tag {
    font-size: 8px;
    right: 8px;
    padding: 4px 7px;
  }

  .geo-left-column .panel-head h2 {
    font-size: 12px;
  }

  .geo-left-column .updated-pill {
    font-size: 8px;
    padding: 2px 5px;
  }

  .geo-filter-row {
    gap: 3px;
  }

  .geo-filter-row .field span {
    font-size: 7px;
  }

  .geo-filter-row select {
    padding: 3px 4px;
    font-size: 8px;
  }

  .geo-code-rail {
    top: 40px;
    left: 4px;
    max-height: calc(100% - 48px);
    gap: 2px;
  }

  .geo-code-bubble {
    min-width: 28px;
    height: 15px;
    padding: 0 3px;
    font-size: 7px;
  }

  .usa-title-marker {
    font-size: 24px;
  }

  .ocean-title-marker {
    font-size: 19px;
  }

  .ocean-title-marker--gulf {
    font-size: 17px;
  }

  .ocean-title-marker--atlantic,
  .ocean-title-marker--pacific {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-top__links a.map-top__link--cta {
    animation: none !important;
  }
}

.geo-code-empty {
  border: 1px dashed rgba(255, 154, 174, 0.42);
  border-radius: 10px;
  padding: 6px 7px;
  background: rgba(16, 4, 8, 0.86);
  color: var(--fg2);
  font-size: 10px;
  pointer-events: auto;
}
