/* =========================================================
 * CLV WCAG Accessibility – frontend
 * ========================================================= */

/* Defaults for the inline-overridable vars — kept on :root so #clv-wcag-root rules
   never create a self-referencing cycle (which would invalidate the variable). */
:root {
	--clv-wcag-primary: #3b5cff;
	--clv-wcag-accent: #2440d6;
	--clv-wcag-icon-size: 56px;
}

#clv-wcag-root {
	--clv-wcag-bg: #ffffff;
	--clv-wcag-surface: #f4f5fb;
	--clv-wcag-border: #e6e8f1;
	--clv-wcag-text: #1d2240;
	--clv-wcag-muted: #6b7280;
	--clv-wcag-shadow: 0 12px 40px rgba(28, 34, 64, 0.18);
	--clv-wcag-radius: 18px;
	--clv-wcag-gap: 16px;
	--clv-wcag-edge: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--clv-wcag-text);
	font-size: 14px;
	line-height: 1.4;
}

#clv-wcag-root *,
#clv-wcag-root *::before,
#clv-wcag-root *::after {
	box-sizing: border-box;
}

/* ===== Trigger button =====
   Notes:
   - !important is used on layout-critical props (width/height/bg/border/padding/radius)
     to defeat broad theme rules like `button { width: 300px }`.
   - var() calls always carry a fallback so the widget still looks right if the inline
     CSS variables are missing for any reason. */
#clv-wcag-root .clv-wcag-trigger {
	position: fixed !important;
	z-index: 2147483600;
	width: var(--clv-wcag-icon-size, 56px) !important;
	height: var(--clv-wcag-icon-size, 56px) !important;
	min-width: 0 !important;
	max-width: none !important;
	border-radius: 50% !important;
	border: 0 !important;
	cursor: pointer;
	background: linear-gradient(135deg, var(--clv-wcag-primary, #3b5cff), var(--clv-wcag-accent, #2440d6)) !important;
	color: #fff !important;
	box-shadow: var(--clv-wcag-shadow);
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: transform .18s ease, box-shadow .18s ease;
	padding: 0 !important;
	margin: 0 !important;
	font-family: inherit;
	font-size: 0;
	letter-spacing: normal;
	text-transform: none;
	box-sizing: border-box;
	line-height: 1;
}

#clv-wcag-root .clv-wcag-trigger:hover,
#clv-wcag-root .clv-wcag-trigger:focus-visible {
	transform: scale(1.06);
	outline: none;
	box-shadow: 0 18px 50px rgba(28, 34, 64, 0.28);
}

#clv-wcag-root .clv-wcag-trigger svg {
	width: 60% !important;
	height: 60% !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
}

#clv-wcag-root.is-widget-hidden .clv-wcag-trigger {
	opacity: 0;
	pointer-events: none;
	transform: scale(.4);
}

/* ===== Overlay ===== */
.clv-wcag-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483500;
	background: rgba(15, 20, 40, .35);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .18s ease;
}

#clv-wcag-root.is-open .clv-wcag-overlay {
	opacity: 1;
}

/* ===== Panel ===== */
#clv-wcag-root .clv-wcag-panel {
	position: fixed !important;
	z-index: 2147483550;
	width: 360px !important;
	max-width: calc(100vw - 24px) !important;
	max-height: calc(100vh - 24px);
	background: var(--clv-wcag-bg, #fff) !important;
	border: 0 !important;
	border-radius: var(--clv-wcag-radius, 18px) !important;
	box-shadow: var(--clv-wcag-shadow);
	display: flex !important;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(8px) scale(.98);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

#clv-wcag-root.is-open .clv-wcag-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

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

/* Header and footer must never shrink so the scrollable body absorbs all
   the overflow when the viewport gets short. Without this, in a flex column
   the header could shrink and clip the action buttons. */
#clv-wcag-root .clv-wcag-head,
#clv-wcag-root .clv-wcag-foot {
	flex-shrink: 0;
}

/* ===== Header ===== */
.clv-wcag-head {
	background: linear-gradient(135deg, var(--clv-wcag-primary), var(--clv-wcag-accent));
	color: #fff;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: relative;
}

.clv-wcag-head-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.clv-wcag-head-icon {
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, .18);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

#clv-wcag-root .clv-wcag-head-icon svg {
	width: 60% !important;
	height: 60% !important;
	max-width: none !important;
	max-height: none !important;
	color: #fff;
	display: block;
}

.clv-wcag-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	letter-spacing: .01em;
}

.clv-wcag-head-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

#clv-wcag-root .clv-wcag-action {
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	max-width: none !important;
	border-radius: 8px !important;
	border: 0 !important;
	background: transparent !important;
	color: rgba(255, 255, 255, .85) !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease;
	padding: 0 !important;
	margin: 0 !important;
	font-family: inherit;
	font-size: 0;
	line-height: 1;
	box-shadow: none;
	box-sizing: border-box;
}

#clv-wcag-root .clv-wcag-action:hover,
#clv-wcag-root .clv-wcag-action:focus-visible {
	background: rgba(255, 255, 255, .18) !important;
	color: #fff !important;
	outline: none;
}

#clv-wcag-root .clv-wcag-action svg {
	width: 18px !important;
	height: 18px !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
}

.clv-wcag-divider {
	width: 1px;
	height: 18px;
	background: rgba(255, 255, 255, .35);
	margin: 0 4px;
}

/* ===== Body ===== */
#clv-wcag-root .clv-wcag-body {
	overflow-y: auto;
	padding: 14px;
	background: #fff !important;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	min-height: 0;
}

#clv-wcag-root .clv-wcag-group {
	background: transparent;
	border-radius: 0;
	padding: 0;
	border: 0;
}

/* Subtle separator between groups */
#clv-wcag-root .clv-wcag-group + .clv-wcag-group {
	padding-top: 14px;
	border-top: 1px solid var(--clv-wcag-border, #e6e8f1);
}

#clv-wcag-root .clv-wcag-group-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--clv-wcag-muted, #6b7280);
	text-transform: none;
	letter-spacing: .01em;
}

.clv-wcag-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* ===== Feature buttons ===== */
#clv-wcag-root .clv-wcag-feature {
	position: relative !important;
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 10px 12px !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 56px;
	height: auto !important;
	border-radius: 12px !important;
	border: 1px solid var(--clv-wcag-border, #e6e8f1) !important;
	background: var(--clv-wcag-surface, #f4f5fb) !important;
	color: var(--clv-wcag-text, #1d2240) !important;
	cursor: pointer;
	text-align: left;
	text-transform: none !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.clv-wcag-feature:hover {
	border-color: var(--clv-wcag-primary);
}

.clv-wcag-feature:focus-visible {
	outline: 2px solid var(--clv-wcag-primary);
	outline-offset: 2px;
}

#clv-wcag-root .clv-wcag-feature-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--clv-wcag-border, #e6e8f1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--clv-wcag-primary, #3b5cff);
	flex-shrink: 0;
}

#clv-wcag-root .clv-wcag-feature-icon svg {
	width: 18px !important;
	height: 18px !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
}

.clv-wcag-feature-label {
	flex: 1;
	min-width: 0;
}

.clv-wcag-feature-level {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--clv-wcag-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(28, 34, 64, .25);
}

#clv-wcag-root .clv-wcag-feature.is-active {
	border-color: var(--clv-wcag-primary, #3b5cff) !important;
	background: linear-gradient(135deg, var(--clv-wcag-primary, #3b5cff), var(--clv-wcag-accent, #2440d6)) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(59, 92, 255, .25);
}

#clv-wcag-root .clv-wcag-feature.is-active .clv-wcag-feature-icon {
	background: rgba(255, 255, 255, .2);
	border-color: transparent;
	color: #fff;
}

.clv-wcag-feature.is-active .clv-wcag-feature-level {
	display: flex;
}

/* ===== Footer ===== */
.clv-wcag-foot {
	background: linear-gradient(135deg, var(--clv-wcag-primary), var(--clv-wcag-accent));
	color: #fff;
	padding: 10px 18px;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.clv-wcag-foot a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	margin-left: 4px;
}

.clv-wcag-foot a:hover {
	text-decoration: underline;
}

/* =========================================================
 * Position variants — trigger + panel placement.
 * Every var() carries a fallback so the calc() never collapses
 * to `auto` (which would drop the panel into document flow).
 * `!important` defends against aggressive theme button rules.
 * ========================================================= */
/* edges (trigger) */
#clv-wcag-root.clv-wcag-pos-bottom-right .clv-wcag-trigger { right: var(--clv-wcag-edge, 20px) !important; bottom: var(--clv-wcag-edge, 20px) !important; left: auto !important; top: auto !important; }
#clv-wcag-root.clv-wcag-pos-bottom-left  .clv-wcag-trigger { left:  var(--clv-wcag-edge, 20px) !important; bottom: var(--clv-wcag-edge, 20px) !important; right: auto !important; top: auto !important; }
#clv-wcag-root.clv-wcag-pos-top-right    .clv-wcag-trigger { right: var(--clv-wcag-edge, 20px) !important; top:    var(--clv-wcag-edge, 20px) !important; left: auto !important; bottom: auto !important; }
#clv-wcag-root.clv-wcag-pos-top-left     .clv-wcag-trigger { left:  var(--clv-wcag-edge, 20px) !important; top:    var(--clv-wcag-edge, 20px) !important; right: auto !important; bottom: auto !important; }
#clv-wcag-root.clv-wcag-pos-bottom-center .clv-wcag-trigger { left: 50% !important; bottom: var(--clv-wcag-edge, 20px) !important; right: auto !important; top: auto !important; transform: translateX(-50%); }
#clv-wcag-root.clv-wcag-pos-bottom-center .clv-wcag-trigger:hover,
#clv-wcag-root.clv-wcag-pos-bottom-center .clv-wcag-trigger:focus-visible { transform: translateX(-50%) scale(1.06); }
#clv-wcag-root.clv-wcag-pos-top-center    .clv-wcag-trigger { left: 50% !important; top: var(--clv-wcag-edge, 20px) !important; right: auto !important; bottom: auto !important; transform: translateX(-50%); }
#clv-wcag-root.clv-wcag-pos-top-center    .clv-wcag-trigger:hover,
#clv-wcag-root.clv-wcag-pos-top-center    .clv-wcag-trigger:focus-visible { transform: translateX(-50%) scale(1.06); }
#clv-wcag-root.clv-wcag-pos-middle-left   .clv-wcag-trigger { left: var(--clv-wcag-edge, 20px) !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translateY(-50%); }
#clv-wcag-root.clv-wcag-pos-middle-left   .clv-wcag-trigger:hover,
#clv-wcag-root.clv-wcag-pos-middle-left   .clv-wcag-trigger:focus-visible { transform: translateY(-50%) scale(1.06); }
#clv-wcag-root.clv-wcag-pos-middle-right  .clv-wcag-trigger { right: var(--clv-wcag-edge, 20px) !important; top: 50% !important; left: auto !important; bottom: auto !important; transform: translateY(-50%); }
#clv-wcag-root.clv-wcag-pos-middle-right  .clv-wcag-trigger:hover,
#clv-wcag-root.clv-wcag-pos-middle-right  .clv-wcag-trigger:focus-visible { transform: translateY(-50%) scale(1.06); }
#clv-wcag-root.clv-wcag-pos-middle-center .clv-wcag-trigger { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%); }
#clv-wcag-root.clv-wcag-pos-middle-center .clv-wcag-trigger:hover,
#clv-wcag-root.clv-wcag-pos-middle-center .clv-wcag-trigger:focus-visible { transform: translate(-50%, -50%) scale(1.06); }

/* panel placement — anchored next to trigger, stays inside viewport */
#clv-wcag-root.clv-wcag-pos-bottom-right .clv-wcag-panel { right: var(--clv-wcag-edge, 20px) !important; bottom: calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; left: auto !important; top: auto !important; }
#clv-wcag-root.clv-wcag-pos-bottom-left  .clv-wcag-panel { left:  var(--clv-wcag-edge, 20px) !important; bottom: calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; right: auto !important; top: auto !important; }
#clv-wcag-root.clv-wcag-pos-top-right    .clv-wcag-panel { right: var(--clv-wcag-edge, 20px) !important; top:    calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; left: auto !important; bottom: auto !important; }
#clv-wcag-root.clv-wcag-pos-top-left     .clv-wcag-panel { left:  var(--clv-wcag-edge, 20px) !important; top:    calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; right: auto !important; bottom: auto !important; }
#clv-wcag-root.clv-wcag-pos-bottom-center .clv-wcag-panel { left: 50% !important; bottom: calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; right: auto !important; top: auto !important; transform: translateX(-50%) translateY(8px) scale(.98); }
#clv-wcag-root.clv-wcag-pos-bottom-center.is-open .clv-wcag-panel { transform: translateX(-50%); }
#clv-wcag-root.clv-wcag-pos-top-center    .clv-wcag-panel { left: 50% !important; top: calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; right: auto !important; bottom: auto !important; transform: translateX(-50%) translateY(8px) scale(.98); }
#clv-wcag-root.clv-wcag-pos-top-center.is-open .clv-wcag-panel { transform: translateX(-50%); }
#clv-wcag-root.clv-wcag-pos-middle-left   .clv-wcag-panel { left:  calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translateY(calc(-50% + 8px)) scale(.98); }
#clv-wcag-root.clv-wcag-pos-middle-left.is-open  .clv-wcag-panel { transform: translateY(-50%); }
#clv-wcag-root.clv-wcag-pos-middle-right  .clv-wcag-panel { right: calc(var(--clv-wcag-edge, 20px) + var(--clv-wcag-icon-size, 56px) + 12px) !important; top: 50% !important; left: auto !important; bottom: auto !important; transform: translateY(calc(-50% + 8px)) scale(.98); }
#clv-wcag-root.clv-wcag-pos-middle-right.is-open .clv-wcag-panel { transform: translateY(-50%); }
#clv-wcag-root.clv-wcag-pos-middle-center .clv-wcag-panel { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, calc(-50% + 8px)) scale(.98); }
#clv-wcag-root.clv-wcag-pos-middle-center.is-open .clv-wcag-panel { transform: translate(-50%, -50%); }

/* Cap panel height per position so the header never gets pushed off-screen
   on short viewports. The default `max-height: calc(100vh - 24px)` allowed
   the panel to be as tall as the viewport, which combined with a 88px
   bottom offset (edge + icon + gap) pushed the top — including the close /
   reset buttons — above the viewport. The body inside scrolls when content
   exceeds this cap. */
#clv-wcag-root.clv-wcag-pos-bottom-right  .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-bottom-left   .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-bottom-center .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-top-right     .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-top-left      .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-top-center    .clv-wcag-panel {
	max-height: calc(100vh - var(--clv-wcag-edge, 20px) - var(--clv-wcag-icon-size, 56px) - 24px) !important;
}
#clv-wcag-root.clv-wcag-pos-middle-left   .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-middle-right  .clv-wcag-panel,
#clv-wcag-root.clv-wcag-pos-middle-center .clv-wcag-panel {
	max-height: calc(100vh - 24px) !important;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
	.clv-wcag-panel {
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-width: none !important;
		bottom: 12px !important;
		top: auto !important;
		max-height: 80vh;
		transform: translateY(8px) scale(.98) !important;
	}
	#clv-wcag-root.is-open .clv-wcag-panel {
		transform: translateY(0) !important;
	}
}

/* =========================================================
 *  WCAG feature CSS — applied to <body> via JS
 * ========================================================= */

/* Larger text scaling is handled in JS — CSS `font-size: Xem` would shrink
   already-large headings (em is relative to parent). Reading computed size
   first and multiplying is the only way to scale uniformly. */

/* Line height — unitless values multiply against each element's own font-size,
   so no JS needed here. */
body.clv-wcag-line-height-1 :where(p, li, dd, dt, blockquote, figcaption, span, a, h1, h2, h3, h4, h5, h6, td, th) {
	line-height: 1.7 !important;
	letter-spacing: .02em !important;
}
body.clv-wcag-line-height-2 :where(p, li, dd, dt, blockquote, figcaption, span, a, h1, h2, h3, h4, h5, h6, td, th) {
	line-height: 2.1 !important;
	letter-spacing: .04em !important;
	word-spacing: .12em !important;
}

/* Text alignment — force left */
body.clv-wcag-text-align-on :where(p, li, dd, dt, blockquote, figcaption, h1, h2, h3, h4, h5, h6, td, th) {
	text-align: left !important;
}

/* Readable font */
body.clv-wcag-readable-font,
body.clv-wcag-readable-font :where(p, li, dd, dt, blockquote, figcaption, span, a, button, label, input, textarea, select, h1, h2, h3, h4, h5, h6, td, th, div) {
	font-family: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif !important;
}

/* Contrast — set body background once, then override descendants only.
   Including body in the descendant rule (comma list) would clobber the body
   background back to transparent. */
body.clv-wcag-contrast-1 {
	background: #000 !important;
	color: #fff !important;
}
body.clv-wcag-contrast-1 :where(p, li, dd, dt, blockquote, figcaption, span, button, label, input, textarea, select, h1, h2, h3, h4, h5, h6, td, th, div, header, footer, main, section, article, aside, nav) {
	background-color: transparent !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
}
body.clv-wcag-contrast-1 :where(a, a *) {
	color: #ffe600 !important;
	background-color: transparent !important;
}

body.clv-wcag-contrast-2 {
	background: #fff !important;
	color: #000 !important;
}
body.clv-wcag-contrast-2 :where(p, li, dd, dt, blockquote, figcaption, span, button, label, input, textarea, select, h1, h2, h3, h4, h5, h6, td, th, div, header, footer, main, section, article, aside, nav) {
	background-color: transparent !important;
	background-image: none !important;
	color: #000 !important;
	border-color: #000 !important;
}
body.clv-wcag-contrast-2 :where(a, a *) {
	color: #0000ee !important;
	background-color: transparent !important;
}

body.clv-wcag-contrast-3 {
	background: #ffff00 !important;
	color: #000 !important;
}
body.clv-wcag-contrast-3 :where(p, li, dd, dt, blockquote, figcaption, span, button, label, input, textarea, select, h1, h2, h3, h4, h5, h6, td, th, div, header, footer, main, section, article, aside, nav) {
	background-color: transparent !important;
	background-image: none !important;
	color: #000 !important;
	border-color: #000 !important;
}
body.clv-wcag-contrast-3 :where(a, a *) {
	color: #0000ee !important;
	background-color: transparent !important;
}

/* Grayscale — applying `filter` to <body> would create a containing block for
   position: fixed descendants, which slides our widget out of the viewport.
   Apply the filter to body's children instead, skipping the widget itself. */
body.clv-wcag-grayscale > *:not(#clv-wcag-root):not(script):not(style):not(noscript) {
	filter: grayscale(100%) !important;
}

/* Hide images */
body.clv-wcag-hide-images :where(img, picture, video, iframe:not([title*="map" i]), svg:not(#clv-wcag-root svg), figure) {
	visibility: hidden !important;
}

/* Pause animations */
body.clv-wcag-pause-animations *,
body.clv-wcag-pause-animations *::before,
body.clv-wcag-pause-animations *::after {
	animation-play-state: paused !important;
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* Highlight links */
body.clv-wcag-highlight-links :where(a, a *) {
	background: #ffe600 !important;
	color: #000 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	box-shadow: 0 0 0 2px #ffe600 !important;
	border-radius: 2px !important;
}

/* Focus outline */
body.clv-wcag-focus-outline :focus,
body.clv-wcag-focus-outline :focus-visible {
	outline: 3px solid #ff7a00 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 4px rgba(255, 122, 0, .25) !important;
}

/* Page structure (highlight headings + landmarks) */
body.clv-wcag-page-structure :where(h1, h2, h3, h4, h5, h6) {
	outline: 2px dashed #6366f1 !important;
	outline-offset: 4px !important;
	background: rgba(99, 102, 241, .06) !important;
}
body.clv-wcag-page-structure :where(header, footer, main, nav, aside, section, article, [role="banner"], [role="contentinfo"], [role="main"], [role="navigation"], [role="complementary"]) {
	outline: 2px dashed #16a34a !important;
	outline-offset: 0 !important;
}
body.clv-wcag-page-structure :where(h1)::before { content: "H1 "; }
body.clv-wcag-page-structure :where(h2)::before { content: "H2 "; }
body.clv-wcag-page-structure :where(h3)::before { content: "H3 "; }
body.clv-wcag-page-structure :where(h4)::before { content: "H4 "; }
body.clv-wcag-page-structure :where(h5)::before { content: "H5 "; }
body.clv-wcag-page-structure :where(h6)::before { content: "H6 "; }
body.clv-wcag-page-structure :where(h1, h2, h3, h4, h5, h6)::before {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 6px;
	background: #6366f1;
	color: #fff;
	font-size: .65em;
	font-weight: 700;
	border-radius: 4px;
	vertical-align: middle;
}

/* Reading mask — overlay element rendered by JS */
.clv-wcag-mask {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 2147483400;
	pointer-events: none;
	background: rgba(0, 0, 0, .65);
	transition: top .05s linear, height .05s linear;
}
.clv-wcag-mask.top {
	top: 0;
}
.clv-wcag-mask.bottom {
	bottom: 0;
}

/* Make sure widget itself is never hidden by features */
#clv-wcag-root,
#clv-wcag-root * {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	line-height: 1.4 !important;
	text-align: left !important;
}
#clv-wcag-root :where(h1, h2, h3, h4, h5, h6)::before {
	content: none !important;
}
body.clv-wcag-page-structure #clv-wcag-root :where(h1, h2, h3, h4, h5, h6),
body.clv-wcag-page-structure #clv-wcag-root :where(header, footer, main, nav, aside, section, article) {
	outline: none !important;
	background: inherit !important;
}
body.clv-wcag-highlight-links #clv-wcag-root :where(a, a *) {
	background: transparent !important;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
/* Contrast modes — keep widget colours intact regardless of body class.
   We can't use `revert` for descendants because that turns the panel body
   transparent (so the widget shows the page background through it). */
body.clv-wcag-contrast-1 #clv-wcag-root,
body.clv-wcag-contrast-2 #clv-wcag-root,
body.clv-wcag-contrast-3 #clv-wcag-root,
body.clv-wcag-contrast-1 #clv-wcag-root *,
body.clv-wcag-contrast-2 #clv-wcag-root *,
body.clv-wcag-contrast-3 #clv-wcag-root * {
	color: var(--clv-wcag-text, #1d2240) !important;
	border-color: var(--clv-wcag-border, #e6e8f1) !important;
}
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-panel,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-panel,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-panel,
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-body,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-body,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-body {
	background: #fff !important;
}
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-feature,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-feature,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-feature {
	background: var(--clv-wcag-surface, #f4f5fb) !important;
}
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-feature-icon,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-feature-icon,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-feature-icon {
	background: #fff !important;
	color: var(--clv-wcag-primary, #3b5cff) !important;
}
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-head,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-head,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-head,
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-foot,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-foot,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-foot,
body.clv-wcag-contrast-1 #clv-wcag-root .clv-wcag-feature.is-active,
body.clv-wcag-contrast-2 #clv-wcag-root .clv-wcag-feature.is-active,
body.clv-wcag-contrast-3 #clv-wcag-root .clv-wcag-feature.is-active {
	color: #fff !important;
	background: linear-gradient(135deg, var(--clv-wcag-primary), var(--clv-wcag-accent)) !important;
}
body.clv-wcag-hide-images #clv-wcag-root svg {
	visibility: visible !important;
}
