/* Vipelex accessibility kit — shared across blog, spin, payment power */

/* Skip link: first focusable element on the page */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: #D4AF37;
  color: #0A0A0A;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid #D4AF37 !important;
  outline-offset: 2px;
}

/* Respect the OS-level reduced motion setting */
@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;
  }
}

/* Toggle classes applied to <html> by a11y.js */
html.a11y-large-text body { zoom: 1.25; }
html.a11y-high-contrast body { filter: contrast(1.3); }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-readable-font body,
html.a11y-readable-font body * { font-family: Verdana, Arial, sans-serif !important; letter-spacing: 0.02em; }
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Widget button */
.a11y-btn {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 10000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #D4AF37;
  background: #0A0A0A;
  color: #D4AF37;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.a11y-btn:hover { background: #1a1a1a; }

/* Widget panel */
.a11y-panel {
  position: fixed;
  bottom: 76px;
  left: 18px;
  z-index: 10000;
  width: 250px;
  max-width: calc(100vw - 36px);
  background: #0A0A0A;
  color: #f2f2f2;
  border: 1px solid #D4AF37;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  font-size: 15px;
  font-family: Verdana, Arial, sans-serif;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #D4AF37;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.a11y-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  color: #f2f2f2;
}
.a11y-panel input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #D4AF37;
  flex: none;
}
.a11y-panel .a11y-reset {
  margin-top: 10px;
  width: 100%;
  background: none;
  border: 1px solid #C0C0C0;
  color: #C0C0C0;
  border-radius: 6px;
  padding: 7px;
  cursor: pointer;
  font-size: 14px;
}
.a11y-panel .a11y-reset:hover { border-color: #D4AF37; color: #D4AF37; }
