.screen-reader-text {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	padding: 0;
	margin: -0.0625rem;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus,
.skip-link:focus-visible {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--andromeda-color-surface);
	color: var(--andromeda-color-text);
	border: 0.125rem solid var(--andromeda-focus-color);
	box-shadow: 0 0 0 0.125rem var(--andromeda-color-surface);
}

:focus-visible {
	outline: var(--andromeda-focus-width) solid var(--andromeda-focus-color);
	outline-offset: 0.1875rem;
}

/*
 * Brand-filled controls (B-01, SC 1.4.11): a plain outline over the brand
 * background only reaches ~1.39:1 (light) / ~1.15:1 (dark). The double ring adds
 * a 4px halo in the inverse color, which resolves to #f8fafc in light (5.82:1 vs
 * brand-light) and #111318 in dark (9.60:1 vs brand-dark), so no per-scheme rule
 * is needed (DESIGN.md 10.4).
 */
.site-header__action:focus-visible,
.wp-element-button:focus-visible {
	outline: 0.125rem solid var(--andromeda-focus-color);
	outline-offset: 0.125rem;
	box-shadow: 0 0 0 0.25rem var(--andromeda-color-inverse);
}

[tabindex="-1"]:focus {
	outline: none;
}

:target {
	scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
