/*
 GUREXA NAVBAR FLASH CLEANUP V1.7
 Prevent legacy dark navbar first-paint / FOUC.
*/

/*
 The canonical navbar is never allowed to inherit the original black styling.
 This rule applies before/after workspace placement.
*/
#gurexa-topnav {
  background: #eaf6ff !important;
  color: #173a5e !important;
  box-shadow: none !important;
  border-top: 0 !important;
  border-bottom: 1px solid #cfe5f7 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/*
 A navbar created by the original script is hidden until the placement layer
 has promoted it to the current workspace navbar. This removes the dark flash.
*/
html:not(.gx-navbar-v17-ready) #gurexa-topnav {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Current navbar becomes visible atomically when V1.7 marks it ready. */
html.gx-navbar-v17-ready #gurexa-topnav {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Never animate opacity/background during initial navbar construction. */
#gurexa-topnav,
#gurexa-topnav * {
  transition-property: color, border-color, transform !important;
}

/* Legacy duplicate layers already identified by previous cleanup passes. */
.gx-legacy-navbar-v16,
.gx-legacy-topbar-v16,
.gx-hidden-legacy-layer-v16,
.gx-empty-top-shell-v16 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Neutralize old fixed-navbar body displacement immediately. */
body.gurexa-has-topnav {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Current intended navbar appearance. */
#gurexa-topnav.gx-workspace-nav {
  position: relative !important;
  inset: auto !important;
  background: #eaf6ff !important;
  color: #173a5e !important;
}
