.reference-heading {
  max-width: 900px;
  margin-bottom: 48px;
}
.reference-heading h1 {
  margin-top: 22px;
  margin-bottom: 18px;
}
.reference-heading__lead {
  color: var(--c-muted);
  font-size: 20px;
  line-height: 1.7;
}
.reference-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}
.reference-layout > .toc {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.reference-layout > .toc ul {
  flex-direction: column;
  align-items: stretch;
}
.reference-layout > .toc a {
  justify-content: flex-start;
}
.reference-layout > .document-body {
  width: 100%;
  max-width: 900px;
}
.reference-chapter {
  padding-top: 12px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 48px;
}
.reference-chapter > h2:first-child {
  margin-top: 0;
}
.reference-chapter:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.reference-chapter .table-scroll {
  margin-top: 24px;
  margin-bottom: 28px;
}
@media (max-width: 1000px) {
  .reference-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .reference-layout > .toc {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .reference-layout > .toc ul {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .reference-heading {
    margin-bottom: 32px;
  }
  .reference-heading__lead {
    font-size: 18px;
  }
  .reference-chapter {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
}