.doc-hero{
  position:relative;
  padding-top:72px;
  padding-bottom:64px;
  overflow-x:clip;
  background:var(--bg);
}
.doc-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg,var(--wash),transparent),
    linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:100% 100%,32px 32px,32px 32px;
  pointer-events:none;
}
.doc-hero-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.doc-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:32px;
  padding:4px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  background:var(--bg-panel);
  color:var(--text-muted);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:650;
}
.doc-kicker-dot{
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px var(--focus-ring);
}
.doc-hero .hero-title{
  max-width:880px;
}
.doc-hero .hero-lead{
  max-width:780px;
  font-size:18px;
}
.doc-facts{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:24px;
}
.doc-map{
  width:100%;
  max-width:940px;
  min-height:126px;
  margin-top:36px;
  padding:24px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr) 54px minmax(0,1fr) 54px minmax(0,1fr);
  align-items:center;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--bg-panel);
  box-shadow:var(--shadow-card);
}
.doc-map-node{
  min-height:68px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid;
  border-radius:var(--radius);
  font-weight:800;
}
.doc-map-source{
  border-color:var(--border);
  background:var(--bg);
  color:var(--text);
}
.doc-map-protocol{
  border-color:var(--tint-blue-line);
  background:var(--tint-blue-bg);
  color:var(--tint-blue-fg);
}
.doc-map-route{
  border-color:var(--tint-cyan-line);
  background:var(--tint-cyan-bg);
  color:var(--tint-cyan-fg);
}
.doc-map-exit{
  border-color:var(--tint-green-line);
  background:var(--tint-green-bg);
  color:var(--tint-green-fg);
}
.doc-map-line{
  position:relative;
  height:1px;
  background:var(--connection);
}
.doc-map-line::after{
  content:"";
  position:absolute;
  top:50%;
  right:0;
  width:8px;
  height:8px;
  border-top:2px solid var(--connection);
  border-right:2px solid var(--connection);
  transform:translateY(-50%) rotate(45deg);
}
.deepdoc-body{
  padding-top:36px;
  padding-bottom:96px;
}
.deepdoc-body a:not(.toc-tabs a){
  color:var(--accent-dark);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--tint-blue-line);
  text-underline-offset:3px;
}
.deepdoc-body a:not(.toc-tabs a):hover{
  text-decoration-color:var(--accent);
}
.doc-section{
  padding-top:44px;
  padding-bottom:24px;
  border-bottom:1px solid var(--border);
}
.doc-section:last-child{
  border-bottom:0;
}
.doc-section h2{
  max-width:850px;
  margin-top:10px;
  margin-bottom:30px;
}
.doc-section h3{
  margin-top:34px;
  margin-bottom:12px;
  font-size:23px;
}
.doc-section p{
  max-width:900px;
  margin-bottom:18px;
  color:var(--text-muted);
  font-size:17px;
  line-height:1.9;
}
.doc-section p strong{
  color:var(--text);
}
.section-index{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:3px 9px;
  border:1px solid var(--tint-blue-line);
  border-radius:var(--radius-sm);
  background:var(--tint-blue-bg);
  color:var(--accent-dark);
  font-size:11px;
  font-weight:750;
  letter-spacing:.08em;
}
.deepdoc-body .table-scroll{
  margin-top:28px;
  margin-bottom:30px;
  box-shadow:var(--shadow-card);
}
.deepdoc-body .data-table,
.deepdoc-body .compare-table,
.deepdoc-body .route-table{
  line-height:1.55;
}
.deepdoc-body .callout{
  max-width:900px;
  margin-top:28px;
  margin-bottom:28px;
  line-height:1.8;
}
.scenario-matrix{
  max-width:900px;
  margin-top:30px;
  margin-bottom:30px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.scenario-matrix article{
  padding:22px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--bg-panel);
  box-shadow:var(--shadow-card);
}
.scenario-matrix h3{
  margin:0 0 9px;
  font-size:19px;
}
.scenario-matrix p{
  margin:0;
  font-size:15px;
  line-height:1.75;
}
.doc-summary{
  max-width:900px;
  margin-top:42px;
  padding:28px;
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:28px;
  align-items:center;
  border:1px solid var(--ink-edge);
  border-radius:var(--radius-lg);
  background:var(--bg-panel-2);
  color:var(--ink-text);
}
.doc-summary h3{
  margin:12px 0 0;
  color:var(--ink-text);
  font-size:24px;
}
.doc-summary p{
  margin:0;
  color:var(--ink-text-muted);
  font-size:16px;
}

@media(max-width:900px){
  .doc-map{
    grid-template-columns:1fr;
    gap:10px;
  }
  .doc-map-line{
    width:1px;
    height:24px;
    justify-self:center;
  }
  .doc-map-line::after{
    top:auto;
    right:auto;
    left:50%;
    bottom:0;
    transform:translateX(-50%) rotate(135deg);
  }
}
@media(max-width:768px){
  .doc-hero{
    padding-top:52px;
    padding-bottom:48px;
  }
  .doc-hero .hero-lead{
    font-size:16px;
  }
  .deepdoc-body{
    padding-top:24px;
    padding-bottom:72px;
  }
  .doc-section{
    padding-top:34px;
  }
  .doc-section p{
    font-size:16px;
    line-height:1.82;
  }
  .scenario-matrix{
    grid-template-columns:1fr;
  }
  .doc-summary{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .doc-hero{
    padding-left:0;
    padding-right:0;
  }
  .doc-kicker{
    max-width:100%;
  }
  .doc-facts{
    align-items:stretch;
    flex-direction:column;
    width:100%;
  }
  .doc-facts .fact-chip{
    justify-content:center;
  }
  .doc-map{
    padding:16px;
  }
  .doc-map-node{
    min-height:56px;
  }
  .doc-section h3{
    font-size:20px;
  }
  .scenario-matrix article,
  .doc-summary{
    padding:20px;
  }
}
@media(prefers-reduced-motion:reduce){
  .doc-map-line::after{
    transition:none;
  }
}