/*
 * Base hover-dropdown mechanics for .nice-menu, ported from the Drupal 7
 * "Nice menus" module (sites/all/modules/nice_menus/css/nice_menus.css),
 * which has no Drupal 8+ release. style.css only carries this site's visual
 * overrides (colors, spacing, arrows) and assumes this base is already
 * loaded, same as it was by the module in Drupal 7.
 */
ul.nice-menu,
ul.nice-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.nice-menu li {
  position: relative;
}

ul.nice-menu a {
  display: block;
}

ul.nice-menu ul {
  position: absolute;
  visibility: hidden;
  z-index: 500;
}

ul.nice-menu li:hover > ul {
  visibility: visible;
}

/*
 * Desktop dropdowns are wider than the gap between top-level items, so fast
 * mouse movement between adjacent items can briefly satisfy :hover on both
 * at once (both stay open/overlap until the browser catches up). js/custom.js
 * adds .menu-force-hide to every sibling the instant a new item is entered,
 * to close the previous one immediately regardless of any lingering :hover.
 */
@media (min-width: 992px) {
  ul.nice-menu li.menu-force-hide > ul {
    visibility: hidden !important;
    display: none;
  }
}
