/* Shared compact page hero. */
.compact-search-hero {
    --compact-hero-visible-height: 152px;
    display: flex;
    min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
    padding-top: calc(var(--nav-h, 72px) + 0.75rem);
    padding-bottom: 1.25rem;
    background: #0b1d33;
}

.compact-search-hero.ritm-hero::after {
    content: none;
}

.compact-search-hero .hero-content {
    display: flex;
    align-items: flex-end;
    padding-top: 0;
}

.compact-search-hero-bg {
    background-position: center 46%;
}

.compact-search-hero--events .compact-search-hero-bg {
    background-position: center 42%;
}

.compact-search-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 16, 32, 0.78) 0%, rgba(5, 16, 32, 0.56) 48%, rgba(5, 16, 32, 0.26) 100%),
        linear-gradient(180deg, rgba(5, 16, 32, 0.38) 0%, rgba(5, 16, 32, 0.14) 48%, rgba(5, 16, 32, 0.42) 100%);
}

.compact-search-hero-inner {
    width: min(100%, 800px);
    text-align: left;
}

.compact-search-hero .compact-search-hero-breadcrumb {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.compact-search-hero .breadcrumb {
    justify-content: flex-start;
}

.compact-search-hero .hero-breadcrumb .breadcrumb-item,
.compact-search-hero .hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: inherit;
    text-decoration: none;
}

.compact-search-hero .hero-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.compact-search-hero .ritm-hero-title,
.compact-search-hero .compact-search-hero-title {
    max-width: 800px;
    margin: 0 0 0.5rem;
    font-size: clamp(2.35rem, 3.1vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.compact-search-hero .search-page-lead,
.compact-search-hero .compact-search-hero-lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.35;
}

.compact-search-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.5rem;
}

.compact-search-hero + main .detail-shell,
.compact-search-hero + main .event-detail-section,
.compact-search-hero + .detail-shell,
.compact-search-hero + .event-detail-section {
    margin-top: 0;
    padding-top: clamp(1rem, 1.4vw, 1.25rem);
}

@media (max-width: 1199.98px) {
    .compact-search-hero {
        --compact-hero-visible-height: 148px;
    }
}

@media (max-width: 991.98px) {
    .compact-search-hero {
        --compact-hero-visible-height: 158px;
        min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
        padding-top: calc(var(--nav-h, 72px) + 1rem);
        padding-bottom: 1rem;
    }

    .compact-search-hero .hero-content {
        align-items: flex-end;
    }

    .compact-search-hero .ritm-hero-title,
    .compact-search-hero .compact-search-hero-title {
        max-width: 760px;
        margin-bottom: 0.38rem;
        font-size: clamp(2rem, 6.4vw, 2.45rem);
        line-height: 1.08;
    }

    .compact-search-hero .search-page-lead,
    .compact-search-hero .compact-search-hero-lead {
        max-width: 680px;
        margin-bottom: 0 !important;
        font-size: 0.96rem;
        line-height: 1.35;
    }
}

@media (max-width: 767.98px) {
    .compact-search-hero {
        --compact-hero-visible-height: 180px;
        min-height: calc(var(--nav-h, 72px) + var(--compact-hero-visible-height));
        padding-top: calc(var(--nav-h, 72px) + 0.9rem);
        padding-bottom: 1rem;
    }

    .compact-search-hero-inner {
        width: 100%;
    }

    .compact-search-hero .compact-search-hero-breadcrumb {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
    }

    .compact-search-hero .ritm-hero-title,
    .compact-search-hero .compact-search-hero-title {
        max-width: 100%;
        font-size: clamp(1.88rem, 8vw, 2.12rem);
    }
}

@media (max-width: 575.98px) {
    .compact-search-hero {
        --compact-hero-visible-height: 184px;
    }

    .compact-search-hero .ritm-hero-title,
    .compact-search-hero .compact-search-hero-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 8.2vw, 1.95rem);
    }

    .compact-search-hero .search-page-lead,
    .compact-search-hero .compact-search-hero-lead {
        max-width: 100%;
    }
}
