/* Template: transcript — per-participant transcript page layout */

.transcript-back {
    margin-bottom: var(--bn-space-lg);
}

.transcript-back a {
    color: var(--bn-colour-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--bn-transition-fast);
}

.transcript-back a:hover {
    color: var(--bn-colour-accent);
}

.transcript-meta {
    color: var(--bn-colour-muted);
    font-size: 0.85rem;
    margin-bottom: var(--bn-space-md);
}

.transcript-body {
    margin-top: var(--bn-space-lg);
}

.transcript-segment {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin: 0.5rem 0;
    line-height: 1.7;
}

.transcript-segment .timecode {
    flex-shrink: 0;
}

.transcript-segment .segment-body {
    flex: 1;
    min-width: 0;
}

.transcript-segment .segment-speaker {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Moderator segments are visually receded so participant answers stand out */
.segment-moderator .segment-body {
    color: var(--bn-colour-muted);
}

.segment-moderator .segment-speaker {
    color: var(--bn-colour-muted);
}

/* Quoted segments — non-quoted participant text knocked back */
.transcript-segment:not(.segment-quoted):not(.segment-moderator) .segment-body {
    opacity: 0.6;
}

/* Inline citation highlight — wraps the verbatim excerpt within a segment.
   Currently invisible while we rethink the visual treatment; the <mark>
   elements and --bn-colour-cited-bg token are preserved so this can be
   re-enabled by restoring `background: var(--bn-colour-cited-bg)`. */
.bn-cited {
    background: transparent;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* Anchor highlight animation — flash yellow, fade to normal over 5s.
   Applied by transcript-names.js when navigating via #t-NNN anchor. */
@keyframes anchor-fade {
    0%   { background-color: var(--bn-colour-highlight); }
    100% { background-color: transparent; }
}

.transcript-segment.anchor-highlight {
    animation: anchor-fade 5s ease-out forwards;
    border-radius: var(--bn-radius-sm);
}
