/* =========================================================
   Jowybean Accessibility - Focus Highlight
   ========================================================= */

/*
 * Enhanced keyboard focus.
 *
 * :focus-visible keeps this primarily associated with
 * keyboard navigation instead of ordinary mouse clicks.
 */
html.a11y-focus-highlight
:is(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex],
    [role="button"],
    [role="link"]
):focus-visible {
    outline: 4px solid #ffbf00 !important;
    outline-offset: 4px !important;

    box-shadow:
        0 0 0 2px #000000,
        0 0 0 7px #ffbf00 !important;
}


/*
 * High Contrast compatibility.
 *
 * Use the established yellow/black high-contrast palette.
 */
html.a11y-high-contrast.a11y-focus-highlight
:is(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex],
    [role="button"],
    [role="link"]
):focus-visible {
    outline-color: #ffff00 !important;

    box-shadow:
        0 0 0 2px #000000,
        0 0 0 7px #ffff00 !important;
}