/* Debates at the College (debates.js), shared by the Voices and the College: For and Against
   as two columns of scrolls, the tally as a balance beam, and the phase as a track. After
   site.css, before the page's own stylesheet. Figures and times are set in the reading face
   with lining figures, as longhands: Georgia's old-style 0 reads as an o, and a font
   shorthand would reset the setting. */

.debates-note { max-width: 46rem; font-size: 0.98rem; font-style: italic; }
.debates-body { display: grid; gap: 1.6rem; max-width: 900px; margin: 1.2rem auto 0; }
.debates-body > .quiet { margin: 0.4rem 0; font-family: var(--read); font-style: italic; text-align: center; color: var(--faint); }
.debate {
  min-width: 0; padding: 1.5rem 1.45rem 1rem;
  border-top: 6px solid var(--tone, var(--bronze));
  font-size: 1.02rem; line-height: 1.45; font-variant-numeric: lining-nums;
}
.debate p { margin: 0.3rem 0; }
.debate .quiet { font-style: italic; color: var(--ink-muted); }
.debate-status-line { font-size: 1.06rem; }
.debate-status.live strong { color: #8b2420; }
.debate-uncontested { font-size: 0.95rem; font-style: italic; color: var(--wine); }
.debate-motion .label, .debate-agreed .label { font-weight: 700; color: #2a1f14; }
.debate-motion q, .debate-agreed q { quotes: "\201C" "\201D"; font-style: italic; }
.debate-finding { font-size: 0.95rem; color: #3e2f1f; }
.debate-votes, .debate-agreed { font-size: 0.95rem; }
.debate-agreed .quiet { font-size: 0.88rem; }

/* Where it stands, and how the vote fell: the track and the balance, side by side. */
.debate-reckoning { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.8rem; margin: 0.8rem 0 0.4rem; }
.debate-reckoning figure.draw { flex: 0 1 280px; min-width: 0; margin: 0 auto; }
.debate-reckoning .as-list { text-align: left; }

/* The phase as a track: opening, arguments, vote, verdict. A station held is filled, the one
   now is gold, one to come is hollow, one not held is dashed, and the verdict is a seal. */
.debate-track { flex: 1 1 19rem; display: flex; margin: 0; padding: 0; list-style: none; }
.station {
  position: relative; flex: 1 1 0; min-width: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center;
}
.station + .station::before {
  content: ""; position: absolute; top: calc(0.55rem - 1.5px); right: 50%; width: 100%; height: 3px;
  background: #d6c39b;
}
.station.done + .station:is(.done, .now)::before { background: var(--edge-dark); }
.station-mark {
  position: relative; z-index: 1; box-sizing: border-box; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--parchment); border: 2px solid #8a7457;
}
.station.done .station-mark { background: var(--edge-dark); border-color: var(--bronze); }
.station.now .station-mark { background: var(--gold); border-color: #7a5c10; box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.35); }
.station.missed .station-mark { border-style: dashed; background: transparent; }
.station.verdict.done .station-mark {
  width: 1.5rem; height: 1.5rem; margin-top: -0.2rem; margin-bottom: -0.2rem;
  background: radial-gradient(circle at 35% 30%, #c0463e, var(--crimson) 60%, #4a0d10);
  border: 2px solid #4a0d10; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.station-name { font-family: var(--plain); font-weight: 700; font-size: 0.95rem; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.station-state { font-size: 0.84rem; font-style: italic; line-height: 1.2; color: var(--ink-muted); overflow-wrap: anywhere; }
.station.now .station-state { font-style: normal; font-weight: 700; color: #8b2420; }
.station.verdict.done .station-state { font-style: normal; font-weight: 700; color: var(--crimson); }

/* The tally as a balance beam (debates.js: debateBalance), in the stylesheet's colours. */
.draw svg.draw-balance { max-width: 280px; margin: 0 auto; }
.balance-foot { fill: #7a5c10; }
.balance-post { stroke: #7a5c10; stroke-width: 3; }
.balance-fulcrum { fill: var(--gold); stroke: #7a5c10; stroke-width: 1; }
.balance-beam { stroke: #9a7a1a; stroke-width: 4; stroke-linecap: round; }
.balance-pin { fill: var(--pale-gold); stroke: #7a5c10; stroke-width: 1; }
.balance-string { fill: none; stroke: #8a7457; stroke-width: 1; }
.balance-pan { fill: var(--tone, var(--ink-muted)); stroke: #3d2d1d; stroke-width: 1; }
.draw .balance-figure { fill: var(--paper-bright); font-size: 13px; font-weight: 700; }
.draw .balance-words { fill: var(--ink-muted); font-size: 12px; font-style: italic; }

/* For and Against, as two columns of scrolls. */
.debate-arguments { margin-top: 0.5rem; }
.debate-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.6rem; margin-top: 0.4rem; }
@media (max-width: 640px) {
  .debate-sides { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .debate { padding: 1.4rem 1rem 0.9rem; }
}
.debate-side { min-width: 0; padding-top: 0.3rem; border-top: 3px solid #2f6b3a; }
.debate-side.against { border-top-color: #8b2420; }
.debate-side h4 { margin: 0.15rem 0 0.2rem; font: 700 0.98rem/1.3 var(--plain); color: #2a1f14; }
.debate-speakers { font-size: 0.92rem; color: #3e2f1f; }
.debate-statements { margin: 0.4rem 0 0; padding: 0 0.45rem; list-style: none; }
/* A side with more than two statements shows two and scrolls for the rest, in a window of its
   own, For and Against each their own (the administrator's request of 2026-10-08). debates.js
   sizes it to its first two statements as drawn; the height here is for a browser that
   measures nothing. It scrolls by wheel, finger or keyboard (it takes focus), and reaching its
   end does not carry the page on with it. Positioned, so debates.js can measure a statement's
   place inside it; its gutter is kept whether or not the bar shows, so a statement wraps the
   same before and after it is measured. */
.debate-statements.over {
  position: relative; max-height: min(34rem, 70vh); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-top: 1px solid rgba(122, 92, 16, 0.55); border-bottom: 1px solid rgba(122, 92, 16, 0.55);
  scrollbar-width: thin; scrollbar-color: var(--edge-dark) rgba(122, 92, 16, 0.14);
}
.debate-statements.over:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.debate-statements.over::-webkit-scrollbar { width: 10px; }
.debate-statements.over::-webkit-scrollbar-track { background: rgba(122, 92, 16, 0.14); border-radius: 5px; }
.debate-statements.over::-webkit-scrollbar-thumb { background: var(--edge-dark); border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }
.debate-statements > li.scroll {
  position: relative; margin: 1.15rem 0; padding: 0.8rem 0.95rem 0.75rem; overflow-wrap: anywhere;
  font-family: var(--plain);
  background: linear-gradient(90deg, #e8d7ae 0, #f9f1de 9%, var(--paper-bright) 50%, #f9f1de 91%, #e8d7ae 100%);
  border-left: 1px solid rgba(122, 92, 16, 0.35); border-right: 1px solid rgba(122, 92, 16, 0.35);
  box-shadow: 0 2px 6px rgba(60, 40, 10, 0.18);
}
.debate-statements > li.scroll::before, .debate-statements > li.scroll::after {
  content: ""; position: absolute; left: -0.45rem; right: -0.45rem; height: 0.6rem; border-radius: 0.3rem;
  background: linear-gradient(180deg, var(--pale-gold), var(--edge) 55%, #6b4f12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.debate-statements > li.scroll::before { top: -0.35rem; }
.debate-statements > li.scroll::after { bottom: -0.35rem; }
.scroll-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; margin: 0; }
.debate-statements .who { font-weight: 700; }
.debate-statements .when { font-family: var(--read); font-size: 0.86rem; font-style: italic; color: var(--ink-faint); font-variant-numeric: lining-nums tabular-nums; }
.debate-statements q { display: block; margin-top: 0.25rem; quotes: "\201C" "\201D"; white-space: pre-line; }
.debate-statements .cites { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--ink-faint); }

/* The toggle that opens a settled debate's two sides. */
.debate-arguments > summary {
  padding: 0.55rem 0; font-family: var(--read); font-weight: 700; font-size: 1rem; color: var(--wine);
}
.debate-arguments > summary:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 2px; }

/* Older debates, a press away where a page shows only the newest (the College: two). */
.debates-more { margin: 1.3rem 0 0; text-align: center; }
.debates-more[hidden] { display: none; }
.debates-more-button {
  min-height: 40px; padding: 0.4rem 1.2rem;
  font-family: var(--read); font-size: 0.98rem; font-variant-numeric: lining-nums tabular-nums;
  color: var(--pale-gold); background: rgba(22, 11, 18, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.55); border-radius: 999px; cursor: pointer;
}
.debates-more-button:hover, .debates-more-button:focus-visible { color: #fff3c4; border-color: var(--pale-gold); outline: 2px solid var(--gold); outline-offset: 2px; }
