/* ===== נגישות — שכבת העדפות משתמש (תקנה 35 / ת"י 5568) ===== */

/* קישור דילוג לתוכן */
.skip-link{position:absolute;inset-inline-start:-9999px;top:0;z-index:400;background:#12327e;color:#fff;padding:12px 22px;border-radius:0 0 12px 12px;font-weight:700;font-size:16px;text-decoration:none;}
.skip-link:focus{inset-inline-start:16px;}

/* מיקוד מקלדת ברור */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d92632;outline-offset:2px;}

/* --- הדגשת קישורים --- */
html.a11y-links a{text-decoration:underline !important;color:#0b47c4 !important;}
html.a11y-links .nav-cta,html.a11y-links .wa-cta,html.a11y-links .shiny-cta,html.a11y-links .tel-cta{color:#fff !important;}

/* --- ניגודיות --- */
html.a11y-contrast-high body{background:#fff !important;}
html.a11y-contrast-high body *:not(svg):not(path){color:#000 !important;}
html.a11y-contrast-high .hero-sub,html.a11y-contrast-high h1{color:#fff !important;text-shadow:0 2px 6px #000 !important;}
html.a11y-contrast-invert{filter:invert(1) hue-rotate(180deg);}
html.a11y-contrast-invert img,html.a11y-contrast-invert video{filter:invert(1) hue-rotate(180deg);}
html.a11y-contrast-mono{filter:grayscale(1);}

/* --- גודל טקסט --- */
html.a11y-text-115{font-size:115%;}
html.a11y-text-130{font-size:130%;}
html.a11y-text-150{font-size:150%;}

/* --- ריווח שורות --- */
html.a11y-lines-16 body *{line-height:1.8 !important;}
html.a11y-lines-20 body *{line-height:2.2 !important;}

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

/* --- הדגשת כותרות --- */
html.a11y-heads h1,html.a11y-heads h2,html.a11y-heads h3,html.a11y-heads h4{background:#fff3b0 !important;color:#000 !important;outline:2px dashed #d92632;outline-offset:3px;-webkit-background-clip:initial !important;background-clip:initial !important;-webkit-text-fill-color:initial !important;text-shadow:none !important;}

/* --- סמן גדול --- */
html.a11y-cursor,html.a11y-cursor *{cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M4 2l16 11h-8l4 8-3 1.5-4-8-5 5z' fill='black' stroke='white' stroke-width='1.5'/></svg>") 4 2,auto !important;}

/* --- עצירת אנימציות --- */
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none !important;transition:none !important;scroll-behavior:auto !important;}
html.a11y-motion .reveal{opacity:1 !important;transform:none !important;}
html.a11y-motion .marquee{animation:none !important;}
html.a11y-motion video{display:none !important;}

/* התאמה למשתמשים שמעדיפים פחות תנועה ברמת מערכת ההפעלה */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;}
  .reveal{opacity:1 !important;transform:none !important;}
}

/* --- הווידג'ט עצמו --- */
#a11y-btn{position:fixed;bottom:26px;inset-inline-start:auto;right:26px;z-index:220;width:56px;height:56px;border-radius:50%;border:2px solid #fff;background:#12327e;color:#fff;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 24px rgba(13,27,62,.4);}
#a11y-btn:hover{background:#1d4fd7;}
#a11y-panel{position:fixed;bottom:96px;right:26px;z-index:230;width:min(340px,calc(100vw - 40px));max-height:min(70vh,560px);overflow-y:auto;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.35);direction:rtl;font-family:'Heebo',Arial,sans-serif;display:none;}
#a11y-panel.open{display:block;}
#a11y-panel header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#12327e;color:#fff;border-radius:18px 18px 0 0;position:sticky;top:0;}
#a11y-panel header b{font-size:16px;}
#a11y-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;padding:4px 8px;}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;}
.a11y-t{border:1.5px solid #dfe6f2;border-radius:12px;background:#f8fafe;padding:12px 8px;font-family:inherit;font-size:13.5px;font-weight:600;color:#0d1b3e;cursor:pointer;text-align:center;line-height:1.3;}
.a11y-t .a11y-state{display:block;font-size:11.5px;font-weight:500;color:#5b6b8c;margin-top:3px;}
.a11y-t[aria-pressed="true"],.a11y-t.on{background:#12327e;color:#fff;border-color:#12327e;}
.a11y-t[aria-pressed="true"] .a11y-state,.a11y-t.on .a11y-state{color:#cdd9f5;}
.a11y-reset{margin:0 14px 10px;width:calc(100% - 28px);padding:11px;border:none;border-radius:12px;background:#d92632;color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;}
.a11y-foot{padding:0 16px 14px;font-size:12px;color:#5b6b8c;}
.a11y-foot a{color:#12327e;font-weight:700;}

/* כשמופעל היפוך צבעים — הווידג'ט מתהפך חזרה כדי שאפשר יהיה לכבות */
html.a11y-contrast-invert #a11y-panel,html.a11y-contrast-invert #a11y-btn{filter:invert(1) hue-rotate(180deg);}

/* הדפסה — איפוס ההתאמות */
@media print{
  html[class*="a11y-contrast"]{filter:none !important;}
  html[class*="a11y-text-"]{font-size:100% !important;}
  html[class*="a11y-lines-"] body *{line-height:normal !important;}
  #a11y-btn,#a11y-panel{display:none !important;}
}
