:root {
  --nodes-hero-min-height: 560px;
  --nodes-summary-width: 480px;
  --nodes-copy-width: 690px;
  --nodes-table-min-width: 760px;
  --nodes-ledger-label-width: 130px;
  --nodes-ledger-title-width: 220px;
  --nodes-section-rule: var(--color-border);
  --nodes-panel-background: var(--color-panel);
  --nodes-panel-strong-background: var(--color-panel-strong);
  --nodes-card-background: var(--color-canvas);
  --nodes-success-background: var(--color-accent-soft);
  --nodes-info-background: var(--color-info-soft);
  --nodes-muted-text: var(--color-text-muted);
  --nodes-card-radius: var(--radius-md);
  --nodes-small-radius: var(--radius-sm);
  --nodes-card-shadow: var(--shadow-card);
}

.nodes-hero {
  min-height: var(--nodes-hero-min-height);
  border-bottom: 1px solid var(--nodes-section-rule);
  background: var(--color-canvas);
}

.nodes-hero-grid {
  display: grid;
  min-height: var(--nodes-hero-min-height);
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, var(--nodes-summary-width));
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  padding-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(64px, 9vw, 110px);
}

.nodes-hero-copy {
  max-width: var(--nodes-copy-width);
}

.nodes-hero-badge {
  margin-bottom: 18px;
}

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

.nodes-hero .lead {
  margin-bottom: 30px;
}

.nodes-summary {
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 17px;
}

.summary-head > .mono {
  color: var(--nodes-muted-text);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
}

.summary-list {
  margin: 0;
}

.summary-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
  padding-top: 16px;
  padding-bottom: 16px;
}

.summary-list dt {
  color: var(--nodes-muted-text);
  font-size: 0.82rem;
}

.summary-list dd {
  margin: 0;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.summary-note {
  margin: 18px 0 0;
  color: var(--nodes-muted-text);
  font-size: 0.82rem;
  line-height: 1.75;
}

.nodes-toc-wrap {
  padding-top: 22px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 34px;
}

.nodes-heading > div {
  flex: 1 1 auto;
}

.nodes-heading h2 {
  margin-bottom: 0;
}

.nodes-heading > p {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--nodes-muted-text);
}

.directory-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--nodes-small-radius);
  padding: 15px 17px;
  background: var(--nodes-panel-background);
}

.directory-note .icon-dot {
  margin-top: 0.58em;
}

.directory-note p {
  margin: 0;
  color: var(--nodes-muted-text);
  font-size: 0.9rem;
}

.server-table {
  min-width: var(--nodes-table-min-width);
}

.server-table td:nth-child(2) {
  color: var(--nodes-muted-text);
}

.server-table td:last-child {
  color: var(--nodes-muted-text);
  font-size: 0.88rem;
}

.table-caption {
  margin: 14px 0 0;
  color: var(--nodes-muted-text);
  font-size: 0.82rem;
}

.nodes-panel-section {
  border-top: 1px solid var(--nodes-section-rule);
  border-bottom: 1px solid var(--nodes-section-rule);
  background: var(--nodes-panel-background);
}

.route-ledger {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--nodes-card-radius);
  background: var(--nodes-card-background);
  box-shadow: 0 1px 2px var(--color-shadow-soft);
}

.route-ledger-row {
  display: grid;
  grid-template-columns: var(--nodes-ledger-label-width) var(--nodes-ledger-title-width) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(25px, 4vw, 42px);
}

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

.route-ledger-code {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.route-ledger-code > .mono {
  color: var(--nodes-muted-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-ledger-title h3 {
  margin-bottom: 10px;
}

.route-ledger-title p {
  margin: 0;
  color: var(--nodes-muted-text);
  font-size: 0.68rem;
  line-height: 1.65;
}

.route-ledger-copy p {
  color: var(--nodes-muted-text);
}

.route-ledger-copy p:last-child {
  margin-bottom: 0;
}

.route-callout {
  margin-top: 24px;
}

.selection-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.selection-flow > li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
  padding-bottom: 32px;
}

.selection-flow > li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.selection-marker {
  display: flex;
  width: 62px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--nodes-small-radius);
  background: var(--nodes-panel-background);
  color: var(--nodes-muted-text);
}

.selection-marker .mono {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.selection-flow h3 {
  margin-bottom: 12px;
}

.selection-flow p {
  max-width: 900px;
  color: var(--nodes-muted-text);
}

.selection-flow p:last-child {
  margin-bottom: 0;
}

.scenario-register {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--nodes-card-radius);
  background: var(--nodes-card-background);
}

.scenario-register article {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
}

.scenario-register article + article {
  border-top: 1px solid var(--color-border);
}

.scenario-key {
  border-right: 1px solid var(--color-border);
  padding: 27px;
  background: var(--nodes-panel-strong-background);
}

.scenario-key > .mono {
  color: var(--nodes-muted-text);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.scenario-key h3 {
  margin: 13px 0 0;
  font-size: 1.25rem;
}

.scenario-body {
  padding: 27px clamp(27px, 4vw, 44px);
}

.scenario-body p {
  color: var(--nodes-muted-text);
}

.scenario-body .spec-line {
  margin: 18px 0 0;
  border-top: 1px solid var(--color-border);
  padding-top: 13px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

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

.verification-grid article {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(24px, 4vw, 38px);
}

.verification-grid article > .mono {
  color: var(--color-info);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.verification-grid h3 {
  margin: 15px 0 11px;
  font-size: 1.3rem;
}

.verification-grid p {
  margin: 0;
  color: var(--nodes-muted-text);
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: start;
  gap: clamp(40px, 7vw, 88px);
}

.coverage-copy h2 {
  max-width: 700px;
}

.coverage-copy > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--nodes-muted-text);
}

.coverage-panel {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--nodes-card-radius);
  background: var(--nodes-card-background);
  box-shadow: var(--nodes-card-shadow);
}

.coverage-label {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
  padding: 17px 21px;
  color: var(--nodes-muted-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.coverage-panel ul {
  margin: 0;
  padding: 10px 21px;
  list-style: none;
}

.coverage-panel li {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--color-border);
  padding-top: 13px;
  padding-bottom: 13px;
  color: var(--nodes-muted-text);
  font-size: 0.88rem;
}

.coverage-panel li:last-child {
  border-bottom: 0;
}

.coverage-action {
  border-top: 1px solid var(--color-border);
  padding: 21px;
  background: var(--nodes-panel-strong-background);
}

.coverage-action p {
  margin-bottom: 17px;
  color: var(--nodes-muted-text);
  font-size: 0.84rem;
}

.coverage-action .btn-primary {
  width: 100%;
}

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

  .nodes-summary {
    width: 100%;
    max-width: 720px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .route-ledger-row {
    grid-template-columns: 100px minmax(170px, 0.55fr) minmax(0, 1.45fr);
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .nodes-hero-grid {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .nodes-hero {
    min-height: auto;
  }

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

  .route-ledger-code {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .selection-flow > li {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scenario-register article {
    grid-template-columns: 1fr;
  }

  .scenario-key {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

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

@media (max-width: 520px) {
  .summary-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .nodes-hero .button-row {
    flex-direction: column;
  }

  .nodes-hero .button-row .btn-primary,
  .nodes-hero .button-row .btn-secondary {
    width: 100%;
  }

  .route-ledger-row,
  .scenario-key,
  .scenario-body,
  .verification-grid article {
    padding: 21px;
  }
}