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

.site-top-banner {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    gap: 0.55rem;
    border-bottom: 1px solid transparent;
    background: #eff8ff;
    color: #175cd3;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.site-top-banner--maintenance {
    border-bottom-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.site-top-banner--warning {
    border-bottom-color: #fedf89;
    background: #fffaeb;
    color: #93370d;
}

.site-top-banner--success {
    border-bottom-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.site-top-banner-icon {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.site-top-banner-content p {
    margin: 0;
}

.site-top-banner-content a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.site-top-banner-content a:hover,
.site-top-banner-content a:focus {
    color: inherit;
    text-decoration-thickness: 2px;
}

body.landing-layout .site-top-banner {
    min-height: 3rem;
    overflow: hidden;
    border-bottom: 0;
    background: linear-gradient(110deg, #001c3d 0%, #243b72 52%, #57348f 100%);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 28, 61, 0.2);
    color: #fff;
    letter-spacing: 0.01em;
}

body.landing-layout .site-top-banner::before {
    position: absolute;
    top: -5rem;
    left: 50%;
    width: 28rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    content: "";
    filter: blur(2rem);
    pointer-events: none;
    transform: translateX(-50%);
}

body.landing-layout .site-top-banner--maintenance {
    background: linear-gradient(110deg, #5f1515 0%, #b42318 52%, #7a271a 100%);
}

body.landing-layout .site-top-banner--warning {
    background: linear-gradient(110deg, #713b12 0%, #b54708 52%, #854a0e 100%);
}

body.landing-layout .site-top-banner--success {
    background: linear-gradient(110deg, #054f3d 0%, #067647 52%, #0b6b58 100%);
}

body.landing-layout .site-top-banner-icon,
body.landing-layout .site-top-banner-content {
    position: relative;
    z-index: 1;
}

body.landing-layout .site-top-banner-icon {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
}

body.landing-layout .site-top-banner-content a {
    display: inline-block;
    margin-left: 0.2rem;
    padding: 0.12rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

body.landing-layout .site-top-banner-content a:hover,
body.landing-layout .site-top-banner-content a:focus {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.2);
}

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

body.has-site-top-banner.landing-layout .navbar.fixed-top,
body.has-site-top-banner.platform-layout .navbar-top,
body.has-site-top-banner.platform-layout .navbar-vertical.navbar-expand-xl {
    top: var(--site-top-banner-height);
}

@media (min-width: 1200px) {
    body.has-site-top-banner.platform-layout .navbar-vertical.navbar-expand-xl {
        max-height: calc(100vh - var(--site-top-banner-height));
    }

    body.has-site-top-banner.platform-layout .navbar-vertical.navbar-expand-xl .navbar-vertical-content {
        height: calc(100vh - 4.3125rem - var(--site-top-banner-height));
    }
}

@media print {
    .site-top-banner {
        display: none;
    }

    body.has-site-top-banner {
        padding-top: 0;
    }
}
