/* Accessibility button + menu, adapted to the בשבילי! palette (style.css variables). */
.a11y-fab {
  position: fixed; z-index: 90; inset-block-end: 1.25rem; right: 1.25rem;
  inline-size: 3.25rem; block-size: 3.25rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--white);
  background: var(--gradient); box-shadow: 0 10px 28px #211d3040, 0 0 0 3px #fdfcfd;
  transition: transform .2s ease;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.a11y-fab svg { inline-size: 1.7rem; block-size: 1.7rem; }
@media (min-width: 768px) { .a11y-fab { inline-size: 3.6rem; block-size: 3.6rem; } }

.a11y-panel {
  position: fixed; z-index: 95; inset-block-end: 5.5rem; right: 1.25rem;
  inline-size: min(92vw, 340px); max-block-size: 80vh; overflow-y: auto;
  direction: rtl; text-align: right; padding: 1rem;
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px;
  border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 18px 40px #211d3033;
}
.a11y-panel[hidden] { display: none !important; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: .75rem; }
.a11y-head h2 { font: 400 1.15rem/1.3 var(--display); color: var(--blue); }
.a11y-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .25rem; border-radius: .4rem; font-size: 1.3rem; line-height: 1; }
.a11y-close:hover { color: var(--rose); }
.a11y-size { border: 1px solid var(--line); border-radius: .8rem; padding: .75rem; margin-block-end: .75rem; }
.a11y-size-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.a11y-size-row + .a11y-size-row { margin-block-start: .5rem; }
.a11y-size strong { color: var(--rose); }
.a11y-btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: .6rem; padding: .45rem .8rem; cursor: pointer; font: inherit; }
.a11y-btn:hover { border-color: var(--rose); color: var(--rose); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-toggle { border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: .8rem; padding: .65rem .4rem; cursor: pointer; font: inherit; font-size: .82rem; line-height: 1.25; }
.a11y-toggle:hover { border-color: #a2354299; }
.a11y-toggle[aria-pressed="true"] { border-color: var(--rose); background: #a2354214; color: var(--ink); font-weight: 700; }
.a11y-reset { margin-block-start: .75rem; inline-size: 100%; border: 0; border-radius: .8rem; padding: .6rem 1rem; cursor: pointer; font: inherit; font-weight: 700; color: var(--white); background: var(--gradient); }
.a11y-links { margin-block-start: .75rem; display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; }
.a11y-links a { color: var(--rose); font-weight: 600; }
.a11y-note { margin-block-start: .5rem; font-size: .78rem; line-height: 1.5; color: var(--muted); }

/* Applied settings */
html.a11y-scaled { font-size: calc(16px * var(--a11y-font-scale, 1)); }
html.a11y-scaled body { font-size: calc(15px * var(--a11y-font-scale, 1)); }
html.a11y-contrast-high body { background: #fff !important; color: #000 !important; }
html.a11y-contrast-high { --ink: #000; --muted: #111; --blue: #000; --line: #000; --on-deep: #fff; }
html.a11y-contrast-inverted { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast-inverted img { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-highlight-links a { background: #fff2a8 !important; color: #000 !important; outline: 2px solid #d4a200; }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-readable-font, html.a11y-readable-font * { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M3 2l7 18 2.5-7L20 10.5z' fill='black' stroke='white' stroke-width='1.5'/></svg>") 0 0, auto !important;
}
html.a11y-stop-animations *, html.a11y-stop-animations *::before, html.a11y-stop-animations *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
