/* THE SHOWCASE LIVE FEED - "Every role runs on RCS" (feed.js; docs/claude/CONVERSATION-RUNNER.md "The Showcase live feed").
   The Listrak Converse look, not the brand's: a navy proof band that sits under any concept page. Every rule is scoped to
   .scf. Colours are tokens on .scf (they read the showcase's --sc-* navy tokens when the page has them); the band is the
   same navy in a light and a dark system theme, like the showcase's own seller strip. Every motion stands still under
   prefers-reduced-motion. */

.scf {
  --scf-band: var(--sc-navy, #0e1523);
  --scf-card: var(--sc-navy-2, #16202f);
  --scf-line: var(--sc-navy-line, #2c3340);
  --scf-text: var(--sc-navy-text, #c4cad8);
  --scf-head: var(--sc-navy-head, #f5f7ff);
  --scf-muted: #8c94a6;
  --scf-rcs: #52cdc8;
  --scf-gold: #f7ac0b;
  --scf-live: #3ddc84;
  --scf-trouble: #f59e8b;
  --scf-focus: var(--sc-focus, #2a8cff);
  --scf-radius: 14px;
  --scf-font: var(--sc-font, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
  --scf-display: var(--sc-display, "Newsreader", Georgia, serif);
  --scf-mono: var(--sc-mono, "DM Mono", ui-monospace, Consolas, monospace);
  background: var(--scf-band);
  color: var(--scf-text);
  font-family: var(--scf-font);
  line-height: 1.5;
  padding: 48px 16px 40px;
}

.scf *,
.scf *::before,
.scf *::after { box-sizing: border-box; }

.scf-head,
.scf-body,
.scf-status,
.scf-footnote {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* ── The heading ───────────────────────────────────────────────────────────────────────────── */

.scf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--scf-live);
  font-weight: 700;
}

.scf-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--scf-live);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: scf-pulse 2s ease-out infinite;
}

.scf-title {
  margin: 0;
  font-family: var(--scf-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--scf-head);
}

.scf-lede {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 1.02rem;
}

/* ── The proof line ────────────────────────────────────────────────────────────────────────── */

.scf-proof {
  margin: 28px 0 18px;
  font-size: 1.1rem;
  color: var(--scf-head);
}

.scf-proof-num {
  font-family: var(--scf-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--scf-rcs);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

/* ── The role strip ────────────────────────────────────────────────────────────────────────── */

.scf-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.scf-role {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--scf-card);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  transition: border-color 0.4s ease;
}

.scf-role-live { border-color: var(--scf-rcs); }

.scf-role-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--scf-head);
}

.scf-role-says,
.scf-role-note {
  margin: 0;
  font-size: 0.9rem;
}

.scf-role-note {
  color: var(--scf-muted);
  border-top: 1px dashed var(--scf-line);
  padding-top: 8px;
}

.scf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 4px 0 0;
}

.scf-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scf-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--scf-muted);
}

.scf-stat-num {
  margin: auto 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--scf-head);
  font-variant-numeric: tabular-nums;
}

.scf-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.scf-share-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--scf-line);
  overflow: hidden;
}

.scf-share-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--scf-rcs);
  border-radius: 999px;
  transition: width 0.8s ease;
}

.scf-share-words {
  white-space: nowrap;
  color: var(--scf-head);
}

.scf-last {
  margin: 0;
  font-size: 0.85rem;
  color: var(--scf-muted);
}

.scf-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.scf-door {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--scf-rcs);
  color: var(--scf-head);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.scf-door:hover { background: rgba(82, 205, 200, 0.14); }

.scf-door:focus-visible {
  outline: 3px solid var(--scf-focus);
  outline-offset: 2px;
}

/* ── The order board ───────────────────────────────────────────────────────────────────────── */

.scf-part-board { margin-top: 36px; }

.scf-board-title {
  margin: 0;
  font-family: var(--scf-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--scf-head);
}

.scf-board-hint {
  margin: 6px 0 16px;
  max-width: 70ch;
}

.scf-lanes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.scf-lane {
  min-height: 160px;
  background: var(--scf-card);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  padding: 10px;
}

.scf-lane-quiet { opacity: 0.75; }

.scf-lane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.scf-lane-title {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--scf-head);
}

.scf-lane-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--scf-muted);
}

.scf-lane-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scf-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--scf-band);
  border: 1px solid var(--scf-line);
  font-size: 0.85rem;
}

.scf-card-key {
  font-family: var(--scf-mono);
  color: var(--scf-head);
  font-weight: 600;
}

.scf-card-age {
  color: var(--scf-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scf-card-driver,
.scf-card-total { grid-column: 1 / -1; }

.scf-card-total { color: var(--scf-gold); }

.scf-card-moved {
  border-color: var(--scf-rcs);
  animation: scf-arrive 0.9s ease-out;
}

.scf-card-new {
  border-color: var(--scf-gold);
  animation: scf-arrive 0.9s ease-out;
}

.scf-board-empty {
  margin: 12px 0 0;
  color: var(--scf-muted);
}

/* ── The status line + the footnote ────────────────────────────────────────────────────────── */

.scf-status {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--scf-muted);
}

.scf-status-trouble { color: var(--scf-trouble); }

.scf-footnote {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--scf-muted);
}

@keyframes scf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@keyframes scf-arrive {
  0% { transform: translateY(-8px) scale(0.98); box-shadow: 0 0 0 0 rgba(82, 205, 200, 0.7); }
  60% { transform: translateY(0) scale(1); box-shadow: 0 0 0 8px rgba(82, 205, 200, 0); }
  100% { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scf-dot,
  .scf-card-moved,
  .scf-card-new { animation: none; }

  .scf-share-fill,
  .scf-role { transition: none; }
}

@media (max-width: 760px) {
  .scf { padding: 36px 16px 32px; }

  .scf-proof-num { font-size: 2rem; }

  .scf-lanes {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .scf-lane { min-height: 0; }
}
