.a11y-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;
}
.a11y-skip {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #fff200;
  color: #000000;
  padding: 14px 28px;
  text-decoration: underline;
  font-weight: 700;
  font-family: 'FbEinstein', Assistant, sans-serif;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.a11y-skip:focus { top: 0; outline: 3px solid #000; }

.a11y-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #1565d8;
  color: #F4F1EA;
  border: 2px solid #ffffff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
}
.a11y-trigger:hover,
.a11y-trigger:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.48);
  outline: 3px solid #1565d8;
  outline-offset: 3px;
}
.a11y-trigger svg { width: 23px; height: 23px; display: block; }

.a11y-panel {
  position: fixed;
  bottom: 84px;
  left: 24px;
  z-index: 8999;
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(15, 30, 46, 0.97);
  color: #F4F1EA;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  font-family: 'FbEinstein', Assistant, sans-serif;
  font-weight: 400;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(.2, .8, .25, 1);
  direction: rtl;
}
.a11y-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.a11y-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 300; font-size: 17px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px 14px 0 0;
}
.a11y-panel__title { letter-spacing: 0.5px; }
.a11y-panel__close {
  background: transparent; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: #F4F1EA; padding: 0 6px;
}
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}
.a11y-tile {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #1a2438;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  text-align: right;
  min-height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.a11y-tile::after {
  content: ""; margin-inline-start: auto; flex: none;
  width: 32px; height: 18px; border-radius: 9px;
  background: #d7dce3 radial-gradient(circle at calc(100% - 9px) 50%, #ffffff 6px, transparent 6.5px) no-repeat;
  transition: background 0.25s ease;
}
.a11y-tile:hover { transform: translateY(-2px); background: #f5f7fa; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); }
.a11y-tile:focus-visible { outline: 3px solid #1565d8; outline-offset: 2px; }
.a11y-tile.is-active { background: #ffffff; color: #151F2A; border-color: #151F2A; }
.a11y-tile.is-active::after { background: #151F2A radial-gradient(circle at 9px 50%, #ffffff 6px, transparent 6.5px) no-repeat; }
.a11y-tile__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; padding: 9px; border-radius: 50%;
  background: #eef1f5; color: #1a2438;
  transition: background 0.18s ease, color 0.18s ease;
}
.a11y-tile.is-active .a11y-tile__icon { background: #151F2A; color: #ffffff; }
.a11y-tile__icon svg { width: 100%; height: 100%; }
.a11y-tile__label { font-weight: 400; font-size: 14.5px; line-height: 1.25; }
.a11y-panel__foot {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.a11y-reset {
  display: flex; align-items: center; gap: 8px;
  background: #ffffff; color: #151F2A;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit; font-weight: 300; font-size: 13px;
}
.a11y-reset:hover { background: #DDF7F4; border-color: #151F2A; }
.a11y-reset .a11y-tile__icon { width: 18px; height: 18px; padding: 0; background: none; color: #151F2A; }
.a11y-panel__links { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.a11y-report { color: #F4F1EA; text-decoration: none; font-size: 12.5px; }
.a11y-report:hover { color: #2EC4B6; }

/* Hover tooltip for "הצגת תיאור" mode */
.a11y-tip {
  position: fixed; z-index: 99998;
  background: #1a2438; color: #F4F1EA;
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  font-family: 'FbEinstein', Assistant, sans-serif;
  pointer-events: none;
  opacity: 0; transition: opacity 0.12s ease;
  max-width: 320px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.a11y-tip.is-on { opacity: 1; }

/* Alt-text caption — visible label injected next to images */
.a11y-alt-caption { display: none; }
body.a11y-alt-text .a11y-alt-caption {
  display: block;
  background: #ffeeba; color: #5a4500;
  border: 1px dashed #b08900;
  padding: 4px 10px;
  font-size: 12px; font-weight: 600;
  margin-top: 2px; border-radius: 4px;
  font-family: 'FbEinstein', Assistant, sans-serif;
}
body.a11y-alt-text img[alt]:not([alt=""]) { outline: 2px solid #b08900; outline-offset: 1px; }
body.a11y-alt-text img:not([alt]),
body.a11y-alt-text img[alt=""] { outline: 3px dashed #e60000; outline-offset: 2px; }

/* ===== Body-class effects — keep panel/trigger usable in every mode ===== */

/* Keyboard navigation — prominent focus rings */
body.a11y-keyboard *:focus,
body.a11y-keyboard *:focus-visible {
  outline: 4px solid #fff200 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.75) !important;
  border-radius: 4px !important;
}

/* Stop animations / blinking */
body.a11y-no-anim *,
body.a11y-no-anim *::before,
body.a11y-no-anim *::after {
  animation: none !important;
  transition: none !important;
}

/* Page wrapper — created by a11y.js to host filters/zoom without breaking
   position:fixed on the widget. By default it behaves like a transparent
   block. */
#dc-root { display: block; }

/* Filter group — applied to the page wrapper so the floating button and
   panel (which are siblings of the wrap, NOT inside it) keep their fixed
   anchor to the viewport. */
body.a11y-grayscale #dc-root { filter: grayscale(1); }
body.a11y-sepia     #dc-root { filter: sepia(0.85); }
body.a11y-invert    #dc-root { filter: invert(1) hue-rotate(180deg); }
body.a11y-invert    #dc-root img,
body.a11y-invert    #dc-root video,
body.a11y-invert    #dc-root canvas { filter: invert(1) hue-rotate(180deg); }

/* High contrast — boost contrast filter without breaking color identity */
body.a11y-contrast-hi #dc-root { filter: contrast(1.55) saturate(1.3); }

/* Black/Yellow — strict mono */
body.a11y-black-yellow,
body.a11y-black-yellow * {
  background: #000000 !important;
  background-image: none !important;
  color: #fff200 !important;
  border-color: #fff200 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}
body.a11y-black-yellow a,
body.a11y-black-yellow a * { color: #00e8ff !important; text-decoration: underline !important; }
body.a11y-black-yellow img,
body.a11y-black-yellow video,
body.a11y-black-yellow canvas { filter: grayscale(1) contrast(1.4); opacity: 0.7; }
/* Keep widget surfaces readable in B/Y mode */
body.a11y-black-yellow .a11y-trigger,
body.a11y-black-yellow .a11y-panel,
body.a11y-black-yellow .a11y-panel *,
body.a11y-black-yellow .a11y-tile,
body.a11y-black-yellow .a11y-tile *,
body.a11y-black-yellow .a11y-reset { background: #000 !important; color: #fff200 !important; border-color: #fff200 !important; }

/* Always exempt the widget from filters that affect the whole page */
body.a11y-grayscale .a11y-trigger,
body.a11y-grayscale .a11y-panel,
body.a11y-sepia .a11y-trigger,
body.a11y-sepia .a11y-panel,
body.a11y-invert .a11y-trigger,
body.a11y-invert .a11y-panel,
body.a11y-contrast-hi .a11y-trigger,
body.a11y-contrast-hi .a11y-panel { filter: none; }

/* Heading highlight */
body.a11y-headings h1,
body.a11y-headings h2,
body.a11y-headings h3,
body.a11y-headings h4,
body.a11y-headings h5,
body.a11y-headings h6 {
  outline: 3px solid #1565d8 !important;
  outline-offset: 3px !important;
  background: #fff200 !important;
  color: #000000 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}

/* Link highlight */
body.a11y-links a,
body.a11y-links a * {
  background: #fff200 !important;
  color: #000000 !important;
  text-decoration: underline !important;
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

/* Fonts */
body.a11y-font-fixed,
body.a11y-font-fixed * { font-family: "Courier New", "Consolas", monospace !important; letter-spacing: 0.01em !important; }
body.a11y-font-readable,
body.a11y-font-readable * { font-family: "Arial", "Heebo", "Helvetica", sans-serif !important; letter-spacing: 0.02em !important; }

/* Font size scaling — handled by JS DOM walker in a11y.js (scaleAllFonts).
   CSS alone can't override px-based font-sizes throughout the site. */

/* Whole-page zoom — applied to the wrapper so the widget stays at its
   fixed pixel offset from the real viewport. */
body.a11y-zoom-in  #dc-root { zoom: 1.2; }
body.a11y-zoom-out #dc-root { zoom: 0.85; }
/* Any mode that breaks custom-cursor positioning — zoom (clientX/Y
   doesn't follow CSS zoom) and filters/black-yellow on #dc-root
   (which create a new containing block for fixed-position descendants
   like #lb-cur-ring, body.__x #lb-cur-dot). Hide the custom cursor + page-liquid blob, and
   restore the native cursor that the site CSS would otherwise suppress. */
body.a11y-zoom-in    #lb-cur-ring, body.a11y-zoom-in    #lb-cur-dot,
body.a11y-zoom-out   #lb-cur-ring, body.a11y-zoom-out   #lb-cur-dot,
body.a11y-grayscale  #lb-cur-ring, body.a11y-grayscale  #lb-cur-dot,
body.a11y-sepia      #lb-cur-ring, body.a11y-sepia      #lb-cur-dot,
body.a11y-invert     #lb-cur-ring, body.a11y-invert     #lb-cur-dot,
body.a11y-contrast-hi #lb-cur-ring, body.a11y-contrast-hi #lb-cur-dot,
body.a11y-black-yellow #lb-cur-ring, body.a11y-black-yellow #lb-cur-dot,
body.a11y-zoom-in    .cta-drops,
body.a11y-zoom-out   .cta-drops,
body.a11y-grayscale  .cta-drops,
body.a11y-sepia      .cta-drops,
body.a11y-invert     .cta-drops,
body.a11y-contrast-hi .cta-drops,
body.a11y-black-yellow .cta-drops { display: none !important; }

body.a11y-zoom-in,    body.a11y-zoom-in *,
body.a11y-zoom-out,   body.a11y-zoom-out *,
body.a11y-grayscale,  body.a11y-grayscale *,
body.a11y-sepia,      body.a11y-sepia *,
body.a11y-invert,     body.a11y-invert *,
body.a11y-contrast-hi, body.a11y-contrast-hi *,
body.a11y-black-yellow, body.a11y-black-yellow * { cursor: auto !important; }
body.a11y-zoom-in    a, body.a11y-zoom-in    button,
body.a11y-zoom-out   a, body.a11y-zoom-out   button,
body.a11y-grayscale  a, body.a11y-grayscale  button,
body.a11y-sepia      a, body.a11y-sepia      button,
body.a11y-invert     a, body.a11y-invert     button,
body.a11y-contrast-hi a, body.a11y-contrast-hi button,
body.a11y-black-yellow a, body.a11y-black-yellow button { cursor: pointer !important; }

/* Cursor — apply to body+all. Also force the site's custom cursor and
   page-liquid blob off so only the accessibility cursor is visible. */
body.a11y-cursor-black, body.a11y-cursor-black * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'><path fill='%23000' stroke='%23fff' stroke-width='1' d='M5 3l13 9-6 1 3 7-2 1-3-7-5 4z'/></svg>") 0 0, auto !important;
}
body.a11y-cursor-big, body.a11y-cursor-big * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24'><path fill='%23fff' stroke='%23000' stroke-width='1.4' d='M5 3l13 9-6 1 3 7-2 1-3-7-5 4z'/></svg>") 0 0, auto !important;
}
body.a11y-cursor-black #lb-cur-ring, body.a11y-cursor-black #lb-cur-dot,
body.a11y-cursor-big   #lb-cur-ring, body.a11y-cursor-big   #lb-cur-dot,
body.a11y-cursor-black .cta-drops,
body.a11y-cursor-big   .cta-drops { display: none !important; }

/* Stop animations / blinking — also kill the canvas-driven and
   cursor-follower effects that don't use CSS animations. */
body.a11y-no-anim .cta-drops,
body.a11y-no-anim #lb-cur-ring, body.a11y-no-anim #lb-cur-dot { display: none !important; }

@media (max-width: 640px) {
  .a11y-trigger { width: 42px; height: 42px; bottom: 16px; left: 16px; }
  .a11y-trigger svg { width: 20px; height: 20px; }
  .a11y-panel { left: 12px; bottom: 68px; width: calc(100vw - 24px); }
  .a11y-grid { grid-template-columns: minmax(0, 1fr); }
  .a11y-tile { min-height: 52px; }
}
.a11y-cap-layer { position:fixed; inset:0; pointer-events:none; z-index:8990; }
.a11y-cap-layer .a11y-alt-caption { box-shadow:0 4px 12px rgba(0,0,0,.25); }
