/* CSS Document */
body {
    font-family: 'Work Sans', sans-serif;
}

/* Candidate colors */
.kgk-bg {
    background-color: #278BCB;
    fill: #278BCB;
    stroke: white;
}

.kgk-text {
    color: #278BCB;
}

.zm-bg {
    background-color: #dc5147;
    fill: #dc5147;
    stroke: white;
}

.zm-text {
    color: #dc5147;
}

.ms-bg {
    background-color: #14308D;
    fill: #14308D;
    stroke: white;
}

.ms-text {
    color: #14308D;
}

.others-bg {
    background-color: #A0A0A0;
    fill: #A0A0A0;
    stroke: white;
}

.others-text {
    color: #A0A0A0;
}

/* formatting table rows */
[data-status="01"] {
    background-color: #dc5147;
    color: white;
}

[data-status="01"]::before {
    content: "✔ ";
}

[data-status="02"] {
    background-color: #278BCB;
    color: white;
}

[data-status="02"]::before {
    content: "✔ ";
}

.election-logo {
    margin-top: 1em;
    margin-bottom: 1em;
    height: 24px;
    width: 24px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.main-title {
    font-size: 2.2rem;
    line-height: 1.2em;
    margin-bottom: 14px;
    font-weight: bold;
}

.candidate-headshot {
    height: 64px;
    width: 64px;
}

.leading-percentage {
    height: 18px;
}

.second-percentage {
    height: 18px;
}

.others-percentage {
    height: 18px;
    line-height: 18px;
}

.results-bar {
    height: 18px;
    width: 100%;
    background-color: whitesmoke;
}

.candidates-bar {
    height: 64px;
    width: 100%;
    background-color: white;
}

.candidate-left {
    position: absolute;
    left: 0;
    text-align: left;
    bottom: -1px;
}

.candidate-left-name {
    font-size: 0.75em;
    line-height: 1.3em;
    margin-bottom: -0.4em;
    font-weight: bold;
}

.candidate-left-percentage-won {
    font-size: 2em;
    font-weight: bold;
    margin-right: .1em;
    position: relative;
    line-height: .7em;
}

.candidate-left-context {
    font-size: .8em;
    display: inline-block;
    margin-right: .1em;
}

.candidate-left-total-votes-caption {
    line-height: 1.1em;
    text-align: left;
}

.candidate-left-total-votes-count {
    display: inline;
}

.candidate-left-additional {
    display: block;
    font-size: .9em;
    color: darkgray;
    line-height: 1em;
    text-align: left;
}

.candidate-right {
    position: absolute;
    right: 0;
    text-align: right;
    bottom: -1px;
}

.candidate-right-name {
    font-size: 0.75em;
    line-height: 1.3em;
    margin-bottom: -0.4em;
}

.candidate-right-percentage-won {
    font-size: 2em;
    font-weight: bold;
    margin-right: .1em;
    position: relative;
    line-height: .7em;
}

.candidate-right-context {
    font-size: .8em;
    display: inline-block;
    margin-right: .1em;
}

.candidate-right-total-votes-caption {
    line-height: 1.1em;
    text-align: right;
}

.candidate-left-total-votes-count {
    display: inline;
}

.candidate-right-additional {
    display: block;
    font-size: .9em;
    color: darkgray;
    line-height: 1em;
    text-align: right;
}

.map-counties {
    max-width: 660px;
}

@media (max-width: 576px){
    .candidate-right-percentage-won,
    .candidate-left-percentage-won {
        font-size: 1.2em;
        font-weight: bold;
        margin-right: .1em;
        position: relative;
        line-height: .7em;
    }

    .main-title {
        font-size: 1.75rem;
        line-height: 1em;
        margin-bottom: .75em;
    }
}

.key {
    margin: 6px 0 3px;
    border-bottom: 1px solid #ebebeb;
    font-size: 0.8rem;
    color: #333;
    letter-spacing: .03em;
    max-height: 2rem;
    max-width: 660px;
    line-height: 1rem;
}

.key li {
    display: inline-block;
    padding: 4px 0;
    line-height: 20px;
    margin-right: 7px;
}

.square {
    height: 14px;
    width: 14px;
    display: inline-block;
    padding: 0;
    position: relative;
    border-radius: 1px;
    vertical-align: middle;
    margin: -2px 3px 0 0;
}

@media (max-width: 768px){
    .candidate-headshot {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 576px){
    .candidate-headshot {
        height: 20px;
        width: 20px;
    }
}

.county-name {
    font-size: 1.8em;
    line-height: 1em;
}

.county-turnout {
    margin-top: 0.3em;
    text-align: left;
    font-size: .9em;
    color: #6e6e6e;
    left: 105%;
}

.county-separator {
    border: 0;
    height: 5px;
    background: #717171;
}

.county-sidebar-segment {
    padding: 0 0 0em;
    display: block;
    position: relative;
}

.county-sidebar-top-candidates-list {
    padding-bottom: .5em;
    position: relative;
    list-style: none;
}

.county-sidebar {
    position: relative;
    top: 0;
    right: 0;
    height: auto;
    font-size: 0.875em;
    -webkit-transition: none;
    transition: none;
    width: 100%;
    line-height: 1.2em;
}

.county-sidebar-internal {
    height: auto;
    padding: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    width: 100% !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: transparent;
    text-align: left;
}

.county-sidebar-part {
    padding: 0 0 0em;
    display: block;
    position: relative;
}

.county-sidebar-list-item {
    width: 100%;
    display: block;
    float: none;
    list-style-type: none;
    text-align: left;
    margin-right: 1em;
    margin-bottom: .2em;
    margin-top: 1em;
}

.county-sidebar-candidate-name,
.city-sidebar-name {
    font-size: 1em;
    display: inline-block;
    line-height: 1em;
    margin-bottom: -1em;
    font-weight: bold;
}

.county-sidebar-votes {
    overflow: hidden;
    margin-top: -2px;
}

.county-sidebar-votes-percentage {
    font-family: 'Space Mono', sans-serif;
    font-size: 1.9em;
    line-height: 1.2em;
    width: 100px;
    display: inline-block;
    font-weight: bolder;
    text-align: right;
}

.county-sidebar-votes-part {
    margin-left: 1.5em;
    font-size: .85em;
    display: inline-block;
    color: darkslategray;
    line-height: 1.2em;
}

.county-sidebar-votes-label {
    display: block;
    font-weight: 100;
}

.county-sidebar-votes-number {
    font-family: 'Space Mono', sans-serif;
    font-weight: 700;
    display: block;
}


.sidebar-cities-table, .sidebar-cities-table>thead {
    margin-top: -1.25rem;
    margin-bottom: 1.3rem;
    font-size: 0.7rem;
    line-height: 0.3rem;
}

.monospace-numbers {
    font-family: 'Space Mono', sans-serif;
}

.maps-data {
    padding-top: 1.5em;
}

.live-icon {
    color: red;
    font-size: 12px;
    margin-right: 12px;
    vertical-align: middle;
}

h4.key-races-title {
    display: block;
    clear: both;
}

.county-table-header-results {
    font-size: .85rem;
    text-transform: uppercase;
}

.table th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 0px;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 1px solid #dee2e6;
}

.table>tbody>tr>td {
    padding: 4px 4px 4px 12px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}





