.protocol-entry {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.protocol-entry h1 {
  margin-top: 16px;
}

.protocol-reference {
  padding-bottom: var(--section-space);
}

.protocol-reference > .toc {
  width: 100%;
}

.protocol-chapters {
  padding-top: clamp(18px, 3vw, 36px);
}

.protocol-chapters .chapter {
  scroll-margin-top: 144px;
}

.protocol-chapters .chapter > :is(p, h3, pre, .table-scroll, .callout) {
  margin-block-start: 1em;
}

.protocol-chapters .chapter > h3 {
  margin-block-start: 1.5em;
}

.protocol-chapters h2 {
  text-wrap: pretty;
}

.protocol-reference .protocol-fields :is(thead th:first-child, th[scope="row"]) {
  width: 1%;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .protocol-chapters .chapter {
    scroll-margin-top: 24px;
  }

  .protocol-reference > .toc a {
    display: flex;
    align-items: center;
    padding-inline: 8px;
    font-size: var(--fs-small);
  }
}