/*
 * Accessibility fixes layered over the compiled style.css, which has no source.
 * Stopgap: carry each rule into the new styles when the front end is rebuilt.
 */

/* Show the page even if JavaScript fails (style.css starts these at opacity 0). */
.hidden-before-load {
	margin-top: 0;
	opacity: 1;
}

/* Reflow at 320px (WCAG 1.4.10): style.css sets min-width: 375px. */
body {
	min-width: 0;
}

/* Visible keyboard focus (WCAG 2.4.7): style.css removes outlines in many places.
   Black and white rings together show on light, dark and photo backgrounds.
   tabindex="-1" is the skip link target, which should not be ringed. */
:focus-visible:not([tabindex="-1"]) {
	box-shadow: 0 0 0 4px #fff !important;
	outline: 2px solid #000 !important;
	outline-offset: 0 !important;
}

/* Contrast (WCAG 1.4.3): footer bottom row was 3.01:1 and 1.73:1. */
.footer__bottom * {
	color: rgba(255, 255, 255, 0.6);
}

.footer__bottom :hover {
	color: #fff;
}

/* Dim only the logo image, not the "Designed by" text with it. */
.footer__dev-logo a {
	opacity: 1;
}

.footer__dev-logo img {
	opacity: 0.6;
}

/* Non-text contrast (WCAG 1.4.11): footer social icons were below 3:1. */
.footer .list-social li a {
	color: rgba(255, 255, 255, 0.6);
}

/* Contrast: card dates and category labels were 2.85:1. */
.text-small-ico,
.card-category__sup,
.list-category-sm li {
	color: rgba(0, 0, 0, 0.6);
}

/* Contrast: unselected tabs (directory, donors). */
.tabs-big li {
	color: rgba(255, 255, 255, 0.85);
}

.tabs-big li.bg-light {
	color: rgba(0, 0, 0, 0.6);
}

.tabs-list li:not(:last-child) {
	color: rgba(0, 0, 0, 0.6);
}

/* Contrast: phone number in the mobile menu was 1.94:1. */
.header .header__bottom__phone .text-phone a,
.header .header__bottom__phone .text-phone i {
	opacity: 1;
}
