/* כפתור נגישות בצד המסך ותפריט ההתאמות. ההגדרות נשמרות כ־class על <html>: a11y-size-1..3, a11y-contrast וכו' */
.a11y-btn { position: fixed; z-index: 45; top: 50%; right: 0; transform: translateY(-50%); width: 46px; height: 52px;
  padding: 0 0 0 4px; padding-right: env(safe-area-inset-right, 0px); border: 0; border-radius: 26px 0 0 26px;
  background: var(--teal-deep); color: var(--white); box-shadow: 0 4px 14px rgba(30, 60, 60, 0.25);
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease, width 0.2s ease; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { background: var(--teal-dark); width: 52px; }
.a11y-btn.is-active::after { content: ""; position: absolute; top: 8px; left: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--blush); border: 1.5px solid var(--teal-deep); }
.a11y-btn:focus-visible { outline: 3px solid var(--blush); outline-offset: 2px; }

.a11y-panel { position: fixed; z-index: 46; top: 50%; right: calc(58px + env(safe-area-inset-right, 0px)); transform: translateY(-50%);
  width: min(300px, calc(100vw - 74px)); max-height: calc(100vh - 32px); overflow-y: auto;
  background-color: var(--paper); background-image: url("../img/paper.png"); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(60, 45, 25, 0.22);
  padding: 16px; display: grid; gap: 12px; font-family: var(--font-body); font-size: 16px; line-height: 1.4; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; }
.a11y-head h2 { font-size: 1.5rem; color: var(--teal-deep); }
.a11y-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.a11y-close:hover { background: var(--white); }
.a11y-size { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.a11y-size span { flex: 1; font-weight: 600; }
.a11y-size button { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--teal-deep); font: 700 16px var(--font-body); cursor: pointer; }
.a11y-size output { min-width: 64px; text-align: center; font-size: 14px; color: var(--brown-dark); }
.a11y-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-options button { min-height: 52px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
  font: 600 15px var(--font-body); line-height: 1.25; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.a11y-options button:hover { border-color: var(--teal); }
.a11y-options button[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.a11y-reset { min-height: 44px; border: 1px solid var(--teal-deep); border-radius: 999px; background: none; color: var(--teal-deep); font: 600 15px var(--font-body); cursor: pointer; }
.a11y-link { text-align: center; font-size: 15px; }
@media print { .a11y-btn, .a11y-panel { display: none !important; } }

/* גודל טקסט: מגדילים את כל התוכן, כי חלק מהגדלים באתר קבועים בפיקסלים */
html.a11y-size-1 :is(main, .site-header, .site-footer, .quote-banner, .coupon-bar) { zoom: 1.12; }
html.a11y-size-2 :is(main, .site-header, .site-footer, .quote-banner, .coupon-bar) { zoom: 1.25; }
html.a11y-size-3 :is(main, .site-header, .site-footer, .quote-banner, .coupon-bar) { zoom: 1.4; }

/* ניגודיות גבוהה: טקסט כהה מאוד על רקע לבן, בלי טקסטורת נייר */
html.a11y-contrast {
  --paper: #FFFFFF; --beige: #FFFFFF; --blush: #FFFFFF; --sage: #FFFFFF; --mist: #FFFFFF;
  --ink: #000000; --ink-soft: #111111; --brown: #222222; --brown-dark: #111111;
  --teal: #0B4A4C; --teal-deep: #0B4A4C; --teal-dark: #062F31; --line: #555555;
}
html.a11y-contrast body, html.a11y-contrast .site-header, html.a11y-contrast .a11y-panel { background-image: none; }
html.a11y-contrast :is(.section-beige, .section-blush, .section-white, .site-footer, .quote-banner, .cta-wash) { background: #FFFFFF !important; border-top: 1px solid #555; }
html.a11y-contrast .muted, html.a11y-contrast .small { color: #111111; }

/* הדגשת קישורים */
html.a11y-links a:not(.btn):not(.brand):not(.a11y-link) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; font-weight: 700; background-image: none !important; }
html.a11y-links a.btn { outline: 3px solid #E0A100; outline-offset: 2px; }

/* גופן קריא: גופן פשוט במקום כתב היד והסריף */
html.a11y-font body, html.a11y-font body :is(h1, h2, h3, p, li, a, span, strong, label, button, input, textarea, select, figcaption, blockquote, output) { font-family: Arial, "Assistant", system-ui, sans-serif !important; }

/* ריווח בין שורות ובין מילים */
html.a11y-spacing main :is(p, li, figcaption, blockquote, label) { line-height: 2 !important; letter-spacing: 0.03em; word-spacing: 0.12em; }

/* סמן עכבר גדול */
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-7 1 4 8-3 1-4-8-5 5z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !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 .bloom-wait { -webkit-mask: none !important; mask: none !important; }
html.a11y-still .draw-wait path { stroke-dashoffset: 0 !important; }
html.a11y-still .js .fade, html.a11y-still .fade { opacity: 1 !important; transform: none !important; }
html.a11y-still .intro { display: none !important; }
html.a11y-still .paint-trail { display: none !important; }
html.a11y-still .gallery button.zoom { transform: none !important; }
html.a11y-still .reveal { -webkit-mask-image: none !important; mask-image: none !important; }
html.a11y-still::view-transition-group(*), html.a11y-still::view-transition-old(*), html.a11y-still::view-transition-new(*) { animation: none !important; }

/* במובייל: לשונית צרה בקצה המסך, כדי שלא תסתיר סופי שורות */
@media (max-width: 699px) {
  .a11y-btn { width: 32px; height: 54px; padding: 0; border-radius: 14px 0 0 14px; top: 58%; }
  .a11y-btn svg { width: 22px; height: 22px; }
  .a11y-btn:hover, .a11y-btn[aria-expanded="true"] { width: 36px; }
  .a11y-btn.is-active::after { top: 4px; left: 3px; width: 7px; height: 7px; }
  .a11y-panel { right: calc(36px + env(safe-area-inset-right, 0px)); width: min(300px, calc(100vw - 52px)); }
}

/* גרירה: הכפתור זז למעלה ולמטה לאורך הקצה, ובולט קצת יותר */
.a11y-btn { touch-action: none; box-shadow: 0 4px 16px rgba(30, 60, 60, 0.32), 0 0 0 2px rgba(255, 255, 255, 0.85); }
.a11y-btn.dragging { cursor: grabbing; transition: none; width: 52px; box-shadow: 0 8px 22px rgba(30, 60, 60, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.9); }
@media (max-width: 699px) { .a11y-btn.dragging { width: 38px; } }
