/* AI brand mentions story card (hero of /ai-brand-mentions/, partial partials/stories/cite.html). Nov 13 2026.
   Two slides take turns in one 12 s loop, transform and opacity only:
     0–44 %   the listicle: rows 2, 3 and 4 slide in (3–11.5 %), your brand lands at #1 (10–15.5 %), its ring glows, its
              stars fill one by one (15.5–21 %), the "Top pick" badge pops (21–24.5 %); crossfade out 44–48 %;
     46–93 %  the AI answer: the question is sent (49–52.5 %), the assistant thinks (53–61 %), the answer appears in two
              phrases (61–68.5 %), the two sources pop (69–74 %, the listicle one ringed), the review verdict chip lands
              on the card edge (75–79 %); crossfade out 93–97 %, the listicle frame comes back 96–100 %.
   The base rules below ARE the finished state of the story (the AI answer with its sources and the verdict chip), so
   reduced motion shows that, still. Sizes in em: 11px on the desktop hero (card 262px, zoomed), 14px in the
   phone/tablet copy (.rs-zenith__mcard). */
@layer components {
  .rs-story--cite { --pur: #7C3AED; --pur-d: #5B21B6; --ink: #101828; --mut: #667085; --amb: #F5A524;
    display: block; height: auto; padding: .45em; overflow: visible; line-height: 1.25; color: var(--ink); }
  .rs-zenith__mcard .rs-story--cite { font-size: 14px; }
  .rs-story--cite .rs-ci-ico { flex: none; width: 1em; height: 1em; }
  .rs-story--cite .rs-ci-stage { position: relative; display: block; height: 15em; overflow: hidden; border-radius: .8em; background: #fff;
    box-shadow: 0 0 0 1px rgb(15 23 42 / .07), 0 .7em 1.4em -.8em rgb(36 12 80 / .4); }
  .rs-story--cite .rs-ci-slide { position: absolute; inset: 0; display: flex; flex-direction: column; }
  .rs-story--cite .rs-ci-slide--list { opacity: 0; }

  /* slide 1: a browser window on the publisher's "best X" article */
  .rs-story--cite .rs-ci-bar { flex: none; display: flex; align-items: center; gap: .32em; height: 1.85em; padding: 0 .65em; background: #F2F4F7; border-bottom: 1px solid #E4E7EC; }
  .rs-story--cite .rs-ci-bar > i { flex: none; width: .5em; height: .5em; border-radius: 50%; background: #D0D5DD; }
  .rs-story--cite .rs-ci-url { display: flex; align-items: center; gap: .35em; min-width: 0; margin-left: .45em; flex: 1; height: 1.25em; padding: 0 .6em; border-radius: 99px; background: #fff;
    box-shadow: inset 0 0 0 1px #E4E7EC; color: #475467; font-size: .64em; white-space: nowrap; overflow: hidden; }
  .rs-story--cite .rs-ci-url .rs-ci-ico { width: .95em; height: .95em; color: #98A2B3; }
  .rs-story--cite .rs-ci-page { position: relative; flex: 1; display: flex; flex-direction: column; gap: .32em; min-height: 0; padding: .6em .7em 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 99%); mask-image: linear-gradient(180deg, #000 84%, transparent 99%); }
  .rs-story--cite .rs-ci-page > * { flex: none; }
  .rs-story--cite .rs-ci-pub { display: flex; align-items: center; gap: .4em; font-size: .64em; color: var(--mut); white-space: nowrap; }
  .rs-story--cite .rs-ci-pub b { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: .4em; background: #1D2939; color: #fff; font-size: .9em; font-weight: 800; }
  .rs-story--cite .rs-ci-pub strong { color: var(--ink); font-weight: 700; }
  .rs-story--cite .rs-ci-h { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: .1em; font-size: .98em; font-weight: 750; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
  .rs-story--cite .rs-ci-list { display: grid; gap: .32em; }
  .rs-story--cite .rs-ci-row { position: relative; display: grid; grid-template-columns: 1.35em 1.9em minmax(0, 1fr) auto; align-items: center; gap: .45em; padding: .38em .5em; border-radius: .6em; box-shadow: inset 0 0 0 1px #EAECF0; }
  .rs-story--cite .rs-ci-n { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #F2F4F7; color: var(--mut); font-size: .7em; font-weight: 800; }
  .rs-story--cite .rs-ci-logo { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; background: #EAECF0; color: #fff; }
  .rs-story--cite .rs-ci-logo svg { width: 58%; height: 58%; }
  .rs-story--cite .rs-ci-who { display: grid; gap: .22em; min-width: 0; }
  .rs-story--cite .rs-ci-name { display: flex; align-items: center; gap: .45em; min-width: 0; }
  .rs-story--cite .rs-ci-name strong { font-size: .8em; font-weight: 750; white-space: nowrap; }
  .rs-story--cite .rs-ci-stars { display: inline-flex; align-items: center; gap: .02em; color: var(--amb); font-size: .66em; letter-spacing: -.02em; white-space: nowrap; }
  .rs-story--cite .rs-ci-stars i { display: inline-block; font-style: normal; }
  .rs-story--cite .rs-ci-stars s { color: #D0D5DD; text-decoration: none; }
  .rs-story--cite .rs-ci-stars em { margin-left: .35em; color: #475467; font-style: normal; font-weight: 700; }
  .rs-story--cite .rs-ci-who small { color: var(--mut); font-size: .62em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rs-story--cite .rs-ci-sk { display: block; width: 46%; height: .5em; border-radius: 99px; background: #E4E7EC; }
  .rs-story--cite .rs-ci-sk--s { width: 68%; height: .4em; background: #F2F4F7; }
  /* your row: Rankstar purple, the only colour on the page besides the stars */
  .rs-story--cite .rs-ci-row--you { padding: .45em .5em; background: linear-gradient(100deg, rgb(124 58 237 / .11), rgb(124 58 237 / .035) 70%); box-shadow: inset 0 0 0 1px rgb(124 58 237 / .38); }
  .rs-story--cite .rs-ci-row--you::after { content: ""; position: absolute; inset: -.18em; border-radius: .72em; box-shadow: 0 0 0 .16em rgb(124 58 237 / .32); opacity: 0; pointer-events: none; }
  .rs-story--cite .rs-ci-row--you .rs-ci-n { background: var(--pur); color: #fff; }
  .rs-story--cite .rs-ci-row--you .rs-ci-logo { background: linear-gradient(140deg, #A78BFA, #7C3AED 55%, #5B21B6); box-shadow: 0 .25em .6em -.2em rgb(91 33 182 / .55); }
  .rs-story--cite .rs-ci-row--you strong { color: var(--pur-d); }
  .rs-story--cite .rs-ci-pick { display: inline-flex; align-items: center; gap: .3em; padding: .32em .55em; border-radius: 99px; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff;
    font-size: .6em; font-weight: 750; white-space: nowrap; box-shadow: 0 .3em .7em -.3em rgb(91 33 182 / .7); }
  .rs-story--cite .rs-ci-pick svg { width: 1em; height: 1em; }

  /* slide 2: a neutral AI assistant (no vendor logo) */
  .rs-story--cite .rs-ci-app { flex: none; display: flex; align-items: center; gap: .25em; height: 1.85em; padding: 0 .8em; border-bottom: 1px solid #F2F4F7; color: #344054; }
  .rs-story--cite .rs-ci-app b { font-size: .74em; font-weight: 700; }
  .rs-story--cite .rs-ci-app svg { width: .85em; height: .85em; color: #98A2B3; }
  .rs-story--cite .rs-ci-chat { flex: 1; display: grid; align-content: start; gap: .6em; padding: .65em .8em 0; }
  .rs-story--cite .rs-ci-ask { justify-self: end; max-width: 86%; padding: .45em .75em; border-radius: 1em 1em .25em 1em; background: #F2F4F7; color: var(--ink); font-size: .8em; }
  .rs-story--cite .rs-ci-reply { display: flex; align-items: flex-start; gap: .5em; }
  .rs-story--cite .rs-ci-bot { flex: none; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #1D2939; color: #fff; }
  .rs-story--cite .rs-ci-bot svg { width: 62%; height: 62%; }
  .rs-story--cite .rs-ci-said { position: relative; flex: 1; display: grid; gap: .5em; min-width: 0; }
  .rs-story--cite .rs-ci-txt { display: block; font-size: .83em; line-height: 1.4; color: #1D2939; }
  .rs-story--cite .rs-ci-txt span { display: inline; }
  .rs-story--cite .rs-ci-txt strong { padding: 0 .12em; border-radius: .25em; background: rgb(124 58 237 / .12); color: var(--pur-d); font-weight: 750; white-space: nowrap; }
  .rs-story--cite .rs-ci-dots { position: absolute; left: 0; top: .35em; display: flex; gap: .25em; opacity: 0; }
  .rs-story--cite .rs-ci-dots i { width: .42em; height: .42em; border-radius: 50%; background: #98A2B3; }
  .rs-story--cite .rs-ci-srcs { display: flex; flex-wrap: wrap; gap: .35em; }
  .rs-story--cite .rs-ci-src { position: relative; display: inline-flex; align-items: center; gap: .35em; padding: .28em .55em .28em .3em; border-radius: 99px; background: #F2F4F7;
    box-shadow: inset 0 0 0 1px #E4E7EC; color: #344054; font-size: .64em; font-weight: 600; white-space: nowrap; }
  .rs-story--cite .rs-ci-src b { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: #475467; color: #fff; font-size: .82em; font-weight: 800; }
  .rs-story--cite .rs-ci-src--list b { background: #1D2939; }
  .rs-story--cite .rs-ci-src--list { background: rgb(124 58 237 / .08); box-shadow: inset 0 0 0 1px rgb(124 58 237 / .35); color: var(--pur-d); }
  .rs-story--cite .rs-ci-src--list::after { content: ""; position: absolute; inset: -.25em; border-radius: inherit; box-shadow: 0 0 0 .18em rgb(124 58 237 / .4); opacity: 0; pointer-events: none; }
  .rs-story--cite .rs-ci-comp { position: absolute; left: .7em; right: .7em; bottom: .6em; display: flex; align-items: center; justify-content: space-between; height: 2em; padding: 0 .3em 0 .85em;
    border-radius: 99px; box-shadow: inset 0 0 0 1px #E4E7EC, 0 .3em .8em -.5em rgb(15 23 42 / .25); background: #fff; }
  .rs-story--cite .rs-ci-comp i { color: #98A2B3; font-size: .7em; font-style: normal; }
  .rs-story--cite .rs-ci-comp b { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: #1D2939; color: #fff; }
  .rs-story--cite .rs-ci-comp b svg { width: 62%; height: 62%; }

  /* the verdict chip: a glass pill on the card's right edge */
  .rs-story--cite .rs-ci-chip { position: absolute; z-index: 9; right: -.55em; top: .72em; display: inline-flex; align-items: center; gap: .4em; padding: .42em .7em .42em .45em; border-radius: 99px;
    background: linear-gradient(160deg, rgb(255 255 255 / .97), rgb(244 241 255 / .92)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(124 58 237 / .2), 0 .6em 1.2em -.5em rgb(36 12 80 / .5); color: #1D2939; font-size: .68em; font-weight: 700; white-space: nowrap; }
  .rs-story--cite .rs-ci-chip .rs-ci-ico { width: 1.4em; height: 1.4em; padding: .24em; border-radius: 50%; background: var(--amb); color: #fff; }

  @media (prefers-reduced-motion: no-preference) {
    .rs-story--cite .rs-ci-slide--list { animation: rs-ci-a 12s cubic-bezier(.4, 0, .2, 1) infinite; }
    .rs-story--cite .rs-ci-slide--ai { animation: rs-ci-b 12s cubic-bezier(.4, 0, .2, 1) infinite; }
    .rs-story--cite .rs-ci-row--2 { animation: rs-ci-r2 12s cubic-bezier(.2, .8, .2, 1) infinite; }
    .rs-story--cite .rs-ci-row--3 { animation: rs-ci-r3 12s cubic-bezier(.2, .8, .2, 1) infinite; }
    .rs-story--cite .rs-ci-row--4 { animation: rs-ci-r4 12s cubic-bezier(.2, .8, .2, 1) infinite; }
    .rs-story--cite .rs-ci-row--you { animation: rs-ci-you 12s linear infinite; }
    .rs-story--cite .rs-ci-row--you::after { animation: rs-ci-glow 12s ease-out infinite; }
    .rs-story--cite .rs-ci-row--you .rs-ci-stars i { animation: rs-ci-star 12s cubic-bezier(.3, 1.6, .5, 1) calc(var(--s) * .13s) infinite backwards; }
    .rs-story--cite .rs-ci-pick { animation: rs-ci-pick 12s linear infinite; }
    .rs-story--cite .rs-ci-ask { animation: rs-ci-ask 12s cubic-bezier(.2, .8, .2, 1) infinite; }
    .rs-story--cite .rs-ci-dots { animation: rs-ci-dots 12s linear infinite; }
    .rs-story--cite .rs-ci-dots i { animation: rs-ci-bounce .9s ease-in-out infinite; }
    .rs-story--cite .rs-ci-dots i:nth-child(2) { animation-delay: .15s; } .rs-story--cite .rs-ci-dots i:nth-child(3) { animation-delay: .3s; }
    .rs-story--cite .rs-ci-t1 { animation: rs-ci-t1 12s ease-out infinite; }
    .rs-story--cite .rs-ci-t2 { animation: rs-ci-t2 12s ease-out infinite; }
    .rs-story--cite .rs-ci-src { animation: rs-ci-src 12s cubic-bezier(.3, 1.5, .5, 1) calc(var(--s) * .24s) infinite backwards; }
    .rs-story--cite .rs-ci-src--list::after { animation: rs-ci-ring 12s ease-out infinite; }
    .rs-story--cite .rs-ci-chip { animation: rs-ci-chip 12s cubic-bezier(.2, .9, .3, 1.2) infinite; }
  }

  @keyframes rs-ci-a { 0%, 44% { opacity: 1; transform: translateY(0); } 48%, 96% { opacity: 0; transform: translateY(-.5em); } 96.1% { opacity: 0; transform: translateY(.5em); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes rs-ci-b { 0%, 46% { opacity: 0; transform: translateY(.5em); } 50%, 93% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; transform: translateY(-.5em); } }
  @keyframes rs-ci-r2 { 0%, 3% { opacity: 0; transform: translateY(.8em); } 7.5%, 48% { opacity: 1; transform: translateY(0); } 48.5%, 100% { opacity: 0; transform: translateY(.8em); } }
  @keyframes rs-ci-r3 { 0%, 5% { opacity: 0; transform: translateY(.8em); } 9.5%, 48% { opacity: 1; transform: translateY(0); } 48.5%, 100% { opacity: 0; transform: translateY(.8em); } }
  @keyframes rs-ci-r4 { 0%, 7% { opacity: 0; transform: translateY(.8em); } 11.5%, 48% { opacity: 1; transform: translateY(0); } 48.5%, 100% { opacity: 0; transform: translateY(.8em); } }
  @keyframes rs-ci-you { 0%, 10% { opacity: 0; transform: translateY(-.8em) scale(.96); animation-timing-function: cubic-bezier(.2, .9, .3, 1.18); }
    15.5%, 48% { opacity: 1; transform: translateY(0) scale(1); } 48.5%, 100% { opacity: 0; transform: translateY(-.8em) scale(.96); } }
  @keyframes rs-ci-glow { 0%, 15% { opacity: 0; transform: scale(.98); } 17% { opacity: 1; transform: scale(1); } 25%, 100% { opacity: 0; transform: scale(1.03, 1.14); } }
  @keyframes rs-ci-star { 0%, 15.5% { opacity: 0; transform: scale(.3); } 17.5%, 48% { opacity: 1; transform: scale(1); } 48.5%, 100% { opacity: 0; transform: scale(.3); } }
  @keyframes rs-ci-pick { 0%, 21% { opacity: 0; transform: scale(.6) rotate(-8deg); animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); } 24.5%, 48% { opacity: 1; transform: scale(1) rotate(0deg); }
    48.5%, 100% { opacity: 0; transform: scale(.6) rotate(-8deg); } }
  @keyframes rs-ci-ask { 0%, 49% { opacity: 0; transform: translateX(.9em); } 52.5%, 97% { opacity: 1; transform: translateX(0); } 98%, 100% { opacity: 0; transform: translateX(.9em); } }
  @keyframes rs-ci-dots { 0%, 53% { opacity: 0; } 54%, 60% { opacity: 1; } 61.5%, 100% { opacity: 0; } }
  @keyframes rs-ci-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-.28em); opacity: 1; } }
  /* the answer phrases stay inline (so the text wraps naturally): opacity only */
  @keyframes rs-ci-t1 { 0%, 61% { opacity: 0; } 64%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
  @keyframes rs-ci-t2 { 0%, 64.5% { opacity: 0; } 68%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
  @keyframes rs-ci-src { 0%, 69% { opacity: 0; transform: scale(.75); } 72%, 97% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(.75); } }
  @keyframes rs-ci-ring { 0%, 72.5% { opacity: 0; transform: scale(.96); } 74.5% { opacity: 1; transform: scale(1); } 81%, 100% { opacity: 0; transform: scale(1.08, 1.3); } }
  @keyframes rs-ci-chip { 0%, 75% { opacity: 0; transform: translateY(.5em) scale(.82); } 79%, 91% { opacity: 1; transform: translateY(0) scale(1); } 94.5%, 100% { opacity: 0; transform: translateY(-.25em) scale(.97); } }
  /* hero off screen (.rs-zenith.is-still, set by js/gsug.js): every loop pauses, pseudo-elements too (the * in
     site-saucer.css's rule does not reach them) */
  .rs-zenith.is-still .rs-story--cite *, .rs-zenith.is-still .rs-story--cite *::before, .rs-zenith.is-still .rs-story--cite *::after { animation-play-state: paused !important; }
}
