/* Accessibility menu (js/a11y-2026.js) + the settings it applies (classes on <html>). Loaded on every page. */
.a11y-root, .a11y-root *, .a11y-root *::before, .a11y-root *::after { box-sizing: border-box; }
.a11y-root { position: fixed; left: 20px; bottom: 24px; z-index: 100000; font-family: "AB Heebo", "Heebo", Arial, sans-serif; direction: rtl; }
.a11y-btn {
	display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid #fff; border-radius: 50%; cursor: pointer;
	background: #0f2557; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease;
}
.a11y-btn:hover { transform: scale(1.06); }
.a11y-btn:focus-visible, .a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid #d8b47a; outline-offset: 2px; }
.a11y-panel {
	position: absolute; left: 0; bottom: 68px; width: min(320px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow: auto;
	padding: 12px; border-radius: 16px; background: #fff; color: #15171c; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); text-align: right;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 10px; }
.a11y-head p { margin: 0; font-size: 18px; font-weight: 500; color: #15171c; }
.a11y-panel button { font: inherit; color: inherit; cursor: pointer; }
.a11y-close, .a11y-reset { border: 0; background: none; padding: 4px 8px; border-radius: 8px; font-size: 14px !important; color: #555 !important; }
.a11y-close:hover, .a11y-reset:hover { background: rgba(0, 0, 0, 0.05); color: #000 !important; }
.a11y-row {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px;
	border: 0; border-radius: 12px; background: none; font-size: 15px !important; text-align: right;
}
button.a11y-row:hover { background: rgba(0, 0, 0, 0.05); }
.a11y-size { display: flex; align-items: center; gap: 4px; }
.a11y-size button { width: 36px; height: 36px; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 8px; background: #fff; }
.a11y-size button:disabled { opacity: 0.3; cursor: default; }
.a11y-pct { width: 44px; text-align: center; font-size: 14px; }
.a11y-switch { position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: rgba(0, 0, 0, 0.2); transition: background 0.2s ease; }
.a11y-switch::after { content: ""; position: absolute; top: 2px; left: 22px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left 0.2s ease; }
.a11y-row[aria-checked="true"] .a11y-switch { background: #0f2557; }
.a11y-row[aria-checked="true"] .a11y-switch::after { left: 2px; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.a11y-foot a { color: #0f2557 !important; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* --- applied settings --- */
/* text size: the theme uses px sizes, so the page is zoomed (the menu itself stays the same size) */
html.a11y-text-1 .site-wrapper { zoom: 1.15; }
html.a11y-text-2 .site-wrapper { zoom: 1.3; }
html.a11y-text-3 .site-wrapper { zoom: 1.45; }
/* contrast / grayscale: filter on <html> (on body it would break the fixed header and background) */
html.a11y-contrast { --a11y-c: contrast(1.35); }
html.a11y-gray { --a11y-g: grayscale(1); }
html.a11y-contrast, html.a11y-gray { filter: var(--a11y-c, contrast(1)) var(--a11y-g, grayscale(0)); }
html.a11y-contrast .ab-page p, html.a11y-contrast .ab-page li { color: #fff !important; }
html.a11y-links a:not(.a11y-root a) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid #ffd54a; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body *:not(.fa):not([class*="fa-"]) { font-family: Arial, "Heebo", sans-serif !important; letter-spacing: 0.02em !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .dg-reveal { opacity: 1 !important; transform: none !important; }
@media print { .a11y-root { display: none; } }

/* smaller button, light cream with a navy icon */
.a11y-btn { width: 44px; height: 44px; background: #e3d3b5; color: #0f2557; border: 1px solid rgba(216, 180, 122, 0.8); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
.a11y-btn svg { width: 24px; height: 24px; }
.a11y-panel { bottom: 56px; }
