.reference-intro {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--c-border);
  background:
    radial-gradient(ellipse at 92% 100%, var(--c-fog-mint), var(--c-clear) 68%),
    linear-gradient(125deg, var(--c-bg), var(--c-fog-blue));
  color: var(--c-text);
}

.reference-intro h1 {
  margin-top: 22px;
  margin-bottom: 20px;
}

.reference-intro__lead {
  max-width: 36em;
  font-size: var(--fs-subtitle);
  line-height: var(--lh-prose);
  color: var(--c-text);
}

.reference-intro p:not(.sr-eyebrow):not(.reference-intro__lead) {
  color: var(--c-muted);
  line-height: var(--lh-prose);
}

.reference-intro a {
  color: var(--c-accent-dark);
}

.reference-body {
  border-top: 0;
}

.reference-body .toc {
  margin-top: 0;
  margin-bottom: 64px;
}

.reference-chapter {
  min-width: 0;
  padding-top: 72px;
  padding-bottom: 72px;
  scroll-margin-top: 160px;
}

.reference-chapter + .reference-chapter {
  border-top: 1px solid var(--c-border);
}

.reference-chapter:first-of-type {
  padding-top: 0;
}

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

.reference-chapter > h2 {
  margin-top: 18px;
}

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

.reference-chapter .data-table {
  display: table;
  overflow: visible;
}

@media (max-width: 640px) {
  .reference-intro__lead {
    font-size: var(--fs-lead);
  }

  .reference-body .toc {
    margin-bottom: 48px;
  }

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