/*
 * elev8 accessibility overrides
 * Load AFTER css/style.css.
 */

/*
 * Restore keyboard focus indicators.
 *
 * global-style.css strips focus from everything (`*:focus { outline: none; box-shadow: none; border: none }`
 * plus `a:focus, input:focus, button:focus { outline: none }`), and menuzord.css / nice-select.css set
 * `outline: 0` on their own elements. Those rules have mixed specificity, so !important is used here
 * on purpose so one rule wins everywhere.
 *
 * :focus-visible only matches keyboard (and programmatic) focus, so mouse clicks don't show a ring.
 *
 * Two-tone ring: the white box-shadow fills the 2px gap and the navy outline sits outside it,
 * so it stays visible on white sections, the navy topbar, and the dark hero overlays.
 */
:focus-visible {
    outline: 2px solid #023c64 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px #fff !important;
}

/* Form fields: keep the ring tight to the field instead of floating off it */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-offset: 0 !important;
    box-shadow: 0 0 0 4px rgba(0, 119, 168, 0.25) !important;
}

/* Text inputs match :focus-visible on mouse click too (per spec), which is fine - users need to see where they're typing */


.content a {
    color: #0077a8;
    text-decoration: underline;
}