/* biome-ignore-all lint/complexity/noImportantStyles: override native navigation breakpoint styles and baseline icon visibility, which also use !important */

/* Measure the complete desktop row synchronously, including theme effects and loaded fonts.
 * These styles are removed before the browser paints; the real navigation is never cloned. */
.nova-header-measuring > .wp-block-group {
    flex-shrink: 0;
}

.nova-header-measuring .nova-header-title {
    white-space: nowrap;
}

.nova-header-measuring .nova-header-nav .wp-block-navigation__responsive-container {
    display: block !important;
    position: static !important;
    width: max-content;
}

.nova-header-measuring .wp-block-navigation__responsive-container-open {
    display: none !important;
}

.nova-header-measuring .wp-block-navigation__submenu-container,
.nova-header-measuring .nova-menu-spotlight {
    display: none !important;
}

.nova-header-measuring .wp-block-navigation__responsive-container-content,
.nova-header-measuring .wp-block-navigation__container {
    flex-wrap: nowrap !important;
    width: max-content;
}

.nova-header-measuring .nova-header-icons {
    display: flex !important;
}

.nova-header-measuring .nova-header-search,
.nova-header-measuring .nova-header-mobile-link {
    display: none !important;
}

/* Keep the native WordPress overlay, keyboard handling and focus restoration. Override its
 * viewport breakpoint only when this particular header cannot fit its desktop navigation. */
.nova-header-nav.is-nova-compact .wp-block-navigation__responsive-container-open {
    display: flex !important;
}

.nova-header-nav.is-nova-compact .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
}

.nova-header-nav.is-nova-compact .nova-header-icons,
.nova-header-nav.is-nova-compact .nova-menu-spotlight {
    display: none !important;
}

.nova-header-nav.is-nova-compact .nova-header-search {
    display: block !important;
}

.nova-header-nav.is-nova-compact .nova-header-mobile-link {
    display: list-item !important;
}
