/* ============ Steadfast Accessibility Adjustments ============ */

.sfa11y,
.sfa11y * {
	box-sizing: border-box;
}

.sfa11y {
	--sfa-blue: #176ff2;
	--sfa-blue-dark: #0d5fd8;
	--sfa-ink: #20293b;
	--sfa-muted: #667085;
	--sfa-line: #e8edf4;
	--sfa-surface: #f1f4f9;
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 2147483000;
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--sfa-ink);
	letter-spacing: normal;
	word-spacing: normal;
	text-align: left;
}

.sfa11y button,
.sfa11y input {
	font: inherit;
	letter-spacing: normal;
}

.sfa11y button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	cursor: pointer;
}

.sfa11y svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.sfa11y [hidden] {
	display: none !important;
}

.sfa11y .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.sfa11y-toggle {
	width: 3.6rem;
	height: 3.6rem;
	display: grid;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--sfa-blue);
	color: #fff;
	box-shadow: 0 6px 22px rgba(11, 45, 99, 0.36);
	transition: transform 150ms ease, background-color 150ms ease;
}

.sfa11y-toggle svg {
	width: 2rem;
	height: 2rem;
}

.sfa11y-toggle:hover {
	background: var(--sfa-blue-dark);
	transform: scale(1.06);
}

.sfa11y-toggle:focus-visible,
.sfa11y button:focus-visible,
.sfa11y input:focus-visible {
	outline: 3px solid #ffcc4d;
	outline-offset: 3px;
}

.sfa11y-overlay {
	position: fixed;
	inset: 0;
	background: rgba(14, 22, 38, 0.42);
	backdrop-filter: blur(1px);
	z-index: 0;
}

.sfa11y-panel {
	position: fixed;
	top: 1.45rem;
	right: 0.75rem;
	bottom: 1.45rem;
	width: min(34.4rem, calc(100vw - 1.5rem));
	display: flex;
	flex-direction: column;
	background: var(--sfa-blue);
	border: 1px solid rgba(255, 255, 255, 0.52);
	border-radius: 1.35rem;
	box-shadow: -12px 10px 50px rgba(12, 31, 68, 0.38);
	overflow: hidden;
	z-index: 1;
}

.sfa11y-panel-scroll {
	min-height: 0;
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--sfa-surface);
	scrollbar-color: #aeb7c7 transparent;
	scrollbar-width: thin;
}

.sfa11y-panel-scroll::-webkit-scrollbar {
	width: 7px;
}

.sfa11y-panel-scroll::-webkit-scrollbar-thumb {
	background: #aeb7c7;
	border-radius: 99px;
}

.sfa11y-hero {
	position: relative;
	padding: 0.8rem 0.9rem 1.85rem;
	background: var(--sfa-blue);
	color: #fff;
}

.sfa11y-topbar {
	min-height: 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sfa11y-close {
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
}

.sfa11y-close:hover {
	transform: rotate(8deg);
}

.sfa11y-language {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	font-size: 0.92rem;
	font-weight: 500;
	text-transform: uppercase;
}

.sfa11y-flag {
	width: 1.05rem;
	height: 1.05rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: repeating-linear-gradient(to bottom, #d94b5c 0 2px, #fff 2px 4px);
	color: #1f4b99;
	font-size: 0.42rem;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 0 2px #fff;
}

.sfa11y-hero h2 {
	margin: 1.05rem 0 1.45rem;
	color: #fff;
	font-family: inherit;
	font-size: clamp(1.4rem, 4.4vw, 1.55rem);
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
}

.sfa11y-hero-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.7rem;
}

.sfa11y-hero-actions button {
	min-width: 0;
	height: 2.15rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0 0.72rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--sfa-blue);
	font-size: 0.91rem;
	white-space: nowrap;
	box-shadow: none;
}

.sfa11y-hero-actions button:hover {
	background: #eef5ff;
	transform: translateY(-1px);
}

.sfa11y-hero-actions svg {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
}

.sfa11y-search {
	height: 2.7rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.65rem;
	margin: 2rem 0 0;
	padding: 0 1.05rem;
	border-radius: 999px;
	background: rgba(3, 70, 179, 0.27);
	color: #fff;
}

.sfa11y-search > svg {
	width: 1.2rem;
	height: 1.2rem;
}

.sfa11y-search input {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font-size: 0.88rem;
}

.sfa11y-search input::placeholder {
	color: rgba(255, 255, 255, 0.95);
	opacity: 1;
}

.sfa11y-content {
	min-height: 100%;
	padding: 1.75rem 0.9rem 1.25rem;
	background: var(--sfa-surface);
}

.sfa11y-card {
	padding: 0.85rem 0.85rem 0;
	border: 1px solid #e4e9f1;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 7px 22px rgba(31, 50, 81, 0.05);
}

.sfa11y-card + .sfa11y-card {
	margin-top: 1.25rem;
}

.sfa11y-card h3 {
	margin: 0 0 0.9rem;
	color: #2c3342;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
}

.sfa11y-profile {
	width: 100%;
	min-height: 4.85rem;
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr) 2.25rem;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0;
	border: 0;
	border-top: 1px solid var(--sfa-line);
	background: transparent;
	color: var(--sfa-ink);
	text-align: left;
	box-shadow: none;
	border-radius: 0;
}

.sfa11y-profile:first-of-type {
	border-top: 0;
}

.sfa11y-profile:hover .sfa11y-profile-copy strong {
	color: var(--sfa-blue-dark);
}

.sfa11y-switch {
	width: 7rem;
	height: 2.35rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	padding: 0.12rem;
	border-radius: 999px;
	background: #f0f4f8;
	color: #253047;
	font-size: 0.72rem;
	font-weight: 600;
	text-align: center;
}

.sfa11y-switch span {
	height: 2.1rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
}

.sfa11y-switch span:first-child {
	background: #fff;
	box-shadow: 0 2px 8px rgba(36, 53, 82, 0.08);
}

.sfa11y-profile.is-active .sfa11y-switch span:first-child {
	background: transparent;
	box-shadow: none;
}

.sfa11y-profile.is-active .sfa11y-switch span:last-child {
	background: var(--sfa-blue);
	color: #fff;
	box-shadow: 0 2px 8px rgba(23, 111, 242, 0.3);
}

.sfa11y-profile-copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.sfa11y-profile-copy strong {
	color: #252d3d;
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.25;
}

.sfa11y-profile-copy small {
	color: var(--sfa-muted);
	font-size: 0.86rem;
	line-height: 1.25;
}

.sfa11y-profile-icon {
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f3f7fa;
	color: #111b29;
}

.sfa11y-profile-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.sfa11y-adjustments {
	padding-bottom: 0.9rem;
}

.sfa11y-actions-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
}

.sfa11y-action {
	min-height: 7.2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.42rem;
	padding: 0.72rem 0.4rem;
	border: 2px solid #e8edf4;
	border-radius: 0.8rem;
	background: #fff;
	color: var(--sfa-ink);
	text-align: center;
	box-shadow: none;
}

.sfa11y-action:hover {
	border-color: #a9c8f7;
	background: #f8fbff;
}

.sfa11y-action.is-active {
	border-color: var(--sfa-blue);
	background: #eef5ff;
	color: #0d5dcf;
}

.sfa11y-action-icon {
	display: grid;
	place-items: center;
	font-size: 1.6rem;
}

.sfa11y-action-icon svg {
	width: 1.65rem;
	height: 1.65rem;
}

.sfa11y-text-icon {
	font-size: 1.15rem;
	font-weight: 700;
}

.sfa11y-action-label {
	color: inherit;
	font-size: 0.79rem;
	font-weight: 600;
	line-height: 1.15;
}

.sfa11y-action-state {
	color: var(--sfa-muted);
	font-size: 0.68rem;
	line-height: 1;
}

.sfa11y-action.is-active .sfa11y-action-state {
	color: #0d5dcf;
}

.sfa11y-no-results {
	margin: 1rem 0;
	padding: 1rem;
	border-radius: 0.75rem;
	background: #fff;
	color: var(--sfa-muted);
	text-align: center;
}

.sfa11y-footer {
	min-height: 2.05rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.2rem;
	padding: 0 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	background: var(--sfa-blue);
	color: #fff;
	font-size: 0.82rem;
	line-height: 1;
	text-align: center;
}

.sfa11y-footer strong {
	font-weight: 700;
}

.sfa11y-footer button {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: inherit;
	box-shadow: none;
}

.sfa11y-footer button:hover {
	text-decoration: underline;
}

.sfa11y-statement-dialog {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1.25rem;
	background: rgba(17, 30, 52, 0.6);
	z-index: 3;
}

.sfa11y-statement-dialog > div {
	position: relative;
	width: min(27rem, 100%);
	padding: 1.65rem;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.sfa11y-statement-dialog h3 {
	margin: 0 2rem 0.75rem 0;
	color: var(--sfa-ink);
	font-family: inherit;
	font-size: 1.25rem;
}

.sfa11y-statement-dialog p {
	margin: 0 0 0.85rem;
	color: #525e71;
	font-size: 0.9rem;
}

.sfa11y-statement-close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #3d4656;
	font-size: 1.75rem;
	line-height: 1;
}

.sfa11y-statement-done {
	min-width: 7rem;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--sfa-blue);
	color: #fff;
	font-weight: 600;
}

body.sfa11y-open {
	overflow: hidden;
}

/* Keep the launcher available without covering mobile footer links. */
@media (max-width: 900px) {
	.sfa11y.is-footer-visible {
		top: 0.7rem;
		bottom: auto;
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-width: 620px) {
	.sfa11y {
		left: 0.75rem;
		bottom: 0.75rem;
	}

	.sfa11y-panel {
		top: 0.7rem;
		right: 0.5rem;
		bottom: 0.7rem;
		width: calc(100vw - 1rem);
		border-radius: 1.15rem;
	}

	.sfa11y-hero {
		padding-inline: 0.72rem;
	}

	.sfa11y-hero-actions {
		gap: 0.4rem;
	}

	.sfa11y-hero-actions button {
		padding-inline: 0.5rem;
		font-size: 0.77rem;
	}

	.sfa11y-profile {
		grid-template-columns: 6rem minmax(0, 1fr) 2.1rem;
		gap: 0.55rem;
	}

	.sfa11y-switch {
		width: 6rem;
	}

	.sfa11y-actions-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sfa11y-footer {
		justify-content: space-between;
		gap: 0.75rem;
		font-size: 0.74rem;
	}
}

@media (max-width: 390px) {
	.sfa11y-hero-actions button span {
		display: none;
	}

	.sfa11y-hero-actions button svg {
		width: 1.15rem;
		height: 1.15rem;
	}

	.sfa11y-profile {
		grid-template-columns: 5.1rem minmax(0, 1fr) 1.9rem;
	}

	.sfa11y-switch {
		width: 5.1rem;
	}

	.sfa11y-profile-copy strong {
		font-size: 0.9rem;
	}

	.sfa11y-profile-copy small {
		font-size: 0.76rem;
	}
}

@media print {
	.sfa11y {
		display: none !important;
	}
}

/* ---------- Adjustment effects (classes set on <html>) ---------- */

html.sfa11y-contrast-1 {
	background: #000;
}

html.sfa11y-contrast-1 body > .wp-site-blocks {
	filter: invert(1) hue-rotate(180deg);
	background: #fff;
}

html.sfa11y-contrast-1 body > .wp-site-blocks img,
html.sfa11y-contrast-1 body > .wp-site-blocks video,
html.sfa11y-contrast-1 body > .wp-site-blocks iframe {
	filter: invert(1) hue-rotate(180deg);
}

html.sfa11y-contrast-2 body > .wp-site-blocks {
	filter: contrast(1.35);
}

html.sfa11y-links a,
html.sfa11y-links a * {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 2px !important;
}

html.sfa11y-links main a,
html.sfa11y-links footer a {
	background: #fff3c4 !important;
	color: #0d1e3a !important;
	outline: 1px solid #96690f;
	border-radius: 2px;
}

html.sfa11y-bigtext-1 { font-size: 112.5%; }
html.sfa11y-bigtext-2 { font-size: 125%; }
html.sfa11y-bigtext-3 { font-size: 140%; }

html.sfa11y-spacing-1 body { letter-spacing: 0.05em; word-spacing: 0.1em; }
html.sfa11y-spacing-2 body { letter-spacing: 0.1em; word-spacing: 0.2em; }
html.sfa11y-spacing-3 body { letter-spacing: 0.16em; word-spacing: 0.35em; }

html.sfa11y-motion,
html.sfa11y-motion body * {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

html.sfa11y-noimg body img,
html.sfa11y-noimg body figure,
html.sfa11y-noimg body .wp-block-post-featured-image {
	visibility: hidden !important;
}

html.sfa11y-noimg body .sfa11y,
html.sfa11y-noimg body .sfa11y * {
	visibility: visible !important;
}

html.sfa11y-dyslexia body,
html.sfa11y-dyslexia body h1,
html.sfa11y-dyslexia body h2,
html.sfa11y-dyslexia body h3,
html.sfa11y-dyslexia body h4,
html.sfa11y-dyslexia body p,
html.sfa11y-dyslexia body li,
html.sfa11y-dyslexia body a,
html.sfa11y-dyslexia body button,
html.sfa11y-dyslexia body input,
html.sfa11y-dyslexia body textarea,
html.sfa11y-dyslexia body select {
	font-family: "Comic Sans MS", "Comic Sans", Verdana, Tahoma, sans-serif !important;
}

html.sfa11y-lineheight-1 body p,
html.sfa11y-lineheight-1 body li { line-height: 1.9 !important; }
html.sfa11y-lineheight-2 body p,
html.sfa11y-lineheight-2 body li { line-height: 2.2 !important; }
html.sfa11y-lineheight-3 body p,
html.sfa11y-lineheight-3 body li { line-height: 2.6 !important; }

html.sfa11y-align-1 body main p,
html.sfa11y-align-1 body main h1,
html.sfa11y-align-1 body main h2,
html.sfa11y-align-1 body main h3,
html.sfa11y-align-1 body main li { text-align: left !important; }
html.sfa11y-align-2 body main p,
html.sfa11y-align-2 body main h1,
html.sfa11y-align-2 body main h2,
html.sfa11y-align-2 body main h3 { text-align: center !important; }
html.sfa11y-align-3 body main p,
html.sfa11y-align-3 body main h1,
html.sfa11y-align-3 body main h2,
html.sfa11y-align-3 body main h3,
html.sfa11y-align-3 body main li { text-align: right !important; }

html.sfa11y-saturation-1 body > .wp-site-blocks { filter: saturate(0.4); }
html.sfa11y-saturation-2 body > .wp-site-blocks { filter: saturate(2); }
html.sfa11y-saturation-3 body > .wp-site-blocks { filter: grayscale(1); }

html.sfa11y-focus body :focus-visible {
	outline: 4px solid #ffb400 !important;
	outline-offset: 4px !important;
	box-shadow: 0 0 0 2px #111 !important;
}
