/*
 * Accessibilitat (Xarxalia, 02/11/2026). Va a part de style.css (compilat amb Tailwind) perquè no cal recompilar-lo.
 * Contrast mínim WCAG AA 4,5:1 per a text normal. Els grisos substituïts mantenen el to de la web.
 */

/* Focus visible amb el teclat: el tema el treia (focus:outline-none) i el navegador no en mostrava cap */
:focus-visible {
	outline: 2px solid #1d4f91 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 5px #fff !important;
	border-radius: 2px;
}

/* Enllaç «Ves al contingut»: amagat fins que rep el focus */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
}
.skip-link:focus {
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	margin: 0;
	padding: 12px 18px;
	background: #2b2b2b;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* Text només per a lectors de pantalla (WordPress el posa, p. ex., al títol de la paginació) */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Botons d'icona del tema (cerca): sense estil de botó del navegador */
button.gcal-icon-btn {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	cursor: pointer;
	display: none;
	line-height: 0;
}
@media (min-width: 1024px) {
	button.gcal-icon-btn { display: inline-flex; }
}

/* Contrast. Molla de pa de Rank Math: #8c8c8c (3,4:1) → #666 (5,7:1) */
.rank-math-breadcrumb a,
.rank-math-breadcrumb .separator {
	color: #666 !important;
}
/* Data de les fitxes del blog sobre #f3f3f3: #838383 (3,4:1) → #5f5f5f (5,7:1) */
.text-\[\#838383\] {
	color: #5f5f5f !important;
}
/* Fletxes de la paginació del blog: #9c9c9c (2,7:1) → #666 */
.page-numbers.prev,
.page-numbers.next {
	color: #666 !important;
}
/* Text gris dels articles i pàgines amb estils en línia: #797979 queda a 4,35:1 en text petit → #666 */
[style*="color:#797979"],
[style*="color: #797979"] {
	color: #666 !important;
}
/* Camps dels formularis: el text escrit era #797979 */
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-checkbox) {
	color: #2b2b2b !important;
}
.wpcf7-form-control::placeholder {
	color: #666 !important;
	opacity: 1;
}

/* Taules amb desplaçament horitzontal (role=region): el focus es veu a dins */
[role="region"][tabindex="0"]:focus-visible {
	outline-offset: -2px !important;
}

/* Moviment reduït: res de transicions ni desplaçament suau */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
