.elections-banner, .elections-banner * {
    box-sizing: border-box;
}
.elections-banner {
    width: 92%;
    max-width: 1500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #F5F5F5;
    border-radius: 7px;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
    height: auto;
    position: relative;
}
.elections-banner-img {
    display: block;
    margin: 0 auto;
    width: 150px;
    height: auto;
}
.elections-sponsor {
    position: absolute;
    top: 20px;
    right: 20px;
}
.elections-sponsor img {
    width: 128px;
}


/*======SEARCH BAR=====*/
.search-container {
    position: relative;
}
.search-input-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 25px auto 5px auto;
}
.search-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
#search-input {
    width: 100%;
    height: 34px;
    background: #fff;
    outline: none;
    border: none;
    border-radius: 50px;
    padding: 0 50px 0 20px;
    font-size: .9em;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
}

#search-submit {
    width: 50px;
    height: 27px;
    margin-left: -50px;
    background: none;
    border: none;
    outline: none;
}

#search-submit:hover {
    cursor: pointer;
}
.search-results-wrapper {
    position: absolute;
    background: #fff;
    border-radius: 7px;
    height: auto;
    max-height: 300px;
    width: 100%;
    max-width: 700px;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    overflow-y: scroll;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
    scrollbar-color: #adadad transparent;
}
.search-results {
    list-style: none;
    width: 100%;
    padding: 0 0 0 10px;
    margin-top: 0;
}
.search-results li {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.search-results li a {
    display: inline-block;
    width: 100%;
}
.search-results li span {
    line-height: 1.4em;
}
.search-results li:hover {
    background: #F5F5F5;
    cursor: pointer;
}




/*======= BUTTONS ========*/
.elections-banner .filter-buttons-container {
    margin: 25px 0;
}
.elections-banner a.browse-races-btn {
    display: none;
}
.elections-banner .btn {
    padding: 9px 15px;
    font-size: .8em;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
}
.elections-banner .filter-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.elections-banner .filter-buttons .filter-btn {
    background: #4A4A4A;
    color: #fff;
}
.elections-banner .filter-buttons .filter-btn:hover {
    background: #797979;
}





/*========= CAROUSEL ==========*/
.elections-carousel {
    position: relative;
    max-width: 1177px;
}
.carousel-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}
.elections-carousel .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.elections-carousel .scroll-btn:hover {
    cursor: pointer;
}
.elections-carousel .scroll-btn svg {
    width: 20px;
}
.elections-carousel .scroll-btn#left-arrow {
    left: 0;
}
.elections-carousel .scroll-btn#right-arrow {
    right: 0;
}
.carousel-race {
    width: 30%;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
}
.carousel-race-title {
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #EEE;
}
.carousel-race-title h3 {
    font-size: 1em;
    font-weight: 600;
    padding: 0;
}
.candidates-container {
    display: flex;
    height: calc(100% - 32px);
}
.candidates-container .candidate {
    display: flex;
    padding: 10px;
    justify-content: center;
}
.candidates-container .candidate.candidate-headshot {
    justify-content: space-between;
}
.candidates-container.two-candidates .candidate {
    width: 50%;
}
.candidates-container.two-candidates .candidate.candidate-two {
    flex-direction: row-reverse;
}
.candidates-container.three-candidates .candidate {
    width: 33.33%;
}
.candidates-container .candidate .candidate-info {
    align-self: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.candidates-container.two-candidates .candidate .candidate-info {
    width: 60%;
}
.candidates-container.two-candidates.initiative .candidate .candidate-info, .candidates-container.three-candidates .candidate .candidate-info {
    width: 100%;
}
.candidates-container .candidate .candidate-info p {
    margin: 5px 0;
    font-size: 1em;
    line-height: 1em;
    font-weight: 600;
}
.candidates-container .candidate .candidate-info p.smaller {
    font-size: .7em;
    line-height: .7em;
    font-weight: 400;
}
.candidates-container .candidate .candidate-info p.rep, .candidates-container .candidate .candidate-info p.reject {
    color: #CC0100;
}
.candidates-container .candidate .candidate-info p.dem {
    color: #1B6ABA;
}
.candidates-container .candidate .candidate-info p.accept {
    color: #09A757;
}
.candidates-container .candidate-one {
    border-right: 1px solid #EEE;
}
.three-candidates .candidate-two {
    border-right: 1px solid #EEE;
}
.carousel-race .candidate img {
    width: 40%;
    max-width: 70px;
    height: auto;
    border-radius: 50px;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
    align-self: center;
}


.carousel-wrapper {
    width: 90%;
    min-height: 131px;
    margin: 0 auto;
    position: relative;
}
.mySwiper {
    padding: 5px;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 24px;
    font-weight: 600;
    color: #4A4A4A;
}
.swiper-button-next {
    right: -25px;
}
.swiper-button-prev {
    left: -25px;
}

.election-banner-disclaimer {
    width: 100%;
    text-align: center;
}
.election-banner-disclaimer p {
    font-size: .5em;
    color: #5a5a5a;
    margin-bottom: 0;
}





@media only screen and (max-width: 1200px) {
    .elections-carousel {
        max-width: 600px;
        margin: 0 auto;
    }
    .carousel-container {
        max-width: 600px;
        overflow-x: scroll;
        padding: 5px 0;
        gap: 80px;
        scrollbar-width: none;
    }
    .carousel-race {
        width: 85%;
        flex-shrink: 0;
    }
    
}





@media only screen and (max-width: 865px) {
    .elections-banner {
        width: 90%;
        padding: 20px;
        margin: 40px auto;
        display: flex;
        flex-direction: column;
    }
    .elections-sponsor img {
        width: 108px;
    }
    .elections-banner-img {
        order: 1;
        margin-left: 0;
        width: 115px;
    }
    .elections-banner .search-container {
        order: 2;
    }
    .elections-banner .carousel-wrapper {
        order: 3;
    }
    .elections-banner .filter-buttons-container {
        order: 5;
    }
    .elections-banner .election-banner-disclaimer {
        order: 4;
        margin-bottom: 10px;
    }
    .search-input-wrapper {
        max-width: 100%;
    }
    #search-input {
        height: 36px;
    }
    .elections-banner .btn {
        width: 100%;
        text-align: center;
        padding: 11px;
    }
    .elections-banner a.browse-races-btn {
        display: block;
        background: #4A4A4A;
        color: #fff;
    }
    .elections-banner a.browse-races-btn:hover {
        cursor: pointer;
    }
    .elections-banner .filter-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        height: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out, opacity 0.2s ease-in;
    }
    .elections-banner .filter-buttons.show {
        height: auto;
        max-height: 1000px;
        margin-top: 10px;
        opacity: 1;
        overflow: visible;
        transition: max-height 0.2s ease-out, opacity 0.2s ease-in;
    }
    .elections-banner .filter-buttons .filter-btn {
        background: #fff;
        color: #000;
    }
    .elections-banner .filter-buttons .filter-btn:hover {
        background: #fff;
    }
    .elections-banner .filter-buttons-container {
        margin: 0;
    }
    .mySwiper {
        margin-top: 5px;
    }
    .carousel-wrapper {
        min-height: 116px;
    }
    .carousel-race {
        width: 99%;
        flex-shrink: 0;
    }
    .carousel-race-title h3 {
        font-size: .9em;
    }
    .elections-carousel .scroll-btn svg {
        width: 12px;
    }
    .elections-carousel .scroll-btn#left-arrow {
        left: -15px;
    }
    .elections-carousel .scroll-btn#right-arrow {
        right: -15px;
    }
    .carousel-wrapper {
        width: 97%;
    }
    .candidates-container .candidate .candidate-info p {
        font-size: .8em;
        line-height: .8em;
    }
    .candidates-container .candidate .candidate-info p.smaller {
        font-size: .6em;
        line-height: .6em;
    }
}

@media only screen and (max-width: 400px) {
    #search-input {
        font-size: .7em;
        padding: 0 50px 0 15px;
    }
}








/*================ ELECTIONS LIST ======================*/
.wrapper.article#elections-list-wrapper {
    width: 92% !important;
    scroll-margin-top: 120px;
}
@media only screen and (max-width: 865px) {
    .wrapper.article#elections-list-wrapper {
        width: 92% !important;
        scroll-margin-top: 80px;
    }
}
.elections-list * {
    box-sizing: border-box;
}
#elections-list-wrapper .results-title {
    font-size: 2.2em;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 5px;
}
.race {
    width: 100%;
    height: auto;
    border: 1px #D3D3D3 solid;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 40px;
}
.race-title {
    background: #4A4A4A;
    padding: 10px;
}
.race-title h2 {
    color: #fff;
    font-size: 1.3em;
    margin: 0;
}
.race-results-container {
    width: 100%;
}
.race-results-container .row {
    width: 100%;
    display: flex;
    border-bottom: 1px #D3D3D3 solid;
}
.race-results-container .row:last-child {
    border-bottom: none;
}
.race-results-container .row div {
    border-right: 1px #D3D3D3 solid;
    padding: 7px 10px;
}
.race-results-container .row .heading {
    padding: 5px 10px;
}
.race-results-container .row div:last-child {
    border-right: none;
}
.row .heading h3 {
    font-size: .7em;
    font-weight: 400;
    padding: 0;
}
.row .avatar {
    display: none;
}
.has-headshots .row .avatar {
    width: 75px;
    display: block;
}
.row .candidate {
    width: calc(100% - 100px);
}
.has-headshots .row .candidate {
    width: calc(100% - 175px);
}
.row .votes {
    width: 100px;
    text-align: center;
}
.option {
    min-height: 68px;
}
.option div p {
    margin: 0;
    font-size: .7em;
    font-weight: 400;
}
.option div p.bigger {
    margin-bottom: 1px;
    font-size: 1em;
    font-weight: 500;
}
.option div {
    padding: 10px;
    position: relative;
}
.race-results-container .option .avatar .img-container {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    padding: 0;
    box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
}
.race-results-container .option .avatar img {
    margin-bottom: -3px;
    border-radius: 100%;
}
.race-results-container .option .candidate {
    padding: 0;
}
.race-results-container .option div .percent-bar {
    position: absolute;
    height: 100%;
    background-color: #FFEACE;
    margin: 0;
    padding: 0;
    border-right: none;
    z-index: 1;
    transition: all 0.5s ease;
}
.no-parties .race-results-container .option div .percent-bar {
    background-color: #F0F0F0;
}
.race-results-container .option div .percent-bar.dem {
    background-color: #CEE8FF;
}
.race-results-container .option div .percent-bar.rep, .race-results-container .option div .percent-bar.reject, .no-parties .race-results-container .option div .percent-bar.rep, .no-parties .race-results-container .option div .percent-bar.reject {
    background-color: #FCD5D5;
}
.race-results-container .option div .percent-bar.accept, .no-parties .race-results-container .option div .percent-bar.accept {
    background-color: #ACEBB8;
}
.race-results-container .option div .info {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}
.race-results-container .option .votes {
    display: flex;
    align-items: center;
    justify-content: center;
}
.race-results-container .option .votes .info {
    padding: 0;
}
.zero-percent .race-results-container .option div .percent-bar {
    width: 0px !important;
}
.disclaimer {
    font-size: .8em;
    font-style: italic;
}

@media only screen and (max-width: 865px) {
    .wrapper.article#elections-list-wrapper {
        width: 90% !important;
    }
    #elections-list-wrapper .results-title {
        font-size: 1.7em;
    }
    .race-title {
        padding: 7px;
    }
    .race-title h2 {
        font-size: 1.1em;
    }
    .option div p {
        font-size: .6em;
        line-height: 1.2em;
    }
    .option div p.bigger {
        font-size: .9em;
        margin-bottom: 5px;
    }
    .has-headshots .row .avatar {
        width: 60px;
        display: block;
    }
    .row .avatar, .has-headshots .column-headings .avatar {
        display: none;
    }
    .row .candidate {
        width: calc(100% - 65px);
    }
    .has-headshots .row .candidate {
        width: calc(100% - 125px);
    }
    .has-headshots .column-headings .candidate {
        width: calc(100% - 65px);
    }
    .row .votes {
        width: 65px;
        text-align: center;
    }
    .option {
        min-height: 60px;
    }
    .race-results-container .row div {
        padding: 7px;
    }
    .race-results-container .row .heading {
        padding: 5px 7px;
    }
}






.elections-featured-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1500px;
    margin: 0 auto 50px auto;
}

.elections-featured-boxes a {
    width: 32%;
    aspect-ratio: 16 / 9;
}
.elections-featured-boxes a img {
    border-radius: 7px;
    box-shadow: 0px 0px 6px rgb(0 0 0 / 16%);
    width: 100%;
}
@media only screen and (max-width: 865px) {
    .elections-featured-boxes {
        width: 90%;
        margin: 0 auto 40px auto;
    }
    .elections-featured-boxes {
        justify-content: center;
        gap: 40px;
    }
    .elections-featured-boxes a {
        width: 100%;
    }
}






[x-cloak] {
    display: none !important;
}