/* First-party accessibility widget — no third-party */
:root {
  --a11y-btn-size: 52px;
}

#a11y-root {
  position: fixed;
  z-index: 90;
  inset-block-end: calc(var(--sticky-h, 72px) + 0.75rem);
  inset-inline-start: 0.75rem; /* RTL: visual bottom-left; LTR: bottom-left too via logical? */
}
/* Keep widget away from sticky phone CTA (center/full width bottom): pin to inline-start.
   In RTL inline-start = right; user asked bottom-left in RTL so use physical left. */
html[dir="rtl"] #a11y-root {
  left: 0.75rem;
  right: auto;
  inset-inline-start: auto;
}
html[dir="ltr"] #a11y-root {
  left: 0.75rem;
  right: auto;
}

.a11y-toggle {
  width: var(--a11y-btn-size);
  height: var(--a11y-btn-size);
  border-radius: 50%;
  border: 2px solid var(--yellow, #f5c400);
  background: #161820;
  color: var(--yellow, #f5c400);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.a11y-toggle:focus-visible {
  outline: 3px solid var(--yellow, #f5c400);
  outline-offset: 3px;
}

.a11y-panel {
  display: none;
  position: absolute;
  inset-block-end: calc(100% + 10px);
  inset-inline-start: 0;
  width: min(280px, calc(100vw - 1.5rem));
  background: #12141c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
html[dir="rtl"] .a11y-panel {
  left: 0;
  right: auto;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.a11y-actions {
  display: grid;
  gap: 0.4rem;
}
.a11y-actions button,
.a11y-link {
  display: block;
  width: 100%;
  text-align: start;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #f7f3e8;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
}
.a11y-actions button:hover,
.a11y-link:hover {
  border-color: var(--yellow, #f5c400);
  color: var(--yellow, #f5c400);
}
.a11y-actions button[aria-pressed="true"] {
  background: rgba(245,196,0,.18);
  border-color: var(--yellow, #f5c400);
  color: var(--yellow, #f5c400);
}

/* Applied prefs on html */
html.a11y-lg { font-size: 112.5%; }
html.a11y-xl { font-size: 125%; }
html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 0.15em; }
html.a11y-contrast {
  filter: contrast(1.15);
}
html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast .btn-yellow,
html.a11y-contrast a.btn-yellow {
  background: #ffe566 !important;
  color: #000 !important;
}
html.a11y-gray { filter: grayscale(1); }
html.a11y-readable body,
html.a11y-readable button,
html.a11y-readable input,
html.a11y-readable textarea,
html.a11y-readable select {
  font-family: Arial, Helvetica, "Noto Sans", sans-serif !important;
  letter-spacing: 0.02em;
  word-spacing: 0.04em;
  line-height: 1.8 !important;
}
html.a11y-stop-anim *,
html.a11y-stop-anim *::before,
html.a11y-stop-anim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.breadcrumbs {
  padding: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #9b968a);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.35rem;
  opacity: 0.6;
}
.breadcrumbs a { text-decoration: none; color: var(--fog, #c9c4b6); }
.breadcrumbs a:hover { color: var(--yellow, #f5c400); }

.legal-sections h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}
.legal-sections h2:first-child { margin-top: 0.5rem; }
.local-seo {
  padding: 1.5rem 0 2rem;
}
.local-seo .seo-block {
  background: var(--glass, rgba(255,255,255,.055));
  border: 1px solid var(--line, rgba(255,255,255,.1));
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}

/* Cookie consent — above sticky CTA, below a11y widget stacking */
.cookie-banner {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: calc(var(--sticky-h, 72px) + 0.65rem);
  z-index: 85;
  max-width: 520px;
  margin-inline: auto;
  left: 0.75rem;
  right: 0.75rem;
  width: auto;
  background: #14161f;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  color: #f7f3e8;
}
@media (min-width: 760px) {
  .cookie-banner { bottom: 1rem; max-width: 560px; }
  html[dir="rtl"] .cookie-banner { margin-inline-end: auto; margin-inline-start: 1rem; inset-inline-start: 1rem; inset-inline-end: auto; left: auto; right: auto; }
  html[dir="ltr"] .cookie-banner { margin-inline-start: 1rem; inset-inline-start: 1rem; inset-inline-end: auto; }
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.92rem; line-height: 1.55; color: #c9c4b6; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.cookie-actions .btn { margin: 0; }
.cookie-actions .cookie-more {
  background: transparent;
  border: 0;
  color: var(--yellow, #f5c400);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}
