/* ==========================================
   ACCESSIBILITY MENU — button, panel, and the display modes it switches on <html>
   ========================================== */

.a11y-skip {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 3000;
  background: var(--teal);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-h);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.a11y-skip:focus { transform: none; }

.a11y {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px; /* right side in RTL — the back-to-top button sits on the left */
  z-index: 2500;
}

.a11y-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  cursor: pointer;
  border: 2px solid var(--white);
}

.a11y-btn svg { width: 28px; height: 28px; }

.a11y-btn:hover { background: var(--teal-light); }

.a11y-panel {
  position: absolute;
  bottom: 60px;
  inset-inline-start: 0;
  width: 250px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-b);
}

.a11y-panel[hidden] { display: none; }

.a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: var(--teal);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.a11y-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-soft);
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
}

.a11y-size { display: flex; gap: 6px; }

.a11y-size button,
.a11y-toggle,
.a11y-reset {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-h);
  font-size: 0.92rem;
  cursor: pointer;
}

.a11y-size button { width: 48px; font-weight: 700; }

.a11y-toggle { text-align: start; padding: 0 12px; }

.a11y-toggle[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.a11y-reset { background: transparent; color: var(--text-soft); }

.a11y-statement {
  text-align: center;
  font-size: 0.88rem;
  color: var(--teal);
  text-decoration: underline;
  padding-top: 4px;
}

.a11y button:focus-visible,
.a11y a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 768px) {
  .a11y { bottom: 16px; inset-inline-start: 16px; }
}

/* ---------- display modes ---------- */

html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 140%; }

/* filters on the root element keep fixed elements (nav, buttons) in place */
html.a11y-gray { filter: grayscale(1); }

html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast section,
html.a11y-contrast footer,
html.a11y-contrast .navbar,
html.a11y-contrast .nav-inner,
html.a11y-contrast .mobile-menu,
html.a11y-contrast [class*="card"],
html.a11y-contrast [class*="panel"],
html.a11y-contrast .faq-item,
html.a11y-contrast .flight-part,
html.a11y-contrast .lecture-soon {
  background-color: #000 !important;
  background-image: none !important;
}
html.a11y-contrast body *:not(svg):not(path):not(img) {
  color: #fff !important;
  border-color: #fff !important;
  text-shadow: none !important;
}
html.a11y-contrast a,
html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .btn,
html.a11y-contrast .nav-cta-btn,
html.a11y-contrast .a11y-btn { background: #000 !important; border: 2px solid #ffeb3b !important; }
html.a11y-contrast .hero-overlay { background: rgba(0,0,0,0.75) !important; }
html.a11y-contrast .a11y-panel,
html.a11y-contrast .a11y-panel button { background: #000 !important; border: 1px solid #fff !important; }
html.a11y-contrast .a11y-toggle[aria-pressed="true"] { background: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .hamburger span { background: #fff !important; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-links a:not(.btn):not(.nav-cta-btn) { font-weight: 700; }

html.a11y-font body,
html.a11y-font body * { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: 0.01em !important; }

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-motion .reveal,
html.a11y-motion .reveal-left,
html.a11y-motion .reveal-right,
html.a11y-motion .reveal-scale,
html.a11y-motion .stagger-children > * { opacity: 1 !important; transform: none !important; }

/* ---------- accessibility statement page ---------- */
.a11y-statement-page h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--teal);
  margin: var(--s5) 0 var(--s2);
}

.a11y-statement-page ul {
  list-style: disc;
  padding-inline-start: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--s2);
}

.a11y-statement-page ul.a11y-statement-contact { list-style: none; padding: 0; }

.a11y-statement-page a { color: var(--teal); text-decoration: underline; }

.a11y-statement-date {
  margin-top: var(--s5);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-bottom a { color: inherit; text-decoration: underline; }
.footer-bottom a:hover { color: var(--gold); }
