/* ── LT Polls — Lesotho Tribune ─────────────────────────────── */

:root {
    --lt-red:    #b5121a;
    --lt-black:  #0d0d0b;
    --lt-cream:  #faf8f3;
    --lt-border: #d8d3c8;
    --lt-muted:  #6b6659;
}

.lt-poll {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--lt-cream);
    border: 1px solid var(--lt-border);
    border-top: 3px solid var(--lt-red);
    padding: 24px 28px 20px;
    margin: 32px 0;
    position: relative;
}

/* ── Header ──────────────────────────────────────────────────── */
.lt-poll__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lt-poll__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--lt-red);
}

.lt-poll__status {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 2px;
}
.lt-poll__status--open    { background: #e6f4ea; color: #1a6b2e; }
.lt-poll__status--closed  { background: #fce8e8; color: var(--lt-red); }
.lt-poll__status--pending { background: #fff8e1; color: #7a6200; }

/* ── Question ────────────────────────────────────────────────── */
.lt-poll__question {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--lt-black);
    margin: 0 0 20px;
}

/* ── Options (voting) ────────────────────────────────────────── */
.lt-poll__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.lt-poll__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--lt-border);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
}
.lt-poll__option:hover {
    border-color: var(--lt-red);
    background: #fff9f9;
}
.lt-poll__option input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.lt-poll__option-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--lt-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
    position: relative;
}
.lt-poll__option input[type=radio]:checked ~ .lt-poll__option-custom {
    border-color: var(--lt-red);
    background: var(--lt-red);
}
.lt-poll__option input[type=radio]:checked ~ .lt-poll__option-custom::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lt-poll__option-text {
    font-size: 15px;
    color: var(--lt-black);
    line-height: 1.4;
}

/* Highlight selected row */
.lt-poll__option:has(input[type=radio]:checked) {
    border-color: var(--lt-red);
    background: #fff5f5;
}

/* ── Vote button ─────────────────────────────────────────────── */
.lt-poll__btn {
    background: var(--lt-red);
    color: #fff;
    border: none;
    padding: 11px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.lt-poll__btn:hover  { background: #8e0d14; }
.lt-poll__btn:active { background: #6e0a10; }

/* ── Inline message ──────────────────────────────────────────── */
.lt-poll__msg {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
}
.lt-poll__msg.success { color: #1a6b2e; }
.lt-poll__msg.error   { color: var(--lt-red); }

/* ── Results ─────────────────────────────────────────────────── */
.lt-poll__results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lt-poll__result-row { }

.lt-poll__result-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.lt-poll__result-text {
    font-size: 15px;
    color: var(--lt-black);
}
.lt-poll__result-pct {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--lt-red);
    min-width: 44px;
    text-align: right;
}

.lt-poll__bar-track {
    height: 8px;
    background: #e4dfd5;
    border-radius: 1px;
    overflow: hidden;
}
.lt-poll__bar-fill {
    height: 100%;
    background: var(--lt-red);
    border-radius: 1px;
    width: 0%;
    transition: width .8s cubic-bezier(.4,0,.2,1);
}

.lt-poll__total {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--lt-muted);
    margin: 4px 0 0;
    text-transform: uppercase;
}

.lt-poll__closed-note {
    font-size: 13px;
    color: var(--lt-muted);
    font-style: italic;
    margin: 2px 0 0;
}

/* ── Pending ─────────────────────────────────────────────────── */
.lt-poll__pending-note {
    font-size: 14px;
    color: var(--lt-muted);
    font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────────── */
.lt-poll__footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--lt-border);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lt-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lt-poll { padding: 18px 16px 16px; }
    .lt-poll__question { font-size: 17px; }
}
