/*
 * Accessibility fixes, loaded after style.css.
 *
 * Kept as plain CSS (not SCSS) because library/css/style.css no longer matches
 * what the SCSS sources compile to, so a rebuild would change unrelated styles.
 */

/* Visible keyboard focus. !important overrides the theme/Foundation rules that set
   outline:none (including a buggy selector that removes it from every button). The
   white + dark ring stays visible on both light and dark backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.flickity-enabled:focus-visible,
.flickity-button:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 0 !important;
	box-shadow: 0 0 0 4px #1a1a1a !important;
}

/* Skip-link targets get programmatic focus only; no ring needed. */
[tabindex="-1"]:focus {
	outline: none;
}

/* Reset native button styling on controls that used to be spans/divs/imgs. */
.searchTog,
.arrow-button,
#slideshow-wrapper button.cycle-prev,
#slideshow-wrapper button.cycle-next {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.searchTog,
.arrow-button {
	background: none;
	padding: 0;
	line-height: 0;
}

.searchTog {
	margin-left: 20px;
	vertical-align: middle;
}

#footer-gallery-wrapper #footer-gallery button#gallery-next {
	right: -5px;
	left: auto;
}

/* Mobile search field (id changed from the duplicated #search). */
#mobile-menu #mobile-search input#mobile-search-input {
	height: 38px;
	border-radius: 10px;
	width: 85%;
	max-width: 80%;
}

/* Pause/play controls for auto-advancing carousels (WCAG 2.2.2). */
.cycle-toggle,
.carousel-toggle {
	display: inline-block;
	border: 0;
	border-radius: 3px;
	padding: 4px 10px;
	background: #545a5f;
	color: #fff;
	font-family: 'Raleway', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

#slideshow-wrapper .cycle-toggle {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 103;
}

#image-gallery-wrapper .cycle-toggle {
	margin-top: 8px;
}

.testimonial-carousel-toggle {
	display: block;
	margin: 10px auto 0;
}

/* Mobile accordion toggle inside the menu panel headings. */
#sub-page-menu-wrapper .accordion-toggle {
	cursor: pointer;
}

/* Pagination is wrapped in a <nav> landmark; keep the list as the layout box. */
.pagination-nav {
	display: contents;
}
