.nodes-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding-top: clamp(64px, 9vw, 126px);
  padding-bottom: clamp(70px, 10vw, 138px);
  overflow: hidden;
  border-bottom: 6px solid var(--color-border);
  background:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px),
    var(--color-bg);
  background-size: 84px 84px;
}

.nodes-hero::after {
  content: "";
  width: 44%;
  height: 5px;
  position: absolute;
  right: 0;
  bottom: -1px;
  background: var(--color-accent);
}

.nodes-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
}

.nodes-hero-grid > * {
  min-width: 0;
}

.nodes-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 24px;
}

.nodes-hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--color-text-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.nodes-hero-lead strong {
  color: var(--color-text);
}

.nodes-fact-line {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  border-top: 3px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-glass);
}

.nodes-fact-line span {
  min-height: 56px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
  font-size: 13px;
}

.nodes-fact-line span:last-child {
  border-right: 0;
}

.nodes-fact-line strong {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 720;
}

.route-atlas {
  min-width: 0;
  position: relative;
  padding: 22px;
  border-top: 5px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-panel);
}

.route-atlas svg {
  width: 100%;
  height: auto;
}

.atlas-grid-line {
  fill: none;
  stroke: var(--color-grid-strong);
  stroke-width: 1;
}

.atlas-secondary-route {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.5;
  stroke-dasharray: 7 10;
  opacity: 0.48;
}

.atlas-main-underlay {
  fill: none;
  stroke: var(--color-bg);
  stroke-width: 10;
}

.atlas-main-route {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 4;
}

.atlas-node {
  fill: var(--color-bg-panel-2);
  stroke: var(--color-text);
  stroke-width: 2;
}

.atlas-node-accent {
  fill: var(--color-accent);
}

.atlas-ring {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  opacity: 0.72;
}

.atlas-ring-wide {
  opacity: 0.34;
}

.atlas-label {
  fill: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.atlas-label-accent {
  fill: var(--color-accent);
}

.atlas-caption {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.directory-notes {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.directory-notes article {
  min-width: 0;
  padding: 26px;
  border-top: 4px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  background: var(--color-bg-panel);
}

.directory-notes article:nth-child(even) {
  background: var(--color-bg-panel-2);
}

.directory-notes h3 {
  font-size: 23px;
}

.directory-notes p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.route-type-ledger {
  border-top: 6px solid var(--color-border);
}

.route-type-entry {
  min-width: 0;
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: clamp(36px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  border-bottom: 1px solid var(--color-border);
}

.route-type-entry:nth-child(even) .route-type-content {
  padding-left: clamp(0px, 6vw, 86px);
}

.route-type-label {
  align-self: start;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top: 4px solid var(--color-accent);
}

.route-type-code {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 760;
  letter-spacing: 0.05em;
}

.route-type-content {
  min-width: 0;
}

.route-type-content h3 {
  margin-bottom: 20px;
}

.route-type-content p {
  color: var(--color-text-muted);
}

.route-type-content p:last-child {
  margin-bottom: 0;
}

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

.usage-entry {
  min-width: 0;
  grid-column: span 6;
  padding: clamp(24px, 4vw, 38px);
  border-top: 5px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  background: var(--color-bg-panel);
}

.usage-entry:nth-child(even) {
  background: var(--color-bg-panel-2);
}

.usage-entry:nth-child(3) {
  grid-column: span 7;
}

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

.usage-entry:last-child {
  grid-column: span 8;
}

.usage-mark {
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding-bottom: 8px;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.usage-entry h3 {
  font-size: clamp(22px, 2.5vw, 30px);
}

.usage-entry p:not(.usage-mark) {
  color: var(--color-text-muted);
}

.usage-entry p:last-child {
  margin-bottom: 0;
}

.selection-sequence {
  margin-top: 54px;
  padding: clamp(26px, 5vw, 48px);
  border-top: 6px solid var(--color-accent);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  background: var(--color-bg-panel-2);
}

.selection-sequence ol {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: route-step;
}

.selection-sequence li {
  min-width: 0;
  padding: 16px 0 16px 52px;
  position: relative;
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
  counter-increment: route-step;
}

.selection-sequence li::before {
  content: counter(route-step);
  width: 34px;
  height: 34px;
  position: absolute;
  top: 14px;
  left: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: var(--color-bg-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 720;
}

.selection-sequence strong {
  color: var(--color-text);
}

.region-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 5px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.region-ledger article {
  min-width: 0;
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-panel);
}

.region-ledger article:nth-child(even) {
  background: var(--color-bg-panel-2);
}

.region-symbol {
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 740;
}

.region-ledger h3 {
  font-size: 22px;
}

.region-ledger p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.coverage-summary {
  margin-top: 54px;
  padding-top: 42px;
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
  border-top: 6px solid var(--color-accent);
}

.coverage-summary > * {
  min-width: 0;
}

.coverage-label {
  margin-bottom: 18px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.14em;
}

.coverage-summary h3 {
  font-size: clamp(25px, 3vw, 36px);
}

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

.coverage-copy .button-row {
  margin-top: 28px;
}

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

  .route-atlas {
    max-width: 760px;
  }

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

@media (max-width: 820px) {
  .nodes-hero {
    min-height: auto;
  }

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

  .route-type-entry:nth-child(even) .route-type-content {
    padding-left: 0;
  }

  .route-type-label {
    max-width: 250px;
  }

  .usage-entry,
  .usage-entry:nth-child(3),
  .usage-entry:nth-child(4),
  .usage-entry:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .directory-notes,
  .region-ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .nodes-fact-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .nodes-fact-line span {
    border-right: 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .nodes-fact-line span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .nodes-hero {
    padding-top: 50px;
    padding-bottom: 70px;
  }

  .nodes-hero-grid {
    gap: 44px;
  }

  .nodes-hero-lead {
    font-size: 17px;
  }

  .route-atlas {
    padding: 12px;
    box-shadow: none;
  }

  .atlas-label {
    display: none;
  }

  .directory-notes article,
  .usage-entry,
  .region-ledger article {
    padding: 22px 18px;
  }

  .route-type-entry {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .selection-sequence {
    padding: 24px 18px;
  }

  .selection-sequence li {
    padding-left: 46px;
  }

  .coverage-summary {
    margin-top: 42px;
    padding-top: 34px;
  }
}