/* רכיבי ממשק צפים: וואטסאפ, סרגל נגישות, נגן סרטונים. ואז ההתאמות. */

/* וואטסאפ צף. ב-RTL הצד ה"סופי" הוא שמאל, כדי לא לכסות את סרגל הגלילה של ימין */
.bs-float-wa {
	position: fixed; bottom: 1.1rem; inset-inline-end: 1.1rem; z-index: 95;
	display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1.2rem 0 .6rem;
	background: var(--bs-wa); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700;
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform var(--bs-dur) var(--bs-ease);
}
.bs-float-wa:hover { transform: translateY(-3px); color: #fff; }
.bs-float-wa .bs-ico { width: 30px; height: 30px; }
@media (max-width: 640px) { .bs-float-wa { padding: 0; width: 56px; justify-content: center; } .bs-float-wa__txt { display: none; } }

/* כפתור הנגישות */
.bs-a11y-btn {
	position: fixed; bottom: 1.1rem; inset-inline-start: 1.1rem; z-index: 95;
	width: 54px; height: 54px; display: grid; place-items: center; border: 2px solid var(--bs-gold); border-radius: 50%;
	background: var(--bs-navy); color: var(--bs-gold); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
	transition: transform var(--bs-dur) var(--bs-ease);
}
.bs-a11y-btn:hover { transform: scale(1.06); }
.bs-a11y-btn .bs-ico { width: 30px; height: 30px; }

.bs-a11y {
	position: fixed; bottom: calc(1.1rem + 64px); inset-inline-start: 1.1rem; z-index: 96;
	width: min(390px, calc(100vw - 2.2rem)); max-height: calc(100dvh - 2.2rem - 64px);
	display: flex; flex-direction: column; background: #fff; color: var(--bs-ink); border: 1px solid var(--bs-gold); border-radius: var(--bs-radius-lg);
	box-shadow: var(--bs-shadow-lg); overflow: hidden;
}
.bs-a11y__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--bs-s2); padding: var(--bs-s3) var(--bs-s4); background: var(--bs-navy); color: #fff; }
.bs-a11y__title { display: flex; align-items: center; gap: var(--bs-s2); font-weight: 700; }
.bs-a11y__title .bs-ico { width: 22px; height: 22px; color: var(--bs-gold); }
.bs-a11y__x { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.bs-a11y__x:hover { background: rgba(255, 255, 255, .25); }
.bs-a11y__x .bs-ico { width: 18px; height: 18px; }
.bs-a11y__body { padding: var(--bs-s3); overflow-y: auto; overscroll-behavior: contain; }
.bs-a11y__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bs-s2); }
.bs-a11y__tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: var(--bs-s3) 6px; min-width: 0; text-align: center; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); background: #fff; cursor: pointer; transition: border-color var(--bs-dur), background var(--bs-dur); }
.bs-a11y__tile:hover { border-color: var(--bs-gold); background: var(--bs-gold-tint); }
.bs-a11y__tile input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.bs-a11y__tile:focus-within { outline: 3px solid var(--bs-gold); outline-offset: 2px; }
.bs-a11y__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bs-cream); color: var(--bs-navy); transition: background var(--bs-dur), color var(--bs-dur); }
.bs-a11y__ico .bs-ico { width: 22px; height: 22px; }
.bs-a11y__lbl { font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--bs-navy); }
.bs-a11y__hint { font-size: .72rem; line-height: 1.3; color: var(--bs-ink-soft); }
.bs-a11y__tile:has(input:checked) { border-color: var(--bs-navy); background: var(--bs-gold-tint); box-shadow: inset 0 0 0 1px var(--bs-navy); }
.bs-a11y__tile:has(input:checked) .bs-a11y__ico { background: var(--bs-navy); color: var(--bs-gold); }
.bs-a11y__tile:has(input:checked)::after { content: '✓'; position: absolute; top: 4px; inset-inline-end: 7px; font-size: .75rem; font-weight: 700; color: var(--bs-navy); }
.bs-a11y__reset { width: 100%; margin-top: var(--bs-s3); display: flex; align-items: center; justify-content: center; gap: var(--bs-s2); min-height: 44px; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); background: none; font-size: .85rem; font-weight: 700; color: var(--bs-ink-soft); cursor: pointer; }
.bs-a11y__reset:hover { border-color: var(--bs-navy); color: var(--bs-navy); }
.bs-a11y__reset .bs-ico { width: 16px; height: 16px; }
.bs-a11y__foot { flex: none; padding: var(--bs-s3); border-top: 1px solid var(--bs-line); background: var(--bs-cream); }
.bs-a11y__doc { display: flex; align-items: center; gap: var(--bs-s2); padding: var(--bs-s3); border: 1px solid var(--bs-navy); border-radius: var(--bs-radius); background: #fff; color: var(--bs-navy); text-decoration: none; }
.bs-a11y__doc:hover { background: var(--bs-gold-tint); }
.bs-a11y__doc > .bs-ico:first-child { width: 22px; height: 22px; color: var(--bs-gold-text); }
.bs-a11y__doc span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bs-a11y__doc strong { font-size: .92rem; }
.bs-a11y__doc small { font-size: .74rem; color: var(--bs-ink-soft); line-height: 1.35; }
.bs-a11y__arr { width: 18px; height: 18px; }
.bs-a11y__note { margin: var(--bs-s3) 0 0; font-size: .8rem; line-height: 1.6; color: var(--bs-ink-soft); }
.bs-a11y__note a { color: var(--bs-navy); }

/* נגן סרטונים */
.bs-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(7, 20, 41, .92); }
.bs-lightbox__frame { width: min(100%, 1000px); aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--bs-gold); border-radius: var(--bs-radius); overflow: hidden; }
.bs-lightbox__frame :is(iframe, video) { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.bs-lightbox__frame.is-portrait { width: min(100%, calc(92vh * 9 / 16)); width: min(100%, calc(92dvh * 9 / 16)); aspect-ratio: 9 / 16; }
.bs-lightbox__x { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--bs-gold); border-radius: 50%; background: var(--bs-navy); color: #fff; cursor: pointer; }
.bs-lightbox__x .bs-ico { width: 22px; height: 22px; }
body.bs-lightbox-open { overflow: hidden; }

/* ===== ההתאמות של סרגל הנגישות ===== */
html.a11y-bigtext { font-size: 118%; }
html.a11y-bigger { font-size: 138%; }

html.a11y-contrast { --bs-ink-soft: #1a2230; --bs-light: #ffffff; --bs-gold-text: #6a4f17; --bs-line: #8a8474; }
html.a11y-contrast .bs-hero__lead, html.a11y-contrast .bs-lead { color: inherit; }
html.a11y-contrast .bs-section--navy .bs-lead, html.a11y-contrast .bs-hero__lead { color: #fff; }

/* ניגודיות הפוכה: צהוב על שחור. הסריקה גורפת, כל כלל שנשאר בחוץ הוא כתם בהיר. */
html.a11y-dark, html.a11y-dark body { background: #000 !important; }
html.a11y-dark *:not(svg):not(svg *) { background-color: #000 !important; background-image: none !important; color: #ffe74c !important; border-color: #ffe74c !important; box-shadow: none !important; text-shadow: none !important; outline-color: #ffe74c !important; }
html.a11y-dark :is(a, a *) { color: #7fd7ff !important; }
html.a11y-dark :is(.bs-btn, button, input, textarea, select) { border: 2px solid currentColor !important; }
html.a11y-dark .bs-divider :is(i, b), html.a11y-dark .bs-eyebrow::before, html.a11y-dark .bs-nusach__mark, html.a11y-dark .bs-step__num b { background: #ffe74c !important; }
html.a11y-dark :is(.bs-hero__glow, .bs-hero__tiles, .bs-about__tiles, .bs-arcade, .bs-arcade-line, .bs-marquee) { display: none !important; }
html.a11y-dark .bs-archframe, html.a11y-dark .bs-archframe__in, html.a11y-dark .bs-pillar { background: #ffe74c !important; }
html.a11y-dark .bs-plan__badge { background: #ffe74c !important; color: #000 !important; }
html.a11y-dark img { filter: none !important; }

html.a11y-links a:not(.bs-btn):not(.bs-logo) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 2px; }
html.a11y-heads :is(h1, h2, h3, h4) { outline: 2px dashed currentColor; outline-offset: 4px; }
html.a11y-readable :is(body, p, li, a, span, label, input, textarea, button, h1, h2, h3, h4, strong) { font-family: Arial, 'Arial Hebrew', sans-serif !important; letter-spacing: .03em !important; word-spacing: .1em !important; line-height: 1.85 !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4 8 38 16 30 22 44 30 40 24 27 36 26z' fill='%23000' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") 6 4, auto !important; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
html.a11y-nomotion .bs-marquee__track { animation: none !important; }
html.a11y-nomotion .bs-reveal:not(.is-in) { opacity: 1 !important; transform: none !important; }

/* עמוד ההצהרה */
.bs-a11y-doc h2 { margin-top: 2.2em; }
.bs-a11y-doc h2:first-child { margin-top: 0; }

@media print {
	.bs-header, .bs-float-wa, .bs-a11y-btn, .bs-a11y, .bs-lightbox, .bs-hero__scroll, .bs-marquee { display: none !important; }
	.bs-reveal { opacity: 1 !important; transform: none !important; }
	.bs-section { padding-block: 1.5rem; }
}
