/*
 * STPS GLOBAL SHELL
 * This file owns the header, footer, burger bar and dropdowns on EVERY app.
 * Load it LAST on every page.
 */

.stps-global-header,
.stps-global-header *,
.stps-global-footer,
.stps-global-footer * {
    box-sizing: border-box;
}

.stps-global-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 9999 !important;
    background: var(--stps-app-colour,#24145f) !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.stps-global-header-inner {
    width: 100% !important;
    max-width: 1180px !important;
    min-height: 84px !important;
    margin: 0 auto !important;
    padding: 0 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

.stps-global-brand,
.stps-global-actions {
    display: flex !important;
    align-items: center !important;
}

.stps-global-brand { gap: 34px !important; }
.stps-global-actions { gap: 14px !important; }

.stps-global-wordmark {
    display: inline-flex !important;
    align-items: flex-end !important;
    color: #fff !important;
    font-size: 42px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -3px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.stps-global-wordmark span,
.stps-global-footer-wordmark span {
    color: #28c177 !important;
    letter-spacing: 0 !important;
}

.stps-global-title {
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.stps-global-email {
    color: rgba(255,255,255,.92) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.stps-global-signout {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.stps-menu-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 0 0 8px !important;
    padding: 9px !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
}

.stps-menu-button span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 2px !important;
}

.stps-menu {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: var(--stps-app-colour,#24145f) !important;
    border-top: 1px solid rgba(255,255,255,.14) !important;
}

.stps-menu[hidden] {
    display: none !important;
}

.stps-menu-inner {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 10px 42px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

.stps-menu-link,
.stps-submenu-trigger {
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: default !important;
    appearance: none !important;
}

.stps-menu-link {
    cursor: pointer !important;
}

.stps-menu-link:hover,
.stps-submenu-trigger:hover,
.stps-menu-group:hover > .stps-submenu-trigger,
.stps-menu-group:focus-within > .stps-submenu-trigger {
    background: rgba(255,255,255,.12) !important;
}

.stps-menu-group {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
}

.stps-submenu-chevron {
    display: inline-block !important;
    font-size: 11px !important;
    line-height: 1 !important;
    transition: transform .15s ease !important;
}

/* Always present in DOM; hidden visually until hover/focus on desktop. */
.stps-submenu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 3px) !important;
    left: 0 !important;
    z-index: 10000 !important;
    min-width: 220px !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid #d7dee8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.18) !important;
}

.stps-submenu::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    left: 0 !important;
    right: 0 !important;
    height: 7px !important;
}

@media (hover: hover) and (min-width: 801px) {
    .stps-menu-group:hover > .stps-submenu,
    .stps-menu-group:focus-within > .stps-submenu {
        display: block !important;
    }

    .stps-menu-group:hover .stps-submenu-chevron,
    .stps-menu-group:focus-within .stps-submenu-chevron {
        transform: rotate(180deg) !important;
    }
}

.stps-submenu-link {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    display: block !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #102a43 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.stps-submenu-link:hover,
.stps-submenu-link:focus-visible {
    background: #eef2f5 !important;
    color: #102a43 !important;
}

/* Footer is also entirely global. */
.stps-global-footer {
    width: 100% !important;
    min-height: 160px !important;
    margin: auto 0 0 !important;
    padding: 28px 42px !important;
    display: flex !important;
    align-items: center !important;
    border-top: 1px solid #e7ebf0 !important;
    background: #f5f7fa !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.stps-global-footer-inner {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
}

.stps-global-footer-wordmark {
    color: #06235a !important;
    font-size: 40px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -3px !important;
    text-decoration: none !important;
}

.stps-global-footer-divider {
    width: 1px !important;
    height: 54px !important;
    background: #cfd6df !important;
}

.stps-global-footer-copy {
    color: #06235a !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.stps-global-footer-copy a {
    color: #06235a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Touch/mobile uses click/tap and inline expansion. */
@media (max-width: 800px), (hover: none) {
    .stps-menu-inner {
        padding: 10px 20px 18px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .stps-menu-link,
    .stps-menu-group,
    .stps-submenu-trigger {
        width: 100% !important;
    }

    .stps-submenu-trigger {
        justify-content: space-between !important;
        cursor: pointer !important;
    }

    .stps-submenu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 2px 0 4px !important;
        border-color: rgba(255,255,255,.16) !important;
        background: rgba(0,0,0,.14) !important;
        box-shadow: none !important;
    }

    .stps-menu-group.is-open > .stps-submenu {
        display: block !important;
    }

    .stps-menu-group.is-open .stps-submenu-chevron {
        transform: rotate(180deg) !important;
    }

    .stps-submenu-link {
        padding-left: 24px !important;
        color: #fff !important;
    }

    .stps-submenu-link:hover {
        background: rgba(255,255,255,.12) !important;
        color: #fff !important;
    }
}

@media (max-width: 700px) {
    .stps-global-header-inner {
        min-height: 74px !important;
        padding: 0 20px !important;
    }

    .stps-global-brand {
        gap: 18px !important;
    }

    .stps-global-wordmark {
        font-size: 34px !important;
    }

    .stps-global-title {
        font-size: 17px !important;
    }

    .stps-global-email {
        display: none !important;
    }

    .stps-global-footer {
        padding: 28px 20px !important;
    }
}
