.doc-hero{
  position:relative;
  overflow-x:clip;
  border-bottom:1px solid var(--color-ink-line);
}
.doc-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(var(--color-grid-dot) 1px,transparent 1.5px);
  background-size:26px 26px;
  pointer-events:none;
}
.doc-hero::after{
  content:"";
  position:absolute;
  right:-120px;
  bottom:-220px;
  width:520px;
  height:520px;
  border-radius:50%;
  background:radial-gradient(circle,var(--color-glow),transparent 68%);
  pointer-events:none;
}
.doc-hero-inner{
  position:relative;
  z-index:2;
  padding-top:clamp(72px,10vw,118px);
  padding-bottom:clamp(76px,11vw,126px);
}
.doc-hero .eyebrow{
  border-color:var(--color-ink-line);
  background:var(--color-ink-panel);
  color:var(--color-ink-muted);
}
.doc-hero h1{
  max-width:760px;
  color:var(--color-ink-text);
}
.doc-hero h1 span{
  display:block;
}
.doc-lead{
  max-width:760px;
  margin:24px 0 0;
  color:var(--color-ink-muted);
  font-size:19px;
}
.doc-hero-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.doc-facts{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin:28px 0 0;
  padding:0;
  color:var(--color-ink-muted);
  font-family:var(--font-mono);
  font-size:12px;
  list-style:none;
}
.doc-facts li{
  display:flex;
  align-items:center;
  gap:8px;
}
.doc-facts li::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--color-accent);
  box-shadow:0 0 9px var(--color-glow-strong);
}
.doc-route-mark{
  position:absolute;
  right:var(--gutter);
  bottom:54px;
  width:190px;
  height:96px;
  opacity:.7;
  pointer-events:none;
}
.doc-route-mark::before,
.doc-route-mark::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  border-top:1px dashed var(--color-ring);
  border-radius:50%;
}
.doc-route-mark::before{
  top:18px;
  height:62px;
  transform:rotate(-7deg);
}
.doc-route-mark::after{
  top:36px;
  height:44px;
  border-top-color:var(--color-accent);
  transform:rotate(8deg);
}
.doc-route-mark span{
  position:absolute;
  z-index:2;
  width:9px;
  height:9px;
  border:2px solid var(--color-accent);
  border-radius:50%;
  background:var(--color-ink);
  box-shadow:0 0 12px var(--color-glow);
}
.doc-route-mark span:first-child{
  top:31px;
  left:10px;
}
.doc-route-mark span:nth-child(2){
  top:45px;
  left:88px;
}
.doc-route-mark span:last-child{
  top:27px;
  right:8px;
}
.doc-article{
  padding-top:48px;
  padding-bottom:var(--section-space);
}
.doc-article .toc-tabs{
  top:calc(var(--header-height) + 12px);
}
.doc-section{
  width:100%;
  max-width:var(--reading-width);
  margin-inline:auto;
  padding-top:70px;
  padding-bottom:26px;
}
.doc-section + .doc-section{
  border-top:1px solid var(--color-border);
}
.section-index{
  margin:0 0 10px;
  color:var(--color-accent-dark);
  font-size:11px;
  letter-spacing:.12em;
}
.doc-section h2{
  margin-bottom:34px;
}
.doc-section h3{
  margin-top:42px;
  margin-bottom:14px;
  font-size:25px;
}
.doc-section p,
.doc-section li{
  color:var(--color-text);
  font-size:17px;
}
.doc-section p{
  margin-bottom:20px;
}
.doc-section a:not(.btn){
  color:var(--color-accent-dark);
  font-weight:650;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
.doc-section .table-scroll{
  margin:34px 0;
  border-radius:var(--radius-sm);
}
.doc-section .callout{
  margin-top:32px;
  margin-bottom:36px;
}
.route-diagram{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(92px,.5fr) minmax(0,1fr) minmax(92px,.5fr) minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin:36px 0;
  padding:26px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-panel-soft);
}
.route-node{
  display:flex;
  min-width:0;
  min-height:132px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:16px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-sm);
  background:var(--color-panel);
  text-align:center;
}
.route-node strong{
  margin-top:10px;
}
.route-node small{
  color:var(--color-muted);
}
.route-dot{
  width:12px;
  height:12px;
  flex:0 0 auto;
  border:3px solid var(--color-panel);
  border-radius:50%;
  background:var(--color-accent);
  box-shadow:0 0 0 1px var(--color-accent-dark),0 0 14px var(--color-glow);
}
.route-link{
  position:relative;
  min-width:0;
  border-top:1px dashed var(--color-accent-dark);
  color:var(--color-muted);
  text-align:center;
}
.route-link::after{
  content:"";
  position:absolute;
  top:-4px;
  right:0;
  width:7px;
  height:7px;
  border-top:1px solid var(--color-accent-dark);
  border-right:1px solid var(--color-accent-dark);
  transform:rotate(45deg);
}
.route-link span{
  display:inline-block;
  max-width:100%;
  padding:5px 8px;
  transform:translateY(-50%);
  border:1px solid var(--color-border);
  border-radius:var(--radius-pill);
  background:var(--color-panel);
  font-family:var(--font-mono);
  font-size:10px;
  white-space:nowrap;
}
.doc-next{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  margin-top:48px;
  padding:28px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:var(--color-panel-soft);
}
.doc-next div{
  min-width:0;
}
.doc-next span{
  color:var(--color-accent-dark);
  font-size:11px;
  letter-spacing:.12em;
}
.doc-next strong{
  display:block;
  margin-top:6px;
  font-family:var(--font-display);
  font-size:20px;
}
.doc-next p{
  margin:6px 0 0;
  color:var(--color-muted);
  font-size:14px;
}
.doc-next .btn{
  flex:0 0 auto;
}
@media(max-width:900px){
  .doc-route-mark{
    opacity:.5;
  }
  .route-diagram{
    grid-template-columns:1fr;
  }
  .route-link{
    width:1px;
    min-height:58px;
    margin-inline:auto;
    border-top:0;
    border-left:1px dashed var(--color-accent-dark);
  }
  .route-link::after{
    top:auto;
    right:-3px;
    bottom:0;
    transform:rotate(135deg);
  }
  .route-link span{
    position:absolute;
    top:50%;
    left:12px;
    transform:translateY(-50%);
  }
}
@media(max-width:768px){
  .doc-hero-inner{
    padding-top:62px;
    padding-bottom:72px;
  }
  .doc-lead{
    font-size:17px;
  }
  .doc-route-mark{
    display:none;
  }
  .doc-article{
    padding-top:28px;
  }
  .doc-article .toc-tabs{
    top:calc(var(--header-height) + 8px);
  }
  .doc-section{
    padding-top:54px;
  }
  .doc-section h3{
    margin-top:34px;
    font-size:22px;
  }
  .doc-section p,
  .doc-section li{
    font-size:16px;
  }
  .doc-next{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:640px){
  .doc-hero-links{
    flex-direction:column;
  }
  .doc-hero-links .btn{
    width:100%;
  }
  .doc-facts{
    display:grid;
    gap:9px;
  }
  .route-diagram{
    padding:18px;
  }
  .doc-next .btn{
    width:100%;
  }
}