/* Accessibility remediation styles for mirrored Elementor pages (injected by the
   catch-all mirror route alongside a11y-mirror.js — mirror pages only). */

/* Skip link ("דילוג לתוכן") — visually hidden until keyboard focus, RTL placement. */
.a11y-skip {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 100000;
  padding: 10px 18px;
  background: #1a4fa0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  /* off-screen + clipped until focused */
  transform: translateY(-200%);
  clip-path: inset(50%);
  white-space: nowrap;
}
.a11y-skip:focus,
.a11y-skip:focus-visible {
  transform: none;
  clip-path: none;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #1a4fa0;
}

/* Visible keyboard focus everywhere. :where() keeps selector specificity at just the
   pseudo-class, so any intentional site focus styling still wins. */
:where(a, button, input, select, textarea, summary,
       [tabindex], [role="button"], [role="tab"], [role="link"]):focus-visible {
  outline: 3px solid #1a4fa0;
  outline-offset: 2px;
}

/* Header dropdowns on mirrored pages: open on HOVER and on keyboard focus.
   On the live WP site these submenus were opened by jQuery + SmartMenus, which the mirror
   does not load (no jQuery, no elementorFrontend) — Elementor's own CSS only ever says
   `display: none`. So hovering did nothing, and the only thing that revealed a submenu was
   the :focus-within rule firing on mousedown: it flashed for an instant and then the click
   navigated to the parent page. These rules restore the hover behavior in pure CSS.
   Elementor already gives the submenu `position: absolute` inside a `position: relative`
   parent item, so no JS is needed to place it.
   !important beats both Elementor's display:none and any leftover smartmenus inline style. */
/* `.anb-submenu-open` is set by a11y-mirror.js with a close delay: Elementor leaves a
   transparent margin-top (10-23px) between the item and its dropdown, so plain :hover drops
   the menu as soon as the pointer enters that gap and the submenu can never be reached. */
.elementor-nav-menu--main .menu-item-has-children:hover > ul.sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > ul.sub-menu,
.elementor-nav-menu--main .menu-item-has-children.anb-submenu-open > ul.sub-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}
/* SmartMenus also sized each dropdown to its widest label; without it the theme's fixed
   width clips the longer ones (e.g. "אתגר ההורות + מאסטרקלאס הורות" at nowrap). */
.elementor-nav-menu--main .menu-item-has-children > ul.sub-menu {
  width: auto !important;
  min-width: max-content !important;
}
/* The hover rules are desktop-only by nature: the mobile copy of the menu lives in a
   hidden nav that :hover never matches, and the toggle menu keeps its own expanded layout. */

/* WooCommerce struck-through "was" prices: theme grey fails AA contrast on the white cards */
del .woocommerce-Price-amount, del .woocommerce-Price-amount bdi { color: #595959 !important; }
/* WooCommerce sale prices: theme gold fails AA on white — darker gold, same hue */
ins .woocommerce-Price-amount, ins .woocommerce-Price-amount bdi { color: #8a661a !important; }
/* prices inside jet-listing cards (text-editor widgets, no ins/del wrapper): same gold-on-white failure */
[data-elementor-type="jet-listing-items"] .woocommerce-Price-amount { color: #8a661a !important; }
