/* =========================================================
   Page Transition Loading Bar (YouTube-style)
   Track (#tsp-loader-track) is the full-width gray strip.
   Bar  (#tsp-loader)        is the colored fill that scales.
   Both created by assets/js/page-loader.js
   ========================================================= */

#tsp-loader-track {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  background: #d1d5db;               /* solid light gray, visible on any header bg */
  transition: opacity 0.35s ease 0.15s;
  will-change: opacity;
}

#tsp-loader {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    #4ade80 0%,
    #22c55e 55%,
    #d98324 100%
  );
  transition: transform 0.2s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  #tsp-loader-track {
    transition: opacity 0.2s linear;
  }
}
