/* ============================================================
   נגישות — וידג'ט ומצבי תצוגה. קובץ עצמאי: אינו תלוי ב-style.css
   ולכן אפשר לטעון אותו בכל עמוד באתר, כולל מאמרי הבלוג ודפי השירותים.
   כל הצבעים כתובים במפורש ולא דרך משתני CSS, מאותה סיבה.
============================================================ */

/* ---------- קישור דילוג לתוכן ---------- */
.a11y-skip{
  position:absolute;top:-100px;right:0;left:0;z-index:9999;
  background:#1A2744;color:#fff;padding:12px 20px;
  text-align:center;font-size:15px;font-weight:600;
  font-family:inherit;text-decoration:none;transition:top .2s;
}
.a11y-skip:focus{top:0}

/* ---------- לחצן צף ---------- */
.a11y-trigger{
  position:fixed;bottom:26px;inset-inline-start:26px;z-index:850;
  width:54px;height:54px;border-radius:50%;
  background:#1a4a8c;color:#fff;border:3px solid #fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
  cursor:pointer;transition:transform .2s,background .2s;
  padding:0;
}
.a11y-trigger:hover,.a11y-trigger:focus-visible{background:#0f3370;transform:scale(1.08)}
.a11y-trigger:focus-visible{outline:3px solid #ffd000;outline-offset:3px}
.a11y-trigger svg{width:30px;height:30px}

/* ---------- הפאנל ---------- */
.a11y-panel{
  position:fixed;bottom:92px;inset-inline-start:26px;z-index:851;
  width:300px;max-width:calc(100vw - 40px);
  background:#fff;border:1px solid #C8CDD8;border-radius:12px;
  box-shadow:0 10px 40px rgba(0,0,0,.18);
  font-family:"Heebo",Arial,sans-serif;color:#1A2744;direction:rtl;text-align:right;
  overflow:hidden;
  animation:a11y-slide .22s ease;
}
@keyframes a11y-slide{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.a11y-panel[hidden]{display:none}
.a11y-panel-hd{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;background:#1a4a8c;color:#fff;
}
.a11y-panel-title{font-size:18px;font-weight:700;margin:0}
.a11y-panel-close{
  background:rgba(255,255,255,.15);border:none;color:#fff;
  width:30px;height:30px;border-radius:6px;font-size:16px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .2s;
}
.a11y-panel-close:hover,.a11y-panel-close:focus-visible{background:rgba(255,255,255,.3)}
.a11y-panel-close:focus-visible{outline:2px solid #ffd000;outline-offset:2px}

.a11y-panel-body{padding:16px}
.a11y-row{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;margin-bottom:10px;border-bottom:1px solid #C8CDD8}
.a11y-row-label{font-size:14px;font-weight:600;color:#1A2744}
.a11y-size-controls{display:flex;align-items:center;gap:6px}
.a11y-size-btn{
  width:32px;height:32px;border-radius:6px;
  background:#f0f4f8;border:1px solid #C8CDD8;
  font-size:18px;font-weight:700;color:#1A2744;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .15s;line-height:1;
}
.a11y-size-btn:hover,.a11y-size-btn:focus-visible{background:#1a4a8c;color:#fff;border-color:#1a4a8c}
.a11y-size-btn:focus-visible{outline:2px solid #ffd000;outline-offset:1px}
.a11y-size-label{font-size:13px;font-weight:700;color:#1A2744;min-width:42px;text-align:center}

.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px}
.a11y-opt{
  display:flex;align-items:center;gap:7px;
  padding:9px 10px;border-radius:7px;
  background:#f6f8fb;border:1px solid #C8CDD8;
  font-family:inherit;font-size:13px;font-weight:600;color:#1A2744;
  cursor:pointer;transition:all .15s;text-align:start;line-height:1.3;
}
.a11y-opt:hover,.a11y-opt:focus-visible{background:#e8eef6;border-color:#1a4a8c}
.a11y-opt:focus-visible{outline:2px solid #ffd000;outline-offset:1px}
.a11y-opt.active{background:#1a4a8c;color:#fff;border-color:#1a4a8c}
.a11y-opt-ico{font-size:14px;line-height:1;flex-shrink:0;width:18px;text-align:center}

.a11y-actions{display:flex;gap:8px;margin-bottom:10px}
.a11y-statement,.a11y-reset{
  flex:1;padding:10px 12px;border-radius:7px;
  font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;
  transition:all .15s;border:1px solid;
}
.a11y-statement{background:#fff;color:#1a4a8c;border-color:#1a4a8c}
.a11y-statement:hover,.a11y-statement:focus-visible{background:#1a4a8c;color:#fff}
.a11y-reset{background:#fff;color:#5F6B7C;border-color:#C8CDD8}
.a11y-reset:hover,.a11y-reset:focus-visible{background:#f0f4f8;color:#1A2744;border-color:#1A2744}
.a11y-statement:focus-visible,.a11y-reset:focus-visible{outline:2px solid #ffd000;outline-offset:1px}

.a11y-credit{font-size:12px;color:#5F6B7C;text-align:center;margin:0;padding-top:8px;border-top:1px solid #C8CDD8}
.a11y-credit a{color:#1a4a8c;font-weight:600;text-decoration:underline}

@media(max-width:600px){
  .a11y-trigger{width:48px;height:48px;bottom:90px;inset-inline-start:18px}
  .a11y-trigger svg{width:26px;height:26px}
  .a11y-panel{bottom:148px;inset-inline-start:18px;width:calc(100vw - 36px)}
}

/* ============================================================
   תיקוני ניגודיות לדפים הפנימיים (בלוג + שירותים).
   לכל עמוד פנימי יש פלטה משלו בתוך <style>, ו-16 מהן נמצאו בפועל.
   במקום לגעת בכל אחת בנפרד, שכבת התיקון הזו מתקנת את הצירופים
   שנמדדו כנכשלים בדפדפן. הגוונים נבחרו מאותה משפחת-צבע, כהים מספיק
   כדי לעבור 4.5:1 גם על הרקע הבהיר ביותר וגם על הכהה שבין הבהירים.
   נמדד 18/09/2026.
============================================================ */

/* טקסט לבן על כפתור זהוב: 2.68:1 ו-2.25:1. כחול כהה נותן 5.52:1 ו-6.58:1 */
.blog-nav-wa,.blog-nav-wa span,
.nav-wa,.nav-wa span,
.cta-banner a{color:#1A2744 !important}

/* טקסט זהוב על רקע בהיר: 2.0:1 עד 2.3:1. הגוון הכהה נותן 4.5:1 ומעלה */
.stage-label,.author-title,.case-label,.card-title,
.success-label,.insight-box .label,
.author-bio-text p a,.author-info p a,.author-text p a,
h1 em{color:#82672C !important}

/* .cs-label ו-קישורי הפוטר מופיעים גם על משטח כהה, ושם הזהב המקורי תקין.
   לכן הם מטופלים נקודתית בכל עמוד, ולא כאן. */

/* זהב בהיר יותר באותו תפקיד */
.hub-card-more{color:#82680A !important}

/* אפור הפוטר: 4.44:1, חסר קצת */
.srv-footer p,.srv-footer p a,.related-card-tag{color:#656B79 !important}

/* ירוק הווי בטבלאות ההשוואה: 3.98:1 על רקע השורה המודגשת */
td.check,.compare-table .check{color:#177B34 !important}

/* ============================================================
   מצבי תצוגה. הבוררים כאן כלליים בכוונה (body > *), כדי שיעבדו
   גם בעמודים שאין בהם .nav / main / .footer של עמוד הבית.
============================================================ */
/* ניגודיות גבוהה — שחור על צהוב */
html.a11y-contrast,
html.a11y-contrast body{background:#000!important;color:#ffd000!important}
html.a11y-contrast *:not(.a11y-trigger):not(.a11y-trigger *):not(.a11y-panel):not(.a11y-panel *){
  background:transparent!important;color:#ffd000!important;border-color:#ffd000!important;box-shadow:none!important;
}
html.a11y-contrast a,html.a11y-contrast a *{color:#7df!important;text-decoration:underline!important}
html.a11y-contrast button:not(.a11y-trigger):not(.a11y-panel *),
html.a11y-contrast input[type=submit],
html.a11y-contrast .btn-p,html.a11y-contrast .btn-s,html.a11y-contrast .nav-cta,html.a11y-contrast .fsub{
  border:2px solid #ffd000!important;background:#000!important;color:#ffd000!important;
}
html.a11y-contrast img,html.a11y-contrast svg{filter:brightness(1.2) contrast(1.4)}
html.a11y-contrast body::before{display:none!important}

/* ניגודיות הפוכה — על התוכן בלבד, כדי לא לשבור את position:fixed של הוידג'ט */
html.a11y-invert body > *:not(#a11y-trigger):not(#a11y-panel){filter:invert(1) hue-rotate(180deg)}
html.a11y-invert body > *:not(#a11y-trigger):not(#a11y-panel) img,
html.a11y-invert body > *:not(#a11y-trigger):not(#a11y-panel) video{filter:invert(1) hue-rotate(180deg)}

/* גווני אפור */
html.a11y-grayscale body > *:not(#a11y-trigger):not(#a11y-panel){filter:grayscale(1)}

/* הדגשת קישורים */
html.a11y-links a:not(.a11y-trigger):not(.nav-logo):not(.footer-logo):not(.a11y-skip){
  text-decoration:underline!important;text-underline-offset:2px;text-decoration-thickness:2px!important;
  outline:1px dashed currentColor;outline-offset:2px;
}

/* גופן קריא */
html.a11y-readable,
html.a11y-readable *:not(.a11y-trigger):not(.a11y-trigger *){
  font-family:"Heebo",Arial,sans-serif!important;letter-spacing:.01em!important;
}

/* עצירת אנימציות */
html.a11y-no-anim *,
html.a11y-no-anim *::before,
html.a11y-no-anim *::after{
  animation:none!important;transition:none!important;
  animation-duration:0s!important;transition-duration:0s!important;
}

/* הגדלת טקסט — ת"י 5568 / WCAG 1.4.4 רמה AA: עד 200% */
html.a11y-text-110 body > *:not(#a11y-trigger):not(#a11y-panel){zoom:1.1}
html.a11y-text-120 body > *:not(#a11y-trigger):not(#a11y-panel){zoom:1.2}
html.a11y-text-140 body > *:not(#a11y-trigger):not(#a11y-panel){zoom:1.4}
html.a11y-text-170 body > *:not(#a11y-trigger):not(#a11y-panel){zoom:1.7}
html.a11y-text-200 body > *:not(#a11y-trigger):not(#a11y-panel){zoom:2}

/* טבעת מיקוד גלויה בכל עמוד — WCAG 2.4.7 */
html a:focus-visible,
html button:focus-visible,
html input:focus-visible,
html select:focus-visible,
html textarea:focus-visible,
html summary:focus-visible,
html [tabindex]:focus-visible{
  outline:3px solid #8D6A07;outline-offset:2px;border-radius:3px;
}
html :focus:not(:focus-visible){outline:none}
