/* ---------------------------------------------------------------------------
   DEV-327 (EAA) — keyboard focus indicator.

   WCAG 2.4.7 wants focus to be visible; 1.4.11 wants the indicator itself to
   clear 3:1 against its surroundings. Neither theme met that on its own:

     * Metronic 8 (assets810) replaces the native outline on .btn:focus-visible
       with "0 0 0 .25rem rgba(<button hue>, .5)". On the checkout's primary
       button that ring measures about 1.7:1 — present, but far under the bar.
     * Metronic 6 (assets618) ships a single :focus-visible rule, and it is only
       the [tabindex="-1"] reset. Links, inputs and non-.btn controls get nothing.

   #0A3D91 is 9.4:1 on white and clears 3:1 against every button background in
   the audit, including the darkened replacements. `outline` sits outside the box
   model, so adding it shifts no layout. :focus-visible (not :focus) keeps mouse
   clicks clean.

   Loaded from Metronic8/common/head.cshtml, Metronic6/common/head.cshtml,
   Event2.Master, WebPage2.Master and Xpider.Master.

   Caveat: a single dark ring assumes a light surface, which holds across
   Eventora today. A dark panel would need a scoped override with a light ring.
   --------------------------------------------------------------------------- */

:focus-visible {
    outline: 3px solid #0A3D91;
    outline-offset: 2px;
}

/* The vendor rules above are more specific than a bare :focus-visible, so the
   controls they style need naming explicitly. Their translucent shadow is left
   in place as a secondary cue. */
.btn:focus-visible,
.btn-check:focus-visible + .btn,
.page-link:focus-visible,
.paginate_button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.kt-menu__link:focus-visible,
.menu-link:focus-visible {
    outline: 3px solid #0A3D91;
    outline-offset: 2px;
}

/* Metronic 8 hides the outline on mouse-driven focus via
   button:focus:not(:focus-visible) { outline: 0 }, which is correct and stays. */

@media (forced-colors: active) {
    /* In forced-colors mode the ring must follow the user's own palette. */
    :focus-visible,
    .btn:focus-visible,
    .form-control:focus-visible {
        outline-color: Highlight;
    }
}
