:root {
  --page-bg: #060d12;
  --page-bg-deep: #03070b;
  --surface: rgba(10, 18, 24, 0.9);
  --surface-strong: rgba(12, 22, 29, 0.96);
  --surface-solid: #0f171d;
  --surface-soft: rgba(15, 24, 31, 0.92);
  --surface-tint: rgba(79, 214, 255, 0.08);
  --surface-dark: #071118;
  --surface-dark-deep: #03090f;
  --surface-dark-soft: #0d1a22;
  --border-soft: rgba(130, 188, 209, 0.14);
  --border-strong: rgba(130, 188, 209, 0.24);
  --ink: #edf8fc;
  --ink-soft: #9bb0bc;
  --ink-muted: #6d8290;
  --accent: #1496bc;
  --accent-strong: #86e6ff;
  --accent-bright: #4fd6ff;
  --accent-soft: rgba(79, 214, 255, 0.12);
  --signal-5: #ff8667;
  --signal-4: #ffb65a;
  --signal-3: #d6c35f;
  --signal-2: #8fc26a;
  --status-open: #59d4ae;
  --status-review: #f2bc66;
  --status-reserve: #b9a9ff;
  --shadow-xs: 0 12px 24px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 18px 38px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 30px 90px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 42px 120px rgba(0, 0, 0, 0.44);
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 999px;
  --font-display: "Space Grotesk", "IBM Plex Sans", "Sohne", "Avenir Next", sans-serif;
  --font-body: "IBM Plex Sans", "Sohne", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", "Monaco", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(79, 214, 255, 0.14), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(20, 150, 188, 0.14), transparent 22%),
    linear-gradient(180deg, #091117 0%, var(--page-bg) 36%, var(--page-bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(79, 214, 255, 0.08), transparent 18%),
    radial-gradient(circle at 84% 22%, rgba(134, 230, 255, 0.06), transparent 20%);
}

body::after {
  background-image:
    linear-gradient(rgba(79, 214, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 214, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 86%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 5000;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--accent-bright);
  color: #041017;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  width: min(1480px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.page-main {
  display: grid;
  gap: 1.6rem;
}

.contact-banner,
.site-footer,
.hero-copy,
.hero-board,
.stats-strip,
.filter-bar,
.panel,
.corridor-track,
.method-card {
  position: relative;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.contact-banner,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.1rem;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(12, 20, 27, 0.96), rgba(8, 14, 19, 0.92));
  color: var(--ink-soft);
  text-align: center;
}

.contact-banner {
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 1rem;
}

.contact-banner a,
.site-footer a {
  color: var(--accent-bright);
  font-weight: 800;
  text-decoration: none;
}

.contact-banner a:hover,
.contact-banner a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 21, 29, 0.96), rgba(7, 14, 19, 0.94));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(79, 214, 255, 0.12), transparent 46%),
    linear-gradient(145deg, rgba(5, 16, 22, 0.98), rgba(20, 150, 188, 0.74));
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(134, 230, 255, 0.16), 0 18px 34px rgba(0, 0, 0, 0.34);
}

.brand-copy {
  min-width: 0;
}

.eyebrow,
.panel-kicker,
.stat-kicker,
.board-label,
.method-step,
.metric span,
.map-popup-kicker {
  margin: 0;
  color: var(--accent-bright);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.site-header h1 {
  margin: 0.18rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 2vw, 2.18rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.brand-meta {
  margin: 0.34rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-family: var(--font-mono);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(130, 188, 209, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(10, 18, 24, 0.8);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-mono);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(79, 214, 255, 0.22);
  background: rgba(14, 30, 38, 0.96);
  color: var(--accent-bright);
  box-shadow: var(--shadow-xs);
}

.section {
  margin: 0;
  scroll-margin-top: 6.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.94fr);
  gap: 1.15rem;
}

.hero-copy,
.hero-board {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.hero-copy {
  padding: 2rem;
  background:
    linear-gradient(125deg, rgba(79, 214, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(12, 21, 28, 0.96), rgba(7, 14, 18, 0.94));
}

.hero-board {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.3rem;
  background:
    radial-gradient(circle at top right, rgba(79, 214, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.98), rgba(5, 10, 14, 0.96));
  color: #fff;
}

.hero h2,
.section-heading h2,
.panel-header h3,
.method-card h3 {
  margin: 0.38rem 0 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.hero h2 {
  font-size: clamp(2.5rem, 4.25vw, 4.8rem);
  line-height: 0.94;
  max-width: 14ch;
}

.hero-lead,
.section-heading p,
.warning-card,
.board-card p,
.panel p,
.method-list,
.method-note,
.candidate-summary,
.detail-summary,
.detail-list,
.corridor-summary,
.results-bar p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-lead {
  max-width: 58ch;
  margin-top: 1rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.55rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.18rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(145deg, rgba(6, 17, 24, 0.98), rgba(20, 150, 188, 0.82));
  color: #f6fdff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 40px rgba(13, 59, 75, 0.28);
}

.button-secondary,
.button-tertiary {
  background: rgba(10, 18, 24, 0.88);
  border-color: rgba(130, 188, 209, 0.14);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-tertiary:hover,
.button-tertiary:focus-visible {
  border-color: rgba(79, 214, 255, 0.2);
  background: rgba(14, 28, 36, 0.96);
}

.warning-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 134, 103, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 134, 103, 0.12), rgba(255, 134, 103, 0.04)),
    rgba(18, 14, 12, 0.9);
}

.board-card {
  padding: 1.15rem 1.18rem;
  border-radius: 18px;
  border: 1px solid rgba(130, 188, 209, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.board-card-accent {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(155deg, rgba(29, 120, 145, 0.96), rgba(7, 22, 29, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.board-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.hero-board .board-card,
.hero-board .board-label,
.hero-board .board-card p {
  color: rgba(255, 255, 255, 0.84);
}

.hero-board .board-card h3 {
  color: #fff;
}

.stats-strip,
.corridor-track,
.method-card,
.panel,
.filter-bar {
  border-radius: var(--radius-2xl);
}

.stats-strip {
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.94), rgba(7, 13, 18, 0.92));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  min-height: 10rem;
  padding: 1.05rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(12, 22, 29, 0.98), rgba(8, 15, 20, 0.94));
  box-shadow: var(--shadow-xs);
}

.stat-card-emphasis {
  background:
    radial-gradient(circle at top right, rgba(79, 214, 255, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(6, 18, 25, 0.98), rgba(15, 72, 90, 0.94));
  border-color: rgba(79, 214, 255, 0.18);
}

.stat-card-emphasis .stat-kicker,
.stat-card-emphasis .stat-label {
  color: rgba(255, 255, 255, 0.68);
}

.stat-card-emphasis .stat-value {
  color: #fff;
}

.stat-value {
  display: block;
  margin-top: 1.05rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.15vw, 2.7rem);
  line-height: 0.98;
}

.stat-label {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(79, 214, 255, 0.14), transparent);
  animation: shimmer 1.6s ease-in-out infinite;
}

.section-heading {
  max-width: 60rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 3vw, 3.25rem);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.94), rgba(8, 14, 19, 0.92));
}

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

.field span {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.field input,
.field select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(130, 188, 209, 0.14);
  border-radius: 16px;
  background: rgba(6, 13, 18, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(134, 230, 255, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field input:focus-visible,
.field select:focus-visible,
.button:focus-visible,
.candidate-card:focus-visible,
.site-nav a:focus-visible,
.source-link:focus-visible,
.corridor-link:focus-visible,
.map-layer-button:focus-visible {
  outline: none;
  border-color: rgba(79, 214, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(79, 214, 255, 0.12);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.15rem 0.15rem 0;
}

.results-bar p {
  margin: 0;
}

.explorer-layout {
  display: grid;
  grid-template-areas: "list map detail";
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.62fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: start;
}

.panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.98), rgba(7, 13, 18, 0.94));
}

.panel-header {
  padding: 1.25rem 1.3rem 0;
}

.panel-header h3 {
  font-size: 1.72rem;
}

.panel-list {
  grid-area: list;
  min-height: 46rem;
}

.panel-detail {
  grid-area: detail;
  min-height: 46rem;
  position: sticky;
  top: 6.9rem;
}

.panel-map {
  grid-area: map;
  padding-bottom: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(79, 214, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(5, 12, 17, 0.98) 0, rgba(10, 36, 45, 0.96) 9.8rem, rgba(8, 15, 20, 0.98) 9.8rem, rgba(6, 12, 16, 0.96) 100%);
}

.panel-map .panel-kicker,
.panel-map .panel-header h3,
.panel-map .map-layer-status {
  color: rgba(255, 255, 255, 0.86);
}

.candidate-list {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  max-height: calc(100vh - 10.5rem);
  overflow: auto;
}

.candidate-card {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border: 1px solid rgba(130, 188, 209, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 20, 27, 0.98), rgba(7, 13, 18, 0.94));
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.candidate-card:hover,
.candidate-card:focus-visible,
.candidate-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(79, 214, 255, 0.22);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.candidate-card.is-active {
  background:
    radial-gradient(circle at top right, rgba(79, 214, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(14, 28, 36, 0.98), rgba(8, 15, 20, 0.96));
}

.candidate-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.candidate-rank,
.corridor-rank {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 18, 24, 0.98), rgba(18, 74, 92, 0.78));
  color: var(--accent-bright);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(134, 230, 255, 0.1);
  font-family: var(--font-mono);
}

.candidate-title-row {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.candidate-title-row h3,
.corridor-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.candidate-summary,
.corridor-summary,
.detail-summary {
  margin: 0;
}

.candidate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.candidate-coordinates {
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.candidate-focus-label {
  color: var(--accent-bright);
  font-weight: 800;
  font-family: var(--font-mono);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.92rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.02);
  line-height: 1.2;
  font-family: var(--font-mono);
}

.chip-score-5,
.legend-chip.score-5 {
  background: rgba(255, 134, 103, 0.14);
  color: var(--signal-5);
}

.chip-score-4,
.legend-chip.score-4 {
  background: rgba(255, 182, 90, 0.14);
  color: var(--signal-4);
}

.chip-score-3,
.legend-chip.score-3 {
  background: rgba(214, 195, 95, 0.14);
  color: var(--signal-3);
}

.chip-score-2,
.legend-chip.score-2 {
  background: rgba(143, 194, 106, 0.14);
  color: var(--signal-2);
}

.chip-status-open {
  background: rgba(89, 212, 174, 0.12);
  color: var(--status-open);
}

.chip-status-recheck_only {
  background: rgba(242, 188, 102, 0.12);
  color: var(--status-review);
}

.chip-status-secondary_reserve,
.chip-status-reserve_only {
  background: rgba(185, 169, 255, 0.12);
  color: var(--status-reserve);
}

.chip-type {
  background: rgba(79, 214, 255, 0.1);
  color: var(--accent-bright);
}

.chip-basis-independent_terrain {
  background: rgba(79, 214, 255, 0.08);
  color: var(--accent-bright);
}

.chip-basis-mixed {
  background: rgba(155, 176, 188, 0.12);
  color: var(--ink-soft);
}

.chip-basis-official_followup {
  background: rgba(89, 212, 174, 0.1);
  color: var(--status-open);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.9rem 1rem 0;
}

.map-toolbar-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.map-layer-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem;
  border: 1px solid rgba(130, 188, 209, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(134, 230, 255, 0.04);
}

.map-layer-button {
  min-height: 2.45rem;
  padding: 0.56rem 0.95rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(237, 248, 252, 0.68);
  font-weight: 800;
  font-family: var(--font-mono);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.map-layer-button:hover,
.map-layer-button:focus-visible {
  color: #fff;
}

.map-layer-button.is-active {
  background: rgba(79, 214, 255, 0.94);
  color: #041017;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.map-analysis-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem;
  border: 1px solid rgba(130, 188, 209, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(134, 230, 255, 0.04);
}

.map-tool-button {
  min-height: 2.45rem;
  padding: 0.56rem 0.95rem;
  border: 1px solid rgba(130, 188, 209, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(8, 16, 22, 0.94);
  color: rgba(237, 248, 252, 0.82);
  font-weight: 800;
  font-family: var(--font-mono);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.map-tool-button:hover,
.map-tool-button:focus-visible {
  color: #fff;
  border-color: rgba(79, 214, 255, 0.24);
  background: rgba(12, 24, 31, 0.98);
  transform: translateY(-1px);
}

.map-tool-button.is-active {
  border-color: rgba(79, 214, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(9, 22, 29, 0.98), rgba(6, 16, 22, 0.96));
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(79, 214, 255, 0.1), 0 12px 22px rgba(0, 0, 0, 0.28);
}

.map-layer-status {
  margin: 0;
  font-size: 0.84rem;
  font-family: var(--font-mono);
}

.map-frame {
  position: relative;
  padding: 1rem 1rem 0;
}

.map {
  min-height: 44rem;
  border-radius: 20px;
  border: 1px solid rgba(130, 188, 209, 0.14);
  background:
    radial-gradient(circle at 24% 22%, rgba(79, 214, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.98), rgba(5, 11, 16, 0.96));
  box-shadow: inset 0 1px 0 rgba(134, 230, 255, 0.04);
}

.map.map-has-tile-error {
  border-color: rgba(193, 86, 60, 0.4);
}

.map-note {
  position: absolute;
  right: 1.75rem;
  bottom: 1rem;
  max-width: 18rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(130, 188, 209, 0.12);
  background: rgba(5, 12, 17, 0.84);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem 0;
}

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

.legend-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.legend-line {
  width: 3rem;
  height: 0.28rem;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(79, 214, 255, 0.42) 0 9px,
      transparent 9px 16px
    );
  opacity: 0.7;
}

.legend-copy {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.legend-marker-sample {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid rgba(155, 176, 188, 0.88);
  background: rgba(10, 18, 24, 0.94);
  box-shadow: 0 0 0 1px rgba(79, 214, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.legend-marker-core {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: inherit;
  background: var(--signal-4);
}

.legend-marker-active {
  border-radius: 0.4rem;
  transform: rotate(45deg);
}

.legend-marker-active .legend-marker-core {
  border-radius: 0.14rem;
}

.legend-basis-independent {
  border-color: rgba(79, 214, 255, 0.88);
  box-shadow:
    0 0 0 2px rgba(79, 214, 255, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.legend-basis-official {
  border-color: rgba(89, 212, 174, 0.86);
  box-shadow:
    0 0 0 2px rgba(89, 212, 174, 0.18),
    0 0 0 4px rgba(89, 212, 174, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.legend-halo-sample {
  display: inline-flex;
  width: 2.2rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(134, 230, 255, 0.22);
  background: rgba(79, 214, 255, 0.1);
  box-shadow:
    0 0 0 3px rgba(79, 214, 255, 0.05),
    0 0 22px rgba(79, 214, 255, 0.08);
}

.detail-body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.25rem 1.3rem;
}

.detail-intro {
  display: grid;
  gap: 0.9rem;
}

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

.metric {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(130, 188, 209, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 22, 29, 0.98), rgba(7, 13, 18, 0.92));
}

.metric strong {
  display: block;
  margin-top: 0.42rem;
  font-size: 1rem;
}

.detail-section {
  padding-top: 0.2rem;
  border-top: 1px solid rgba(130, 188, 209, 0.1);
}

.detail-body h4 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.detail-list {
  margin: 0;
  padding-left: 1.15rem;
}

.source-list {
  display: grid;
  gap: 0.65rem;
}

.source-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(130, 188, 209, 0.12);
  background:
    linear-gradient(180deg, rgba(11, 20, 27, 0.98), rgba(7, 13, 18, 0.92));
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.source-link:hover,
.source-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(79, 214, 255, 0.18);
  box-shadow: var(--shadow-xs);
}

.source-label {
  font-weight: 800;
}

.source-host {
  color: var(--ink-soft);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--font-mono);
}

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

.method-card {
  padding: 1.35rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.98), rgba(7, 13, 18, 0.94));
}

.method-card h3 {
  font-size: 1.52rem;
}

.method-list {
  margin: 0;
  padding-left: 1.15rem;
}

.method-highlight {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(79, 214, 255, 0.16);
  background: rgba(79, 214, 255, 0.08);
  color: var(--ink);
}

.method-note {
  margin: 1rem 0 0;
  padding: 0.92rem 1rem;
  border-radius: 18px;
  background: rgba(10, 18, 24, 0.92);
  border: 1px solid rgba(130, 188, 209, 0.12);
}

.corridor-track {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.96), rgba(7, 13, 18, 0.94));
}

.corridor-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(130, 188, 209, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 20, 27, 0.98), rgba(7, 13, 18, 0.92));
  box-shadow: var(--shadow-xs);
}

.corridor-main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.corridor-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.corridor-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 800;
}

.map-marker-wrapper {
  background: transparent;
  border: 0;
}

.marker-visual {
  --marker-offset-x: 0px;
  --marker-offset-y: 0px;
  --marker-connector-length: 0px;
  --marker-connector-angle: 0deg;
  --marker-rotation: 0deg;
  --marker-scale: 1;
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  color: var(--accent-bright);
}

.marker-connector {
  position: absolute;
  left: 28px;
  top: 27px;
  width: var(--marker-connector-length);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(134, 230, 255, 0.05), rgba(134, 230, 255, 0.52));
  transform-origin: 0 50%;
  transform: rotate(var(--marker-connector-angle));
  opacity: 0;
  transition: opacity 160ms ease;
}

.marker-visual.has-offset .marker-connector {
  opacity: 1;
}

.marker-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform:
    translate(
      calc(-50% + var(--marker-offset-x)),
      calc(-50% + var(--marker-offset-y))
    )
    rotate(var(--marker-rotation))
    scale(var(--marker-scale));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.marker-ring,
.marker-core {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.marker-ring {
  border: 2px solid rgba(155, 176, 188, 0.8);
  background:
    radial-gradient(circle at 32% 28%, rgba(79, 214, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(9, 18, 24, 0.98), rgba(4, 10, 15, 0.94));
  box-shadow:
    0 0 0 1px rgba(79, 214, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.34);
}

.marker-core {
  inset: 8px;
  background: currentColor;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06),
    0 0 18px color-mix(in srgb, currentColor 36%, transparent);
}

.marker-rank-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 188, 209, 0.14);
  background: rgba(6, 13, 18, 0.96);
  color: var(--ink);
  font-size: 0.66rem;
  font-family: var(--font-mono);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.marker-shape-passive {
  --marker-rotation: 0deg;
}

.marker-shape-passive .marker-shell,
.marker-shape-passive .marker-ring,
.marker-shape-passive .marker-core {
  border-radius: 999px;
}

.marker-shape-active {
  --marker-rotation: 45deg;
}

.marker-shape-active .marker-shell,
.marker-shape-active .marker-ring,
.marker-shape-active .marker-core {
  border-radius: 0.55rem;
}

.marker-shape-active .marker-rank-badge {
  transform: rotate(-45deg);
}

.marker-basis-mixed .marker-ring {
  border-color: rgba(155, 176, 188, 0.82);
}

.marker-basis-independent_terrain .marker-ring {
  border-color: rgba(79, 214, 255, 0.88);
  box-shadow:
    0 0 0 2px rgba(79, 214, 255, 0.18),
    0 0 18px rgba(79, 214, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.34);
}

.marker-basis-official_followup .marker-ring {
  border-color: rgba(89, 212, 174, 0.84);
  box-shadow:
    0 0 0 2px rgba(89, 212, 174, 0.16),
    0 0 0 4px rgba(89, 212, 174, 0.05),
    0 14px 30px rgba(0, 0, 0, 0.34);
}

.marker-visual.is-active {
  --marker-scale: 1.16;
}

.marker-visual.is-active .marker-connector {
  background: linear-gradient(90deg, rgba(134, 230, 255, 0.12), rgba(134, 230, 255, 0.75));
  opacity: 0.95;
}

.marker-visual.is-active .marker-ring {
  filter: saturate(1.1);
  box-shadow:
    0 0 0 2px rgba(79, 214, 255, 0.24),
    0 0 26px rgba(79, 214, 255, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.4);
}

.marker-visual.is-active .marker-core {
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.08),
    0 0 24px color-mix(in srgb, currentColor 48%, transparent);
}

.marker-score-5 {
  color: var(--signal-5);
}

.marker-score-4 {
  color: var(--signal-4);
}

.marker-score-3 {
  color: var(--signal-3);
}

.marker-score-2 {
  color: var(--signal-2);
}

.map-popup {
  display: grid;
  gap: 0.28rem;
}

.map-popup h4 {
  margin: 0;
  font-size: 1rem;
}

.map-popup-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(12, 25, 31, 0.96);
  color: #fff;
}

.leaflet-popup-content {
  margin: 0.9rem 1rem;
  font-family: var(--font-body);
}

.leaflet-control-zoom a,
.leaflet-control-attribution a,
.leaflet-bar a {
  color: var(--accent-bright);
}

.leaflet-control-zoom a,
.leaflet-bar a {
  background: rgba(7, 14, 19, 0.96);
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus-visible,
.leaflet-bar a:hover,
.leaflet-bar a:focus-visible {
  color: #041017;
  background: rgba(79, 214, 255, 0.94);
}

.leaflet-control-zoom,
.leaflet-bar,
.leaflet-control-layers {
  border: 1px solid rgba(130, 188, 209, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.leaflet-control-attribution {
  color: var(--ink-soft);
  background: rgba(7, 14, 19, 0.88);
  backdrop-filter: blur(10px);
}

.leaflet-control-layers-toggle,
.leaflet-control-layers-expanded {
  background-color: rgba(7, 14, 19, 0.96);
}

.leaflet-control-layers-expanded,
.leaflet-control-layers-expanded label {
  color: var(--ink);
}

.leaflet-control-layers-expanded {
  padding: 0.8rem 0.9rem;
  color: var(--ink);
}

.leaflet-control-layers label {
  color: var(--ink);
}

.empty-state,
.error-state {
  padding: 1rem;
  margin: 0 1.2rem 1.2rem;
  border-radius: 18px;
  border: 1px dashed rgba(130, 188, 209, 0.18);
  background: rgba(10, 18, 24, 0.78);
  color: var(--ink-soft);
}

.hero-copy,
.hero-board,
.stats-strip,
.filter-bar,
.panel,
.method-card,
.corridor-track {
  animation: surface-enter 620ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

.board-card:nth-child(1),
.stat-card:nth-child(1),
.method-card:nth-child(1),
.corridor-card:nth-child(1) {
  animation-delay: 40ms;
}

.board-card:nth-child(2),
.stat-card:nth-child(2),
.method-card:nth-child(2),
.corridor-card:nth-child(2) {
  animation-delay: 80ms;
}

.board-card:nth-child(3),
.stat-card:nth-child(3),
.method-card:nth-child(3),
.corridor-card:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1240px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .explorer-layout {
    grid-template-areas:
      "map map"
      "detail list";
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  }

  .panel-list,
  .panel-detail {
    min-height: auto;
  }

  .panel-detail {
    position: static;
  }

  .candidate-list {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .site-shell {
    width: min(100% - 1rem, 100%);
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px;
  }

  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.12rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

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

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

  .explorer-layout {
    grid-template-areas:
      "map"
      "detail"
      "list";
    grid-template-columns: 1fr;
  }

  .panel-map,
  .panel-detail,
  .panel-list {
    min-height: auto;
  }

  .map {
    min-height: 28rem;
  }

  .map-toolbar {
    align-items: stretch;
  }

  .map-toolbar-groups {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .map-layer-switch {
    width: 100%;
    justify-content: space-between;
  }

  .map-analysis-tools {
    width: 100%;
    justify-content: stretch;
  }

  .map-layer-button {
    flex: 1 1 0;
    text-align: center;
  }

  .map-tool-button {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
  }

  .map-layer-status {
    width: 100%;
  }

  .corridor-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .corridor-actions {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  body::after {
    display: none;
  }

  .site-shell {
    width: min(100% - 0.75rem, 100%);
    padding-top: 0.75rem;
  }

  .section {
    scroll-margin-top: 1rem;
  }

  .contact-banner,
  .site-footer {
    flex-direction: column;
    gap: 0.18rem;
    border-radius: 24px;
    padding: 0.9rem 1rem;
  }

  .site-header {
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.12rem;
  }

  .site-header h1 {
    font-size: 1.34rem;
  }

  .brand-meta {
    font-size: 0.86rem;
  }

  .hero-copy,
  .hero-board,
  .stats-strip,
  .filter-bar,
  .panel,
  .corridor-track,
  .method-card {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-board,
  .stats-strip,
  .corridor-track {
    padding: 1.15rem;
  }

  .filter-bar {
    padding: 0.95rem;
  }

  .method-card {
    padding: 1.1rem;
  }

  .hero h2 {
    font-size: clamp(2.1rem, 9vw, 3.1rem);
    line-height: 0.98;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .board-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .board-card h3 {
    font-size: 1.25rem;
  }

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

  .stat-card,
  .candidate-card,
  .corridor-card {
    padding: 0.95rem;
  }

  .stat-card {
    min-height: auto;
  }

  .results-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .results-bar .button {
    width: 100%;
  }

  .panel-header {
    padding: 1rem 1rem 0;
  }

  .panel-header h3 {
    font-size: 1.46rem;
  }

  .candidate-list {
    gap: 0.7rem;
    padding: 0.95rem;
  }

  .candidate-card-head {
    gap: 0.7rem;
  }

  .candidate-rank,
  .corridor-rank {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 16px;
  }

  .map-frame {
    padding: 0.8rem 0.8rem 0;
  }

  .map {
    min-height: 22rem;
    border-radius: 22px;
  }

  .map-note {
    position: static;
    max-width: none;
    margin-top: 0.75rem;
  }

  .legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 1rem 0;
  }

  .legend-group {
    width: 100%;
  }

  .legend-marker-sample,
  .legend-halo-sample {
    flex: 0 0 auto;
  }

  .detail-body {
    padding: 1rem 1rem 1.15rem;
  }

  .method-card h3 {
    font-size: 1.3rem;
  }

  .metric strong,
  .candidate-coordinates,
  .source-host {
    overflow-wrap: anywhere;
  }

  .marker-shell {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 560px) {
  .chip {
    min-height: 1.82rem;
    padding: 0.22rem 0.62rem;
    font-size: 0.73rem;
  }

  .corridor-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .corridor-actions .button {
    flex: 1 1 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
