﻿/* =========================================================
   GEDIAN SPORTS - PUBLIC VOTE NOW
   Arabic RTL / weighted / auditable public ballot
   ========================================================= */

.vote-now-page {
    --green: #5B8C3B;
    --green-dark: #416d29;
    --green-deep: #2f5520;
    --green-soft: #edf5e9;
    --navy: #071a33;
    --navy-2: #102b4d;
    --text: #33444e;
    --muted: #7e8b91;
    --line: #dfe7dc;
    --bg: #f5f8f4;
    --white: #ffffff;
    --danger: #b54b4b;
    --warning: #a67b1f;
    --blue: #406f9c;
    --purple: #75558e;
    --shadow: 0 12px 34px rgba(7,26,51,.065);
    min-height: 100vh;
    background: radial-gradient(circle at 0 0, rgba(91,140,59,.07), transparent 28rem), var(--bg);
    color: var(--text);
    font-family: "Tajawal", sans-serif;
}

.vote-shell {
    width: min(1540px, calc(100% - 18px));
    margin: 0 auto;
    padding: 10px 0 42px;
}


/* =========================================================
   NOT FOUND
   ========================================================= */

.vote-not-found {
    max-width: 620px;
    margin: 10vh auto 0;
    padding: 38px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.vote-not-found-mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    place-items: center;
    border-radius: 22px;
    background: var(--green-soft);
    font-size: 2rem;
}

.vote-not-found > span {
    color: var(--green-dark);
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.vote-not-found h1 {
    margin: 6px 0 0;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 950;
}

.vote-not-found p {
    margin: 8px auto 18px;
    max-width: 470px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.8;
}


/* =========================================================
   HERO
   ========================================================= */

.vote-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8e4d3;
    border-radius: 22px;
    background: radial-gradient(circle at 8% 14%, rgba(91,140,59,.18), transparent 23rem), linear-gradient(135deg, #ffffff, #f4f9f1);
    box-shadow: var(--shadow);
}

    .vote-hero.has-cover {
        background-image: var(--vote-cover);
        background-position: center;
        background-size: cover;
    }

.vote-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 50%, rgba(255,255,255,.82) 100%);
}

.vote-hero-content {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.vote-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
    color: #8b9790;
    font-size: .48rem;
}

    .vote-breadcrumb a {
        color: var(--green-dark);
        font-weight: 900;
        text-decoration: none;
    }

.vote-hero-grid {
    display: grid;
    gap: 14px;
}

.vote-live-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.vote-state,
.vote-featured,
.vote-sport {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .43rem;
    font-weight: 950;
}

    .vote-state i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .vote-state.is-open {
        background: #eaf7e5;
        color: #3f812e;
    }

    .vote-state.is-upcoming {
        background: #edf4fb;
        color: var(--blue);
    }

    .vote-state.is-suspended {
        background: #fff4df;
        color: var(--warning);
    }

    .vote-state.is-ended {
        background: #edf0f2;
        color: #69757d;
    }

    .vote-state.is-finalized {
        background: #f0eafb;
        color: var(--purple);
    }

    .vote-state.is-cancelled {
        background: #fff0f0;
        color: var(--danger);
    }

.vote-featured {
    background: #fff2be;
    color: #826916;
}

.vote-sport {
    background: #f0f3ef;
    color: #647168;
}

.vote-eyebrow {
    display: block;
    margin-top: 12px;
    color: var(--green-dark);
    font-size: .52rem;
    font-weight: 950;
    letter-spacing: .09em;
    direction: ltr;
    text-align: right;
}

.vote-hero h1 {
    max-width: 950px;
    margin: 5px 0 0;
    color: var(--navy);
    font-size: clamp(1.25rem, 4vw, 2.25rem);
    font-weight: 950;
    line-height: 1.25;
}

.vote-title-en {
    margin-top: 3px;
    color: #7f8b91;
    font-family: Arial, sans-serif;
    font-size: .6rem;
    text-align: right;
}

.vote-hero-description {
    max-width: 900px;
    margin: 10px 0 0;
    color: #68766e;
    font-size: .62rem;
    line-height: 1.9;
}

.vote-hero-timing {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

    .vote-hero-timing > div {
        padding: 9px 10px;
        border: 1px solid rgba(91,140,59,.13);
        border-radius: 10px;
        background: rgba(255,255,255,.68);
        backdrop-filter: blur(5px);
    }

    .vote-hero-timing span,
    .vote-hero-timing strong {
        display: block;
    }

    .vote-hero-timing span {
        color: #86928a;
        font-size: .4rem;
    }

    .vote-hero-timing strong {
        margin-top: 2px;
        color: #526158;
        font-size: .5rem;
        font-weight: 950;
    }

.vote-hero-award {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(91,140,59,.18);
    border-radius: 16px;
    background: rgba(250,253,248,.88);
    box-shadow: 0 7px 18px rgba(7,26,51,.04);
    backdrop-filter: blur(8px);
}

.vote-award-medal {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
    place-items: center;
    border-radius: 12px;
    background: #fff3c7;
    font-size: 1.05rem;
}

.vote-hero-award > span,
.vote-hero-award > strong,
.vote-hero-award > small,
.vote-hero-award > em,
.vote-hero-award > code {
    display: block;
}

.vote-hero-award > span {
    color: #8b978f;
    font-size: .4rem;
}

.vote-hero-award > strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: .68rem;
    font-weight: 950;
}

.vote-hero-award > small {
    margin-top: 2px;
    color: #879197;
    font-family: Arial, sans-serif;
    font-size: .42rem;
    text-align: right;
}

.vote-hero-award > em {
    margin-top: 6px;
    color: var(--green-dark);
    font-size: .43rem;
    font-style: normal;
    font-weight: 900;
}

.vote-hero-award > code {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    margin-top: 7px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #eef2ed;
    color: #68766e;
    font-size: .36rem;
    text-overflow: ellipsis;
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.vote-flash {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid;
}

    .vote-flash > span {
        display: grid;
        width: 32px;
        height: 32px;
        place-items: center;
        border-radius: 50%;
        font-size: .72rem;
        font-weight: 950;
    }

    .vote-flash strong,
    .vote-flash p {
        display: block;
    }

    .vote-flash strong {
        font-size: .5rem;
        font-weight: 950;
    }

    .vote-flash p {
        margin: 2px 0 0;
        font-size: .43rem;
        line-height: 1.6;
    }

    .vote-flash.is-success {
        border-color: #cfe1c6;
        background: #f0f8ec;
        color: #447230;
    }

        .vote-flash.is-success > span {
            background: #dcefd3;
        }

    .vote-flash.is-error {
        border-color: #ebcccc;
        background: #fff7f7;
        color: #9e4747;
    }

        .vote-flash.is-error > span {
            background: #f7dede;
        }


/* =========================================================
   RULE BAR
   ========================================================= */

.vote-rule-bar {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

    .vote-rule-bar article {
        display: grid;
        grid-template-columns: 32px minmax(0,1fr);
        gap: 7px;
        align-items: center;
        min-width: 0;
        padding: 9px;
        border: 1px solid var(--line);
        border-radius: 11px;
        background: var(--white);
    }

.rule-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    background: #f0f5ed;
    color: var(--green-dark);
    font-size: .62rem;
    font-weight: 950;
}

.vote-rule-bar small,
.vote-rule-bar strong {
    display: block;
}

.vote-rule-bar small {
    color: #929c96;
    font-size: .36rem;
}

.vote-rule-bar strong {
    margin-top: 1px;
    color: #526159;
    font-size: .43rem;
    font-weight: 900;
    line-height: 1.45;
}


/* =========================================================
   VOTER STATUS
   ========================================================= */

.voter-status-card {
    display: grid;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d9e3d5;
    border-right: 4px solid #9aa79e;
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(7,26,51,.025);
}

    .voter-status-card.voter-status-eligible {
        border-right-color: var(--green);
        background: linear-gradient(90deg,#fff,#f8fcf6);
    }

    .voter-status-card.voter-status-guest {
        border-right-color: var(--blue);
    }

    .voter-status-card.voter-status-needs-gedian-verification,
    .voter-status-card.voter-status-account-too-new,
    .voter-status-card.voter-status-supporters-only,
    .voter-status-card.voter-status-verified-supporters-only,
    .voter-status-card.voter-status-custom-eligibility {
        border-right-color: #d1a645;
        background: linear-gradient(90deg,#fff,#fffcf4);
    }

    .voter-status-card.voter-status-inactive,
    .voter-status-card.voter-status-locked,
    .voter-status-card.voter-status-session-mismatch {
        border-right-color: var(--danger);
        background: linear-gradient(90deg,#fff,#fff9f9);
    }

.voter-status-main {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 9px;
    align-items: center;
}

.voter-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #dbe4d8;
    border-radius: 50%;
    background: var(--green-soft);
}

    .voter-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .voter-avatar span {
        font-size: 1rem;
    }

.voter-status-label {
    display: block;
    color: #8d9891;
    font-size: .36rem;
    font-weight: 900;
}

.voter-status-copy h2 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: .69rem;
    font-weight: 950;
}

.voter-status-copy p {
    margin: 3px 0 0;
    color: #748179;
    font-size: .43rem;
    line-height: 1.65;
}

.voter-account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

    .voter-account-meta span {
        display: inline-flex;
        min-height: 20px;
        align-items: center;
        padding: 2px 6px;
        border-radius: 999px;
        background: #f0f3ef;
        color: #68756d;
        font-size: .34rem;
        font-weight: 850;
    }

    .voter-account-meta .is-verified {
        background: #eaf7e5;
        color: #3f812e;
    }

    .voter-account-meta .is-unverified,
    .voter-account-meta .is-soft-warning {
        background: #fff5df;
        color: #98701d;
    }

.voter-status-actions {
    display: grid;
    gap: 6px;
}

.vote-main-button,
.vote-secondary-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: .5rem;
    font-weight: 950;
    text-decoration: none;
}

.vote-main-button {
    border: 1px solid var(--green);
    background: var(--green);
    color: #fff;
}

    .vote-main-button:hover {
        background: var(--green-dark);
        border-color: var(--green-dark);
        color: #fff;
    }

.vote-secondary-button {
    border: 1px solid #d7e1d3;
    background: #fff;
    color: var(--green-dark);
}

.voter-ready-mark {
    display: grid;
    justify-items: start;
}

    .voter-ready-mark span {
        display: inline-flex;
        padding: 3px 7px;
        border-radius: 999px;
        background: #e9f6e4;
        color: #3f812e;
        font-size: .36rem;
        font-weight: 950;
    }

    .voter-ready-mark strong {
        margin-top: 3px;
        color: #607067;
        font-size: .4rem;
        font-weight: 850;
    }


/* =========================================================
   EXISTING VOTE
   ========================================================= */

.existing-vote-card {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 9px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #cfe0c6;
    border-radius: 13px;
    background: linear-gradient(135deg,#f7fcf4,#fff);
}

.existing-vote-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: .7rem;
    font-weight: 950;
}

.existing-vote-copy > span {
    color: #7f8d84;
    font-size: .36rem;
}

.existing-vote-copy h2 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: .62rem;
    font-weight: 950;
}

.existing-vote-names {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

    .existing-vote-names strong {
        display: inline-flex;
        min-height: 22px;
        align-items: center;
        padding: 3px 7px;
        border-radius: 999px;
        background: var(--green-soft);
        color: var(--green-dark);
        font-size: .4rem;
        font-weight: 950;
    }

.existing-vote-copy p {
    margin: 5px 0 0;
    color: #748179;
    font-size: .4rem;
    line-height: 1.6;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.vote-content-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.vote-main-column,
.vote-sidebar {
    min-width: 0;
}

.vote-section-heading {
    display: grid;
    gap: 9px;
    align-items: end;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
}

    .vote-section-heading > div:first-child > span {
        color: var(--green-dark);
        font-size: .42rem;
        font-weight: 950;
        letter-spacing: .07em;
        direction: ltr;
    }

    .vote-section-heading h2 {
        margin: 3px 0 0;
        color: var(--navy);
        font-size: .9rem;
        font-weight: 950;
    }

    .vote-section-heading p {
        margin: 3px 0 0;
        color: #86928b;
        font-size: .44rem;
        line-height: 1.6;
    }

.candidate-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 6px;
    align-items: center;
}

.candidate-search-box {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 4px;
    align-items: center;
    min-height: 36px;
    padding: 0 7px;
    border: 1px solid #d9e2d6;
    border-radius: 8px;
    background: #fafcfa;
}

    .candidate-search-box span {
        color: #87938b;
        font-size: .5rem;
    }

    .candidate-search-box input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #526159;
        font-family: inherit;
        font-size: .45rem;
    }

.candidate-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f0f3ef;
    color: #66736b;
    font-size: .42rem;
    font-weight: 900;
    white-space: nowrap;
}


/* =========================================================
   CANDIDATE CARDS
   ========================================================= */

.public-candidate-grid {
    display: grid;
    gap: 8px;
    margin-top: 9px;
}

.public-candidate-card {
    position: relative;
    display: grid;
    grid-template-columns: 20px 78px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dfe6dc;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(7,26,51,.025);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .public-candidate-card:hover {
        border-color: #accd9d;
        transform: translateY(-1px);
        box-shadow: 0 7px 17px rgba(7,26,51,.05);
    }

    .public-candidate-card.is-selected,
    .public-candidate-card.is-current-choice {
        border-color: #8eb879;
        background: linear-gradient(135deg,#fbfef9,#f2f8ef);
        box-shadow: 0 8px 20px rgba(91,140,59,.08);
    }

.candidate-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.candidate-select-mark {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 2px solid #cdd7ca;
    border-radius: 50%;
    background: #fff;
}

    .candidate-select-mark i {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: transparent;
    }

    .candidate-select-mark b {
        color: transparent;
        font-size: .42rem;
    }

.public-candidate-card.is-selected .candidate-select-mark,
.public-candidate-card.is-current-choice .candidate-select-mark {
    border-color: var(--green);
    background: var(--green);
}

    .public-candidate-card.is-selected .candidate-select-mark i,
    .public-candidate-card.is-current-choice .candidate-select-mark i {
        background: #fff;
    }

    .public-candidate-card.is-selected .candidate-select-mark b,
    .public-candidate-card.is-current-choice .candidate-select-mark b {
        color: #fff;
    }

.public-candidate-media {
    position: relative;
    display: block;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(145deg,#e9f3e5,#f7faf6);
}

    .public-candidate-media img,
    .candidate-initials {
        width: 100%;
        height: 100%;
    }

    .public-candidate-media img {
        object-fit: cover;
    }

.candidate-initials {
    display: grid;
    place-items: center;
    color: var(--green-dark);
    font-size: 1rem;
    font-weight: 950;
}

.your-choice-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    padding: 3px 4px;
    border-radius: 5px;
    background: rgba(47,85,32,.9);
    color: #fff;
    font-size: .29rem;
    font-weight: 950;
    text-align: center;
}

.public-candidate-body {
    min-width: 0;
}

.candidate-type {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ed;
    color: #68756d;
    font-size: .33rem;
    font-weight: 900;
}

.public-candidate-body > strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--navy);
    font-size: .63rem;
    font-weight: 950;
    text-overflow: ellipsis;
}

.public-candidate-body > small {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    color: #929ba0;
    font-family: Arial, sans-serif;
    font-size: .38rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-result-block {
    display: block;
    margin-top: 7px;
}

.public-result-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

    .public-result-head span {
        color: #89958e;
        font-size: .34rem;
    }

    .public-result-head b {
        color: #526159;
        font-size: .4rem;
        font-weight: 950;
    }

.public-result-track {
    display: block;
    overflow: hidden;
    height: 5px;
    margin-top: 5px;
    border-radius: 999px;
    background: #e4eae1;
}

    .public-result-track i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--green);
    }

.result-hidden-note {
    display: inline-flex;
    margin-top: 7px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #f3f5f4;
    color: #849088;
    font-size: .34rem;
    font-weight: 850;
}

.candidate-vote-prompt {
    display: block;
    margin-top: 6px;
    color: var(--green-dark);
    font-size: .35rem;
}

    .candidate-vote-prompt b {
        font-weight: 900;
    }

.public-candidate-card:has(.candidate-choice-input:disabled) {
    cursor: default;
}

    .public-candidate-card:has(.candidate-choice-input:disabled):hover {
        transform: none;
    }

.candidate-filter-empty {
    margin-top: 9px;
    padding: 22px 12px;
    border: 1px dashed #d9e1d7;
    border-radius: 10px;
    background: #fafcfa;
    color: #8a958e;
    font-size: .46rem;
    text-align: center;
}


/* =========================================================
   BALLOT SUBMIT
   ========================================================= */

.ballot-submit-panel {
    position: sticky;
    bottom: 8px;
    z-index: 15;
    display: grid;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #cbdcc3;
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(7,26,51,.12);
    backdrop-filter: blur(10px);
}

.ballot-selection-summary > span,
.ballot-selection-summary > strong,
.ballot-selection-summary > small {
    display: block;
}

.ballot-selection-summary > span {
    color: #8b9790;
    font-size: .36rem;
}

.ballot-selection-summary > strong {
    margin-top: 2px;
    color: var(--navy);
    font-size: .5rem;
    font-weight: 950;
}

.ballot-selection-summary > small {
    margin-top: 2px;
    color: #87938c;
    font-size: .34rem;
}

.vote-submit-button {
    display: grid;
    grid-template-columns: 27px minmax(0,1fr);
    grid-template-areas:
        "icon title"
        "icon hint";
    gap: 1px 7px;
    align-items: center;
    min-height: 48px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg,var(--green),var(--green-dark));
    color: #fff;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
}

    .vote-submit-button > span {
        grid-area: icon;
        display: grid;
        width: 27px;
        height: 27px;
        place-items: center;
        border-radius: 50%;
        background: rgba(255,255,255,.16);
        font-size: .55rem;
        font-weight: 950;
    }

    .vote-submit-button > strong {
        grid-area: title;
        font-size: .5rem;
        font-weight: 950;
    }

    .vote-submit-button > small {
        grid-area: hint;
        color: rgba(255,255,255,.78);
        font-size: .32rem;
    }

    .vote-submit-button:disabled {
        background: #aeb8b1;
        cursor: not-allowed;
        opacity: .75;
    }


/* =========================================================
   SIDEBAR
   ========================================================= */

.vote-sidebar {
    display: grid;
    gap: 8px;
    align-content: start;
}

.vote-sidebar-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.vote-security-card {
    background: radial-gradient(circle at 100% 0, rgba(91,140,59,.09), transparent 14rem), #fff;
}

.sidebar-card-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    background: var(--green-soft);
    font-size: .85rem;
}

.sidebar-eyebrow {
    display: block;
    margin-top: 7px;
    color: var(--green-dark);
    font-size: .38rem;
    font-weight: 950;
    letter-spacing: .07em;
    direction: ltr;
    text-align: right;
}

.vote-sidebar-card h3 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: .64rem;
    font-weight: 950;
}

.security-points {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

    .security-points > span {
        display: grid;
        grid-template-columns: 22px minmax(0,1fr);
        gap: 6px;
        align-items: start;
        color: #68766e;
        font-size: .4rem;
        line-height: 1.6;
    }

    .security-points i {
        display: grid;
        width: 21px;
        height: 21px;
        place-items: center;
        border-radius: 50%;
        background: #eef5ea;
        color: var(--green-dark);
        font-style: normal;
        font-size: .34rem;
        font-weight: 950;
    }

.vote-rules-list {
    margin: 8px 0 0;
}

    .vote-rules-list > div {
        display: grid;
        grid-template-columns: 74px minmax(0,1fr);
        gap: 6px;
        padding: 6px 0;
        border-bottom: 1px solid #edf0ec;
    }

        .vote-rules-list > div:last-child {
            border-bottom: 0;
        }

    .vote-rules-list dt {
        color: #8e9992;
        font-size: .37rem;
        font-weight: 800;
    }

    .vote-rules-list dd {
        margin: 0;
        color: #526159;
        font-size: .4rem;
        font-weight: 900;
        text-align: left;
    }

.vote-instructions,
.result-policy-card > p {
    margin: 7px 0 0;
    color: #718078;
    font-size: .41rem;
    line-height: 1.8;
    white-space: pre-line;
}

.public-total-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    margin-top: 8px;
}

    .public-total-stats span {
        padding: 7px;
        border-radius: 8px;
        background: #f5f8f3;
    }

    .public-total-stats small,
    .public-total-stats strong {
        display: block;
    }

    .public-total-stats small {
        color: #8d9891;
        font-size: .32rem;
    }

    .public-total-stats strong {
        margin-top: 2px;
        color: var(--green-dark);
        font-size: .6rem;
        font-weight: 950;
    }


/* =========================================================
   EMPTY
   ========================================================= */

.public-vote-empty {
    margin-top: 9px;
    padding: 32px 14px;
    border: 1px dashed #d7e0d4;
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

    .public-vote-empty > span {
        font-size: 1.6rem;
    }

    .public-vote-empty h3 {
        margin: 6px 0 0;
        color: var(--navy);
        font-size: .7rem;
        font-weight: 950;
    }

    .public-vote-empty p {
        margin: 4px auto 0;
        max-width: 420px;
        color: #89958e;
        font-size: .43rem;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 560px) {

    .vote-hero-timing {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .vote-rule-bar {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .voter-status-card {
        grid-template-columns: minmax(0,1fr) auto;
    }

    .voter-status-actions {
        grid-template-columns: repeat(2,auto);
    }

    .vote-section-heading {
        grid-template-columns: minmax(0,1fr) 320px;
    }

    .ballot-submit-panel {
        grid-template-columns: minmax(0,1fr) 280px;
    }
}


@media (min-width: 760px) {

    .vote-hero-grid {
        grid-template-columns: minmax(0,1fr) 290px;
        align-items: center;
    }

    .vote-rule-bar {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .public-candidate-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


@media (min-width: 1050px) {

    .vote-content-grid {
        grid-template-columns: minmax(0,1fr) 310px;
        align-items: start;
    }

    .vote-sidebar {
        position: sticky;
        top: 12px;
    }

    .public-candidate-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


@media (min-width: 1350px) {

    .public-candidate-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}


@media (max-width: 440px) {

    .vote-shell {
        width: min(100% - 10px,1540px);
    }

    .vote-hero-content {
        padding: 13px 11px;
    }

    .public-candidate-card {
        grid-template-columns: 18px 64px minmax(0,1fr);
        gap: 7px;
        padding: 8px;
    }

    .public-candidate-media {
        width: 64px;
        height: 64px;
        border-radius: 11px;
    }

    .candidate-toolbar {
        grid-template-columns: 1fr;
    }

    .candidate-count {
        width: fit-content;
    }

    .ballot-submit-panel {
        bottom: 4px;
    }

    .vote-submit-button {
        min-height: 50px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.public-candidate-card:focus-within {
    outline: 3px solid rgba(91,140,59,.2);
    outline-offset: 2px;
}

.vote-main-button:focus-visible,
.vote-secondary-button:focus-visible,
.vote-submit-button:focus-visible,
.candidate-search-box:focus-within {
    outline: 3px solid rgba(91,140,59,.22);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .public-candidate-card,
    .vote-submit-button,
    .vote-main-button,
    .vote-secondary-button {
        transition: none;
    }
}


/* Vote weight visibility */
.voter-account-meta .is-weight {
    background: #e9f1fb;
    color: #315f8c;
}

.voter-status-card.voter-status-missing-weight {
    border-right-color: #c9862b;
    background: linear-gradient(90deg,#fff,#fffaf2);
}


/* Scheduled campaign whose real clock window has already opened. */
.vote-clock-open {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4fb;
    color: #486f9b;
    font-size: .4rem;
    font-weight: 900;
}
