/**
 * DiviFlash Accessibility Toolkit.
 *
 * Two layers, both scoped:
 *  1. The toolbar UI, under .difl-a11y-root (reset against theme/Divi styles).
 *  2. Page adjustments, each gated by one `difl-a11y--*` class on <html> that the
 *     toolkit adds/removes. No class, no effect. The toolbar and its overlays are
 *     always excluded, so an adjustment can never make the controls unusable.
 */

@font-face {
	font-family: "DIFL OpenDyslexic";
	src: url("../fonts/opendyslexic-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DIFL OpenDyslexic";
	src: url("../fonts/opendyslexic-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ================================================================== */
/* 1. Toolbar UI                                                       */
/* ================================================================== */

.difl-a11y-root {
	--difl-a11y-size: 52px;
	--difl-a11y-gap: 20px;
	--difl-a11y-bg: #ffffff;
	--difl-a11y-fg: #1b1f24;
	--difl-a11y-muted: #505862;
	--difl-a11y-line: #c9ced6;
	--difl-a11y-soft: #f1f3f6;
	--difl-a11y-focus: #0b57d0;
}

.difl-a11y-root--small {
	--difl-a11y-size: 44px;
}

.difl-a11y-root--large {
	--difl-a11y-size: 60px;
}

.difl-a11y-root,
.difl-a11y-root *,
.difl-a11y-root *::before,
.difl-a11y-root *::after {
	box-sizing: border-box;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-shadow: none;
	float: none;
}

.difl-a11y-root :is(button, input, h2, h3, p, ul, li, fieldset, legend, label, span, div) {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	line-height: 1.4;
}

.difl-a11y-sr {
	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;
}

/* ---- Trigger ------------------------------------------------------ */

.difl-a11y-root .difl-a11y-trigger {
	position: fixed;
	z-index: 2147483600;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--difl-a11y-size);
	height: var(--difl-a11y-size);
	padding: 0;
	border: 2px solid var(--difl-a11y-accent-text, #fff);
	border-radius: 50%;
	background: var(--difl-a11y-accent, #1a4fd6);
	color: var(--difl-a11y-accent-text, #fff);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.difl-a11y-root .difl-a11y-trigger svg {
	width: 62%;
	height: 62%;
	fill: currentColor;
	pointer-events: none;
}

.difl-a11y-root--bottom_right .difl-a11y-trigger { right: var(--difl-a11y-gap); bottom: calc(var(--difl-a11y-gap) + var(--difl-a11y-lift, 0px)); }
.difl-a11y-root--bottom_left .difl-a11y-trigger { left: var(--difl-a11y-gap); bottom: calc(var(--difl-a11y-gap) + var(--difl-a11y-lift, 0px)); }
.difl-a11y-root--middle_right .difl-a11y-trigger { right: var(--difl-a11y-gap); top: 50%; transform: translateY(-50%); }
.difl-a11y-root--middle_left .difl-a11y-trigger { left: var(--difl-a11y-gap); top: 50%; transform: translateY(-50%); }

/* Ripple (dashboard toggle): two soft rings pulse out from the button until the panel
   is opened once. Never plays for visitors who prefer reduced motion. */
.difl-a11y-root--ripple .difl-a11y-trigger::before,
.difl-a11y-root--ripple .difl-a11y-trigger::after {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid var(--difl-a11y-accent, #1a4fd6);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.difl-a11y-root--ripple:not(.difl-a11y-root--seen) .difl-a11y-trigger::before,
	.difl-a11y-root--ripple:not(.difl-a11y-root--seen) .difl-a11y-trigger::after {
		animation: difl-a11y-ripple 2.4s ease-out infinite;
	}

	.difl-a11y-root--ripple:not(.difl-a11y-root--seen) .difl-a11y-trigger::after {
		animation-delay: 1.2s;
	}
}

@keyframes difl-a11y-ripple {
	0% {
		opacity: 0.55;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(1.75);
	}
}

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

.difl-a11y-root .difl-a11y-panel {
	position: fixed;
	z-index: 2147483601;
	display: flex;
	flex-direction: column;
	width: 380px;
	max-width: calc(100vw - 16px);
	max-height: min(680px, calc(100vh - var(--difl-a11y-gap) - var(--difl-a11y-lift, 0px) - var(--difl-a11y-size) - 40px));
	overflow: hidden;
	border: 1px solid var(--difl-a11y-line);
	border-radius: 12px;
	background: var(--difl-a11y-bg);
	color: var(--difl-a11y-fg);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
	font-size: 15px;
	text-align: start;
}

.difl-a11y-root .difl-a11y-panel[hidden] {
	display: none;
}

.difl-a11y-root--bottom_right .difl-a11y-panel { right: var(--difl-a11y-gap); bottom: calc(var(--difl-a11y-gap) + var(--difl-a11y-lift, 0px) + var(--difl-a11y-size) + 12px); }
.difl-a11y-root--bottom_left .difl-a11y-panel { left: var(--difl-a11y-gap); bottom: calc(var(--difl-a11y-gap) + var(--difl-a11y-lift, 0px) + var(--difl-a11y-size) + 12px); }
.difl-a11y-root--middle_right .difl-a11y-panel { right: calc(var(--difl-a11y-gap) + var(--difl-a11y-size) + 12px); top: 50%; transform: translateY(-50%); max-height: calc(100vh - 32px); }
.difl-a11y-root--middle_left .difl-a11y-panel { left: calc(var(--difl-a11y-gap) + var(--difl-a11y-size) + 12px); top: 50%; transform: translateY(-50%); max-height: calc(100vh - 32px); }

.difl-a11y-root .difl-a11y-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 12px 8px 16px;
}

.difl-a11y-root .difl-a11y-title {
	padding: 0;
	color: var(--difl-a11y-fg);
	font-size: 18px;
	font-weight: 700;
}

.difl-a11y-root .difl-a11y-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--difl-a11y-fg);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.difl-a11y-root .difl-a11y-icon-btn:hover {
	background: var(--difl-a11y-soft);
}

/* Tabs */
.difl-a11y-root .difl-a11y-tabs {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 4px;
	padding: 0 12px 8px;
	border-bottom: 1px solid var(--difl-a11y-line);
}

.difl-a11y-root .difl-a11y-tab {
	min-height: 44px;
	padding: 6px 4px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--difl-a11y-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.difl-a11y-root .difl-a11y-tab:hover {
	background: var(--difl-a11y-soft);
	color: var(--difl-a11y-fg);
}

.difl-a11y-root .difl-a11y-tab[aria-selected="true"] {
	background: var(--difl-a11y-accent, #1a4fd6);
	color: var(--difl-a11y-accent-text, #fff);
}

.difl-a11y-root .difl-a11y-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 16px 16px;
}

.difl-a11y-root .difl-a11y-body[hidden] {
	display: none;
}

/* Groups */
.difl-a11y-root .difl-a11y-group {
	min-width: 0;
	padding: 0;
	border: 0;
}

.difl-a11y-root .difl-a11y-group + .difl-a11y-group,
.difl-a11y-root .difl-a11y-section + .difl-a11y-section {
	margin-top: 16px;
}

.difl-a11y-root .difl-a11y-section + .difl-a11y-section {
	padding-top: 16px;
	border-top: 1px solid var(--difl-a11y-line);
}

.difl-a11y-root .difl-a11y-heading {
	margin-bottom: 8px;
	padding: 0;
	color: var(--difl-a11y-fg);
	font-size: 15px;
	font-weight: 700;
}

.difl-a11y-root .difl-a11y-legend {
	margin-bottom: 6px;
	padding: 0;
	color: var(--difl-a11y-fg);
	font-size: 13px;
	font-weight: 600;
}

.difl-a11y-root .difl-a11y-hint {
	margin: 4px 0 8px;
	color: var(--difl-a11y-muted);
	font-size: 13px;
}

/* Segmented radio group (native radios, visually a row of pills) */
.difl-a11y-root .difl-a11y-seg {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.difl-a11y-root .difl-a11y-opt {
	position: relative;
	display: inline-flex;
	flex: 1 1 auto;
	cursor: pointer;
}

.difl-a11y-root .difl-a11y-opt > span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 44px;
	padding: 6px 10px;
	border: 1px solid var(--difl-a11y-line);
	border-radius: 8px;
	background: var(--difl-a11y-bg);
	color: var(--difl-a11y-fg);
	font-size: 14px;
	text-align: center;
}

.difl-a11y-root .difl-a11y-opt:hover > span {
	background: var(--difl-a11y-soft);
}

.difl-a11y-root .difl-a11y-opt input:checked + span {
	border-color: var(--difl-a11y-accent, #1a4fd6);
	background: var(--difl-a11y-accent, #1a4fd6);
	color: var(--difl-a11y-accent-text, #fff);
	font-weight: 600;
}

.difl-a11y-root .difl-a11y-opt input:disabled + span {
	opacity: 0.5;
	cursor: not-allowed;
}

.difl-a11y-root .difl-a11y-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Toggle buttons (aria-pressed) */
.difl-a11y-root .difl-a11y-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--difl-a11y-line);
	border-radius: 8px;
	background: var(--difl-a11y-bg);
	color: var(--difl-a11y-fg);
	font-size: 14px;
	text-align: start;
	cursor: pointer;
}

.difl-a11y-root .difl-a11y-toggle + .difl-a11y-toggle {
	margin-top: 6px;
}

.difl-a11y-root .difl-a11y-toggle:hover {
	background: var(--difl-a11y-soft);
}

.difl-a11y-root .difl-a11y-switch {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 22px;
	border: 2px solid var(--difl-a11y-muted);
	border-radius: 11px;
	background: var(--difl-a11y-bg);
}

.difl-a11y-root .difl-a11y-switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--difl-a11y-muted);
}

.difl-a11y-root .difl-a11y-toggle[aria-pressed="true"] .difl-a11y-switch {
	border-color: var(--difl-a11y-accent, #1a4fd6);
	background: var(--difl-a11y-accent, #1a4fd6);
}

.difl-a11y-root .difl-a11y-toggle[aria-pressed="true"] .difl-a11y-switch::after {
	left: 20px;
	background: var(--difl-a11y-accent-text, #fff);
}

/* Buttons */
.difl-a11y-root .difl-a11y-btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px solid var(--difl-a11y-line);
	border-radius: 8px;
	background: var(--difl-a11y-bg);
	color: var(--difl-a11y-fg);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.difl-a11y-root .difl-a11y-btn:hover:not(:disabled) {
	background: var(--difl-a11y-soft);
}

.difl-a11y-root .difl-a11y-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.difl-a11y-root .difl-a11y-btn--primary {
	border-color: var(--difl-a11y-accent, #1a4fd6);
	background: var(--difl-a11y-accent, #1a4fd6);
	color: var(--difl-a11y-accent-text, #fff);
}

.difl-a11y-root .difl-a11y-btn--primary:hover:not(:disabled) {
	background: var(--difl-a11y-accent, #1a4fd6);
	filter: brightness(0.92);
}

.difl-a11y-root .difl-a11y-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.difl-a11y-root .difl-a11y-value {
	flex: 0 0 64px;
	color: var(--difl-a11y-fg);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

/* Structure list */
.difl-a11y-root .difl-a11y-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.difl-a11y-root .difl-a11y-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.difl-a11y-root .difl-a11y-list li + li {
	margin-top: 2px;
}

.difl-a11y-root .difl-a11y-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--difl-a11y-fg);
	font-size: 14px;
	text-align: start;
	cursor: pointer;
	overflow-wrap: anywhere;
}

.difl-a11y-root .difl-a11y-item:hover {
	background: var(--difl-a11y-soft);
}

.difl-a11y-root .difl-a11y-item__tag {
	flex: 0 0 auto;
	min-width: 28px;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--difl-a11y-soft);
	color: var(--difl-a11y-fg);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.difl-a11y-root .difl-a11y-item__meta {
	display: block;
	color: var(--difl-a11y-muted);
	font-size: 12px;
}

.difl-a11y-root .difl-a11y-empty {
	margin-top: 8px;
	color: var(--difl-a11y-muted);
	font-size: 14px;
}

/* Focus: always visible inside the toolkit, whatever the site does. The ring colour and
   its halo follow the panel background (set inline from the dashboard setting). */
.difl-a11y-root :focus-visible,
.difl-a11y-reader :focus-visible {
	outline: 3px solid var(--difl-a11y-focus, #0b57d0) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px var(--difl-a11y-bg, #fff) !important;
}

.difl-a11y-root .difl-a11y-opt input:focus-visible + span {
	outline: 3px solid var(--difl-a11y-focus, #0b57d0);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--difl-a11y-bg, #fff);
}

@media (prefers-reduced-motion: no-preference) {
	.difl-a11y-root .difl-a11y-switch::after {
		transition: left 0.12s ease;
	}
}

@media (max-width: 600px) {
	.difl-a11y-root--hide-mobile {
		display: none !important;
	}

	.difl-a11y-root .difl-a11y-panel,
	.difl-a11y-root--middle_right .difl-a11y-panel,
	.difl-a11y-root--middle_left .difl-a11y-panel {
		top: auto;
		right: 8px;
		bottom: 8px;
		left: 8px;
		width: auto;
		max-width: none;
		max-height: 80vh;
		transform: none;
	}
}

@media (forced-colors: active) {
	.difl-a11y-root .difl-a11y-trigger,
	.difl-a11y-root .difl-a11y-panel {
		border: 2px solid CanvasText;
	}

	.difl-a11y-root .difl-a11y-opt input:checked + span,
	.difl-a11y-root .difl-a11y-tab[aria-selected="true"] {
		outline: 2px solid Highlight;
	}
}

/* ================================================================== */
/* 2. Page adjustments (html.difl-a11y--*)                             */
/* ================================================================== */

/* Specificity boost: `:is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, …)` never matches the
   id (no element has it) but lends the rule id-level specificity, so an adjustment the
   visitor chose still wins over theme rules such as `#main-header { … !important }`. */

/* ---- Readable font: skip icon fonts, code and the toolkit ---------- */
html.difl-a11y--font-sans body,
html.difl-a11y--font-sans body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not(i, code, pre, kbd, samp, svg, svg *, .fa, .fab, .fas, .far, .fal, .dashicons, [class*="icon"], [class*="fa-"], [data-icon], .difl-a11y-root, .difl-a11y-root *) {
	font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important;
}

html.difl-a11y--font-dyslexic body,
html.difl-a11y--font-dyslexic body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not(i, code, pre, kbd, samp, svg, svg *, .fa, .fab, .fas, .far, .fal, .dashicons, [class*="icon"], [class*="fa-"], [data-icon], .difl-a11y-root, .difl-a11y-root *) {
	font-family: "DIFL OpenDyslexic", "Comic Sans MS", Verdana, sans-serif !important;
}

/* ---- Text spacing (levels based on WCAG 1.4.12) -------------------- */
html.difl-a11y--lh-m body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, p, li, dt, dd, blockquote, figcaption, td, th, label, h1, h2, h3, h4, h5, h6, .et_pb_text_inner):not(.difl-a11y-root *) { line-height: 1.5 !important; }
html.difl-a11y--lh-l body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, p, li, dt, dd, blockquote, figcaption, td, th, label, h1, h2, h3, h4, h5, h6, .et_pb_text_inner):not(.difl-a11y-root *) { line-height: 1.8 !important; }
html.difl-a11y--lh-xl body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, p, li, dt, dd, blockquote, figcaption, td, th, label, h1, h2, h3, h4, h5, h6, .et_pb_text_inner):not(.difl-a11y-root *) { line-height: 2.1 !important; }

html.difl-a11y--ls-m body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not([class*="icon"], .difl-a11y-root, .difl-a11y-root *) { letter-spacing: 0.06em !important; }
html.difl-a11y--ls-l body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not([class*="icon"], .difl-a11y-root, .difl-a11y-root *) { letter-spacing: 0.12em !important; }
html.difl-a11y--ls-xl body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not([class*="icon"], .difl-a11y-root, .difl-a11y-root *) { letter-spacing: 0.18em !important; }

html.difl-a11y--ws-m body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not(.difl-a11y-root, .difl-a11y-root *) { word-spacing: 0.08em !important; }
html.difl-a11y--ws-l body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not(.difl-a11y-root, .difl-a11y-root *) { word-spacing: 0.16em !important; }
html.difl-a11y--ws-xl body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not(.difl-a11y-root, .difl-a11y-root *) { word-spacing: 0.32em !important; }

/* ---- Grayscale / dark ---------------------------------------------- */
/* Filters go on <html>: on the root element they do not create a containing block,
   so fixed/sticky headers and popups keep working. */
html.difl-a11y--grayscale {
	filter: grayscale(1);
}

html.difl-a11y--dark {
	background-color: #fff;
	filter: invert(1) hue-rotate(180deg);
}

/* Counter-invert media (and elements with background photos, marked by the toolkit)
   so photos, logos, video and embeds keep their real colors. */
/* The toolkit wrapper itself is never filtered: a filter would become the containing
   block of its fixed children. The trigger and panel are counter-inverted instead. */
html.difl-a11y--dark :is(img, picture, video, iframe, canvas, embed, object, .difl-a11y-bgimg, .difl-a11y-trigger, .difl-a11y-panel, .difl-a11y-overlay, .difl-a11y-reader):not(:is(picture, .difl-a11y-bgimg, .difl-a11y-panel, .difl-a11y-overlay, .difl-a11y-reader) *) {
	filter: invert(1) hue-rotate(180deg);
}

/* ---- High contrast -------------------------------------------------- */
/* Only elements that paint a background (marked difl-a11y-bg by the toolkit) are
   repainted black; transparent wrappers and full-screen overlays stay transparent. */
html.difl-a11y--contrast,
html.difl-a11y--contrast body,
html.difl-a11y--contrast :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, .difl-a11y-bg):not(.difl-a11y-root *, .difl-a11y-reader *) {
	background-color: #000 !important;
}

html.difl-a11y--contrast body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, *):not(img, picture, video, iframe, canvas, svg, svg *, .difl-a11y-root, .difl-a11y-root *, .difl-a11y-overlay, .difl-a11y-overlay *, .difl-a11y-reader, .difl-a11y-reader *) {
	border-color: #fff !important;
	color: #fff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.difl-a11y--contrast body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, a, a *):not(.difl-a11y-root *, .difl-a11y-reader *) {
	color: #ffeb3b !important;
}

html.difl-a11y--contrast body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, a):not(.difl-a11y-root *, .difl-a11y-reader *) {
	text-decoration: underline !important;
}

html.difl-a11y--contrast body :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, button, .et_pb_button, input[type="submit"], input[type="button"], [role="button"]):not(.difl-a11y-root *, .difl-a11y-reader *) {
	border: 2px solid #ffeb3b !important;
	color: #ffeb3b !important;
}

/* Inline SVG shapes with no fill of their own default to black and would vanish on
   black: give them the text color. Low specificity, so designed icon fills still win. */
html.difl-a11y--contrast :where(body svg:not([fill]) :is(path, rect, circle, ellipse, polygon, polyline):not([fill])) {
	fill: currentColor;
}

html.difl-a11y--contrast body ::placeholder {
	color: #d0d0d0 !important;
	opacity: 1 !important;
}

/* ---- Large cursor --------------------------------------------------- */
html.difl-a11y--cursor-large,
html.difl-a11y--cursor-large * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M6 3v22l5.5-5 3.6 8.2 3.4-1.5-3.6-8.1 7.3-.6z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 9 5, auto !important;
}

html.difl-a11y--cursor-large :is(a, a *, button, button *, [role="button"], [role="button"] *, label, select, summary, input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"], .et_pb_button) {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M6 3v22l5.5-5 3.6 8.2 3.4-1.5-3.6-8.1 7.3-.6z' fill='%231a4fd6' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 9 5, pointer !important;
}

html.difl-a11y--cursor-large :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"]), textarea, [contenteditable="true"]) {
	cursor: text !important;
}

/* ---- Pause animations: finish them instantly (end state stays visible) */
html.difl-a11y--no-motion *:not(.difl-a11y-root *),
html.difl-a11y--no-motion *::before,
html.difl-a11y--no-motion *::after {
	animation-duration: 0.001ms !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

/* ---- Hide images (space is kept so the layout does not jump) -------- */
html.difl-a11y--hide-images body :is(img, picture, [role="img"]):not(.difl-a11y-root *, .difl-a11y-overlay *) {
	visibility: hidden !important;
}

html.difl-a11y--hide-images :is(#difl-a11y-x#difl-a11y-x#difl-a11y-x, .difl-a11y-bgimg) {
	background-image: none !important;
}

/* ---- Focus highlight ------------------------------------------------ */
html.difl-a11y--focus body :focus-visible:not(.difl-a11y-root *) {
	outline: 3px solid var(--difl-a11y-accent, #1a4fd6) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9) !important;
}

/* ================================================================== */
/* 3. Overlays (ruler, mask, magnifier, cursor ring, tooltips)          */
/* ================================================================== */

.difl-a11y-overlay {
	position: fixed;
	z-index: 2147483500;
	top: 0;
	left: 0;
	pointer-events: none;
	will-change: transform;
}

.difl-a11y-ruler {
	width: 100vw;
	border-top: 3px solid var(--difl-a11y-accent, #1a4fd6);
	border-bottom: 3px solid var(--difl-a11y-accent, #1a4fd6);
	background: rgba(255, 235, 59, 0.18);
}

.difl-a11y-pane {
	width: 100vw;
	height: 100vh;
}

.difl-a11y-pane--v {
	width: 100vw;
	height: 100vh;
}

.difl-a11y-ring {
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border: 3px solid var(--difl-a11y-accent, #1a4fd6);
	border-radius: 50%;
	background: rgba(255, 235, 59, 0.3);
	box-shadow: 0 0 0 2px #fff;
}

.difl-a11y-bubble,
.difl-a11y-tip {
	max-width: min(640px, calc(100vw - 24px));
	padding: 10px 14px;
	border: 2px solid var(--difl-a11y-accent, #1a4fd6);
	border-radius: 8px;
	background: #fff;
	color: #111;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.35;
	overflow-wrap: anywhere;
	white-space: normal;
}

.difl-a11y-bubble[hidden],
.difl-a11y-tip[hidden],
.difl-a11y-overlay[hidden] {
	display: none !important;
}

.difl-a11y-bubble img {
	display: block;
	max-width: 100%;
	height: auto;
}

.difl-a11y-tip {
	max-width: 320px;
	font-size: 14px;
}

.difl-a11y-tts-current {
	outline: 3px dashed var(--difl-a11y-accent, #1a4fd6) !important;
	outline-offset: 3px !important;
	background-color: rgba(255, 235, 59, 0.35) !important;
}

.difl-a11y-target {
	outline: 3px solid var(--difl-a11y-accent, #1a4fd6) !important;
	outline-offset: 3px !important;
}

/* ---- Plain text reader ---------------------------------------------- */
html.difl-a11y--reader-open,
html.difl-a11y--reader-open body {
	overflow: hidden !important;
}

.difl-a11y-reader {
	position: fixed;
	z-index: 2147483550;
	inset: 0;
	overflow-y: auto;
	background: #fdfdfb;
	color: #111;
}

.difl-a11y-reader__bar {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid #ccc;
	background: #fdfdfb;
}

.difl-a11y-reader__bar h2 {
	margin: 0;
	padding: 0;
	color: #111;
	font-size: 18px;
}

.difl-a11y-reader__close {
	min-width: 44px;
	min-height: 44px;
	padding: 6px 14px;
	border: 1px solid #555;
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-size: 15px;
	cursor: pointer;
}

.difl-a11y-reader__body {
	max-width: 72ch;
	margin: 0 auto;
	padding: 24px 20px 64px;
	font-size: 19px;
	line-height: 1.7;
}

.difl-a11y-reader__body :is(h1, h2, h3, h4, h5, h6) {
	margin: 1.4em 0 0.5em;
	padding: 0;
	color: #111;
	line-height: 1.3;
}

.difl-a11y-reader__body p,
.difl-a11y-reader__body ul {
	margin: 0 0 1em;
	padding: 0;
	color: #111;
}

.difl-a11y-reader__body ul {
	padding-left: 1.4em;
	list-style: disc;
}

.difl-a11y-reader__body a {
	color: #0b4fc4;
	text-decoration: underline;
}

.difl-a11y-reader__img {
	color: #444;
	font-style: italic;
}
