/* VH Polls — public — Netchameleon */

:root {
    --vhp-primary:       #2c5f2e;
    --vhp-primary-hover: #4a8c4d;
    --vhp-border:        #e5e7eb;
    --vhp-bg:            #f9fafb;
    --vhp-radius:        10px;
}

.vhp-wrap { max-width: 560px; margin: 1.75rem 0; font-family: inherit; }

.vhp-poll {
    background: #fff;
    border: 1px solid var(--vhp-border);
    border-radius: var(--vhp-radius);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.vhp-poll__question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
}

.vhp-poll__options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.1rem; }

.vhp-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border: 1px solid var(--vhp-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: .95rem;
    color: #374151;
    transition: border-color .15s, background .15s;
}
.vhp-option:hover { border-color: var(--vhp-primary); background: #f4faf5; }
.vhp-option input { accent-color: var(--vhp-primary); width: 16px; height: 16px; flex-shrink: 0; }

.vhp-poll__error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    padding: .6rem .85rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.vhp-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: .65rem 1.4rem;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.vhp-btn--primary { background: var(--vhp-primary); color: #fff; }
.vhp-btn--primary:hover { background: var(--vhp-primary-hover); }
.vhp-btn[disabled] { opacity: .6; cursor: default; }

/* Locked (members-only) */
.vhp-poll--locked .vhp-poll__question { margin-bottom: .5rem; }
.vhp-locked-msg { color: #6b7280; font-size: .9rem; margin: 0; }
.vhp-locked-msg a { color: var(--vhp-primary); font-weight: 600; }

/* Results */
.vhp-results { display: flex; flex-direction: column; gap: .95rem; margin-bottom: 1rem; }
.vhp-result-row__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .3rem;
    font-size: .9rem;
}
.vhp-result-label { color: #374151; font-weight: 600; }
.vhp-result-pct { color: var(--vhp-primary); font-weight: 700; white-space: nowrap; }
.vhp-result-count { color: #9ca3af; font-weight: 400; }
.vhp-result-bar {
    background: var(--vhp-bg);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.vhp-result-fill {
    background: var(--vhp-primary);
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}
.vhp-poll__meta { margin: 0; font-size: .82rem; color: #6b7280; }
.vhp-pill {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.vhp-pill--voted  { background: #d1fae5; color: #065f46; }
.vhp-pill--closed { background: #fee2e2; color: #991b1b; }
