/* Prevent legacy page headers from flashing or overlapping the unified nav. */
body > header:not(.codex-unified-nav):not([data-codex-unified-nav]),
body > header#main-header,
body > header:has(.nav-container),
body > header:has(.nav-menu),
body > header:has(.nav-logo),
body > nav.fixed:not(.codex-unified-mobile):not(.codex-unified-nav__links),
body > nav[class*="fixed"][class*="top-0"]:not(.codex-unified-mobile):not(.codex-unified-nav__links),
#root > nav.fixed:not(.codex-unified-mobile):not(.codex-unified-nav__links),
#root > header.fixed:not(.codex-unified-nav):not([data-codex-unified-nav]),
#root nav[class*="fixed"][class*="top-0"]:not(.codex-unified-mobile):not(.codex-unified-nav__links),
#root header[class*="fixed"][class*="top-0"]:not(.codex-unified-nav):not([data-codex-unified-nav]),
body > nav#mobile-menu,
body > nav.mobile-menu,
#navbar,
#main-header {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.codex-unified-nav {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
