.guide-item > summary > .icon,
.faq-item > summary > .icon { flex: 0 0 auto; }

.faq-item[open] { border-color: #a7c3e9; }
.faq-item[open] > summary > .icon { color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .guide-list > .guide-item,
  .faq-list > .faq-item {
    transition: transform 530ms var(--ease) var(--row-delay, 0ms),
                opacity 380ms ease-out var(--row-delay, 0ms);
  }

  .guide-list { --row-offset: -12px; }
  .faq-list { --row-offset: 12px; }
  .guide-list > :nth-child(2), .faq-list > :nth-child(2) { --row-delay: 55ms; }
  .guide-list > :nth-child(3), .faq-list > :nth-child(3) { --row-delay: 110ms; }
  .faq-list > :nth-child(4) { --row-delay: 165ms; }
  .faq-list > :nth-child(5) { --row-delay: 220ms; }

  .scene-pending:not(.is-scene-visible) .guide-list > .guide-item:not(:focus-within),
  .scene-pending:not(.is-scene-visible) .faq-list > .faq-item:not(:focus-within) {
    opacity: .64;
    transform: translate(var(--row-offset), 15px);
  }

  .guide-list > .guide-item:focus-within,
  .faq-list > .faq-item:focus-within { transition: none; }

  .guide-art > img {
    transform-origin: 50% 100%;
    transition: transform 760ms var(--ease) 45ms, opacity 520ms ease-out;
  }

  .guide.scene-pending:not(.is-scene-visible) .guide-art > img {
    opacity: .78;
    transform: translate(-18px, 17px) rotate(-1.6deg) scale(.95);
  }

  .guide-item > summary > .icon,
  .faq-item > summary > .icon {
    transition: transform 260ms var(--ease);
  }

  @supports selector(details::details-content) and (interpolate-size: allow-keywords) {
    .guide-item,
    .faq-item { interpolate-size: allow-keywords; }

    .guide-item::details-content,
    .faq-item::details-content {
      block-size: 0;
      overflow: clip;
      opacity: .55;
      transition: block-size 290ms var(--ease), opacity 180ms ease-out,
                  content-visibility 290ms allow-discrete;
    }

    .guide-item[open]::details-content,
    .faq-item[open]::details-content { block-size: auto; opacity: 1; }

    .faq-item[open] > p { animation: none; }
  }

  @media (max-width: 650px) {
    .guide-list, .faq-list { --row-offset: 0px; }
    .guide.scene-pending:not(.is-scene-visible) .guide-art > img {
      transform: translateY(12px) scale(.98);
    }
  }

  @supports (animation-timeline: view()) {
    @media (max-width: 650px) {
      .guide .guide-art {
        animation: guide-mascot-arrival linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
      }
      .guide .guide-art > img { transition: none; }
      .guide.scene-pending:not(.is-scene-visible) .guide-art > img { opacity: 1; transform: none; }
    }
  }
}

@keyframes guide-mascot-arrival {
  from { opacity: .77; transform: translateY(25px) scale(.955); }
  to { opacity: 1; transform: none; }
}
