/* Election day: a scoreboard read at a glance, on a phone in a queue of results. */

.dashboard-panel-heading h1 {
    margin: 2px 0 0;
    font-size: 30px;
    letter-spacing: -0.025em;
}

.election-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.election-scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.election-score {
    padding: 16px 18px;
    border: 1px solid #e3eae5;
    border-radius: 14px;
    background: #fff;
}

.election-score.is-primary {
    background: #0b5c42;
    border-color: #0b5c42;
    color: #fff;
}

.election-score span {
    display: block;
    color: #5c6b62;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.election-score.is-primary span {
    color: rgba(255, 255, 255, 0.78);
}

.election-score strong {
    display: block;
    margin: 6px 0 2px;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.election-score strong em {
    font-size: 16px;
    font-style: normal;
    opacity: 0.6;
}

.election-score small {
    color: #78857d;
    font-size: 11.5px;
}

.election-score.is-primary small {
    color: rgba(255, 255, 255, 0.72);
}

.election-progress {
    height: 8px;
    border-radius: 999px;
    background: #e7eee9;
    overflow: hidden;
}

.election-progress span {
    display: block;
    height: 100%;
    background: #0b5c42;
    border-radius: 999px;
    transition: width 240ms ease;
}

.election-table-wrap {
    overflow-x: auto;
}

.election-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.election-table th {
    padding: 8px 10px;
    border-bottom: 1px solid #e3eae5;
    color: #78857d;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.election-table td {
    padding: 10px;
    border-bottom: 1px solid #eef2ef;
    vertical-align: middle;
}

.election-table td small {
    display: block;
    color: #78857d;
    font-size: 11.5px;
}

.election-missing {
    color: #a3312a;
    font-weight: 700;
    font-size: 12.5px;
}

.election-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef1ef;
    color: #46564d;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.election-pill-assigned {
    background: #f1f4ff;
    color: #33427a;
}

.election-pill-reported {
    background: #fff6e8;
    color: #8a5a15;
}

.election-pill-verified {
    background: #eef6f1;
    color: #0b5c42;
}

.election-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.election-actions form {
    margin: 0;
}

.election-actions select {
    padding: 6px 8px;
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    font: inherit;
    font-size: 12.5px;
    background: #fff;
}

.election-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 16px;
    align-items: end;
}

.election-form label {
    display: block;
    color: #5c6b62;
    font-size: 12px;
    font-weight: 700;
}

.election-form label small {
    font-weight: 500;
    color: #8a978f;
}

.election-form input,
.election-form select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 10px 11px;
    border: 1px solid #dfe8e2;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    color: #101a15;
    background: #fff;
}

.election-form button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
}

.election-form input:focus,
.election-form select:focus {
    outline: none;
    border-color: #0b5c42;
    box-shadow: 0 0 0 3px rgba(11, 92, 66, 0.12);
}

@media (max-width: 640px) {
    .election-head-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .election-score strong {
        font-size: 25px;
    }
}


/* ------------------------------------------------------------------ the ballot */

.election-table th.is-self,
.election-table td.is-self {
    background: #f4faf6;
    font-weight: 800;
}

.election-sheet {
    color: #0b5c42;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
}

.election-ballot {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.election-ballot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    background: #fff;
}

.election-ballot-row.is-self {
    border-color: #cfe3d7;
    background: #f4faf6;
}

.election-ballot-row small {
    display: block;
    color: #78857d;
    font-size: 11.5px;
}

.election-ballot-row form {
    margin: 0;
}

.election-ballot-total {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    font-weight: 800;
    color: #0b5c42;
}

.election-ballot-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.election-ballot-form label {
    color: #5c6b62;
    font-size: 12px;
    font-weight: 700;
}

.election-ballot-form label small {
    font-weight: 500;
    color: #8a978f;
}

.election-ballot-form input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 10px 11px;
    border: 1px solid #dfe8e2;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
}

/* -------------------------------------------------------------- who sees it */

.election-visibility {
    display: grid;
    gap: 10px;
}

.election-visibility-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.election-visibility-option.is-current {
    border-color: #0b5c42;
    box-shadow: 0 0 0 2px rgba(11, 92, 66, 0.12);
}

.election-visibility-option input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: #0b5c42;
}

.election-visibility-option strong {
    display: block;
    font-size: 14px;
}

.election-visibility-option small {
    color: #5c6b62;
    font-size: 12.5px;
}

.election-visibility button {
    justify-self: start;
}

/* The public results page: same numbers, no dashboard around them. */
body {
    background: #f4f7f4;
}

.results-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 18px 64px;
    color: #101a15;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.results-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    color: #101a15;
    font-weight: 800;
    text-decoration: none;
}

.results-kicker {
    margin: 0 0 6px;
    color: #0b5c42;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.results-head h1 {
    margin: 0 0 6px;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.results-sub {
    margin: 0 0 12px;
    color: #5c6b62;
    font-size: 14px;
}

.results-disclaimer {
    margin: 0 0 26px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff8e8;
    color: #7a5312;
    font-size: 12.5px;
    font-weight: 600;
}

.results-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.results-total {
    padding: 16px 18px;
    border: 1px solid #e3eae5;
    border-radius: 14px;
    background: #fff;
}

.results-total.is-leading {
    border-color: #0b5c42;
    box-shadow: 0 0 0 2px rgba(11, 92, 66, 0.1);
}

.results-total span {
    display: block;
    color: #5c6b62;
    font-size: 12.5px;
    font-weight: 700;
}

.results-total span small {
    display: block;
    color: #8a978f;
    font-size: 11px;
    font-weight: 500;
}

.results-total strong {
    display: block;
    margin: 6px 0 2px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.results-you {
    color: #0b5c42;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.results-stations h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.results-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e3eae5;
    border-radius: 14px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.results-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #e3eae5;
    color: #78857d;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2ef;
}

.results-table td small {
    display: block;
    color: #78857d;
    font-size: 11.5px;
}

.results-empty {
    color: #5c6b62;
}

.results-foot {
    margin-top: 26px;
    color: #5c6b62;
    font-size: 12.5px;
}

.results-foot a {
    color: #0b5c42;
    font-weight: 800;
}

@media (max-width: 720px) {
    .election-ballot-form {
        grid-template-columns: 1fr;
    }

    .results-head h1 {
        font-size: 27px;
    }
}


/* ------------------------------------------------------------------ the tab strip */

.election-frame {
    padding-bottom: 22px;
}

.election-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 20px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e3eae5;
}

.election-tab {
    padding: 9px 14px;
    border-radius: 9px 9px 0 0;
    color: #5c6b62;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.election-tab:hover {
    background: #f4f7f4;
    color: #0b5c42;
}

.election-tab.is-current {
    color: #0b5c42;
    background: #eef6f1;
    box-shadow: inset 0 -2px 0 #0b5c42;
}

/* --------------------------------------------------------------- overview blocks */

.election-standings {
    display: grid;
    gap: 8px;
}

.election-standing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 64px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    background: #fff;
}

.election-standing.is-self {
    border-color: #cfe3d7;
    background: #f4faf6;
}

.election-standing > span small {
    display: block;
    color: #78857d;
    font-size: 11.5px;
}

.election-standing strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.election-standing-share {
    color: #5c6b62;
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
}

.election-recent,
.election-tasks,
.election-sheets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.election-recent li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #eef2ef;
}

.election-recent li:last-child {
    border-bottom: 0;
}

.election-recent small {
    display: block;
    color: #78857d;
    font-size: 11.5px;
}

.election-tasks li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2ef;
    color: #3d4a43;
    font-size: 13.5px;
}

.election-tasks li.is-done {
    color: #8a978f;
}

.election-tasks li strong {
    min-width: 26px;
    color: #0b5c42;
    font-size: 17px;
}

.election-tasks li.is-done strong {
    color: #8a978f;
}

.election-tasks li a {
    margin-left: auto;
    color: #0b5c42;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: underline;
}

.election-sheets li {
    padding: 9px 0;
    border-bottom: 1px solid #eef2ef;
}

.election-sheets a {
    color: #0b5c42;
    font-size: 13px;
    font-weight: 700;
}

.election-sheets small {
    display: block;
    color: #78857d;
    font-size: 11.5px;
}

@media (max-width: 640px) {
    .election-tabs {
        gap: 2px;
    }

    .election-tab {
        padding: 8px 10px;
        font-size: 12px;
    }

    .election-standing {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .election-standing-share {
        display: none;
    }
}


/* ------------------------------------------------------------------ the add dialogs */

.election-dialog {
    /* The site's reset zeroes margins, which removes the browser's own centring. */
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 0;
    border: 1px solid #dfe8e2;
    border-radius: 16px;
    background: #fff;
    color: #101a15;
    box-shadow: 0 24px 60px rgba(12, 26, 19, 0.22);
}

.election-dialog::backdrop {
    background: rgba(12, 26, 19, 0.42);
    backdrop-filter: blur(2px);
}

.election-dialog-form {
    padding: 26px 26px 22px;
}

.election-dialog h2 {
    margin: 0 0 8px;
    font-size: 21px;
    letter-spacing: -0.01em;
}

.election-dialog-lede {
    margin: 0 0 18px;
    color: #5c6b62;
    font-size: 13px;
    line-height: 1.55;
}

.election-dialog-form label {
    display: block;
    margin-bottom: 14px;
    color: #5c6b62;
    font-size: 12.5px;
    font-weight: 700;
}

.election-dialog-form label small {
    font-weight: 500;
    color: #8a978f;
}

.election-dialog-form input,
.election-dialog-form select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #dfe8e2;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    color: #101a15;
    background: #fff;
}

.election-dialog-form input:focus,
.election-dialog-form select:focus {
    outline: none;
    border-color: #0b5c42;
    box-shadow: 0 0 0 3px rgba(11, 92, 66, 0.12);
}

.election-dialog-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.election-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.election-dialog-actions .button {
    margin: 0;
}

.election-dialog-note {
    margin: 0 0 6px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff8e8;
    color: #7a5312;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 520px) {
    .election-dialog-row {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------- a station's sheet */

.election-details {
    color: #0b5c42;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: underline;
    white-space: nowrap;
}

.election-dialog-wide {
    width: min(640px, calc(100vw - 32px));
}

.election-dialog-kicker {
    margin: 0 0 4px;
    color: #0b5c42;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.election-detail-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0 20px;
}

.election-detail-facts div {
    padding: 10px 12px;
    border: 1px solid #e3eae5;
    border-radius: 10px;
    background: #fbfcfb;
}

.election-detail-facts span {
    display: block;
    color: #78857d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.election-detail-facts strong {
    font-size: 19px;
    letter-spacing: -0.02em;
}

.election-detail-heading {
    margin: 0 0 8px;
    color: #78857d;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.election-detail-lines {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    overflow: hidden;
}

.election-detail-lines li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 56px;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #eef2ef;
}

.election-detail-lines li:last-child {
    border-bottom: 0;
}

.election-detail-lines li.is-self {
    background: #f4faf6;
    font-weight: 800;
}

.election-detail-lines small {
    display: block;
    color: #78857d;
    font-size: 11px;
    font-weight: 500;
}

.election-detail-lines strong {
    text-align: right;
    font-size: 16px;
}

.election-detail-lines em {
    color: #78857d;
    font-size: 11.5px;
    font-style: normal;
    text-align: right;
}

.election-detail-meta {
    margin: 0 0 16px;
}

.election-detail-meta div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2ef;
    font-size: 12.5px;
}

.election-detail-meta div:last-child {
    border-bottom: 0;
}

.election-detail-meta dt {
    color: #78857d;
    font-weight: 700;
}

.election-detail-meta dd {
    margin: 0;
}

.election-sheet-link {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 16px;
    padding: 10px;
    border: 1px solid #e3eae5;
    border-radius: 10px;
    color: #0b5c42;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.election-sheet-link img {
    width: 110px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e3eae5;
}

.election-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding-top: 14px;
    border-top: 1px solid #eef2ef;
}

.election-detail-actions form {
    margin: 0;
}

.election-detail-select {
    display: block;
    color: #5c6b62;
    font-size: 11.5px;
    font-weight: 700;
}

.election-detail-select select {
    display: block;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #dfe8e2;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    background: #fff;
}

@media (max-width: 560px) {
    .election-detail-facts {
        grid-template-columns: 1fr 1fr;
    }

    .election-detail-lines li {
        grid-template-columns: minmax(0, 1fr) 60px;
    }

    .election-detail-lines em {
        display: none;
    }
}



/* ------------------------------------------------------------ search and paging */

.election-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
}

.election-search input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #dfe8e2;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
}

.election-search select {
    padding: 9px 10px;
    border: 1px solid #dfe8e2;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    background: #fff;
}

.election-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 14px;
}

.election-pager a {
    padding: 5px 10px;
    border: 1px solid #e3eae5;
    border-radius: 8px;
    color: #46564d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.election-pager a.is-current {
    border-color: #0b5c42;
    color: #0b5c42;
}

.election-pager-total {
    margin-left: auto;
    color: #78857d;
    font-size: 12px;
    font-weight: 700;
}


/* ------------------------------------------------------------ the Form 34A sheets */

.election-count {
    /* The scoreboard, on the overview only. */
    padding-top: 18px;
}

.election-sheet-warning {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff8e8;
    color: #7a5312;
    font-size: 12.5px;
    font-weight: 600;
}

.election-sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.election-sheet-card {
    display: block;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.election-sheet-card:hover {
    border-color: #0b5c42;
    box-shadow: 0 6px 18px rgba(12, 26, 19, 0.1);
}

.election-sheet-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f4f7f4;
    border-bottom: 1px solid #eef2ef;
}

.election-sheet-card-body {
    display: block;
    padding: 10px 12px 12px;
}

.election-sheet-card-body strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.35;
}

.election-sheet-card-body small,
.election-sheet-card-body em {
    display: block;
    margin-top: 2px;
    color: #78857d;
    font-size: 11.5px;
    font-style: normal;
}


/* --------------------------------------------------------------- agents on the day */

.election-duties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.agent-duty-pill {
    display: inline-block;
    padding: 3px 9px;
    border: 1px dashed #dfe8e2;
    border-radius: 999px;
    color: #8a978f;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.agent-duty-pill.is-on {
    border: 1px solid #cfe3d7;
    background: #eef6f1;
    color: #0b5c42;
}


/* The three counters above the team table. */
.election-panel .agent-stats,
.agent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.agent-stats div {
    padding: 12px 14px;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    background: #fbfcfb;
}

.agent-stats strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.agent-stats span {
    color: #5c6b62;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ------------------------------------------------------------- more than one election */

.election-switch select {
    padding: 8px 10px;
    border: 1px solid #dfe8e2;
    border-radius: 9px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #101a15;
    background: #fff;
    max-width: 420px;
}

.election-frame-lede {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin: 14px 0 0;
    color: #5c6b62;
    font-size: 12.5px;
}

.election-frame-lede strong {
    color: #101a15;
    font-size: 14px;
}

.election-frame-lede span::before {
    content: "·";
    margin-right: 8px;
    color: #b8c4bd;
}


/* The export chooser: three formats, one explanation each. */
.election-export-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.election-export-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e3eae5;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
}

.election-export-list a:hover {
    border-color: #0b5c42;
    background: #f7fbf8;
}

.election-export-list strong {
    display: block;
    color: #0b5c42;
    font-size: 13.5px;
}

.election-export-list small {
    display: block;
    margin-top: 2px;
    color: #5c6b62;
    font-size: 12px;
    line-height: 1.45;
}


/* Which race the public count belongs to. */
.results-election {
    margin: 6px 0 0;
    color: #0b5c42;
    font-size: 13px;
    font-weight: 800;
}

.results-election span {
    margin-left: 6px;
    color: #5c6b62;
    font-weight: 600;
}


/* The index of published boards. */
.results-index {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.results-index a {
    display: grid;
    gap: 3px;
    padding: 16px 18px;
    border: 1px solid #dfe8e2;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.results-index a:hover {
    border-color: #0b5c42;
    box-shadow: 0 6px 18px rgba(12, 26, 19, 0.08);
}

.results-index-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.results-index-election {
    color: #0b5c42;
    font-size: 12.5px;
    font-weight: 800;
}

.results-index-meta,
.results-index-count {
    color: #5c6b62;
    font-size: 12.5px;
}

.results-empty {
    margin: 32px 0;
    padding: 24px;
    border: 1px dashed #dfe8e2;
    border-radius: 12px;
    text-align: center;
    color: #5c6b62;
}


/* The public results shell: the page has to fill the window, not stop mid-screen. */
body.we-body-bare {
    min-height: 100vh;
    background: #f4f7f4;
}

.results-page {
    min-height: 100vh;
}


/* "The count is not public" - a message, not an error. */
.results-private {
    margin: 28px 0 0;
    padding: 26px 28px;
    border: 1px solid #dfe8e2;
    border-radius: 14px;
    background: #fff;
}

.results-private-title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.results-private-body {
    margin: 0 0 12px;
    color: #5c6b62;
    font-size: 14px;
    line-height: 1.6;
    max-width: 62ch;
}

.results-private-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}


/* Switching between the races a candidate has published. */
.results-election-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.results-election-switch a {
    padding: 7px 13px;
    border: 1px solid #dfe8e2;
    border-radius: 999px;
    background: #fff;
    color: #46564d;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.results-election-switch a:hover {
    border-color: #0b5c42;
    color: #0b5c42;
}

.results-election-switch a.is-current {
    border-color: #0b5c42;
    background: #eef6f1;
    color: #0b5c42;
}


/* A hint under a dialog field, explaining what a choice actually does. */
.election-dialog-hint {
    display: block;
    margin-top: 6px;
    color: #78857d;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.45;
}
