/* ============================================================
   Accessibility styles (Israeli Standard 5568 / IS 5568)
   ============================================================ */

/* --- Skip-to-content link --- */
.a11y-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  z-index: 100000;
}
.a11y-skip:focus {
  width: auto;
  height: auto;
  padding: 12px 18px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  inset-inline-start: 12px;
  top: 12px;
  border-radius: 0 0 8px 8px;
}

/* --- Visible focus ring on every interactive element --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffbf00 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(255,191,0,.35) !important;
}

/* --- Screen-reader-only utility --- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Accessibility widget (toolbar)
   ============================================================ */
.a11y-toggle {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  cursor: pointer;
  z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  line-height: 1;
}
.a11y-toggle:hover { background: #1e40af; }

.a11y-panel {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 80px;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 16px;
  z-index: 99999;
  display: none;
  font-family: inherit;
  text-align: right;
  direction: rtl;
}
.a11y-panel.open { display: block; }
.a11y-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.a11y-panel button.a11y-opt {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #111;
}
.a11y-panel button.a11y-opt:hover { background: #e5e7eb; }
.a11y-panel button.a11y-opt.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
.a11y-panel .a11y-reset {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.a11y-panel .a11y-link {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #1d4ed8;
  text-decoration: underline;
  text-align: center;
}

/* --- Body modifications applied by widget --- */
body.a11y-big-text   { font-size: 118% !important; }
body.a11y-bigger-text{ font-size: 135% !important; }
body.a11y-high-contrast,
body.a11y-high-contrast * {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.a11y-high-contrast a,
body.a11y-high-contrast button { color: #ffbf00 !important; }
body.a11y-readable, body.a11y-readable * {
  font-family: Arial, "Open Sans Hebrew", "Segoe UI", sans-serif !important;
  letter-spacing: .02em !important;
}
body.a11y-highlight-links a,
body.a11y-highlight-links button {
  outline: 2px dashed #ffbf00 !important;
  outline-offset: 2px !important;
}
body.a11y-no-anim, body.a11y-no-anim * {
  animation: none !important;
  transition: none !important;
}

/* --- Mobile: lift the toggle above the sticky CTA bar --- */
@media (max-width: 600px) {
  .a11y-toggle { bottom: 90px; }
  .a11y-panel  { bottom: 154px; }
}
