.nodes-hero {
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nodes-hero-grid {
  display: grid;
  min-height: calc(100svh - var(--header-height) - 80px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
}

.nodes-hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-top: clamp(54px, 8vw, 104px);
  padding-right: clamp(34px, 6vw, 88px);
  padding-bottom: clamp(54px, 8vw, 104px);
}

.nodes-hero-copy h1 {
  max-width: 760px;
  margin-top: 22px;
}

.nodes-hero-copy .lede {
  max-width: 650px;
}

.route-overview {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-right: calc(var(--gutter) * -1);
  padding: clamp(34px, 6vw, 72px);
  border-left: 1px solid var(--color-cream-12);
  background-color: var(--color-night);
  background-image: radial-gradient(var(--color-dots) 1px, var(--color-transparent) 1.2px);
  background-size: 12px 12px;
  color: var(--color-cream);
}

.route-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.route-overview .eyebrow {
  margin: 0;
  color: var(--color-cream-60);
}

.route-overview .fact-pill {
  border-color: var(--color-cream-12);
  background: var(--color-night-panel);
  color: var(--color-cream);
}

.region-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-cream-12);
  border-left: 1px solid var(--color-cream-12);
}

.region-board a {
  display: flex;
  min-height: 150px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--color-cream-12);
  border-bottom: 1px solid var(--color-cream-12);
  background: var(--color-night-panel);
  transition:
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.region-board a:hover {
  background: var(--color-lilac);
  transform: translateY(-1px);
}

.region-code {
  margin-bottom: 12px;
  color: var(--color-cream-60);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.region-board strong {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.region-board small {
  margin-top: 7px;
  color: var(--color-cream-60);
  line-height: 1.5;
}

.route-overview-note {
  margin: 24px 0 0;
  color: var(--color-cream-60);
  font-size: 14px;
}

.region-jump {
  display: flex;
  max-width: 100%;
  gap: 8px;
  margin: 32px 0 44px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.region-jump a {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.region-jump a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-strong);
}

.route-group {
  scroll-margin-top: var(--toc-offset);
}

.route-group-copy {
  max-width: 850px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.route-group .table-scroll {
  box-shadow: var(--shadow-card);
}

.route-group .data-table th:nth-child(1),
.route-group .data-table td:nth-child(1) {
  width: 24%;
}

.route-group .data-table th:nth-child(2),
.route-group .data-table td:nth-child(2) {
  width: 24%;
}

.route-group .data-table th:nth-child(3),
.route-group .data-table td:nth-child(3) {
  width: 24%;
}

.route-section-lede {
  max-width: 760px;
  margin: 0 0 40px;
  color: var(--color-cream-80);
  font-size: 18px;
}

.type-ledger {
  border-top: 1px solid var(--color-cream-12);
}

.type-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  padding-top: clamp(30px, 5vw, 54px);
  padding-bottom: clamp(30px, 5vw, 54px);
  border-bottom: 1px solid var(--color-cream-12);
}

.type-entry-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--color-cream-30);
  border-radius: var(--radius-round);
  background: var(--color-lilac);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 18px;
}

.type-entry .tag {
  margin-bottom: 14px;
  border-color: var(--color-cream-12);
  background: var(--color-lilac);
  color: var(--color-cream);
}

.type-entry h3 {
  margin-bottom: 16px;
}

.type-entry p {
  max-width: 900px;
}

.route-type-table {
  margin-top: 42px;
  border-color: var(--color-cream-12);
}

.route-type-table .data-table {
  background: var(--color-night-panel);
  color: var(--color-cream);
}

.route-type-table .data-table th {
  border-bottom-color: var(--color-cream-12);
  background: var(--color-lilac);
  color: var(--color-cream);
}

.route-type-table .data-table td {
  border-bottom-color: var(--color-cream-12);
  color: var(--color-cream-80);
}

.route-type-table .data-table td:first-child {
  color: var(--color-cream);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.usage-card {
  grid-column: span 2;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.usage-card:nth-child(4),
.usage-card:nth-child(5) {
  grid-column: span 3;
}

.usage-index {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

.usage-card h3 {
  font-size: 23px;
}

.usage-card p {
  color: var(--color-text-muted);
}

.coverage-note {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.coverage-note-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.coverage-note h2 {
  margin-bottom: 0;
}

.coverage-copy {
  color: var(--color-text-muted);
}

.coverage-copy p + p {
  margin-top: 18px;
}

.coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .nodes-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
  }

  .nodes-hero-copy {
    padding-right: 36px;
  }

  .route-overview {
    padding: 34px;
  }

  .region-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .region-board a {
    min-height: 112px;
  }

  .usage-card {
    grid-column: span 3;
  }

  .usage-card:nth-child(5) {
    grid-column: 2 / span 4;
  }
}

@media (max-width: 768px) {
  .nodes-hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
    padding-left: 0;
  }

  .nodes-hero-copy {
    padding-top: 48px;
    padding-right: var(--gutter);
    padding-bottom: 42px;
    padding-left: var(--gutter);
  }

  .route-overview {
    margin-right: 0;
    padding: 32px var(--gutter);
    border-top: 1px solid var(--color-cream-12);
    border-left: 0;
  }

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

  .region-board a {
    min-height: 130px;
  }

  .type-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .type-entry-mark {
    width: 50px;
    height: 50px;
  }

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

  .usage-card,
  .usage-card:nth-child(4),
  .usage-card:nth-child(5) {
    grid-column: auto;
  }

  .coverage-note-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .route-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .region-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .region-board a {
    min-height: 108px;
    padding: 20px;
  }

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

  .coverage-actions .btn {
    width: 100%;
  }
}