/*
 * Upcuan v1.0.0.16
 * Desktop primary nav parent-state cleanup.
 * OJS/core styles may paint the LI (not only the anchor) while a submenu is
 * hovered or focused. Keep the entire primary menu surface transparent.
 */

@media (min-width: 992px) {
  #header.upc-header .pkp_navigation_primary > li,
  #header.upc-header .pkp_navigation_primary > li:hover,
  #header.upc-header .pkp_navigation_primary > li:focus,
  #header.upc-header .pkp_navigation_primary > li:focus-within,
  #header.upc-header .pkp_navigation_primary > li.current,
  #header.upc-header .pkp_navigation_primary > li.has-submenu,
  #header.upc-header .pkp_navigation_primary > li.has-submenu:hover,
  #header.upc-header .pkp_navigation_primary > li.has-submenu:focus-within {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }

  #header.upc-header .pkp_navigation_primary > li > a,
  #header.upc-header .pkp_navigation_primary > li:hover > a,
  #header.upc-header .pkp_navigation_primary > li:focus-within > a,
  #header.upc-header .pkp_navigation_primary > li.current > a,
  #header.upc-header .pkp_navigation_primary > li.has-submenu:hover > a,
  #header.upc-header .pkp_navigation_primary > li.has-submenu:focus-within > a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  /* Neutralize decorative layers from parent/core themes without removing
     the small submenu arrow itself. */
  #header.upc-header .pkp_navigation_primary > li::before,
  #header.upc-header .pkp_navigation_primary > li:hover::before,
  #header.upc-header .pkp_navigation_primary > li:focus-within::before,
  #header.upc-header .pkp_navigation_primary > li::after,
  #header.upc-header .pkp_navigation_primary > li:hover::after,
  #header.upc-header .pkp_navigation_primary > li:focus-within::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}
