/*
 * Stable public hero layer.
 *
 * This is intentionally a new asset name: the previous hero layers used a
 * long-lived global asset version and could remain stale in browser caches.
 * Keep the homepage slider compact and keep every public hero readable.
 */

@media (min-width: 768px) {
    html body .copp-hero,
    html body .copp-hero__slides,
    html body .copp-hero__track,
    html body .copp-hero__slide,
    html body .copp-hero__inner {
        box-sizing: border-box !important;
        height: 300px !important;
        max-height: 300px !important;
        min-height: 300px !important;
    }

    html body .copp-hero__inner {
        align-items: center !important;
        gap: 42px !important;
        padding: 12px clamp(28px, 7vw, 108px) 16px !important;
    }

    html body .copp-hero__copy {
        align-self: center !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        justify-content: center !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
    }

    html body .copp-hero__copy h1 {
        color: #263746 !important;
        -webkit-text-fill-color: #263746 !important;
        font-size: clamp(36px, 3.1vw, 42px) !important;
        line-height: 1.05 !important;
        margin: 0 0 8px !important;
        max-width: 560px !important;
        min-height: 0 !important;
        mix-blend-mode: normal !important;
    }

    html body .copp-hero__copy h1 span {
        color: var(--copp-red) !important;
        -webkit-text-fill-color: var(--copp-red) !important;
    }

    html body .copp-hero__copy > p {
        color: #263746 !important;
        -webkit-text-fill-color: #263746 !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        margin: 0 0 10px !important;
        max-width: 520px !important;
        min-height: 0 !important;
        mix-blend-mode: normal !important;
    }

    html body .copp-hero__actions {
        display: flex !important;
        flex: 0 0 auto !important;
        gap: 12px !important;
        grid-row: auto !important;
        height: 44px !important;
        margin: 0 !important;
        max-width: 500px !important;
    }

    html body .copp-hero__btn {
        box-sizing: border-box !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    html body .copp-hero__visual,
    html body .copp-visual {
        min-height: 0 !important;
    }

    html body .copp-hero__people {
        bottom: -8px !important;
        height: calc(100% + 8px) !important;
        right: -8px !important;
        transform: none !important;
        width: min(72%, 440px) !important;
    }

    html body :is(
        .copp-news-hero,
        .copp-gallery-hero,
        .copp-knowledge-hero,
        .copp-opportunity-hero,
        .copp-about-subpage-hero,
        .copp-programs-page-hero,
        .copp-partners-hero,
        .copp-resume-bank-hero,
        .copp-school-hero,
        .copp-students-hero,
        .copp-stories-hero,
        .copp-edu-orgs-hero,
        .copp-events-hero,
        .copp-contacts-hero,
        .copp-contests-hero,
        .copp-projects-hero
    ) {
        box-sizing: border-box !important;
        height: 300px !important;
        max-height: 300px !important;
        min-height: 300px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    html body :is(
        .copp-news-hero,
        .copp-gallery-hero,
        .copp-knowledge-hero,
        .copp-opportunity-hero,
        .copp-about-subpage-hero,
        .copp-programs-page-hero,
        .copp-partners-hero,
        .copp-resume-bank-hero,
        .copp-school-hero,
        .copp-students-hero,
        .copp-stories-hero,
        .copp-edu-orgs-hero,
        .copp-events-hero,
        .copp-contacts-hero,
        .copp-contests-hero,
        .copp-projects-hero
    ) > :is(.copp-news-hero__inner, .copp-gallery-hero__inner) {
        align-items: center !important;
        box-sizing: border-box !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 12px clamp(28px, 7vw, 108px) 16px !important;
    }

    html body :is(.copp-news-hero__media, .copp-gallery-hero__media, .copp-gallery-hero__frame) {
        height: 236px !important;
        max-height: 236px !important;
        min-height: 236px !important;
        overflow: hidden !important;
    }

    html body :is(.copp-news-hero__media, .copp-gallery-hero__media) img {
        height: 236px !important;
        max-height: 236px !important;
        min-height: 0 !important;
    }

    html body :is(.copp-news-hero__title, .copp-gallery-hero__title, .copp-knowledge-hero__title) {
        color: #263746 !important;
        -webkit-text-fill-color: #263746 !important;
        font-size: clamp(30px, 3vw, 42px) !important;
        line-height: 1.05 !important;
        margin: 0 0 8px !important;
        min-height: 0 !important;
        mix-blend-mode: normal !important;
    }

    html body :is(
        .copp-news-hero__subtitle,
        .copp-news-hero__lead,
        .copp-gallery-hero__subtitle,
        .copp-knowledge-hero__subtitle,
        .copp-knowledge-hero__lead,
        [class$="__lead-copy"]
    ) {
        color: #263746 !important;
        -webkit-text-fill-color: #263746 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        margin: 0 0 8px !important;
        mix-blend-mode: normal !important;
    }
}

@media (max-width: 767.98px) {
    html body .copp-hero,
    html body .copp-hero__slides,
    html body .copp-hero__track,
    html body .copp-hero__slide,
    html body :is(
        .copp-news-hero,
        .copp-gallery-hero,
        .copp-knowledge-hero,
        .copp-opportunity-hero,
        .copp-about-subpage-hero,
        .copp-programs-page-hero,
        .copp-partners-hero,
        .copp-resume-bank-hero,
        .copp-school-hero,
        .copp-students-hero,
        .copp-stories-hero,
        .copp-edu-orgs-hero,
        .copp-events-hero,
        .copp-contacts-hero,
        .copp-contests-hero,
        .copp-projects-hero
    ) {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html body .copp-hero__inner,
    html body :is(.copp-news-hero, .copp-gallery-hero) > :is(.copp-news-hero__inner, .copp-gallery-hero__inner) {
        height: auto !important;
        min-height: 0 !important;
        padding: 16px 18px 20px !important;
    }

    html body .copp-hero__copy h1 {
        font-size: 34px !important;
    }

    html body .copp-hero__copy > p {
        font-size: 14px !important;
    }

    html body :is(.copp-news-hero__media, .copp-gallery-hero__media, .copp-gallery-hero__frame) {
        height: 180px !important;
        max-height: 180px !important;
        min-height: 180px !important;
    }

    html body :is(.copp-news-hero__media, .copp-gallery-hero__media) img {
        height: 180px !important;
        max-height: 180px !important;
    }
}
