/* ============================================================
   CWebHost 2026 — Conservative Fixes Only
   Does NOT override theme layout, sizing, or color
   ============================================================ */

/* Native smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Visually hidden utility for accessible labels */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Restore keyboard focus for accessibility (WCAG 2.4.7) */
*:focus {
  outline: none;
}
*:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 3px;
}

/* Font smoothing — cosmetic only, no layout impact */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Back-to-top button — fixed position, won't affect layout */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Reduced motion — safety only */
@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;
  }
}
