/* ARXEDO accessibility controls, styled for the navy and silver site theme. */
.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 2px dotted rgb(231 242 255 / 0.95);
	border-radius: 50%;
	background: #f8fbff;
	background-clip: padding-box;
	color: #08264b;
	box-shadow: inset 0 1px 2px rgb(8 38 75 / 0.12);
	cursor: pointer;
	transition: box-shadow 160ms ease;
}

.arxedo-header .arxedo-accessibility-toggle {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin-right: .4rem;
}

.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link::before {
	display: none;
}

.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link:hover,
.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link:focus-visible,
.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link[aria-expanded="true"] {
	background: #fff;
	color: #08264b;
	box-shadow: inset 0 0 0 2px rgb(219 236 255 / 0.72), inset 0 1px 2px rgb(8 38 75 / 0.12);
}

.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link:focus-visible {
	outline: 2px solid #d6eaff;
	outline-offset: -5px;
}

.arxedo-accessibility-toggle svg {
	position: relative;
	z-index: 1;
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 781px) {
	.arxedo-header .arxedo-accessibility-toggle > .arx-block-button__link {
		width: 42px;
		height: 42px;
		min-width: 42px;
		min-height: 42px;
	}
}

.arxedo-a11y-overlay[hidden] {
	display: none !important;
}

.arxedo-a11y-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgb(1 8 20 / 0.76);
	-webkit-backdrop-filter: blur(13px);
	backdrop-filter: blur(13px);
}

.arxedo-a11y-dialog {
	position: relative;
	width: min(100%, 490px);
	max-height: min(92dvh, 760px);
	overflow: auto;
	padding: clamp(1.2rem, 4vw, 1.8rem);
	border: 1px solid transparent;
	border-radius: 20px;
	background:
		linear-gradient(145deg, rgb(9 38 70 / 0.98), rgb(3 17 37 / 0.99)) padding-box,
		linear-gradient(145deg, #f4f7fb, #788a9d 34%, #e2e9f0 53%, #64788f 80%, #f6f8fb) border-box;
	color: #f5f8fc;
	box-shadow: 0 28px 90px rgb(0 0 0 / 0.58), inset 0 1px 0 rgb(255 255 255 / 0.12);
	font-family: inherit;
}

.arxedo-a11y-dialog:focus {
	outline: none;
}

.arxedo-a11y-dialog__heading {
	margin: 0 3rem 0.3rem 0;
	color: #f7faff;
	font-size: clamp(1.2rem, 3vw, 1.45rem);
	font-weight: 600;
	line-height: 1.3;
}

.arxedo-a11y-dialog__intro {
	margin: 0 2.4rem 1.1rem 0;
	color: #c1cfde;
	font-size: 0.92rem;
	line-height: 1.5;
}

.arxedo-a11y-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 42px;
	height: 42px;
	border: 1px solid rgb(222 233 245 / 0.5);
	border-radius: 50%;
	background: linear-gradient(145deg, rgb(246 249 252 / 0.2), rgb(129 151 174 / 0.1));
	color: #f6f8fb;
	font: inherit;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.arxedo-a11y-close:hover,
.arxedo-a11y-close:focus-visible {
	background: rgb(222 233 245 / 0.25);
	outline: 2px solid #eaf1f8;
	outline-offset: 2px;
}

.arxedo-a11y-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.arxedo-a11y-action {
	min-height: 82px;
	padding: 0.75rem 0.55rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border: 1px solid rgb(211 224 239 / 0.31);
	border-radius: 12px;
	background: linear-gradient(145deg, rgb(235 242 249 / 0.13), rgb(122 151 179 / 0.07));
	color: #edf3fa;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.arxedo-a11y-action:hover,
.arxedo-a11y-action:focus-visible {
	border-color: #eef3f8;
	background: linear-gradient(145deg, rgb(225 235 245 / 0.22), rgb(121 153 184 / 0.16));
	color: #fff;
	outline: 2px solid rgb(229 237 246 / 0.85);
	outline-offset: 2px;
}

.arxedo-a11y-action:active {
	transform: translateY(1px);
}

.arxedo-a11y-action[aria-pressed="true"] {
	border-color: #f4f7fa;
	background: linear-gradient(145deg, #f1f5f9, #becbd8 48%, #e8edf3);
	color: #071b35;
	box-shadow: 0 5px 18px rgb(0 0 0 / 0.22), inset 0 1px 0 #fff;
}

.arxedo-a11y-action__icon {
	min-height: 1.35rem;
	color: #dfe8f2;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
}

.arxedo-a11y-action[aria-pressed="true"] .arxedo-a11y-action__icon {
	color: #102d50;
}

.arxedo-a11y-status {
	min-height: 1.45em;
	margin: 0.85rem 0 0;
	color: #d3ddea;
	font-size: 0.82rem;
	line-height: 1.45;
	text-align: center;
}

.arxedo-a11y-hide {
	width: 100%;
	min-height: 44px;
	margin-top: 0.55rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgb(211 224 239 / 0.42);
	border-radius: 10px;
	background: rgb(255 255 255 / 0.08);
	color: #edf3fa;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.arxedo-a11y-hide:hover,
.arxedo-a11y-hide:focus-visible {
	background: rgb(255 255 255 / 0.17);
	outline: 2px solid #eaf1f8;
	outline-offset: 2px;
}

.arxedo-a11y-shortcut {
	margin: 0.55rem 0 0;
	color: #aebed0;
	font-size: 0.75rem;
	line-height: 1.4;
	text-align: center;
}

/* Readability changes apply to the website while leaving the controls usable. */
html.arxedo-a11y-gray .arx-site-blocks,
html.arxedo-a11y-gray .wm-dashboard .wm-workspace {
	filter: grayscale(1);
}

html.arxedo-a11y-invert .arx-site-blocks,
html.arxedo-a11y-invert .wm-dashboard .wm-workspace {
	filter: invert(1) hue-rotate(180deg);
}

html.arxedo-a11y-gray.arxedo-a11y-invert .arx-site-blocks,
html.arxedo-a11y-gray.arxedo-a11y-invert .wm-dashboard .wm-workspace {
	filter: grayscale(1) invert(1) hue-rotate(180deg);
}

html.arxedo-a11y-invert .arx-site-blocks img,
html.arxedo-a11y-invert .arx-site-blocks video,
html.arxedo-a11y-invert .arx-site-blocks iframe {
	filter: invert(1) hue-rotate(180deg);
}

html.arxedo-a11y-invert .wm-dashboard .wm-workspace img,
html.arxedo-a11y-invert .wm-dashboard .wm-workspace video,
html.arxedo-a11y-invert .wm-dashboard .wm-workspace iframe {
	filter: invert(1) hue-rotate(180deg);
}

html.arxedo-a11y-gray.arxedo-a11y-invert .arx-site-blocks img,
html.arxedo-a11y-gray.arxedo-a11y-invert .arx-site-blocks video,
html.arxedo-a11y-gray.arxedo-a11y-invert .arx-site-blocks iframe {
	filter: invert(1) hue-rotate(180deg) grayscale(1);
}

html.arxedo-a11y-gray.arxedo-a11y-invert .wm-dashboard .wm-workspace img,
html.arxedo-a11y-gray.arxedo-a11y-invert .wm-dashboard .wm-workspace video,
html.arxedo-a11y-gray.arxedo-a11y-invert .wm-dashboard .wm-workspace iframe {
	filter: invert(1) hue-rotate(180deg) grayscale(1);
}

html.arxedo-a11y-negative body {
	background: #000 !important;
	color: #fff !important;
}

html.arxedo-a11y-negative .arx-site-blocks,
html.arxedo-a11y-negative .arx-site-blocks *:not(img):not(video):not(iframe):not(svg):not(path),
html.arxedo-a11y-negative .wm-dashboard .wm-workspace,
html.arxedo-a11y-negative .wm-dashboard .wm-workspace *:not(img):not(video):not(iframe):not(svg):not(path) {
	background-color: #000 !important;
	background-image: none !important;
	border-color: #cbd5e1 !important;
	box-shadow: none !important;
	color: #fff !important;
}

html.arxedo-a11y-negative .arx-site-blocks a,
html.arxedo-a11y-negative .arx-site-blocks a:visited {
	color: #ffed73 !important;
	text-decoration: underline !important;
}

html.arxedo-a11y-negative .wm-dashboard .wm-workspace a,
html.arxedo-a11y-negative .wm-dashboard .wm-workspace a:visited {
	color: #ffed73 !important;
	text-decoration: underline !important;
}

html.arxedo-a11y-negative .arx-site-blocks :focus-visible,
html.arxedo-a11y-negative .wm-dashboard .wm-workspace :focus-visible {
	outline: 3px solid #ffed73 !important;
	outline-offset: 3px;
}

html.arxedo-a11y-links .arx-site-blocks a,
html.arxedo-a11y-links .wm-dashboard .wm-workspace a {
	outline: 2px solid #67d9ff !important;
	outline-offset: 3px !important;
	background-color: rgb(1 48 92 / 0.88) !important;
	color: #fff !important;
	text-decoration: underline !important;
}

html.arxedo-a11y-links.arxedo-a11y-negative .arx-site-blocks a {
	background-color: #000 !important;
	color: #ffed73 !important;
}

html.arxedo-a11y-links.arxedo-a11y-negative .wm-dashboard .wm-workspace a {
	background-color: #000 !important;
	color: #ffed73 !important;
}

html.arxedo-a11y-font {
	font-size: calc(100% * var(--arxedo-a11y-font-scale, 1));
}

html.arxedo-a11y-font .wm-dashboard .wm-workspace {
	zoom: var(--arxedo-a11y-font-scale, 1);
}

@media (max-width: 480px) {
	.arxedo-a11y-overlay {
		padding: 0.55rem;
	}

	.arxedo-a11y-dialog {
		max-height: 94dvh;
		padding: 1rem;
		border-radius: 16px;
	}

	.arxedo-a11y-action {
		min-height: 72px;
		font-size: 0.86rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arxedo-a11y-action {
		transition: none;
	}
}
