/*
 * Accessibility layer — WCAG 2.2 AA (October 2026).
 *
 * Loaded after every other theme stylesheet. Keeps the existing design and
 * adds what keyboard, zoom and reduced-motion users need. (The link gray in
 * style.css also changed, from #878787 to #707070, to reach 4.5:1 on white.)
 */

/* ---------- Native buttons that replaced links/spans: look exactly as before ---------- */
:where(.menu-icon, .searchBTN, .close-btn, .enumenu_ul .arrow) {
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-align: inherit;
	cursor: pointer;
}
.searchBTN img,
.close-btn img {
	display: block;
}
.menu-icon .menu-box {
	display: block;
}
/* Enlarge the hamburger's hit area without moving it (2.5.8 target size). */
.menu-icon .menu-box::before {
	content: "";
	position: absolute;
	inset: -14px -10px;
}

/* ---------- Visible keyboard focus (2.4.7, 2.4.11) ---------- */
:focus-visible {
	outline: 3px solid #0a58ca !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #fff !important;
}
/* Dark backgrounds: white ring. */
.site-footer :focus-visible,
.searchDiv :focus-visible,
.ot-sdk-btn :focus-visible {
	outline-color: #fff !important;
	box-shadow: 0 0 0 2px #1a1a1a !important;
}
/* The hamburger button has no box of its own; ring the icon instead. */
.menu-icon:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.menu-icon:focus-visible .menu-box {
	outline: 3px solid #0a58ca;
	outline-offset: 8px;
}

/* Skip link: high-contrast when it appears. */
.skip-link.screen-reader-text:focus {
	background-color: #fff;
	color: #1a1a1a;
	font-size: 16px;
	font-weight: 700;
	left: 8px;
	top: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Anchors and focused elements land below the fixed header, not under it (2.4.11). */
html {
	scroll-padding-top: calc(var(--csw-header-height, 90px) + 16px);
}

/* Desktop dropdowns open for keyboard users too. */
.enumenu_ul.desk li:focus-within > ul {
	display: block;
}

/* ---------- Reflow at 320 px (1.4.10) ---------- */
/* Long words and addresses in page content wrap instead of widening the page. */
.thecontent,
.entry-content {
	overflow-wrap: break-word;
}
/* Content Views grids pull their rows 50 px past the column; trim the blank overhang on phones. */
.pt-cv-wrapper {
	overflow-x: clip;
}

/* ---------- Target size (2.5.8) ---------- */
/* Widget link lists (news sidebar): give each link a 24px-tall target. */
.widget-area .widget li a {
	display: inline-block;
	padding-top: 3px;
	padding-bottom: 3px;
}
/* Search widget form (news archives): field and icon button at least 24px tall. */
.search-form .search-field,
.search-form .search-submit {
	min-height: 24px;
}
.search-form .search-submit {
	min-width: 24px;
}
/* Smart Slider dots are 10px; space them so each has a 24px target area. */
.n2-ss-control-bullet .n2-bullet {
	margin-left: 7px !important;
	margin-right: 7px !important;
}

/* ---------- Expandable sections in page content (js/general.js adds the buttons) ---------- */
.cpp-expandable-header > .cpp-expandable-toggle {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: inherit;
	cursor: pointer;
}
/*
 * The open/closed arrow moves from the heading into the button so it still floats
 * beside the last line of text. Empty alt text keeps it out of the button's name.
 */
.cpp-expandable-header.has-toggle::after {
	content: none !important;
}
.cpp-expandable-toggle::after {
	content: "\25BC" / "";
	float: right;
}
.cpp-expandable.active .cpp-expandable-toggle::after {
	content: "\25B2" / "";
}

/* ---------- Reduced motion (2.3.3) ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
}
