/*
 * Widget Accesibilitate – reguli aplicate paginii.
 * Fiecare instrument pune o clasă pe <html>; interfața widgetului stă în
 * Shadow DOM (#wacc-root), așa că regulile de aici nu o ating.
 */

:root {
	--wacc-readable: "Atkinson Hyperlegible", Verdana, Tahoma, "DejaVu Sans", "Segoe UI", Arial, sans-serif;
}

/* Sari la conținut ------------------------------------------------------- */
.wacc-skip-link {
	position: fixed !important;
	top: 12px !important;
	left: 12px !important;
	z-index: 2147483647 !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 14px 22px !important;
	background: var(--wacc-primary, #051a53) !important;
	border-left: 5px solid var(--wacc-accent, #d82221) !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3) !important;
	color: #fff !important;
	font: 700 16px/1.2 var(--wacc-font, sans-serif) !important;
	text-decoration: none !important;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-200%);
}

.wacc-skip-link:focus {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	outline: 3px solid #fff !important;
	outline-offset: 2px !important;
}

/* Aliniere text -------------------------------------------------------- */
html.wacc-align-left body *:not(#wacc-root) {
	text-align: left !important;
}

html.wacc-align-right body *:not(#wacc-root) {
	text-align: right !important;
}

/* Font lizibil (iconițele din fonturi își păstrează fontul) ------------ */
html.wacc-readable body,
html.wacc-readable body *:not(#wacc-root):not(i):not(svg):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]):not([class^="eicon"]):not([class*=" eicon"]):not([class^="flaticon"]):not([class*=" flaticon"]):not([class^="ovaicon"]):not([class*=" ovaicon"]):not([class^="dashicons"]):not([class*=" dashicons"]):not([class^="icon-"]):not([class*=" icon-"]):not([class^="ti-"]):not([class*=" ti-"]):not([class^="revicon"]):not([class*=" revicon"]):not([class*="material-icons"]):not([class*="material-symbols"]) {
	font-family: var(--wacc-readable) !important;
}

/* Contrast ------------------------------------------------------------- */
html.wacc-contrast-dark,
html.wacc-contrast-dark body,
html.wacc-contrast-dark body *:not(#wacc-root) {
	background-color: #18181b !important;
	background-image: none !important;
	border-color: #52525b !important;
	box-shadow: none !important;
	color: #fafafa !important;
	text-shadow: none !important;
}

html.wacc-contrast-dark body a[href]:not(#wacc-root),
html.wacc-contrast-dark body a[href] *:not(#wacc-root) {
	color: #facc15 !important;
}

html.wacc-contrast-light,
html.wacc-contrast-light body,
html.wacc-contrast-light body *:not(#wacc-root) {
	background-color: #fff !important;
	background-image: none !important;
	border-color: #6b7280 !important;
	box-shadow: none !important;
	color: #000 !important;
	text-shadow: none !important;
}

html.wacc-contrast-light body a[href]:not(#wacc-root),
html.wacc-contrast-light body a[href] *:not(#wacc-root) {
	color: #0000d3 !important;
}

html.wacc-contrast-high,
html.wacc-contrast-high body,
html.wacc-contrast-high body *:not(#wacc-root) {
	background-color: #000 !important;
	background-image: none !important;
	border-color: #fff !important;
	box-shadow: none !important;
	color: #fff !important;
	text-shadow: none !important;
}

html.wacc-contrast-high body a[href]:not(#wacc-root),
html.wacc-contrast-high body a[href] *:not(#wacc-root) {
	color: #ff0 !important;
	text-decoration: underline !important;
}

/* Tonuri de gri ---------------------------------------------------------- */
html.wacc-grayscale {
	filter: grayscale(1) !important;
}

/* Ascunde imaginile -------------------------------------------------------- */
html.wacc-hide-images body img,
html.wacc-hide-images body picture,
html.wacc-hide-images body svg image {
	visibility: hidden !important;
}

/* Oprește animațiile: sar direct la starea finală. Durata e .01ms, nu 0,
   ca evenimentele animationend/transitionend să apară (caruselele Swiper le așteaptă). */
html.wacc-pause,
html.wacc-pause *,
html.wacc-pause *::before,
html.wacc-pause *::after {
	animation-delay: 0s !important;
	animation-duration: 1ms !important;
	animation-iteration-count: 1 !important;
	scroll-behavior: auto !important;
	transition-delay: 0s !important;
	transition-duration: .01ms !important;
}

/* Evidențiază linkurile -------------------------------------------------- */
html.wacc-links body a[href]:not(#wacc-root) {
	background-color: #ff0 !important;
	background-image: none !important;
	color: #000 !important;
	outline: 2px solid #000 !important;
	outline-offset: 2px !important;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
}

html.wacc-links body a[href] *:not(#wacc-root):not(img):not(svg):not(svg *) {
	background-color: transparent !important;
	color: #000 !important;
}

html.wacc-links body a[href]:not(#wacc-root):hover,
html.wacc-links body a[href]:not(#wacc-root):focus {
	background-color: #ffa500 !important;
}

html.wacc-links body a[href]:not(#wacc-root):focus-visible {
	outline-width: 4px !important;
	outline-offset: 3px !important;
}

/* Contur focus ------------------------------------------------------------ */
html.wacc-focus body *:not(#wacc-root):focus,
html.wacc-focus body *:not(#wacc-root):focus-visible,
html.wacc-focus body a[href]:not(#wacc-root):focus,
html.wacc-focus body a[href]:not(#wacc-root):focus-visible {
	box-shadow: 0 0 0 6px #fff !important;
	outline: 3px solid var(--wacc-accent, #d82221) !important;
	outline-offset: 3px !important;
}
