/* The Stores page (/crosslist) and each store's guide (/crosslist/<store>): the home page's purple
   hero and sparkles, then readable cards on the cream ground. Built by scripts/build-site.ts. */
.g-main { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); margin: 4px 0 16px; }
.g-crumbs a { color: var(--violet); font-weight: 600; text-decoration: none; }
.g-crumbs a:hover { text-decoration: underline; }
.g-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Hero */
.g-hero { border-radius: 36px; background: var(--gradient); color: #fff; position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.g-hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: relative; }
.g-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.g-hero .lead { max-width: 38rem; }
.g-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-facts li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 600; }
.g-facts svg { color: var(--gold); flex: none; }
.g-hero-art { flex: 0 1 300px; min-height: 240px; display: flex; align-items: center; justify-content: center; position: relative; }
.g-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; box-shadow: 0 12px 24px rgba(23,18,31,.22); animation: float 5s ease-in-out infinite; }
.g-chip svg { color: #2F8A5B; }
.g-chip.c1 { left: 0; top: 14%; transform: rotate(-4deg); }
.g-chip.c2 { right: 0; bottom: 12%; animation-delay: 1.4s; }

/* Store tiles: MagicListr's own drawings in its own pastels, never a store's logo or colors. */
.g-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.g-tile-sm { width: 36px; height: 36px; border-radius: 11px; }
.g-tile-md { width: 56px; height: 56px; border-radius: 17px; }
.g-tile-lg { width: 168px; height: 168px; border-radius: 46px; box-shadow: 0 24px 48px rgba(23,18,31,.28), inset 0 -6px 0 rgba(0,0,0,.05); transform: rotate(-5deg); animation: float 6s ease-in-out infinite; }
.g-lilac { background: #ECE7FA; color: #4B3A9E; }
.g-gold { background: #FFF1BF; color: #7A5A00; }
.g-peach { background: #FFE4D2; color: #9A4718; }
.g-mint { background: #DAF2E5; color: #1D6646; }
.g-sky { background: #DCE9FA; color: #22529A; }
.g-rose { background: #FBDFE9; color: #9C345C; }

/* Sections */
.g-section { margin-top: clamp(56px, 7vw, 88px); }
.g-section > .kicker { margin-bottom: 10px; }
.g-section > h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; max-width: 52rem; }
.g-sub { color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: 12px; max-width: 42rem; }

/* How MagicListr posts there */
.g-how { margin-top: 24px; display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px clamp(20px, 3vw, 32px); }
.g-how-mark { width: 46px; height: 46px; border-radius: 23px; background: var(--gradient); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 8px 18px rgba(75,58,158,.3); }
.g-how h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 26px); margin-bottom: 6px; }
.g-how p { font-size: 17px; line-height: 1.65; }

/* What the store asks for */
.g-asks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.g-asks li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.g-num { width: 36px; height: 36px; border-radius: 18px; background: #ECE7FA; color: var(--deep); font-family: var(--display); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.g-asks h3 { font-size: 18px; margin-bottom: 4px; }
.g-asks p { font-size: 16px; line-height: 1.6; }

/* When it sells */
.g-sold { margin-top: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; border-radius: 32px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(circle at 12% 30%, rgba(255,248,232,.95) 0, rgba(255,248,232,0) 40%), linear-gradient(135deg, #FFEBD2 0%, #FFD9BF 45%, #FCC6BC 100%); }
.g-sold > div { flex: 1 1 380px; min-width: 0; }
.g-sold h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 8px 0 10px; }
.g-sold p:last-child { font-size: 17px; line-height: 1.65; max-width: 44rem; }
.g-sold .kicker { color: #9A4718; }
.g-stamp { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); color: var(--deep); border: 4px solid currentColor; border-radius: 18px; padding: 8px 22px; transform: rotate(-9deg); background: rgba(255,255,255,.55); letter-spacing: .04em; }

/* Questions */
.g-faq { margin-top: 24px; display: grid; gap: 12px; max-width: 52rem; }
.g-faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.g-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 18px; border-radius: 20px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 16px; background: #ECE7FA; color: var(--deep); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; transition: transform .2s ease; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { padding: 0 22px 20px; font-size: 17px; line-height: 1.65; }
.g-updated { font-size: 14px; color: var(--muted); margin-top: 24px; max-width: 52rem; }

/* Closing call to action */
.g-final { margin-top: clamp(56px, 7vw, 88px); border-radius: 36px; background: var(--gradient); color: #fff; text-align: center; padding: clamp(44px, 6vw, 72px) 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; overflow: hidden; }
.g-final h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; position: relative; }
.g-final p { font-size: 18px; line-height: 1.6; color: #F1EBFF; max-width: 40rem; position: relative; }
.g-final .cta-row { justify-content: center; position: relative; }

/* Other stores */
.g-more { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.g-more a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .15s ease, transform .15s ease; }
.g-more a:hover { border-color: var(--lilac); color: var(--deep); transform: translateY(-2px); }
.g-more .g-tile-sm { border-radius: 18px; }

/* Stores page: the listing card in the hero, each store ticking itself off */
.g-listing { flex: 0 1 340px; min-width: 0; background: #fff; color: var(--ink); border-radius: 28px; padding: 20px; box-shadow: 0 28px 56px rgba(23,18,31,.28); transform: rotate(2deg); position: relative; }
.g-listing-top { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; }
.g-listing-top img { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; background: #F4EFFF; padding: 6px; }
.g-listing-top strong { display: block; font-size: 17px; }
.g-listing-top span { font-size: 14px; color: var(--muted); }
.g-listing ul { list-style: none; margin: 0; padding: 0; }
.g-listing li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.g-listing i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #1D6646; background: #DAF2E5; border-radius: 999px; padding: 3px 10px; animation: listed .5s cubic-bezier(.3,1.5,.6,1) both; animation-delay: calc(.6s + var(--i) * .28s); }
@keyframes listed { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* Stores page: a card per store. The footer link is the card's one link and covers the whole card,
   so the card is clickable and screen readers hear a single "Read the eBay guide". */
.g-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.g-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease; }
.g-card:hover { border-color: var(--lilac); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(75,58,158,.14); }
.g-card h3 { font-family: var(--display); font-size: 26px; line-height: 1.15; margin-top: 4px; }
.g-card > p { color: var(--muted); line-height: 1.55; }
.g-card-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g-card-facts li { font-size: 13px; font-weight: 600; color: var(--deep); background: #F5F1FD; border-radius: 999px; padding: 5px 11px; }
.g-card-link { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--violet); font-weight: 700; text-decoration: none; }
.g-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 26px; }
.g-card-link svg { transition: transform .15s ease; }
.g-card:hover .g-card-link { color: var(--deep); }
.g-card:hover .g-card-link svg { transform: translateX(4px); }
.g-card-link:focus-visible { outline: none; }
.g-card-link:focus-visible::after { outline: 3px solid var(--violet); outline-offset: 3px; }

/* Stores page: how it works */
.g-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.g-steps li { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.g-steps h3 { font-family: var(--display); font-size: 22px; }
.g-steps p { color: var(--muted); line-height: 1.6; }

@media (min-width: 640px) { .g-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .g-asks, .g-steps { grid-template-columns: 1fr 1fr; } .g-steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .g-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .g-main { padding: 0 12px 56px; }
  .g-crumbs { padding: 0 4px; }
  .g-hero { border-radius: 28px; padding: 32px 20px 28px; }
  .g-hero > .tw:not(.d2) { display: none; } /* the headline fills the width here; keep sparkles off the words */
  .g-hero-art { flex-basis: 100%; min-height: 200px; }
  .g-tile-lg { width: 136px; height: 136px; border-radius: 38px; }
  .g-tile-lg svg { width: 52px; height: 52px; }
  .g-listing { flex-basis: 100%; transform: none; }
  .g-how { flex-direction: column; }
  .g-final, .g-sold { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-chip, .g-tile-lg, .g-listing i { animation: none; }
  .g-card, .g-card:hover, .g-more a:hover { transform: none; }
}
