.knowledge-opening{
  max-width:960px;
  margin-inline:auto;
  margin-bottom:40px;
}
.knowledge-opening h1{
  max-width:900px;
}
.knowledge-opening>p:not(.mono){
  max-width:820px;
}
.knowledge-opening a{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}
.knowledge-lead{
  color:var(--text-muted);
  font-size:clamp(18px,2vw,22px);
  line-height:1.75;
}
.knowledge-document>.toc-tabs{
  margin-top:40px;
}
.knowledge-chapter{
  margin-inline:auto;
  padding-top:16px;
  padding-bottom:48px;
  border-bottom:1px solid var(--border);
}
.knowledge-chapter+.knowledge-chapter{
  margin-top:32px;
}
.knowledge-chapter>h2{
  margin-top:0;
}
.knowledge-chapter .table-scroll{
  margin-block:28px;
}
.knowledge-chapter .table-scroll caption{
  font-family:var(--font-body);
}
.knowledge-reference{
  max-width:820px;
  margin:48px auto 0;
}
.knowledge-reference h2{
  font-size:var(--size-h2);
}
.knowledge-reference>p{
  margin-top:16px;
}
.knowledge-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 24px;
  margin-top:24px;
}
.knowledge-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding-block:8px;
  color:var(--accent);
  border-bottom:1px solid var(--border);
}
.knowledge-links a:hover{
  color:var(--accent-dark);
}
@media(max-width:640px){
  .knowledge-opening{
    gap:20px;
    margin-bottom:28px;
  }
  .knowledge-document>.toc-tabs{
    margin-top:28px;
  }
  .knowledge-chapter{
    padding-bottom:32px;
  }
  .knowledge-chapter+.knowledge-chapter{
    margin-top:24px;
  }
  .knowledge-links{
    grid-template-columns:1fr;
  }
}