/* נגישות WEBON: עיצוב התפריט וההתאמות שהגולש בוחר.
   כל כללי התפריט מתחילים במזהה, כדי שההתאמות שמוחלות על העמוד לא ישנו אותו. */

/* ===== מיכל, כפתור, פאנל ===== */
#wba-root {
	--wba-bg: #ffffff;
	--wba-fg: #101a33;
	--wba-mut: #4b5675;
	--wba-line: #d7ddea;
	--wba-soft: #f2f5fb;
	--wba-bot: var(--wba-bot-base, 20px);
	position: fixed;
	z-index: 2147483000;
	inset: auto auto var(--wba-bot, 20px) var(--wba-side, 20px);
	font-family: Arial, "Segoe UI", Tahoma, sans-serif;
	direction: rtl;
	line-height: 1.5;
}
#wba-root.wba-bottom-right { inset: auto var(--wba-side, 20px) var(--wba-bot, 20px) auto; }
#wba-root.wba-bottom-left { inset: auto auto var(--wba-bot, 20px) var(--wba-side, 20px); }
#wba-root.wba-middle-right { inset: 50% var(--wba-side, 20px) auto auto; transform: translateY(-50%); }
#wba-root.wba-middle-left { inset: 50% auto auto var(--wba-side, 20px); transform: translateY(-50%); }

#wba-btn {
	width: var(--wba-size, 56px);
	height: var(--wba-size, 56px);
	border-radius: 50%;
	background: var(--wba-accent, #1d4ed8) !important;
	color: var(--wba-ic, #fff) !important;
	border: 2px solid rgba(255, 255, 255, .9) !important;
	box-shadow: 0 8px 26px rgba(8, 15, 40, .35);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform .18s ease, box-shadow .18s ease;
}
#wba-btn svg { width: 58%; height: 58%; stroke-width: 1.8; }
#wba-btn:hover { transform: scale(1.07); }
#wba-btn:focus-visible { outline: 3px solid #111 !important; outline-offset: 3px; }

#wba-panel {
	position: fixed;
	bottom: calc(var(--wba-bot, 20px) + var(--wba-size, 56px) + 14px);
	width: 396px;
	max-width: calc(100vw - 24px);
	max-height: min(78vh, 720px, calc(100vh - var(--wba-bot, 20px) - var(--wba-size, 56px) - 26px));
	max-height: min(78vh, 720px, calc(100dvh - var(--wba-bot, 20px) - var(--wba-size, 56px) - 26px));
	background: var(--wba-bg) !important;
	color: var(--wba-fg) !important;
	border: 1px solid var(--wba-line);
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(8, 15, 40, .45);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-size: 15px;
}
#wba-root.wba-bottom-right #wba-panel, #wba-root.wba-middle-right #wba-panel { right: var(--wba-side, 20px); }
#wba-root.wba-bottom-left #wba-panel, #wba-root.wba-middle-left #wba-panel { left: var(--wba-side, 20px); }
#wba-root.wba-middle-right #wba-panel, #wba-root.wba-middle-left #wba-panel { bottom: auto; top: 50%; transform: translateY(-50%); }
#wba-panel[hidden] { display: none !important; }

#wba-panel .wba-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	background: var(--wba-accent, #1d4ed8) !important;
	color: #fff !important;
}
#wba-panel .wba-head h2 { margin: 0 !important; font-size: 18px !important; font-weight: 700 !important; color: #fff !important; }
#wba-panel .wba-head-act { display: flex; gap: 8px; }
#wba-panel .wba-mini {
	display: inline-flex; align-items: center; gap: 5px;
	background: rgba(255, 255, 255, .16) !important; color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 9px;
	padding: 7px 10px; font-size: 13px; cursor: pointer; font-family: inherit;
}
#wba-panel .wba-mini:hover { background: rgba(255, 255, 255, .3) !important; }
#wba-panel .wba-mini svg { width: 16px; height: 16px; }
#wba-panel .wba-x { padding: 7px; }

#wba-panel .wba-tabs { display: flex; overflow-x: auto; background: var(--wba-soft) !important; border-bottom: 1px solid var(--wba-line); }
#wba-panel .wba-tab {
	flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 9px 12px; background: transparent !important; border: 0 !important; border-bottom: 3px solid transparent !important;
	color: var(--wba-mut) !important; font-size: 12.5px; font-family: inherit; cursor: pointer; white-space: nowrap;
}
#wba-panel .wba-tab svg { width: 19px; height: 19px; }
#wba-panel .wba-tab[aria-selected="true"] { color: var(--wba-accent, #1d4ed8) !important; border-bottom-color: var(--wba-accent, #1d4ed8) !important; background: #fff !important; font-weight: 700; }

#wba-panel .wba-body { overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
#wba-panel .wba-pane[hidden] { display: none !important; }
#wba-panel .wba-pane:focus-visible { outline: none; }
#wba-panel .wba-note { margin: 0 0 12px !important; font-size: 13px !important; color: var(--wba-mut) !important; }
#wba-panel .wba-sub {
	display: flex; align-items: center; gap: 6px;
	margin: 16px 0 8px !important; font-size: 13.5px !important; font-weight: 700 !important; color: var(--wba-fg) !important;
}
#wba-panel .wba-sub svg { width: 17px; height: 17px; }

#wba-panel .wba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#wba-panel .wba-grid.wba-g1 { grid-template-columns: 1fr; }
#wba-panel .wba-tool {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
	text-align: right; padding: 11px 12px; min-height: 62px;
	background: var(--wba-soft) !important; color: var(--wba-fg) !important;
	border: 2px solid transparent !important; border-radius: 12px;
	font-family: inherit; font-size: 14px; cursor: pointer; transition: none;
}
#wba-panel .wba-g1 .wba-tool { flex-direction: row; align-items: center; gap: 11px; min-height: 58px; }
#wba-panel .wba-tool:hover { background: #e8eefc !important; }
#wba-panel .wba-tool:focus-visible { outline: 3px solid var(--wba-accent, #1d4ed8) !important; outline-offset: 2px; }
#wba-panel .wba-tic { display: inline-flex; color: var(--wba-accent, #1d4ed8) !important; }
#wba-panel .wba-tl { font-weight: 700; line-height: 1.3; }
#wba-panel .wba-th { font-size: 12px; color: var(--wba-mut) !important; font-weight: 400; line-height: 1.35; }
#wba-panel .wba-g1 .wba-tool > span:not(.wba-tic):not(.wba-dot) { display: block; }
#wba-panel .wba-g1 .wba-tl { margin-bottom: 2px; }
#wba-panel .wba-dot {
	position: absolute; inset-inline-start: 9px; inset-block-start: 9px;
	width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 2px solid var(--wba-line);
}
#wba-panel .wba-tool[aria-pressed="true"] {
	background: #e8eefc !important; border-color: var(--wba-accent, #1d4ed8) !important;
}
#wba-panel .wba-tool[aria-pressed="true"] .wba-dot { background: #0f7a3d; border-color: #0f7a3d; }
#wba-panel .wba-tool[data-level]::after {
	content: attr(data-level); position: absolute; inset-inline-start: 8px; inset-block-end: 8px;
	background: var(--wba-accent, #1d4ed8); color: #fff; font-size: 11px; font-weight: 700;
	border-radius: 20px; padding: 1px 7px;
}

#wba-panel .wba-stepper {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--wba-soft) !important; border: 1px solid var(--wba-line); border-radius: 12px;
	padding: 10px 12px; margin-bottom: 12px;
}
#wba-panel .wba-st-lbl { display: flex; align-items: center; gap: 7px; font-weight: 700; }
#wba-panel .wba-st-lbl svg { color: var(--wba-accent, #1d4ed8); }
#wba-panel .wba-st-ctl { display: flex; align-items: center; gap: 8px; }
#wba-panel .wba-round {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--wba-accent, #1d4ed8) !important; color: #fff !important; border: 0 !important;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#wba-panel .wba-round:focus-visible { outline: 3px solid #111 !important; outline-offset: 2px; }
#wba-panel output#wba-fs-val { min-width: 56px; text-align: center; font-weight: 700; font-size: 15px; color: var(--wba-fg) !important; }

#wba-panel .wba-struct { margin-top: 12px; border-top: 1px solid var(--wba-line); padding-top: 10px; }
#wba-panel .wba-struct h3 { margin: 10px 0 6px !important; font-size: 13.5px !important; color: var(--wba-mut) !important; font-weight: 700 !important; }
#wba-panel .wba-struct ul { list-style: none; margin: 0 !important; padding: 0 !important; }
#wba-panel .wba-struct li { margin: 0 0 4px !important; }
#wba-panel .wba-struct button {
	width: 100%; text-align: right; background: var(--wba-soft) !important; color: var(--wba-fg) !important;
	border: 1px solid var(--wba-line) !important; border-radius: 9px; padding: 8px 10px; font-family: inherit;
	font-size: 13.5px; cursor: pointer;
}
#wba-panel .wba-struct button:hover { background: #e8eefc !important; }
#wba-panel .wba-struct .wba-lv2 { padding-inline-start: 18px; }
#wba-panel .wba-struct .wba-lv3 { padding-inline-start: 34px; }

#wba-panel .wba-keys { list-style: none; margin: 0 !important; padding: 0 !important; }
#wba-panel .wba-keys li { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--wba-line); font-size: 13.5px; }
#wba-panel .wba-keys span { color: var(--wba-mut) !important; margin-inline-start: auto; text-align: left; }
#wba-panel kbd {
	background: #10162b !important; color: #fff !important; border-radius: 6px; padding: 2px 7px;
	font-family: inherit; font-size: 12.5px; font-weight: 700;
}
#wba-panel .wba-contact { display: flex; flex-direction: column; gap: 7px; }
#wba-panel .wba-cname { font-weight: 700; }
#wba-panel .wba-contact a {
	display: flex; align-items: center; gap: 8px; background: var(--wba-soft) !important; color: var(--wba-fg) !important;
	border: 1px solid var(--wba-line); border-radius: 10px; padding: 10px 12px; text-decoration: none !important; font-weight: 700;
}
#wba-panel .wba-contact a:hover { background: #e8eefc !important; }

#wba-panel .wba-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 14px; border-top: 1px solid var(--wba-line); background: var(--wba-soft) !important;
}
#wba-panel .wba-stmt { display: flex; align-items: center; gap: 6px; color: #17408f !important; font-size: 13px; text-decoration: underline !important; }
#wba-panel .wba-reset {
	display: flex; align-items: center; gap: 6px; background: #fff !important; color: var(--wba-fg) !important;
	border: 1px solid var(--wba-line) !important; border-radius: 9px; padding: 8px 11px; font-family: inherit; font-size: 13px; cursor: pointer;
}
#wba-panel .wba-reset:hover { background: #ffeaea !important; border-color: #c3342f !important; color: #8f1d19 !important; }

#wba-root .wba-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#wba-guide { position: fixed; inset-inline: 0; height: 0; border-top: 4px solid #d10a0a; box-shadow: 0 0 0 1px #fff; pointer-events: none; z-index: 2147482000; }
#wba-mask { position: fixed; inset: 0; pointer-events: none; z-index: 2147482000; }
#wba-mask span { position: absolute; inset-inline: 0; background: rgba(0, 0, 0, .72); display: block; }
#wba-mask span:first-child { top: 0; height: 0; }
#wba-mask span:last-child { bottom: 0; height: 0; }
#wba-speakbar {
	position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 2147482500;
	display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
	background: #10162b !important; color: #fff !important; padding: 10px 16px; font-size: 14px;
}
#wba-speakbar span { display: inline-flex; align-items: center; gap: 7px; }
#wba-speakbar button { background: #fff !important; color: #10162b !important; border: 0 !important; border-radius: 8px; padding: 7px 16px; font-family: inherit; font-weight: 700; cursor: pointer; }
#wba-speakbar[hidden], #wba-guide[hidden], #wba-mask[hidden] { display: none !important; }

@media (max-width: 560px) {
	#wba-panel {
		width: calc(100vw - 16px);
		max-height: calc(100vh - var(--wba-bot, 20px) - var(--wba-size, 56px) - 26px);
		max-height: calc(100dvh - var(--wba-bot, 20px) - var(--wba-size, 56px) - 26px);
	}
	#wba-root.wba-bottom-right #wba-panel, #wba-root.wba-bottom-left #wba-panel,
	#wba-root.wba-middle-right #wba-panel, #wba-root.wba-middle-left #wba-panel {
		right: 8px; left: 8px; top: auto; bottom: calc(var(--wba-bot, 20px) + var(--wba-size, 56px) + 10px); transform: none;
	}
	#wba-panel .wba-grid { grid-template-columns: 1fr; }
	#wba-panel .wba-tool { flex-direction: row; align-items: center; gap: 11px; min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
	#wba-btn { transition: none; }
}

/* ===== ההתאמות שהגולש מפעיל ===== */
html.wba-lh1 :is(p, li, dd, dt, td, th, blockquote, figcaption, label, span) { line-height: 1.9 !important; }
html.wba-lh2 :is(p, li, dd, dt, td, th, blockquote, figcaption, label, span) { line-height: 2.25 !important; }
html.wba-lh3 :is(p, li, dd, dt, td, th, blockquote, figcaption, label, span) { line-height: 2.7 !important; }
html.wba-ls1 :is(p, li, dd, td, th, a, span, h1, h2, h3, h4, h5, h6, button, label) { letter-spacing: .06em !important; }
html.wba-ls2 :is(p, li, dd, td, th, a, span, h1, h2, h3, h4, h5, h6, button, label) { letter-spacing: .11em !important; }
html.wba-ls3 :is(p, li, dd, td, th, a, span, h1, h2, h3, h4, h5, h6, button, label) { letter-spacing: .17em !important; }
html.wba-ws1 :is(p, li, dd, td, th, a, span, h1, h2, h3, h4, h5, h6, label) { word-spacing: .18em !important; }
html.wba-ws2 :is(p, li, dd, td, th, a, span, h1, h2, h3, h4, h5, h6, label) { word-spacing: .34em !important; }
html.wba-ws3 :is(p, li, dd, td, th, a, span, h1, h2, h3, h4, h5, h6, label) { word-spacing: .55em !important; }
html.wba-font body, html.wba-font :is(p, li, dd, dt, td, th, a, span, h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, blockquote) {
	font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
}
html.wba-bold :is(p, li, dd, td, th, a, span, label, blockquote, figcaption) { font-weight: 700 !important; }
html.wba-align-right :is(p, li, dd, blockquote, h1, h2, h3, h4, h5, h6) { text-align: right !important; }
html.wba-align-justify :is(p, li, dd, blockquote) { text-align: justify !important; }
html.wba-align-left :is(p, li, dd, blockquote, h1, h2, h3, h4, h5, h6) { text-align: left !important; }

html.wba-c-dark body,
html.wba-c-dark :is(div, section, article, aside, header, footer, nav, main, form, fieldset, ul, ol, li, table, thead, tbody, tfoot, tr, td, th, figure, blockquote, details, summary, p, h1, h2, h3, h4, h5, h6, span, label, dl, dt, dd) {
	background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important;
}
html.wba-c-dark :is(a, a span, a p, a h2, a h3) { color: #ffe400 !important; text-decoration: underline !important; }
html.wba-c-dark :is(button, input, select, textarea) { background: #000 !important; color: #fff !important; border: 1px solid #fff !important; }
html.wba-c-dark :is(img, video) { filter: brightness(.92); }
html.wba-c-light body,
html.wba-c-light :is(div, section, article, aside, header, footer, nav, main, form, fieldset, ul, ol, li, table, thead, tbody, tfoot, tr, td, th, figure, blockquote, details, summary, p, h1, h2, h3, h4, h5, h6, span, label, dl, dt, dd) {
	background-color: #fff !important; background-image: none !important; color: #101010 !important; border-color: #101010 !important; text-shadow: none !important;
}
html.wba-c-light :is(a, a span, a p, a h2, a h3) { color: #0b41c4 !important; text-decoration: underline !important; }
html.wba-c-light :is(button, input, select, textarea) { background: #fff !important; color: #101010 !important; border: 1px solid #101010 !important; }
html.wba-c-invert { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.wba-c-invert :is(img, video, iframe, picture) { filter: invert(1) hue-rotate(180deg); }
html.wba-c-gray { filter: grayscale(1); }
html.wba-c-soft { filter: saturate(.45); }
html.wba-c-vivid { filter: saturate(1.75); }
html.wba-cb-protan { filter: url(#wba-f-protan); }
html.wba-cb-deutan { filter: url(#wba-f-deutan); }
html.wba-cb-tritan { filter: url(#wba-f-tritan); }
html.wba-nobg :not(#wba-root):not(#wba-root *) { background-image: none !important; }

html.wba-links :is(a, a:visited) { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; outline-offset: 2px; }
html.wba-heads :is(h1, h2, h3, h4) { outline: 2px dashed #b8860b !important; outline-offset: 3px; background: rgba(255, 214, 102, .16) !important; }
html.wba-focus :is(a, button, input, select, textarea, [tabindex]):focus { outline: 4px solid #d10a0a !important; outline-offset: 3px !important; background: #fff9c4 !important; color: #111 !important; }
html.wba-targets :is(a, button, [role="button"], input[type="submit"]) { min-height: 44px !important; min-width: 44px !important; }
html.wba-noanim *, html.wba-noanim *::before, html.wba-noanim *::after {
	animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.wba-noimg :is(img, picture, video, canvas, .wb-canvas) { display: none !important; }
html.wba-cursor-black, html.wba-cursor-black * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l13.5 8.6-6 1.2 3 6.2-2.7 1.3-3-6.2-4.8 4.3z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.wba-cursor-white, html.wba-cursor-white * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l13.5 8.6-6 1.2 3 6.2-2.7 1.3-3-6.2-4.8 4.3z' fill='%23fff' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.wba-speaking .wba-speak-on { background: #fff59d !important; outline: 3px solid #d10a0a !important; }

/* כשמופעל סינון צבע, כל אלמנט קבוע נצמד לראש המסמך. הסקריפט מזיז את התפריט לפי הגלילה. */
#wba-root.wba-sync { position: absolute; top: 0; inset-inline: 0; bottom: auto; width: 100%; height: 100vh; pointer-events: none; transform: translateY(0); }
#wba-root.wba-sync #wba-btn, #wba-root.wba-sync #wba-panel, #wba-root.wba-sync #wba-speakbar,
#wba-root.wba-sync #wba-guide, #wba-root.wba-sync #wba-mask { pointer-events: auto; }
#wba-root.wba-sync #wba-btn { position: fixed; inset-block-end: var(--wba-bot, 20px); }
#wba-root.wba-sync.wba-bottom-right #wba-btn, #wba-root.wba-sync.wba-middle-right #wba-btn { inset-inline-end: var(--wba-side, 20px); }
#wba-root.wba-sync.wba-bottom-left #wba-btn, #wba-root.wba-sync.wba-middle-left #wba-btn { inset-inline-start: var(--wba-side, 20px); }
#wba-root.wba-sync.wba-middle-right #wba-btn, #wba-root.wba-sync.wba-middle-left #wba-btn { inset-block: 50% auto; translate: 0 -50%; }
/* התפריט עצמו לא אמור להתהפך יחד עם העמוד */
html.wba-c-invert #wba-root { filter: invert(1) hue-rotate(180deg); }

/* בנייד יש סרגל פעולות בתחתית המסך, ולכן הכפתור עולה מעליו */
@media (max-width: 700px) {
	#wba-root { --wba-bot: calc(var(--wba-bot-base, 20px) + 74px); }
}
@media print {
	#wba-root, #wba-guide, #wba-mask, #wba-speakbar { display: none !important; }
}

/* ===== v1.1: מצב קריאה נקי, תיאורי תמונות, בקרת הקראה ===== */
/* מצב קריאה: עמודה אחת, בלי עיטורים, רקע רגוע */
html.wba-reader .orb,
html.wba-reader .wb-grid-bg,
html.wba-reader canvas,
html.wba-reader [aria-hidden="true"]:not(svg):not(.wba-sr),
html.wba-reader .v4-mock,
html.wba-reader .v4-ticker,
html.wba-reader video { display: none !important; }
html.wba-reader body { background: #0b1020 !important; }
html.wba-reader main,
html.wba-reader .container,
html.wba-reader .wba-container { max-width: 72ch !important; margin-inline: auto !important; }
html.wba-reader main * { float: none !important; position: static !important; }
html.wba-reader main p,
html.wba-reader main li { font-size: 1.05em !important; line-height: 1.9 !important; max-width: 72ch; }
html.wba-reader main [class*="grid"],
html.wba-reader main [class*="cards"],
html.wba-reader main [class*="split"] { display: block !important; }
html.wba-reader main img { max-width: 100% !important; height: auto !important; margin-inline: auto; }
html.wba-reader main [style*="background-image"] { background-image: none !important; }

/* תיאור תמונה מתחת לתמונה */
.wba-altcap {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	padding: 6px 10px;
	margin: 6px 0 12px;
	border-inline-start: 3px solid #22d3ee;
	background: rgba(34, 211, 238, .08);
	color: inherit;
	text-align: start;
}

/* סרגל ההקראה */
#wba-speakbar .wba-speakctl { display: inline-flex; gap: 8px; align-items: center; }
#wba-speakbar button[hidden] { display: none !important; }
.wba-speak-on { outline: 3px solid #22d3ee !important; outline-offset: 3px; border-radius: 6px; }
