/* ===== כפתור נגישות צף (שמאל למטה) ===== */
#a11y-widget { position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; direction: rtl; font-family: Assistant, sans-serif; font-size: 16px; line-height: 1.3; }
#a11y-widget [hidden] { display: none !important; }
#a11y-widget button { font: inherit; cursor: pointer; }
.a11y-toggle { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1a4fd6; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.a11y-toggle:hover { background: #123a9c; }
.a11y-panel { position: absolute; left: 0; bottom: 62px; width: 260px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: #111; border: 2px solid #1a4fd6; border-radius: 10px; padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.a11y-panel:focus { outline: none; }
.a11y-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a11y-close { background: none; border: 0; font-size: 26px; line-height: 1; color: #111; padding: 0 6px; }
.a11y-panel > button, .a11y-row button { display: block; width: 100%; margin: 0 0 6px; padding: 9px 10px; text-align: right; background: #f1f3f9; color: #111; border: 1px solid #8a93ad; border-radius: 6px; }
.a11y-panel > button:hover, .a11y-row button:hover { background: #dfe4f5; }
.a11y-panel button[aria-pressed="true"] { background: #1a4fd6; color: #fff; border-color: #1a4fd6; }
.a11y-panel button[aria-pressed="true"]::before { content: "✓ "; }
.a11y-panel button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.a11y-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.a11y-row button { margin: 0; text-align: center; }
.a11y-row span { min-width: 52px; text-align: center; font-weight: 700; }
.a11y-statement { display: block; margin-top: 6px; color: #1a4fd6; text-decoration: underline; }
#a11y-widget :focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }

/* ===== קישור דילוג ===== */
.a11y-skip { position: absolute; top: -100px; right: 8px; z-index: 2147483001; background: #fff; color: #1a4fd6; padding: 10px 16px; border: 2px solid #1a4fd6; border-radius: 6px; font-weight: 700; }
.a11y-skip:focus { top: 8px; }
main:focus { outline: none; }

/* ===== מצבי נגישות (על <html>) ===== */
/* הדגשת מיקוד */
html.a11y-focus :focus { outline: 3px solid #1a4fd6 !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px #fff !important; }
/* הדגשת קישורים */
html.a11y-links a[href] { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700; }
/* עצירת אנימציות */
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* ניגודיות גבוהה */
html.a11y-hc body, html.a11y-hc body *:not(#a11y-widget):not(#a11y-widget *) { 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-hc a, html.a11y-hc a * { color: #ffeb3b !important; }
html.a11y-hc button:not(#a11y-widget button), html.a11y-hc input, html.a11y-hc select, html.a11y-hc textarea { border: 2px solid #ffeb3b !important; }
html.a11y-hc img, html.a11y-hc video { filter: grayscale(1) contrast(1.2); }

/* ===== הכהיית/הבהרת תמונות רקע של ::before/::after (בשימוש "שיפור ניגודיות") ===== */
.a11y-dim-dark-before::before, .a11y-dim-dark-after::after { filter: brightness(.55); }
.a11y-dim-light-before::before, .a11y-dim-light-after::after { filter: brightness(1.7) contrast(.75); }
