/* Parent menu items that lead nowhere.

   About, Sports, Facilities and Venues had no content in the original
   WordPress export - they existed only to carry a dropdown, so clicking one
   landed the visitor on a blank page. Their links now point at "#" and carry
   data-rcbc-nolink.

   This stylesheet stops them behaving like links: no pointer cursor, and on
   desktop no click target at all, so the only thing a click can do is open the
   submenu. They still look exactly like the other menu items.

   Touch devices are the exception: there is no hover, so the tap on the parent
   is what opens the submenu. pointer-events must stay enabled there, and the
   accompanying script cancels the navigation instead. */

.menu-link[data-rcbc-nolink] {
  cursor: default;
}

@media (min-width: 922px) {
  /* Astra's desktop breakpoint. Hover opens the submenu, so the parent link
     itself never needs to receive a click. */
  .menu-link[data-rcbc-nolink] {
    pointer-events: none;
  }

  /* The caret inside the link must stay clickable for keyboard users. */
  .menu-link[data-rcbc-nolink] .dropdown-menu-toggle,
  .menu-link[data-rcbc-nolink] .ast-icon {
    pointer-events: auto;
  }
}
