/* ============================================================
   a11y-fix-2.css — Round 2 accessibility fixes
   ============================================================ */

/* ─────────────────────────────────────────────
 * 1. SKIP LINK — nuclear override
 *
 * Elementor and some WordPress themes set
 * .screen-reader-text to display:none or
 * visibility:hidden, both of which remove the
 * element from the focus order entirely.
 *
 * This override uses clip-path instead so the
 * link is invisible but still keyboard-reachable.
 * ───────────────────────────────────────────── */

/* Override whatever the parent theme does */
a.skip-link,
a.skip-link.screen-reader-text {
  display: block !important;       /* must NOT be none */
  visibility: visible !important;  /* must NOT be hidden */

  /* Visually hide without removing from focus order */
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Reveal on keyboard focus */
a.skip-link:focus,
a.skip-link.screen-reader-text:focus,
a.skip-link:focus-visible,
a.skip-link.screen-reader-text:focus-visible {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  padding: 0.9rem 1.6rem !important;
  margin: 0 !important;

  background-color: #1a1a1a !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: 3px solid #f5c400 !important;
  outline: 3px solid #f5c400 !important;
  outline-offset: 0 !important;
  z-index: 999999 !important;
}
