.doc-hero{
  position:relative;
  max-width:100%;
  overflow-x:clip;
  padding-top:88px;
  padding-bottom:84px;
  border-bottom:1px solid var(--color-border);
  background:linear-gradient(180deg,var(--color-hero-top),var(--color-hero-bottom));
}
.doc-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(var(--color-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--color-grid) 1px,transparent 1px);
  background-size:32px 32px;
}
.doc-hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  gap:72px;
  align-items:center;
}
.doc-hero-copy{max-width:720px}
.doc-hero-copy h1{margin-bottom:24px}
.doc-hero-copy .lead{margin-bottom:0}
.doc-hero-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.doc-relation{
  max-width:680px;
  margin:24px 0 0;
  color:var(--color-muted);
  font-size:14px;
}
.doc-relation a{margin-inline:4px}
.doc-route-figure{
  position:relative;
  min-height:390px;
  padding:28px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  background:var(--color-panel-glass);
  box-shadow:inset 0 1px 0 var(--color-highlight),var(--shadow-panel);
}
.doc-route-figure::before,
.doc-route-figure::after{
  content:"";
  position:absolute;
  border:1px solid var(--color-border-soft);
  pointer-events:none;
}
.doc-route-figure::before{
  inset:18px;
  border-radius:var(--radius-md);
}
.doc-route-figure::after{
  top:50%;
  right:18px;
  left:18px;
  border-width:1px 0 0;
}
.doc-route-figure svg{
  position:relative;
  z-index:1;
  width:100%;
  height:auto;
  color:var(--color-accent);
}
.route-plane{
  fill:none;
  stroke:var(--color-border);
  stroke-width:1;
}
.route-nodes{
  fill:var(--color-panel);
  stroke:currentColor;
  stroke-width:2;
}
.route-paths{
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-dasharray:5 8;
}
.doc-figure-label{
  position:absolute;
  right:30px;
  bottom:25px;
  z-index:2;
  padding:5px 9px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-xs);
  background:var(--color-panel);
  color:var(--color-muted);
  font-size:10px;
  letter-spacing:.08em;
}
.doc-layout{
  position:relative;
  padding-top:32px;
  padding-bottom:var(--section-space);
}
.doc-layout > .toc-tabs{margin-bottom:64px}
.doc-body{
  width:100%;
  max-width:var(--reading-width);
  margin-inline:auto;
}
.doc-section{
  padding-top:28px;
  padding-bottom:76px;
  border-bottom:1px solid var(--color-border);
}
.doc-section:first-child{padding-top:0}
.doc-section:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.doc-section h2{margin-bottom:34px}
.doc-section h3{
  margin-top:40px;
  margin-bottom:14px;
  font-size:clamp(21px,2vw,26px);
}
.doc-section p{
  color:var(--color-muted);
  font-size:16px;
  line-height:1.9;
}
.doc-section h2 + h3{margin-top:0}
.doc-section p + p{margin-top:18px}
.doc-section a{color:var(--color-text)}
.doc-section .callout{
  margin-top:34px;
  margin-bottom:34px;
  font-size:15px;
  line-height:1.8;
}
.doc-section .callout strong{font-weight:650}
.doc-section .table-scroll,
.doc-section .compare-table-wrap{
  margin-top:32px;
  margin-bottom:36px;
}
.doc-section .data-table,
.doc-section .compare-table{
  min-width:760px;
}
.doc-section .data-table td,
.doc-section .compare-table td{
  color:var(--color-muted);
  line-height:1.65;
}
.doc-section .data-table td:first-child,
.doc-section .compare-table td:first-child{
  color:var(--color-text);
  font-family:var(--font-mono);
  font-size:13px;
}
.doc-closing{
  margin-top:64px;
  padding:34px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-panel);
  box-shadow:inset 0 1px 0 var(--color-highlight),var(--shadow-card);
}
.doc-closing h3{margin-top:0}
.doc-closing p{max-width:680px}
.doc-closing-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
@media (max-width:980px){
  .doc-hero-inner{
    grid-template-columns:1fr;
    gap:44px;
  }
  .doc-hero-copy{max-width:780px}
  .doc-route-figure{
    width:100%;
    max-width:680px;
    min-height:0;
    margin-inline:auto;
  }
}
@media (max-width:768px){
  .doc-hero{
    padding-top:64px;
    padding-bottom:62px;
  }
  .doc-hero-inner{gap:36px}
  .doc-route-figure{padding:20px}
  .doc-figure-label{display:none}
  .doc-layout{
    padding-top:24px;
    padding-bottom:72px;
  }
  .doc-layout > .toc-tabs{margin-bottom:48px}
  .doc-section{
    padding-top:22px;
    padding-bottom:58px;
  }
  .doc-section h2{margin-bottom:28px}
  .doc-section h3{margin-top:34px}
  .doc-section p{
    font-size:15px;
    line-height:1.85;
  }
}
@media (max-width:640px){
  .doc-hero-links,
  .doc-closing-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .doc-route-figure{padding:14px}
  .doc-route-figure::before{inset:10px}
  .doc-route-figure::after{
    right:10px;
    left:10px;
  }
  .doc-closing{padding:24px}
}