/* Member account menu: keeps member navigation in the existing public header. */
.main-header .account-menu {
    min-width: 15rem;
    max-width: min(22rem, calc(100vw - 1.25rem));
    max-height: min(75vh, 42rem);
    overflow-y: auto;
    padding: .45rem;
    border: 1px solid #e4e8ee;
    border-radius: .8rem;
    box-shadow: 0 14px 36px rgba(23, 37, 55, .16);
}
.main-header .account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .15rem;
    min-height: 2.55rem;
    border-radius: .45rem;
    padding: .55rem .7rem;
    color: #263548;
    font-weight: 500;
    white-space: normal;
}
.main-header .account-menu .dropdown-item:hover,
.main-header .account-menu .dropdown-item:focus {
    color: #12243a;
    background: #f0f5fb;
}
.main-header .account-menu .dropdown-item.active {
    color: #fff;
    background: #173b64;
}
.main-header .account-menu .dropdown-divider { margin: .35rem .25rem; border-color: #e5e9ef; }
.main-header .account-menu-submenu > .account-submenu-toggle {
    width: 100%;
    justify-content: space-between;
    border: 0;
    text-align: left;
    background: transparent;
}
.main-header .account-submenu-chevron {
    margin-left: auto;
    font-size: .8rem;
    transition: transform .18s ease;
}
.main-header .account-submenu-toggle[aria-expanded="true"] .account-submenu-chevron { transform: rotate(180deg); }
.main-header .account-submenu {
    display: none;
    list-style: none;
    padding: .2rem 0 .2rem .85rem;
    margin: 0 0 .25rem .8rem;
    border-left: 2px solid #e6ebf1;
}
.main-header .account-submenu.show { display: block; }
.main-header .account-submenu .dropdown-item {
    min-height: 2.3rem;
    padding: .45rem .65rem;
    font-size: .94rem;
}
@media (max-width: 991.98px) {
    .main-header .account-menu {
        width: 100%;
        max-width: none;
        max-height: 65vh;
    }
}
