/**
 * EMPIST Accessibility panel.
 * Colours come from settings. Layout follows the observed side-panel pattern.
 */

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

.empist-a11y {
	--empist-a11y-primary: #005282;
	--empist-a11y-background: #ffffff;
	--empist-a11y-text: #063652;
	--empist-a11y-accent: #7edaff;
	--empist-a11y-on: #ffffff;
	--empist-a11y-hover: #296e96;
	--empist-a11y-soft: #e6eef3;
	--empist-a11y-line: #d5d5d5;
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--empist-a11y-text);
}

.empist-a11y__trigger {
	position: fixed;
	z-index: 90;
	bottom: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	border: 2px solid var(--empist-a11y-primary);
	border-radius: 50%;
	background: var(--empist-a11y-primary);
	color: var(--empist-a11y-on);
	cursor: pointer;
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
	touch-action: manipulation;
}

.empist-a11y--right .empist-a11y__trigger { right: 1rem; }
.empist-a11y--left .empist-a11y__trigger { left: 1rem; }
.empist-a11y__trigger[hidden] { display: none; }

.empist-a11y__layer {
	position: fixed;
	z-index: 190;
	top: var(--empist-a11y-admin, 0px);
	right: 0;
	bottom: 0;
	left: 0;
	background: rgb(6 22 32 / 0.48);
}

.empist-a11y__layer[hidden] { display: none; }

.empist-a11y__panel {
	position: absolute;
	top: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 32.5rem);
	height: 100%;
	overflow: hidden;
	background: var(--empist-a11y-background);
	color: var(--empist-a11y-text);
	box-shadow: 0 0 28px rgb(0 0 0 / 0.22);
	transition: transform 0.22s ease;
}

.empist-a11y--right .empist-a11y__panel { right: 0; transform: translateX(100%); }
.empist-a11y--left .empist-a11y__panel { left: 0; transform: translateX(-100%); }
.empist-a11y.is-wide .empist-a11y__panel { width: min(100%, 40rem); }
.empist-a11y__layer.is-open .empist-a11y__panel { transform: translateX(0); }

.empist-a11y__head {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 0.7rem 0.45rem;
	background: var(--empist-a11y-primary);
	color: var(--empist-a11y-on);
	border-bottom: 4px solid var(--empist-a11y-accent);
}

.empist-a11y__title {
	flex: 1 1 100%;
	order: -1;
	margin: 0 0 0.15rem;
	color: var(--empist-a11y-on);
	font-size: 1.05rem;
	font-weight: 700;
}

.empist-a11y__icon-btn[data-empist-a11y-close],
.empist-a11y__map .empist-a11y__head .empist-a11y__icon-btn,
.empist-a11y__readable .empist-a11y__head .empist-a11y__icon-btn,
.empist-a11y__keys-view .empist-a11y__head .empist-a11y__icon-btn {
	margin-left: auto;
	background: #fff;
	color: var(--empist-a11y-primary);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
}

.empist-a11y__map .empist-a11y__head .empist-a11y__back,
.empist-a11y__readable .empist-a11y__head .empist-a11y__back,
.empist-a11y__keys-view .empist-a11y__head .empist-a11y__back {
	margin-left: 0;
	margin-right: auto;
}

.empist-a11y__icon-btn,
.empist-a11y__lang {
	min-width: 2.25rem;
	min-height: 2.25rem;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.empist-a11y__lang { max-width: 7rem; background: #fff; color: #111; }

.empist-a11y__search {
	flex: 1 1 100%;
	min-height: 2.25rem;
	border: 0;
	border-radius: 6px;
	padding: 0.35rem 0.6rem;
	font: inherit;
}

.empist-a11y__search[hidden] { display: none; }

.empist-a11y__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 0.75rem;
}

.empist-a11y__section { margin: 0 0 0.75rem; border: 1px solid var(--empist-a11y-line); border-radius: 10px; background: #fff; }
.empist-a11y__section[hidden] { display: none; }

.empist-a11y__section-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.55rem 0.75rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.empist-a11y__section-icon {
	flex: 0 0 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border: 1px solid var(--empist-a11y-line);
	border-radius: 6px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
}

.empist-a11y__section-body { padding: 0 0.65rem 0.75rem; }
.empist-a11y__section-body[hidden] { display: none; }

.empist-a11y__profile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 2.5rem;
	margin: 0 0 0.35rem;
	padding: 0.25rem 0.2rem;
	border: 0;
	border-bottom: 1px solid #eee;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.empist-a11y__switch {
	flex: 0 0 auto;
	display: inline-flex;
	border: 1px solid #bbb;
	border-radius: 999px;
	overflow: hidden;
	font-size: 0.72rem;
	font-weight: 700;
}

.empist-a11y__switch span { padding: 0.2rem 0.45rem; }
.empist-a11y__profile[aria-checked="true"] .empist-a11y__switch-on,
.empist-a11y__profile[aria-checked="false"] .empist-a11y__switch-off { background: var(--empist-a11y-primary); color: var(--empist-a11y-on); }

.empist-a11y__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	align-items: start;
}

.empist-a11y__tool {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	position: relative;
}

.empist-a11y__tool[hidden] { display: none; }

.empist-a11y__help {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.empist-a11y__tool:hover > .empist-a11y__help,
.empist-a11y__tool:focus-within > .empist-a11y__help,
.empist-a11y__tool.is-help > .empist-a11y__help {
	position: static;
	width: auto;
	height: auto;
	margin: 0.4rem 0 0;
	padding: 0.45rem 0.6rem;
	overflow: visible;
	clip: auto;
	white-space: normal;
	border-radius: 8px;
	background: var(--empist-a11y-soft);
	color: var(--empist-a11y-text);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
}

.empist-a11y__foot .empist-a11y__tool {
	flex: 0 1 auto;
	max-width: 100%;
}

.empist-a11y__foot .empist-a11y__tool:hover,
.empist-a11y__foot .empist-a11y__tool:focus-within,
.empist-a11y__foot .empist-a11y__tool.is-help {
	flex: 1 1 100%;
}

.empist-a11y__foot .empist-a11y__tool:hover > .empist-a11y__help,
.empist-a11y__foot .empist-a11y__tool:focus-within > .empist-a11y__help,
.empist-a11y__foot .empist-a11y__tool.is-help > .empist-a11y__help {
	order: -1;
	width: 100%;
	background: #fff;
	color: var(--empist-a11y-text);
}

.empist-a11y__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 5.6rem;
	margin: 0;
	padding: 0.45rem;
	border: 1px solid var(--empist-a11y-line);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

.empist-a11y__tile[aria-pressed="true"] {
	border-color: var(--empist-a11y-primary);
	box-shadow: inset 0 0 0 1px var(--empist-a11y-primary);
}

.empist-a11y__tile[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	width: 0.7rem;
	height: 0.4rem;
	border-left: 2px solid var(--empist-a11y-primary);
	border-bottom: 2px solid var(--empist-a11y-primary);
	transform: rotate(-45deg);
}

.empist-a11y__tile svg,
.empist-a11y__glyph {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	flex: 0 0 1.75rem;
}

.empist-a11y__tile span {
	max-width: 100%;
	overflow-wrap: anywhere;
}

.empist-a11y__tile[hidden],
.empist-a11y__card[hidden],
.empist-a11y__profile[hidden] { display: none; }

.empist-a11y__card {
	margin: 0 0 0.65rem;
	padding: 0.7rem;
	border: 1px solid var(--empist-a11y-line);
	border-radius: 10px;
}

.empist-a11y__card h3 { margin: 0 0 0.45rem; font-size: 0.95rem; }

.empist-a11y__hint {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.35;
}

.empist-a11y__font-readout {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.75rem 0 0.35rem;
	font-weight: 700;
}

.empist-a11y__font-readout strong {
	font-size: 1.15rem;
	font-variant-numeric: tabular-nums;
}

.empist-a11y__font-controls {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
	gap: 0.45rem;
	align-items: center;
}

.empist-a11y__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--empist-a11y-line);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.empist-a11y__font-controls .empist-a11y__range {
	width: 100%;
	min-height: 2.5rem;
	margin: 0;
}

.empist-a11y__font-reset { margin-top: 0.55rem; }

.empist-a11y__font-row,
.empist-a11y__cursor-row,
.empist-a11y__color-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.empist-a11y__pill {
	min-height: 2.25rem;
	margin: 0;
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--empist-a11y-line);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.empist-a11y__pill[aria-pressed="true"] {
	background: var(--empist-a11y-primary);
	color: var(--empist-a11y-on);
	border-color: var(--empist-a11y-primary);
}

.empist-a11y__range { width: 100%; margin-top: 0.55rem; }

.empist-a11y__status {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	overflow-wrap: anywhere;
	background: var(--empist-a11y-soft);
	color: var(--empist-a11y-text);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.empist-a11y__status:not(:empty) {
	padding: 0.55rem 0.85rem;
	border-top: 1px solid var(--empist-a11y-line);
}

.empist-a11y__foot {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
	background: var(--empist-a11y-primary);
	color: var(--empist-a11y-on);
}

.empist-a11y__foot a,
.empist-a11y__foot button {
	color: inherit;
	font: inherit;
	font-weight: 700;
	background: transparent;
	border: 0;
	padding: 0.35rem 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.empist-a11y__brand { margin: 0 0 0 auto; font-size: 0.75rem; font-weight: 700; line-height: 1.35; }

.empist-a11y__brand-link {
	margin-left: 0.25rem;
	color: inherit;
	font-weight: 800;
	text-decoration-thickness: 2px;
}

/*
 * Focus ring, separate from the accent bar.
 * Outward from the control: 2px #005282, 2px #FFFFFF, 3px #005282.
 * The dark bands contrast with white surfaces. The white band contrasts with the primary header, footer, and launcher.
 */
.empist-a11y :focus,
.empist-a11y :focus-visible {
	outline: 3px solid #005282;
	outline-offset: 4px;
	box-shadow:
		0 0 0 2px #005282,
		0 0 0 4px #ffffff;
}

.empist-a11y__trigger:focus,
.empist-a11y__trigger:focus-visible {
	box-shadow:
		0 0 0 2px #005282,
		0 0 0 4px #ffffff,
		0 4px 16px rgb(0 0 0 / 0.2);
}

.empist-a11y__tile[aria-pressed="true"]:focus,
.empist-a11y__tile[aria-pressed="true"]:focus-visible {
	box-shadow:
		inset 0 0 0 1px var(--empist-a11y-primary),
		0 0 0 2px #005282,
		0 0 0 4px #ffffff;
}

.empist-a11y__map,
.empist-a11y__readable,
.empist-a11y__keys-view {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111;
}

.empist-a11y__map[hidden],
.empist-a11y__readable[hidden],
.empist-a11y__keys-view[hidden] { display: none; }

.empist-a11y__keys-view {
	bottom: var(--empist-a11y-foot-h, 4.25rem);
}

.empist-a11y__map-body,
.empist-a11y__readable-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0.85rem 1rem 1rem;
	overflow-wrap: anywhere;
}

.empist-a11y__map-group { margin: 0 0 1rem; }

.empist-a11y__map-group h3 {
	margin: 0 0 0.4rem;
	color: var(--empist-a11y-primary);
	font-size: 0.95rem;
	font-weight: 700;
}

.empist-a11y__map-region {
	margin: 0.65rem 0 0.2rem;
	color: #3d5a6c;
	font-size: 0.8rem;
	font-weight: 700;
}

.empist-a11y__map-empty {
	margin: 0;
	color: #3d5a6c;
	font-size: 0.9rem;
}

.empist-a11y__outline,
.empist-a11y__outline ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.empist-a11y__outline ul {
	margin: 0 0 0.15rem 0.65rem;
	padding: 0 0 0 0.55rem;
	border-left: 2px solid var(--empist-a11y-line);
}

.empist-a11y__outline li { margin: 0; }

.empist-a11y__outline button {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	width: 100%;
	margin: 0;
	padding: 0.4rem 0.5rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	overflow-wrap: anywhere;
}

.empist-a11y__outline button:hover { background: var(--empist-a11y-soft); }

.empist-a11y__outline-level {
	flex: 0 0 auto;
	min-width: 2.5rem;
	color: var(--empist-a11y-primary);
	font-size: 0.75rem;
	font-weight: 700;
}

.empist-a11y__outline-label {
	flex: 1 1 auto;
	min-width: 0;
}

/*
 * Temporary Page Map target marker. Fixed so it does not shift layout or get clipped
 * by the target. Same bands as the widget ring: 2px #005282, 2px #FFFFFF, 3px #005282.
 */
.empist-a11y__map-marker {
	position: fixed;
	z-index: 80;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	pointer-events: none;
	box-sizing: border-box;
	box-shadow:
		0 0 0 2px #005282,
		0 0 0 4px #ffffff,
		0 0 0 7px #005282;
}

.empist-a11y__map-marker[hidden] {
	display: none !important;
}

.empist-a11y__guide {
	position: fixed;
	z-index: 80;
	left: 0;
	right: 0;
	height: 0.45rem;
	margin-top: -0.22rem;
	background: rgb(255 214 0 / 0.85);
	pointer-events: none;
	border-radius: 4px;
}

.empist-a11y__guide[hidden] { display: none; }

.empist-a11y__tip {
	position: fixed;
	z-index: 85;
	max-width: min(24rem, calc(100vw - 1rem));
	max-height: 40vh;
	overflow: auto;
	padding: 0.7rem 0.8rem;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 1.35rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
	pointer-events: none;
}

.empist-a11y__tip[hidden] { display: none; }

.empist-a11y__note {
	margin: 0.25rem 0 0.75rem;
	color: var(--empist-a11y-text);
	font-size: 0.8125rem;
	line-height: 1.4;
}

#empist-a11y-summary-note {
	margin: 0;
	padding: 0.75rem 1rem 0;
}

.empist-a11y__grid-overlay {
	position: fixed;
	z-index: 80;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	pointer-events: none;
}

.empist-a11y__grid-overlay[hidden] { display: none; }

.empist-a11y__grid-cell {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	border: 2px solid rgb(0 82 130 / 0.45);
	background: rgb(255 255 255 / 0.08);
	color: #111;
	font-size: 1.5rem;
	font-weight: 800;
	padding: 0.35rem 0.5rem;
	pointer-events: auto;
	cursor: pointer;
}

.empist-a11y__keys {
	position: fixed;
	z-index: 80;
	left: 0.5rem;
	right: 0.5rem;
	bottom: 5.5rem;
	display: grid;
	gap: 0.35rem;
	max-height: min(46vh, calc(100vh - 8rem));
	overflow: auto;
	padding: 0.5rem;
	border-radius: 12px;
	background: #1b1b1b;
	color: #fff;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}

.empist-a11y__keys[hidden] { display: none; }

.empist-a11y__keys.is-in-drawer {
	position: static;
	z-index: auto;
	left: auto;
	right: auto;
	bottom: auto;
	max-height: none;
	overflow: visible;
	border-radius: 0;
	box-shadow: none;
}

.empist-a11y__keys-slot {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	background: #1b1b1b;
}

.empist-a11y__keys-row { display: flex; justify-content: center; gap: 0.3rem; }
.empist-a11y__keys button {
	flex: 1 1 0;
	min-width: 0;
	min-height: 2.5rem;
	border: 0;
	border-radius: 6px;
	background: #fff;
	color: #111;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.empist-a11y__badge {
	position: absolute;
	z-index: 70;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.2rem;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.25rem;
	text-align: center;
	pointer-events: none;
}

html.empist-a11y-locked,
html.empist-a11y-locked body {
	overflow: hidden !important;
	overscroll-behavior: none;
}

@media (max-width: 480px) {
	.empist-a11y__panel { width: calc(100% - 2.75rem); }
	.empist-a11y__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.empist-a11y__brand { flex: 1 1 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.empist-a11y__panel { transition: none; }
}

html.empist-a11y-reduce-motion .empist-a11y__panel { transition: none; }

html.empist-a11y-font-0 { font-size: 80%; }
html.empist-a11y-font-1 { font-size: 90%; }
html.empist-a11y-font-3 { font-size: 112.5%; }
html.empist-a11y-font-4 { font-size: 125%; }
html.empist-a11y-font-5 { font-size: 150%; }
html.empist-a11y-font-6 { font-size: 175%; }
html.empist-a11y-font-7 { font-size: 200%; }

html.empist-a11y-mono body > :not(.empist-a11y) { filter: grayscale(1); }
html.empist-a11y-low-sat body > :not(.empist-a11y) { filter: saturate(0.4); }
html.empist-a11y-high-sat body > :not(.empist-a11y) { filter: saturate(2); }
.empist-a11y__lens {
	position: fixed;
	z-index: 80;
	width: 220px;
	height: 220px;
	overflow: hidden;
	border: 3px solid var(--empist-a11y-primary);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 12px 28px rgb(6 54 82 / 0.28);
	pointer-events: none;
	contain: strict;
}

.empist-a11y__lens[hidden] { display: none; }

.empist-a11y__lens-stage {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
}

.empist-a11y__lens-copy {
	position: relative;
}

html.empist-a11y-dark body { background-color: #000 !important; color: #fff !important; }
html.empist-a11y-dark body :where(p, li, td, th, dd, span, a, label, figcaption):not(.empist-a11y *):not(svg *) { color: #fff !important; }
html.empist-a11y-dark body :where(h1, h2, h3, h4, h5, h6):not(.empist-a11y *):not(svg *) { color: #ffe14a !important; }

html.empist-a11y-light body { background-color: #fff !important; color: #191970 !important; }
html.empist-a11y-light body :where(p, li, td, th, dd, span, a, label, h1, h2, h3, h4, h5, h6, figcaption):not(.empist-a11y *):not(svg *) { color: #191970 !important; }

html.empist-a11y-custom body { background-color: var(--empist-custom-bg, canvas) !important; }
html.empist-a11y-custom-text body :where(p, li, td, th, dd, span, a, label):not(.empist-a11y *):not(svg *) { color: var(--empist-custom-text) !important; }
html.empist-a11y-custom-heading body :where(h1, h2, h3, h4, h5, h6):not(.empist-a11y *):not(svg *) { color: var(--empist-custom-heading) !important; }

html.empist-a11y-readable-font body :where(p, li, a, h1, h2, h3, h4, h5, h6, td, label):not(.empist-a11y *) {
	font-family: "Segoe UI", system-ui, sans-serif !important;
}

html.empist-a11y-links body :where(main, article, [role="main"], footer) a[href]:not(.empist-a11y *) {
	outline: 3px solid #005282 !important;
	outline-offset: 2px !important;
	text-decoration: underline !important;
	background: #fff4a8 !important;
	color: #111 !important;
}

html.empist-a11y-headings body :where(h1, h2, h3, h4, h5, h6):not(.empist-a11y *) {
	outline: 3px solid #005282 !important;
	outline-offset: 3px !important;
	background: #fff4a8 !important;
	color: #111 !important;
}

html.empist-a11y-hover body :where(a, button, summary, [role="button"]):not(.empist-a11y *):hover {
	outline: 3px solid #c45c00 !important;
	background: #fff4a8 !important;
	color: #111 !important;
}

html.empist-a11y-keyboard :focus-visible:not(.empist-a11y *) {
	outline: 3px solid #005282 !important;
	outline-offset: 3px !important;
}

html.empist-a11y-big-buttons body :where(button, [role="button"], input[type="submit"], input[type="button"]):not(.empist-a11y *) {
	min-height: 2.75rem !important;
	min-width: 2.75rem !important;
	font-size: 1.05em !important;
}

html.empist-a11y-spacing body :where(main, article, [role="main"], footer) :where(p, li, dd, h1, h2, h3, h4, h5, h6):not(.empist-a11y *),
html.empist-a11y-line body :where(main, article, [role="main"], footer) :where(p, li, dd, h1, h2, h3, h4, h5, h6):not(.empist-a11y *) {
	line-height: var(--empist-line, 1.9) !important;
}

html.empist-a11y-spacing body :where(main, article, [role="main"], footer) :where(p, li, dd, h1, h2, h3, h4, h5, h6):not(.empist-a11y *),
html.empist-a11y-word body :where(main, article, [role="main"], footer) :where(p, li, dd, h1, h2, h3, h4, h5, h6):not(.empist-a11y *) {
	word-spacing: var(--empist-word, 0.16em) !important;
}

html.empist-a11y-spacing body :where(main, article, [role="main"], footer) :where(p, li, dd, h1, h2, h3, h4, h5, h6):not(.empist-a11y *),
html.empist-a11y-letter body :where(main, article, [role="main"], footer) :where(p, li, dd, h1, h2, h3, h4, h5, h6):not(.empist-a11y *) {
	letter-spacing: var(--empist-letter, 0.06em) !important;
}

.empist-a11y__targets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem;
	margin: 0;
}

.empist-a11y__targets .empist-a11y__pill {
	width: 100%;
	min-height: 2.5rem;
	padding: 0.35rem 0.45rem;
	line-height: 1.2;
	white-space: normal;
	text-align: center;
}

@media (max-width: 480px) {
	.empist-a11y__targets { grid-template-columns: 1fr; }
	.empist-a11y__type { padding: 0.55rem; }
	.empist-a11y__font-controls { grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem; }
	.empist-a11y__font-readout { align-items: flex-start; }
}

html.empist-a11y-reduce-motion *,
html.empist-a11y-reduce-motion *::before,
html.empist-a11y-reduce-motion *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}

html.empist-a11y-cursor-black,
html.empist-a11y-cursor-black * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M4 2 L4 26 L10 20 L16 30 L20 28 L14 18 L22 18 Z' fill='%23000' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.empist-a11y-cursor-white,
html.empist-a11y-cursor-white * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M4 2 L4 26 L10 20 L16 30 L20 28 L14 18 L22 18 Z' fill='%23fff' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.empist-a11y-read-focus .empist-a11y-dim { opacity: 0.28; }

@media (forced-colors: active) {
	.empist-a11y__panel,
	.empist-a11y__tile,
	.empist-a11y__trigger { border: 1px solid ButtonText; }
}

@media print {
	.empist-a11y { display: none !important; }
}
