/**
 * WY Accessibility Fixes - front-end styles
 *
 * Deliberately minimal. The plugin's job is accessible names, not restyling
 * the site, so this file only supplies the utility class used by injected
 * labels and restores a visible focus ring on controls that suppress it.
 */

/* Utility for any label the plugin injects into the DOM. */
.wy-a11y-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* WCAG 2.4.7 - FacetWP controls inherit outline:none from some themes. */
.facetwp-facet select:focus-visible,
.facetwp-facet input:focus-visible,
.facetwp-facet button:focus-visible,
.facetwp-facet a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/*
 * Links the plugin removes from the accessibility tree are decorative
 * duplicates. Make sure they cannot receive focus visually either.
 */
a[aria-hidden="true"][tabindex="-1"]:focus {
	outline: none;
}
