/**
 * Global Canonical focus-visible presentation owner.
 * Astra and native controls retain all markup, focus order and behavior.
 */

:where(
  #ast-mobile-header .menu-toggle,
  #ast-desktop-header .main-navigation .menu-link,
  #ast-mobile-header .main-navigation .menu-link,
  [data-cj-local-nav="ready"] a,
  .cj-button,
  .wp-block-button__link,
  .cj-link,
  summary,
  button,
  input,
  select,
  textarea
):focus-visible {
  outline: 2px solid var(--cj-color-focus, #005fcc);
  outline-offset: 3px;
  text-decoration-skip-ink: auto;
}

:where(
  #ast-mobile-header .menu-toggle,
  #ast-desktop-header .main-navigation .menu-link,
  #ast-mobile-header .main-navigation .menu-link,
  [data-cj-local-nav="ready"] a,
  .cj-button,
  .wp-block-button__link,
  .cj-link,
  summary,
  button,
  input,
  select,
  textarea
):focus:not(:focus-visible) {
  outline: none;
}

#ast-mobile-header .menu-toggle:focus-visible,
#ast-desktop-header .main-navigation .menu-link:focus-visible,
#ast-mobile-header .main-navigation .menu-link:focus-visible,
[data-cj-local-nav="ready"] a:focus-visible {
  outline-color: var(--cj-color-white, #fff);
}

#ast-mobile-header .menu-toggle:focus-visible {
  border-color: transparent;
  border-style: solid;
}
