/* ClickMonster Accessibility widget 1.2 */

/* ---------- Widget (isolated from theme styles) ---------- */
#cma-root {
	--cma-brand: #0b4f8a;
	--cma-lead: #0b4f8a;
	--cma-deep: #083a66;
	--cma-tint: #e8eef5;
	--cma-on: #fff;
	--cma-accent: var(--cma-lead);
	--cma-pilltext: var(--cma-deep);
	--cma-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cma-hfont: var(--cma-font);
	--cma-size: 56px; --cma-r: 50%; --cma-ox: 20px; --cma-oy: 20px;
	--cma-msize: 44px; --cma-mr: 50%; --cma-mox: 12px; --cma-moy: 12px;
	--cma-ring: #ffbf47;
	--cma-ink: #16191f;
	--cma-muted: #4b5361;
	position: static;
	font-size: 16px;
	line-height: 1.5;
	color: var(--cma-ink);
}
#cma-root, #cma-root * {
	box-sizing: border-box;
	font-family: var(--cma-font) !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	text-transform: none;
	text-shadow: none;
	float: none;
}
#cma-root [hidden] { display: none !important; }
#cma-root .cma-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
#cma-root svg { display: block; fill: currentColor; flex: none; }
#cma-root button { font: inherit; text-transform: none; letter-spacing: normal; }

/* Corner button */
#cma-root .cma-toggle {
	display: flex; align-items: center; justify-content: center;
	position: fixed; z-index: 2147483000;
	width: var(--cma-size); height: var(--cma-size); min-width: 0; margin: 0; padding: 0;
	border: 3px solid #fff; border-radius: var(--cma-r);
	background: var(--cma-brand); color: var(--cma-on);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .12);
	cursor: pointer; line-height: 1;
	transition: transform .15s ease, box-shadow .15s ease;
}
#cma-root .cma-toggle:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0, 0, 0, .32), 0 0 0 1px rgba(0, 0, 0, .12); }
#cma-root .cma-icon { fill: currentColor; width: 58%; height: 58%; }

/* Panel */
#cma-root .cma-panel {
	position: fixed; z-index: 2147483001;
	display: flex; flex-direction: column;
	width: min(400px, calc(100vw - 40px));
	max-height: min(720px, calc(100vh - 40px));
	background: #f2f4f7; color: var(--cma-ink);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(10, 20, 40, .35), 0 0 0 1px rgba(0, 0, 0, .08);
	overflow: hidden;
	text-align: left;
}
#cma-root .cma-panel:not([hidden]) { animation: cma-in .18s ease-out; }
@keyframes cma-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	#cma-root .cma-panel:not([hidden]) { animation: none; }
	#cma-root .cma-toggle, #cma-root .cma-tile, #cma-root .cma-sw, #cma-root .cma-sw span { transition: none !important; }
}

/* Desktop placement */
@media (min-width: 768px) {
	#cma-root.cma-dx-right .cma-toggle, #cma-root.cma-dx-right .cma-panel { right: var(--cma-ox); }
	#cma-root.cma-dx-left .cma-toggle, #cma-root.cma-dx-left .cma-panel { left: var(--cma-ox); }
	#cma-root.cma-dy-bottom .cma-toggle { bottom: var(--cma-oy); }
	#cma-root.cma-dy-top .cma-toggle { top: var(--cma-oy); }
	#cma-root.cma-dy-center .cma-toggle { top: calc(50% - var(--cma-size) / 2 + var(--cma-oy)); }
	#cma-root.cma-dy-bottom .cma-panel { bottom: calc(var(--cma-oy) + var(--cma-size) + 12px); max-height: min(720px, calc(100vh - var(--cma-oy) - var(--cma-size) - 32px)); }
	#cma-root.cma-dy-top .cma-panel { top: calc(var(--cma-oy) + var(--cma-size) + 12px); max-height: min(720px, calc(100vh - var(--cma-oy) - var(--cma-size) - 32px)); }
	#cma-root.cma-dy-center .cma-panel { top: 50%; transform: translateY(-50%); width: min(400px, calc(100vw - var(--cma-ox) - var(--cma-size) - 32px)); }
	#cma-root.cma-dy-center .cma-panel:not([hidden]) { animation: none; }
	#cma-root.cma-dy-center.cma-dx-right .cma-panel { right: calc(var(--cma-ox) + var(--cma-size) + 12px); }
	#cma-root.cma-dy-center.cma-dx-left .cma-panel { left: calc(var(--cma-ox) + var(--cma-size) + 12px); }
}

/* Header band */
#cma-root .cma-head {
	flex: none;
	padding: 14px 14px 34px 20px;
	color: var(--cma-on);
	background-color: var(--cma-lead);
	background-image:
		radial-gradient(circle at 92% -20%, rgba(255, 255, 255, .16) 0 90px, transparent 91px),
		radial-gradient(circle at 8% 130%, rgba(255, 255, 255, .10) 0 70px, transparent 71px),
		linear-gradient(135deg, var(--cma-lead), var(--cma-deep));
}
#cma-root .cma-head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#cma-root .cma-title { margin: 0; padding: 0; font-family: var(--cma-hfont) !important; font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--cma-on); border: 0; background: none; }
#cma-root .cma-close {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin: 0; padding: 0; flex: none;
	background: rgba(255, 255, 255, .22); color: var(--cma-on); border: 2px solid transparent; border-radius: 50%; cursor: pointer;
}
#cma-root .cma-close:hover { background: rgba(255, 255, 255, .34); border-color: currentColor; }
#cma-root .cma-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#cma-root .cma-pill {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 36px; margin: 0; padding: 6px 14px 6px 11px;
	background: #fff; color: var(--cma-pilltext);
	border: 0; border-radius: 999px;
	font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18); cursor: pointer;
}
#cma-root .cma-pill svg { width: 16px; height: 16px; }
#cma-root .cma-pill:hover { text-decoration: underline; }

/* Body: cards overlap the header */
#cma-root .cma-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 14px 6px; margin-top: -22px; position: relative; overscroll-behavior: contain; }
#cma-root .cma-card {
	margin: 0 0 12px; padding: 14px 16px;
	background: #fff; border-radius: 14px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .10), 0 0 0 1px rgba(16, 24, 40, .05);
}
#cma-root p { margin: 0 0 10px; padding: 0; font-size: 15px; line-height: 1.5; color: var(--cma-ink); }
#cma-root .cma-card > :last-child { margin-bottom: 0; }
#cma-root .cma-note { font-size: 13.5px; color: var(--cma-muted); }
#cma-root .cma-badges { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
#cma-root .cma-badge {
	display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 10px;
	background: var(--cma-tint); color: var(--cma-ink); border-radius: 10px;
	font-size: 13.5px; font-weight: 600; line-height: 1.35; list-style: none;
}
#cma-root .cma-badge::before { content: none; }
#cma-root .cma-badge svg { width: 18px; height: 18px; color: var(--cma-accent); margin-top: 1px; }

#cma-root .cma-sub { margin: 0 0 10px; padding: 0; font-family: var(--cma-hfont) !important; font-size: 16px; font-weight: 700; color: var(--cma-ink); line-height: 1.3; border: 0; background: none; }

/* Profiles */
#cma-root .cma-profiles { list-style: none; margin: 0; padding: 0; }
#cma-root .cma-profiles li { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e6e9ee; }
#cma-root .cma-profiles li:first-child { border-top: 0; }
#cma-root .cma-profiles li::before { content: none; }
#cma-root .cma-profile {
	display: flex; align-items: center; gap: 12px; width: 100%;
	margin: 0; padding: 10px 4px; min-height: 56px;
	background: none; border: 0; border-radius: 10px; color: var(--cma-ink);
	text-align: left; cursor: pointer;
}
#cma-root .cma-profile:hover { background: #f5f7fa; }
#cma-root .cma-sw {
	position: relative; display: inline-flex; flex: none; width: 70px; height: 30px; padding: 3px;
	background: #e3e7ed; border-radius: 999px; box-shadow: inset 0 0 0 1px #9aa3b0;
}
#cma-root .cma-sw span {
	flex: 1; display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 700; line-height: 1; border-radius: 999px; color: #3d4450;
	transition: background .15s ease, color .15s ease;
}
#cma-root .cma-sw-off { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); color: var(--cma-ink); }
#cma-root .cma-profile[aria-checked="true"] .cma-sw { background: var(--cma-tint); }
#cma-root .cma-profile[aria-checked="true"] .cma-sw-off { background: transparent; box-shadow: none; color: #3d4450; }
#cma-root .cma-profile[aria-checked="true"] .cma-sw-on { background: var(--cma-lead); color: var(--cma-on); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
#cma-root .cma-pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#cma-root .cma-pn { font-size: 15px; font-weight: 700; line-height: 1.3; }
#cma-root .cma-pd { font-size: 13px; line-height: 1.35; color: var(--cma-muted); }
#cma-root .cma-pi { width: 22px; height: 22px; color: var(--cma-accent); }

/* Text size stepper */
#cma-root .cma-size {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 8px 8px 14px;
	background: #f5f7fa; border-radius: 12px; box-shadow: inset 0 0 0 1px #e1e5eb;
}
#cma-root .cma-size-l { flex: 1; font-size: 15px; font-weight: 700; }
#cma-root .cma-size-v { min-width: 64px; text-align: center; font-size: 14px; font-weight: 600; color: var(--cma-ink); }
#cma-root .cma-step {
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0;
	background: var(--cma-lead); color: var(--cma-on); border: 0; border-radius: 50%; cursor: pointer;
}
#cma-root .cma-step svg { width: 20px; height: 20px; }
#cma-root .cma-step[aria-disabled="true"] { background: #d5dae1; color: #4b5361; cursor: default; }

/* Tiles */
#cma-root .cma-tiles { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#cma-root .cma-tiles li { margin: 0; padding: 0; list-style: none; }
#cma-root .cma-tiles li::before { content: none; }
#cma-root .cma-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	width: 100%; min-height: 84px; margin: 0; padding: 12px 6px 10px;
	background: #fff; color: var(--cma-ink);
	border: 2px solid #d6dbe2; border-radius: 12px;
	font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
#cma-root .cma-tile svg.cma-ui { width: 26px; height: 26px; color: var(--cma-accent); }
#cma-root .cma-tile:hover { border-color: var(--cma-accent); }
#cma-root .cma-tile .cma-tick { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; display: none; }
#cma-root .cma-tile[aria-pressed="true"] { background: var(--cma-lead); border-color: var(--cma-lead); color: var(--cma-on); }
#cma-root .cma-tile[aria-pressed="true"] svg.cma-ui { color: var(--cma-on); }
#cma-root .cma-tile[aria-pressed="true"] .cma-tick { display: block; }

#cma-root .cma-status { margin: 0; }

/* Footer bar */
#cma-root .cma-credit {
	flex: none; margin: 0; padding: 10px 16px; text-align: center;
	background: var(--cma-deep); color: var(--cma-on); font-size: 13px; font-weight: 600;
}
#cma-root .cma-credit a { color: var(--cma-on); text-decoration: underline; text-underline-offset: 2px; }

/* Strong focus for everything in the widget */
#cma-root a:focus-visible, #cma-root button:focus-visible, #cma-root input:focus-visible {
	outline: 3px solid var(--cma-ring) !important; outline-offset: 2px !important;
	box-shadow: 0 0 0 6px #16191f !important;
}
#cma-root .cma-title:focus { outline: none; }

/* Reading guide bar (lives in the widget so page styles never touch it) */
#cma-root .cma-guide {
	position: fixed; left: 0; right: 0; top: 0; z-index: 2147482999; height: 44px; pointer-events: none;
	border-top: 4px solid var(--cma-accent); border-bottom: 4px solid var(--cma-accent);
	background: rgba(255, 230, 120, .18);
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .28);
}

/* Mobile placement */
@media (max-width: 767px) {
	#cma-root.cma-hide-mobile { display: none !important; }
	#cma-root .cma-toggle { width: var(--cma-msize); height: var(--cma-msize); border-radius: var(--cma-mr); }
	#cma-root.cma-mx-right .cma-toggle { right: var(--cma-mox); }
	#cma-root.cma-mx-left .cma-toggle { left: var(--cma-mox); }
	#cma-root.cma-my-bottom .cma-toggle { bottom: var(--cma-moy); }
	#cma-root.cma-my-top .cma-toggle { top: var(--cma-moy); }
	#cma-root.cma-my-center .cma-toggle { top: calc(50% - var(--cma-msize) / 2 + var(--cma-moy)); }
	#cma-root .cma-panel { left: 10px; right: 10px; width: auto; border-radius: 18px; }
	#cma-root.cma-my-bottom .cma-panel { bottom: calc(var(--cma-moy) + var(--cma-msize) + 10px); max-height: calc(100vh - var(--cma-moy) - var(--cma-msize) - 24px); }
	#cma-root.cma-my-top .cma-panel { top: calc(var(--cma-moy) + var(--cma-msize) + 10px); max-height: calc(100vh - var(--cma-moy) - var(--cma-msize) - 24px); }
	#cma-root.cma-my-center .cma-panel { top: 50%; transform: translateY(-50%); max-height: calc(100vh - 24px); }
	#cma-root.cma-my-center .cma-panel:not([hidden]) { animation: none; }
}
@media (max-width: 359px) {
	#cma-root .cma-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { #cma-root { display: none !important; } }
@media (forced-colors: active) {
	#cma-root .cma-toggle, #cma-root .cma-panel, #cma-root .cma-tile, #cma-root .cma-pill, #cma-root .cma-sw { border: 2px solid CanvasText; }
	#cma-root .cma-tile[aria-pressed="true"], #cma-root .cma-profile[aria-checked="true"] .cma-sw-on { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* Statement page lists: comfortable spacing and target size */
.cma-statement ul li { margin-bottom: .6em; }
.cma-statement ul li a { display: inline-block; padding: 4px 0; min-height: 24px; }

/* ---------- Visitor display preferences (page content only, never the widget) ---------- */

/* Text size: zooms the page so layouts reflow like browser zoom */
html.cma-text-1 body > :not(#cma-root) { zoom: 1.15; }
html.cma-text-2 body > :not(#cma-root) { zoom: 1.3; }

/* High contrast */
html.cma-contrast body { background: #fff !important; }
html.cma-contrast body > :not(#cma-root),
html.cma-contrast body > :not(#cma-root) *:not(img):not(svg):not(svg *):not(video):not(iframe) {
	color: #000 !important;
	background-color: #fff !important;
	background-image: none !important;
	border-color: #000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.cma-contrast body > :not(#cma-root) a,
html.cma-contrast body > :not(#cma-root) a * { color: #0000c8 !important; text-decoration: underline !important; }
html.cma-contrast body > :not(#cma-root) ::placeholder { color: #333 !important; opacity: 1 !important; }
html.cma-contrast body > :not(#cma-root) input,
html.cma-contrast body > :not(#cma-root) select,
html.cma-contrast body > :not(#cma-root) textarea,
html.cma-contrast body > :not(#cma-root) button,
html.cma-contrast body > :not(#cma-root) .fusion-button,
html.cma-contrast body > :not(#cma-root) .button,
html.cma-contrast body > :not(#cma-root) .wp-block-button__link { border: 2px solid #000 !important; }

/* Underline links */
html.cma-underline body > :not(#cma-root) a { text-decoration: underline !important; text-underline-offset: 2px; }

/* Easy-to-read font (skips icon fonts) */
html.cma-font body > :not(#cma-root),
html.cma-font body > :not(#cma-root) *:not(i):not([class*="icon"]):not([class*="fa-"]):not([class*="dashicons"]) {
	font-family: Verdana, Tahoma, Arial, sans-serif !important;
}

/* More text spacing (WCAG 1.4.12 values) */
html.cma-spacing body > :not(#cma-root) p,
html.cma-spacing body > :not(#cma-root) li,
html.cma-spacing body > :not(#cma-root) td,
html.cma-spacing body > :not(#cma-root) dd,
html.cma-spacing body > :not(#cma-root) blockquote {
	line-height: 1.6 !important;
	letter-spacing: .12em !important;
	word-spacing: .16em !important;
}
html.cma-spacing body > :not(#cma-root) p { margin-bottom: 2em !important; }

/* Stop animations */
html.cma-pause body > :not(#cma-root),
html.cma-pause body > :not(#cma-root) *,
html.cma-pause body > :not(#cma-root) *::before,
html.cma-pause body > :not(#cma-root) *::after {
	animation-duration: .001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: .001ms !important;
	scroll-behavior: auto !important;
}

/* Highlight keyboard focus */
html.cma-focus body > :not(#cma-root) :focus-visible {
	outline: 3px solid #ffbf47 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 6px #000 !important;
}

/* Big cursor */
html.cma-cursor, html.cma-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 10.5-6.2 1 3.7 7.3-2.7 1.4-3.7-7.4L5 19.5z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 10 4, auto !important;
}

/* Hide decorative images: only <img> explicitly marked decorative (empty alt, presentation/none
   or aria-hidden). Background images, meaningful images, video and media controls are left alone. */
html.cma-images body > :not(#cma-root) img[alt=""],
html.cma-images body > :not(#cma-root) img[role="presentation"],
html.cma-images body > :not(#cma-root) img[role="none"],
html.cma-images body > :not(#cma-root) [aria-hidden="true"] img,
html.cma-images body > :not(#cma-root) img[aria-hidden="true"] { visibility: hidden !important; }
