/* ============================================================================
   MODERN TASTEMAKER — SEE-INSIDE PREVIEWS (conversion-fix lane, 2026-10-18)
   ----------------------------------------------------------------------------
   The honest demo-equivalent for the three non-audio products (Tech House
   Handbook, Money Map Budget Tracker, FINISH-IT Template): real pages, tabs
   and documents rendered from the shipped product files — never mockups.

   This file styles ONLY the .preview component: the card box (a sibling of
   the audio .playlist box, same slot in the card, same shell) and the
   "See inside" section that assets/preview.js adds to the detail sheet.
   Everything else keeps site.css / rev7.css / demo-list.css untouched.

   Tokens per DESIGN-LANGUAGE.md (the single token source) — the shell copies
   .playlist verbatim: surface rgba(255,255,255,.03), border
   var(--hairline-warm), radius var(--radius-md); the head copies .pl-head
   (Oswald-class micro-label, +letter-spacing, var(--accent-bright) text,
   var(--muted-light) total). Gold appears only in the focus hairline.
   No new palette is introduced.
   ============================================================================ */

/* ---------- shared shell (mirrors .playlist) ---------- */
.preview{
  margin:2px 0 0;
  background:rgba(255,255,255,.03);
  border:var(--hairline-warm);
  border-radius:var(--radius-md);
  padding:8px;
}
.pv-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;box-sizing:border-box;
  padding:4px 8px 6px;min-height:44px;
  background:none;border:0;cursor:pointer;text-align:left;
  font-family:inherit;
  font-size:.7rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent-bright);
}
.pv-head .pv-total{color:var(--muted-light);letter-spacing:.08em;white-space:nowrap}
.pv-head:focus-visible{outline:1px solid rgba(201,164,92,.5);outline-offset:2px;border-radius:6px}

/* ---------- card rail: real page thumbnails, one tap to full size ------ */
.pv-rail{
  display:flex;gap:10px;
  overflow-x:auto;overscroll-behavior-x:contain;
  padding:4px 2px 6px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;scrollbar-color:rgba(233,220,192,.18) transparent;
}
.pv-rail::-webkit-scrollbar{height:6px}
.pv-rail::-webkit-scrollbar-thumb{background:rgba(233,220,192,.15);border-radius:3px}
.pv-rail figure{flex:none;margin:0;scroll-snap-align:start;width:104px}
.pv-rail a{display:block;border-radius:6px}
.pv-rail a:focus-visible{outline:1px solid rgba(201,164,92,.5);outline-offset:2px}
.pv-rail img{
  width:104px;height:auto;display:block;
  border-radius:6px;border:var(--hairline);
  background:#fff;
}
.pv-rail figcaption{
  margin-top:6px;
  font-size:.62rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted-light);line-height:1.45;
}

/* ---------- sheet section (injected by preview.js) ---------- */
.pv-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:14px;margin-top:12px;
}
.pv-grid figure{margin:0}
.pv-grid a{display:block;border-radius:var(--radius-sm)}
.pv-grid a:focus-visible{outline:1px solid rgba(201,164,92,.5);outline-offset:2px}
.pv-grid img{
  width:100%;height:auto;display:block;
  border-radius:var(--radius-sm);border:var(--hairline);
  background:#fff;
}
.pv-grid figcaption{
  margin-top:7px;
  font-size:.62rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted-light);line-height:1.45;
}

/* ---------- small screens ---------- */
@media (max-width:480px){
  .pv-head{letter-spacing:.16em}
  .pv-rail figure{width:92px}
  .pv-rail img{width:92px}
  .pv-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}
}
