/* ============================================================
   אושר — נגישות
   Skip link, screen-reader text and the accessibility menu.
   Loaded by every page, including /daber which has its own tokens,
   so the menu uses literal colours rather than site variables.
   ============================================================ */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- SKIP LINK ---------- */
.skip-link{position:fixed;inset-block-start:10px;inset-inline-start:10px;z-index:9999;
  padding:12px 20px;border-radius:12px;background:#0E3A52;color:#fff;font-weight:700;
  text-decoration:underline;transform:translateY(-200%)}
.skip-link:focus{transform:none;outline:3px solid #fff;outline-offset:-6px}
main:focus{outline:none}

/* ---------- THE MENU ---------- */
.a11y-widget{font-family:'Birzia',system-ui,sans-serif;font-weight:500;line-height:1.4}
.a11y-toggle{position:fixed;inset-block-end:16px;inset-inline-end:16px;z-index:2500;
  width:48px;height:48px;padding:0;display:grid;place-items:center;cursor:pointer;
  border-radius:50%;border:2px solid #fff;background:#0E3A52;color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.35)}
.a11y-toggle svg{width:28px;height:28px;fill:currentColor}
.a11y-toggle:hover{background:#0D6C93}
.a11y-toggle:focus-visible,.a11y-panel :focus-visible{outline:3px solid #0E3A52;outline-offset:2px;box-shadow:0 0 0 2px #fff}
/* the event page has a sticky bar along the bottom on phones */
@media(max-width:899px){.lp .a11y-toggle{inset-block-end:88px}}

.a11y-panel{position:fixed;inset-block-end:74px;inset-inline-end:16px;z-index:2500;
  width:min(300px,calc(100vw - 32px));max-height:calc(100svh - 96px);overflow:auto;
  padding:18px;border-radius:18px;background:#fff;color:#0E3A52;
  border:2px solid #0E3A52;box-shadow:0 24px 60px -18px rgba(0,0,0,.55)}
.a11y-panel[hidden]{display:none}
@media(max-width:899px){.lp .a11y-panel{inset-block-end:146px;max-height:calc(100svh - 168px)}}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.a11y-panel h2{font-family:inherit;font-size:1.15rem;font-weight:700;line-height:1.2;letter-spacing:0;color:#0E3A52;margin:0}
.a11y-close{width:44px;height:44px;margin:-8px;padding:0;display:grid;place-items:center;cursor:pointer;
  background:none;border:0;border-radius:50%;color:#0E3A52;font:inherit;font-size:1.5rem;line-height:1}
.a11y-close:hover{background:#EFF8FC}
.a11y-list{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.a11y-opt{width:100%;min-height:44px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  cursor:pointer;text-align:start;background:#fff;color:#0E3A52;font:inherit;font-size:1rem;
  border:1.5px solid #0E3A52;border-radius:12px}
.a11y-opt:hover{background:#EFF8FC}
.a11y-opt[aria-pressed="true"]{background:#0E3A52;color:#fff;font-weight:700}
/* on/off is spelled out, so the state never depends on colour alone */
.a11y-opt .state{font-size:.85rem;font-weight:500}
.a11y-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.a11y-foot a,.a11y-reset{min-height:24px;padding:4px 0;color:#0E3A52;font:inherit;font-size:.95rem;font-weight:700;
  text-decoration:underline;background:none;border:0;cursor:pointer}

/* ---------- WHAT THE OPTIONS DO ---------- */
html.a11y-text{font-size:125%}

html.a11y-links a{text-decoration:underline!important;text-underline-offset:.18em;font-weight:700}

html.a11y-font{
  --f-display:Arial,'Helvetica Neue',system-ui,sans-serif;
  --f-body:Arial,'Helvetica Neue',system-ui,sans-serif;
  --f-hand:Arial,'Helvetica Neue',system-ui,sans-serif}
html.a11y-font body{font-weight:400}

html.a11y-contrast{--muted:#0E3A52;--dark-muted:#fff;--accent-ink:#06415F;--hair:#0E3A52;--accent:#7FD3F5}
html.a11y-contrast .grain{display:none}
html.a11y-contrast .lp-h1 .dim,html.a11y-contrast .lp-sub,html.a11y-contrast .lp-micro,
html.a11y-contrast .spare-lead,html.a11y-contrast .thought .a{color:#fff}
html.a11y-contrast .sticky{background:#0E3A52}

html.a11y-still{scroll-behavior:auto}
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,html.a11y-still .reveal-x,html.a11y-still .clip-up,html.a11y-still .hero-art{
  opacity:1!important;transform:none!important;clip-path:none!important}
html.a11y-still .lp-h1 .mark path,html.a11y-still .draw [pathLength]{stroke-dashoffset:0!important}
html.a11y-still .draw [pathLength].fillfade{fill-opacity:1!important}
