/* Topic book pages (a book about your dog, siblings, ...). They reuse the
   homepage and gift-page system; these rules cover only the pieces that
   system lacks: the real-book page samples and the "what to tell us" card. */

/* Reuse Leo's headline perch, with space between the pet and the small label.
   mascot-motion.js keeps the still image on touch screens and reduced motion. */
.topic-pet { left: 32%; }
.topic-pet--puppy { bottom: 0.45em; }
.topic-pet-copy .hero-ry { display: inline-block; white-space: nowrap; }
.gift-experience .topic-pet-copy > .artifact-label { margin-bottom: 38px; }

.topic-example .experience-title { margin-bottom: 20px; }
.topic-example .section-copy p + p { margin-top: 14px; }
.topic-example__intro { max-width: 760px; }

.topic-strip img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(42, 35, 66, 0.16); }
.topic-aside a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.topic-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 4px; }
.topic-strip--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.topic-strip figure { margin: 0; }
.topic-strip figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 8px; text-align: center; }
.topic-strip:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; }

.topic-checklist { display: grid; gap: 14px; list-style: none; margin: 22px 0 0; padding: 0; }
.topic-checklist li { line-height: 1.6; padding-left: 30px; position: relative; }
.topic-checklist li::before { color: var(--purple); content: "✓"; font-weight: 900; left: 0; position: absolute; top: 0; }

.topic-input { background: #fffdf8; border: 1px solid rgba(42, 35, 66, 0.12); border-radius: 22px; box-shadow: var(--shadow); margin: 0; padding: 28px; }
.topic-input__label { color: var(--purple); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; margin: 0 0 6px; text-transform: uppercase; }
.topic-input__text { font-size: 1.02rem; line-height: 1.6; margin: 0 0 22px; }
.topic-input figcaption { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; line-height: 1.55; padding-top: 16px; }

.topic-share .journey-actions { margin-top: 30px; }
.topic-changes__title { font-size: 1.1rem; margin: 30px 0 0; }
.topic-changes { margin-top: 8px; }
.topic-changes > div { grid-template-columns: minmax(120px, 0.8fr) 2fr; gap: 14px; padding: 12px 0; }
.topic-aside { color: var(--muted); margin-top: 26px; }

@media (max-width: 640px) {
  .gift-experience .topic-pet-copy > .artifact-label { margin-bottom: 24px; }
  .topic-example .split { gap: 24px; }
  .topic-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 14px;
    margin-top: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
  }
  .topic-strip figure { scroll-snap-align: start; }
  .topic-strip img { border-radius: 8px; }
  .topic-input { padding: 22px; }
  .topic-book .block,
  .topic-book .paper-section,
  .topic-book .band { padding-block: 36px; }
}
