.ilacc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: #000;
	color: #fff;
	padding: 10px 16px;
	font-size: 16px;
	text-decoration: none;
}

.ilacc-skip-link:focus,
.ilacc-skip-link:active {
	left: 0;
}

body.ilacc-settings-active :focus {
	outline: 3px solid #1d70b8 !important;
	outline-offset: 2px;
}

/* ===== פאנל נגישות ===== */
.ilacc-panel {
	position: fixed;
	bottom: 24px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	direction: rtl;
}

body.ilacc-panel-bottom-left .ilacc-panel { bottom: 24px; left: 24px; }
body.ilacc-panel-bottom-right .ilacc-panel { bottom: 24px; right: 24px; }
body.ilacc-panel-top-left .ilacc-panel { top: 24px; bottom: auto; left: 24px; }
body.ilacc-panel-top-right .ilacc-panel { top: 24px; bottom: auto; right: 24px; }

.ilacc-panel-toggle {
	width: var(--ilacc-icon-size, 56px);
	height: var(--ilacc-icon-size, 56px);
	border-radius: 50%;
	border: none;
	background: var(--ilacc-icon-bg, #1d70b8);
	color: var(--ilacc-icon-fg, #fff);
	font-size: calc(var(--ilacc-icon-size, 56px) * 0.46);
	line-height: var(--ilacc-icon-size, 56px);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ilacc-panel-menu {
	position: absolute;
	bottom: 68px;
	right: 0;
	width: 252px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ilacc-panel-menu[hidden] { display: none !important; }

body.ilacc-panel-bottom-left .ilacc-panel-menu,
body.ilacc-panel-top-left .ilacc-panel-menu { right: auto; left: 0; }

body.ilacc-panel-top-right .ilacc-panel-menu,
body.ilacc-panel-top-left .ilacc-panel-menu {
	top: 68px;
	bottom: auto;
}

body.ilacc-panel-bottom-left .ilacc-panel-menu,
body.ilacc-panel-bottom-right .ilacc-panel-menu,
body.ilacc-panel-top-left .ilacc-panel-menu,
body.ilacc-panel-top-right .ilacc-panel-menu {
	max-height: 70vh;
	overflow-y: auto;
}

/* ---------- סידור אייקונים ברשת ---------- */
.ilacc-panel-title {
	margin: 0 0 10px;
	font-weight: bold;
	font-size: 15px;
	color: var(--ilacc-head, #1d70b8);
	text-align: center;
}
.ilacc-group { margin-bottom: 12px; }
.ilacc-group-label {
	display: block;
	font-size: 12px;
	font-weight: bold;
	color: #666;
	margin: 0 2px 6px;
	text-align: right;
}
.ilacc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}
.ilacc-grid-reset { grid-template-columns: repeat(4, 1fr); }

.ilacc-panel-menu .ilacc-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 8px 2px;
	text-align: center;
	font-size: 12px;
	min-height: 48px;
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
}
.ilacc-panel-menu .ilacc-action .ilacc-ico {
	font-size: 26px;
	line-height: 1;
	color: var(--ilacc-head, #1d70b8);
}
/* תצוגת אייקונים בלבד: הכיתוב וכותרות הקבוצות מוסתרים ויזואלית,
   אך נשארים זמינים לקוראי מסך (שמות נגישים) ובטולטיפ (title). */
.ilacc-panel-menu .ilacc-action .ilacc-cap,
.ilacc-panel-menu .ilacc-group-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* אייקוני אימוג'י: וורדפרס ממירה אימוג'י לתמונות img.emoji -
   חייב גודל אייקון קבוע, אחרת ה-SVG מוצג בגודל טבעי ענק בתוך כפתורי הפאנל */
.ilacc-panel img.emoji,
.ilacc-footer-bar img.emoji {
	height: 1em !important;
	width: 1em !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-block;
	vertical-align: middle;
}
.ilacc-panel-menu .ilacc-action:hover,
.ilacc-panel-menu .ilacc-action:focus {
	background: #e9ecef;
	border-color: var(--ilacc-head, #1d70b8);
}

.ilacc-panel-menu .ilacc-action.ilacc-active {
	background: #1d70b8;
	color: #fff;
	border-color: #1d70b8;
}
.ilacc-panel-menu .ilacc-action.ilacc-active .ilacc-ico { color: #fff; }

/* ===== מצבים מופעלים ===== */
body.ilacc-mode-contrast {
	background: #000 !important;
	color: #fff !important;
}
body.ilacc-mode-contrast a,
body.ilacc-mode-contrast p,
body.ilacc-mode-contrast h1,
body.ilacc-mode-contrast h2,
body.ilacc-mode-contrast h3,
body.ilacc-mode-contrast span,
body.ilacc-mode-contrast li,
body.ilacc-mode-contrast div,
body.ilacc-mode-contrast td,
body.ilacc-mode-contrast label {
	background: #000 !important;
	color: #fff !important;
}
body.ilacc-mode-contrast img { filter: contrast(1.2); }

body.ilacc-mode-grayscale,
body.ilacc-mode-grayscale img,
body.ilacc-mode-grayscale * {
	filter: grayscale(100%) !important;
}

body.ilacc-mode-highlight-links a {
	text-decoration: underline !important;
	font-weight: bold;
	color: #1d70b8 !important;
	background: #ffff00;
}

body.ilacc-mode-big-font {
	font-size: 120% !important;
}

/* ===== מצבים נוספים ===== */
/* מצב כהה */
body.ilacc-mode-dark {
	background: #111 !important;
	color: #eee !important;
	filter: invert(0.9) hue-rotate(180deg);
}
body.ilacc-mode-dark img,
body.ilacc-mode-dark video,
body.ilacc-mode-dark iframe {
	filter: invert(1) hue-rotate(180deg);
}

/* הדגשת כותרות */
body.ilacc-mode-highlight-titles h1,
body.ilacc-mode-highlight-titles h2,
body.ilacc-mode-highlight-titles h3,
body.ilacc-mode-highlight-titles h4,
body.ilacc-mode-highlight-titles h5,
body.ilacc-mode-highlight-titles h6 {
	outline: 2px solid #1d70b8;
	outline-offset: 2px;
	background: #ffffcc;
}

/* פונט דיסלקציה */
body.ilacc-mode-dyslexia body,
body.ilacc-mode-dyslexia p,
body.ilacc-mode-dyslexia div,
body.ilacc-mode-dyslexia span,
body.ilacc-mode-dyslexia a,
body.ilacc-mode-dyslexia li {
	font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif !important;
	letter-spacing: 0.05em;
	line-height: 1.8;
}

/* מרווח אותיות ושורות */
body.ilacc-mode-letter-spacing p,
body.ilacc-mode-letter-spacing li,
body.ilacc-mode-letter-spacing a,
body.ilacc-mode-letter-spacing div,
body.ilacc-mode-letter-spacing span {
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
	line-height: 2 !important;
}

/* יישור לשמאל */
body.ilacc-mode-align-left body,
body.ilacc-mode-align-left p,
body.ilacc-mode-align-left div,
body.ilacc-mode-align-left h1,
body.ilacc-mode-align-left h2,
body.ilacc-mode-align-left h3,
body.ilacc-mode-align-left li {
	text-align: left !important;
	direction: ltr !important;
}

/* השהאת אנימציות */
body.ilacc-mode-pause-anim *,
body.ilacc-mode-pause-anim *::before,
body.ilacc-mode-pause-anim *::after {
	animation: none !important;
	animation-duration: 0s !important;
	transition: none !important;
}

/* סמן גדול */
body.ilacc-mode-big-cursor,
body.ilacc-mode-big-cursor a,
body.ilacc-mode-big-cursor button {
	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 2l14 8-6 2-3 6z" fill="black" stroke="white" stroke-width="2"/></svg>') 0 0, auto !important;
}

/* השתקת צלילים — נתמך ע"י וידאו/אודיו */
body.ilacc-mode-mute video,
body.ilacc-mode-mute audio,
body.ilacc-mode-mute iframe {
	volume: 0 !important;
	-webkit-tap-highlight-color: transparent;
}
body.ilacc-mode-mute video::before,
body.ilacc-mode-mute audio::before,
body.ilacc-mode-mute iframe::before {
	content: "🔇";
}
body.ilacc-mode-mute video,
body.ilacc-mode-mute audio,
body.ilacc-mode-mute iframe {
	position: relative;
}

/* מדריך קריאה - פס דק שעוקב אחר העכבר. מוגן מפני דריסה על ידי ערכת העיצוב,
   ומוסתר מחוץ למסך עד התנועה הראשונה כדי שלא יופיע כבלוק גדול בעמוד. */
.ilacc-reading-guide {
	position: fixed !important;
	left: 0 !important;
	top: -200px;
	right: auto !important;
	bottom: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 44px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	pointer-events: none !important;
	visibility: hidden;
	opacity: 1 !important;
	background: rgba(255, 235, 59, 0.55) !important;
	border-top: 2px solid #ffcc00 !important;
	border-bottom: 2px solid #ffcc00 !important;
	z-index: 2147483000 !important;
	transition: top 0.05s linear;
}
body.ilacc-mode-guide .ilacc-reading-guide { visibility: visible; }

/* ===== מצבי ניגודיות נוספים ===== */
/* מצב תאורה (בהיר) */
body.ilacc-mode-light,
body.ilacc-mode-light p,
body.ilacc-mode-light div,
body.ilacc-mode-light a,
body.ilacc-mode-light span {
	background: #ffffff !important;
	color: #000000 !important;
}
body.ilacc-mode-light img { filter: brightness(1.05); }

/* ניגודיות הפוכה (Negative) */
body.ilacc-mode-negative {
	filter: invert(1);
	background: #000 !important;
}
body.ilacc-mode-negative img,
body.ilacc-mode-negative video,
body.ilacc-mode-negative iframe {
	filter: invert(1);
}

/* הסתרת תמונות */
body.ilacc-mode-hide-images img,
body.ilacc-mode-hide-images video,
body.ilacc-mode-hide-images iframe {
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* פונט קריא */
body.ilacc-mode-readable p,
body.ilacc-mode-readable li,
body.ilacc-mode-readable a,
body.ilacc-mode-readable div,
body.ilacc-mode-readable span {
	font-family: Arial, Helvetica, sans-serif !important;
	line-height: 1.8 !important;
	letter-spacing: 0.03em !important;
}

/* הדגשת טקסט (עבה) */
body.ilacc-mode-font-weight p,
body.ilacc-mode-font-weight li,
body.ilacc-mode-font-weight a,
body.ilacc-mode-font-weight div,
body.ilacc-mode-font-weight span,
body.ilacc-mode-font-weight td,
body.ilacc-mode-font-weight th {
	font-weight: 700 !important;
}

/* רוויון נמוך */
body.ilacc-mode-sat-low,
body.ilacc-mode-sat-low img {
	filter: saturate(0.4) !important;
}

/* רוויון גבוה */
body.ilacc-mode-sat-high,
body.ilacc-mode-sat-high img {
	filter: saturate(2) !important;
}

/* הדרכה לניווט במקלדת */
.ilacc-navhelp {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #111;
	color: #fff;
	padding: 14px 18px;
	border-radius: 8px;
	z-index: 100000;
	max-width: 420px;
	font-size: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	direction: rtl;
}
.ilacc-navhelp ul { margin: 8px 0 0; padding-right: 18px; }

/* קישורים ותוספות בתחתית הפאנל */
.ilacc-panel-addons {
	border-top: 1px solid #eee;
	margin-top: 6px;
	padding-top: 8px;
}
.ilacc-lang select { width: 100%; padding: 4px; }
.ilacc-panel-links { margin: 6px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.ilacc-panel-links a { color: #1d70b8; font-size: 13px; }
.ilacc-panel-brand {
	margin: 8px 0 0;
	font-size: 11px;
	color: #999;
	text-align: center;
}
.ilacc-panel-brand a {
	color: #1d70b8;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}
.ilacc-panel-brand a:hover,
.ilacc-panel-brand a:focus-visible {
	text-decoration: underline;
}


/* ===== פס הצהרת נגישות בפוטר ===== */
.ilacc-footer-bar {
	width: 100%;
	text-align: center;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	z-index: 9999;
	box-sizing: border-box;
}
.ilacc-footer-bar a {
	font-weight: bold;
	text-decoration: underline;
}
.ilacc-footer-bar a:hover,
.ilacc-footer-bar a:focus {
	text-decoration: none;
	opacity: 0.9;
}

/* מיקום הפס */
.ilacc-footer-bar-below { position: relative; }
.ilacc-footer-bar-above { position: relative; }
.ilacc-footer-bar-fixed {
	position: fixed;
	bottom: 0;
	left: 0;
}

/* ===== עמוד הצהרת נגישות / Details / How to Use ===== */
.ilacc-declaration,
.ilacc-details,
.ilacc-howto {
	max-width: 820px;
	margin: 24px auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	line-height: 1.7;
	direction: rtl;
	text-align: right;
}
.ilacc-declaration h2,
.ilacc-details h2,
.ilacc-howto h2 {
	border-bottom: 2px solid #1d70b8;
	padding-bottom: 8px;
	color: #1d70b8;
}
.ilacc-declaration h3 {
	color: #1d70b8;
	margin-top: 24px;
}
.ilacc-declaration ul,
.ilacc-details ul,
.ilacc-howto ol {
	padding-right: 20px;
}
.ilacc-declaration a,
.ilacc-details a,
.ilacc-howto a {
	color: #1d70b8;
	text-decoration: underline;
}
.ilacc-decl-updated {
	font-size: 13px;
	color: #666;
	margin-top: 24px;
	border-top: 1px solid #eee;
	padding-top: 12px;
}
.ilacc-decl-disclaimer {
	background: #fff8e6;
	border: 1px solid #e6c55e;
	border-right: 4px solid #e6c55e;
	border-radius: 6px;
	padding: 12px 16px;
	margin-top: 28px;
	font-size: 14px;
	color: #5a4a00;
}
.ilacc-decl-disclaimer h3 {
	color: #7a6400;
	margin: 0 0 6px;
	font-size: 16px;
}
.ilacc-decl-disclaimer p {
	margin: 0;
}

/* טופס פרטים */
.ilacc-contact-form {
	background: #f7f9fc;
	border: 1px solid #e2e2e2;
	padding: 16px;
	border-radius: 6px;
	margin-top: 16px;
}
.ilacc-contact-form label {
	display: block;
	font-weight: bold;
	margin-bottom: 6px;
}
.ilacc-contact-form input {
	width: 100%;
	max-width: 400px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.ilacc-contact-form .button {
	background: #1d70b8;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
}
