/* ==========================================================
   Accessibility widget – YVT
   ========================================================== */
#a11y, #a11y * { box-sizing: border-box; }
#a11y {
  --a-gold: #A07D4C; --a-gold-d: #8A6E4B; --a-ink: #141C23; --a-bg: #F2F2F3; --a-card: #fff; --a-tile: #EEEEF0; --a-text: #1D2733;
  font-family: "Assistant", "Heebo", Arial, sans-serif; direction: rtl; line-height: 1.4; font-size: 16px;
}
.a11y-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9990; width: 58px; height: 58px; border-radius: 50%;
  background: var(--a-gold); border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(160, 125, 76, .25), 0 10px 24px rgba(0, 0, 0, .3); transition: transform .3s, box-shadow .3s;
}
.a11y-fab:hover { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(160, 125, 76, .25), 0 12px 28px rgba(0, 0, 0, .35); }
.a11y-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.a11y-fab svg { width: 34px; height: 34px; }
#a11y.hidden-fab .a11y-fab { display: none; }

.a11y-panel {
  position: fixed; right: 16px; bottom: 92px; z-index: 9991; width: 420px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px);
  background: var(--a-bg); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
}
#a11y.open .a11y-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s; }

.a11y-head { background: var(--a-gold); color: #fff; padding: 18px 22px 30px; display: flex; align-items: center; justify-content: space-between; position: relative; flex: none; }
.a11y-head::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 46%; height: 16px; transform: translateX(-50%); background: var(--a-bg); border-radius: 16px 16px 0 0; }
.a11y-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; margin: 0; color: #fff; }
.a11y-title .ic { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.a11y-title .ic svg { width: 20px; height: 20px; }
.a11y-actions { display: flex; align-items: center; gap: 4px; }
.a11y-actions .sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .5); margin: 0 6px; }
.a11y-actions button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.a11y-actions button:hover { background: rgba(255, 255, 255, .18); }
.a11y-actions button:focus-visible { outline: 2px solid #fff; }
.a11y-actions svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.a11y-body { overflow-y: auto; padding: 4px 16px 16px; flex: 1; }
.a11y-group { background: var(--a-card); border-radius: 18px; padding: 18px 20px 20px; margin-top: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.a11y-group h3 { font-size: 16px; font-weight: 600; color: var(--a-text); margin: 0 0 14px; font-family: inherit; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a11y-tile {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 12px 14px; border-radius: 14px;
  background: var(--a-tile); border: 2px solid transparent; color: var(--a-text); font: inherit; font-size: 15.5px; text-align: right; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.a11y-tile:hover { background: #E6E6E9; }
.a11y-tile:focus-visible { outline: 3px solid var(--a-gold); outline-offset: 2px; }
.a11y-tile .ti { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.a11y-tile .ti svg { width: 24px; height: 24px; stroke: var(--a-text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a11y-tile.on { background: #F6EEE2; border-color: var(--a-gold); }
.a11y-tile.on .ti { background: var(--a-gold); }
.a11y-tile.on .ti svg { stroke: #fff; }
.a11y-dots { position: absolute; bottom: 8px; left: 12px; display: flex; gap: 4px; }
.a11y-dots i { width: 6px; height: 6px; border-radius: 50%; background: #CFCFD4; }
.a11y-dots i.f { background: var(--a-gold); }
.a11y-foot { padding: 14px 20px 18px; text-align: center; font-size: 14px; flex: none; border-top: 1px solid #E2E2E5; background: var(--a-bg); }
.a11y-foot a { color: var(--a-gold-d); font-weight: 600; text-decoration: underline; }

/* page structure view */
.a11y-struct { display: none; }
#a11y.struct .a11y-struct { display: block; }
#a11y.struct .a11y-main { display: none; }
.a11y-struct .back { border: 0; background: none; color: var(--a-gold-d); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; margin-top: 12px; }
.a11y-struct ul { list-style: none; margin: 0; padding: 0; }
.a11y-struct li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--a-text); text-decoration: none; font-size: 15px; }
.a11y-struct li a:hover { background: var(--a-tile); }
.a11y-struct li .lv { display: inline-block; min-width: 30px; font-size: 12px; color: var(--a-gold-d); font-weight: 700; }
.a11y-struct li.l2 a { padding-right: 26px; } .a11y-struct li.l3 a { padding-right: 42px; }

/* reading mask */
.a11y-mask { position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .62); z-index: 9980; pointer-events: none; display: none; }
html.a11y-mask-on .a11y-mask { display: block; }
.a11y-mask.top { top: 0; } .a11y-mask.bot { bottom: 0; }

@media (max-width: 600px) {
  .a11y-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .a11y-panel { right: 8px; left: 8px; width: auto; max-width: none; bottom: 76px; max-height: calc(100dvh - 90px); }
  .a11y-tile { min-height: 70px; font-size: 14.5px; gap: 8px; padding: 10px; }
  .a11y-tile .ti { width: 38px; height: 38px; }
}

/* ==========================================================
   Effects applied to the page (never to the widget itself)
   ========================================================== */
html.a11y-lh-1 body *:not(#a11y):not(#a11y *) { line-height: 2 !important; }
html.a11y-lh-2 body *:not(#a11y):not(#a11y *) { line-height: 2.4 !important; }
html.a11y-lh-3 body *:not(#a11y):not(#a11y *) { line-height: 2.8 !important; }

html.a11y-al-1 body *:not(#a11y):not(#a11y *) { text-align: right !important; }
html.a11y-al-2 body *:not(#a11y):not(#a11y *) { text-align: center !important; }
html.a11y-al-3 body *:not(#a11y):not(#a11y *) { text-align: left !important; }

html.a11y-font body *:not(#a11y):not(#a11y *) { font-family: Arial, "Heebo", sans-serif !important; letter-spacing: .02em !important; }

html.a11y-gray body > *:not(#a11y) { filter: grayscale(1); }

html.a11y-noimg body img:not(#a11y img), html.a11y-noimg body video, html.a11y-noimg .project-ph, html.a11y-noimg .split-visual img { visibility: hidden !important; }
html.a11y-noimg .page-hero { background-image: none !important; }

html.a11y-still *:not(#a11y):not(#a11y *), html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }

html.a11y-links a:not(#a11y a) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid #E8B400 !important; outline-offset: 2px; background-color: rgba(255, 221, 0, .18) !important; }

html.a11y-focus *:focus { outline: 4px solid #E8B400 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px rgba(0, 0, 0, .7) !important; }

/* contrast 1: dark */
html.a11y-ct-1 body, html.a11y-ct-1 body *:not(#a11y):not(#a11y *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; background-image: none !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y-ct-1 body a:not(#a11y a), html.a11y-ct-1 body a:not(#a11y a) * { color: #FFE14D !important; }
html.a11y-ct-1 .hero-media, html.a11y-ct-1 .hero::after { display: none !important; }
html.a11y-ct-1 img[src*="logo-full-gold"], html.a11y-ct-1 img[src*="logo-mark-gold"] { filter: brightness(0) invert(1); }
/* contrast 2: light */
html.a11y-ct-2 body, html.a11y-ct-2 body *:not(#a11y):not(#a11y *) { background-color: #fff !important; color: #000 !important; border-color: #000 !important; background-image: none !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y-ct-2 body a:not(#a11y a), html.a11y-ct-2 body a:not(#a11y a) * { color: #0033CC !important; }
html.a11y-ct-2 .hero-media, html.a11y-ct-2 .hero::after { display: none !important; }
html.a11y-ct-2 img[src*="logo-full-white"], html.a11y-ct-2 img[src*="logo-mark-white"] { filter: brightness(0); }
/* contrast 3: high saturation */
html.a11y-ct-3 body > *:not(#a11y) { filter: saturate(1.8) contrast(1.15); }
html.a11y-ct-1 img, html.a11y-ct-2 img { background-color: transparent !important; }
html.a11y-ct-1 body img:not(#a11y):not(#a11y *), html.a11y-ct-2 body img:not(#a11y):not(#a11y *) { background-color: transparent !important; }
