.doc-intro {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.doc-intro h1 {
  max-width: 760px;
  margin-top: 22px;
}

.doc-intro .lead {
  max-width: 760px;
}

.doc-intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.doc-shell {
  position: relative;
}

.doc-shell > .toc {
  margin-bottom: 56px;
}

.doc-prose {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.doc-chapter {
  padding-top: 18px;
  padding-bottom: 68px;
  scroll-margin-top: 24px;
  border-bottom: 1px solid var(--color-line);
}

.doc-chapter + .doc-chapter {
  padding-top: 76px;
}

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

.doc-chapter h2 {
  margin-top: 0;
}

.doc-chapter h3 {
  padding-top: 6px;
}

.doc-chapter p {
  margin-bottom: 18px;
}

.doc-chapter .table-wrap {
  margin-top: 28px;
  margin-bottom: 30px;
}

.doc-chapter .data-table {
  min-width: 680px;
}

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

.text-link {
  border-bottom: 1px solid var(--color-muted);
  color: var(--color-ink);
  font-weight: 620;
}

.text-link:hover {
  border-bottom-color: var(--color-action);
}

@media (max-width: 640px) {
  .doc-intro__links {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-intro__links .button {
    width: 100%;
  }

  .doc-shell > .toc {
    margin-bottom: 40px;
  }

  .doc-chapter {
    padding-bottom: 54px;
  }

  .doc-chapter + .doc-chapter {
    padding-top: 60px;
  }
}