/* ==========================================================================
   ווידג'ט נגישות — רכיב מקורי לאתר רויטל קיילי
   נבנה בהשראת חוויית השימוש של ווידג'טים מסחריים, בקוד עצמאי לחלוטין.
   הווידג'ט הוא כלי התאמה אישית למשתמש, ואינו מהווה הנגשה של קוד האתר.
   ========================================================================== */

.a11y-root{
  --a-brand:#B8893C;
  --a-brand-dk:#7E5A1C;
  --a-brand-soft:#FBF4E8;
  --a-ink:#1B1712;
  --a-muted:#645A4E;
  --a-line:#E3DCD1;
  --a-white:#fff;
  --a-r:18px;
  --a-shadow:0 18px 44px rgba(20,17,14,.18), 0 3px 10px rgba(20,17,14,.08);
  --a-edge:24px;
  --a-lift:0px;              /* מוגדל כשבאנר עוגיות או סרגל מובייל פתוח */
  direction:rtl;
  font-family:'Open Sans','Assistant',system-ui,sans-serif;
  font-size:15px;
  line-height:1.5;
  color:var(--a-ink);
}

/* ---------- דילוג לתוכן הראשי ---------- */
.a11y-skip{
  position:fixed; inset-inline-start:-9999px; top:0; z-index:200;
  background:var(--a-ink); color:#fff; padding:14px 22px;
  border-radius:0 0 12px 12px; font:600 15px/1 'Open Sans','Assistant',system-ui,sans-serif;
  text-decoration:none;
}
.a11y-skip:focus{ inset-inline-start:16px; }

/* ---------- הכפתור הצף ---------- */
.a11y-fab{
  position:fixed;
  left:var(--a-edge);
  bottom:calc(var(--a-edge) + var(--a-lift));
  width:52px; height:52px; padding:0; margin:0;
  border:0; border-radius:50%;
  background:var(--a-brand); color:#fff;
  display:grid; place-items:center;
  cursor:pointer; z-index:95;
  box-shadow:0 10px 26px rgba(20,17,14,.22);
  transition:background .25s ease, box-shadow .25s ease, transform .25s ease, bottom .25s ease;
}
.a11y-fab svg{ width:28px; height:28px; display:block; fill:#fff; }
.a11y-fab:hover{ background:var(--a-brand-dk); box-shadow:0 12px 30px rgba(20,17,14,.3); }
.a11y-fab:focus-visible{ outline:3px solid var(--a-ink); outline-offset:3px; }
.a11y-fab[aria-expanded="true"]{ background:var(--a-brand-dk); }

/* ---------- החלונית ---------- */
.a11y-panel{
  position:fixed;
  left:var(--a-edge);
  bottom:calc(var(--a-edge) + 52px + 12px + var(--a-lift));
  width:min(380px, calc(100vw - 32px));
  max-height:calc(100vh - 120px);
  background:var(--a-white);
  border:1px solid var(--a-line);
  border-radius:var(--a-r);
  box-shadow:var(--a-shadow);
  z-index:96;
  display:flex; flex-direction:column;
  overflow:hidden;
  opacity:0; visibility:hidden;
  transform:translateY(8px);
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
}
.a11y-panel[data-open="true"]{ opacity:1; visibility:visible; transform:translateY(0); }

.a11y-head{
  display:flex; align-items:flex-start; gap:12px;
  padding:18px 20px 14px;
  border-bottom:1px solid var(--a-line);
  background:var(--a-white);
}
.a11y-head h2{
  margin:0; font:600 18px/1.3 'Open Sans','Assistant',system-ui,sans-serif;
  color:var(--a-ink); letter-spacing:0;
}
.a11y-head p{ margin:4px 0 0; font-size:13px; color:var(--a-muted); max-width:none; }
.a11y-x{
  margin-inline-start:auto; flex:0 0 auto;
  width:34px; height:34px; border:1px solid var(--a-line); border-radius:9px;
  background:#fff; color:var(--a-muted); cursor:pointer;
  display:grid; place-items:center; font-size:17px; line-height:1;
  transition:background .2s ease, color .2s ease;
}
.a11y-x:hover{ background:var(--a-ink); color:#fff; border-color:var(--a-ink); }
.a11y-x:focus-visible{ outline:3px solid var(--a-brand); outline-offset:2px; }

.a11y-body{ overflow-y:auto; padding:6px 20px 4px; flex:1 1 auto; overscroll-behavior:contain; }
.a11y-group{ padding:14px 0 4px; }
.a11y-group + .a11y-group{ border-top:1px solid var(--a-line); }
.a11y-group > h3{
  margin:0 0 10px; font:600 12px/1 'Open Sans','Assistant',system-ui,sans-serif;
  letter-spacing:.12em; color:var(--a-muted); text-transform:none;
}
.a11y-grid{ display:grid; gap:8px; }

/* ---------- כרטיס אפשרות ---------- */
.a11y-opt{
  display:flex; align-items:center; gap:11px; width:100%;
  padding:11px 13px; min-height:52px;
  background:#fff; border:1px solid var(--a-line); border-radius:12px;
  font:500 14px/1.35 'Open Sans','Assistant',system-ui,sans-serif;
  color:var(--a-ink); text-align:start; cursor:pointer;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.a11y-opt:hover{ background:#FAF7F1; border-color:#CFC4B4; }
.a11y-opt:focus-visible{ outline:3px solid var(--a-brand); outline-offset:2px; }
.a11y-opt .ic{
  flex:0 0 auto; width:30px; height:30px; border-radius:8px;
  background:#F4EFE6; color:var(--a-brand-dk);
  display:grid; place-items:center;
}
.a11y-opt .ic svg{ width:17px; height:17px; fill:currentColor; display:block; }
.a11y-opt .tx{ flex:1 1 auto; min-width:0; }
.a11y-opt .tx b{ display:block; font-weight:600; }
.a11y-opt .tx small{ display:block; font-size:12px; color:var(--a-muted); font-weight:400; }
.a11y-opt .st{
  flex:0 0 auto; font-size:11.5px; font-weight:600; color:var(--a-muted);
  border:1px solid var(--a-line); border-radius:999px; padding:3px 9px; white-space:nowrap;
}

.a11y-opt[aria-pressed="true"]{
  background:var(--a-brand-soft);
  border-color:var(--a-brand);
  box-shadow:inset 0 0 0 1px var(--a-brand);
}
.a11y-opt[aria-pressed="true"] .ic{ background:var(--a-brand); color:#fff; }
.a11y-opt[aria-pressed="true"] .st{
  background:var(--a-brand-dk); color:#fff; border-color:var(--a-brand-dk);
}

/* ---------- תחתית ---------- */
.a11y-foot{
  border-top:1px solid var(--a-line); padding:14px 20px 16px;
  display:grid; gap:10px; background:var(--a-white);
}
.a11y-reset{
  width:100%; min-height:46px; padding:12px 16px;
  background:var(--a-ink); color:#fff; border:0; border-radius:11px;
  font:600 14.5px/1 'Open Sans','Assistant',system-ui,sans-serif; cursor:pointer;
  transition:background .2s ease;
}
.a11y-reset:hover{ background:#000; }
.a11y-reset:focus-visible{ outline:3px solid var(--a-brand); outline-offset:2px; }
.a11y-foot a{
  text-align:center; font-size:13px; color:var(--a-brand-dk);
  text-decoration:underline; text-underline-offset:3px;
}
.a11y-foot a:focus-visible{ outline:3px solid var(--a-brand); outline-offset:2px; }
.a11y-note{ margin:0; font-size:11.5px; line-height:1.5; color:var(--a-muted); text-align:center; max-width:none; }

/* ---------- מובייל: bottom sheet ---------- */
@media (max-width:640px){
  .a11y-root{ --a-edge:16px; }
  .a11y-panel{
    left:8px; right:8px; width:auto;
    bottom:calc(8px + var(--a-lift));
    max-height:min(82vh, calc(100vh - 90px));
    border-radius:20px 20px 14px 14px;
    transform:translateY(16px);
  }
  .a11y-panel[data-open="true"]{ transform:translateY(0); }
  .a11y-head::before{
    content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%);
    width:42px; height:4px; border-radius:999px; background:var(--a-line);
  }
  .a11y-head{ position:relative; padding-top:22px; }
  .a11y-x{ width:44px; height:44px; font-size:19px; }
  .a11y-opt{ min-height:56px; }
}

/* ==========================================================================
   ההתאמות עצמן — כולן תלויות class על <html>
   ========================================================================== */

/* --- גודל טקסט (ללא הכפלה מצטברת: כל ערך מוגדר מחדש במפורש) --- */
html[data-a11y-ts]{ --as:1 }
html[data-a11y-ts="125"]{ --as:1.25 }
html[data-a11y-ts="150"]{ --as:1.5 }
html[data-a11y-ts] body{ font-size:calc(17px * var(--as)) }
html[data-a11y-ts] h1{ font-size:clamp(calc(38px * var(--as)), calc(5.6vw * var(--as)), calc(86px * var(--as))) }
html[data-a11y-ts] h2{ font-size:clamp(calc(30px * var(--as)), calc(4.2vw * var(--as)), calc(60px * var(--as))) }
html[data-a11y-ts] h3{ font-size:clamp(calc(21px * var(--as)), calc(2.2vw * var(--as)), calc(32px * var(--as))) }
html[data-a11y-ts] h4{ font-size:clamp(calc(18px * var(--as)), calc(1.5vw * var(--as)), calc(22px * var(--as))) }
html[data-a11y-ts] .lead{ font-size:clamp(calc(17px * var(--as)), calc(1.35vw * var(--as)), calc(20.5px * var(--as))) }
html[data-a11y-ts] .sc-mid h1{ font-size:clamp(calc(26px * var(--as)), calc(3vw * var(--as)), calc(48px * var(--as))) }
/* מניעת חיתוך: מגבלות רוחב וגובה קבועות משתחררות בהגדלה */
html[data-a11y-ts] p,
html[data-a11y-ts] .lead{ max-width:none }
html[data-a11y-ts] h1,
html[data-a11y-ts] h2,
html[data-a11y-ts] h3{ max-width:none; text-wrap:pretty }
html[data-a11y-ts] .btn,
html[data-a11y-ts] .svc-item,
html[data-a11y-ts] .a11y-safe{ height:auto; min-height:0 }

/* --- ריווח שורות --- */
html.a11y-lh-md body :is(p,li,dd,dt,blockquote,figcaption,.lead,.prose){ line-height:1.9 }
html.a11y-lh-lg body :is(p,li,dd,dt,blockquote,figcaption,.lead,.prose){ line-height:2.3 }

/* --- ריווח אותיות --- */
html.a11y-lsp-md body :is(p,li,dd,dt,blockquote,figcaption,.lead,h1,h2,h3,h4){ letter-spacing:.055em }
html.a11y-lsp-lg body :is(p,li,dd,dt,blockquote,figcaption,.lead,h1,h2,h3,h4){ letter-spacing:.12em }
html:is(.a11y-lsp-md,.a11y-lsp-lg) body :is(h1,h2,h3,h4){ word-spacing:.08em }

/* --- יישור טקסט (רק תוכן קריאה, לא ניווט/טבלאות/אייקונים) --- */
html.a11y-al-right body :is(p,li,h1,h2,h3,h4,blockquote,figcaption,.lead,.prose){ text-align:right }
html.a11y-al-center body :is(p,li,h1,h2,h3,h4,blockquote,figcaption,.lead,.prose){ text-align:center }
html.a11y-al-left body :is(p,li,h1,h2,h3,h4,blockquote,figcaption,.lead,.prose){ text-align:left }

/* --- גופן קריא --- */
html.a11y-font body{
  --display:Arial, Helvetica, 'Segoe UI', sans-serif;
  --body:Arial, Helvetica, 'Segoe UI', sans-serif;
  --num:Arial, Helvetica, 'Segoe UI', sans-serif;
}
html.a11y-font body :is(p,li,h1,h2,h3,h4,a,button,input,textarea,select,label,td,th,figcaption,blockquote){
  font-family:Arial, Helvetica, 'Segoe UI', sans-serif;
}

/* --- ניגודיות גבוהה (שינוי טוקנים, לא filter) --- */
html.a11y-hc body{
  --ink:#000; --ink-soft:#000; --ivory:#fff; --sand:#fff; --sand-deep:#f2f2f2;
  --gold:#6B4A10; --gold-ink:#5A3E0E; --gold-lt:#FFE9B8; --gold-glow:transparent;
  --muted:#1A1A1A; --muted-dk:#FFFFFF;
  --line:rgba(0,0,0,.55); --line-lt:rgba(255,255,255,.6);
}
html.a11y-hc body :is(p,li,.lead,figcaption,small,td,th){ color:#000 }
html.a11y-hc body .dark :is(p,li,.lead,figcaption,small,h1,h2,h3,h4){ color:#fff }
html.a11y-hc body .dark{ background:#000 }
html.a11y-hc body .dark .lead,
html.a11y-hc body .on-dark .lead{ color:#fff }
html.a11y-hc body :is(.btn,button,input,select,textarea){ border:2px solid currentColor }
html.a11y-hc body em,
html.a11y-hc body .serif-it{ color:#5A3E0E }
html.a11y-hc body .dark em,
html.a11y-hc body .dark .serif-it{ color:#FFE9B8 }

/* --- ניגודיות הפוכה: ערכת צבעים כהה דרך הטוקנים, לא filter על body,
       כדי שתמונות, סרטונים ולוגואים לא ייפגעו --- */
html.a11y-inv body{
  --ink:#F4EFE6; --ink-soft:#EDE6DA;
  --ivory:#100E0C; --sand:#191512; --sand-deep:#241E18;
  --gold:#D9B473; --gold-ink:#E8CB94; --gold-lt:#E8CB94; --gold-glow:rgba(217,180,115,.14);
  --muted:#C0B6A8; --muted-dk:#4A4238;
  --line:rgba(255,255,255,.2); --line-lt:rgba(20,17,14,.22);
  background:#100E0C; color:#F4EFE6;
}
html.a11y-inv body .hdr{ background:rgba(16,14,12,.88) }
html.a11y-inv body .hdr:not(.over) .logo img{ filter:brightness(0) invert(1) }
html.a11y-inv body .mnav{ background:#100E0C }
/* אזורים שהיו כהים הופכים לבהירים — הטקסט בהם חייב להתהפך גם הוא */
html.a11y-inv body .dark{ --gold-lt:#7E5A1C; --gold:#7E5A1C; --muted-dk:#4A4238 }
html.a11y-inv body .dark :is(.lead,p,li,small,figcaption){ color:#2B251E }
html.a11y-inv body .dark :is(em,.serif-it){ color:#7E5A1C }
html.a11y-inv body .dark .acc details > p{ color:#3D362E }
html.a11y-inv body :is(.on-dark,.eyebrow.on-dark){ color:#4A4238 }
html.a11y-inv body .ftr{ background:#080706; color:#CFC5B8 }
html.a11y-inv body .mbar{ background:#100E0C; border-top-color:rgba(255,255,255,.2) }
html.a11y-inv body .mbar a:last-child{ background:#F4EFE6; color:#100E0C }
html.a11y-inv body .ph{ background:repeating-linear-gradient(135deg,#221d18 0 11px,#1a1613 11px 22px); color:#C0B6A8 }

/* --- גווני אפור --- */
html.a11y-gs body > *:not(.a11y-root){ filter:grayscale(1) }

/* --- רקע בהיר --- */
html.a11y-lbg body{ background:#fff }
html.a11y-lbg body :is(.section.dark,.dark,.band,footer,.ftr){ background:#fff; color:#15120F }
html.a11y-lbg body .dark :is(h1,h2,h3,h4,p,li,.lead,small,a,figcaption){ color:#15120F }
html.a11y-lbg body .dark .lead,
html.a11y-lbg body .on-dark{ color:#3D362E }
html.a11y-lbg body :is(.section.dark,.dark,footer,.ftr){ border-top:1px solid #DCD3C6 }
html.a11y-lbg body .dark em,
html.a11y-lbg body .dark .serif-it,
html.a11y-lbg body .sc-mid em{ color:#7E5A1C }

/* --- הדגשת קישורים (רק קישורי טקסט) --- */
html.a11y-hl body a:not(.btn):not(.logo):not(.wa-float):not(.g-cell):not(.svc-item):not([class*="card"]):not([class*="tile"]){
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  text-decoration-color:currentColor;
}
html.a11y-hl body a:not(.btn):not(.logo):not(.wa-float):not(.g-cell):not([class*="card"]):hover{
  outline:2px solid var(--gold-ink); outline-offset:2px;
}
html.a11y-hl body a:has(> img),
html.a11y-hl body a:has(> figure),
html.a11y-hl body a:has(> picture){ text-decoration:none }

/* --- סמן עכבר גדול (SVG מקומי, ללא תלות חיצונית) --- */
@media (hover:hover) and (pointer:fine){
  html.a11y-cur body,
  html.a11y-cur body *{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M8 4 L8 38 L16.5 30.5 L22 43 L28.5 40 L23 27.5 L34 27 Z' fill='white' stroke='black' stroke-width='2.4' stroke-linejoin='round'/></svg>") 6 3, auto;
  }
  html.a11y-cur body :is(a,button,summary,label,[role="button"],[role="tab"],input[type="submit"]),
  html.a11y-cur body :is(a,button,summary,[role="button"]) *{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M18 4 C15.8 4 14 5.8 14 8 L14 25 L11.4 22.4 C9.8 20.8 7.2 20.8 5.6 22.4 C4 24 4 26.6 5.6 28.2 L16.4 41 C17.8 42.6 19.6 43.5 21.6 43.5 L33 43.5 C37 43.5 40 40.5 40 36.5 L40 21 C40 18.8 38.2 17 36 17 C35.2 17 34.5 17.2 33.9 17.6 C33.5 15.6 31.8 14 29.7 14 C28.8 14 28 14.3 27.3 14.7 C26.8 12.9 25.2 11.5 23.2 11.5 C22.6 11.5 22 11.6 21.5 11.9 L21.5 8 C21.5 5.8 20 4 18 4 Z' fill='white' stroke='black' stroke-width='2.4' stroke-linejoin='round'/></svg>") 12 3, pointer;
  }
}

/* --- הדגשת פוקוס --- */
html.a11y-fc body :is(a,button,input,select,textarea,summary,[tabindex],[role="button"],[role="tab"]):focus{
  outline:3px solid #B8893C; outline-offset:3px;
  box-shadow:0 0 0 6px rgba(184,137,60,.28);
}
html.a11y-fc body :is(a,button,input,select,textarea,summary,[tabindex],[role="button"],[role="tab"]):focus-visible{
  outline:4px solid #7E5A1C; outline-offset:3px;
}

/* --- עצירת אנימציות --- */
html.a11y-rm body *,
html.a11y-rm body *::before,
html.a11y-rm body *::after{
  animation-duration:.001ms !important;
  animation-iteration-count:1 !important;
  transition-duration:.001ms !important;
  scroll-behavior:auto !important;
}
html.a11y-rm{ scroll-behavior:auto !important }
html.a11y-rm body .beam,
html.a11y-rm body .sc-hint{ display:none }
/* רכיבים שנחשפים באנימציית גלילה חייבים להישאר גלויים */
html.a11y-rm body :is(.rv,.wipe,.lines){ opacity:1; transform:none; clip-path:none }
html.a11y-rm body .wipe::after{ display:none }

/* ==========================================================================
   חסינות הווידג'ט עצמו: ההתאמות לעולם לא משנות את החלונית,
   כדי שהיא תישאר קריאה וניתנת להפעלה בכל מצב.
   ========================================================================== */
.a11y-root, .a11y-root *, .a11y-skip{
  font-family:'Open Sans','Assistant',system-ui,sans-serif;
  letter-spacing:normal;
  word-spacing:normal;
  text-align:start;
  filter:none;
}
.a11y-root .a11y-head h2{ font-size:18px; line-height:1.3; font-weight:600; max-width:none; }
.a11y-root .a11y-head p{ font-size:13px; line-height:1.5; }
.a11y-root .a11y-group > h3{ font-size:12px; line-height:1; letter-spacing:.12em; }
.a11y-root .a11y-opt{ font-size:14px; line-height:1.35; }
.a11y-root .a11y-opt .tx small{ font-size:12px; }
.a11y-root .a11y-opt .st{ font-size:11.5px; line-height:1.4; }
.a11y-root .a11y-reset{ font-size:14.5px; line-height:1; }
.a11y-root .a11y-foot a{ font-size:13px; text-align:center; }
.a11y-root .a11y-note{ font-size:11.5px; line-height:1.5; text-align:center; }
.a11y-root .a11y-fab{ font-size:0; }
