/* =========================================================
   ACCESSIBILITY (נגישות) — מצגת פיליון · Vilchik Group
   IS 5568 / WCAG 2.0 AA oriented · self-contained widget
   ========================================================= */
:root{--line:#e6ddcb}

/* ---- Skip to content ---- */
.skip-link{position:fixed;top:-120px;inset-inline-start:16px;z-index:1000;background:var(--navy);color:#fff;
  padding:.85rem 1.5rem;border-radius:0 0 12px 12px;font-weight:700;transition:top .25s var(--ease)}
.skip-link:focus{top:0;outline:3px solid var(--gold-soft);outline-offset:2px}

/* ---- Visible keyboard focus ---- */
a:focus-visible,button:focus-visible,[tabindex]:focus-visible,input:focus-visible,iframe:focus-visible{
  outline:3px solid var(--gold-soft);outline-offset:3px;border-radius:4px}
html.a11y-kb a:focus,html.a11y-kb button:focus,html.a11y-kb [tabindex]:focus{
  outline:3px solid var(--gold-soft)!important;outline-offset:3px!important}

/* ---- Floating accessibility button ---- */
.a11y-fab{position:fixed;bottom:22px;inset-inline-start:22px;z-index:96;width:56px;height:56px;border-radius:50%;
  background:var(--navy);border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.4);transition:transform .3s var(--ease)}
.a11y-fab:hover{transform:scale(1.07)}
.a11y-fab svg{width:31px;height:31px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.a11y-fab svg circle{fill:#fff;stroke:none}

/* ---- Panel ---- */
.a11y-overlay{position:fixed;inset:0;background:rgba(9,18,30,.55);z-index:135;opacity:0;visibility:hidden;transition:opacity .35s}
.a11y-overlay.open{opacity:1;visibility:visible}
.a11y-panel{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:140;width:352px;max-width:92vw;background:#fff;
  box-shadow:20px 0 60px rgba(0,0,0,.35);transform:translateX(-102%);transition:transform .4s var(--ease);
  display:flex;flex-direction:column;overflow-y:auto}
[dir="rtl"] .a11y-panel{transform:translateX(102%)}
.a11y-panel.open,[dir="rtl"] .a11y-panel.open{transform:translateX(0)}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.3rem;
  background:var(--navy);color:#fff;position:sticky;top:0;z-index:2}
.a11y-head h2{color:#fff;font-size:1.2rem;display:flex;align-items:center;gap:.6rem;margin:0}
.a11y-head h2 svg{width:24px;height:24px;fill:var(--gold-soft)}
.a11y-close{background:none;border:0;color:#fff;font-size:1.8rem;line-height:1;cursor:pointer;padding:.2rem .5rem;border-radius:8px}
.a11y-close:hover{background:rgba(255,255,255,.12)}
.a11y-body{padding:1rem 1.1rem 1.4rem}
.a11y-group-title{font-family:var(--sans);font-weight:700;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-2);margin:1.1rem .2rem .6rem}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.a11y-opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;text-align:center;
  padding:.9rem .6rem;border:1.5px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);
  font-family:var(--sans);font-size:.9rem;font-weight:600;cursor:pointer;transition:.25s;min-height:88px}
.a11y-opt svg{width:26px;height:26px;stroke:var(--navy);fill:none;stroke-width:1.6}
.a11y-opt:hover{border-color:var(--gold);background:var(--cream)}
.a11y-opt[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.a11y-opt[aria-pressed="true"] svg{stroke:var(--gold-soft)}
.a11y-fontsize{display:flex;align-items:center;gap:.5rem}
.a11y-fontsize button{flex:1;min-height:52px;border:1.5px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;
  font-family:var(--serif);color:var(--navy);font-weight:700;font-size:1.15rem;transition:.2s}
.a11y-fontsize button:hover{border-color:var(--gold);background:var(--cream)}
.a11y-level{text-align:center;font-size:.9rem;color:var(--muted);min-width:52px}
.a11y-reset{width:100%;margin-top:1.2rem;padding:.9rem;border:1.5px solid var(--gold-2);border-radius:100px;background:transparent;
  color:var(--gold-2);font-family:var(--sans);font-weight:700;font-size:.98rem;cursor:pointer;transition:.25s}
.a11y-reset:hover{background:var(--gold-2);color:#fff}
.a11y-statement-link{display:block;text-align:center;margin-top:1rem;color:var(--navy);text-decoration:underline;font-weight:600;font-size:.92rem}

/* ---- Reading guide bar ---- */
.a11y-guide{position:fixed;left:0;right:0;height:14px;background:rgba(187,154,91,.28);border-top:2px solid var(--gold-2);
  border-bottom:2px solid var(--gold-2);pointer-events:none;z-index:94;display:none;top:0}
html.a11y-guide-on .a11y-guide{display:block}

/* ================= STATE: high contrast (dark) — scoped to deck & modal ================= */
html.a11y-contrast body{background:#000!important}
html.a11y-contrast .slide{background:#000!important}
html.a11y-contrast .slide-bg{opacity:0!important}
html.a11y-contrast .slide-bg::after{background:#000!important}
html.a11y-contrast .deck :is(h1,h2,h3,h4,h5,h6,p,span,li,b,strong,em,div,figcaption,blockquote,label){
  color:#fff!important;text-shadow:none!important}
html.a11y-contrast .deck .eyebrow,html.a11y-contrast .deck h1 em,html.a11y-contrast .brand-fixed .bt{color:#ff0!important}
html.a11y-contrast .deck a{color:#ff0!important;text-decoration:underline!important}
html.a11y-contrast .chip{background:#000!important;color:#ff0!important;border-color:#ff0!important}
html.a11y-contrast .deck svg{stroke:#ff0}
html.a11y-contrast .dots a{border-color:#ff0!important}
html.a11y-contrast .dots a.active{background:#ff0!important}
/* modal */
html.a11y-contrast .p-modal,html.a11y-contrast .p-media,html.a11y-contrast .p-content{background:#000!important}
html.a11y-contrast .p-modal :is(h3,h4,p,li,span,div){color:#fff!important}
html.a11y-contrast .p-tip{background:#000!important;border-color:#ff0!important}
html.a11y-contrast .p-cat{background:#000!important;color:#ff0!important;border:1px solid #ff0!important}
html.a11y-contrast .contact a.wa{background:#000!important;color:#ff0!important;border-color:#ff0!important}
html.a11y-contrast .contact a.wa svg{fill:#ff0!important}

/* ================= STATE: grayscale ================= */
html.a11y-grayscale .deck,html.a11y-grayscale .p-modal{filter:grayscale(100%)}

/* ================= STATE: highlight links ================= */
html.a11y-links .deck a,html.a11y-links .p-modal a{text-decoration:underline!important;text-underline-offset:3px;
  outline:2px dashed var(--gold-soft);outline-offset:2px;background:rgba(187,154,91,.18)!important;border-radius:3px}

/* ================= STATE: readable font ================= */
html.a11y-readable,html.a11y-readable :is(h1,h2,h3,h4,h5,h6,p,span,li,a,b,button,div,figcaption,blockquote){
  font-family:"Assistant","Heebo",Arial,system-ui,sans-serif!important;letter-spacing:normal!important;
  font-style:normal!important;line-height:1.8!important}

/* ================= STATE: stop animations ================= */
html.a11y-stopmotion *,html.a11y-stopmotion *::before,html.a11y-stopmotion *::after{
  animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-stopmotion .rv{opacity:1!important;transform:none!important}
html.a11y-stopmotion .deck{scroll-snap-type:none!important;scroll-behavior:auto!important}
html.a11y-stopmotion .cue{display:none!important}

/* ================= STATE: big cursor ================= */
html.a11y-bigcursor,html.a11y-bigcursor *{cursor:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%3E%3Cpath%20d='M8%205L8%2040L17%2031L23%2043L29%2040L23%2028L37%2028Z'%20fill='%23111'%20stroke='%23fff'%20stroke-width='2'/%3E%3C/svg%3E") 8 5,auto!important}

/* ================= Respect OS reduced-motion preference ================= */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .deck{scroll-behavior:auto}
  .rv{opacity:1!important;transform:none!important;transition:none!important}
  .cue{animation:none!important}
}

@media(max-width:400px){.a11y-grid{grid-template-columns:1fr}}
