/* ==========================================================================
   Main menu "Log in" / member initials, and the log-in modal
   (inc/skills-exchange/p3-account-nav.php)
   ========================================================================== */

#navigation.bht-nav-v2 #nav ul li.bht-nav-account { display:inline-flex; align-items:center; vertical-align:middle; }

#navigation.bht-nav-v2 #nav ul li.bht-nav-account a.bht-nav-login {
    font-family:'Manrope',sans-serif !important;
    font-weight:800 !important;
    font-size:12px !important;
    letter-spacing:0.04em !important;
    text-transform:uppercase !important;
    text-decoration:underline !important;
    text-underline-offset:0.2em;
    padding:2px 0 !important;
}
#navigation.bht-nav-v2 #nav ul li.bht-nav-account a.bht-nav-login::before { display:none !important; }
#navigation.bht-nav-v2 #nav ul li.bht-nav-account a.bht-nav-login:hover { background:#E1FF2C; }

#navigation.bht-nav-v2 #nav ul li.bht-nav-account a.bht-nav-initials {
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0 !important;
    border-radius:50%;
    background:#3b1a3f;
    color:#efc8ef !important;
    font-family:'Galgo',sans-serif !important;
    font-weight:400 !important;
    font-size:34px !important;
    line-height:1;
    letter-spacing:0.02em !important;
    padding-top:3px !important;
    box-sizing:border-box;
    text-transform:uppercase !important;
    transition:transform 0.2s ease;
}
#navigation.bht-nav-v2 #nav ul li.bht-nav-account a.bht-nav-initials::before { display:none !important; }
#navigation.bht-nav-v2 #nav ul li.bht-nav-account a.bht-nav-initials:hover { transform:scale(1.06); }
#navigation.bht-nav-v2.is-compact #nav ul li.bht-nav-account a.bht-nav-initials { width:36px; height:36px; font-size:28px !important; }

/* The extra item needs a little room at laptop widths. */
@media (min-width:1101px) and (max-width:1440px) {
    #navigation.bht-nav-v2 #nav ul:has(> li.bht-nav-account) { gap:22px !important; }
}
@media (min-width:1101px) and (max-width:1260px) {
    #navigation.bht-nav-v2 #nav ul:has(> li.bht-nav-account) { gap:14px !important; }
}

.bht-nav-sr {
    position:absolute !important;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
}

/* --- Modal --- */
.bhtx-login-modal[hidden] { display:none; }
.bhtx-login-modal {
    position:fixed;
    inset:0;
    z-index:100000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.bhtx-login-modal-backdrop {
    position:absolute;
    inset:0;
    background:rgba(20,20,20,0.45);
}
.bhtx-login-modal-panel {
    position:relative;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:48px;
    align-items:center;
    width:100%;
    max-width:880px;
    max-height:calc(100vh - 48px);
    overflow:auto;
    padding:72px 64px;
    background:#fff;
    border-radius:12px;
    box-sizing:border-box;
    color:#111;
}
.bhtx-login-modal-close {
    position:absolute;
    top:20px;
    right:20px;
    width:36px;
    height:36px;
    padding:0;
    border:0;
    background:none;
    cursor:pointer;
}
.bhtx-login-modal-close::before,
.bhtx-login-modal-close::after {
    content:'';
    position:absolute;
    left:4px;
    right:4px;
    top:50%;
    height:5px;
    margin-top:-2.5px;
    background:#8a8a8a;
    border-radius:1px;
    transform:rotate(45deg);
}
.bhtx-login-modal-close::after { transform:rotate(-45deg); }
.bhtx-login-modal-close:hover::before,
.bhtx-login-modal-close:hover::after { background:#111; }

.bhtx-login-modal-intro { text-align:center; }
.bhtx-login-modal-logo { display:block; width:56px; height:auto; margin:0 auto 28px; }
.bhtx-login-modal .bhtx-login-modal-title {
    margin:0 0 28px;
    padding:0;
    font-family:'Manrope',sans-serif !important;
    font-weight:700 !important;
    font-size:26px !important;
    line-height:1.2 !important;
    letter-spacing:-0.01em;
    text-transform:none !important;
    color:#3b1a3f !important;
}
.bhtx-login-modal-join {
    margin:0;
    font-family:'Manrope',sans-serif;
    font-size:12px;
    color:#222;
}
.bhtx-login-modal-join a {
    margin-left:4px;
    font-weight:800;
    text-transform:uppercase;
    text-decoration:underline;
    color:#111 !important;
}

.bhtx-login-modal-form { display:flex; flex-direction:column; }
.bhtx-login-modal-form label {
    margin:0 0 6px;
    font-family:'Manrope',sans-serif;
    font-size:13px;
    color:#222;
}
.bhtx-login-modal-form input[type="email"],
.bhtx-login-modal-form input[type="password"] {
    width:100%;
    height:44px;
    margin:0 0 20px;
    padding:0 12px;
    border:1px solid #cfcfcf;
    border-radius:0;
    background:#fff;
    font-family:'Manrope',sans-serif;
    font-size:16px;
    box-sizing:border-box;
    box-shadow:none;
}
.bhtx-login-modal-form input:focus { outline:2px solid #3b1a3f; outline-offset:1px; }
.bhtx-login-modal-forgot {
    align-self:flex-end;
    margin:-12px 0 24px;
    font-family:'Manrope',sans-serif;
    font-weight:800;
    font-size:13px;
    color:#111 !important;
    text-decoration:underline;
    text-underline-offset:0.15em;
}
.bhtx-login-modal-forgot:hover { color:#A55C9F !important; }
.bhtx-login-modal-submit {
    align-self:center;
    padding:2px 6px;
    border:0;
    border-radius:0;
    background:#E1FF2C;
    font-family:'Manrope',sans-serif;
    font-weight:800;
    font-size:26px;
    line-height:1.15;
    text-transform:uppercase;
    text-decoration:underline;
    text-decoration-thickness:3px;
    text-underline-offset:0.12em;
    color:#000;
    cursor:pointer;
    transition:background 0.2s ease, color 0.2s ease;
}
.bhtx-login-modal-submit:hover { background:#000; color:#E1FF2C; }

/* --- Signed-in menu --- */
.bhtx-account-menu[hidden] { display:none; }
.bhtx-account-menu {
    position:fixed;
    inset:0;
    z-index:100000;
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    padding:24px;
}
.bhtx-account-menu-backdrop {
    position:absolute;
    inset:0;
    background:rgba(20,20,20,0.45);
}
.bhtx-account-menu-panel {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    max-width:450px;
    max-height:calc(100vh - 48px);
    overflow:auto;
    padding:32px 28px 64px;
    background:#26142b;
    border-radius:12px;
    box-sizing:border-box;
    color:#fff;
    text-align:center;
}
.bhtx-account-menu-close {
    position:absolute;
    top:28px;
    right:24px;
    width:40px;
    height:40px;
    padding:0;
    border:0;
    background:none;
    cursor:pointer;
}
.bhtx-account-menu-close::before,
.bhtx-account-menu-close::after {
    content:'';
    position:absolute;
    left:2px;
    right:2px;
    top:50%;
    height:7px;
    margin-top:-3.5px;
    background:#fff;
    border-radius:1px;
    transform:rotate(45deg);
}
.bhtx-account-menu-close::after { transform:rotate(-45deg); }
.bhtx-account-menu-close:hover::before,
.bhtx-account-menu-close:hover::after { background:#E1FF2C; }

.bhtx-account-menu .bhtx-account-menu-links {
    margin:72px 0 0;
    padding:0;
    list-style:none;
}
.bhtx-account-menu-links li { margin:0 0 22px; padding:0; list-style:none; }
.bhtx-account-menu-links li::before { display:none; }
.bhtx-account-menu .bhtx-account-menu-links a {
    font-family:'Manrope',sans-serif;
    font-weight:800;
    font-size:28px;
    line-height:1.2;
    color:#fff !important;
    text-decoration:underline;
    text-decoration-color:#7b4a80;
    text-decoration-thickness:5px;
    text-decoration-skip-ink:none;
    text-underline-offset:0.18em;
    transition:text-decoration-color 0.2s ease;
}
.bhtx-account-menu .bhtx-account-menu-links a:hover { text-decoration-color:#E1FF2C; }

.bhtx-account-menu .bhtx-account-menu-help {
    margin-top:30px;
    font-family:'Manrope',sans-serif;
    font-weight:800;
    font-size:14px;
    letter-spacing:0.02em;
    text-transform:uppercase;
    color:#fff !important;
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:0.25em;
}
.bhtx-account-menu .bhtx-account-menu-help:hover { color:#E1FF2C !important; }
.bhtx-account-menu .bhtx-account-menu-profile {
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-top:28px;
    text-decoration:none;
}
.bhtx-account-menu-initials {
    display:flex;
    align-items:center;
    justify-content:center;
    width:80px;
    height:80px;
    padding-top:5px;
    border-radius:50%;
    background:#fff;
    box-sizing:border-box;
    font-family:'Galgo',sans-serif;
    font-size:60px;
    line-height:1;
    color:#7b4a80;
    transition:transform 0.2s ease;
}
.bhtx-account-menu-profile:hover .bhtx-account-menu-initials { transform:scale(1.05); }
.bhtx-account-menu-profile-label,
.bhtx-account-menu .bhtx-account-menu-logout {
    font-family:'Manrope',sans-serif;
    font-weight:800;
    font-size:14px;
    letter-spacing:0.02em;
    text-transform:uppercase;
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:0.25em;
}
.bhtx-account-menu-profile-label { margin-top:12px; color:#fff; }
.bhtx-account-menu .bhtx-account-menu-logout { margin-top:28px; color:#efc8ef !important; }
.bhtx-account-menu .bhtx-account-menu-logout:hover { color:#E1FF2C !important; }

body.bhtx-login-open { overflow:hidden; }

/* Phone header: a copy of the initials beside the hamburger
   (sx-account-nav.js), replacing the one inside the menu. */
#navigation.bht-nav-v2 .bht-nav-initials-m { display:none; }

@media (max-width:768px) {
    #navigation.bht-nav-v2 .bht-nav-initials-m {
        display:flex;
        align-items:center;
        justify-content:center;
        width:40px;
        height:40px;
        margin:0 12px 0 auto;
        padding-top:3px;
        border-radius:50%;
        background:#3b1a3f;
        box-sizing:border-box;
        color:#efc8ef !important;
        font-family:'Galgo',sans-serif;
        font-size:30px;
        line-height:1;
        letter-spacing:0.02em;
        text-decoration:none !important;
        text-transform:uppercase;
    }
    #navigation.bht-nav-v2 .bht-nav-initials-m + .bht-nav-burger { margin-left:0; }
    #navigation.bht-nav-v2 #nav ul li.bht-nav-account--moved { display:none !important; }
}

@media (max-width:768px) {
    #navigation.bht-nav-v2 #nav ul li.bht-nav-account { justify-content:center; }
    .bhtx-login-modal { padding:12px; }
    .bhtx-login-modal-panel { grid-template-columns:1fr; gap:28px; padding:56px 24px 32px; }
    .bhtx-login-modal-logo { width:48px; margin-bottom:18px; }
    .bhtx-login-modal .bhtx-login-modal-title { font-size:22px !important; margin-bottom:16px; }
    .bhtx-account-menu { padding:12px; justify-content:center; }
    .bhtx-account-menu-panel { max-width:none; min-height:calc(100vh - 24px); max-height:calc(100vh - 24px); padding:28px 24px 48px; }
    .bhtx-account-menu .bhtx-account-menu-links { margin-top:56px; }
    .bhtx-account-menu .bhtx-account-menu-links a { font-size:26px; }
}
