/* Public results and the round-by-round count. */
.results-hero { text-align: center; padding: 1.5rem 1rem 1.25rem; margin-bottom: 1.25rem; }
.results-title { font-size: clamp(2.2rem, 9vw, 3.4rem); color: var(--text); margin: 0.4rem 0 1rem; overflow-wrap: anywhere; }
.results-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.results-stat .num { font-family: var(--display); font-weight: var(--display-weight); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.results-stat .lbl { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.standings { margin-bottom: 1.5rem; }
.standing-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; }
.standing-row.place-1 { border: 2px solid var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); }
.standing-medal { font-family: var(--display); font-weight: 900; font-size: 2.2rem; width: 2.5rem; text-align: center; color: var(--muted); line-height: 1; flex-shrink: 0; }
.standing-row.place-1 .standing-medal { color: var(--accent); }
.standing-place { width: 4.6rem; flex-shrink: 0; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.standing-row.place-1 .standing-place { color: var(--accent); }
.standing-title { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-tracking); font-size: 1.45rem; line-height: 1.05; color: var(--text); overflow-wrap: anywhere; }
.standing-row.place-1 .standing-title { font-size: 1.9rem; color: var(--accent); }
.standing-creator { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
@media (max-width: 420px) { .standing-place { display: none; } }

details.rounds > summary { list-style: none; padding: 0.4rem 0; font-size: 0.9rem; color: var(--accent2-hi); margin-bottom: 0.6rem; }
details.rounds > summary::before { content: '▸ '; }
details.rounds[open] > summary::before { content: '▾ '; }
details.rounds > summary::-webkit-details-marker { display: none; }
details.rounds[open] > summary { color: var(--text); }
.election { margin-bottom: 1.5rem; }
.election-head { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.85rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.election-head .what { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.election-head .who { font-size: 0.88rem; font-weight: 800; color: var(--accent); }
.round-card { margin-bottom: 1rem; }
.round-header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: 0.87rem; font-weight: 600; }
.round-num { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--pill); padding: 0.1rem 0.55rem; color: var(--muted); }
.round-note { font-size: 0.78rem; color: var(--muted); margin: 0.1rem 0 0.45rem; }
.bar-row { display: grid; grid-template-columns: minmax(6rem, 38%) 1fr 3.4rem 2.2rem; gap: 0.6rem; align-items: center; margin-bottom: 0.3rem; font-size: 0.82rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--surface2); border-radius: var(--pill); height: 1.1rem; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent2); min-width: 2px; }
.bar-pct { text-align: right; font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-fill.winner-bar { background: var(--accent); color: var(--on-accent); }
.bar-fill.elim-bar { background: var(--control); }
.bar-count { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.elim-tag { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; color: var(--error); margin-left: 0.35rem; }
.place-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.place-tabs a { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); border: 1px solid var(--border); border-radius: var(--pill); padding: 0.45rem 0.9rem; min-height: 36px; display: inline-flex; align-items: center; }
.place-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.folded-rounds { list-style: none; margin: 0 0 1rem; display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--muted); }
.folded-rounds .round-num { margin-right: 0.4rem; }
