/*
 * Site-wide heading and paragraph sizes for page content (everything between the header and footer).
 * Loaded after the page bundles. Several section styles and pasted editor content already force their own
 * sizes with !important, so these do too; "#main-content" then outranks them.
 * Left at their own sizes: the header menu, footer and popups (outside #main-content), the fixed
 * "Need a human touch?" bar on blog pages (an overlay, like the popups) and the form consent fine print.
 *
 *            Desktop   Mobile (<= 767px)
 * H1         36px      32px
 * H2         34px      26px
 * H3         28px      24px
 * H4         24px      20px
 * Paragraph  19px      16px (17px on larger phones, 576-767px)
 */
#main-content h1:not(.foot-fix-banner-sec *) { font-size: 36px !important; line-height: 1.25; }
#main-content h2:not(.foot-fix-banner-sec *) { font-size: 34px !important; line-height: 1.3; }
#main-content h3:not(.foot-fix-banner-sec *) { font-size: 28px !important; line-height: 1.3; }
#main-content h4:not(.foot-fix-banner-sec *) { font-size: 24px !important; line-height: 1.35; }
#main-content p:not(.foot-fix-banner-sec *):not(.serv-hero-sec-consent) { font-size: 19px !important; line-height: 1.6; }

/* Text pasted into the editor often carries its own size on an inner <span>: follow the heading / paragraph. */
#main-content :is(h1, h2, h3, h4, p) span[style*="font-size"] { font-size: inherit !important; }

@media (max-width: 767px) {
    #main-content h1:not(.foot-fix-banner-sec *) { font-size: 32px !important; }
    #main-content h2:not(.foot-fix-banner-sec *) { font-size: 26px !important; }
    #main-content h3:not(.foot-fix-banner-sec *) { font-size: 24px !important; }
    #main-content h4:not(.foot-fix-banner-sec *) { font-size: 20px !important; }
    #main-content p:not(.foot-fix-banner-sec *):not(.serv-hero-sec-consent) { font-size: 17px !important; }
}

@media (max-width: 575px) {
    #main-content p:not(.foot-fix-banner-sec *):not(.serv-hero-sec-consent) { font-size: 16px !important; }
}
