/*
 * Site-wide responsive type scale.
 * Apply the same semantic sizes to authored page content and Gutenberg so a
 * heading or paragraph looks the same on every page at each breakpoint.
 */
:is(.entry-content, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6, p) {
    font-family: var(--font-heading, Poppins, Arial, sans-serif);
}

:is(.entry-content, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--ananeoo-adv-color, #003360);
    font-weight: 700;
    letter-spacing: 0.2px;
}

:is(.entry-content, .editor-styles-wrapper) h1 {
    font-size: 64px !important;
    line-height: 1.1 !important;
}

:is(.entry-content, .editor-styles-wrapper) h2 {
    font-size: 46px !important;
    line-height: 1.15 !important;
}

:is(.entry-content, .editor-styles-wrapper) h3 {
    font-size: 30px !important;
    line-height: 1.25 !important;
}

:is(.entry-content, .editor-styles-wrapper) h4,
:is(.entry-content, .editor-styles-wrapper) h5,
:is(.entry-content, .editor-styles-wrapper) h6 {
    font-size: 24px !important;
    line-height: 1.3 !important;
}

:is(.entry-content, .editor-styles-wrapper) p {
    color: var(--ananeoo-adv-color, inherit);
    font-family: var(--font-body, Poppins, Arial, sans-serif);
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.6 !important;
    letter-spacing: 0.2px;
}

@media (max-width: 1024px) {
    :is(.entry-content, .editor-styles-wrapper) h1 {
        font-size: 52px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) h2 {
        font-size: 38px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) h3 {
        font-size: 28px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) h4,
    :is(.entry-content, .editor-styles-wrapper) h5,
    :is(.entry-content, .editor-styles-wrapper) h6 {
        font-size: 22px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) p {
        font-size: 17px !important;
    }

    /* Keep tablet copy inside its column when a word or URL is long. */
    :is(.entry-content, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6, p) {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767px) {
    :is(.entry-content, .editor-styles-wrapper) h1 {
        font-size: 40px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) h2 {
        font-size: 32px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) h3 {
        font-size: 26px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) h4,
    :is(.entry-content, .editor-styles-wrapper) h5,
    :is(.entry-content, .editor-styles-wrapper) h6 {
        font-size: 21px !important;
    }
    :is(.entry-content, .editor-styles-wrapper) p {
        font-size: 16px !important;
    }
}

/* Loaded after block styles: preserve the Advanced Button's editor-selected
 * hover radius against legacy page/section button CSS. */
html body :is(.entry-content, .editor-styles-wrapper) .ananeoo-advanced-button:hover,
html body :is(.entry-content, .editor-styles-wrapper) .ananeoo-advanced-button:focus,
html body :is(.entry-content, .editor-styles-wrapper) .ananeoo-advanced-button.is-hover-preview {
    border-radius: var(--ananeoo-btn-radius-hover, var(--ananeoo-btn-radius, 30px)) !important;
}

html body :is(.entry-content, .editor-styles-wrapper) .ananeoo-advanced-button:hover,
html body :is(.entry-content, .editor-styles-wrapper) .ananeoo-advanced-button:focus,
html body :is(.entry-content, .editor-styles-wrapper) .ananeoo-advanced-button.is-hover-preview {
    border-radius: var(--ananeoo-btn-radius-hover, var(--ananeoo-btn-radius, 30px)) !important;
}
