/* Page transitions + navigation feedback (see assets/js/page-transition.js) */

/* 1) Native cross-document crossfade: DISABLED (2026-10-28).
      @view-transition can delay or hide first paint / LCP in speed-test tools ("page did not paint any content").
      To bring it back, uncomment the block below.
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: s31-vt-out .16s cubic-bezier(.4,0,1,1) both; }
  ::view-transition-new(root) { animation: s31-vt-in .32s cubic-bezier(.16,1,.3,1) both; }
  @keyframes s31-vt-out { to { opacity: 0; } }
  @keyframes s31-vt-in { from { opacity: 0; } }
}
*/

/* 2) Slim loading bar along the very top */
#s31-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 2147483200;
  pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--step31-gold, #b4975a), #e3cf9c 70%, var(--step31-gold, #b4975a));
  box-shadow: 0 0 8px rgba(180, 151, 90, .55);
  transition: opacity .2s ease;
}
#s31-progress.is-on { opacity: 1; animation: s31-progress 9s cubic-bezier(.08,.7,.2,1) forwards; }
@keyframes s31-progress { 0% { transform: scaleX(0); } 12% { transform: scaleX(.38); } 45% { transform: scaleX(.7); } 100% { transform: scaleX(.93); } }

/* 3) Instant press feedback on the thing that was clicked */
.s31-nav-pending { transition: transform .18s cubic-bezier(.16,1,.3,1), opacity .18s ease !important; }
.s31-nav-pending:is(article, li, div, .product-card-index, [class*="card"]) { transform: scale(.985); opacity: .9; }
.s31-nav-pending img { filter: brightness(.96); transition: filter .2s ease; }
a.s31-nav-pending:not([class*="card"]), button.s31-nav-pending { opacity: .72; }
html.s31-navigating, html.s31-navigating * { cursor: progress !important; }

@media (prefers-reduced-motion: reduce) {
  #s31-progress.is-on { animation: none; transform: scaleX(.6); }
  .s31-nav-pending { transform: none !important; }
}
