/* =============================================================================
   ACCESSIBILITY — WCAG 2.1 AA
   ============================================================================= */

/* Focus — 2.4.7 / 2.4.11: visible focus indicator with sufficient contrast */
:focus-visible {
	outline: 2px solid #EA9F2F !important;
	outline-offset: 2px;
}

/* Remove focus ring only for mouse users; keep it for keyboard navigation */
:focus:not(:focus-visible) {
	outline: none;
}

/* Skip link — 2.4.1: bypass blocks of repeated content */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 9999;
	padding: 0.75em 1.25em;
	background: $clr__sec;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: top 0.1s;
}
.skip-link:focus {
	top: 0;
}

/* Screen-reader-only utility — content visible to AT but not visually */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Reduced motion — 2.3.3: respect user preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Links — 1.4.1: underline distinguishes links from surrounding text */
p a,
li a {
	text-decoration: underline;
}
p a:hover,
li a:hover {
	text-decoration: none;
}

/* Form error states — 3.3.1: errors identified in text, not colour alone */
.gfield_error input,
.gfield_error select,
.gfield_error textarea {
	border: 2px solid #c0392b;
}
.gfield_error .validation_message {
	color: #c0392b;
	font-weight: 600;
}

/* High contrast mode — Windows forced colours */
@media (forced-colors: active) {
	:focus-visible {
		outline: 3px solid ButtonText;
	}
	a {
		color: LinkText;
	}
	button,
	input[type="submit"] {
		forced-color-adjust: none;
	}
}
