/* Symposium pages: the dialogue list and the replay. Uses the tokens from site.css. */

/* Dialogue list (ls-style rows) */
.ls { list-style: none; padding: 0; margin: 8px 0 0; }
.ls li { border-top: 0.5px solid var(--rule); }
.ls a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.ls a:hover .file { color: var(--accent); }
.ls .file { color: var(--accent); }
.ls .date { color: var(--faint); }

/* Facts about a run */
.meta { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; color: var(--muted); margin: 0 0 8px; }
.meta dt { display: inline; color: var(--faint); }
.meta dd { display: inline; margin: 0 12px 0 4px; white-space: nowrap; }
@media (max-width: 520px) { .meta dd { white-space: normal; } }
.badge { display: inline-block; border: 0.5px solid var(--rule); border-radius: 3px; padding: 0 6px; color: var(--faint); }

/* Replay controls */
/* Below the transcript and stuck to the bottom of the screen, so "next turn" is always under the reader's thumb. */
.controls { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
            margin: 12px 0 0; padding: 10px 0 12px; background: var(--bg); border-top: 0.5px solid var(--rule); }
.turn { scroll-margin-bottom: 72px; }
.controls.done { position: static; }
.controls button { font: inherit; color: var(--accent); background: none; border: 0.5px solid var(--rule); border-radius: 3px; padding: 4px 12px; cursor: pointer; }
.controls button:hover:not(:disabled) { border-color: var(--accent); }
.controls button:disabled { color: var(--faint); cursor: default; }
.controls .count { color: var(--faint); margin-left: auto; }

/* Turns */
.round { color: var(--faint); padding: 14px 0 2px; }
.turn { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 0.5px solid var(--rule); }
.turn[hidden] { display: none; }
.turn.new { animation: arrive 0.4s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } }
.who { letter-spacing: 0.18em; font-size: 12px; color: var(--accent); }
.who small { display: block; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.turn.moderator .who, .turn.moderator .text { color: var(--faint); }
.text p { margin: 0; overflow-wrap: anywhere; }
.text p::before { content: "> "; color: var(--faint); }
.note { color: var(--faint); }

/* Stance bar: one stop per option. Accept = filled dot; lean towards = hollow dot. */
.bar { height: 4px; background: var(--track); border-radius: 2px; position: relative; margin: 10px 5px 0; }
.stop { position: absolute; top: -1px; width: 2px; height: 6px; margin-left: -1px; background: var(--rule); }
.dot { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent); }
.dot.lean { background: var(--bg); }
/* The option labels stay at the top of the screen, so every stance bar below can be read against them. */
.axis-row { position: sticky; top: 0; z-index: 1; background: var(--bg); border-top: none; border-bottom: 0.5px solid var(--rule); padding: 4px 0 6px; }
.turn { scroll-margin-top: 40px; }
.axis { display: flex; justify-content: space-between; gap: 8px; color: var(--faint); font-size: 12px; margin: 6px 0 0; }
.axis span { flex: 1; text-align: center; }
.axis span:first-child { text-align: left; }
.axis span:last-child { text-align: right; }

/* Before / after table */
.summary { width: 100%; border-collapse: collapse; margin-top: 8px; }
.summary th, .summary td { text-align: left; padding: 8px 10px 8px 0; border-top: 0.5px solid var(--rule); vertical-align: top; }
.summary th { color: var(--faint); font-weight: 400; }
.summary .moved { color: var(--accent); }
.table-scroll { overflow-x: auto; }

/* The visitor's line (the live mode comes later) */
.you { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 0.5px solid var(--rule); color: var(--faint); }
.you .who { color: var(--faint); }
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .turn.new { animation: none; }
  .cursor { animation: none; }
}
@media (max-width: 520px) {
  .turn, .you { grid-template-columns: 1fr; gap: 4px; }
  .ls a { grid-template-columns: 1fr; gap: 0; }
}
