/* ═══════════════════════════════════════════════════════════════════════════
   תפריט העדפות נגישות — עצמאי בכוונה.
   ───────────────────────────────────────────────────────────────────────────
   ‏נטען בנפרד מ-atra.css כי תשעה דפים ציבוריים (הפרסונות והמשפטיים) נכתבו
   ‏עם CSS מוטמע ואינם טוענים את הגיליון המשותף. תפריט שהיה יושב שם היה נעלם
   ‏דווקא בדפים עם הטקסט המשפטי הארוך — שם הוא הכי נחוץ.

   ‏אין כאן צד שלישי: אין קריאת רשת, ה-CSP נשאר script-src 'self', וההעדפות
   ‏נשמרות מקומית בדפדפן של המשתמש בלבד — לא נשלחות לשום מקום.
   ‏כל ההעדפות מוחלות דרך data-* על <html>, כדי שלא יתנגשו עם כללי הדפים.
   ═══════════════════════════════════════════════════════════════════════════ */

.a11y-fab{
  position:fixed; inset-inline-start:18px; bottom:18px; z-index:9998;
  width:52px; height:52px; border-radius:50%; cursor:pointer;
  background:#173B6D; color:#fff; border:2px solid #fff;
  box-shadow:0 6px 20px rgba(0,0,0,.28);
  display:grid; place-items:center; padding:0;
}
.a11y-fab:hover{background:#1E4D8C}
.a11y-fab svg{width:26px;height:26px}

.a11y-panel{
  position:fixed; inset-inline-start:18px; bottom:80px; z-index:9999;
  width:290px; max-width:calc(100vw - 36px); max-height:calc(100vh - 110px);
  overflow:auto; background:#fff; color:#12203A;
  border:1px solid rgba(23,59,109,.18); border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,.25); padding:18px;
  font-family:"Heebo","Segoe UI",system-ui,sans-serif; font-size:15px;
}
.a11y-panel[hidden]{display:none}
.a11y-panel h2{font-size:16px;font-weight:800;margin:0 0 12px;color:#173B6D}
.a11y-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 0;border-bottom:1px solid rgba(23,59,109,.08)}
.a11y-row:last-of-type{border-bottom:0}
.a11y-row span{font-weight:600}
.a11y-btns{display:flex;gap:6px}
.a11y-panel button.opt{
  min-width:38px; min-height:38px; padding:6px 11px; cursor:pointer;
  border:1.5px solid rgba(23,59,109,.25); border-radius:9px;
  background:#fff; color:#173B6D; font-weight:800; font-size:14px;
  font-family:inherit;
}
.a11y-panel button.opt:hover{background:#F3F1E9}
.a11y-panel button.opt[aria-pressed="true"]{background:#173B6D;color:#fff;border-color:#173B6D}
.a11y-reset{margin-top:12px;width:100%;padding:10px;cursor:pointer;
  border:1.5px solid rgba(23,59,109,.25);border-radius:10px;background:#fff;
  color:#173B6D;font-weight:800;font-family:inherit;font-size:14px;min-height:44px}
.a11y-reset:hover{background:#F3F1E9}
.a11y-note{margin:12px 0 0;font-size:12.5px;line-height:1.6;color:#54637E}
.a11y-note a{color:#173B6D;font-weight:700}

.a11y-fab:focus-visible,.a11y-panel button:focus-visible,.a11y-panel a:focus-visible{
  outline:3px solid #F2A877; outline-offset:3px;
}

/* ── ההעדפות עצמן ─────────────────────────────────────────────────────── */
/* הגדלת טקסט: על font-size של השורש, כך שכל יחידות ה-rem גדלות יחד */
html[data-a11y-font="1"]{font-size:112.5%}
html[data-a11y-font="2"]{font-size:125%}

/* ניגודיות גבוהה: מכהה טקסט ומבהיר רקעים, בלי לשבור את המותג */
html[data-a11y-contrast="on"] body{background:#fff}
html[data-a11y-contrast="on"] :root,
html[data-a11y-contrast="on"]{
  --muted:#3A4557; --ink:#000814; --line:rgba(12,27,52,.35);
  --accent-text:#8A3A08; --paper:#fff; --panel:#F2F4F8;
}
html[data-a11y-contrast="on"] p,
html[data-a11y-contrast="on"] li,
html[data-a11y-contrast="on"] td{color:#12203A}

/* הדגשת קישורים: קו תחתון מודגש לכל קישור בתוכן */
html[data-a11y-links="on"] main a,
html[data-a11y-links="on"] article a,
html[data-a11y-links="on"] .doc a{
  text-decoration:underline !important; text-underline-offset:3px;
  text-decoration-thickness:2px; font-weight:700;
}

/* עצירת אנימציות — משלים את prefers-reduced-motion לבחירה מפורשת */
html[data-a11y-motion="off"] *,
html[data-a11y-motion="off"] *::before,
html[data-a11y-motion="off"] *::after{
  animation-duration:.001ms !important; animation-iteration-count:1 !important;
  transition-duration:.001ms !important; scroll-behavior:auto !important;
}
html[data-a11y-motion="off"] .reveal{opacity:1 !important;transform:none !important}

@media print{.a11y-fab,.a11y-panel{display:none !important}}
