/* A11Y_CORE_V2 (2026-10-23) — תיקוני נגישות משותפים לכל האתר (ת"י 5568 / WCAG 2.1 AA).
 * נטען מכל דף HTML דרך includes/a11y_inject.php. לא משנה פריסה — רק מיקוד, ניגודיות, קישורים בטקסט ודילוג לתוכן.
 * A11Y_CORE_V3: ניגודיות פריט "כבוי" בהתראות, קישורים בשורת המשתמש, התאמה לרוחב 320px (1.4.10).
 * A11Y_CORE_V4: כותרות טבלה בכתבי מינוי ובמסמכים (שקיפות 0.8 → מלאה), מקום-חתימה ריק. */

/* דילוג לתוכן (2.4.1) */
.skip-link{position:absolute;top:-200px;right:8px;z-index:2147483646;background:#1c4e8a;color:#fff!important;padding:.6rem 1rem;border-radius:0 0 8px 8px;font-weight:700;text-decoration:underline;max-width:calc(100vw - 16px)}
.skip-link:focus{top:0;outline:3px solid #ffbf47;outline-offset:2px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* מיקוד גלוי (2.4.7) — גם בשדות טופס שבהם הוסר ה-outline */
:focus-visible{outline:3px solid #1c4e8a!important;outline-offset:2px!important;box-shadow:0 0 0 5px #ffbf47!important}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1c4e8a!important;outline-offset:1px!important}
[tabindex="-1"]:focus,main:focus{outline:none!important;box-shadow:none!important}

/* קישורים בתוך טקסט מובחנים לא רק בצבע (1.4.1) */
p a:not([class]),.hint a:not(.btn),.muted a:not(.btn),.pk-foot a,li>a:not([class]):not([role]),td>a:not([class]),.flash a,.whoami a,label a:not([class]){text-decoration:underline;text-underline-offset:2px}

/* ניגודיות (1.4.3) — תגיות סטטוס ותמונות-ראשי-תיבות בערכה הבהירה */
body.pk-simple .pill.valid,body.pk-simple .ap-tag.ok{color:#0b6b43}
body.pk-simple .pill.expiring,body.pk-simple .ap-tag.warn{color:#8a4b00}
body.pk-simple .pill.expired,body.pk-simple .ap-tag.bad{color:#b42318}
body.pk-simple .pill.none{color:#475467}
body.pk-simple .pill.role{color:#6b4e00}
body.pk-simple .avatar.ini{color:#5c4400}
body.pk-simple th[style*="opacity"]{opacity:1!important}
body.pk-simple .card th{opacity:1!important}
body.pk-simple .muted,body.pk-simple .hint{color:#596273}
body.pk-simple summary{color:#4a5363}
[style*="color:#888"]{color:#5f6672!important}
/* התראות: פריט כבוי מסומן ברקע ובמסגרת מקווקוות במקום שקיפות שפוגעת בניגודיות */
.nt-ev.off{opacity:1!important;background:var(--panel-2,#f6f7f9)!important;border-style:dashed!important}
/* אתר שיווקי — כיתובים ואיורי המסכים */
figcaption small,.scr-note{color:#4f5868!important}
.ph-av{text-shadow:0 0 1px rgba(0,0,0,.35)}
.ph-av[style*="b26a00"]{background:#8f5600!important}

/* הפחתת תנועה לפי העדפת המערכת (2.3.3 / 2.2.2) */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ריווח טקסט (1.4.12) */
.btn,.pill,.ap-tag{white-space:normal}

/* התאמה לרוחב 320px / הגדלה 400% (1.4.10): טבלאות נגללות בתוך עצמן, לא כל הדף */
@media (max-width:480px){
  table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  input,select,textarea,img,video,canvas{max-width:100%}
  .mono,code,[dir="ltr"]{overflow-wrap:anywhere}
  .pk-item{flex-wrap:wrap}.pk-item>.t{flex:1 1 100%;min-width:0}
}
