/* Accessibility toolbar — injected site-wide by assets/accessibility.js.
   Provides text-size, contrast, and motion controls per Israeli Standard
   5568 / WCAG 2.1 AA. See /accessibility.html for the full statement. */

.a11y-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #3dffa0;
  background: #0a0c0f;
  color: #3dffa0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  background: #3dffa0;
  color: #0a0c0f;
}
.a11y-toggle svg { width: 26px; height: 26px; }

.a11y-panel {
  position: fixed;
  bottom: 76px;
  left: 20px;
  z-index: 9999;
  width: 260px;
  background: #111318;
  border: 1px solid #2a3040;
  border-radius: 12px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #e8edf5;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #3dffa0;
  margin: 0 0 .75rem;
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}
.a11y-row span { color: #9aa2b5; }
.a11y-btns { display: flex; gap: .35rem; }
.a11y-panel button.a11y-ctrl {
  background: #161a22;
  border: 1px solid #2a3040;
  color: #e8edf5;
  border-radius: 6px;
  padding: .35rem .55rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
}
.a11y-panel button.a11y-ctrl:hover,
.a11y-panel button.a11y-ctrl:focus-visible,
.a11y-panel button.a11y-ctrl[aria-pressed="true"] {
  border-color: #3dffa0;
  color: #3dffa0;
}
.a11y-reset {
  width: 100%;
  margin-top: .5rem;
  background: transparent;
  border: 1px solid #2a3040;
  color: #9aa2b5;
  border-radius: 6px;
  padding: .4rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
}
.a11y-reset:hover { color: #e8edf5; border-color: #e8edf5; }
.a11y-panel a {
  display: block;
  margin-top: .75rem;
  color: #3dffa0;
  font-size: .78rem;
  text-decoration: none;
}
.a11y-panel a:hover { text-decoration: underline; }

/* ── Applied states ── */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
html.a11y-text-xxl { font-size: 137.5%; }

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast :is(p, span, li, td, label, div) { color: #fff !important; }
html.a11y-contrast a { color: #ffe600 !important; text-decoration: underline !important; }
html.a11y-contrast .glow-orb { display: none !important; }
html.a11y-contrast :is(.post-card, .talk-card, .project-card, .service-card, .value-card,
  .option-card, .product-card, .link-card, .stat-card, .price-card, form, .event-card) {
  background: #0a0a0a !important;
  border: 1px solid #fff !important;
  backdrop-filter: none !important;
}

/* Focus visibility floor — never let a page's own CSS remove this. */
.a11y-toggle:focus-visible,
.a11y-panel button:focus-visible,
.a11y-panel a:focus-visible {
  outline: 3px solid #ffe600;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .a11y-panel { width: calc(100vw - 40px); }
}
