.wdf-polls-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 70px;
}

.wdf-polls-hero {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 55px;
}

.wdf-polls-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    margin-bottom: 15px;
}

.wdf-polls-hero h1 {
    font-size: clamp(38px, 5.6vw, 68px);
    line-height: 1.02;
    margin: 0 0 24px;
}

.wdf-polls-hero p {
    font-size: 18px;
    line-height: 1.75;
    max-width: 850px;
    margin: 0 auto 10px;
}

.wdf-poll-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.wdf-poll-card {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,.06);
}

.wdf-poll-card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.wdf-poll-card-body {
    padding: 26px;
}

.wdf-poll-card h2 {
    margin: 12px 0 12px;
    font-size: 27px;
    line-height: 1.15;
}

.wdf-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.wdf-active {
    background: #e7f7ec;
}

.wdf-upcoming {
    background: #fff5d8;
}

.wdf-closed {
    background: #ececec;
}

.wdf-poll-dates {
    display: grid;
    gap: 5px;
    margin: 20px 0;
    font-size: 14px;
}

.wdf-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 23px;
    border: 0;
    border-radius: 7px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
}

.wdf-button:hover {
    opacity: .88;
}

.wdf-single-poll {
    max-width: 1050px;
    margin: 0 auto;
}

.wdf-back-link {
    display: inline-block;
    margin-bottom: 22px;
    text-decoration: none;
}

.wdf-single-poll-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

.wdf-single-poll-content h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.04;
    margin: 16px 0 20px;
}

.wdf-poll-lead {
    font-size: 21px;
    line-height: 1.6;
}

.wdf-poll-description {
    font-size: 17px;
    line-height: 1.75;
    margin: 30px 0;
}

.wdf-poll-deadline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 35px;
    padding: 18px 20px;
    background: #f5f5f5;
    border-radius: 9px;
    margin: 28px 0;
}

.wdf-live-results {
    margin: 38px 0;
    padding: 30px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 14px;
}

.wdf-results-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.wdf-results-header h2 {
    margin: 0 0 4px;
}

.wdf-results-header p {
    margin: 0;
}

.wdf-total-votes {
    min-width: 120px;
    text-align: right;
}

.wdf-total-votes strong {
    display: block;
    font-size: 30px;
}

.wdf-total-votes span {
    font-size: 13px;
}

.wdf-result {
    margin: 24px 0;
}

.wdf-result-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 18px;
}

.wdf-result-top span {
    font-weight: 800;
}

.wdf-option-description {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.55;
    opacity: .8;
}

.wdf-result-track {
    height: 14px;
    background: #ededed;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.wdf-result-bar {
    height: 100%;
    min-width: 0;
    background: #222;
    transition: width .25s ease;
}

.wdf-result-votes {
    margin-top: 7px;
    font-size: 13px;
    opacity: .75;
}

.wdf-verification-box,
.wdf-vote-box,
.wdf-message {
    padding: 30px;
    margin: 35px 0;
    border-radius: 14px;
    background: #f6f6f6;
}

.wdf-verification-box h2,
.wdf-vote-box h2 {
    margin-top: 0;
}

.wdf-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wdf-field,
.wdf-field-grid > div {
    margin-bottom: 16px;
}

.wdf-field label,
.wdf-field-grid label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.wdf-field input,
.wdf-field-grid input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 8px 12px;
}

.wdf-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 22px;
    line-height: 1.5;
}

.wdf-voting-options {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

.wdf-voting-option {
    display: flex;
    gap: 13px;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
}

.wdf-voting-option input {
    margin-top: 4px;
}

.wdf-voting-option span {
    display: block;
}

.wdf-voting-option small {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.wdf-public-notice {
    max-width: 1050px;
    margin: 0 auto 25px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.wdf-public-notice.is-success {
    background: #e7f7ec;
}

.wdf-public-notice.is-error {
    background: #fde8e8;
}

.wdf-message-success {
    background: #e7f7ec;
}

.wdf-message-closed {
    background: #ececec;
}

.wdf-empty {
    padding: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .wdf-polls-shell {
        padding: 32px 16px 50px;
    }

    .wdf-field-grid {
        grid-template-columns: 1fr;
    }

    .wdf-results-header {
        flex-direction: column;
    }

    .wdf-total-votes {
        text-align: left;
    }

    .wdf-live-results {
        padding: 20px;
    }
}


/* =========================================================
   WDF POLLS
   LIGHT / DARK THEME COMPATIBILITY
   ========================================================= */

/*
 * The WDF theme may set a global light text colour in dark mode.
 * Every light panel generated by the Polls module therefore gets
 * an explicit dark foreground colour.
 */

.wdf-poll-card,
.wdf-poll-card-body,
.wdf-poll-deadline,
.wdf-verification-box,
.wdf-vote-box,
.wdf-voting-option,
.wdf-empty {
    color: #0b1930;
}

.wdf-poll-card h1,
.wdf-poll-card h2,
.wdf-poll-card h3,
.wdf-poll-card p,
.wdf-poll-card strong,
.wdf-poll-card span,
.wdf-poll-card div,

.wdf-poll-deadline,
.wdf-poll-deadline strong,
.wdf-poll-deadline span,

.wdf-verification-box,
.wdf-verification-box h2,
.wdf-verification-box p,
.wdf-verification-box label,

.wdf-vote-box,
.wdf-vote-box h2,
.wdf-vote-box p,

.wdf-voting-option,
.wdf-voting-option strong,
.wdf-voting-option small {
    color: #0b1930;
}


/* White poll cards remain fully readable in dark WDF mode */

.wdf-poll-card {
    background: #ffffff;
}

.wdf-poll-card-body {
    background: #ffffff;
}


/* Date panel */

.wdf-poll-deadline {
    background: #f2f4f7;
    border: 1px solid #d9dee7;
}


/* Registration and voting panels */

.wdf-verification-box,
.wdf-vote-box {
    background: #ffffff;
    border: 1px solid #d9dee7;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}


/* Form controls */

.wdf-verification-box input[type="text"],
.wdf-verification-box input[type="email"] {
    background: #ffffff;
    color: #0b1930;
    border: 1px solid #aeb8c7;
}

.wdf-verification-box input::placeholder {
    color: #667085;
}


/* Voting options */

.wdf-voting-option {
    background: #ffffff;
    border: 1px solid #cbd2dc;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.wdf-voting-option:hover {
    border-color: #b9974f;
    box-shadow: 0 7px 20px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.wdf-voting-option:has(input:checked) {
    border-color: #b9974f;
    box-shadow: 0 0 0 2px rgba(185,151,79,.20);
}


/* Live-results area:
 * transparent so it follows either the light or dark WDF page.
 */

.wdf-live-results {
    background: transparent;
    color: inherit;
}

.wdf-live-results h2,
.wdf-live-results p,
.wdf-live-results strong,
.wdf-live-results span,
.wdf-live-results div {
    color: inherit;
}


/* Result track must remain visible in either theme */

.wdf-result-track {
    background: rgba(160,170,185,.35);
}

.wdf-result-bar {
    background: #c7a558;
}


/* Explicit state notices */

.wdf-message {
    color: #0b1930;
    border: 1px solid rgba(0,0,0,.10);
}

.wdf-message-success {
    background: #e8f7ee;
    color: #155b36;
}

.wdf-message-closed {
    background: #eceff3;
    color: #303846;
}


/* Upcoming status */

.wdf-status.wdf-upcoming {
    background: #fff1c7;
    color: #705000;
}

.wdf-status.wdf-active {
    background: #dff5e7;
    color: #146b39;
}

.wdf-status.wdf-closed {
    background: #e5e8ed;
    color: #424b59;
}


/* Public notices */

.wdf-public-notice.is-success {
    background: #e4f5ea;
    color: #155b36;
}

.wdf-public-notice.is-error {
    background: #fde8e8;
    color: #861d1d;
}


/* Main action button */

.wdf-button {
    background: #071c38;
    color: #ffffff !important;
    border: 1px solid #c6a45a;
}

.wdf-button:hover {
    background: #102d53;
    color: #ffffff !important;
}


/* Accessibility */

.wdf-button:focus-visible,
.wdf-voting-option:focus-within,
.wdf-verification-box input:focus {
    outline: 3px solid rgba(198,164,90,.55);
    outline-offset: 2px;
}


/* Mobile */

@media (max-width: 700px) {

    .wdf-poll-card-body {
        padding: 21px;
    }

    .wdf-verification-box,
    .wdf-vote-box {
        padding: 22px;
    }
}
