/* Shared editorial styles. Gutenberg pages opt in automatically. */
.srh-content-type:not(.woocommerce-page, .woocommerce) #content .entry-content {
  --srh-type-font: 'SRH Header Manrope', Manrope, sans-serif;
  --srh-type-h1: 44px;
  --srh-type-h2: 36px;
  --srh-type-h3: 24px;
  --srh-type-subtitle: 22px;
  --srh-type-body: 20px;
  --srh-type-leading: 1.6;
  --srh-type-heading: #0f4a3e;
  --srh-type-minor: var(--srh-type-heading);
  --srh-type-text: #666666;
}

@media (max-width: 767px) {
  .srh-content-type:not(.woocommerce-page, .woocommerce) #content .entry-content {
    --srh-type-h1: 32px;
    --srh-type-h2: 28px;
    --srh-type-h3: 21px;
    --srh-type-subtitle: 20px;
    --srh-type-body: 18px;
  }
}

/* Dark sections and controls retain their own typography. */
@scope (.srh-content-type:not(.woocommerce-page, .woocommerce) #content .entry-content)
  to (.srh-home__hero, .srh-home__contact, .srp-pricing, [data-srh-inner-hero], [data-srh-type-exempt], nav, form, .woocommerce) {
  :scope.entry-content :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--srh-type-font);
    font-weight: var(--srh-type-heading-weight, 600);
    line-height: var(--srh-type-heading-leading, 1.25);
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  :scope.entry-content h1 { font-size: var(--srh-type-h1); }
  :scope.entry-content h2 { font-size: var(--srh-type-h2); }
  :scope.entry-content h3 { font-size: var(--srh-type-h3); }
  :scope.entry-content :is(h1, h2) { color: var(--srh-type-heading); }
  :scope.entry-content :is(h3, h4, h5, h6) { color: var(--srh-type-minor); }

  :scope.entry-content .srh-faq-page summary h2 { font-size: var(--srh-type-body); }
  :scope.entry-content .srh-hbot-page .pricing-inner h2 { color: #fff; }
  :scope.entry-content .srh-hbot-page .pricing-inner p { color: #e5f2ee; }

  :scope.entry-content :is(p, li, summary, th, td):not(:where(.srh-home__card-index, .srp-eyebrow)) {
    font-family: var(--srh-type-font);
    font-size: var(--srh-type-body);
    line-height: var(--srh-type-leading);
    color: var(--srh-type-text);
    overflow-wrap: break-word;
  }

  :scope.entry-content :is(.srh-subtitle, .srp-lead, .srp-problem-subtitle, .sg-hero-lead, caption) {
    font-family: var(--srh-type-font);
    font-size: var(--srh-type-subtitle);
    line-height: 1.4;
    color: var(--srh-type-text);
  }
}

/* Homepage hero keeps its light palette and approved weights. */
.srh-content-type #content [data-srh-homepage] .srh-home__hero h1 {
  font-size: var(--srh-type-h1);
}
.srh-content-type #content [data-srh-homepage] .srh-home__hero :is(h2, p) {
  font-size: var(--srh-type-subtitle);
}
