/* Mobile overlays must not inherit desktop grid placement. Anchor them to
   the entire header, not the narrow menu-button column. */
@media (max-width:1050px) {
    body.vm-wordpress .vm-native-header.vm-header { position: relative; overflow: visible; }
    body.vm-wordpress .vm-native-header .vm-native-header-row,
    body.vm-wordpress .vm-native-header .vm-header-actions,
    body.vm-wordpress .vm-native-header .vm-account-menu { position: static; overflow: visible; }
    body.vm-wordpress .vm-native-header .vm-native-header-row :is(.vm-nav-links,.vm-account-panel,.vm-menu-scrim) {
        grid-area: auto !important;
        position: absolute;
        inset: 100% 0 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        margin: 0;
    }
    body.vm-wordpress .vm-native-header .vm-native-header-row :is(.vm-nav-links,.vm-account-panel) {
        max-height: calc(100vh - var(--vm-header-height,64px) - 24px);
        max-height: calc(100dvh - var(--vm-header-height,64px) - 24px - env(safe-area-inset-bottom,0px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 3;
    }
    body.admin-bar.vm-wordpress .vm-native-header .vm-native-header-row :is(.vm-nav-links,.vm-account-panel) {
        max-height: calc(100dvh - var(--vm-header-height,64px) - 70px - env(safe-area-inset-bottom,0px));
    }
    body.vm-wordpress .vm-native-header .vm-nav-links :is(a,summary,.vm-subheading) {
        white-space: normal;
        overflow-wrap: anywhere;
        min-width: 0;
    }
    body.vm-wordpress .vm-native-header .vm-menu-group > summary::after { flex: 0 0 auto; }
    body.vm-wordpress .vm-native-header .vm-nav-links .vm-dropdown { box-sizing: border-box; max-width: 100%; min-width: 0; }
}
