/* Hand-written adjustments to the imported WordPress theme CSS. This file sits outside
   public/legacy/ because that tree is regenerated by the import scripts. */

/* Owl carousel v1 hid its container until the plugin initialised it. */
.owl-carousel,
.owl-carousel .owl-wrapper {
  display: block;
}

/* rosie.js added a `no-margin` class to the last visible top-level menu item, which
   drops its trailing margin. On desktop that is the search item; the side-menu item
   already has `margin-right: 0` from the theme. */
@media only screen and (min-width: 1025px) {
  #nav-primary.right > nav > div > ul > li.menu-item-search {
    margin-right: 0 !important;
  }
}

/* The Slider Revolution markup keeps its spacer paragraph, but rs6.css — which the
   rebuild does not load, since the slider itself is reimplemented — is what collapses it. */
.rs-p-wp-fix {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

/* The dc-mega-menu script positioned the dropdown and toggled it on hover. The theme
   CSS hides `.sub-menu` and gives `.sub-container` `position: absolute` but no offset,
   because the script supplied one — so the offset and the reveal are restored here.
   `:focus-within` keeps the dropdown reachable by keyboard, which the script did not. */
#nav-primary > nav > div > ul > li.menu-item-has-children {
  position: relative;
}

#nav-primary > nav > div > ul > li.menu-item-has-children > .sub-container {
  top: 100%;
  left: 0;
  z-index: 100;
}

#nav-primary > nav > div > ul > li.menu-item-has-children:hover > .sub-container > .sub-menu,
#nav-primary > nav > div > ul > li.menu-item-has-children:focus-within > .sub-container > .sub-menu {
  display: block;
}
