.nodes-hero {
  position: relative;
  padding-top: clamp(62px, 8vw, 104px);
  padding-bottom: clamp(58px, 8vw, 96px);
  overflow-x: clip;
}

.nodes-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, var(--color-text), transparent);
  opacity: 0.7;
}

.nodes-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
}

.nodes-hero-copy {
  position: relative;
  z-index: 2;
}

.nodes-hero-copy h1 {
  max-width: 680px;
  margin-bottom: 22px;
}

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

.nodes-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.nodes-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.route-atlas {
  position: relative;
  min-height: 420px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 74% 24%, var(--color-success-soft), transparent 28%),
    linear-gradient(145deg, var(--color-panel), var(--color-panel-soft));
  box-shadow: var(--shadow-stage);
}

.route-atlas::before {
  content: "";
  position: absolute;
  inset: 82px 26px 70px;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.route-atlas-head,
.route-atlas-regions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.route-atlas-head {
  justify-content: space-between;
  gap: 14px;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-atlas-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 310px;
  margin-top: 6px;
}

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

.atlas-land-soft {
  fill: var(--color-accent-faint);
}

.atlas-route {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
}

.atlas-route-success {
  stroke: var(--color-success);
}

.atlas-route-short {
  stroke: var(--color-accent-mid);
}

.atlas-node {
  fill: var(--color-panel);
  stroke: var(--color-accent);
  stroke-width: 6;
}

.atlas-node-success {
  stroke: var(--color-success);
}

.route-atlas-regions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -10px;
}

.route-atlas-regions span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-panel-translucent);
  box-shadow: var(--shadow-paper);
  font-size: 12px;
  font-weight: 650;
}

.coverage-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--color-panel-soft);
}

.coverage-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
}

.coverage-note p {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.route-kind {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.table-caption {
  max-width: 920px;
  margin: 20px auto 0;
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.route-types-section {
  background:
    linear-gradient(180deg, transparent, var(--color-accent-faint), transparent);
}

.route-type-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.route-type-flow::before {
  content: "";
  position: absolute;
  top: 52px;
  right: 12%;
  left: 12%;
  border-top: 2px dashed var(--color-accent-soft);
}

.route-type-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.route-type-primary {
  background:
    radial-gradient(circle at 90% 8%, var(--color-success-soft), transparent 30%),
    var(--color-panel);
  box-shadow: var(--shadow-stage);
}

.route-type-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.route-sequence {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: var(--shadow-button);
  font-family: var(--font-mono);
  font-weight: 780;
}

.route-type-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.route-cost {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--color-border);
}

.route-cost strong,
.route-cost span {
  display: block;
}

.route-cost strong {
  margin-bottom: 5px;
  color: var(--color-text);
  font-size: 13px;
}

.route-cost span {
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.usage-board {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-stage);
}

.usage-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.8fr) minmax(150px, 0.5fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(26px, 4vw, 42px);
}

.usage-row + .usage-row {
  border-top: 1px solid var(--color-border);
}

.usage-row:nth-child(even) {
  background: var(--color-panel-pale);
}

.usage-label {
  display: grid;
  justify-items: start;
}

.usage-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: var(--radius-md);
  color: var(--color-accent-dark);
  background: var(--color-accent-pale);
}

.usage-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usage-label h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.usage-copy p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.82;
}

.usage-copy p + p {
  margin-top: 12px;
}

.usage-route {
  justify-self: end;
  max-width: 100%;
  padding: 9px 14px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  background: var(--color-panel-soft);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.selection-workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: start;
}

.selection-workflow-copy {
  position: sticky;
  top: var(--toc-clearance);
}

.selection-workflow-copy p {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.workflow-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
  counter-reset: workflow-step;
}

.workflow-list li {
  counter-increment: workflow-step;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.workflow-list li::before {
  content: counter(workflow-step);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-white);
  background: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 760;
}

.workflow-list h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.workflow-list p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.network-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: clamp(48px, 7vw, 78px);
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--radius-xl);
  color: var(--color-white);
  background:
    radial-gradient(circle at 92% 0, var(--color-accent-mid), transparent 36%),
    var(--color-accent-dark);
  box-shadow: var(--shadow-stage);
}

.network-guidance h3 {
  margin-bottom: 9px;
  color: var(--color-white);
}

.network-guidance p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--color-accent-pale);
}

.network-guidance .button-secondary {
  color: var(--color-accent-dark);
}

.network-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.network-principles article {
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.principle-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--color-success-dark);
  background: var(--color-success-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.network-principles h3 {
  font-size: 20px;
}

.network-principles p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.75;
}

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

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

  .route-atlas {
    min-height: 390px;
  }

  .route-type-flow {
    grid-template-columns: 1fr;
  }

  .route-type-flow::before {
    top: 8%;
    bottom: 8%;
    left: 47px;
    border-top: 0;
    border-left: 2px dashed var(--color-accent-soft);
  }

  .route-type-card {
    padding-left: 30px;
  }

  .usage-row {
    grid-template-columns: minmax(145px, 0.45fr) minmax(0, 1.55fr);
  }

  .usage-route {
    grid-column: 2;
    justify-self: start;
  }
}

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

  .nodes-hero-inner {
    gap: 38px;
  }

  .route-atlas {
    min-height: 340px;
    padding: 18px;
  }

  .route-atlas-art {
    height: 250px;
  }

  .coverage-note,
  .network-guidance {
    grid-template-columns: 1fr;
  }

  .coverage-note .button,
  .network-guidance .button-row {
    width: max-content;
    max-width: 100%;
  }

  .usage-row {
    grid-template-columns: 1fr;
  }

  .usage-label {
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .usage-mark {
    margin-bottom: 0;
  }

  .usage-route {
    grid-column: auto;
    justify-self: start;
  }

  .selection-workflow {
    grid-template-columns: 1fr;
  }

  .selection-workflow-copy {
    position: static;
  }

  .network-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nodes-hero .hero-actions .button {
    flex: 1 1 135px;
  }

  .route-atlas {
    min-height: 300px;
  }

  .route-atlas::before {
    inset: 74px 14px 62px;
  }

  .route-atlas-art {
    width: 135%;
    max-width: none;
    height: 220px;
    transform: translateX(-13%);
  }

  .route-atlas-regions {
    margin-top: 0;
  }

  .coverage-note .button,
  .network-guidance .button-row,
  .network-guidance .button {
    width: 100%;
  }

  .network-guidance .button-row {
    display: grid;
  }

  .route-type-card {
    padding: 24px 20px;
  }

  .route-type-flow::before {
    display: none;
  }

  .usage-row {
    gap: 20px;
    padding: 24px 18px;
  }

  .workflow-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 19px;
  }

  .workflow-list li::before {
    width: 40px;
    height: 40px;
  }

  .network-guidance {
    padding: 26px 20px;
  }
}