/* Accessibility menu, effects and cookie notice (owner, 2026-11-26: "like jac-motors.co.il"), in the site's black and silver.
   Loaded in <head>, so the effect classes the inline head script sets apply at first paint. The menu, the notice and the
   effect overlays are never affected by the effects themselves (.fa11y, .cnotice and [data-a11y-ui] are excluded). */

/* ---------- the menu ---------- */
.fa11y{position:fixed;z-index:1200;inset-inline-end:84px;bottom:24px;width:min(520px,calc(100vw - 40px));max-height:calc(100dvh - var(--hdr) - 40px);overflow:auto;overscroll-behavior:contain;background:#f7f7f7;color:#111;border-top:4px solid #000;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.3);font:400 1rem/1.5 var(--f-body);text-align:start;letter-spacing:normal;word-spacing:normal;scroll-padding-top:88px}
.fa11y[hidden]{display:none}
.fa11y--large{width:min(640px,calc(100vw - 40px))}
html[data-a11y-pos=start] .fa11y{inset-inline-end:auto;inset-inline-start:84px}
html[data-a11y-pos=start] .side--a11y{inset-inline-end:auto;inset-inline-start:30px}
.fa11y *{letter-spacing:normal;word-spacing:normal;text-transform:none}
.fa11y svg{width:26px;height:26px;flex:none}
.fa11y__top{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 20px 14px;background:#fff;border-bottom:1px solid var(--line)}
.fa11y__eyebrow{display:block;font-size:.75rem;font-weight:700;letter-spacing:.06em;color:#555}
.fa11y__top h2{margin:2px 0 0;font:800 1.5rem/1.2 'Rubik','Heebo',Arial,sans-serif;color:#000}
.fa11y__close{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:#000}
.fa11y__close .ic{width:20px;height:20px}
.fa11y__body{padding:14px 20px 20px}
.fa11y__help{margin:0 0 6px;font-size:.9375rem}
.fa11y__help summary,.fa11y__info summary,.fa11y__pos summary{cursor:pointer;font-weight:700;color:#000;padding:8px 0}
.fa11y__help p,.fa11y__info p{margin:6px 0;color:#333;line-height:1.6}
.fa11y__h{margin:16px 0 10px;font:800 1.0625rem/1.3 'Rubik','Heebo',Arial,sans-serif;color:#000}
.fa11y__profiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fa11y__profile{position:relative;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:start;min-height:72px;padding:10px 12px;text-align:start;background:#fff;border:1px solid #cfd3d7;border-radius:8px;color:#000}
.fa11y__profile svg{grid-row:span 2;width:28px;height:28px;padding:5px;box-sizing:content-box;background:var(--soft);border-radius:6px}
.fa11y__pname{font-weight:800;font-size:.9375rem;line-height:1.3}
.fa11y__pdesc{font-size:.8125rem;line-height:1.4;color:#555}
.fa11y__size{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 0;padding:10px 12px;background:#fff;border:1px solid #cfd3d7;border-radius:8px;font-weight:700}
.fa11y__switch{display:inline-flex;align-items:center;padding:4px;background:none;border:0}
.fa11y__track{position:relative;width:44px;height:24px;border-radius:12px;background:#8a9098;transition:background .2s}
.fa11y__track span{position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:inset-inline-start .2s}
.fa11y__switch[aria-pressed=true] .fa11y__track{background:#000}
.fa11y__switch[aria-pressed=true] .fa11y__track span{inset-inline-start:23px}
.fa11y__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fa11y__set{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:92px;padding:12px;text-align:start;background:#fff;border:1px solid #cfd3d7;border-radius:8px;color:#000}
.fa11y__label{font-weight:800;font-size:.9375rem;line-height:1.3}
.fa11y__level{font-size:.8125rem;color:#555}
.fa11y__set.is-on,.fa11y__profile[aria-pressed=true]{background:#000;border-color:#000;color:#fff}
.fa11y__set.is-on .fa11y__level,.fa11y__profile[aria-pressed=true] .fa11y__pdesc{color:#e3e6ea}
.fa11y__profile[aria-pressed=true] svg{background:#2a2c30}
.fa11y__set.is-on::after,.fa11y__profile[aria-pressed=true]::after{content:"✓";content:"✓" / "";position:absolute;top:8px;inset-inline-end:10px;font-weight:800;color:#fff}
.fa11y__set:hover,.fa11y__profile:hover{border-color:#000}
.fa11y--large .fa11y__set{min-height:110px}
.fa11y--large .fa11y__label,.fa11y--large .fa11y__pname{font-size:1.1875rem}
.fa11y--large .fa11y__level,.fa11y--large .fa11y__pdesc{font-size:1rem}
.fa11y--large svg{width:34px;height:34px}
.fa11y--large .fa11y__top h2{font-size:1.9375rem}
.fa11y__outline{margin:14px 0 0;padding:12px;background:#fff;border:1px solid #cfd3d7;border-radius:8px}
.fa11y__outline .fa11y__h{margin-top:0}
.fa11y__olist{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.fa11y__oitem{display:flex;align-items:baseline;gap:10px;width:100%;padding:6px 8px;padding-inline-start:calc(8px + var(--lvl,0) * 16px);text-align:start;background:none;border:0;border-radius:6px;color:#000;font-size:.9375rem;line-height:1.4}
.fa11y__oitem:hover{background:var(--soft)}
.fa11y__olvl{flex:none;min-width:26px;padding:1px 4px;border:1px solid #8a9098;border-radius:4px;font-size:.75rem;font-weight:700;text-align:center}
.fa11y__oempty{color:#555;font-size:.9375rem}
.fa11y__reset{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:14px 0 0;background:#fff;border:2px solid #000;border-radius:8px;font-weight:800;color:#000}
.fa11y__reset:hover{background:#000;color:#fff}
.fa11y__status{min-height:1.5em;margin:8px 0 0;font-size:.875rem;font-weight:700;color:#000}
.fa11y__status:empty{min-height:0;margin:0}
.fa11y__pos{margin:10px 0 0}
.fa11y__pos summary{display:flex;align-items:center;gap:8px}
.fa11y__btn{min-height:44px;margin:4px 0;padding:0 16px;background:#fff;border:2px solid #000;border-radius:8px;font-weight:700;color:#000}
.fa11y__btn--dark,.fa11y__btn:hover{background:#000;color:#fff}
.fa11y__btn--dark:hover{background:#2a2c30}
.fa11y__info{margin:12px 0 0;padding:12px 0 0;border-top:1px solid #cfd3d7}
.fa11y__info a,.fa11y__links a{color:#000;text-decoration:underline;text-underline-offset:3px}
.fa11y__cstate{font-weight:700;color:#000!important}
.fa11y__consent{display:flex;flex-wrap:wrap;gap:8px}
.fa11y__consent [aria-pressed=true]{box-shadow:0 0 0 3px #8a9098}
.fa11y__clear{margin:10px 0 0;padding:6px 0;background:none;border:0;color:#000;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.fa11y__links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:10px 0 0!important;font-weight:700}
.fa11y__foot{margin:12px 0 0;font-size:.8125rem;color:#555;line-height:1.5}
.fa11y :where(button,summary,a):focus-visible{outline:3px solid #000;outline-offset:2px;box-shadow:0 0 0 6px #fff}
@media (max-width:900px){
  .fa11y{inset-inline:10px;width:auto;bottom:calc(126px + env(safe-area-inset-bottom));max-height:calc(100svh - var(--hdr) - 140px)}
  html[data-a11y-pos=start] .fa11y{inset-inline:10px}
  html[data-a11y-pos=start] .side--a11y{inset-inline-start:12px}
  .fa11y__body{padding:12px 14px 16px}
  .fa11y__top{padding:14px}
}
@media (max-width:480px){.fa11y__profiles{grid-template-columns:1fr}}

/* ---------- the cookie notice: beside the floating buttons, never over them ---------- */
.cnotice{position:fixed;z-index:1191;max-height:calc(100svh - 24px);overflow-y:auto;overscroll-behavior:contain;inset-inline-start:24px;bottom:24px;width:min(600px,calc(100vw - 160px));display:flex;flex-direction:column;gap:8px;padding:18px 22px;background:#fff;color:#111;border-top:4px solid #000;border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.28);font:400 1rem/1.5 var(--f-body);text-align:start}
.cnotice[hidden]{display:none}
.cnotice__t{margin:0;font:800 1.125rem/1.3 'Rubik','Heebo',Arial,sans-serif;color:#000}
.cnotice p{margin:0;font-size:.9375rem;line-height:1.6;color:#333}
.cnotice__btns{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:4px}
.cnotice__btns button{min-height:44px;padding:0 20px;background:#fff;border:2px solid #000;border-radius:8px;font-weight:800;color:#000}
.cnotice__btns .is-primary{background:#000;color:#fff}
.cnotice__btns .is-link{padding:0 4px;border:0;text-decoration:underline;text-underline-offset:3px}
.cnotice__btns button:focus-visible{outline:3px solid #000;outline-offset:2px;box-shadow:0 0 0 6px #fff}
body.is-menu .cnotice{display:none}
@media (max-width:900px){
  .cnotice{inset-inline-start:12px;inset-inline-end:68px;width:auto;bottom:calc(12px + env(safe-area-inset-bottom));padding:14px 16px}
  html[data-a11y-pos=start] .cnotice{inset-inline-start:68px}
  .cnotice__btns button{padding:0 14px}
}

/* ---------- effects: text size (every size on the site is in rem) ---------- */
html.a11y-size-1{font-size:110%}
html.a11y-size-2{font-size:125%}
html.a11y-size-3{font-size:140%}
/* larger text: the desktop nav no longer fits beside the phone and the CTA, so the header switches to the burger earlier */
@media (min-width:1181px) and (max-width:1239px){
  html.a11y-size-1 .hdr__nav,html.a11y-size-1 .hdr__phone,html.a11y-size-1 .hdr__cta,html.a11y-size-1 .mega{display:none}
  html.a11y-size-1 .hdr__bar{justify-content:flex-start}
  html.a11y-size-1 .hdr__burger{display:block}
  html.a11y-size-1 .mnav{display:flex}
}
@media (min-width:1181px) and (max-width:1439px){
  html.a11y-size-2 .hdr__nav,html.a11y-size-2 .hdr__phone,html.a11y-size-2 .hdr__cta,html.a11y-size-2 .mega{display:none}
  html.a11y-size-2 .hdr__bar{justify-content:flex-start}
  html.a11y-size-2 .hdr__burger{display:block}
  html.a11y-size-2 .mnav{display:flex}
}
@media (min-width:1181px) and (max-width:1699px){
  html.a11y-size-3 .hdr__nav,html.a11y-size-3 .hdr__phone,html.a11y-size-3 .hdr__cta,html.a11y-size-3 .mega{display:none}
  html.a11y-size-3 .hdr__bar{justify-content:flex-start}
  html.a11y-size-3 .hdr__burger{display:block}
  html.a11y-size-3 .mnav{display:flex}
}

/* ---------- letter and word spacing, line height, alignment ---------- */
html.a11y-sp-1 body *:not(.fa11y *):not(.cnotice *){letter-spacing:.025em!important;word-spacing:.08em!important}
html.a11y-sp-2 body *:not(.fa11y *):not(.cnotice *){letter-spacing:.05em!important;word-spacing:.15em!important}
html.a11y-sp-3 body *:not(.fa11y *):not(.cnotice *){letter-spacing:.08em!important;word-spacing:.24em!important}
html.a11y-lh-1 body :is(p,li,dd,dt,td,th,label,blockquote,figcaption,address,legend):not(.fa11y *):not(.cnotice *){line-height:1.85!important}
html.a11y-lh-2 body :is(p,li,dd,dt,td,th,label,blockquote,figcaption,address,legend):not(.fa11y *):not(.cnotice *){line-height:2.1!important}
html.a11y-lh-3 body :is(p,li,dd,dt,td,th,label,blockquote,figcaption,address,legend):not(.fa11y *):not(.cnotice *){line-height:2.4!important}
html.a11y-lh-1 body :is(h1,h2,h3,h4,h5,h6):not(.fa11y *):not(.cnotice *){line-height:1.35!important}
html.a11y-lh-2 body :is(h1,h2,h3,h4,h5,h6):not(.fa11y *):not(.cnotice *){line-height:1.5!important}
html.a11y-lh-3 body :is(h1,h2,h3,h4,h5,h6):not(.fa11y *):not(.cnotice *){line-height:1.7!important}
html[data-a11y-align="1"] body :is(p,li,h1,h2,h3,h4,h5,h6,dd,dt,td,th,label,blockquote,figcaption,legend,address):not(.fa11y *):not(.cnotice *){text-align:right!important}
html[data-a11y-align="2"] body :is(p,li,h1,h2,h3,h4,h5,h6,dd,dt,td,th,label,blockquote,figcaption,legend,address):not(.fa11y *):not(.cnotice *){text-align:center!important}
html[data-a11y-align="3"] body :is(p,li,h1,h2,h3,h4,h5,h6,dd,dt,td,th,label,blockquote,figcaption,legend,address):not(.fa11y *):not(.cnotice *){text-align:left!important}

/* ---------- contrast modes: 1 dark, 2 light, 3 black and yellow. Every element turns transparent over one body colour (so
   photos stay visible and no overlay hides them), text and borders take the mode colours, and text that sits on a photo
   gets a solid box. Fixed bars keep a solid background. ---------- */
html[data-a11y-contrast="1"]{--ac-bg:#080b10;--ac-fg:#fff;--ac-ln:#b7c7df;--ac-link:#ffec82}
html[data-a11y-contrast="2"]{--ac-bg:#fff;--ac-fg:#111;--ac-ln:#141414;--ac-link:#002d98}
html[data-a11y-contrast="3"]{--ac-bg:#000;--ac-fg:#ffef78;--ac-ln:#ffef78;--ac-link:#fff}
html[data-a11y-contrast] body{background:var(--ac-bg)!important;color:var(--ac-fg)!important}
/* :where() keeps this blanket rule at low specificity, so the solid boxes for text over photos and the fixed bars below win */
html[data-a11y-contrast] body :where(*:not(.fa11y, .fa11y *, .cnotice, .cnotice *, [data-a11y-ui], img, video, canvas, iframe, svg *)){background-color:transparent!important;background-image:none!important;color:var(--ac-fg)!important;border-color:var(--ac-ln)!important;box-shadow:none!important;text-shadow:none!important}
html[data-a11y-contrast] body *:not(.fa11y *):not(.cnotice *)::before,html[data-a11y-contrast] body *:not(.fa11y *):not(.cnotice *)::after{background-image:none!important;box-shadow:none!important;border-color:var(--ac-ln)!important}
html[data-a11y-contrast] body :is(a,button,summary):not(.fa11y *):not(.cnotice *){color:var(--ac-link)!important}
html[data-a11y-contrast] body :is(a,button,summary):not(.fa11y *):not(.cnotice *) *{color:inherit!important}
html[data-a11y-contrast] :is(section,div,a,article,li,figure,span):has(>img,>picture,>video,>canvas)>:not(img,picture,video,canvas,source,:empty){background-color:var(--ac-bg)!important}
html[data-a11y-contrast] :is(.hdr__bar,.mega,.mnav,.tabs,.side a,.side button,.mctl,.lb,.leaflet-popup-content-wrapper,.leaflet-control a){background-color:var(--ac-bg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-a11y-contrast] body :is(input,select,textarea,button):not(.fa11y *):not(.cnotice *){border:2px solid var(--ac-ln)!important}
html[data-a11y-contrast] ::placeholder{color:currentColor!important;opacity:.75}
html[data-a11y-contrast] body :focus-visible{outline:3px solid #0055ff!important;outline-offset:2px;box-shadow:0 0 0 6px #fff!important}

/* ---------- colour saturation (filters on the page regions only, so fixed elements inside them keep working) ---------- */
html[data-a11y-sat="1"] :is(main,.ftr,.hdr__bar,.mnav,.side){filter:saturate(.45)}
html[data-a11y-sat="2"] :is(main,.ftr,.hdr__bar,.mnav,.side){filter:saturate(1.8)}
html[data-a11y-sat="3"] :is(main,.ftr,.hdr__bar,.mnav,.side){filter:grayscale(1)}
html[data-a11y-sat] .hdr .hdr__bar,html[data-a11y-sat] .mega{background:var(--navy)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-a11y-sat] .tabs{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------- links, images, cursor, font ---------- */
html.a11y-links body a[href]:not(.fa11y *):not(.cnotice *){text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:.2em!important}
html.a11y-links:not([data-a11y-contrast]) :is(main,.ftr) a[href]:not(:has(img,picture,video)){background-color:#fff3a6!important;color:#000!important;outline:1px solid #000;outline-offset:1px}
html.a11y-links:not([data-a11y-contrast]) :is(main,.ftr) a[href]:not(:has(img,picture,video)) *{color:#000!important}
html.a11y-hideimg body :is(img,picture,video,canvas,iframe):not(.fa11y *):not([class*="logo"] img):not([class*="logo"]){opacity:0!important}
html.a11y-hideimg body *:not(.fa11y *):not(.cnotice *):not([class*="logo"]){background-image:none!important}
html.a11y-cursor,html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='56' viewBox='0 0 48 56'%3E%3Cpath d='M5 3L6 45L17 35L25 52L33 48L25 32L40 31Z' fill='white' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3,auto!important}
html.a11y-cursor :is(input,textarea){cursor:text!important}
html.a11y-font body *:not(.fa11y *):not(.cnotice *){font-family:Arial,Helvetica,sans-serif!important}

/* ---------- overlays: reading guide, focus mask, description tooltip ---------- */
.a11y-guide{position:fixed;z-index:1190;top:0;left:0;right:0;height:4px;margin-top:-2px;background:#0754e9;box-shadow:0 0 0 1px #fff;opacity:.95;pointer-events:none}
.a11y-shade{position:fixed;z-index:1189;left:0;right:0;background:rgb(0 0 0 / 64%);pointer-events:none}
.a11y-shade--top{top:0}
.a11y-shade--bottom{bottom:0}
.a11y-tip{position:fixed;z-index:1195;max-width:min(360px,calc(100vw - 24px));padding:10px 14px;background:#111;color:#fff;border:2px solid #fff;border-radius:8px;font:600 1.0625rem/1.45 var(--f-body);direction:rtl;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.a11y-tip[hidden]{display:none}

/* footer: 'הגדרות עוגיות' reopens the choice; it looks like the policy links beside it */
.ftr__cookies{padding:0;background:none;border:0;font:inherit;color:inherit;cursor:pointer}
.ftr__cookies:hover{text-decoration:underline}

/* short screens (phone landscape, 400% zoom): the panel takes the full height and its header scrolls away */
@media (max-height:520px){
  .fa11y{top:8px;bottom:8px;max-height:none}
  .fa11y__top{position:static}
  .cnotice{bottom:8px;max-height:calc(100svh - 16px);padding:10px 14px}
}

@media print{.fa11y,.cnotice,.a11y-guide,.a11y-shade,.a11y-tip{display:none!important}}
