/* Accessibility menu (2026-11-12; public/site/a11y.js). Own file: the public site AND the personal area load it, so it carries its own colours and
   does not depend on either design system. */
#a11y-root { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 10000; direction: rtl; font-size: 16px; line-height: 1.4; }
.a11y-toggle { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 0 12px 12px 0; background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #0ea5e9 100%); color: #fff; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(15,23,42,.45); }
.a11y-toggle:hover { filter: brightness(1.08); }
.a11y-toggle:focus-visible, .a11y-btn:focus-visible, .a11y-close:focus-visible, .a11y-reset:focus-visible, .a11y-statement:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 2px; }
.a11y-panel { position: absolute; left: 52px; top: 50%; transform: translateY(-50%); width: min(330px, calc(100vw - 72px)); max-height: 82vh; overflow-y: auto; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(15,23,42,.28); padding: 14px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 18px; }
.a11y-close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #475569; padding: 2px 8px; border-radius: 8px; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 8px 6px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; color: #0f172a; font: inherit; font-size: 14px; cursor: pointer; text-align: center; }
.a11y-btn:hover { border-color: #6366f1; }
.a11y-btn[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.a11y-sym { font-weight: 800; font-size: 18px; direction: ltr; }
.a11y-size { margin: 10px 0 0; font-size: 14px; color: #475569; text-align: center; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.a11y-reset { border: 0; border-radius: 10px; background: #b91c1c; color: #fff; font: inherit; font-size: 14px; font-weight: 700; padding: 9px 14px; cursor: pointer; }
.a11y-reset:hover { background: #991b1b; }
.a11y-statement { color: #4f46e5; font-size: 14px; font-weight: 600; }

html.a11y-scaled body > :where(*:not(#a11y-root, canvas, .center-logo, .skip-link, script, iframe)) { zoom: var(--a11y-zoom); }
html.a11y-gray { filter: grayscale(1); }
html.a11y-links a:not(.a11y-statement) { text-decoration: underline !important; text-underline-offset: 3px; background: #fff3b0 !important; color: #111827 !important; outline: 2px solid #f59e0b; outline-offset: 1px; }
html.a11y-font body, html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, Helvetica, 'Segoe UI', sans-serif !important; }
html.a11y-spacing body *:not(#a11y-root):not(#a11y-root *) { letter-spacing: .12em !important; word-spacing: .16em !important; line-height: 1.8 !important; }
html.a11y-spacing p { margin-bottom: 1.4em !important; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-noanim .bg-canvas { display: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.4 1.6L10 19z' fill='black' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-cursor a, html.a11y-cursor button, html.a11y-cursor [role="button"], html.a11y-cursor select, html.a11y-cursor summary, html.a11y-cursor label, html.a11y-cursor input[type="checkbox"], html.a11y-cursor input[type="radio"], html.a11y-cursor a *, html.a11y-cursor button * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.4 1.6L10 19z' fill='%234f46e5' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer !important; }
html.a11y-contrast :where(*:not(img, svg, svg *, canvas, .a11y-btn[aria-pressed="true"], .a11y-reset)) { background: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast a { color: #ffeb3b !important; background: transparent !important; text-decoration: underline !important; }
html.a11y-contrast .bg-canvas, html.a11y-contrast .center-logo { display: none !important; }
html.a11y-contrast .topbar .brand img { filter: brightness(0) invert(1); }
html.a11y-contrast .a11y-btn[aria-pressed="true"] { background: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .a11y-btn[aria-pressed="true"] * { background: transparent !important; color: #000 !important; }
html.a11y-contrast .a11y-reset { background: #b91c1c !important; color: #fff !important; }
@media print { #a11y-root, .skip-link { display: none !important; } }

/* the compact variant (personal area and sign-in pages): a small round button in the bottom-left corner that stays out of the way */
#a11y-root.a11y-compact { top: auto; bottom: 14px; left: 14px; transform: none; }
#a11y-root.a11y-compact .a11y-toggle { width: 34px; height: 34px; border-radius: 50%; opacity: .78; box-shadow: 0 4px 12px -4px rgba(15,23,42,.45); }
#a11y-root.a11y-compact .a11y-toggle:hover, #a11y-root.a11y-compact .a11y-toggle:focus-visible { opacity: 1; }
#a11y-root.a11y-compact .a11y-toggle svg { width: 18px; height: 18px; }
#a11y-root.a11y-compact .a11y-panel { left: 0; bottom: 44px; top: auto; transform: none; }
/* the personal area: its side menu keeps its size (the page beside it is what grows) */
html.a11y-scaled body.has-oshell > .owner-side { zoom: 1; }
