/* Čitelnější a podstatně kompaktnější hlasování. */
.legacy-poll .legacy-poll-state { font-size: 11px; line-height: 1.3; }
.legacy-poll h3 { margin: 0 0 16px !important; font-size: 20px; line-height: 1.35; }
.legacy-poll .legacy-vote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.legacy-poll .legacy-vote label { margin: 0 !important; padding: 9px 10px; font-size: 15px; line-height: 1.3; }
.legacy-poll .legacy-vote button { grid-column: 1 / -1; justify-self: start; margin: 6px 0 0 !important; padding: 7px 16px; font-size: 14px; line-height: 1.25; }
.legacy-poll .legacy-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0 !important; padding: 0 !important; }
.legacy-poll .legacy-results li { margin: 0 !important; padding: 0 !important; }
.legacy-poll .legacy-result-head strong,
.legacy-poll .legacy-result-head small { font-size: 14px; }
.legacy-poll .legacy-results li > small { margin: 3px 0 0 !important; font-size: 11px; }
.legacy-poll.is-historical { border-color: rgba(190, 156, 82, .25); }
.legacy-poll.is-historical .legacy-poll-state { color: #c1a96c; }
.legacy-poll.is-current .legacy-poll-state { color: #9db9e5; }

/* Řazení a zvýrazněný celkový počet hlasů. */
.legacy-polls-filter,
.legacy-polls-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -5px 0 13px; }
.legacy-polls-sort { margin-bottom: 20px; }
.legacy-polls-filter > span,
.legacy-polls-sort > span { min-width: 62px; margin-right: 3px; color: #9eacc3; font-size: 13px; }
.legacy-polls-filter a,
.legacy-polls-sort a { padding: 7px 11px; color: #b8c8df; font-size: 13px; line-height: 1.2; text-decoration: none; background: rgba(157,185,229,.035); border: 1px solid rgba(151,177,217,.18); border-radius: 999px; }
.legacy-polls-filter a:hover,
.legacy-polls-sort a:hover { color: #f0cf73; border-color: rgba(240,207,115,.35); }
.legacy-polls-filter a.is-active,
.legacy-polls-sort a.is-active { color: #111722; font-weight: 700; background: linear-gradient(135deg,#f6de95,#c49438); border-color: transparent; }
.legacy-poll .legacy-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding: 12px 14px; background: rgba(157,185,229,.055); border: 1px solid rgba(157,185,229,.13); border-radius: 10px; }
.legacy-poll .legacy-total span { color: #aebdd2; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legacy-poll .legacy-total strong { color: #f0cf73; font-size: 24px; line-height: 1; }

/* Widget musí zůstat použitelný i u anket s mnoha odpověďmi. */
.widget .legacy-poll,
.legacy-poll-widget { padding: 18px; }
.widget .legacy-poll h3,
.legacy-poll-widget h3 { font-size: 17px; }
.widget .legacy-poll .legacy-vote,
.legacy-poll-widget .legacy-vote { gap: 6px; }
.widget .legacy-poll .legacy-vote label,
.legacy-poll-widget .legacy-vote label { grid-template-columns: 16px minmax(0, 1fr); gap: 6px; padding: 6px 7px; font-size: 12px; line-height: 1.2; }
.widget .legacy-radio-mark,
.legacy-poll-widget .legacy-radio-mark { width: 14px; height: 14px; margin-top: 0; box-shadow: inset 0 0 0 3px var(--poll-panel); }
.widget .legacy-poll .legacy-results,
.legacy-poll-widget .legacy-results { gap: 9px 12px; }
.widget .legacy-poll .legacy-result-head strong,
.widget .legacy-poll .legacy-result-head small,
.legacy-poll-widget .legacy-result-head strong,
.legacy-poll-widget .legacy-result-head small { font-size: 12px; }
.widget .legacy-poll .legacy-bar,
.legacy-poll-widget .legacy-bar { height: 5px; margin: 4px 0 2px; }
.widget .legacy-poll .legacy-total,
.legacy-poll-widget .legacy-total { margin-top: 13px; padding: 8px 10px; }
.widget .legacy-poll .legacy-total span,
.legacy-poll-widget .legacy-total span { font-size: 9px; }
.widget .legacy-poll .legacy-total strong,
.legacy-poll-widget .legacy-total strong { font-size: 18px; }

@media (max-width: 520px) {
  .legacy-poll-page .legacy-vote,
  .legacy-poll-page .legacy-results { grid-template-columns: 1fr; }
}
