/* Orel Zagoury accessibility layer */
.skip-to-nav,
.skip-to-content {
  position: absolute;
  top: -48px;
  inset-inline-start: 12px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.9rem;
}
.skip-to-content { inset-inline-start: 148px; }
.skip-to-nav:focus,
.skip-to-content:focus {
  top: 8px;
}

:focus-visible {
  outline: 3px solid #1a5fb4;
  outline-offset: 3px;
}

.oz-a11y-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #0d1a2f;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 26, 47, 0.28);
}
.oz-a11y-btn:hover { background: #173056; }
.oz-a11y-btn[aria-expanded="true"],
.oz-a11y-btn.is-listening { background: #c57b68; }

.oz-a11y-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  left: auto;
  top: auto;
  z-index: 95;
  width: min(360px, calc(100vw - 24px));
  max-height: min(78vh, calc(100dvh - 110px));
  background: #fff;
  color: #0d1a2f;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 20px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(13, 26, 47, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.oz-a11y-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.oz-a11y-panel h2 {
  font-family: inherit;
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: #0d1a2f;
  text-align: right;
}
.oz-a11y-panel h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: #0d1a2f;
}
.oz-a11y-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: right;
}
.oz-a11y-switch-text { flex: 1; min-width: 0; }
.oz-a11y-switch-text strong { display: block; font-size: 0.95rem; }
.oz-a11y-switch-text small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
}
.oz-a11y-knob {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #d1d5db;
}
.oz-a11y-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  inset-inline-start: 3px;
}
.oz-a11y-switch[aria-checked="true"] .oz-a11y-knob { background: #0d1a2f; }
.oz-a11y-switch[aria-checked="true"] .oz-a11y-knob::after {
  inset-inline-start: auto;
  inset-inline-end: 3px;
}
.oz-a11y-mic-status {
  min-height: 0;
  margin: 0;
  padding: 0 0 4px;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
}
.oz-a11y-mic-status:empty { display: none; }
.oz-a11y-block {
  padding: 16px 0;
  border-bottom: 1px solid #ececec;
  text-align: center;
}
.oz-a11y-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.oz-a11y-metrics button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 0.72rem;
  line-height: 1.25;
  cursor: pointer;
  padding: 4px 2px;
}
.oz-a11y-metrics button.is-on {
  color: #0d1a2f;
  font-weight: 700;
}
.oz-a11y-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.oz-a11y-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #0d1a2f;
  background: #fff;
  color: #0d1a2f;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.oz-a11y-stepper span { font-size: 0.95rem; min-width: 3.2rem; }
.oz-a11y-cancel {
  display: inline-block;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 16px;
  border: 1px solid #0d1a2f;
  border-radius: 999px;
  background: #fff;
  color: #0d1a2f;
  cursor: pointer;
  font-size: 0.88rem;
}
.oz-a11y-align {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 12px;
}
.oz-a11y-align button {
  border: 0;
  border-inline-start: 1px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 8px 4px 10px;
  font-size: 0.8rem;
}
.oz-a11y-align button:first-child { border-inline-start: 0; }
.oz-a11y-align button.is-on { color: #0d1a2f; font-weight: 700; }
.oz-a11y-align-ico {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin: 0 auto 6px;
  width: 22px;
}
.oz-a11y-align-ico.center { align-items: center; }
.oz-a11y-align-ico.left { align-items: flex-start; }
.oz-a11y-align-ico i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.oz-a11y-align-ico i:nth-child(1) { width: 22px; }
.oz-a11y-align-ico i:nth-child(2) { width: 16px; }
.oz-a11y-align-ico i:nth-child(3) { width: 20px; }
.oz-a11y-cursors {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}
.oz-a11y-cursors button {
  width: 64px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
}
.oz-a11y-cursors button + button {
  border-inline-start: 1px solid #111;
}
.oz-a11y-cursors button.is-on { opacity: 1; }
.oz-a11y-more { padding: 10px 0 6px; }
.oz-a11y-more summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0d1a2f;
  padding: 6px 0;
}
.oz-a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}
.oz-a11y-grid button,
.oz-a11y-actions button,
.oz-a11y-actions a.btn {
  min-height: 42px;
  border: 1px solid #e5e7eb;
  background: #f7f7f8;
  color: #0d1a2f;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oz-a11y-grid button.is-on {
  background: #0d1a2f;
  border-color: #0d1a2f;
  color: #fff;
}
.oz-a11y-actions { display: grid; gap: 8px; margin-top: 8px; }
.oz-a11y-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #0d1a2f;
  font-size: 1.3rem;
  cursor: pointer;
}
.oz-a11y-help {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13,26,47,0.55);
  place-items: center;
  padding: 20px;
}
.oz-a11y-help.is-open { display: grid; }
.oz-a11y-help form {
  width: min(420px, 100%);
  background: #fff;
  color: #2c1b16;
  padding: 22px;
}
.oz-a11y-help label { display: block; margin: 10px 0 4px; font-size: 0.9rem; }
.oz-a11y-help input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9b8ae;
}
.oz-a11y-help .row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.oz-a11y-guide {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(197, 123, 104, 0.55);
  pointer-events: none;
  z-index: 80;
}
html.a11y-guide .oz-a11y-guide { display: block; }

html.a11y-readable-font, html.a11y-readable-font body { font-family: Arial, "Noto Sans Hebrew", sans-serif !important; }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-bold-headings h1, html.a11y-bold-headings h2, html.a11y-bold-headings h3 {
  font-weight: 800 !important;
  text-decoration: underline;
}
html.a11y-dark {
  filter: invert(1) hue-rotate(180deg);
}
html.a11y-dark img, html.a11y-dark video, html.a11y-dark .hero-art { filter: invert(1) hue-rotate(180deg); }
html.a11y-light { background: #fff !important; }
html.a11y-light body { background: #fff !important; color: #111 !important; }
html.a11y-high-contrast { background: #000 !important; }
html.a11y-high-contrast body { background: #000 !important; color: #ff0 !important; }
html.a11y-high-contrast a { color: #0ff !important; }
html.a11y-sat-high { filter: saturate(1.8); }
html.a11y-sat-low { filter: saturate(0.35); }
html.a11y-mono { filter: grayscale(1); }
html.a11y-hide-images img { visibility: hidden !important; }
html.a11y-stop-anim *, html.a11y-stop-anim *::before, html.a11y-stop-anim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-reading img, html.a11y-reading .hero-art, html.a11y-reading .cta,
html.a11y-reading .float-wa { display: none !important; }
html.a11y-reading body { background: #fff !important; color: #111 !important; max-width: 42rem; margin: 0 auto; }
html.a11y-hover *:hover { outline: 2px solid #1a5fb4; }
html.a11y-click *:active { outline: 3px solid #c57b68; }
html.a11y-cursor-black, html.a11y-cursor-black * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='2' d='M4 4 L4 26 L12 20 L18 30 L22 28 L16 18 L26 18 Z'/%3E%3C/svg%3E") 2 2, auto !important; }
html.a11y-cursor-white, html.a11y-cursor-white * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='2' d='M4 4 L4 26 L12 20 L18 30 L22 28 L16 18 L26 18 Z'/%3E%3C/svg%3E") 2 2, auto !important; }
html.a11y-align-right body { text-align: right !important; }
html.a11y-align-left body { text-align: left !important; }
html.a11y-align-center body { text-align: center !important; }
html.a11y-adhd p,
html.a11y-adhd li,
html.a11y-adhd h1,
html.a11y-adhd h2,
html.a11y-adhd h3 {
  max-width: 40rem;
  line-height: 1.95 !important;
}
html.a11y-adhd p:hover,
html.a11y-adhd li:hover {
  background: rgba(197, 123, 104, 0.12);
}
html.a11y-kb .a11y-kb-on { outline: 3px solid #c57b68; outline-offset: 4px; }
html.a11y-speak { cursor: help; }
.a11y-speaking {
  outline: 3px solid #c57b68;
  outline-offset: 4px;
}
.oz-a11y-speak-hint {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 91;
  max-width: min(240px, calc(100vw - 90px));
  background: #0d1a2f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(13, 26, 47, 0.28);
}
.oz-a11y-speak-hint[hidden] { display: none !important; }

@media (max-width: 600px) {
  .oz-a11y-btn { bottom: 88px; right: 14px; }
  .oz-a11y-panel {
    right: 12px;
    bottom: 152px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, calc(100dvh - 180px));
  }
  .oz-a11y-speak-hint {
    right: 14px;
    bottom: 152px;
  }
}
