/*
 * A dark ring with a white halo stays visible on white, navy, photo, and brand
 * colour backgrounds alike. The .ast-button-wrap .menu-toggle entry lifts the
 * whole list to the specificity of Astra's thin dotted toggle and link rules.
 * Spectra buttons set box-shadow with five or six classes, hence !important.
 */
:is(a, button, input, select, textarea, summary, [tabindex], .ast-button-wrap .menu-toggle):focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
	box-shadow: 0 0 0 8px #fff !important;
}

/* Spectra forms force outline: none !important on focused inputs, so the ring is drawn with shadows. */
.uagb-forms-main-form .uagb-forms-input:focus-visible {
	box-shadow: 0 0 0 3px #1a1a1a, 0 0 0 6px #fff !important;
}

.entry-content :is(p, li, td, dd, figcaption) a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

/*
 * Complianz styles its policy accordions for white pages. On ESN's navy legal
 * pages its stacked translucent white layers wash white text out to 2.3:1. The
 * selectors mirror Complianz's own so these win by load order alone.
 */
#cmplz-document .cmplz-dropdown,
#cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category {
	background-color: rgba(255, 255, 255, 0.06);
}

#cmplz-document .cmplz-dropdown summary,
#cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header {
	background-color: rgba(255, 255, 255, 0.12);
}

#cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-always-active {
	color: #fff;
}

/* The page's Spectra container makes every link white, including those in these white cookie tables. */
#cmplz-document .cookies-per-purpose a {
	color: #2e3192;
}
