/* Keep headings in rich text on a smaller scale than storefront banners. */
#MainContent :is(
  .hdt-article-content > article,
  .hdt-product-description,
  .hdt-product__description,
  .robosn-product-description,
  .hdt-product-accordion__content .hdt-rte
) :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.3;
  overflow-wrap: anywhere;

  &:is(h1, h2) {
    font-size: clamp(22px, 18px + 0.8vw, 26px);
  }

  &:is(h3, h4) {
    /* Older articles set these heading sizes directly in the HTML. */
    font-size: clamp(18px, 16px + 0.5vw, 22px) !important;
  }

  &:is(h5, h6) {
    font-size: 16px;
  }
}

/* Product documentation includes its own navigation inside an accordion. */
.hdt-page-type-product #MainContent .hdt-product-accordion__content .aw-nav h2 {
  font-size: 15px;
  line-height: 1.4;
}

.hdt-page-type-product #MainContent .hdt-product-accordion__content .aw-article-header h1 {
  font-size: clamp(24px, 20px + 0.8vw, 30px);
  line-height: 1.25;
}

.hdt-page-type-product #MainContent .hdt-product__notify-stock-heading {
  font-size: clamp(18px, 16px + 0.5vw, 22px);
  line-height: 1.3;
}
