/* Shared hero typography for the public Digonest marketing / archive pages.
 * Only loaded for those templates, never for checkout or order-pay. */
body :is(
    .digo-solutions-hero h1,
    .digo-docs-hero h1,
    .digo-hero-title,
    .digo-hero-copy h1,
    .digo-web-hero-copy h1,
    .digo-premium-archive-copy h1,
    .digo-product-archive-hero h1,
    .digo-hero h1,
    .dsp-hero h1,
    .dph-hero h1,
    .digo-contact-card h1,
    .digo-help-hero h1,
    .digo-search-hero h1,
    .dh-hero-h1
) {
    font-size: clamp(32px, 3.65vw, 50px) !important;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.037em;
    text-wrap: balance;
}

/* A few archive variants carry extra-specific rules later in their own CSS. */
body.digo-websites-page .digo-web-hero-copy h1,
body .digo-premium-archive-hero--theme .digo-premium-archive-copy h1 {
    font-size: clamp(32px, 3.65vw, 50px) !important;
    line-height: 1.16;
    letter-spacing: -.037em;
}

/* Do not enlarge smaller, already-balanced hero headings. */
body.digo-about-page .digo-hero-title { font-size: clamp(30px, 3vw, 42px) !important; }
body.digo-contact-page .digo-contact-card h1 { font-size: clamp(28px, 3.3vw, 42px) !important; }
body.digo-help-page .digo-help-hero h1 { font-size: clamp(28px, 3vw, 40px) !important; }

@media (max-width: 680px) {
    body :is(
        .digo-solutions-hero h1,
        .digo-docs-hero h1,
        .digo-hero-title,
        .digo-hero-copy h1,
        .digo-web-hero-copy h1,
        .digo-premium-archive-copy h1,
        .digo-product-archive-hero h1,
        .digo-hero h1,
        .dsp-hero h1,
        .dph-hero h1,
        .digo-contact-card h1,
        .digo-help-hero h1,
        .digo-search-hero h1,
        .dh-hero-h1
    ),
    body.digo-websites-page .digo-web-hero-copy h1,
    body .digo-premium-archive-hero--theme .digo-premium-archive-copy h1 {
        font-size: clamp(29px, 7.8vw, 39px) !important;
        line-height: 1.17;
        letter-spacing: -.032em;
    }
    body.digo-about-page .digo-hero-title,
    body.digo-contact-page .digo-contact-card h1,
    body.digo-help-page .digo-help-hero h1 { font-size: clamp(28px, 7.4vw, 36px) !important; }
}
