.nodes-mast {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(24px,6vw,88px);
}

.nodes-mast h1 {
  margin-bottom:.6em;
}

.nodes-jump {
  margin-block-start:24px;
}

.nodes-chart {
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:216px;
  display:grid;
  align-items:center;
  padding:clamp(20px,4vw,48px);
  border-radius:var(--radius-card);
  background:var(--atlas-gradient);
  color:var(--white);
  box-shadow:var(--shadow-panel);
}

.nodes-chart__grid {
  position:absolute;
  z-index:-1;
  inset:0;
  width:100%;
  height:100%;
  border-radius:inherit;
  pointer-events:none;
}

.nodes-chart__route {
  fill:none;
  stroke:var(--mist);
  stroke-width:1.5;
  opacity:.5;
}

.nodes-chart__content {
  width:max-content;
  max-width:100%;
  padding:12px clamp(12px,3vw,28px);
  border:1px solid var(--atlas-glass-edge);
  border-radius:var(--radius-tile);
  background:var(--accent-dark);
}

.nodes-chart p {
  margin-bottom:8px;
  color:var(--atlas-label);
  font-size:var(--size-small);
  font-weight:var(--weight-strong);
}

.nodes-chart__stats {
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,3vw,36px);
}

.nodes-chart__stats li {
  color:var(--atlas-label);
  font-size:var(--size-small);
}

.nodes-chart__stats strong {
  display:block;
  margin-bottom:4px;
  color:var(--white);
  font:var(--weight-display) clamp(26px,4vw,52px)/1.08 var(--font-display);
  letter-spacing:var(--tracking-display);
}

.nodes-directory > section {
  padding-top:clamp(28px,5vw,64px);
}

.nodes-directory > section + section {
  border-top:1px solid var(--border);
}

.nodes-directory .data-table {
  table-layout:fixed;
}

.nodes-directory .data-table th:last-child {
  width:43%;
}

.nodes-directory .data-table caption {
  padding:12px 0;
}

.nodes-route-notes {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.nodes-route-notes .badge {
  margin-bottom:12px;
}

.nodes-route-notes .card > p:last-child,
.nodes-use-notes article > p:last-child {
  margin-bottom:0;
}

.nodes-use-notes {
  max-width:var(--reading);
}

.nodes-use-notes article {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,4fr);
  gap:16px;
  padding:20px 0;
  border-bottom:1px solid var(--border);
}

.nodes-use-notes h3 {
  color:var(--accent-dark);
}

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

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

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

  .nodes-chart {
    min-height:160px;
  }
}

@media (max-width:640px) {
  .nodes-directory .table-scroll {
    overflow-x:visible;
  }

  .nodes-directory .data-table td {
    word-break:normal;
  }

  .nodes-use-notes article {
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }
}
/* fix-20261122 */
.nodes-chart {
  min-height: 0;
  padding: 14px 16px;
  display: flex;
  align-items: stretch;
}
.nodes-chart__content {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.nodes-chart__stats { width: 100%; }
@media (max-width: 768px) {
  .nodes-chart { min-height: 0; padding: 12px; }
}
/* /fix-20261122 */
