/* Accessibility menu */
.a11y-btn{
  position:fixed;right:20px;bottom:20px;z-index:60;width:56px;height:56px;border-radius:50%;
  background:#1d1d1f;color:#fff;border:2px solid #fff;display:grid;place-items:center;cursor:pointer;
  transition:transform .15s ease-out;
}
.a11y-btn:active{transform:scale(.95)}
.a11y-btn svg{width:30px;height:30px}
.a11y-btn:focus-visible{outline:3px solid #d8b86f;outline-offset:3px}
.a11y-panel{
  position:fixed;right:20px;bottom:88px;z-index:61;width:min(340px, calc(100vw - 32px));
  max-height:calc(100vh - 120px);overflow:auto;
  background:#fff;color:#1d1d1f;border:2px solid #1d1d1f;border-radius:14px;padding:18px;
  font-family:-apple-system, BlinkMacSystemFont, "Heebo", Arial, sans-serif;font-size:16px;line-height:1.4;
}
.a11y-panel[hidden]{display:none}
.a11y-panel h2{font-size:19px;font-weight:700;margin:0 0 12px}
.a11y-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.a11y-close{background:none;border:0;font-size:28px;line-height:1;width:44px;height:44px;cursor:pointer;color:#1d1d1f}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-grid button,.a11y-reset{
  font:inherit;font-size:15px;min-height:48px;padding:8px 10px;border-radius:10px;cursor:pointer;
  background:#f5f5f7;color:#1d1d1f;border:2px solid #c7c7cc;text-align:center;
}
.a11y-grid button[aria-pressed="true"]{background:#1d1d1f;color:#fff;border-color:#1d1d1f}
.a11y-panel :focus-visible{outline:3px solid #7d5f1f;outline-offset:2px}
.a11y-size{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f5f5f7;border-radius:10px;padding:6px 10px}
.a11y-size button{width:48px;min-height:44px;font-size:18px;font-weight:700}
.a11y-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.a11y-foot a{color:#7d5f1f;font-weight:600;text-decoration:underline;text-underline-offset:.2em}
.a11y-reset{min-height:44px}
@media (max-width:640px){
  .a11y-btn{bottom:84px;right:16px;width:50px;height:50px}
  .a11y-panel{right:16px;bottom:144px}
}

/* ---- modes ---- */
html.a11y-fs-1 body > header, html.a11y-fs-1 body > main, html.a11y-fs-1 body > footer{zoom:1.12}
html.a11y-fs-2 body > header, html.a11y-fs-2 body > main, html.a11y-fs-2 body > footer{zoom:1.25}
html.a11y-fs-3 body > header, html.a11y-fs-3 body > main, html.a11y-fs-3 body > footer{zoom:1.4}

html.a11y-contrast body, html.a11y-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(svg):not(svg *):not(img):not(iframe){
  background-color:#000 !important;color:#fff !important;border-color:#fff !important;
  text-shadow:none !important;box-shadow:none !important;background-image:none !important;
}
html.a11y-contrast body a:not(.a11y-panel *), html.a11y-contrast body button:not(.a11y-panel *){color:#ffeb3b !important}
html.a11y-contrast .footer-logo img{filter:none !important}

html.a11y-gray body > header, html.a11y-gray body > main, html.a11y-gray body > footer{filter:grayscale(1)}

html.a11y-links a:not(.a11y-panel *){text-decoration:underline !important;text-underline-offset:.2em;outline:2px dashed currentColor;outline-offset:2px}

html.a11y-font body, html.a11y-font body *:not(svg):not(svg *){font-family:Arial, "Arial Hebrew", sans-serif !important;letter-spacing:0 !important}

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
html.a11y-still .reveal{opacity:1 !important;transform:none !important}

html.a11y-cursor, html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l30 18-13 3-7 13z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important}
