/* Shared heading hierarchy for all documentation sections. */
.dc-doc-page__content .dc-doc-page__title,
.g-root .yfm h1 {
  color: var(--docs-primary);
  font-size: var(--help-h1-size);
  font-weight: 700;
  line-height: var(--help-h1-line);
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.g-root .dc-doc-page__body.yfm :is(h2, h3, h4, h5, h6) {
  margin-block: 1.5em .5em;
  padding-block-start: 0;
  scroll-margin-top: calc(var(--dc-header-height, var(--header-height)) + 1em);
  color: var(--docs-heading-color);
  font-weight: 600;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.g-root .yfm h2 {
  font-size: var(--help-h2-size);
  line-height: var(--help-h2-line);
}

.g-root .yfm h3 {
  font-size: var(--help-h3-size);
  line-height: var(--help-h3-line);
}

.g-root .yfm :is(h4, h5, h6) {
  font-size: var(--help-body-size);
  line-height: var(--help-body-line);
}
