/* PROUD AGERS split logo + season corner animation (PC + mobile) */

.oc-brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    height: 30px;
    line-height: 0;
    text-decoration: none;
    /* Hide broken-image alt glyphs if PNGs 404 */
    font-size: 0;
}

.oc-brand-logo__text {
    display: block !important;
    height: 18px !important;
    max-height: 18px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    object-position: center;
    /* Optical: wordmark canvas sits slightly high vs SVG mark */
    transform: translateY(1px);
}

.oc-brand-logo__mark-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.oc-brand-logo__mark {
    display: block !important;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    overflow: visible;
}

.oc-brand-logo__mark .oc-brand-season {
    opacity: 0;
}

.oc-brand-logo__mark .oc-brand-season--spring {
    animation: oc-brand-season-spring 12s ease-in-out infinite;
}

.oc-brand-logo__mark .oc-brand-season--summer {
    animation: oc-brand-season-summer 12s ease-in-out infinite;
}

.oc-brand-logo__mark .oc-brand-season--autumn {
    animation: oc-brand-season-autumn 12s ease-in-out infinite;
}

.oc-brand-logo__mark .oc-brand-season--winter {
    animation: oc-brand-season-winter 12s ease-in-out infinite;
}

@keyframes oc-brand-season-spring {
    0%, 8% { opacity: 0; }
    14%, 76% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@keyframes oc-brand-season-summer {
    0%, 20% { opacity: 0; }
    26%, 76% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@keyframes oc-brand-season-autumn {
    0%, 32% { opacity: 0; }
    38%, 76% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@keyframes oc-brand-season-winter {
    0%, 44% { opacity: 0; }
    50%, 76% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .oc-brand-logo__mark .oc-brand-season {
        opacity: 1;
        animation: none;
    }
}

body.outlive-club-active .header .logo .oc-brand-logo,
body.outlive-club-desktop-shell .header .logo .oc-brand-logo {
    display: inline-flex !important;
    align-items: center;
    height: 30px;
    /* PC optical: 1px below geometric center (was 2px; mark bottom was clipped) */
    transform: translateY(1px);
}

body.outlive-club-active .header .logo,
body.outlive-club-desktop-shell .header .logo {
    overflow: visible !important;
}

body.outlive-club-active .header .logo .oc-brand-logo__text,
body.outlive-club-desktop-shell .header .logo .oc-brand-logo__text {
    height: 18px !important;
    max-height: 18px !important;
}

body.outlive-club-active .header .logo .oc-brand-logo__mark,
body.outlive-club-desktop-shell .header .logo .oc-brand-logo__mark {
    width: 30px !important;
    height: 30px !important;
}

body.outlive-club-active .header .logo img.oc-header-inner-logo,
body.outlive-club-active:not(.outlive-club-portal) .header .logo img.oc-header-inner-logo,
body.outlive-club-desktop-shell .header .logo img.oc-header-inner-logo,
body.outlive-club-active .header .logo img.logo-img.oc-header-inner-logo {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.outlive-club-portal:not(.outlive-club-portal-desktop) .oc-portal-header__brand .oc-brand-logo {
    gap: 13px;
    height: 28px;
    max-width: min(72vw, 260px);
}

body.outlive-club-portal:not(.outlive-club-portal-desktop) .oc-portal-header__brand .oc-brand-logo__text {
    height: 16px !important;
    max-height: 16px !important;
}

body.outlive-club-portal:not(.outlive-club-portal-desktop) .oc-portal-header__brand .oc-brand-logo__mark {
    width: 28px !important;
    height: 28px !important;
}

body.outlive-club-portal:not(.outlive-club-portal-desktop) .oc-portal-header__logo {
    display: none !important;
}
