/**
 * Site Banner (Secret Event campaign)
 * Dismissible notice bar shown above the header. Stays fixed above the navbar
 * even once the navbar itself becomes fixed on scroll (see affix-navbar.js) -
 * --site-banner-height is kept in sync with the banner's rendered height by
 * the inline script in header.html.twig and defaults to 0 once dismissed.
 */
@font-face {
    font-family: 'AlumniSans';
    src: url('/static/fonts/AlumniSans-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --site-banner-height: 0px;
}

body {
    padding-top: var(--site-banner-height);
}

.js-affix-top-nav-bar.fixed-top {
    top: var(--site-banner-height);
}

/* .navbar is also position:fixed on mobile (navbar-mobile.css); raise specificity
   with the body ancestor so this override wins regardless of stylesheet load order */
@media screen and (max-width: 767px) {
    body .navbar {
        top: var(--site-banner-height);
    }
}

.site-banner {
    background-color: #0B3087FF;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    overflow: hidden;
}

.site-banner__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: calc(12rem / 16) calc(40rem / 16) calc(12rem / 16) calc(15rem / 16);
    position: relative;
    text-align: center;
}

.site-banner__mobile-placeholder {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.site-banner__image {
    height: 6.5rem;
    margin: -1rem 0 -2.5rem;
    object-fit: cover;
}

.site-banner__marked {
    background-color: #F4FB08FF;
    color: #0B3087FF;
    padding: 0 0.5rem;
    margin: 0;
    font-family: 'AlumniSans', serif;
    font-size: medium;
    font-weight: 600;
    width: fit-content;
    height: fit-content;
}

.site-banner__text {
    color: white;
    margin: 0;
    font-family: 'AlumniSans', serif;
    font-size: large;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.site-banner__link {
    text-transform: uppercase;
    color: white;
    font-family: 'AlumniSans', serif;
    font-size: large;
    text-decoration: underline;
    word-break: keep-all;
}

.site-banner__link:hover {
    color: #F4FB08FF;
    text-decoration: underline;
}

.site-banner__close {
    position: absolute;
    top: 50%;
    right: calc(10rem / 16);
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: calc(22rem / 16);
    line-height: 1;
    cursor: pointer;
    padding: calc(5rem / 16) calc(10rem / 16);
}

.site-banner__close span {
    font-size: x-small;
}

.site-banner__close:hover {
    color: #FC4201FF;
}

@media (max-width: 768px) {
    .site-banner__image {
        height: 5.5rem;
        margin: -1rem 0 -2.25rem;
    }

    .site-banner__inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        gap: 1rem;
    }

    .site-banner__marked {
        font-size: small !important;
    }

    .site-banner__text {
        font-size: medium !important;
        text-align: left;
    }

    .site-banner__link {
        font-size: medium !important;
        padding-right: 2rem;
    }

    .site-banner__link .icon-arrow-right {
        font-size: x-small;
    }
}

@media (max-width: 470px) {
    .site-banner__mobile-placeholder {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: start;
    }

    .site-banner__image {
        margin: -1rem 0 -2.5rem;
        height: 8rem;
    }

    .site-banner__link {
        font-size: medium !important;
        padding-right: 2.5rem;
    }
}