/* ============================================================
   Transcript block — the reason the site exists.
   Full text is in the DOM on first paint (SEO / LLM citation
   surface). No lazy-load, no JS injection. Any collapse is a
   CSS-only affordance layered over already-present markup.
   ============================================================ */

.transcript { border: var(--border-w) solid var(--border-default); background: var(--bg-surface); }

.transcript__bar {
  position: sticky; top: 52px; z-index: 5;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px; background: var(--bg-surface);
  border-bottom: var(--border-w) solid var(--border-default);
}
.transcript__search {
  flex: 1; min-width: 180px; display: flex; align-items: center;
  border: var(--border-w) solid var(--border-default); background: var(--bg-base); padding: 0 10px;
}
.transcript__search span { color: var(--text-muted); }
.transcript__search input {
  flex: 1; border: none; background: transparent; padding: 9px 8px;
  font-family: var(--font-sans); font-size: 13px; outline: none; color: var(--text-primary);
}
.transcript__chip {
  font-family: var(--font-mono); font-weight: 600; font-size: 11px; padding: 8px 10px; cursor: pointer;
  border: var(--border-w) solid var(--border-default); background: var(--bg-base); color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .04em;
}
.transcript__chip[aria-pressed="true"] { background: var(--bg-ink-alt); color: var(--text-inverse); border-color: var(--bg-ink-alt); }

.transcript__body { padding: 20px 26px 26px; }

.turn { padding: 2px 0 18px 16px; border-left: var(--border-w-strong) solid var(--border-default); margin-bottom: 6px; }
.turn--host  { border-left-color: #5A6138; }   /* olive */
.turn--guest { border-left-color: #5C4327; }    /* brown */
.turn__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.turn__time {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--t-timestamp-size);
  color: var(--text-muted); font-variant-numeric: tabular-nums; text-decoration: none;
}
.turn__time:hover { color: var(--accent); text-decoration: underline; }
.turn__name {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: .03em; color: var(--text-secondary);
}
.turn__text { margin: 0; font-size: var(--t-body-lg-size); line-height: var(--t-body-lg-lh); max-width: var(--measure); }
.turn__text + .turn__text { margin-top: var(--space-md); }

/* search highlight */
.turn mark { background: var(--bg-tint); color: var(--text-primary); padding: 0 1px; }

/* speaker filter: dim non-matching turns (JS toggles data-filter on root) */
.transcript[data-filter] .turn { opacity: 1; }
.transcript[data-filter="host"] .turn:not(.turn--host),
.transcript[data-filter="guest"] .turn:not(.turn--guest) { display: none; }
.transcript[data-speaker] .turn:not([data-speaker-active]) { display: none; }

/* search: hide turns with no match (JS sets .is-hidden) */
.turn.is-hidden { display: none; }

/* ------------------------------------------------------------
   CSS-only "show full transcript" collapse.
   Full text is ALWAYS in the DOM. This just caps the visible
   height until the checkbox is toggled — no content is removed,
   nothing is script-injected. Crawlers and readers see it all.
   ------------------------------------------------------------ */
.transcript__toggle { position: absolute; opacity: 0; pointer-events: none; }
.transcript__clip { position: relative; }
.transcript__toggle:not(:checked) ~ .transcript__body .transcript__clip {
  max-height: 900px; overflow: clip;
}
.transcript__toggle:not(:checked) ~ .transcript__body .transcript__clip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-surface));
  pointer-events: none;
}
.transcript__more {
  display: block; text-align: center; padding: 14px; cursor: pointer;
  font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); border-top: var(--border-w) solid var(--border-subtle);
  background: var(--bg-surface);
}
.transcript__more:hover { color: var(--accent-hover); }
.transcript__more .more-less { display: none; }
.transcript__toggle:checked ~ .transcript__body .transcript__more .more-more { display: none; }
.transcript__toggle:checked ~ .transcript__body .transcript__more .more-less { display: inline; }
.transcript__note { font-size: var(--t-caption-size); color: var(--text-muted); font-style: italic; margin: 6px 0 0; padding: 0 26px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
