/*
 * Sitewide keyboard focus indicator (WCAG 2.4.7).
 *
 * Enqueued unconditionally (inc/enqueue.php) so it also covers the Block
 * Builder and Drug Glossary templates, which dequeue the main style.css.
 * Keep in sync with the copy of these rules in global/defaults.scss.
 *
 * Two-tone ring: dark green outline offset from the element, with a white
 * inner ring (box-shadow) filling the gap so the indicator stays visible on
 * both light and dark surfaces (WCAG 1.4.11).
 */
/*
 * De-emphasised supporting text (WCAG 1.4.3). SDS Brown from the brand book's
 * secondary palette, 5.63:1 on the site's warm grey. Defined here because this
 * is the only stylesheet enqueued on every template, so the hand-authored
 * sheets that never compile through style.scss can still reach it.
 * Keep in sync with $muted_text in global/branding.scss.
 */
:root {
	--ms-text-muted: #706146;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 3px solid var(--ms-green, #284227);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}

/*
 * Text available to assistive technology but not shown on screen. Used to give
 * generic link labels ("Read More") their destination without changing the
 * visible button text (WCAG 2.4.4). Lives here because this sheet is the only
 * one enqueued on every template.
 */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/*
 * Gravity Forms validation summary (WCAG 3.3.1). The theme lists the failing
 * fields inside GF's own error container (see inc/filters.php); these rules
 * only make that list readable. Colours come from GF's error palette so the
 * summary matches the per-field messages.
 */
.ms-gf-error-summary {
	margin-top: 0.75rem;
}

.ms-gf-error-summary__intro {
	margin: 0 0 0.35rem;
	font-weight: 600;
}

.ms-gf-error-summary__list {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
}

.ms-gf-error-summary__list li {
	margin-bottom: 0.25rem;
}

.ms-gf-error-summary__list a {
	color: inherit;
	text-decoration: underline;
}
