/**
 * Public auth header mobile menu + marketing/logo overrides.
 * New classes only (bk-auth-nav-*, bk-as-show-marketing, cl4-show-marketing).
 */

.bk-auth-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bk-auth-nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bk-auth-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.bk-auth-nav-submenu {
    display: none;
}

.bk-auth-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(201, 220, 247, 0.9);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.bk-auth-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #0b1f3f;
}

.bk-auth-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 63, 0.35);
    z-index: 250;
    display: none;
}

.bk-auth-nav-drawer {
    position: fixed;
    top: calc(var(--auth-nav-h, 74px) + 8px);
    right: 14px;
    left: auto;
    z-index: 260;
    width: min(280px, calc(100% - 28px));
    background: #fff;
    border: 1px solid rgba(201, 220, 247, 0.9);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(25, 82, 170, 0.16);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

body.bk-auth-nav-open .bk-auth-nav-overlay {
    display: block;
}

body.bk-auth-nav-open .bk-auth-nav-drawer {
    display: flex;
}

.bk-auth-nav-drawer-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #0b1f3f !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.bk-auth-nav-drawer-link:hover,
.bk-auth-nav-link--current {
    background: #eaf2ff;
}

.bk-auth-nav-drawer-link--child {
    padding-left: 28px;
    font-size: 13px;
    font-weight: 550;
    color: #3d5478 !important;
}

.bk-auth-nav-drawer-link--cta {
    background: linear-gradient(90deg, #1760db 0%, #3b94f5 100%);
    color: #fff !important;
    text-align: center;
}

body.bk-auth-nav-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .bk-auth-nav-desktop {
        display: none;
    }

    .bk-auth-nav-toggle {
        display: inline-flex;
    }
}

/* Keep MatterVanta wordmark + tagline visible on small screens. */
@media (max-width: 600px) {
    .bk-auth-split.bk-auth-split--mobile-nav .bk-auth-brand-copy,
    .cl4.cl4-mobile-nav .bk-auth-brand-copy {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .bk-auth-split.bk-auth-split--mobile-nav .bk-auth-brand-name,
    .cl4.cl4-mobile-nav .bk-auth-brand-name {
        font-size: 15px;
    }

    .bk-auth-split.bk-auth-split--mobile-nav .bk-auth-brand-tagline,
    .cl4.cl4-mobile-nav .bk-auth-brand-tagline {
        display: block !important;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
        max-width: 11.5rem;
    }
}

/* Restore left marketing/image stack on tablet and phone. */
@media (max-width: 1024px) {
    .bk-auth-split.bk-as-show-marketing .bk-as-shell {
        display: flex;
        flex-direction: column;
        width: min(var(--auth-shell-max, 1200px), calc(100% - 32px));
        gap: 18px;
    }

    .bk-auth-split.bk-as-show-marketing .bk-as-panel--marketing {
        display: block;
        width: 100%;
        padding: 8px 0 0;
    }

    .bk-auth-split.bk-as-show-marketing .bk-as-hero h1 {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }

    .bk-auth-split.bk-as-show-marketing .bk-as-hero-art {
        max-width: 420px;
        margin: 0 auto;
    }

    .bk-auth-split.bk-as-show-marketing .bk-as-feature-row {
        max-width: 100%;
    }

    .cl4.cl4--split.cl4-show-marketing .cl4-shell {
        display: flex;
        flex-direction: column;
        width: min(640px, calc(100% - 32px));
        gap: 18px;
    }

    .cl4.cl4--split.cl4-show-marketing .cl4-panel--marketing {
        display: block;
        width: 100%;
    }
}

/* Keep copyright on-screen when page content is shorter than the viewport. */
.bk-auth-split.bk-auth-split--fit-footer .al4-main,
.bk-auth-split.bk-auth-split--fit-footer .as4-main,
.bk-auth-split.bk-auth-split--fit-footer .pw4-main,
.bk-auth-split.bk-auth-split--fit-footer .ad4-main {
    min-height: 0;
    flex: 1 1 auto;
}

.cl4.cl4--split.cl4-fit-footer .cl4-main {
    min-height: 0;
    flex: 1 1 auto;
}
