/* WCAG Assist – tryby nakładane na stronę (klasy na <html>). Panel jest w Shadow DOM (#wa-root) i nie podlega tym regułom. */

/* Kontrast: ciemny */
html.wa-contrast-dark,
html.wa-contrast-dark body,
html.wa-contrast-dark body *:not(#wa-root):not(img):not(video):not(svg):not(svg *) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.wa-contrast-dark body a:not(#wa-root),
html.wa-contrast-dark body a *:not(img):not(svg):not(svg *) { color: #ffeb3b !important; }
html.wa-contrast-dark body svg:not(#wa-root *) { fill: currentColor; }
html.wa-contrast-dark body ::placeholder { color: #ccc !important; opacity: 1; }

/* Kontrast: jasny */
html.wa-contrast-light,
html.wa-contrast-light body,
html.wa-contrast-light body *:not(#wa-root):not(img):not(video):not(svg):not(svg *) {
	background-color: #fff !important;
	background-image: none !important;
	color: #000 !important;
	border-color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.wa-contrast-light body a:not(#wa-root),
html.wa-contrast-light body a *:not(img):not(svg):not(svg *) { color: #0000c8 !important; }
html.wa-contrast-light body ::placeholder { color: #444 !important; opacity: 1; }

/* Kontrast: odcienie szarości (filtr na <html> nie psuje elementów position:fixed) */
html.wa-contrast-mono { filter: grayscale(1); }

/* Czcionki (ikony fontowe są pomijane) */
html.wa-font-readable body *:not(#wa-root):not([class*="icon"]):not([class*="fa-"]):not(.dashicons):not(code):not(pre):not(kbd) {
	font-family: 'WA Atkinson', Verdana, Arial, sans-serif !important;
}
html.wa-font-dyslexia body *:not(#wa-root):not([class*="icon"]):not([class*="fa-"]):not(.dashicons):not(code):not(pre):not(kbd) {
	font-family: 'WA OpenDyslexic', 'Comic Sans MS', Verdana, sans-serif !important;
}

/* Odstępy (wartości ≥ WCAG 1.4.12) */
html.wa-spacing body *:not(#wa-root) {
	line-height: 1.8 !important;
	letter-spacing: .12em !important;
	word-spacing: .16em !important;
}
html.wa-spacing body p:not(#wa-root) { margin-bottom: 2em !important; }

/* Linki */
html.wa-links body a:not(#wa-root) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: .2em !important;
}
html.wa-links body a:not(#wa-root):hover { text-decoration-thickness: 4px !important; }

/* Fokus: dwukolorowy, widoczny na każdym tle */
html.wa-focus body *:focus-visible,
html.wa-focus body *:focus {
	outline: 3px solid #ffbf00 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 6px #000 !important;
}

/* Animacje */
html.wa-motion *:not(#wa-root),
html.wa-motion *::before,
html.wa-motion *::after {
	animation-duration: .01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: .01ms !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

/* Duży kursor */
html.wa-cursor,
html.wa-cursor body * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 27H21l9 15-6 3-9-15-9 9z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.wa-cursor body a, html.wa-cursor body button, html.wa-cursor body [role="button"], html.wa-cursor body label, html.wa-cursor body summary {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 27H21l9 15-6 3-9-15-9 9z' fill='%23ffbf00' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer !important;
}

/* Ukrywanie obrazów */
html.wa-images body img,
html.wa-images body picture,
html.wa-images body video { visibility: hidden !important; }
html.wa-images body *:not(#wa-root) { background-image: none !important; }

@media print {
	#wa-root { display: none !important; }
}
