/* BOOKTILY_PAQCARD_SCMA_REWRITE_V1 + BOOKTILY_PAQCARD_GEOMETRY_V2 — see MANIFEST_PAQCARD_SCMA_REWRITE_CORETRIA_EXTRACT_20260619.txt */
/* discover.css
   ============
   Discovery surface CHROME only: toolbars, ticker, section heads, the feed grid,
   the explore (list · preview · rail), collect/like affordances, the Drops bar,
   the Orbit greeting, the continue grid, and chips. Themed through tokens.css.

   AUTHORITY BOUNDARIES (this is why the cards stopped breaking):
     • PaQ card geometry/render  -> modules/paqcard/paqcard.css  (NOT here)
     • Hero layout/geometry      -> modules/paqhero/paqhero.css  (NOT here)
   This file must NEVER set width/height/aspect on `.paq-card`, and must never
   style `.disc-hero*`, `.disc-drophero*`, or `.disc-orbit-hero*`. The feed grid
   below positions cards at their intrinsic size; it does not resize them. */

/* ---- shared segmented control (version switch + feed/explore) ------------ */
.disc-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 18px; }
.disc-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--line); }
.disc-seg button { border: none; background: none; cursor: pointer; font: inherit;
  padding: 8px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); transition: background .2s, color .2s; }
.disc-seg button.is-active { background: var(--ink); color: var(--paper); }
.disc-hint { font-size: 13px; color: var(--muted); }

/* ---- live ticker --------------------------------------------------------- */
.disc-ticker { display: flex; align-items: center; gap: 16px; padding: 11px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.disc-ticker-tag { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.disc-ticker-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); }
.disc-ticker-track { flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.disc-ticker-row { display: flex; gap: 30px; white-space: nowrap; width: max-content; animation: disc-marquee 30s linear infinite; }
.disc-ticker-row span { font-size: 13px; color: var(--muted); }
.disc-ticker-row b { color: var(--ink); font-weight: 600; }
@keyframes disc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- section heads ------------------------------------------------------- */
.disc-head { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 14px; }
.disc-head h2 { margin: 0; font-size: 23px; }
.disc-head .sub { font-size: 13px; color: var(--muted); }

/* ---- feed grid ----------------------------------------------------------- *
 * Each track is exactly one intrinsic slim card (248px, from paqcard.css). Cards
 * sit at their own size; the grid only changes how many fit per row. No CSS
 * columns, no width override — this is the rule that ended the overlap/crush. */
.disc-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--paq-w-slim, 248px));
  justify-content: center;
  gap: 22px;
  align-items: start;
}

/* ---- explore (list · preview · rail) ------------------------------------- */
.disc-explore { display: grid; grid-template-columns: minmax(0,1fr) 360px 262px; gap: 26px; align-items: start; }
.disc-list { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); outline: none; }
.disc-row { display: grid; grid-template-columns: 54px 1fr 96px 96px; align-items: center; gap: 14px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.disc-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.disc-row.is-active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.disc-row .thumb { position: relative; width: 54px; height: 70px; border-radius: 8px; overflow: hidden; }
.disc-row .ttl { font-weight: 700; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.disc-row .date { font-size: 12px; color: var(--muted); white-space: nowrap; }

.disc-preview { position: sticky; top: 86px; align-self: start; }
.disc-preview-card { position: relative; width: 360px; height: 452px; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-2); cursor: pointer; color: #fff; }
.disc-preview-card h3 { margin: 0; font-size: 32px; line-height: .98; letter-spacing: -.02em; color: #fff; }

.disc-rail { display: flex; flex-direction: column; gap: 24px; }
.disc-railsec h4 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.disc-divider { height: 1px; background: var(--line); }
.disc-follow { display: flex; gap: 10px; align-items: center; }
.disc-follow .av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.disc-follow .nm { font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-follow .mt { font-size: 12px; color: var(--muted); }

/* ---- like / collect affordances ------------------------------------------ */
.disc-like { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit;
  padding: 6px 11px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12px; font-weight: 700; color: var(--muted); transition: transform .15s; }
.disc-like:active { transform: scale(.93); }
.disc-like.is-on { color: #e8483b; }
.disc-pill { padding: 7px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 700; cursor: pointer; font: inherit;
  border: 1.4px solid var(--line-strong); background: none; color: var(--ink); }
.disc-pill.is-on { border-color: transparent; background: var(--accent); color: var(--on-accent); }

/* ---- drops --------------------------------------------------------------- */
.disc-dropbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 20px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--accent-soft), var(--violet-soft)); margin-bottom: 22px; font-size: 13px; color: var(--ink-soft); }
.disc-dropbar b { color: var(--ink); }
.disc-dropbar .sep { width: 1px; height: 16px; background: var(--line-strong); }

/* ---- orbit greeting (feed chrome above the Orbit hero) ------------------- */
.disc-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.disc-greet .kick { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.disc-greet h1 { margin: 0; font-size: 40px; line-height: .98; letter-spacing: -.02em; color: var(--ink); }
.disc-taste { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
.disc-continue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.disc-continue { position: relative; display: flex; gap: 14px; padding: 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.disc-continue .thumb { position: relative; width: 62px; height: 82px; border-radius: 9px; overflow: hidden; flex: none; }
.disc-continue .ttl { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.04; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-progress { margin-top: 10px; height: 5px; border-radius: 100px; background: var(--line-strong); overflow: hidden; }
.disc-progress > i { display: block; height: 100%; border-radius: 100px; background: var(--accent); }

/* ---- chips (categories / tags) reuse existing .chip; add a button cursor -- */
.disc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.disc-chips .chip { cursor: pointer; }

/* ---- responsive: collapse explore (heroes handle their own breakpoints) -- */
@media (max-width: 980px) {
  .disc-explore { grid-template-columns: 1fr; }
  .disc-preview { position: static; }
  .disc-preview-card { width: 100%; max-width: 360px; }
}
