/* VF3-P02.1 | Repair desktop navigation visibility after P02 legacy cleanup.
   Purpose: keep header main row palette consistent with Admin settings.
   Scope: public Auto Master desktop only. No admin, mobile, article/body changes. */
@media (min-width: 992px) {
  /* Main-row palette is sourced from Admin settings, not from the retired P01 white theme. */
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top.header-wow-top-active {
    background: var(--vf3-admin-top-bg, #2879B7) !important;
    background-color: var(--vf3-admin-top-bg, #2879B7) !important;
    background-image: none !important;
    color: var(--vf3-admin-top-text, #ffffff) !important;
    border-color: transparent !important;
  }

  /* Safeguard against legacy row visibility/layout rules. */
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .vf3-single-toprow {
    display: grid !important;
    grid-template-columns: minmax(180px, 265px) minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 54px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .h-logo,
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .h-logo .vf3-brand-text {
    color: var(--vf3-admin-top-text, #ffffff) !important;
    -webkit-text-fill-color: var(--vf3-admin-top-text, #ffffff) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .vf3-logo-text-only .vf3-brand-text,
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .vf3-logo-image-broken .vf3-brand-text {
    display: block !important;
  }
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .header-wow-top-list > a,
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .header-wow-top-list > a:not(:hover) :is(i, span, svg),
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .vf3-p124-menu-holder .vf3-p124-menu-toggle:not(:hover):not(:focus-visible):not([aria-expanded="true"]),
  html body.auto-master #auto-global-navbar-root .header-wow.vf3-energy-header
  .header-wow-top .vf3-p124-menu-holder .vf3-p124-menu-toggle:not(:hover):not(:focus-visible):not([aria-expanded="true"]) i {
    color: var(--vf3-admin-top-text, #ffffff) !important;
    -webkit-text-fill-color: var(--vf3-admin-top-text, #ffffff) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* Keep existing P09 gold hover and P124 dropdown behavior. */
}
