/* ===================== תפריט נגישות (widget) ===================== */
.a11y-fab {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff;
  background: #111210; color: #d4fc3a; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgba(0,0,0,.5);
}
.a11y-fab:hover { transform: translateY(-2px); }
.a11y-fab svg { width: 30px; height: 30px; }

.a11y-panel {
  position: fixed; inset-inline-start: 18px; bottom: 84px; z-index: 91;
  width: 290px; max-width: calc(100vw - 36px);
  background: #fff; color: #111210; border: 1px solid #e3e4df; border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); padding: 16px;
  font-family: "Heebo", Arial, sans-serif;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.a11y-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #6b6b66; line-height: 1; padding: 4px; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button {
  font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
  background: #f4f5f1; color: #111210; border: 1.5px solid #e3e4df; border-radius: 12px;
  padding: 11px 8px; text-align: center; transition: background .12s, border-color .12s;
}
.a11y-grid button:hover { border-color: #111210; }
.a11y-grid button[aria-pressed="true"] { background: #d4fc3a; border-color: #111210; }
.a11y-grid button[data-a11y="reset"] { grid-column: 1 / -1; background: #111210; color: #fff; border-color: #111210; }
.a11y-statement { display: block; text-align: center; margin-top: 12px; font-weight: 700; font-size: .85rem; color: #067256; text-decoration: underline; }

/* ===================== מצבי נגישות ===================== */
/* הגדלת טקסט (מדרגי, מבוסס rem) */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 140%; }

/* ניגודיות גבוהה (צהוב על שחור) */
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .topbar, html.a11y-contrast .card, html.a11y-contrast .feature, html.a11y-contrast .step,
html.a11y-contrast .hv-main, html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast .trustband,
html.a11y-contrast .footer, html.a11y-contrast .result-head, html.a11y-contrast .qcard, html.a11y-contrast .q-counter {
  background: #000 !important; color: #fff !important; border-color: #fff !important;
}
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3,
html.a11y-contrast .hl, html.a11y-contrast .stat-num, html.a11y-contrast .hv-amount b { color: #ff0 !important; background: transparent !important; -webkit-text-fill-color: #ff0 !important; }
html.a11y-contrast a, html.a11y-contrast .lead, html.a11y-contrast p, html.a11y-contrast label, html.a11y-contrast .muted { color: #fff !important; }
html.a11y-contrast .btn, html.a11y-contrast .nav-cta, html.a11y-contrast .badge { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0 !important; }

/* גווני אפור */
html.a11y-gray body { filter: grayscale(100%); }

/* הדגשת קישורים */
html.a11y-links a { text-decoration: underline !important; font-weight: 800 !important; text-underline-offset: 3px; }

/* פונט קריא */
html.a11y-readable body, html.a11y-readable .logo-text, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable .result-amount, html.a11y-readable .stat-num {
  font-family: Arial, "Heebo", sans-serif !important; letter-spacing: .01em; line-height: 1.85 !important;
}

/* עצירת אנימציות */
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

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