/* ============================================================
   POLLS — popup modal content (shared with overlay-manager.css's
   .modal-body/.modal-buttons) + the dedicated Polls page cards.
   ============================================================ */

/* Small "this is a poll" tag above the question in the popup modal's title —
   keeps the actual question as the dominant heading below it. */
.poll-modal-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.poll-description {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    /* Admin authors this in a <textarea>, which preserves line breaks as typed —
       without this, the browser collapses them into one run-on paragraph here. */
    white-space: pre-line;
}

.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm, 8px);
    background: var(--surface-2);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.poll-option-row:hover {
    border-color: var(--primary);
}

.poll-option-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.poll-option-row span {
    color: var(--ink);
    font-size: 0.95rem;
}

/* ── Dedicated Polls page ── */

#polls-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.poll-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg, 12px);
    box-shadow: var(--shadow);
    padding: 16px 20px;
}

.poll-card-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.poll-submit-btn {
    margin-top: 12px;
}

.poll-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Results view (already answered) ── */

.poll-result-row {
    margin-bottom: 10px;
}

.poll-result-row-picked .poll-result-label span:first-child {
    font-weight: 600;
}

.poll-result-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.poll-your-pick {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 6px;
}

.poll-result-pct {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.poll-result-bar-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--surface-2);
    overflow: hidden;
}

.poll-result-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.poll-result-total {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 8px 0 0 0;
}
