/* Contests, cijferwidget en stemtour (module contests). Alleen kleurvariabelen gebruiken. */
:root { --ct-gold: var(--gold); }

/* Cijferblok op profielen en bij foto's */
.contest-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--inset-panel); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.cw-title { margin: 0; font-weight: 700; color: var(--head-text); display: flex; align-items: center; gap: var(--space-xs); }
.cw-title .icon { color: var(--primary); width: 18px; height: 18px; }
.cw-sum { margin: 0; }
.cw-sum .score { font-size: var(--text-base); }
.cw-mine { font-weight: 600; }
.cw-mine .score { font-size: var(--text-lg); }
.contest-widget .rate button { width: 34px; height: 34px; }
.rate-form { margin: 0; }
@media (max-width: 520px) {
  .rate-form .rate { display: grid; grid-template-columns: repeat(5, minmax(0, 46px)); gap: var(--space-xs); }
  .rate-form .rate button { width: 100%; height: 40px; border-radius: var(--radius-panel); }
}

/* Overzicht */
.ct-hero h2 { font-size: var(--text-xl); font-family: var(--font-display); }
.ct-status .icon { vertical-align: -4px; color: var(--primary); }
.ct-top li { align-items: center; }
.ct-months { margin-bottom: var(--gap); }
.ct-prize .icon { width: 16px; height: 16px; color: var(--ct-gold); vertical-align: -3px; }
.ct-result li { align-items: center; }
.ct-winners .kv { align-items: center; }
.ct-winners .kv > span:first-child { white-space: nowrap; }
.ct-winners .kv > span:last-child { display: inline-flex; align-items: center; gap: var(--space-2xs); min-width: 0; } /* .who kort zelf de naam in */
.ct-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--gap); }
.ct-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: var(--space-xs); vertical-align: middle; }
.ct-check .icon { width: 14px; height: 14px; }
.ct-check.ok { background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.ct-check.no { background: var(--surface-2); color: var(--muted); }
.ct-checklist { list-style: none; padding: 0; margin: 0 0 var(--space-xs); display: grid; gap: var(--space-xs); font-size: var(--text-sm); }

/* Ranglijsten */
.ct-rank { list-style: none; margin: 0; padding: var(--space-2xs) var(--space-sm); }
.ct-row { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-sm); align-items: center; padding: var(--space-xs) 0; border-bottom: 1px solid var(--line); }
.ct-row:last-child { border-bottom: 0; }
.ct-thumb { line-height: 0; }
.ct-thumb .avatar { width: 64px; height: 64px; }
.ct-info { display: flex; flex-direction: column; min-width: 0; }
.ct-info > :not(.ct-name) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-name { min-width: 0; } /* .who kort zelf de naam in */
.ct-score { text-align: right; white-space: nowrap; }
.ct-vote { grid-column: 3 / -1; }
.ct-row .rate button { width: 32px; height: 32px; font-size: var(--text-sm); }
@media (max-width: 520px) {
  .ct-row { grid-template-columns: 26px 48px minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-xs); }
  .ct-thumb .avatar { width: 48px; height: 48px; }
  .ct-vote { grid-column: 1 / -1; }
  .ct-row .rate-form .rate button { width: 100%; height: 34px; }
}

/* Stemtour */
.st-tile .st-left { display: block; margin-top: var(--space-xs); font-weight: 700; color: var(--primary); font-size: var(--text-sm); }
.st-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.st-photo { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); line-height: 0; }
.st-photo img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.st-photo .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.st-body { min-width: 0; }
/* Gegevens naast de foto: niet tot de kaartrand, anders lopen de lijnen onder de foto door */
.st-body > .facts { margin-inline: 0; }
.st-body > .facts > div { padding-inline: 0; }
.st-body h2 { font-size: var(--text-2xl); margin-bottom: var(--space-xs); overflow-wrap: anywhere; }
.st-caption, .st-status { font-style: italic; color: var(--muted); overflow-wrap: anywhere; margin: var(--space-xs) 0; }
.st-about { margin: var(--space-sm) 0; padding: var(--space-xs) var(--space-sm); background: var(--surface-2); border-radius: var(--radius-s); overflow-wrap: anywhere; }
.st-about h3 { margin: 0 0 var(--space-2xs); }
.st-rate { margin: var(--space-sm) 0 var(--space-xs); display: grid; gap: var(--space-xs); }
.st-rate .rate button { width: 42px; height: 42px; font-size: var(--text-base); }
.st-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.st-done { text-align: center; }
.st-done .btn-row { justify-content: center; }
.st-done-icon { margin: 0; }
.st-done-icon .icon { width: 56px; height: 56px; color: var(--ct-gold); }
.st-given li { align-items: center; }
@media (max-width: 640px) {
  .st-card { grid-template-columns: minmax(0, 1fr); }
  .st-photo { max-width: 360px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .st-rate .rate-form .rate button { width: 100%; height: 46px; }
}
