.reference-document {
  padding-top: 44px;
}

.reference-intro .badge-row {
  margin-bottom: 24px;
}

.reference-summary {
  color: var(--text-muted);
  font-size: var(--fs-subtitle);
}

.reference-document > .toc {
  margin-top: 48px;
}

.reference-chapter {
  padding-top: var(--section-space);
  scroll-margin-top: 110px;
}

.reference-chapter > h2:first-child {
  margin-top: 0;
}

.reference-chapter > :last-child {
  margin-bottom: 0;
}

.reference-chapter .table-scroll {
  margin-top: 28px;
  margin-bottom: 28px;
}

.reference-chapter pre {
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .reference-chapter {
    scroll-margin-top: 96px;
  }

  .reference-summary {
    font-size: var(--fs-lead);
  }
}

@media print {
  .reference-document > .toc {
    position: static;
  }
}