.nodes-hero {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  padding-top: 64px;
  padding-bottom: 56px;
}

.nodes-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 56px;
}

.nodes-hero-copy {
  min-width: 0;
}

.nodes-hero-copy h1 {
  max-width: 720px;
  margin-top: 20px;
}

.nodes-hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.nodes-hero .button-row {
  margin-top: 28px;
}

.nodes-fact-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 32px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  background: var(--border);
  list-style: none;
}

.nodes-fact-line li {
  min-width: 0;
  padding: 14px;
  background: var(--panel);
}

.nodes-fact-line strong,
.nodes-fact-line span {
  display: block;
}

.nodes-fact-line strong {
  color: var(--text);
  font-size: 15px;
}

.nodes-fact-line span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.route-board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  background:
    linear-gradient(145deg, var(--accent-08), transparent 56%),
    var(--panel);
  box-shadow: var(--shadow-window);
  transform: rotate(-2deg);
}

.route-board::before {
  position: absolute;
  right: -18%;
  bottom: -28%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: radial-gradient(closest-side, var(--accent-14), transparent);
  content: "";
  filter: blur(24px);
  pointer-events: none;
}

.route-board-head,
.route-board-foot {
  position: relative;
  z-index: 1;
}

.route-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.route-region {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.route-region-active {
  border-radius: var(--radius-xs);
  background: var(--accent-08);
}

.route-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
}

.route-region-active .route-mark {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-14);
}

.route-region b,
.route-region small {
  display: block;
}

.route-region b {
  font-size: 14px;
}

.route-region small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.route-region > span:last-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.route-path {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 76px;
  margin-top: 12px;
  color: var(--accent);
  opacity: .72;
}

.route-board-foot {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .07em;
  text-align: center;
}

.nodes-document {
  min-width: 0;
}

.nodes-document > .wrap {
  min-width: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-top: 16px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.directory-note {
  margin-top: 24px;
}

.line-type-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.line-type-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--white-90);
}

.line-type-featured {
  border-color: var(--accent);
  background:
    linear-gradient(155deg, var(--accent-08), transparent 58%),
    var(--panel);
}

.line-type-index {
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.line-type-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.type-facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
}

.type-facts div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.type-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.type-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
}

.use-case-item {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--border);
}

.use-case-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.use-case-item:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
  border-right: 0;
}

.use-case-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--accent-dark);
}

.use-case-icon svg {
  width: 23px;
  height: 23px;
}

.use-case-item h3 {
  font-size: 19px;
}

.use-case-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.selection-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: selection-step;
  list-style: none;
}

.selection-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  counter-increment: selection-step;
}

.selection-steps li::before {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  color: var(--accent-dark);
  content: counter(selection-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.selection-steps li:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 24px;
  width: 1px;
  background: var(--border);
  content: "";
}

.selection-steps li > div {
  padding-bottom: 34px;
}

.selection-steps h3 {
  margin-top: 2px;
  font-size: 20px;
}

.selection-steps p {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.strategy-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px;
  background: var(--panel);
  box-shadow: 0 20px 44px -36px var(--accent-18);
}

.strategy-panel h3 {
  font-size: 20px;
}

.strategy-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.strategy-panel p:last-child {
  margin-bottom: 0;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: start;
  gap: 24px;
}

.notes-main {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 30px;
  background: var(--panel);
}

.notes-main h3 {
  margin-top: 30px;
  font-size: 20px;
}

.notes-main h3:first-child {
  margin-top: 0;
}

.notes-main p {
  color: var(--muted);
  line-height: 1.85;
}

.notes-main p:last-child {
  margin-bottom: 0;
}

.connection-summary {
  position: sticky;
  top: var(--toc-offset);
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background:
    linear-gradient(150deg, var(--accent-06), transparent 64%),
    var(--panel);
  box-shadow: var(--shadow-panel);
}

.connection-summary ul {
  display: grid;
  gap: 14px;
}

.connection-summary li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.connection-summary .status-dot {
  width: 6px;
  height: 6px;
}

.summary-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--border);
}

.connection-summary p {
  color: var(--muted);
  font-size: 13px;
}

.connection-summary p strong {
  color: var(--text);
}

.connection-summary .btn {
  width: 100%;
  margin-top: 8px;
}

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

  .route-board {
    transform: none;
  }

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

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

  .connection-summary {
    position: static;
  }
}

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

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

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

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

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .use-case-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .use-case-item,
  .use-case-item:nth-child(odd),
  .use-case-item:last-child {
    grid-column: auto;
    border-right: 0;
  }

  .use-case-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .route-board {
    padding: 15px;
  }

  .route-board-head {
    gap: 8px;
  }

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

  .route-region > span:last-child {
    display: none;
  }

  .route-path {
    height: 58px;
  }

  .line-type-card,
  .notes-main,
  .strategy-panel {
    padding: 21px;
  }

  .type-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .use-case-item {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .selection-steps li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .selection-steps li::before {
    width: 40px;
    height: 40px;
  }

  .selection-steps li:not(:last-child)::after {
    top: 40px;
    left: 20px;
  }

  .connection-summary {
    padding: 21px;
  }
}