/* תוסף הנגישות (js/a11y.js), משותף לכל דפי אתר הכנס: הכפתור, החלונית וההתאמות (קלאסים על <html>). */
/* ───── תוסף נגישות (js/a11y.js) ───── */
.a11y-btn {
  position: fixed; inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--bg, #FFFFF0); cursor: pointer;
  background: var(--ink, #231F20); color: var(--bg, #FFFFF0); display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(35,31,32,.25);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.a11y-panel {
  position: fixed; inset-inline-end: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 50;
  width: min(270px, calc(100vw - 28px)); display: grid; gap: 8px; padding: 14px;
  background: #fff; color: var(--ink, #231F20); border: 1.5px solid var(--line, #E8DFCD); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(35,31,32,.2); font-size: 16px;
}
.a11y-top { display: flex; justify-content: space-between; align-items: center; }
.a11y-top b { font-size: 18px; font-weight: 800; }
.a11y-panel button { font: inherit; cursor: pointer; color: var(--ink, #231F20); -webkit-user-select: none; user-select: none; }
.a11y-x { border: 0; background: none; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; }
.a11y-size { display: flex; align-items: center; gap: 8px; }
.a11y-size span { flex: 1; font-weight: 600; }
.a11y-size b { min-width: 3em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-size button, .a11y-t, .a11y-reset {
  border: 1.5px solid var(--line, #E8DFCD); background: var(--bg, #FFFFF0); border-radius: 10px; padding: 9px 12px; font-weight: 700;
}
.a11y-size button { width: 44px; padding: 7px 0; }
.a11y-size button:disabled { opacity: .4; cursor: default; }
.a11y-t { text-align: start; }
.a11y-t[aria-pressed=true] { background: var(--ink, #231F20); color: var(--bg, #FFFFF0); border-color: var(--ink, #231F20); }
.a11y-reset { background: none; }
.a11y-panel a { text-align: center; font-size: 15px; }

html.a11y-contrast { --bg: #fff; --sand: #fff; --ink: #000; --muted: #000; --line: #000; --red: #A3201A; --red-soft: #fff; --danger: #8A0000; }
html.a11y-contrast .hero { filter: contrast(1.2); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 800; }
html.a11y-font body, html.a11y-font input, html.a11y-font select, html.a11y-font textarea, html.a11y-font button { font-family: Arial, sans-serif !important; letter-spacing: .01em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* החלונית נסגרת עם hidden. בלי הכלל הזה display: grid גובר עליו בדפים שאין להם register.css */
.a11y-panel[hidden] { display: none !important; }
