#menu-wrapper:has(.has-menu-drawer) {
    height: auto;
    background: #fff;
}
#menu.has-menu-drawer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    height: auto;
    width: calc(100% - 32px);
    max-width: 1160px;
    margin: 0 auto;
}
#menu.has-menu-drawer > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
    flex-wrap: wrap;
}
#menu.has-menu-drawer > ul a { color: #334155; }
#menu.has-menu-drawer > .menu-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}
#menu .menu-brand img { display: block; }
#menu .menu-toggle { display: none; }
#site-menu-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    box-sizing: border-box;
    width: min(280px, 82vw);
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    border: 0;
    background: #fff;
    color: #243752;
    box-shadow: 4px 0 24px rgb(22 40 66 / 12%);
}
#site-menu-drawer::backdrop { background: rgb(20 33 52 / 28%); }
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    #site-menu-drawer {
        transform: translateX(-100%);
        transition: transform 220ms ease-out, display 220ms allow-discrete,
                    overlay 220ms allow-discrete;
    }
    #site-menu-drawer[open] { transform: translateX(0); }
    #site-menu-drawer::backdrop {
        opacity: 0;
        transition: opacity 220ms ease-out, display 220ms allow-discrete,
                    overlay 220ms allow-discrete;
    }
    #site-menu-drawer[open]::backdrop { opacity: 1; }
    @starting-style {
        #site-menu-drawer[open] { transform: translateX(-100%); }
        #site-menu-drawer[open]::backdrop { opacity: 0; }
    }
}
body:has(#site-menu-drawer[open]) { overflow: hidden; }
#site-menu-drawer nav { display: grid; gap: 4px; }
#site-menu-drawer a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
#site-menu-drawer a:is(:hover, :focus-visible, [aria-current="page"]) {
    color: #2459ac;
    background: #edf3fd;
}
#site-menu-drawer .drawer-close, #menu .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #edf2f8;
    color: #233956;
    cursor: pointer;
}
#site-menu-drawer .drawer-close {
    display: block;
    margin: 0 0 8px auto;
    font-size: 24px;
    line-height: 1;
}
@media (max-width: 767.98px) {
    #menu.has-menu-drawer > ul { display: none !important; }
    #menu .menu-toggle {
        display: grid;
        place-items: center;
        background: transparent;
        -webkit-tap-highlight-color: transparent;
    }
    #menu .menu-toggle span {
        width: 18px;
        height: 3px;
        border-radius: 2px;
        background: currentColor;
        box-shadow: 0 -6px currentColor, 0 6px currentColor;
    }
}
