/* Rozbel accessibility menu (a11y.js). Source of truth: .claude/reapply/a11y.css; launch_prep.py copies it. */

/* ---------- the button and panel ---------- */
.a11y-fab{position:fixed;right:24px;bottom:24px;z-index:46;display:grid;place-items:center;width:50px;height:50px;padding:0;border:0;border-radius:50%;
  background:#1F3FD1;color:#fff;cursor:pointer;box-shadow:0 14px 34px -14px rgba(0,0,0,.6),0 0 0 3px rgba(255,255,255,.9);
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .15s cubic-bezier(.23,1,.32,1)}
.a11y-fab.stacked{bottom:88px}
.a11y-fab:active{transform:scale(.96)}
.a11y-fab:focus-visible{outline:3px solid #FFB800;outline-offset:3px}
.a11y-fab.on::after{content:"";position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:#22C55E;border:2px solid #fff}

.a11y-panel{position:fixed;right:24px;bottom:152px;z-index:1001;width:min(340px,calc(100vw - 32px));max-height:calc(100dvh - 180px);overflow-y:auto;
  overscroll-behavior:contain;padding:16px 16px 14px;border-radius:20px;background:#fff;color:#121521;
  font-family:'IBM Plex Sans Hebrew','Heebo',Arial,sans-serif;font-size:15px;line-height:1.4;text-align:start;
  box-shadow:0 2px 6px rgba(0,0,0,.18),0 30px 60px -20px rgba(0,0,0,.55);
  opacity:0;transform:translateY(8px);transition:opacity .18s ease,transform .22s cubic-bezier(.23,1,.32,1)}
.a11y-panel.in{opacity:1;transform:none}
.a11y-panel[hidden]{display:none}
.a11y-fab:not(.stacked) ~ .a11y-panel{bottom:88px}
.a11y-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.a11y-h b{font-size:18px;font-weight:700}
.a11y-x{display:grid;place-items:center;width:44px;height:44px;margin:-6px;border:0;border-radius:12px;background:transparent;color:#121521;cursor:pointer}
.a11y-size{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;margin-bottom:10px;border-radius:14px;background:#F2F4F9}
.a11y-size > div{display:flex;align-items:center;gap:6px;direction:ltr}
.a11y-s{min-width:48px;height:44px;border:1.5px solid #D5DAE6;border-radius:12px;background:#fff;color:#121521;font:700 16px/1 'Manrope',Arial,sans-serif;cursor:pointer}
.a11y-s:disabled{opacity:.35;cursor:default}
.a11y-sv{min-width:52px;text-align:center;font:600 14px/1 'Manrope',Arial,sans-serif;font-variant-numeric:tabular-nums}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-t{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:8px 12px;border:1.5px solid #D5DAE6;border-radius:14px;
  background:#fff;color:#121521;font:500 14.5px/1.25 inherit;font-family:inherit;text-align:start;cursor:pointer}
.a11y-t i{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid #9AA3B8}
.a11y-t[aria-pressed=true]{border-color:#1F3FD1;background:#EEF2FF}
.a11y-t[aria-pressed=true] i{border-color:#1F3FD1;background:#1F3FD1;box-shadow:inset 0 0 0 3px #EEF2FF}
.a11y-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.a11y-r{min-height:44px;padding:0 14px;border:0;border-radius:12px;background:#121521;color:#fff;font:600 14.5px/1 inherit;font-family:inherit;cursor:pointer}
.a11y-st{padding:12px 4px;color:#1F3FD1;font-size:14.5px;text-decoration:underline;text-underline-offset:3px}
.a11y-ui button:focus-visible,.a11y-ui a:focus-visible{outline:3px solid #FFB800;outline-offset:2px}
.a11y-ui,.a11y-ui *{-webkit-text-fill-color:currentColor}   /* contrast mode sets a white text fill on body; the menu keeps its own colours */
@media (max-width:640px){
  .a11y-fab{right:16px;width:48px;height:48px}
  .a11y-fab.stacked{bottom:84px}
  .a11y-panel{right:16px;bottom:144px}
  .a11y-fab:not(.stacked) ~ .a11y-panel{bottom:84px}
}
@media (prefers-reduced-motion:reduce){ .a11y-panel{transition:opacity .15s ease;transform:none} }

/* ---------- what each setting does to the page (the menu itself is never changed) ---------- */
html.a11y-zoom body{zoom:var(--a11y-zoom,1)}

html.a11y-contrast body,
html.a11y-contrast body *:not(svg):not(svg *):not(img):not(iframe):not(video):not(canvas):not(.a11y-ui):not(.a11y-ui *){
  background-color:#000 !important;background-image:none !important;color:#fff !important;-webkit-text-fill-color:#fff !important;
  border-color:#fff !important;box-shadow:none !important;text-shadow:none !important}
html.a11y-contrast body a:not(.a11y-ui *),html.a11y-contrast body a:not(.a11y-ui *) *{color:#FFE600 !important;-webkit-text-fill-color:#FFE600 !important}
html.a11y-contrast body svg:not(.a11y-ui *){color:#fff}
html.a11y-contrast .stars,html.a11y-contrast .bgfx,html.a11y-contrast #confetti{display:none !important}

html.a11y-gray body > *:not(.a11y-ui){filter:grayscale(1)}

html.a11y-links body a:not(.a11y-ui *){text-decoration:underline !important;text-underline-offset:3px;outline:2px solid #FFB800 !important;outline-offset:2px}

html.a11y-font body *:not(.a11y-ui):not(.a11y-ui *){font-family:Arial,'Heebo',sans-serif !important;font-style:normal !important}

html.a11y-spacing body *:not(.a11y-ui):not(.a11y-ui *){line-height:1.8 !important;letter-spacing:.06em !important;word-spacing:.14em !important}

html.a11y-still *,html.a11y-still *::before,html.a11y-still *::after{animation-duration:.001s !important;animation-iteration-count:1 !important;
  transition-duration:.001s !important;scroll-behavior:auto !important}
html.a11y-still #confetti,html.a11y-still .stars{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 11-7 1.5 4 7.5-3 1.5-4-7.5L4 21z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3,auto !important}
