/* a11y.css: accessibility menu + site-wide accessibility fixes. Self-hosted, no dependencies. */

/* ---------- utilities ---------- */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.a11y-skip{position:fixed;top:10px;inset-inline-start:10px;z-index:1000;background:var(--yellow);color:var(--navy-2);padding:12px 20px;border-radius:10px;font-weight:800;font-size:16px;text-decoration:none;box-shadow:0 8px 24px -8px oklch(.05 .03 262/.8);transform:translateY(-250%)}
.a11y-skip:focus{transform:none;outline:3px solid var(--navy-2);outline-offset:2px}

/* ---------- real fixes ---------- */
:root{--a11y-ring:var(--yellow)}
/* focus ring: yellow is invisible on the light "paper" surfaces, use navy there */
:is(.letter,.folder,.doc,.check,.legal,.t-card,.badge,.track){--a11y-ring:var(--navy)}
:focus-visible{outline:3px solid var(--a11y-ring);outline-offset:3px}
body>header,body>main,body>footer>.foot{zoom:var(--a11y-zoom,1)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}
  .btn:hover{translate:none}
}

/* ---------- floating button ---------- */
.a11y-btn{position:fixed;bottom:18px;right:18px;z-index:47;width:58px;height:58px;padding:0;border-radius:50%;border:2px solid var(--ink);background:var(--sheet);color:var(--ink);display:grid;place-items:center;cursor:pointer;font:inherit;box-shadow:0 12px 28px -8px oklch(.05 .03 262/.8);transition:scale .2s var(--ease)}
.a11y-btn:hover{scale:1.06}
.a11y-btn svg{width:34px;height:34px}
.a11y-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:4px;box-shadow:0 0 0 3px var(--navy-2),0 12px 28px -8px oklch(.05 .03 262/.8)}
.a11y-btn[aria-expanded="true"]{background:var(--yellow);color:var(--navy-2);border-color:var(--navy-2)}

/* ---------- panel ---------- */
.a11y-panel{position:fixed;z-index:48;right:18px;bottom:88px;width:min(352px,calc(100vw - 24px));max-height:calc(100vh - 108px);max-height:calc(100dvh - 108px);overflow:auto;overscroll-behavior:contain;background:var(--sheet);color:var(--ink);border:1px solid var(--rule);border-radius:14px;box-shadow:var(--shadow);font:400 16px/1.5 var(--body);text-align:start}
.a11y-panel[hidden]{display:none}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--navy);color:var(--on-navy);border-radius:13px 13px 0 0;position:sticky;top:0;z-index:1}
.a11y-head h2{font-size:20px;font-weight:800;line-height:1.2;margin:0}
.a11y-close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid oklch(.97 .01 262/.4);background:transparent;color:var(--on-navy);cursor:pointer;padding:0;font:inherit}
.a11y-close svg{width:20px;height:20px}
.a11y-close:hover{background:var(--yellow);border-color:var(--yellow);color:var(--navy-2)}
.a11y-head :focus-visible{outline-color:var(--yellow)}
.a11y-body{display:grid;gap:10px;padding:16px}
.a11y-size{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 12px;padding-bottom:12px;border-bottom:1px dashed var(--rule)}
.a11y-size-label{font-weight:800;font-size:16px}
.a11y-size-ctl{display:flex;align-items:center;gap:8px}
.a11y-step{display:grid;place-items:center;min-width:48px;height:48px;padding:0 12px;border:1.5px solid var(--ink);border-radius:10px;background:transparent;color:var(--ink);font:800 15px/1 var(--body);cursor:pointer}
.a11y-step-l{font-size:19px}
.a11y-step[aria-disabled="true"]{opacity:.4;cursor:not-allowed}
.a11y-step:not([aria-disabled="true"]):hover{background:var(--ink);color:var(--sheet)}
.a11y-size-val{min-width:3em;text-align:center;font-weight:700;font-size:16px}
.a11y-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 14px;border:1.5px solid var(--ink);border-radius:10px;background:transparent;color:var(--ink);font:700 16px/1.3 var(--body);text-align:start;cursor:pointer}
.a11y-opt .a11y-box{flex:none;display:grid;place-items:center;width:22px;height:22px;border:2px solid currentColor;border-radius:6px}
.a11y-opt .a11y-box svg{width:16px;height:16px;opacity:0}
.a11y-opt .a11y-txt{flex:1}
.a11y-opt .a11y-state{font-weight:500;font-size:14px}
.a11y-opt[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--yellow)}
.a11y-opt[aria-pressed="true"] .a11y-box svg{opacity:1}
.a11y-opt:not([aria-pressed="true"]):hover{background:oklch(.24 .045 262/.06)}
.a11y-foot{display:grid;gap:10px;padding-top:12px;border-top:1px dashed var(--rule)}
.a11y-reset{min-height:48px;border:1.5px solid var(--ink);border-radius:10px;background:var(--ink);color:var(--sheet);font:700 16px/1.3 var(--body);cursor:pointer}
.a11y-reset:hover{background:transparent;color:var(--ink)}
.a11y-link{display:block;text-align:center;font-weight:700;color:var(--link);padding:6px;min-height:36px}
.a11y-note{font-size:13.5px;color:var(--ink-muted);text-align:center;margin:0}
.a11y-panel :focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.a11y-opt[aria-pressed="true"]:focus-visible{outline-color:var(--yellow);box-shadow:0 0 0 5px var(--navy)}
@media (prefers-reduced-motion:no-preference){
  .a11y-panel:not([hidden]){animation:a11y-in .22s var(--ease) both}
}
@keyframes a11y-in{from{opacity:0;translate:0 12px}}
@media (max-width:560px){
  .a11y-btn{width:52px;height:52px;bottom:18px;right:14px}
  .a11y-btn svg{width:31px;height:31px}
  .a11y-panel{right:12px;left:12px;width:auto;bottom:80px;max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px)}
}

/* ---------- user modes ---------- */
/* high contrast */
html.a11y-contrast{--navy:#000;--navy-2:#000;--on-navy:#fff;--on-navy-muted:#fff;--sheet:#000;--ink:#fff;--ink-muted:#fff;--rule:#fff;--folder:#000;--link:#ffe600;--yellow:#ffe600;--red:#ff9a90;--a11y-ring:#ffe600;color-scheme:dark}
html.a11y-contrast body{background:#000;color:#fff}
html.a11y-contrast :is(.letter,.folder,.doc,.check,.legal,.t-card,.badge,.track,.brief,.a11y-panel){border:2px solid #fff;box-shadow:none;background:#000}
html.a11y-contrast .brief{border-inline-start-width:6px}
html.a11y-contrast .nav,html.a11y-contrast footer{border-color:#fff}
html.a11y-contrast .icon-link,html.a11y-contrast .btn-line,html.a11y-contrast .btn-ink-line{border-color:#fff}
html.a11y-contrast .btn-ink{background:#fff;color:#000}
html.a11y-contrast .btn-yellow,html.a11y-contrast .label,html.a11y-contrast .tag{background:#ffe600;color:#000}
html.a11y-contrast .stamp{filter:none}
html.a11y-contrast .ph{background:transparent;outline:2px dashed #ffe600}
html.a11y-contrast .t-dot{background:#9a9a9a;background-clip:content-box}
html.a11y-contrast .t-dot[aria-current="true"]{background:#ffe600;background-clip:content-box}
html.a11y-contrast .t-prev,html.a11y-contrast .t-next{border-color:#fff}
html.a11y-contrast a:not(.btn):not(.icon-link):not(.wa-float):not(.a11y-skip){text-decoration:underline;text-underline-offset:.2em}
html.a11y-contrast .a11y-head{border-bottom:2px solid #fff;border-radius:12px 12px 0 0}
html.a11y-contrast .a11y-opt[aria-pressed="true"]{background:#ffe600;color:#000;border-color:#ffe600}
html.a11y-contrast .a11y-reset{background:#fff;color:#000}
html.a11y-contrast .a11y-btn{background:#ffe600;color:#000;border-color:#fff}

/* highlight links */
html.a11y-links a:not(.btn):not(.icon-link):not(.wa-float):not(.a11y-skip):not(.a11y-btn){background:#ffe600!important;color:#000!important;text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:.2em;border-radius:3px;box-shadow:0 0 0 3px #ffe600}
html.a11y-links :is(.btn,.icon-link,.wa-float){outline:3px solid #000;outline-offset:2px;box-shadow:0 0 0 6px #ffe600}

/* readable font */
html.a11y-font,html.a11y-font *{font-family:Arial,"Segoe UI",Helvetica,"Noto Sans Hebrew",sans-serif!important}
html.a11y-font body{line-height:1.85;letter-spacing:.02em;word-spacing:.1em}
html.a11y-font :is(h1,h2,h3){line-height:1.3}

/* underline + strong focus */
html.a11y-focus a:not(.btn):not(.icon-link):not(.wa-float):not(.a11y-skip){text-decoration:underline!important;text-underline-offset:.2em}
html.a11y-focus :focus,html.a11y-focus :focus-visible{outline:4px solid #000!important;outline-offset:3px!important;box-shadow:0 0 0 7px #ffe600!important}

/* stop animations (also set by prefers-reduced-motion in JS-free CSS above).
   Covers the whole page, including a future testimonials carousel (.t-*, .carousel, [data-autoplay]). */
html.a11y-noanim *,html.a11y-noanim *::before,html.a11y-noanim *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-noanim{scroll-behavior:auto}
html.a11y-noanim .btn:hover,html.a11y-noanim .a11y-btn:hover{translate:none;scale:1}
html.a11y-noanim :is(.carousel,[data-autoplay]) :is(.t-slide,.slide){transition:none!important}
main:focus{outline:none}
/* larger text on narrow screens: let the two stat numbers wrap instead of overflowing */
.facts{flex-wrap:wrap;row-gap:24px}
/* the decorative (aria-hidden) hero checklist keeps its designed size when text is enlarged, so it is not clipped on narrow screens */
.track{zoom:calc(1 / var(--a11y-zoom,1))}
