/**
 * One visible keyboard focus indicator for the whole site (WCAG 2.2: 2.4.7 Focus
 * Visible, 2.4.11 Focus Not Obscured, 1.4.11 Non-text Contrast).
 *
 * The parent theme's reset, WooCommerce, the header, Slick/Splide and the
 * Elementor kit all set `outline: 0` on links, buttons and fields, so a keyboard
 * user could not see where they were. Rather than hunting each rule, this puts
 * a ring back on everything that receives keyboard focus.
 *
 * - :focus-visible only: mouse and touch clicks keep today's look.
 * - Brand orange #bb531b with a white band inside it: orange is 4.8:1 against
 *   white and 4.4:1 against black, but only 2.7:1 against the dark-brown promo
 *   strip - the white band means the ring always borders white, so it keeps the
 *   3:1 non-text contrast on any background.
 * - !important because the rules it overrides are spread over vendor CSS and
 *   Elementor's generated CSS with every kind of specificity.
 * - `:not(#bf-focus-ring)` matches every element (no element has that id) and
 *   only lends the selector an id's weight: the Allyable widget injects its own
 *   keyboard ring - lime rgb(175,189,34), 2.1:1 on white and 1.5:1 on the
 *   header/footer greys, under the 3:1 minimum - with !important and a long
 *   class selector; this has to outrank it.
 * - tabindex="-1" targets (focused by script, e.g. a dialog's own container or
 *   the main region after a skip link) are left alone.
 */
html:not(#bf-focus-ring) body :focus-visible:not([tabindex="-1"]) {
    outline: 2px solid #bb531b !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px #fff !important;
}

@media (forced-colors: active) {
    html:not(#bf-focus-ring) body :focus-visible:not([tabindex="-1"]) {
        outline-color: Highlight !important;
        box-shadow: none !important;
    }
}
