@media (prefers-reduced-motion:no-preference) {
  html:has(.nodes-page) {
    scroll-behavior:smooth;
  }
}

.node-intro {
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  gap:clamp(20px,5vw,72px);
  align-items:stretch;
  padding-block:clamp(32px,6vw,80px) clamp(24px,4vw,48px);
}

.node-intro-copy {
  display:grid;
  align-content:center;
  justify-items:start;
  gap:14px;
}

.node-intro-copy .lead {
  max-width:30ch;
}

.node-intro-copy .muted {
  font-size:.875rem;
}

.node-entry {
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:6px;
}

.node-entry .btn {
  flex-shrink:0;
  white-space:nowrap;
}

.node-ledger {
  position:relative;
  isolation:isolate;
  display:grid;
  align-content:end;
  min-height:216px;
  padding:clamp(20px,4vw,44px);
  border:1px solid var(--line-soft);
  border-radius:var(--r-panel);
  background:radial-gradient(ellipse at 90% 5%,var(--halo),var(--clear) 67%),linear-gradient(135deg,var(--bg-panel),var(--stage-bottom));
  box-shadow:var(--shadow-card),inset 0 1px 0 var(--hl);
}

.node-ledger-art {
  position:absolute;
  z-index:-1;
  right:0;
  bottom:0;
  width:86%;
  height:96%;
  overflow:hidden;
  border-radius:inherit;
  color:var(--tint-14);
  pointer-events:none;
}

.node-ledger-copy {
  display:grid;
  gap:12px;
  color:var(--text-muted);
}

.node-ledger-label {
  color:var(--ink-3);
  font-weight:700;
  font-size:.875rem;
}

.node-ledger-value {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 14px;
  font-family:var(--font-mono);
  font-weight:700;
  color:var(--accent-dark);
}

.node-ledger-value > span {
  white-space:nowrap;
}

.node-ledger-value b {
  font-size:clamp(1.625rem,3.5vw,2.75rem);
  line-height:1.1;
  letter-spacing:-.04em;
}

.node-ledger-divider {
  color:var(--slate);
}

.nodes-page .section-head p {
  max-width:70ch;
  line-height:1.75;
}

.node-coverage-note,
.node-choice-note {
  margin-top:24px;
}

.node-coverage-note p,
.node-choice-note p {
  margin-top:6px;
  line-height:1.75;
}

.node-types {
  border-block:1px solid var(--border);
}

.node-type-list {
  display:grid;
  gap:14px;
}

.node-type-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,3.4fr);
  gap:clamp(16px,3vw,40px);
}

.node-type-key {
  display:grid;
  align-content:start;
  justify-items:start;
  gap:12px;
}

.node-type-key .chip {
  background:var(--bg-panel-2);
  color:var(--ink-2);
}

.node-type-copy {
  display:grid;
  gap:12px;
}

.node-type-copy p,
.node-type-note,
.node-use-card p {
  color:var(--text-muted);
  line-height:1.8;
}

.node-type-note {
  margin-top:24px;
}

.node-use-card article {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,4fr);
  gap:clamp(12px,3vw,40px);
  align-items:start;
}

.node-use-card article + article {
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--border);
}

@media (min-width:1240px) {
  .nodes-page .toc-tabs {
    top:0;
  }
}

@media (max-width:768px) {
  .node-intro,
  .node-type-card,
  .node-use-card article {
    grid-template-columns:minmax(0,1fr);
  }

  .node-ledger {
    min-height:0;
  }

  .node-use-card article {
    gap:7px;
  }
}

@media (max-width:640px) {
  .node-entry .btn {
    padding-inline:16px;
  }

  .node-ledger-value {
    column-gap:8px;
  }
}

@media (forced-colors:active) {
  .node-ledger-art {
    display:none;
  }
}