/*
 * Eden inK Site Kit - a11y_focus: a keyboard focus ring on every focusable element.
 * :focus-visible matches keyboard focus on links and buttons, so a mouse click on them looks as before. Browsers also
 * match it when a text field (input, textarea, select, an editable area) is clicked, so fields show the ring on click.
 * A dark 3px outline stays visible on light backgrounds; links and buttons also get a 2px white gap, so the ring
 * stands out on dark backgrounds too (contrast 3:1 or more). Form fields get the outline only and keep the theme's
 * own shadows. This switch exists to override the theme (many themes remove outlines), hence the !important.
 */
:focus-visible {
	outline: 3px solid #1a1a1a !important;
	outline-offset: 2px !important;
}

:focus-visible:not(input):not(textarea):not(select):not([contenteditable]) {
	box-shadow: 0 0 0 2px #fff !important;
}

/* The skip-link target gets focus from a script; it needs no ring of its own. */
.eik-a11y-target:focus,
.eik-a11y-target:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
