/* ===== רכיב נגישות: כפתור צף + תפריט ===== */
.a11y-btn{
  position:fixed;z-index:65;left:clamp(14px,2vw,28px);bottom:clamp(14px,2.4vh,28px);
  width:54px;height:54px;border-radius:50%;border:0;padding:0;cursor:pointer;display:grid;place-items:center;
  background:radial-gradient(circle at 50% 35%,#16302b,#04110f 70%);color:#fff;
  box-shadow:0 0 0 1.5px rgba(127,227,208,.75),0 0 22px rgba(94,203,184,.45),0 12px 26px -10px rgba(0,0,0,.8);
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s;
}
.a11y-btn:hover,.a11y-btn[aria-expanded="true"]{transform:scale(1.06);box-shadow:0 0 0 2px #7fe3d0,0 0 30px rgba(94,203,184,.7),0 12px 26px -10px rgba(0,0,0,.8)}
.a11y-btn:focus-visible{outline:3px solid #ffde00;outline-offset:3px}
.a11y-btn svg{width:30px;height:30px;fill:currentColor}

.a11y-panel{
  position:fixed;z-index:66;left:clamp(14px,2vw,28px);bottom:calc(clamp(14px,2.4vh,28px) + 66px);
  width:min(340px,calc(100vw - 28px));max-height:calc(100vh - 110px);overflow:auto;overscroll-behavior:contain;
  direction:rtl;text-align:right;font-family:"Discovery","Heebo",system-ui,sans-serif;font-size:15px;line-height:1.4;color:#eaf6f3;
  background:#071114;border-radius:22px;padding:18px 16px 16px;
  box-shadow:0 0 0 1px rgba(127,227,208,.35),0 30px 70px -20px rgba(0,0,0,.9),0 0 40px rgba(94,203,184,.15);
  opacity:0;transform:translateY(12px) scale(.98);transform-origin:left bottom;pointer-events:none;visibility:hidden;
  transition:opacity .25s,transform .35s cubic-bezier(.22,1,.36,1),visibility 0s .35s;
}
.a11y-panel.open{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .25s,transform .35s cubic-bezier(.22,1,.36,1)}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.a11y-head h2{margin:0;font-family:"Cooperative","Discovery",sans-serif;font-weight:400;font-size:26px;line-height:1;color:#fff}
.a11y-x{width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1}
.a11y-x:hover{background:rgba(255,255,255,.16)}

.a11y-size{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;margin-bottom:10px;border-radius:14px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.a11y-size span{flex:1}
.a11y-size output{min-width:46px;text-align:center;color:#7fe3d0;font-weight:600}
.a11y-size button{width:44px;height:44px;border-radius:12px;border:0;cursor:pointer;background:rgba(127,227,208,.14);color:#fff;font-size:22px;line-height:1}
.a11y-size button:hover{background:rgba(127,227,208,.28)}
.a11y-size button:disabled{opacity:.35;cursor:default}

.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-opt{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;padding:10px 6px;
  border-radius:14px;border:0;cursor:pointer;font:inherit;font-size:13.5px;color:#eaf6f3;text-align:center;
  background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);transition:background .2s,box-shadow .2s;
}
.a11y-opt svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.a11y-opt:hover{background:rgba(127,227,208,.1)}
.a11y-opt[aria-pressed="true"]{background:#5ecbb8;color:#04110f;box-shadow:none;font-weight:600}
.a11y-btn:focus-visible,.a11y-panel button:focus-visible,.a11y-panel a:focus-visible{outline:3px solid #ffde00;outline-offset:2px}

.a11y-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.a11y-reset{min-height:44px;padding:0 16px;border-radius:999px;border:0;cursor:pointer;font:inherit;font-size:14px;color:#fff;background:rgba(255,255,255,.08)}
.a11y-reset:hover{background:rgba(255,255,255,.16)}
.a11y-foot a{color:#7fe3d0;font-size:14px;text-underline-offset:3px;padding-block:12px}

@media (max-width:600px){
  .a11y-btn{width:50px;height:50px}
  .a11y-panel{left:0;right:0;bottom:0;width:100%;max-height:82vh;border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);transform-origin:center bottom}
  .a11y-panel.open{transform:none}
}

/* ===== ההתאמות עצמן (מחלקות על <html>) ===== */
html.a11y-zoom body{zoom:var(--a11y-zoom,1)}
html.a11y-contrast{filter:contrast(1.45) saturate(1.15)}
html.a11y-gray{filter:grayscale(1)}
html.a11y-contrast.a11y-gray{filter:grayscale(1) contrast(1.45)}
html.a11y-invert{filter:invert(1) hue-rotate(180deg)}
html.a11y-invert img,html.a11y-invert video,html.a11y-invert canvas,html.a11y-invert iframe,html.a11y-invert .a11y-btn,html.a11y-invert .a11y-panel{filter:invert(1) hue-rotate(180deg)}
html.a11y-links a{text-decoration:underline!important;text-underline-offset:3px;outline:2px solid #ffde00;outline-offset:2px}
html.a11y-font body,html.a11y-font body *:not(.script-deco):not(.signature):not(svg):not(svg *){font-family:Arial,"Heebo",system-ui,sans-serif!important;letter-spacing:normal!important}
html.a11y-spacing p,html.a11y-spacing li,html.a11y-spacing label,html.a11y-spacing .field span{line-height:2!important;letter-spacing:.04em!important;word-spacing:.14em!important}
html.a11y-focus :focus,html.a11y-focus :focus-visible{outline:3px solid #ffde00!important;outline-offset:3px!important;box-shadow:0 0 0 6px rgba(0,0,0,.85)!important}
html.a11y-cursor,html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9.5-6.6 1.3 4 7.2-3 1.6-4-7.2L4 19z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2,auto!important}
html.a11y-noanim *,html.a11y-noanim *::before,html.a11y-noanim *::after{animation-play-state:paused!important;transition-duration:.01ms!important;scroll-behavior:auto!important}

/* גרסה אנגלית: התפריט משמאל לימין */
html[lang="en"] .a11y-panel{direction:ltr;text-align:left}
