/* NetworkUstad v2 header — single clean layout layer */
#nu-header.nu-header-v2 {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    min-height: 76px;
    border-bottom: 1px solid #e4eaf0 !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 3px 16px rgba(15,23,42,.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
body.admin-bar #nu-header.nu-header-v2 { top: 32px !important; }
#nu-header.nu-header-v2 > .nu-container {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 28px !important;
    box-sizing: border-box !important;
}
#nu-header.nu-header-v2 .nu-header-inner {
    display: grid !important;
    grid-template-columns: 190px minmax(0,1fr) 244px !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
#nu-header.nu-header-v2 .nu-header-brand {
    grid-column: 1;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    width: 100%;
}
#nu-header.nu-header-v2 .nu-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    color: #122235 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
#nu-header.nu-header-v2 .nu-logo-icon {
    display: inline-flex !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    align-items: center;
    justify-content: center;
    border-radius: 11px !important;
    background: #087b78 !important;
    color: #fff !important;
}
#nu-header.nu-header-v2 .nu-logo-copy {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    line-height: 1.08;
}
#nu-header.nu-header-v2 .nu-logo-text {
    display: block !important;
    color: #14263a !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    letter-spacing: -.045em !important;
    line-height: 1.1 !important;
}
#nu-header.nu-header-v2 .nu-logo-text .nu-highlight { color: #087b78 !important; }
#nu-header.nu-header-v2 .nu-logo-tagline {
    display: block !important;
    margin-top: 3px;
    color: #66788a !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    letter-spacing: .015em;
    line-height: 1.2;
}
#nu-header.nu-header-v2 .nu-mobile-toggle { display: none !important; }
#nu-header.nu-header-v2 .nu-nav {
    grid-column: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    max-width: 100%;
    overflow: visible !important;
    white-space: nowrap;
}
#nu-header.nu-header-v2 .nu-nav a {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 8px 6px !important;
    border-radius: 8px !important;
    color: #526275 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}
#nu-header.nu-header-v2 .nu-nav a:hover,
#nu-header.nu-header-v2 .nu-nav a.current {
    background: #eaf5f4 !important;
    color: #08736e !important;
}
#nu-header.nu-header-v2 .nu-header-actions {
    grid-column: 3;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 244px !important;
    min-width: 244px !important;
    max-width: 244px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
#nu-header.nu-header-v2 #nu-search-actions {
    display: flex !important;
    flex: 0 0 38px !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 40px;
}
#nu-header.nu-header-v2 .nu-icon-btn {
    display: inline-flex !important;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 40px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #536579 !important;
    cursor: pointer;
}
#nu-header.nu-header-v2 .nu-icon-btn:hover {
    border-color: #dce9e8 !important;
    background: #eff7f6 !important;
    color: #08736e !important;
}
#nu-header.nu-header-v2 .nu-header-account-list {
    display: flex !important;
    flex: 0 0 150px !important;
    align-items: center !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
#nu-header.nu-header-v2 .nu-header-account-list > .nu-header-account-item {
    display: flex !important;
    flex: 0 0 100% !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#nu-header.nu-header-v2 .nu-header-account-dropdown {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
#nu-header.nu-header-v2 .nu-header-account-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 46px !important;
    padding: 5px 9px 5px 5px !important;
    overflow: hidden !important;
    border: 1px solid #dce7e7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #17344a !important;
    box-sizing: border-box !important;
    cursor: pointer;
    list-style: none;
    text-align: left;
}
#nu-header.nu-header-v2 .nu-header-account-avatar {
    display: inline-flex !important;
    flex: 0 0 34px !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    overflow: hidden;
    border: 2px solid #d7eeeb;
    border-radius: 50%;
    background: #e8f5f3;
}
#nu-header.nu-header-v2 .nu-header-account-avatar img,
#nu-header.nu-header-v2 .nu-header-account-avatar-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 50%;
    object-fit: cover;
}
#nu-header.nu-header-v2 .nu-header-account-trigger-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column;
    gap: 2px;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
    line-height: 1.12;
}
#nu-header.nu-header-v2 .nu-header-account-name,
#nu-header.nu-header-v2 .nu-header-account-trigger-status {
    display: block !important;
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#nu-header.nu-header-v2 .nu-header-account-name {
    color: #17344a !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}
#nu-header.nu-header-v2 .nu-header-account-trigger-status {
    color: #71808c !important;
    font-size: 9px !important;
    font-weight: 650 !important;
}
#nu-header.nu-header-v2 .nu-header-account-chevron { flex: 0 0 8px; }
#nu-header.nu-header-v2 .nu-header-account-panel {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    right: 0 !important;
    z-index: 10030 !important;
    width: 260px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 150px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 10px !important;
    border: 1px solid #e2ebea !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(15,42,55,.18) !important;
}
#nu-header.nu-header-v2 .nu-header-account-dropdown[open] > .nu-header-account-panel { display: block !important; }
#nu-header.nu-header-v2 .nu-header-auth-controls {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    white-space: nowrap;
}
#nu-header.nu-header-v2 .nu-header-auth-controls a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px !important;
    border: 1px solid #08766f !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
#nu-header.nu-header-v2 .nu-header-login-link { background: #fff !important; color: #08736e !important; }
#nu-header.nu-header-v2 .nu-header-signup-link { background: #08736e !important; color: #fff !important; }
#nu-header.nu-header-v2 .nu-search-form {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    right: 154px !important;
    z-index: 10035 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 310px !important;
    max-width: calc(100vw - 32px) !important;
    padding: 8px !important;
    border: 1px solid #e1e9ef !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.16) !important;
}
#nu-header.nu-header-v2 .nu-search-form[style*="display:none"] { display: none !important; }
#nu-header.nu-header-v2 .nu-search-input {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    height: 38px;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
}
#nu-header.nu-header-v2 .nu-search-form .nu-icon-btn { flex: 0 0 36px; }

@media (min-width: 1280px) and (max-width: 1399px) {
    #nu-header.nu-header-v2 .nu-nav a {
        padding-right: 4px !important;
        padding-left: 4px !important;
        font-size: 11px !important;
        letter-spacing: -.025em !important;
    }
}
@media (max-width: 1279px) {
    #nu-header.nu-header-v2 > .nu-container { padding-right: 22px !important; padding-left: 22px !important; }
    #nu-header.nu-header-v2 .nu-header-inner { grid-template-columns: minmax(0,1fr) 244px !important; gap: 12px !important; }
    #nu-header.nu-header-v2 .nu-header-brand { grid-column: 1; }
    #nu-header.nu-header-v2 .nu-nav { display: none !important; }
    #nu-header.nu-header-v2 .nu-mobile-toggle {
        display: inline-flex !important;
        flex: 0 0 38px !important;
        margin: 0 !important;
        background: #f1f5f9 !important;
        color: #23364a !important;
    }
    #nu-header.nu-header-v2 .nu-header-actions { grid-column: 2; }
}
@media (max-width: 767px) {
    body.admin-bar #nu-header.nu-header-v2 { top: 46px !important; }
    #nu-header.nu-header-v2 { min-height: 64px; }
    #nu-header.nu-header-v2 > .nu-container { padding: 0 12px !important; }
    #nu-header.nu-header-v2 .nu-header-inner {
        grid-template-columns: minmax(0,1fr) auto !important;
        gap: 7px !important;
        height: 64px !important;
        min-height: 64px !important;
    }
    #nu-header.nu-header-v2 .nu-header-brand { gap: 6px !important; }
    #nu-header.nu-header-v2 .nu-logo { gap: 7px !important; }
    #nu-header.nu-header-v2 .nu-logo-icon {
        flex-basis: 33px !important;
        width: 33px !important;
        height: 33px !important;
        border-radius: 9px !important;
    }
    #nu-header.nu-header-v2 .nu-logo-text { font-size: 15px !important; }
    #nu-header.nu-header-v2 .nu-logo-tagline { display: none !important; }
    #nu-header.nu-header-v2 .nu-mobile-toggle {
        flex-basis: 34px !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 36px !important;
    }
    #nu-header.nu-header-v2 .nu-header-actions {
        grid-column: 2;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 2px !important;
    }
    #nu-header.nu-header-v2 #nu-search-actions,
    #nu-header.nu-header-v2 .nu-header-actions > #nu-theme-toggle {
        flex-basis: 34px !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 36px !important;
    }
    #nu-header.nu-header-v2 .nu-header-account-list {
        flex-basis: 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        margin-left: 1px !important;
    }
    #nu-header.nu-header-v2 .nu-header-account-trigger {
        justify-content: center !important;
        width: 40px !important;
        min-height: 40px !important;
        padding: 2px !important;
    }
    #nu-header.nu-header-v2 .nu-header-account-avatar {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    #nu-header.nu-header-v2 .nu-header-account-trigger-copy,
    #nu-header.nu-header-v2 .nu-header-account-chevron { display: none !important; }
    #nu-header.nu-header-v2 .nu-header-account-panel { right: 0 !important; width: 250px !important; }
    #nu-header.nu-header-v2 .nu-header-auth-controls { gap: 3px !important; }
    #nu-header.nu-header-v2 .nu-header-auth-controls a {
        min-height: 34px;
        padding: 6px 7px !important;
        font-size: 9px !important;
    }
    #nu-header.nu-header-v2 .nu-header-auth-controls .nu-header-signup-link { display: none !important; }
    #nu-header.nu-header-v2 .nu-search-form { right: 0 !important; width: 280px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #nu-header.nu-header-v2 *,
    #nu-header.nu-header-v2 *::before,
    #nu-header.nu-header-v2 *::after { transition-duration: .01ms !important; }
}

/* Match the site-wide dark theme without reducing header contrast. */
body.nu-dark #nu-header.nu-header-v2 {
    background: rgba(10, 19, 34, .97) !important;
    border-bottom-color: #26374c !important;
}
body.nu-dark #nu-header.nu-header-v2 .nu-logo,
body.nu-dark #nu-header.nu-header-v2 .nu-logo-text { color: #eef5fb !important; }
body.nu-dark #nu-header.nu-header-v2 .nu-logo-tagline { color: #a7b6c8 !important; }
body.nu-dark #nu-header.nu-header-v2 .nu-nav a { color: #c1cede !important; }
body.nu-dark #nu-header.nu-header-v2 .nu-nav a:hover,
body.nu-dark #nu-header.nu-header-v2 .nu-nav a.current {
    background: #183a43 !important;
    color: #7ce0d6 !important;
}
body.nu-dark #nu-header.nu-header-v2 .nu-icon-btn {
    color: #d2deeb !important;
}
body.nu-dark #nu-header.nu-header-v2 .nu-icon-btn:hover {
    border-color: #385367 !important;
    background: #1b3046 !important;
    color: #8ce3dc !important;
}
body.nu-dark #nu-header.nu-header-v2 .nu-header-account-trigger {
    border-color: #3a5064 !important;
    background: #14283d !important;
    color: #eff6ff !important;
}
body.nu-dark #nu-header.nu-header-v2 .nu-header-account-name { color: #f0f6fc !important; }
body.nu-dark #nu-header.nu-header-v2 .nu-header-account-trigger-status { color: #a9bacb !important; }
body.nu-dark #nu-header.nu-header-v2 .nu-header-account-panel,
body.nu-dark #nu-header.nu-header-v2 .nu-search-form {
    border-color: #344a60 !important;
    background: #12243a !important;
    color: #eaf2fb !important;
}
body.nu-dark #nu-header.nu-header-v2 .nu-header-account-panel a { color: #eaf2fb !important; }
body.nu-dark #nu-header.nu-header-v2 .nu-search-input {
    border-color: #3a5064 !important;
    background: #0d1c2e !important;
    color: #eef5fb !important;
}
