/* Hidden until guide-motion.js brings them in; without the script (or with reduced motion) nothing hides. */
.motion-ready .guide-header > :not(.eyebrow):not(.press-head-copy):not(.press-cover),
.motion-ready .press-head-copy > *,
.motion-ready .press-cover,
.motion-ready .guide-section > h2,
.motion-ready .guide-section > div > *,
.motion-ready .guide-shots > *,
.motion-ready .duo-pose,
.motion-ready .press-item .press-copy > *,
.motion-ready .press-art { opacity: 0; }
/* The pill and the highlight take their tab's own box, so they stay on it when the tabs wrap to a second row. */
.guide-tabs { position: relative; isolation: isolate; }
.guide-tabs > a { position: relative; z-index: 1; }
.tab-glide { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: var(--radius-pill); background: var(--color-picker-hover); opacity: 0; pointer-events: none; will-change: transform, width; }
.guide-tabs a:hover { background: transparent; }
.guide-tabs [aria-current]:hover { background: var(--color-ink); }
/* Motion owns these controls' movement; keep only colour transitions in CSS so the two don't fight. */
.motion-ready :is(.chip-link, .link.out, .review-store, .app-store-badge, .editors-pick) { transition-property: background-color, color, box-shadow, opacity; }
@media print { .motion-ready * { opacity: 1 !important; transform: none !important; } }

/* Switching section tabs is a page change: keep the top bar and the tab row where they are, slide the
   active pill to its new tab, and let only the page's own content cross over. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.guide-tabs { view-transition-name: guide-tabs; }
.tab-current-pill { position: absolute; z-index: 0; top: 0; left: 0; border-radius: var(--radius-pill); background: var(--color-ink); pointer-events: none; view-transition-name: guide-tab-current; }
.guide-tabs.has-pill [aria-current], .guide-tabs.has-pill [aria-current]:hover { background: transparent; }
.guide-header .app-store-badge { view-transition-name: guide-badge; }
::view-transition-group(guide-tab-current) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(root) { animation: .14s cubic-bezier(.4,0,1,1) both hl-page-out; }
::view-transition-new(root) { animation: .36s cubic-bezier(.2,.8,.2,1) .1s both hl-page-in; }
::view-transition-group(guide-badge) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(guide-tabs), ::view-transition-new(guide-tabs) { animation-duration: .2s; }
::view-transition-old(*), ::view-transition-new(*) { mix-blend-mode: normal; }
@keyframes hl-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes hl-page-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* A pressed chip darkens a touch instead of shrinking, so it never slips out from under the pointer. */
:is(.chip-link, .link.out, .review-store, .guide-tabs a, .app-store-badge, .editors-pick).is-pressed { filter: brightness(.92); }
