/* The accessibility menu (a11y-menu.js) and what each of its settings changes on the page.
   Loaded on every page, after site.css. Accessibility standard ת"י 5568, owner's request 20.10.2026. */

/* ---------- The round button, always in the bottom-left corner ---------- */
.a11y-open { position: fixed; left: 16px; bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: #550512; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(85, 5, 18, 0.35); }
.a11y-open svg { width: 32px; height: 32px; }
/* The end of the page never stays hidden under the button. */
footer { padding-bottom: 96px; }

/* ---------- The panel, opening above the button ---------- */
.a11y-panel { position: fixed; left: 16px; bottom: 86px; z-index: 30; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 12px 16px 14px; border-radius: 22px; border: 2px solid #550512; background: #fff; color: #2E1A1E; text-align: right; font-family: 'Assistant', system-ui, sans-serif; box-shadow: 0 16px 40px rgba(85, 5, 18, 0.25); }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.a11y-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: #550512; }
.a11y-close { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid #550512; background: #fff; color: #550512; font: 400 1.625rem/1 system-ui, sans-serif; cursor: pointer; }

/* Text size: "א הקטנה", the current size, "א הגדלה" */
.a11y-size { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #EADCF6; }
.a11y-label { font-size: 1.0625rem; font-weight: 700; }
.a11y-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } /* wraps when the phone's own text is very large */
.a11y-steps button { display: inline-flex; align-items: baseline; gap: 4px; min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #550512; background: #fff; color: #550512; font: 700 0.9375rem/1 'Assistant', system-ui, sans-serif; cursor: pointer; }
.a11y-steps button[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.glyph { font-weight: 800; }
.glyph.small { font-size: 0.8125rem; }
.glyph.big { font-size: 1.3125rem; }
.a11y-value { min-width: 3.2em; text-align: center; font-weight: 800; color: #550512; }

/* On/off rows: the switch is filled burgundy when the setting is on */
.a11y-switch { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 0; border: 0; border-top: 1px solid #EADCF6; background: none; color: #2E1A1E; font: 700 1.0625rem/1.2 'Assistant', system-ui, sans-serif; text-align: right; cursor: pointer; }
.a11y-switch .track { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; border: 2px solid #6E5A64; background: #fff; }
.a11y-switch .track::after { content: ''; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: #6E5A64; }
.a11y-switch[aria-pressed="true"] .track { border-color: #550512; background: #550512; }
.a11y-switch[aria-pressed="true"] .track::after { right: auto; left: 4px; background: #fff; }

.a11y-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #EADCF6; }
.a11y-reset { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #550512; background: #FDEEE6; color: #550512; font: 700 0.9375rem/1 'Assistant', system-ui, sans-serif; cursor: pointer; }
.a11y-foot a { color: #550512; font-size: 0.9375rem; font-weight: 700; }

/* ---------- Text size: the whole site's text is in rem, so it all grows together ---------- */
html.text-1 { font-size: 115%; }
html.text-2 { font-size: 130%; }
html.text-3 { font-size: 150%; }

/* ---------- High contrast: white background, black text and frames, no see-through or shadows ---------- */
html.contrast body, html.contrast .hero, html.contrast .page-head, html.contrast .feature, html.contrast .illo,
html.contrast .store { background: #fff !important; }
html.contrast body, html.contrast .lead, html.contrast .feature p, html.contrast footer, html.contrast .updated { color: #000; }
html.contrast * { text-shadow: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.contrast .rain { display: none; }
html.contrast .hero, html.contrast .page-head { border-bottom: 2px solid #000; }
html.contrast footer { border-top: 2px solid #000; }
html.contrast .feature, html.contrast .illo, html.contrast .store, html.contrast .a11y-panel { border: 2px solid #000; }
html.contrast .soon-word .word { color: #550512; -webkit-text-stroke: 0; }

/* ---------- Highlighted links: underlined, black on yellow ---------- */
html.links a { color: #000 !important; background: #FFE95C !important; text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; border-radius: 3px; }

/* ---------- Plain font: Arial everywhere instead of the handwritten and bubble fonts ---------- */
html.plain-font body, html.plain-font body * { font-family: Arial, Helvetica, sans-serif !important; }
html.plain-font .wordmark, html.plain-font .brand { font-weight: 700; }
html.plain-font .soon-word .word { color: #550512; -webkit-text-stroke: 0; font-weight: 800; }
