/* ==========================================================================
   חלונית נגישות – עיצוב (נטען בכל העמודים, יחד עם a11y.js)
   כל כללי "התאמת האתר" פעילים רק כשהגולש בחר אותם (מחלקות/מאפיינים על <html>).
   כשהחלונית סגורה ולא נבחר דבר, האתר נראה בדיוק כמו קודם; השינוי היחיד הוא הכפתור.
   ========================================================================== */

:root{--a11y-fs:100%}

/* ---------- 1. טקסט ---------- */
html.a11y-fs{font-size:var(--a11y-fs)}

html.a11y-lh1 .vb,html.a11y-lh1 .vb *:not(svg):not(svg *){line-height:1.6!important}
html.a11y-lh2 .vb,html.a11y-lh2 .vb *:not(svg):not(svg *){line-height:1.9!important}
html.a11y-lh3 .vb,html.a11y-lh3 .vb *:not(svg):not(svg *){line-height:2.2!important}

html.a11y-ws1 .vb{word-spacing:.16em}
html.a11y-ws2 .vb{word-spacing:.3em}
html.a11y-ws3 .vb{word-spacing:.5em}

html.a11y-ls1 .vb,html.a11y-ls1 .vb *:not(svg):not(svg *){letter-spacing:.06em!important}
html.a11y-ls2 .vb,html.a11y-ls2 .vb *:not(svg):not(svg *){letter-spacing:.12em!important}
html.a11y-ls3 .vb,html.a11y-ls3 .vb *:not(svg):not(svg *){letter-spacing:.2em!important}

html.a11y-font body,html.a11y-font .vb,html.a11y-font .vb *,html.a11y-font .skip,html.a11y-font .cb,html.a11y-font .cb *{font-family:Arial,Helvetica,Verdana,sans-serif!important}

/* שמירה על פריסה תקינה כשהטקסט מוגדל או מורווח: מאפשרים שבירת שורות ואריזה של אזורי הכותרת */
html.a11y-fs .vb,html.a11y-lh1 .vb,html.a11y-lh2 .vb,html.a11y-lh3 .vb,html.a11y-ws1 .vb,html.a11y-ws2 .vb,html.a11y-ws3 .vb,html.a11y-ls1 .vb,html.a11y-ls2 .vb,html.a11y-ls3 .vb{overflow-wrap:break-word}
html.a11y-fs .vb .nb,html.a11y-fs .vb .en,html.a11y-ws1 .vb .nb,html.a11y-ws2 .vb .nb,html.a11y-ws3 .vb .nb,html.a11y-ls1 .vb .nb,html.a11y-ls2 .vb .nb,html.a11y-ls3 .vb .nb,html.a11y-ls1 .vb .en,html.a11y-ls2 .vb .en,html.a11y-ls3 .vb .en{white-space:normal!important}
html.a11y-fs .vb .tools,html.a11y-ls2 .vb .tools,html.a11y-ls3 .vb .tools{flex-wrap:wrap;flex:1 1 100%;min-width:0}
/* איורים (הלוגו וכד') לא מושפעים מריווחי הטקסט */
html[class*="a11y-ls"] .vb svg,html[class*="a11y-ls"] .vb svg *,html[class*="a11y-ws"] .vb svg,html[class*="a11y-ws"] .vb svg *{letter-spacing:normal!important;word-spacing:normal!important}
html.a11y-fs .vb .head,html.a11y-ls2 .vb .head,html.a11y-ls3 .vb .head{flex-wrap:wrap}
html.a11y-fs .vb .btn,html.a11y-ls2 .vb .btn,html.a11y-ls3 .vb .btn{white-space:normal!important}

/* ---------- 2. צבעים ---------- */
/* מצבי צבע: טקסט, רקע, קישורים ומסגרת פוקוס לפי הערכים שמוגדרים כאן.
   ערכי הניגודיות נבדקו בחישוב (ראו מדריך עורך הדין). */
html[data-a11y-theme="dark"]  {--a11y-bg:#000000;--a11y-fg:#FFFFFF;--a11y-link:#FFEB3B;--a11y-head:#FFFFFF;--a11y-focus:#FFEB3B}
html[data-a11y-theme="light"] {--a11y-bg:#FFFFFF;--a11y-fg:#000000;--a11y-link:#0000CC;--a11y-head:#000000;--a11y-focus:#0000CC}
html[data-a11y-theme="yb"]    {--a11y-bg:#000000;--a11y-fg:#FFEB3B;--a11y-link:#FFFFFF;--a11y-head:#FFEB3B;--a11y-focus:#FFFFFF}
html[data-a11y-theme="wn"]    {--a11y-bg:#00264D;--a11y-fg:#FFFFFF;--a11y-link:#FFE08A;--a11y-head:#FFFFFF;--a11y-focus:#FFE08A}
html[data-a11y-theme="bc"]    {--a11y-bg:#F5EFD9;--a11y-fg:#1A1A1A;--a11y-link:#0B3D91;--a11y-head:#1A1A1A;--a11y-focus:#0B3D91}
html[data-a11y-theme="by"]    {--a11y-bg:#FFF7B0;--a11y-fg:#000000;--a11y-link:#0A2A7A;--a11y-head:#000000;--a11y-focus:#0A2A7A}

html[data-a11y-theme],html[data-a11y-theme] body{background:var(--a11y-bg)!important;color:var(--a11y-fg)!important}
html[data-a11y-theme] .vb,
html[data-a11y-theme] .vb *{
  background:var(--a11y-bg)!important;background-image:none!important;
  color:var(--a11y-fg)!important;border-color:var(--a11y-fg)!important;
  box-shadow:none!important;text-shadow:none!important;
  caret-color:var(--a11y-fg);
}
/* קישוטים (סרגלים, מפת רקע, שכבות טשטוש) – לא לכסות תוכן */
html[data-a11y-theme] .vb *::before,
html[data-a11y-theme] .vb *::after{background:transparent!important;box-shadow:none!important}
html[data-a11y-theme] .vb .bgmap{display:none!important}
/* הלוגו נשאר על משטח הכחול של המותג, כדי שלא ייעלם על רקע בהיר */
html[data-a11y-theme] .vb .brand{background:#0B2C3F!important;border-radius:10px;padding:6px 10px}
html[data-a11y-theme] .vb .brand,html[data-a11y-theme] .vb .brand *{background:transparent!important;text-decoration:none!important}
html[data-a11y-theme] .vb .brand{background:#0B2C3F!important}
/* קישורים וכותרות */
html[data-a11y-theme] .vb a,
html[data-a11y-theme] .vb a *{color:var(--a11y-link)!important;text-decoration:underline!important;text-underline-offset:3px}
html[data-a11y-theme] .vb h1,html[data-a11y-theme] .vb h2,html[data-a11y-theme] .vb h3,
html[data-a11y-theme] .vb h4,html[data-a11y-theme] .vb h5,html[data-a11y-theme] .vb h6,
html[data-a11y-theme] .vb h1 *,html[data-a11y-theme] .vb h2 *,html[data-a11y-theme] .vb h3 *{color:var(--a11y-head)!important}
/* כפתורים ושדות: מסגרת ברורה */
html[data-a11y-theme] .vb .btn,
html[data-a11y-theme] .vb .in,
html[data-a11y-theme] .vb .lang,
html[data-a11y-theme] .vb .menu-btn,
html[data-a11y-theme] .vb .grp-btn,
html[data-a11y-theme] .vb .sub,
html[data-a11y-theme] .vb input,
html[data-a11y-theme] .vb textarea,
html[data-a11y-theme] .vb select,
html[data-a11y-theme] .vb button{border:2px solid var(--a11y-fg)!important}
html[data-a11y-theme] .vb .band a{border-top:2px solid var(--a11y-fg)!important}
html[data-a11y-theme] .vb .logo{border:2px solid var(--a11y-fg)!important}
html[data-a11y-theme] .vb .lang,html[data-a11y-theme] .vb .in,html[data-a11y-theme] .vb .foot,html[data-a11y-theme] .vb .foot *,html[data-a11y-theme] .vb .small,html[data-a11y-theme] .vb .credit{opacity:1!important}
html[data-a11y-theme] .vb ::placeholder{color:var(--a11y-fg)!important;opacity:.85}
html[data-a11y-theme] .vb :focus-visible{outline:3px solid var(--a11y-focus)!important;outline-offset:3px!important}
html[data-a11y-theme] .skip:focus,html[data-a11y-theme] .skip:focus-visible{background:var(--a11y-bg)!important;color:var(--a11y-link)!important;outline:3px solid var(--a11y-focus)!important}

/* מסנני צבע: מוחלים על עמוד האתר (לא על החלונית), כדי שמיקום הכפתור הקבוע לא יושפע */
html.a11y-gray .vb,html.a11y-gray .cb{filter:grayscale(1)}
html.a11y-lowsat .vb,html.a11y-lowsat .cb{filter:saturate(.45)}

/* ---------- 3. קריאה וניווט ---------- */
html.a11y-links .vb a{
  text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:4px!important;
  outline:2px dotted currentColor;outline-offset:3px;
}
html.a11y-headings .vb h1,html.a11y-headings .vb h2,html.a11y-headings .vb h3,
html.a11y-headings .vb h4,html.a11y-headings .vb h5,html.a11y-headings .vb h6{
  outline:3px dashed currentColor;outline-offset:6px;
}

/* סמן עכבר גדול (שחור / לבן) */
html.a11y-cur-black,html.a11y-cur-black *{
  cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M4 2 L4 31 L12 24 L18 37 L23 35 L17 22 L28 22 Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/></svg>") 4 2,auto!important;
}
html.a11y-cur-white,html.a11y-cur-white *{
  cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M4 2 L4 31 L12 24 L18 37 L23 35 L17 22 L28 22 Z' fill='%23fff' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/></svg>") 4 2,auto!important;
}

/* סרגל קריאה: פס מואר שעוקב אחרי העכבר / האצבע / המיקוד, והשאר מוחשך */
.a11y-guide{position:fixed;inset-inline:0;left:0;right:0;top:0;height:3.2rem;z-index:2147482000;pointer-events:none;
  border-block:3px solid #FFEB3B;box-shadow:0 0 0 100vmax rgba(0,0,0,.55);will-change:transform}
.a11y-guide[hidden]{display:none}

/* ---------- 4. תנועה ותמונות ---------- */
/* לא מבטלים לגמרי (none) אלא מקצרים ל-1ms: כך אירועי סיום (transitionend) עדיין מתקבלים,
   והקוד של האתר, למשל הקרוסלה, לא נתקע בהמתנה לאנימציה שלא מתרחשת */
html.a11y-noanim *,html.a11y-noanim *::before,html.a11y-noanim *::after{
  animation-duration:1ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
  transition-duration:1ms!important;transition-delay:0s!important;scroll-behavior:auto!important}

/* תיאור במקום תמונה (כשהוסתרו התמונות) */
.a11y-alt{display:inline-block;max-width:100%;box-sizing:border-box;margin:.25rem 0;padding:.5em .8em;
  border:2px dashed currentColor;border-radius:8px;font-size:.95rem;line-height:1.5;font-style:normal;font-weight:400}
.a11y-alt b{font-weight:700}
/* ריבועי השותפים (קרוסלת הלוגואים): נשארים ריבועים באותו גודל, עם שם המוסד בתוכם */
.a11y-alt-tile{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--lh,64px);margin:0;padding:6px;
  border:0;border-radius:0;text-align:center;color:#0B2C3F;font-size:.95rem;font-weight:700;line-height:1.3;box-sizing:border-box}

/* ---------- הכפתור והחלונית ---------- */
.a11y-w,.a11y-w *{box-sizing:border-box}
.a11y-w{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45;letter-spacing:normal;word-spacing:normal;color:#F0ECE3;text-align:start}

.a11y-btn{position:fixed;top:50%;transform:translateY(-50%);z-index:2147483000;width:52px;height:52px;margin:0;padding:0;
  border:0;border-radius:50%;background:#C9A869;color:#0B2C3F;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 3px #0B2C3F,0 0 0 5px #F0ECE3,0 8px 22px rgba(0,0,0,.4)}
.a11y-btn svg{width:30px;height:30px;display:block}
html[data-a11y-side="left"]  .a11y-btn{left:14px}
html[data-a11y-side="right"] .a11y-btn{right:14px}
.a11y-btn:hover{background:#F0ECE3}
.a11y-btn:focus-visible{outline:3px solid #FFFFFF;outline-offset:7px}
.a11y-btn[hidden],.a11y-w .a11y-panel[hidden]{display:none}
@media (max-width:560px){.a11y-btn{width:48px;height:48px}}

.a11y-panel{position:fixed;top:0;bottom:0;z-index:2147483001;width:min(400px,100vw);display:flex;flex-direction:column;
  background:#0B2C3F;color:#F0ECE3;box-shadow:0 0 40px rgba(0,0,0,.55)}
html[data-a11y-side="left"]  .a11y-panel{left:0;border-right:3px solid #C9A869}
html[data-a11y-side="right"] .a11y-panel{right:0;border-left:3px solid #C9A869}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(240,236,227,.25);flex:none}
.a11y-head h2{margin:0;font-size:1.25rem;line-height:1.3;font-weight:700;color:#F0ECE3}
.a11y-head h2:focus{outline:none}
.a11y-x{flex:none;width:44px;height:44px;border:2px solid rgba(240,236,227,.5);border-radius:10px;background:transparent;color:#F0ECE3;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.a11y-x svg{width:20px;height:20px}
.a11y-body{overflow-y:auto;padding:6px 16px 16px;flex:1 1 auto;overscroll-behavior:contain}
.a11y-sec{padding:14px 0 6px;border-bottom:1px solid rgba(240,236,227,.18)}
.a11y-sec:last-child{border-bottom:0}
.a11y-sec h3{margin:0 0 10px;font-size:1rem;font-weight:700;color:#C9A869;letter-spacing:normal}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.a11y-grid.one{grid-template-columns:1fr}

.a11y-opt{font:inherit;font-size:.95rem;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;
  min-height:44px;padding:8px 10px;border-radius:10px;cursor:pointer;color:#F0ECE3;background:transparent;border:2px solid rgba(240,236,227,.45)}
.a11y-opt:hover{border-color:#F0ECE3}
.a11y-opt[aria-pressed="true"]{background:#C9A869;color:#0B2C3F;border-color:#C9A869}
.a11y-opt[aria-pressed="true"]::before{content:"\2713";content:"\2713" / "";font-weight:700}
.a11y-opt:focus-visible,.a11y-x:focus-visible,.a11y-step button:focus-visible,.a11y-foot a:focus-visible{outline:3px solid #FFFFFF;outline-offset:2px}
.a11y-opt[aria-pressed="true"]:focus-visible{outline-color:#FFFFFF;box-shadow:0 0 0 5px #0B2C3F inset}

.a11y-sw{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:26px;border-radius:6px;border:1px solid #888;font-weight:700;font-size:.95rem;line-height:1}
.a11y-opt.sw{justify-content:flex-start;text-align:start}

.a11y-step{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 12px;margin-bottom:10px}
.a11y-step .t{font-weight:700;font-size:.95rem}
.a11y-step .c{display:flex;align-items:center;gap:6px}
.a11y-step button{width:44px;height:44px;border-radius:10px;border:2px solid rgba(240,236,227,.45);background:transparent;color:#F0ECE3;font:inherit;font-size:1.4rem;font-weight:700;line-height:1;cursor:pointer;padding:0}
.a11y-step button:hover{border-color:#F0ECE3}
.a11y-step button[aria-disabled="true"]{opacity:.4;cursor:default}
.a11y-step .v{min-width:86px;text-align:center;font-weight:700;font-size:.95rem}

.a11y-help{margin:0 0 8px;font-size:.92rem;color:#F0ECE3}
.a11y-help kbd{display:inline-block;direction:ltr;unicode-bidi:isolate;font:inherit;font-size:.85rem;font-weight:700;padding:0 .4em;border:1px solid rgba(240,236,227,.6);border-radius:5px}
.a11y-help ul{margin:6px 0 0;padding-inline-start:20px}
.a11y-foot{flex:none;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid rgba(240,236,227,.25);background:#06202E}
.a11y-foot a{color:#F0ECE3;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.a11y-reset{font:inherit;font-weight:700;font-size:.95rem;min-height:44px;padding:8px 14px;border-radius:10px;cursor:pointer;background:#F0ECE3;color:#0B2C3F;border:2px solid #F0ECE3}
.a11y-reset:focus-visible{outline:3px solid #C9A869;outline-offset:2px}

.a11y-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

@media (max-width:420px){.a11y-grid{grid-template-columns:1fr}.a11y-step{grid-template-columns:1fr}}
@media print{.a11y-w,.a11y-guide{display:none!important}}
