/* לבלר — תפריט נגישות (מגירה צדדית). תוספת נוחות; האתר נגיש גם בלעדיו. */

#a11y-root { zoom: 1; font-family: "Assistant", Arial, sans-serif; font-size: 16px; line-height: 1.35; letter-spacing: normal; word-spacing: normal; }
#a11y-root *, #a11y-root *::before, #a11y-root *::after { box-sizing: border-box; letter-spacing: normal; word-spacing: normal; font-family: "Assistant", Arial, sans-serif; cursor: auto; }
#a11y-root button { cursor: pointer; }

/* ---------- כפתור הפתיחה: ריבוע שחור בפינה השמאלית העליונה ---------- */
.a11y-open {
  position: fixed; top: 0; left: 0; z-index: 9990;
  width: 40px; height: 40px; padding: 0; margin: 0;
  background: #000; color: #fff; border: 0; border-radius: 0 0 4px 0;
  display: grid; place-items: center;
}
.a11y-open svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-open:hover { background: #1B2A41; }
.a11y-open:focus-visible { outline: 3px solid #F5B800; outline-offset: 2px; }
.a11y-open[hidden] { display: none; }

/* ---------- שכבת רקע ומגירה ---------- */
.a11y-overlay { position: fixed; inset: 0; z-index: 9991; background: rgba(10, 16, 26, .45); }
.a11y-overlay[hidden] { display: none; }

.a11y-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 9992;
  width: min(480px, 100vw); background: #fff; color: #2B2B33;
  box-shadow: 6px 0 28px rgba(0,0,0,.28);
  display: flex; flex-direction: column;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.a11y-drawer.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
@media (prefers-reduced-motion: reduce) { .a11y-drawer, .a11y-drawer.is-open { transition: none; } }

.a11y-dhead {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1B2A41; color: #fff; padding: 10px 16px; min-height: 60px;
}
.a11y-dhead h2 { margin: 0; font-size: 24px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.a11y-dhead h2 svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-x { width: 44px; height: 44px; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 4px; font-size: 26px; line-height: 1; padding: 0; }
.a11y-x:hover { background: rgba(255,255,255,.12); }

.a11y-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 24px; background: #F7F7FA; }

.a11y-sec { margin-top: 18px; }
.a11y-sec h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #1B2A41; padding-bottom: 6px; border-bottom: 2px solid #1B2A41; }

.a11y-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-tiles.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 360px) { .a11y-tiles, .a11y-tiles.three { grid-template-columns: 1fr; } }

.a11y-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: 104px; padding: 12px 8px 10px; margin: 0;
  background: #fff; color: #363636; border: 1px solid #DDDDEA; border-radius: 3px;
  font-size: 15px; font-weight: 700; text-align: center;
}
.a11y-tile:hover { border-color: #1B2A41; }
.a11y-tile svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.a11y-tile small { display: block; font-size: 12.5px; font-weight: 400; color: #5E5E6B; line-height: 1.3; }
.a11y-tile[aria-pressed="true"] { border: 2px solid #9E2B25; color: #9E2B25; padding: 11px 7px 9px; background: #FBF4F3; }
.a11y-tile[aria-pressed="true"] small { color: #7A2420; }
.a11y-tile[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 4px; left: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: #9E2B25; color: #fff; font-size: 13px; line-height: 20px; text-align: center;
}
.a11y-steps { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.a11y-steps i { width: 14px; height: 4px; background: #DDDDEA; border-radius: 2px; }
.a11y-steps i.on { background: #9E2B25; }

.a11y-tile:focus-visible, .a11y-x:focus-visible, .a11y-swatch:focus-visible, .a11y-link:focus-visible, .a11y-plain:focus-visible {
  outline: 3px solid #F5B800; outline-offset: 2px;
}

/* גודל גופן */
.a11y-size { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.a11y-size .a11y-tile { flex: 1; min-height: 64px; }
.a11y-size output { min-width: 64px; text-align: center; font-weight: 700; font-size: 18px; color: #1B2A41; }

/* התאמת צבעים */
.a11y-colors { background: #fff; border: 1px solid #DDDDEA; border-radius: 3px; padding: 12px; }
.a11y-colors fieldset { border: 0; margin: 0 0 10px; padding: 0; }
.a11y-colors legend { font-weight: 700; font-size: 15px; color: #363636; margin-bottom: 6px; padding: 0; }
.a11y-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #C9C9D6; padding: 0; position: relative; }
.a11y-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #9E2B25; border-color: #9E2B25; }

.a11y-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; background: #fff; color: #1B2A41;
  border: 1px solid #1B2A41; border-radius: 3px; font-size: 15px; font-weight: 700;
}
.a11y-plain:hover { background: #F0F0F5; }

/* תחתית */
.a11y-foot { margin-top: 22px; display: grid; gap: 8px; }
.a11y-reset { background: #9E2B25; color: #fff; border: 0; min-height: 52px; border-radius: 3px; font-size: 17px; font-weight: 700; }
.a11y-reset:hover { background: #82221d; }
.a11y-link { display: block; text-align: center; padding: 10px; color: #1B2A41; font-weight: 700; font-size: 15px; }
.a11y-note { font-size: 12.5px; color: #5E5E6B; text-align: center; margin: 4px 0 0; }

.a11y-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- כלי עזר צפים ---------- */
.a11y-guide { position: fixed; left: 0; right: 0; height: 12px; z-index: 9980; pointer-events: none; background: #1B2A41; border-top: 3px solid #F5B800; opacity: .85; }
.a11y-mask { position: fixed; left: 0; right: 0; z-index: 9980; pointer-events: none; background: rgba(0,0,0,.6); }
.a11y-mask.top { top: 0; }
.a11y-mask.bottom { bottom: 0; }
.a11y-tip { position: fixed; z-index: 9985; pointer-events: none; max-width: 280px; background: #1B2A41; color: #fff; padding: 8px 12px; font-size: 15px; border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.a11y-guide[hidden], .a11y-mask[hidden], .a11y-tip[hidden] { display: none; }

/* =========================================================
   אפקטים על האתר (המגירה מוחרגת: #a11y-root)
   ========================================================= */
html.a11y-zoom body > *:not(#a11y-root) { zoom: var(--a11y-zoom); }

/* ניגודיות ורוויה */
html.a11y-mono body > *:not(#a11y-root) { filter: grayscale(1); }
html.a11y-lowsat body > *:not(#a11y-root) { filter: saturate(.45); }
html.a11y-highsat body > *:not(#a11y-root) { filter: saturate(1.9); }

html.a11y-dark body { background: #000 !important; }
html.a11y-dark body > *:not(#a11y-root),
html.a11y-dark body > *:not(#a11y-root) *:not(svg):not(svg *) {
  background-color: #000 !important; background-image: none !important;
  color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-dark body > *:not(#a11y-root) a, html.a11y-dark body > *:not(#a11y-root) a * { color: #FFE14D !important; }
html.a11y-dark body > *:not(#a11y-root) svg { filter: invert(1) hue-rotate(180deg); }

html.a11y-light body { background: #fff !important; }
html.a11y-light body > *:not(#a11y-root),
html.a11y-light body > *:not(#a11y-root) *:not(svg):not(svg *) {
  background-color: #fff !important; background-image: none !important;
  color: #000 !important; border-color: #000 !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-light body > *:not(#a11y-root) a, html.a11y-light body > *:not(#a11y-root) a * { color: #0000C8 !important; }
html.a11y-light body > *:not(#a11y-root) .btn,
html.a11y-light body > *:not(#a11y-root) button { border: 2px solid #000 !important; }

/* צבעים מותאמים */
html.a11y-cbg body,
html.a11y-cbg body > *:not(#a11y-root),
html.a11y-cbg body > *:not(#a11y-root) :is(header, main, section, footer, article, aside, .page, .hero, .modal) { background-color: var(--a11y-bg) !important; background-image: none !important; }
html.a11y-chead body > *:not(#a11y-root) :is(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *) { color: var(--a11y-head) !important; }
html.a11y-ctext body > *:not(#a11y-root) :is(p, li, dd, dt, td, th, label, blockquote, small, em, strong, figcaption, legend, p *, li *) { color: var(--a11y-text) !important; }

/* גופן וריווח */
html.a11y-readable body > *:not(#a11y-root),
html.a11y-readable body > *:not(#a11y-root) *:not(svg *) { font-family: Arial, "Assistant", sans-serif !important; font-style: normal !important; }
html.a11y-lh body > *:not(#a11y-root) *:not(svg *) { line-height: var(--a11y-lh) !important; }
html.a11y-ws body > *:not(#a11y-root) *:not(svg *) { word-spacing: var(--a11y-ws) !important; }
html.a11y-ls body > *:not(#a11y-root) *:not(svg *) { letter-spacing: var(--a11y-ls) !important; }

/* הדגשות */
html.a11y-links body > *:not(#a11y-root) a {
  text-decoration: underline !important; text-decoration-thickness: 2px !important;
  outline: 2px solid currentColor !important; outline-offset: 2px; background-color: #FFF3B0 !important; color: #00008B !important; font-weight: 700 !important;
}
html.a11y-headings body > *:not(#a11y-root) :is(h1, h2, h3, h4, h5, h6) {
  outline: 3px solid #9E2B25 !important; outline-offset: 4px; background-color: #FFF3B0 !important;
}
html.a11y-bigbtn body > *:not(#a11y-root) :is(button, .btn, input[type="submit"], .whatsapp-float) {
  min-height: 56px !important; min-width: 56px !important; font-size: 1.15em !important; padding: 16px 26px !important;
}
html.a11y-hover body > *:not(#a11y-root) :is(a, button, p, li, h1, h2, h3, h4, label, input, textarea, img, svg[role="img"]):hover {
  outline: 3px dashed #9E2B25 !important; outline-offset: 3px;
}

/* ניווט מקלדת */
html.a11y-kbd *:focus { outline: 4px solid #F5B800 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(27,42,65,.75) !important; }

/* סמן גדול */
html.a11y-cur-black, html.a11y-cur-black body > *:not(#a11y-root) *:not(input):not(textarea) {
  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 2l7 19 2.8-7.6L21.5 10z' fill='black' stroke='white' stroke-width='1.3' stroke-linejoin='round'/></svg>") 6 3, auto !important;
}
html.a11y-cur-white, html.a11y-cur-white body > *:not(#a11y-root) *:not(input):not(textarea) {
  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 2l7 19 2.8-7.6L21.5 10z' fill='white' stroke='black' stroke-width='1.3' stroke-linejoin='round'/></svg>") 6 3, auto !important;
}

/* חסימת הבהובים */
html.a11y-noanim body > *:not(#a11y-root), html.a11y-noanim body > *:not(#a11y-root) *,
html.a11y-noanim body > *:not(#a11y-root) *::before, html.a11y-noanim body > *:not(#a11y-root) *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-noanim { scroll-behavior: auto !important; }
html.a11y-noanim svg.engr .o, html.a11y-noanim svg.engr .o-thin, html.a11y-noanim svg.engr .o-red { stroke-dashoffset: 0 !important; }
html.a11y-noanim .engr.pending .shade { opacity: 1 !important; }
