/*
 * Accessibility baseline for เขียนบทความ.com.
 * Intentionally invisible during normal pointer use so UI-LOCK remains intact.
 */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #006688;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2147483647;
  padding: .7rem 1rem;
  border-radius: .5rem;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
}

:target {
  scroll-margin-top: 6rem;
}

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