/* LZMS Accessibility Widget 1.0.0 */

/* ======================================================================
   Widget UI. Everything is scoped under #lzmsa11y-root and resets the
   properties page builders / themes commonly style on buttons and divs.
   ====================================================================== */

#lzmsa11y-root,
#lzmsa11y-root * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	float: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-shadow: none;
	text-decoration: none;
	text-align: left;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

#lzmsa11y-root [hidden] { display: none !important; }

#lzmsa11y-root button {
	cursor: pointer;
	min-height: 0;
	min-width: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	-webkit-tap-highlight-color: transparent;
}

#lzmsa11y-root button:focus { outline: none; }
#lzmsa11y-root button:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

/* ---- Floating button ------------------------------------------------ */

#lzmsa11y-root .lzmsa11y-toggle {
	position: fixed;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--lzmsa11y-accent, #17458f);
	color: var(--lzmsa11y-fg, #fff);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
#lzmsa11y-root .lzmsa11y-toggle:hover { filter: brightness(1.12); }
#lzmsa11y-root .lzmsa11y-toggle svg { display: block; width: 32px; height: 32px; }

#lzmsa11y-root.lzmsa11y-pos-bottom-left .lzmsa11y-toggle  { bottom: 16px; left: 16px; }
#lzmsa11y-root.lzmsa11y-pos-bottom-right .lzmsa11y-toggle { bottom: 16px; right: 16px; }
#lzmsa11y-root.lzmsa11y-pos-top-left .lzmsa11y-toggle     { top: 16px; left: 16px; }
#lzmsa11y-root.lzmsa11y-pos-top-right .lzmsa11y-toggle    { top: 16px; right: 16px; }

/* ---- Panel ---------------------------------------------------------- */

#lzmsa11y-root .lzmsa11y-panel {
	position: fixed;
	z-index: 2147483001;
	display: flex;
	flex-direction: column;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 104px);
	max-height: calc(100dvh - 104px);
	background: #fff;
	color: #1d2327;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
#lzmsa11y-root.lzmsa11y-pos-bottom-left .lzmsa11y-panel  { bottom: 84px; left: 16px; }
#lzmsa11y-root.lzmsa11y-pos-bottom-right .lzmsa11y-panel { bottom: 84px; right: 16px; }
#lzmsa11y-root.lzmsa11y-pos-top-left .lzmsa11y-panel     { top: 84px; left: 16px; }
#lzmsa11y-root.lzmsa11y-pos-top-right .lzmsa11y-panel    { top: 84px; right: 16px; }

#lzmsa11y-root .lzmsa11y-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	padding: 12px 14px 12px 18px;
	background: var(--lzmsa11y-accent, #17458f);
	color: var(--lzmsa11y-fg, #fff);
}
#lzmsa11y-root .lzmsa11y-title { font-size: 17px; font-weight: 700; color: inherit; }

#lzmsa11y-root .lzmsa11y-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: transparent;
	color: var(--lzmsa11y-fg, #fff);
}
#lzmsa11y-root .lzmsa11y-close:hover { background: rgba(127, 127, 127, .3); }

#lzmsa11y-root .lzmsa11y-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 16px 16px;
	background: #f4f5f7;
}

/* Text size row */
#lzmsa11y-root .lzmsa11y-size {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #d5d8dd;
	border-radius: 10px;
}
#lzmsa11y-root .lzmsa11y-size-label { font-weight: 600; color: #1d2327; }
#lzmsa11y-root .lzmsa11y-size-ctl { display: flex; align-items: center; gap: 8px; }
#lzmsa11y-root .lzmsa11y-size-val {
	min-width: 48px;
	text-align: center;
	font-weight: 600;
	color: #1d2327;
}
#lzmsa11y-root .lzmsa11y-step {
	width: 42px;
	height: 36px;
	border-radius: 8px;
	background: var(--lzmsa11y-accent, #17458f);
	color: var(--lzmsa11y-fg, #fff);
	font-weight: 700;
	font-size: 15px;
	text-align: center;
}
#lzmsa11y-root .lzmsa11y-step:hover { filter: brightness(1.12); }

/* Tiles */
#lzmsa11y-root .lzmsa11y-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
#lzmsa11y-root .lzmsa11y-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	min-height: 58px;
	padding: 8px 12px;
	background: #fff;
	color: #1d2327;
	border: 2px solid #d5d8dd;
	border-radius: 10px;
	text-align: left;
}
#lzmsa11y-root .lzmsa11y-tile:hover { border-color: var(--lzmsa11y-accent, #17458f); }
#lzmsa11y-root .lzmsa11y-tile-label { font-weight: 600; color: inherit; }
#lzmsa11y-root .lzmsa11y-tile-val { font-size: 13px; color: inherit; opacity: .85; }
#lzmsa11y-root .lzmsa11y-tile.lzmsa11y-on {
	background: var(--lzmsa11y-accent, #17458f);
	border-color: var(--lzmsa11y-accent, #17458f);
	color: var(--lzmsa11y-fg, #fff);
}

#lzmsa11y-root .lzmsa11y-reset {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 11px 12px;
	background: #fff;
	color: #1d2327;
	border: 2px solid #1d2327;
	border-radius: 10px;
	font-weight: 700;
	text-align: center;
}
#lzmsa11y-root .lzmsa11y-reset:hover { background: #1d2327; color: #fff; }

#lzmsa11y-root .lzmsa11y-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 420px) {
	#lzmsa11y-root .lzmsa11y-tile { padding: 8px 10px; }
	#lzmsa11y-root .lzmsa11y-tile-label { font-size: 14px; }
}

@media print {
	#lzmsa11y-root, .lzmsa11y-guide { display: none !important; }
}

/* ======================================================================
   Page modifications (classes are added to <html>). The widget itself is
   always excluded so it stays usable in every mode.
   ====================================================================== */

/* ---- Contrast modes ------------------------------------------------- */

html.lzmsa11y-c-high body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.lzmsa11y-c-high body a:not(#lzmsa11y-root):not(#lzmsa11y-root *),
html.lzmsa11y-c-high body a:not(#lzmsa11y-root):not(#lzmsa11y-root *) *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	color: #ff0 !important;
}
html.lzmsa11y-c-high body svg *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { fill: currentColor !important; }
html.lzmsa11y-c-high body { background-color: #000 !important; }

html.lzmsa11y-c-dark body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	background-color: #14171c !important;
	background-image: none !important;
	color: #e8e8e8 !important;
	border-color: #5a6270 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.lzmsa11y-c-dark body a:not(#lzmsa11y-root):not(#lzmsa11y-root *),
html.lzmsa11y-c-dark body a:not(#lzmsa11y-root):not(#lzmsa11y-root *) *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	color: #8ab4f8 !important;
}
html.lzmsa11y-c-dark body svg *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { fill: currentColor !important; }
html.lzmsa11y-c-dark body { background-color: #14171c !important; }

html.lzmsa11y-c-light body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	background-color: #fff !important;
	background-image: none !important;
	color: #000 !important;
	border-color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.lzmsa11y-c-light body a:not(#lzmsa11y-root):not(#lzmsa11y-root *),
html.lzmsa11y-c-light body a:not(#lzmsa11y-root):not(#lzmsa11y-root *) *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	color: #0000cc !important;
}
html.lzmsa11y-c-light body { background-color: #fff !important; }

html.lzmsa11y-c-mono { filter: grayscale(1); }

/* ---- Highlight links / headings ------------------------------------- */

html.lzmsa11y-links body a:not(#lzmsa11y-root *) {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
	outline: 2px solid #ffb300 !important;
	outline-offset: 2px !important;
	background-color: #fff3c4 !important;
	color: #0b2a6b !important;
}
html.lzmsa11y-links body a:not(#lzmsa11y-root *) * { color: #0b2a6b !important; }

html.lzmsa11y-heads body :is(h1, h2, h3, h4, h5, h6, [role="heading"]):not(#lzmsa11y-root *) {
	outline: 3px solid #1a73e8 !important;
	outline-offset: 4px !important;
	background-color: #e8f0fe !important;
	color: #0b1f4d !important;
}
html.lzmsa11y-heads body :is(h1, h2, h3, h4, h5, h6, [role="heading"]):not(#lzmsa11y-root *) * { color: #0b1f4d !important; }

/* ---- Readable font -------------------------------------------------- */

html.lzmsa11y-font body *:not(#lzmsa11y-root):not(#lzmsa11y-root *):not(i):not(svg):not(svg *):not(.dashicons):not(.fa):not(.fas):not(.far):not(.fab):not([class*="icon"]):not([class*="fa-"]) {
	font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif !important;
}

/* ---- Line height / letter spacing ----------------------------------- */

html.lzmsa11y-lh-1 body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { line-height: 1.6 !important; }
html.lzmsa11y-lh-2 body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { line-height: 1.9 !important; }
html.lzmsa11y-lh-3 body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { line-height: 2.3 !important; }

html.lzmsa11y-ls-1 body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { letter-spacing: .05em !important; word-spacing: .1em !important; }
html.lzmsa11y-ls-2 body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { letter-spacing: .1em !important;  word-spacing: .2em !important; }
html.lzmsa11y-ls-3 body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { letter-spacing: .16em !important; word-spacing: .3em !important; }

/* ---- Align left ------------------------------------------------------ */

html.lzmsa11y-align body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) { text-align: left !important; }

/* ---- Pause animations ------------------------------------------------ */
/* Durations are collapsed (not removed) so "animate in" effects used by page
   builders such as Kubio still reach their final, visible state. */

html.lzmsa11y-anim *:not(#lzmsa11y-root):not(#lzmsa11y-root *),
html.lzmsa11y-anim *:not(#lzmsa11y-root):not(#lzmsa11y-root *)::before,
html.lzmsa11y-anim *:not(#lzmsa11y-root):not(#lzmsa11y-root *)::after {
	animation-duration: .001s !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: .001s !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

/* ---- Hide images ----------------------------------------------------- */

html.lzmsa11y-imgs body :is(img, picture, video):not(#lzmsa11y-root *) { visibility: hidden !important; }
/* Photo backgrounds only (marked by JS); gradients are kept so light text stays readable. */
html.lzmsa11y-imgs body .lzmsa11y-bgimg:not(#lzmsa11y-root *) { background-image: none !important; }

/* ---- Big cursor ------------------------------------------------------ */

html.lzmsa11y-cursor,
html.lzmsa11y-cursor body *:not(#lzmsa11y-root):not(#lzmsa11y-root *) {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3v34l9-8 6 14 7-3-6-13h12z' fill='black' stroke='white' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.lzmsa11y-cursor body :is(a, button, [role="button"], input[type="submit"], input[type="button"], summary, label, select):not(#lzmsa11y-root *),
html.lzmsa11y-cursor body :is(a, button, [role="button"], summary, label):not(#lzmsa11y-root *) * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3v34l9-8 6 14 7-3-6-13h12z' fill='orange' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer !important;
}

/* ---- Reading guide (a clear band that dims the rest of the screen) --- */

.lzmsa11y-guide {
	position: fixed;
	left: 0;
	right: 0;
	top: 40%;
	height: 48px;
	z-index: 2147482999;
	pointer-events: none;
	border-top: 3px solid #ffbf47;
	border-bottom: 3px solid #ffbf47;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
	clip-path: inset(-100vmax 0);
}
.lzmsa11y-guide[hidden] { display: none; }
