/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

/**
 * Text meant only for screen readers.
 * Re: word-wrap: Many screen reader and browser combinations announce broken
 * words as they would appear visually.
 */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/**
 * Universal keyboard focus indicator.
 *
 * Why: WCAG 2.1 SC 2.4.7 — focus must be visible for keyboard users. We use
 * :focus-visible so mouse clicks don't show the ring (preserving the original
 * design intent), while Tab/arrow-key focus always shows a brand-blue ring.
 * !important is required to win over higher-specificity default-state rules
 * such as `body.buddypress button { outline: 0 }` that suppress focus rings.
 */
:focus-visible {
	outline: 2px solid #2271b1 !important;
	outline-offset: 2px !important;
}
