/* ==========================================================================
   Accessibility menu (assets/js/a11y.js) and the modes it switches on.
   Loaded on every page, after the page's own styles.
   ========================================================================== */
.a11y { position: fixed; z-index: 1100; right: 16px; bottom: 24px; font-family: "Assistant", "Heebo", Arial, sans-serif; direction: rtl; }
.a11y__toggle {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  display: grid; place-items: center; background: #1e3060; color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55);
}
.a11y__toggle svg { width: 30px; height: 30px; }
.a11y__toggle:hover { background: #142247; }
.a11y__toggle:focus-visible, .a11y__panel button:focus-visible, .a11y__panel a:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.a11y__panel {
  position: absolute; right: 0; bottom: 64px; width: min(300px, calc(100vw - 32px)); padding: 16px;
  background: #fff; color: #1b1b1b; border: 1px solid #c9c9c9; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45);
}
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y__title { margin: 0; font-size: 19.2px; font-weight: 700; color: #1b1b1b; }
.a11y__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #1b1b1b; cursor: pointer; display: grid; place-items: center; }
.a11y__close svg { width: 20px; height: 20px; }
.a11y__close:hover { background: #f0f0f0; }
.a11y__size { display: grid; grid-template-columns: 1fr 44px 56px 44px; align-items: center; gap: 6.4px; margin-bottom: 12px; font-size: 15.2px; }
.a11y__size button { height: 44px; border: 1px solid #8a8a8a; border-radius: 8px; background: #fff; color: #1b1b1b; font-weight: 700; font-size: 16px; cursor: pointer; }
.a11y__size output { text-align: center; font-weight: 700; }
.a11y__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6.4px; margin-bottom: 12px; }
.a11y__opts button {
  min-height: 48px; padding: 6.4px 8px; border: 1px solid #8a8a8a; border-radius: 8px; background: #fff; color: #1b1b1b;
  font: inherit; font-size: 14.7px; font-weight: 600; cursor: pointer; line-height: 1.25;
}
.a11y__opts button[aria-pressed="true"] { background: #1e3060; border-color: #1e3060; color: #fff; }
.a11y__reset { width: 100%; min-height: 44px; border: 1px solid #8a8a8a; border-radius: 8px; background: #f4f4f4; color: #1b1b1b; font: inherit; font-weight: 600; cursor: pointer; }
.a11y__statement { display: block; margin-top: 9.6px; text-align: center; color: #1e3060; font-weight: 600; text-decoration: underline; min-height: 32px; line-height: 32px; }
/* phones: sit above the bottom action bar */
@media (max-width: 767px) { .a11y { bottom: 88px; right: 12px; } .a11y__toggle { width: 48px; height: 48px; } }
html.thanks-open .a11y { visibility: hidden; }

/* ---- Modes ---------------------------------------------------------- */
html.a11y-t1 { font-size: 115%; }
html.a11y-t2 { font-size: 130%; }
html.a11y-t3 { font-size: 150%; }
html.a11y-t1 .a11y, html.a11y-t2 .a11y, html.a11y-t3 .a11y { font-size: 16px; }

html.a11y-contrast body *:not(.a11y):not(.a11y *):not(img):not(video):not(svg):not(svg *) {
  background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast body a:not(.a11y *), html.a11y-contrast body a:not(.a11y *) * { color: #ffe100 !important; }
html.a11y-contrast body button:not(.a11y *), html.a11y-contrast body .btn { border: 2px solid #ffe100 !important; }
html.a11y-contrast body img, html.a11y-contrast body video { opacity: .9; }

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

html.a11y-links a:not(.a11y *) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid #ffbf00 !important; outline-offset: 2px; }

html.a11y-font body *:not(.a11y *):not(svg):not(svg *) { font-family: Arial, "Helvetica Neue", sans-serif !important; letter-spacing: normal !important; word-spacing: .05em; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
/* entry page: top corner, so it never covers the two doors' buttons */
body:has(.entry) .a11y { top: 12px; left: 12px; right: auto; bottom: auto; }
body:has(.entry) .a11y__panel { top: 62px; bottom: auto; left: 0; right: auto; }
body:has(.entry) .a11y__toggle { width: 44px; height: 44px; }

/* ---- Accessibility fixes (IS 5568 / WCAG 2.1 AA audit, 24/11/2026) ------- */
/* Grayscale mode: the floating shortcuts are fixed, so the filter goes on each one, never on their wrapper */
html.a11y-gray body > .float-dock { filter: none; }
html.a11y-gray .float-dock > * { filter: grayscale(1); }

/* Contrast: small text must reach 4.5:1, large text 3:1 */
.door--pro .door__eyebrow { color: #8f4a1f; }
.tab__count, .tabs--budget .tab__count { opacity: 1; }
.tbottle__fruit { opacity: 1; }
.audience-photo figcaption { background: linear-gradient(to top, rgba(20,18,19,.92) 0%, rgba(20,18,19,.72) 55%, transparent); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.chef__cap { background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 60%, transparent) !important; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.shelf-tile::after { background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 42%), linear-gradient(to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 30%) !important; }
.shelf-tile__el, .shelf-tile__name { text-shadow: 0 1px 8px rgba(0,0,0,.55); overflow-wrap: anywhere; }
.shelf-tile__el { background: rgba(0,0,0,.5); padding: 0.1rem 0.5rem; border-radius: 3px; }
.film__lead { color: #fff; }

/* Reflow at 320px: the four Tales bottles share the row instead of pushing the page sideways */
.tstage .tlineup { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tbottle__name, .tbottle__fruit { overflow-wrap: anywhere; max-width: 100%; }
.tstage .tlineup a.tbottle { min-width: 0; }
@media (max-width: 599px) { .tstage .tlineup a.tbottle { height: auto; min-height: 200px; } }

/* Film description, under the play button */
.film__desc { margin-top: var(--space-3, 1.5rem); max-width: 60ch; color: rgba(255,255,255,.92); }
.film__desc summary { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.film__desc summary::-webkit-details-marker { display: none; }
.film__desc summary::after { content: "+"; font-weight: 400; font-size: 1.2em; text-decoration: none; }
.film__desc[open] summary::after { content: "−"; }
.film__desc[open] { background: rgba(8,14,8,.82); padding: 0.25rem 1.1rem 1rem; border-radius: 6px; }
.film__desc p { margin: 0.4rem 0 0; font-size: 1rem; line-height: 1.7; }
.film__desc summary:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }

/* Phones: while the hero is on screen the accessibility button sits at the top, so it never covers the hero buttons */
@media (max-width: 767px) {
  .a11y.a11y--top { top: var(--a11y-top, 120px); bottom: auto; right: auto; left: 12px; }
  .a11y.a11y--top .a11y__panel { top: 58px; bottom: auto; left: 0; right: auto; }
}

/* Enlarged text from the menu: nothing may push the page sideways */
html.a11y-t1 .nowrap, html.a11y-t2 .nowrap, html.a11y-t3 .nowrap { white-space: normal; }
html.a11y-t1 main, html.a11y-t2 main, html.a11y-t3 main { overflow-wrap: anywhere; }
.ab-company__list > div { grid-template-columns: 7.5rem minmax(0, 1fr); }
.ab-company__list dd { overflow-wrap: anywhere; }
html.a11y-t1 .snap-dots, html.a11y-t2 .snap-dots, html.a11y-t3 .snap-dots { flex-wrap: wrap; }
html.a11y-t1 .pro .house__facts strong, html.a11y-t2 .pro .house__facts strong, html.a11y-t3 .pro .house__facts strong { white-space: normal; }
@media (max-width: 479px) { html.a11y-t1 .house__facts, html.a11y-t2 .house__facts, html.a11y-t3 .house__facts { grid-template-columns: minmax(0, 1fr); } }
/* Text for screen readers only */
.a11y-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Phrases kept together may still wrap inside when the line is too narrow (wider text spacing, narrow phones) */
.ph h1 { max-width: none; }
.ph h1 .nowrap { display: block; white-space: normal; }
@media (max-width: 359px) { .deadline .nowrap { white-space: normal; } }
