/* ===== נגישות: תפריט נגישות ומצבי תצוגה (אתר איתמר בן־עמי, הותאם מאתר דליה מנשה) ===== */
/* הכפתור והתפריט: פינה ימנית תחתונה. בטלפון עולה מעל פס הטלפון הדביק (.sticky). */
.a11y{position:fixed;right:20px;bottom:20px;z-index:60;font-family:var(--body);direction:rtl;text-align:right;color:var(--ink);line-height:1.5}
.a11y-btn{all:unset;cursor:pointer;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--green);color:#fff;box-shadow:0 0 0 2px var(--brass),0 6px 18px rgba(0,0,0,.25)}
.a11y-btn:hover{background:var(--green3)}
.a11y-btn:focus-visible{outline:3px solid var(--brass);outline-offset:3px}
.a11y-btn svg{width:32px;height:32px;display:block}
.a11y-panel{position:absolute;bottom:66px;right:0;width:min(340px,calc(100vw - 32px));max-height:min(78vh,640px);overflow:auto;background:#fff;border:1.5px solid var(--green);box-shadow:0 12px 36px rgba(0,0,0,.22);padding:14px 14px 12px;font-size:14px}
.a11y-panel[hidden]{display:none}
.a11y-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;padding-bottom:10px;border-bottom:1.5px solid var(--green)}
.a11y-head strong{font-family:var(--display);font-weight:400;font-size:24px;line-height:1;color:var(--green)}
.a11y-close{all:unset;cursor:pointer;width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;font-weight:700}
.a11y-close:hover{background:var(--green);color:#fff}
.a11y-close:focus-visible{outline:3px solid var(--brass)}
.a11y-size{display:grid;grid-template-columns:44px 1fr 44px;gap:8px;align-items:center;margin-bottom:8px}
.a11y-size button{all:unset;cursor:pointer;height:44px;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--green);font-size:22px;font-weight:700}
.a11y-size button:hover{background:var(--green);color:#fff}
.a11y-size button:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
.a11y-size button[disabled]{opacity:.35;cursor:default}
.a11y-size span{text-align:center;font-weight:700;font-size:14px}
.a11y-size span b{display:block;font-size:12.5px;font-weight:500;color:var(--muted)}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-grid button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:68px;padding:8px 6px;border:1.5px solid var(--stone2);font-size:13.5px;font-weight:600;text-align:center;line-height:1.3}
.a11y-grid button svg{width:24px;height:24px;display:block;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.a11y-grid button:hover{border-color:var(--green)}
.a11y-grid button:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
.a11y-grid button[aria-pressed="true"]{background:var(--green);color:#fff;border-color:var(--green)}
.a11y-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--stone2)}
.a11y-foot button{all:unset;cursor:pointer;font-weight:700;padding:8px 12px;border:1.5px solid var(--green);font-size:13.5px}
.a11y-foot button:hover{background:var(--green);color:#fff}
.a11y-foot button:focus-visible,.a11y-foot a:focus-visible{outline:3px solid var(--brass);outline-offset:2px}
.a11y-foot a{color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px;font-size:13.5px}
@media (max-width:900px){
  .a11y{right:14px;bottom:calc(96px + env(safe-area-inset-bottom))}   /* פס הטלפון הדביק גבוה כ-80 פיקסלים */
  .a11y-btn{width:48px;height:48px}
  .a11y-panel{bottom:60px;max-height:calc(100vh - 170px)}
}
@media print{.a11y{display:none}}

/* ----- עצירת תנועה ----- */
html.a11y-static *{transition-duration:0s!important;animation-duration:0s!important;scroll-behavior:auto!important}

/* ----- הגדלת טקסט: zoom רק על main (zoom על פס קבוע מרחיב את חלון התצוגה בטלפון) ----- */
html.a11y-fs1 main{zoom:1.15}
html.a11y-fs2 main{zoom:1.3}
html.a11y-fs3 main{zoom:1.5}
html.a11y-fs1 .foot{font-size:1.15em}
html.a11y-fs2 .foot{font-size:1.3em}
html.a11y-fs3 .foot{font-size:1.5em}
html.a11y-static main{overflow-x:hidden}
html.a11y-fs2 :is(a[href^="mailto"],.facts dd),html.a11y-fs3 :is(a[href^="mailto"],.facts dd){overflow-wrap:anywhere}

/* ----- ניגודיות גבוהה: שחור, לבן וצהוב ----- */
html.a11y-contrast,html.a11y-contrast body{background:#000!important;color:#fff!important}
html.a11y-contrast *:not(img):not(svg):not(path):not(circle):not(rect){background-color:#000!important;background-image:none!important;color:#fff!important;border-color:#fff!important;box-shadow:none!important;text-shadow:none!important}
html.a11y-contrast :is(a,button,.btn,.btn *,.a11y-foot a){color:#ff0!important}
html.a11y-contrast :is(a,.btn){text-decoration:underline!important;text-underline-offset:3px}
html.a11y-contrast :is(.btn,.a11y-btn){border:2px solid #ff0!important}
html.a11y-contrast .a11y-grid button[aria-pressed="true"]{outline:3px solid #ff0!important;outline-offset:-3px}
html.a11y-contrast :focus-visible{outline:3px solid #ff0!important}

/* ----- צבעים הפוכים ושחור-לבן ----- */
html.a11y-invert{filter:invert(1) hue-rotate(180deg)}
html.a11y-invert img{filter:invert(1) hue-rotate(180deg)!important}
html.a11y-gray{filter:grayscale(1)}

/* ----- הדגשת קישורים ----- */
html.a11y-links a,html.a11y-links .btn{text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:2px;background:#ff0!important;color:#000!important;box-shadow:0 0 0 2px #000!important}
html.a11y-links .btn *{color:#000!important}

/* ----- גופן קריא ----- */
html.a11y-font,html.a11y-font *{font-family:Arial,Helvetica,sans-serif!important;letter-spacing:0!important}

/* ----- ריווח טקסט ----- */
html.a11y-spacing :is(p,li,dd,blockquote,figcaption,.a11y-grid button){line-height:2!important;letter-spacing:.08em!important;word-spacing:.16em!important}

/* ----- סמן גדול ----- */
html.a11y-cursor,html.a11y-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='M4 2l16 10-7 1.5L16 21l-3 1.5-3-7.5L4 19z' fill='%23000' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2,auto!important}
