.handbook-hero{
  padding-bottom:clamp(36px,6vw,72px);
}

.handbook-hero .hero-copy{
  max-width:820px;
}

.handbook-hero .hero-title{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.18em;
}

.handbook-intro{
  border-top:1px solid var(--color-line);
  border-bottom:1px solid var(--color-line);
  background:var(--color-panel);
}

.intro-panel{
  font-size:1.03rem;
  color:var(--color-muted);
}

.intro-panel p:last-child{
  margin-bottom:0;
}

.intro-panel a{
  color:var(--color-brand-deep);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.handbook-layout{
  padding-top:clamp(40px,6vw,72px);
  padding-bottom:var(--section-space);
}

.handbook-toc{
  max-width:var(--reading-width);
  margin-bottom:clamp(48px,7vw,80px);
}

.handbook-prose{
  color:var(--color-ink);
}

.doc-section{
  padding-top:clamp(24px,4vw,44px);
  padding-bottom:clamp(52px,8vw,92px);
  border-bottom:1px solid var(--color-line);
}

.doc-section:first-child{
  padding-top:0;
}

.doc-section:last-of-type{
  border-bottom:0;
}

.doc-section > .badge{
  margin-bottom:18px;
}

.doc-section h2{
  margin-bottom:34px;
}

.doc-section h3{
  position:relative;
  margin-bottom:14px;
  padding-left:17px;
  font-size:clamp(20px,2vw,24px);
}

.doc-section h3::before{
  content:"";
  position:absolute;
  left:0;
  top:.25em;
  width:4px;
  height:1em;
  border-radius:var(--radius-pill);
  background:linear-gradient(var(--color-brand),var(--color-brand-deep));
}

.doc-section p{
  margin-bottom:20px;
}

.doc-section strong{
  color:var(--color-ink);
}

.doc-section .callout{
  margin:30px 0;
}

.handbook-table{
  margin:30px 0 36px;
}

.handbook-table td{
  color:var(--color-muted);
  font-size:.94rem;
}

.handbook-table td:first-child{
  color:var(--color-ink);
}

.handbook-prose pre{
  margin:30px 0;
  border-color:var(--color-line);
  background:var(--color-panel-strong);
}

.handbook-prose code{
  color:var(--color-ink);
}

.diagnosis-steps{
  margin:30px 0 38px;
}

.diagnosis-steps > li{
  padding-bottom:10px;
  border-bottom:1px solid var(--color-line);
}

.diagnosis-steps > li:last-child{
  border-bottom:0;
}

.diagnosis-steps p{
  margin:6px 0 0;
  color:var(--color-muted);
}

.handbook-prose .promo-block{
  max-width:none;
  margin-top:clamp(32px,6vw,64px);
}

@media (max-width:768px){
  .handbook-hero .hero-title{
    display:block;
  }

  .handbook-hero .hero-title span{
    display:inline;
  }

  .handbook-layout{
    padding-top:36px;
  }

  .handbook-toc{
    margin-bottom:46px;
  }

  .doc-section{
    padding-bottom:58px;
  }

  .doc-section h2{
    margin-bottom:28px;
  }
}

@media (max-width:640px){
  .handbook-hero{
    padding-bottom:32px;
  }

  .handbook-intro{
    padding-top:36px;
    padding-bottom:36px;
  }

  .doc-section h3{
    padding-left:14px;
  }

  .doc-section h3::before{
    width:3px;
  }

  .handbook-table{
    margin-top:24px;
    margin-bottom:30px;
  }

  .handbook-prose pre{
    padding:15px;
    font-size:.8rem;
  }
}