:root {
    --rbl-global-chrome: #282b33;
    --rbl-global-blue: #0874f9;
}

/* Make the original theme header use the same three-part layout on every page. */
body .site-header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) auto minmax(220px, 1fr) !important;
    width: calc(100% - 48px) !important;
    max-width: 1540px !important;
    min-height: 104px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    align-items: center !important;
    column-gap: 34px !important;
}

body .site-header .header-inner > .logo {
    grid-column: 1 !important;
    justify-self: start !important;
}

body .site-header .header-inner > .header-right {
    display: contents !important;
}

body .site-header .nav {
    grid-column: 2 !important;
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-self: center !important;
    align-items: center !important;
    gap: 32px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border: 0 !important;
    background: transparent !important;
}

body .site-header .nav a {
    border-bottom: 2px solid transparent !important;
    padding: 7px 0 5px !important;
    white-space: nowrap !important;
}

body .site-header .nav a.active,
body .site-header .nav a.rbl-global-current {
    border-bottom-color: var(--rbl-global-blue) !important;
    color: #ffffff !important;
}

body .site-header .header-right > .btn,
body .site-header .header-right > .btn-small,
body .site-header .header-right > .btn-primary {
    grid-column: 3 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
}

body .site-header .header-inner > .rbl-global-header-cta {
    grid-column: 3 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
    justify-self: end !important;
    align-self: center !important;
    white-space: nowrap !important;
}

/* Restore the correct footer treatment on every page. */
body .site-footer {
    border-top-color: #344050 !important;
    background: var(--rbl-global-chrome) !important;
    color: #b7c0d0 !important;
}

body .site-footer .footer-tagline {
    display: none !important;
}

body .site-footer .logo img {
    width: auto !important;
    height: 48px !important;
    max-width: 190px !important;
    margin: 0 !important;
    opacity: 1 !important;
    filter: none !important;
}

body .site-footer p,
body .site-footer a {
    color: #b7c0d0 !important;
}

body .site-footer a:hover {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    body .site-header .header-inner {
        grid-template-columns: 1fr auto !important;
        width: calc(100% - 32px) !important;
        min-height: 84px !important;
    }

    body .site-header .header-inner > .header-right {
        display: flex !important;
        justify-self: end !important;
    }

    body .site-header .header-inner > .rbl-global-header-cta {
        display: none !important;
    }

    body .site-header .nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: var(--rbl-global-chrome) !important;
        padding: 8px 24px 18px !important;
    }

    body .site-header .nav.open {
        display: flex !important;
    }
}
