/*
 * Site-wide announcement banner (banner/banner.php).
 *
 * The banner sits in normal document flow at the very top of the page and
 * scrolls away with it. Both navs are position: fixed (.header-site here, the
 * React Nav on the homepage), so they read --banner-h — the part of the
 * banner still on screen, kept up to date by banner.js — to dock directly
 * beneath it, sliding up to the top as it scrolls out of view.
 */
.site-banner {
    position: relative;
    z-index: 100;
    background: #4A8078;
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
}

.site-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    padding: 14px 16px;
}

.site-banner__text {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: #FFF;
}

.site-banner__btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 7px 40px;
    border: 2px solid #FFF;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFF;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.site-banner__btn:hover,
.site-banner__btn:focus-visible {
    background: #FFF;
    color: #4A8078;
}

/* Bootstrap's .top-0 is !important, hence the !important here. The landing
   page header is position: relative, so it already sits below the banner. */
.has-site-banner .header-site:not(.header-landing) {
    top: var(--banner-h, 64px) !important;
}

@media (max-width: 767px) {
    .site-banner__inner {
        padding: 10px 16px;
    }

    .site-banner__text {
        font-size: 13px;
    }

    .site-banner__btn {
        padding: 5px 24px;
        font-size: 13px;
    }
}
