/* Spacing scale (4px base): used for the home page rhythm */
:root{--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;--sp-8:64px;--sp-9:96px}
/* Devine Tree LLC: home page v2 (Oct 12, 2026). Loaded after canopy.css on index.html only.
   One main action: "Sell us your collection". See DESIGN.md. */
.hero.home{padding:72px 24px 60px}
.hero.home h1{max-width:14ch}
.hero.home p{max-width:46ch}
.hero .quiet{color:#E6ECF4;font-weight:600;align-self:center;padding:11px 4px}
@media (hover:hover) and (pointer:fine){.hero .quiet:hover{color:#FFFFFF}}

/* What we buy: text beside a drawn binder page (decoration only, no photo claims) */
.split{display:grid;gap:28px;align-items:center;margin-bottom:36px}
@media(min-width:820px){.split{grid-template-columns:1.1fr .9fr;gap:48px}}
.games-label{margin:18px 0 8px;font-weight:600}
.games{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;font-size:var(--fs-card)}
.games li{padding-left:26px;position:relative}
.games li::before{content:"";position:absolute;left:0;top:.3em;width:16px;height:16px;border-radius:50%;background:var(--amber)}
.games li::after{content:"";position:absolute;left:5px;top:calc(.3em + 4px);width:5px;height:8px;border:solid #FFFFFF;border-width:0 2px 2px 0;transform:rotate(45deg)}
.binder{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px;border-radius:20px;background:var(--spruce);
  box-shadow:0 24px 48px -28px rgba(10,37,64,.6);max-width:340px;width:100%;justify-self:center;transform:rotate(-2deg);position:relative}
/* Blue flames behind the binder (owner, Oct 17), drawn by canopy.js; spills past the binder so they rise */
.binder .flames{position:absolute;left:-60px;top:-90px;width:calc(100% + 120px);height:calc(100% + 120px);z-index:-1;pointer-events:none;filter:blur(2px) saturate(1.2)}
@media (prefers-reduced-motion:reduce){.binder .flames{display:none}}
.pocket{aspect-ratio:63/88;border-radius:8px;padding:4px;
  background:linear-gradient(135deg,var(--glow-a),var(--glow-b) 35%,var(--glow-c) 65%,var(--glow-d))}
.pocket span{display:flex;align-items:flex-end;height:100%;border-radius:5px;padding:8px;
  background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,0) 40%),#0E2A47;
  color:#F6F9FC;font:700 .8125rem/1.15 'Bricolage Grotesque',sans-serif}
@media(max-width:480px){.pocket span{font-size:.75rem;padding:6px}}
/* Pockets with a real card photo (owner's photos, Oct 14): the photo fills the sleeve and the
   game name sits on a dark fade at the bottom so it stays readable on any art */
.pocket.has-img span{position:relative;overflow:hidden;isolation:isolate}
.pocket.has-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.pocket.has-img span::before{content:"";position:absolute;inset:45% 0 0;z-index:-1;background:linear-gradient(180deg,rgba(10,37,64,0),rgba(10,37,64,.88))}
.pocket.has-img b{font-weight:inherit;text-shadow:0 1px 4px rgba(10,37,64,.6)}

/* Steps: one numbered path joined by a line (a real sequence, so numbers carry meaning) */
.steps{list-style:none;margin:var(--sp-6) 0 0;padding:0;display:grid;gap:var(--sp-6);position:relative;counter-reset:none}
.steps li{position:relative;padding-left:56px;display:grid;gap:var(--sp-2);align-content:start}
.steps .num{position:absolute;left:0;top:0;width:40px;height:40px;margin:0;font-size:16px;box-shadow:0 0 0 6px var(--bg)}
.steps h3{padding-top:8px}
.steps p{margin:0;color:var(--muted);max-width:38ch}
.steps .note{font-size:var(--fs-ui);font-weight:600;color:var(--ink)}
.steps::before{content:"";position:absolute;left:19px;top:20px;bottom:20px;width:2px;background:linear-gradient(var(--amber),color-mix(in srgb,var(--amber) 15%,transparent))}
@media(min-width:820px){
  .steps{grid-template-columns:repeat(3,1fr);gap:var(--sp-5)}
  .steps li{padding-left:0;padding-top:60px}
  .steps h3{padding-top:0}
  .steps::before{left:20px;right:calc(33.33% - 20px);top:19px;bottom:auto;width:auto;height:2px;background:linear-gradient(90deg,var(--amber),color-mix(in srgb,var(--amber) 25%,transparent))}
}
main>section:nth-of-type(even) .steps .num{box-shadow:0 0 0 6px var(--tint)}

/* Two-up services */
.cards.two .card{padding:24px}
.facts{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;color:var(--muted)}
.facts li{padding-left:22px;position:relative}
.facts li::before{content:"";position:absolute;left:2px;top:.55em;width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,var(--glow-a),var(--glow-b))}

/* FAQ: heading and the link to all questions beside the answers on wide screens */
.faq-short{display:grid;gap:var(--sp-4)}
.faq-head .lead{margin-bottom:var(--sp-2)}
.faq-list details:first-child{margin-top:0}
.faq-short details{max-width:none}
@media(min-width:900px){.faq-short{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:var(--sp-8);align-items:start}}

/* Phone bar: hidden while the hero's own button is on screen */
.bar{transition:transform 200ms var(--ease-out),opacity 200ms ease}
.bar.away{transform:translateY(110%);opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.bar{transition:opacity 150ms ease}.bar.away{transform:none}}
main>.hero{margin:8px 0 0}
.faq-short summary{padding:6px 0}

/* Rhythm: generous space between sections, tight inside them. The seller path (buy, steps,
   questions, closing band) comes first; "More from" and news sit after the band, quieter. */
main>section{padding-top:var(--sp-8)}
main>section>h2,main .section-head h2,.faq-head h2,.split h2{margin-bottom:var(--sp-3)}
.split{align-items:start;margin-bottom:var(--sp-5)}
.split>div:first-child{padding-top:var(--sp-5)}
main>.band{margin-top:var(--sp-8)}
main>section.after{padding-top:var(--sp-7)}
main>.band+section.after{padding-top:var(--sp-8)}
.after>h2,.news-sec h2{font-size:clamp(1.5rem,4.5vw,1.875rem)}
@media(max-width:640px){main>section{padding-top:var(--sp-7)}}
.split h2,.faq-head h2{font-size:clamp(1.75rem,5.5vw,2.5rem)}
.split{margin-bottom:var(--sp-7)}
@media(max-width:640px){.binder{max-width:260px}}
.hero.home h1{max-width:none}.hero.home h1 .ln{display:block}
@media(min-width:760px) and (max-width:899px){.news-list{grid-template-columns:repeat(2,1fr)}.news-list>:nth-child(3){display:none}}

/* "Fresh on our eBay" side panel (Oct 15, 2026). Hidden until /api/listings returns items.
   1480px and wider: open in the empty space left of the page, and can be folded to a tab.
   Narrower: a tab on the left edge that slides the panel out over the page. */
.ebay-rail[hidden]{display:none}
.ebay-rail{--rail-w:min(300px,calc(100vw - 72px));position:fixed;left:0;top:96px;z-index:30;display:flex;align-items:flex-start}
.ebay-panel{width:var(--rail-w);max-height:calc(100dvh - 120px);display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);border-left:0;border-radius:0 18px 18px 0;
  box-shadow:0 24px 48px -24px rgba(10,37,64,.45);padding:16px 14px 14px;
  position:absolute;left:0;top:0;transform:translateX(-100%);visibility:hidden}
.ebay-rail.open .ebay-panel{transform:none;visibility:visible}
.ebay-rail.ready .ebay-panel{transition:transform 260ms var(--ease-out),visibility 0s linear 260ms}
.ebay-rail.ready.open .ebay-panel{transition:transform 260ms var(--ease-out),visibility 0s}
.ebay-tab{writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;gap:10px;
  padding:16px 10px;border:0;border-radius:12px 0 0 12px;cursor:pointer;
  background:var(--spruce);color:#FFFFFF;font:700 .9375rem/1 'Bricolage Grotesque',sans-serif;letter-spacing:.01em;
  box-shadow:0 10px 24px -12px rgba(10,37,64,.6);transition:transform 160ms var(--ease-out)}
.ebay-tab:active{transform:rotate(180deg) scale(.97)}
.ebay-rail.open .ebay-tab{visibility:hidden}
.ebay-tab .dot{width:8px;height:8px;border-radius:50%;background:var(--glow-c);box-shadow:0 0 0 4px rgba(127,209,174,.25)}
.ebay-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 10px}
.ebay-head h2{font-size:1.125rem;font-weight:780;margin:0;display:flex;align-items:center;gap:8px}
.ebay-head h2::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--glow-c);box-shadow:0 0 0 4px rgba(127,209,174,.25)}
.ebay-close{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.ebay-close svg{width:16px;height:16px}
/* Newest / Cheapest / Priciest switch (Oct 20, 2026) */
.ebay-sorts{display:flex;gap:4px;margin:0 2px 10px;padding:3px;border:1px solid var(--line);border-radius:999px}
.ebay-sorts button{flex:1;min-height:32px;padding:4px 6px;border:0;border-radius:999px;background:transparent;color:var(--muted);
  font:600 var(--fs-fine)/1 'Figtree',sans-serif;cursor:pointer;transition:background-color 160ms ease,color 160ms ease}
.ebay-sorts button[aria-selected="true"]{background:var(--ink);color:var(--surface)}
@media (hover:hover) and (pointer:fine){.ebay-sorts button[aria-selected="false"]:hover{color:var(--ink)}}
.ebay-list[aria-busy="true"]{opacity:.55;transition:opacity 160ms ease}
.ebay-empty{padding:12px 4px;font-size:var(--fs-meta);color:var(--muted)}
.ebay-list{list-style:none;margin:0;padding:0 2px;display:grid;gap:8px;overflow-y:auto;overscroll-behavior:contain}
.ebay-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:8px;border-radius:12px;
  text-decoration:none;color:var(--ink);border:1px solid var(--line);transition:transform 200ms var(--ease-out),border-color 200ms ease}
@media (hover:hover) and (pointer:fine){.ebay-item:hover{border-color:var(--moss);transform:translateX(2px)}.ebay-close:hover{border-color:var(--moss)}}
.ebay-item:active{transform:scale(.98)}
.ebay-pic{width:64px;aspect-ratio:63/88;border-radius:6px;overflow:hidden;
  background:linear-gradient(135deg,var(--glow-a),var(--glow-b) 35%,var(--glow-c) 65%,var(--glow-d))}
.ebay-pic img{width:100%;height:100%;object-fit:cover;display:block;background:#FFFFFF}
.ebay-text{display:grid;gap:4px}
.ebay-title{font-size:var(--fs-meta);line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ebay-meta{display:flex;align-items:center;gap:8px;font-size:var(--fs-ui)}
.ebay-tag{font-size:var(--fs-fine);font-weight:600;padding:2px 8px;border-radius:999px;background:var(--tint);color:var(--accent-text)}
.ebay-all{margin:12px 2px 0;font-weight:600;font-size:var(--fs-ui);color:var(--accent-text)}
/* Wide screens: the panel fills the space beside the 1048px page and rests flat against it */
@media(min-width:1480px){
  .ebay-rail{--rail-w:clamp(240px,calc((100vw - 1048px) / 2 - 48px),300px)}
  .ebay-panel{left:24px;border-left:1px solid var(--line);border-radius:18px;box-shadow:0 18px 40px -28px rgba(10,37,64,.35);transform:translateX(calc(-100% - 24px))}
}
@media (prefers-reduced-motion:reduce){
  .ebay-rail.ready .ebay-panel,.ebay-rail.ready.open .ebay-panel{transition:none}
}

