/*
 * Final internal hero authority
 *
 * Loaded after every page-specific stylesheet. It prevents a legacy page
 * template from falling back to an older dark or low-contrast hero treatment.
 * The public homepage remains deliberately excluded.
 */

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    border-bottom: 1px solid var(--ich-line) !important;
    background-color: var(--ich-mist) !important;
    color: var(--ich-ink) !important;
}

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(
    [class*="hero__copy"],
    [class*="hero-copy"],
    [class*="hero__content"],
    [class*="hero-content"],
    .mnc-category-copy,
    .inner-hero-content,
    .ek-inner-home-hero__panel,
    .download-request-hero > .container
) {
    position: relative !important;
    z-index: 2 !important;
    border: 1px solid var(--ich-line) !important;
    border-left: 5px solid var(--ich-olive) !important;
    border-radius: 14px !important;
    background: var(--ich-panel) !important;
    box-shadow: 0 26px 66px rgba(32, 54, 42, .14) !important;
    color: var(--ich-ink) !important;
    text-shadow: none !important;
    backdrop-filter: blur(12px);
}

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(h1, h2, h3, strong) {
    color: var(--ich-ink) !important;
    text-shadow: none !important;
}

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(p, li, small, .breadcrumb, [class*="breadcrumb"], [class*="crumb"]) {
    color: var(--ich-copy) !important;
    text-shadow: none !important;
}

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(.breadcrumb, [class*="breadcrumb"], [class*="crumb"]) :is(a, span, strong) {
    color: var(--ich-copy) !important;
}

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(
    [class*="kicker"],
    [class*="eyebrow"],
    [class*="badge"]
) {
    color: var(--ich-olive-deep) !important;
    text-shadow: none !important;
}

html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(a[class*="button"], button[class*="button"]) {
    border-color: var(--ich-olive-deep) !important;
    border-radius: 7px !important;
    background: var(--ich-olive-deep) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(74, 92, 34, .16) !important;
}

@media (min-width: 721px) {
    html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] {
        min-height: min(700px, calc(100svh - 1px)) !important;
    }

    html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"]:not(.ek-inner-home-hero) h1 {
        max-width: 19ch !important;
        color: var(--ich-ink) !important;
        font-size: clamp(2.75rem, 3.75vw, 3.9rem) !important;
        font-weight: 720 !important;
        letter-spacing: -.055em !important;
        line-height: .94 !important;
        text-wrap: balance;
    }

    html body.everklin-transformed #main:not(.corp-home) > .fpp-hero .fpp-hero__copy {
        padding: clamp(32px, 3.4vw, 46px) !important;
    }
}

@media (max-width: 720px) {
    html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"] :is(
        [class*="hero__copy"],
        [class*="hero-copy"],
        [class*="hero__content"],
        [class*="hero-content"],
        .mnc-category-copy,
        .inner-hero-content,
        .ek-inner-home-hero__panel,
        .download-request-hero > .container
    ) {
        border-left-width: 4px !important;
        border-radius: 12px !important;
    }

    html body.everklin-transformed #main:not(.corp-home) > :is(section, header)[class*="hero"]:not(.ek-inner-home-hero) h1 {
        max-width: 13ch !important;
        color: var(--ich-ink) !important;
        font-size: clamp(2.5rem, 11vw, 3.65rem) !important;
        line-height: .96 !important;
        text-wrap: balance;
    }
}
