.no-scroll { overflow: hidden; }

#header .mob_menu { display: none; padding: 0; background: #fff; }
#header .ml-menu {
    --ml-menu-accent: #1b4ac1;
    --ml-menu-text: #252d3b;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 20px 24px 24px;
    color: var(--ml-menu-text);
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 16px;
    text-align: left;
}
#header .ml-menu-icon {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
#header .ml-menu-account { display: flex; gap: 12px; margin-bottom: 12px; }
#header .ml-menu .ml-account-button {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 10px 8px;
    border: 1.5px solid var(--ml-menu-accent);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
#header .ml-menu .ml-account-primary { background: var(--ml-menu-accent); color: #fff; }
#header .ml-menu .ml-account-secondary { background: #fff; color: var(--ml-menu-accent); }
#header .ml-menu .ml-menu-ai {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ml-menu-accent);
    font-size: 15px;
    font-weight: 700;
}
#header .ml-menu-ai > span { flex: 1; }
#header .ml-menu-group { margin-top: 24px; }
#header .ml-menu h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #697386;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-align: left;
}
#header .mob_menu .ml-menu-list {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
#header .mob_menu .ml-menu-list > li {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    list-style: none;
}
#header .ml-menu .ml-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    min-height: 48px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
    color: var(--ml-menu-text);
    font: inherit;
    line-height: 1.4;
    text-decoration: none;
}
#header .ml-menu-row > .ml-menu-icon { color: #7c8798; width: 18px; height: 18px; }
#header .ml-menu-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
#header .ml-menu-label > .ml-menu-icon { color: #7c8798; }
#header .ml-menu-disclosure > summary { list-style: none; cursor: pointer; }
#header .ml-menu-disclosure > summary::-webkit-details-marker { display: none; }
#header .ml-menu-disclosure[open] > summary { color: var(--ml-menu-accent); }
#header .ml-menu-disclosure[open] > summary > svg { transform: rotate(180deg); }
#header .mob_menu .ml-menu-submenu { padding-left: 16px; border-left: 2px solid #e5ebf8; }
#header .ml-menu-submenu .ml-menu-row { font-size: 15px; }
#header .ml-menu .ml-menu-view-all { color: var(--ml-menu-accent); font-weight: 700; }
#header .ml-menu-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
#header .ml-menu-footer a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #697386; font-size: 15px; }
#header .ml-menu a:hover, #header .ml-menu summary:hover { text-decoration: none; }
#header .ml-menu .ml-account-primary:hover { background: #163eaa; }
#header .ml-menu .ml-account-secondary:hover { background: #f3f6fc; }
#header .ml-menu .ml-menu-row:hover { color: var(--ml-menu-accent); }
/* WCAG 2.2: retain a visible keyboard focus ring in the legacy header. */
#header .ml-menu a:focus-visible, #header .ml-menu summary:focus-visible,
#header #mob_query:focus-visible, #header .search-button:focus-visible {
    outline: 2px solid #1b4ac1 !important;
    outline-offset: 3px;
}
#header #new_search { display: none; }
#header #new_search form { display: flex; }
#header #new_search .search-input {
    flex: 1;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9d0dc;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    font: inherit;
    font-size: 16px;
}
#header #new_search .search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 10px;
    border: 1px solid #1b4ac1;
    border-radius: 0 8px 8px 0;
    background: #1b4ac1;
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 768px) and (max-height: 1024px),
       screen and (max-width: 1024px) and (max-height: 768px) {
    #header #new_search {
        position: absolute;
        top: var(--mobile-search-top, 100%);
        left: 0;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 8px 12px 12px;
        background: #fff;
        z-index: 1002;
    }
    #header .search { display: none !important; }
}

/* Fixed headers need room in the page for the expanded search row. */
body.mobile-search-open { padding-top: calc(var(--mobile-search-page-padding, 0px) + var(--mobile-search-height, 0px)); }
body.mobile-search-inline-open #header { margin-bottom: calc(var(--mobile-search-header-margin, 0px) + var(--mobile-search-height, 0px)); }

/* Keep the page still and the close control visible while the panel scrolls. */
body.mobile-menu-open {
    position: fixed;
    top: var(--mobile-menu-scroll-top, 0px);
    left: 0;
    right: 0;
}
body.mobile-menu-open #header { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; }
body.mobile-menu-open #header .mob_menu {
    position: fixed;
    top: var(--mobile-menu-top, 52px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--mobile-menu-top, 52px));
    height: calc(100dvh - var(--mobile-menu-top, 52px));
    box-sizing: border-box;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #edf0f4;
    background: #fff;
    z-index: 1000;
}
