/* xcelsior/search-ai-swap: the two panels swap on a 12s loop; tabs and the pause control (view.js)
   take over by adding `.manual` / `.hold`. Ported from docs/mockups/home.html (.swap-*, .serp). */
.swap-b { opacity: 0; }
/* Longhand animation properties only: the shorthand would reset animation-play-state, which the pause rules below rely on. */
.swap-a { animation-name: swapA; animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.swap-b { animation-name: swapB; animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.swap-stage .tab-a { animation-name: tabA; animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.swap-stage .tab-b { animation-name: tabB; animation-duration: 12s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes swapA { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: 0; transform: translateY(.75rem); } 100% { opacity: 1; transform: none; } }
@keyframes swapB { 0%, 42% { opacity: 0; transform: translateY(.75rem); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(.75rem); } }
@keyframes tabA { 0%, 42% { background: var(--ink); color: var(--surface-100); border-color: var(--ink); } 50%, 92% { background: transparent; color: var(--ink); border-color: var(--control-border); } 100% { background: var(--ink); color: var(--surface-100); border-color: var(--ink); } }
@keyframes tabB { 0%, 42% { background: transparent; color: var(--ink); border-color: var(--control-border); } 50%, 92% { background: var(--ink); color: var(--surface-100); border-color: var(--ink); } 100% { background: transparent; color: var(--ink); border-color: var(--control-border); } }
/* Two reasons the loop is paused: focus is inside the panel (automatic) or the visitor pressed Pause (.hold). There is no pause on hover. An
   explicit Resume overrides the focus pause for as long as the focus that was there stays (view.js adds .play-f and removes it when focus leaves). */
.swap-stage:focus-within:not(.play-f) .swap-a, .swap-stage:focus-within:not(.play-f) .swap-b, .swap-stage:focus-within:not(.play-f) .tab-a, .swap-stage:focus-within:not(.play-f) .tab-b { animation-play-state: paused; }
.swap-stage.hold .swap-a, .swap-stage.hold .swap-b, .swap-stage.hold .tab-a, .swap-stage.hold .tab-b { animation-play-state: paused; }
.swap-stage.manual .swap-a, .swap-stage.manual .swap-b, .swap-stage.manual .tab-a, .swap-stage.manual .tab-b { animation-name: none; }
.swap-stage.manual.show-a .swap-a { opacity: 1; transform: none; }
.swap-stage.manual.show-a .swap-b { opacity: 0; pointer-events: none; }
.swap-stage.manual.show-b .swap-b { opacity: 1; transform: none; }
.swap-stage.manual.show-b .swap-a { opacity: 0; pointer-events: none; }
.swap-stage.manual .tab-a, .swap-stage.manual .tab-b { background: transparent; color: var(--ink); border-color: var(--control-border); }
.swap-stage.manual.show-a .tab-a, .swap-stage.manual.show-b .tab-b { background: var(--ink); color: var(--surface-100); border-color: var(--ink); }
.serp { --s-bg: #ffffff; --s-text: #202124; --s-link: #1a0dab; --s-muted: #4d5156; --s-chip: #f1f3f4; --s-border: #dadce0; --s-hl: #d3e3fd; --s-hl-text: #041e49; --s-blue: #1a73e8; font-family: Arial, Roboto, system-ui, sans-serif; }
[data-theme="dark"] .serp { --s-bg: #202124; --s-text: #e8eaed; --s-link: #8ab4f8; --s-muted: #bdc1c6; --s-chip: #303134; --s-border: #3c4043; --s-hl: #2a4b8d; --s-hl-text: #e8eaed; --s-blue: #8ab4f8; }
.swap-stage .nw { white-space: nowrap; }
.swap-stage .swap-icon { text-transform: none; }

.swap-caption { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--ink-muted); }
