/**
 * Focus styles, site-wide (see inc/focus-styles.php).
 *
 * Pointer use (click / tap): no outline or focus ring on anything. !important because the
 * theme, Elementor, Search & Filter and The Events Calendar each set their own, often with
 * IDs or high specificity. Text fields keep their own border colour change on focus (that is
 * part of their design), only the outline is removed.
 */

html:not(.acsa-keyboard-focus) *:focus,
html:not(.acsa-keyboard-focus) *:focus-visible,
html:not(.acsa-keyboard-focus) *:focus-within {
	outline: none !important;
}

/* Focus rings drawn with box-shadow (buttons, checkboxes, chips, dropdowns, links). */
html:not(.acsa-keyboard-focus) a:focus,
html:not(.acsa-keyboard-focus) button:focus,
html:not(.acsa-keyboard-focus) summary:focus,
html:not(.acsa-keyboard-focus) [role="button"]:focus,
html:not(.acsa-keyboard-focus) [role="checkbox"]:focus,
html:not(.acsa-keyboard-focus) [role="option"]:focus,
html:not(.acsa-keyboard-focus) [role="combobox"]:focus,
html:not(.acsa-keyboard-focus) [tabindex]:focus,
html:not(.acsa-keyboard-focus) input[type="checkbox"]:focus,
html:not(.acsa-keyboard-focus) input[type="radio"]:focus {
	box-shadow: none !important;
}

/* Keyboard navigation: one consistent slim navy outline, for elements that have focus. */
html.acsa-keyboard-focus *:focus-visible {
	outline: 2px solid var(--Dark-blue, #172849) !important;
	outline-offset: 2px !important;
}
