﻿@import url(https://font.imbc.com/mbcnew/mbcnew.css);

/* ─── CSS 변수: 정당 컬러 ─────────────────────────────── */
:root {
    --c-party1: #4C95E8; /* 더불어민주당 */
    --c-party2: #E66A6A; /* 국민의힘 */
    --c-party3: #4E6DA2; /* 조국혁신당 */
    --c-party4: #ECA559; /* 개혁신당 */
    --c-party5: #B84A6C; /* 진보당 */
    --c-party99: #9D9D9D; /* 기타·무소속 */
    --c-partyC: #9370D6; /* 경합 */
    --c-party-etc2: #C6CEDB; /* 미개표 */
    --c-edu:#79ADAE; /* 교육감 */

    --fs-12: 0.8571428571rem;
    --fs-13: 0.9285714285rem;
    --fs-16: 1.1428571428rem;
    --fs-18: 1.2857142857rem;
    --fs-20: 1.4285714285rem;
    --fs-24: 1.7142857143rem;
}

/* reset */
*::after, *::before, *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body.vote{
    font-family: 'mbcnew-light', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #F8F9FA;
    background:#050530 url(/images/imnews/bg_m_vote2026.png) no-repeat top center / 100%;
    letter-spacing:-0.025em;
}

strong, b, h1, h2, h3, h4, h5, h6{
    font-weight:normal;
}

ul, ol, li{
    list-style: none;
    padding:0;
    margin:0;
}

a, button{
    text-decoration: none;
    color:inherit;
    background-color:transparent;
    border:none;
    cursor:pointer;
    font-size:100%;
    font-family:'mbcnew-light', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo','Noto Sans KR', 'Malgun Gothic', sans-serif;
}

em{
    font-style: normal;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track{
    border-radius: 999px;
    background: rgba(255,255,255,.2);
}
::-webkit-scrollbar-track{
    background: transparent;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.blind, table caption {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden
}

.vote2026{
    padding-bottom:20px;
}

.wrapper{
    width:100%;
    padding:0 16px;
    position: relative;
}

/* ─── sec-header ────────────────────────────────────────── */
.sec-header .wrapper{
    text-align:center;
    padding-top:10px;
}

.sec-header h1{
    padding:0;
    margin:0;
    line-height:0;
    height:40px;
    margin-bottom:16px;
}

.sec-header h1 a img{
    width:auto;
    height:100%;
}

.sec-header a.sh-home{
    position:absolute;
    top:12px;
    right:16px;
    padding-right:9px;
    color:#fff;
    background:url(/images/imnews/img_arrow.svg) no-repeat right center / 7px;
    font-size:var(--fs-12);
    font-family:'mbcnew-medium';
}

.sec-state .sh-state{
    width:100%;
    height:40px;
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content: space-between;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.10);
    overflow:hidden;
}

.sec-state .sh-state .sh-rate{
    display: flex;
    align-items:center;
    padding:4px 16px;
}

.sec-state .sh-state .sh-rate .text{
    margin-right:12px;
    text-align:left;
    white-space: nowrap;
    color: #CED4DA;
    font-family: "mbcnew-medium";
}

.sec-state .sh-state .sh-rate .rate span{
    text-align: right;
    font-family: "mbcnew-bold";
    font-size: var(--fs-24);
    line-height: 1.333333333333;
}

.sec-state .sh-state .sh-rate .rate em{
    line-height: 1;
    margin-left:2px;
    vertical-align:-1px;
}

.sec-state .sh-state .state-text{
    display: flex;
    flex:0 0 80px;
    height: 100%;
    padding: 0 18px;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.10);
    font-family:'mbcnew-medium';
}

/* ─── sec-ct common ────────────────────────────────────────── */
.ch-title {
    display:flex;
    align-items:center;
}

.ch-title h2{
    color: #F8F9FA;
    font-family: "mbcnew-bold";
    font-size: var(--fs-18);
    line-height: 1.333333333333;
}

.ch-title span.desc{
    color: #ADB5BD;
    font-size: var(--fs-13);
    margin-left:2px;
}

.ch-title span.box{
    margin-left:6px;
    font-size:var(--fs-13);
    font-family: 'mbcnew-medium';
}

/* ─── content-tab ─── */
.tab-wrap{
    width:100%;
    margin-top:16px;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content: center;
    justify-content: safe center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}

.tab-wrap button{
    flex:0 0 calc(100% / 2 - 6px);
    width: calc(100% / 2 - 6px);
    height: 2.615384615384615em;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    padding:0 6px;
    font-family:'mbcnew-medium';
    margin-right:12px;
    transition: all .1s;
    font-size: var(--fs-13);
}

.tab-wrap button:last-child{
    margin-right:0 !important;
}

.tab-wrap button.on{
    background: #F8F9FA;
    color: #495057;
}

.tab-wrap:has(button:nth-child(3)) button{
    flex:0 0 calc(100% / 3 - (16px / 3));
    width: calc(100% / 3 - (16px / 3));
    margin-right:8px;
}

.tab-wrap:has(button:nth-child(4)) button{
    flex:0 0 auto;
    width: auto;
    padding:0 12px;
    min-width:90px;
}

.tab-content-wrap{
    position:relative;
    padding-top:16px;
}

.tab-content-wrap:has(.bar-graph-inner){
    padding-top:0;
}

/* ─── bar-graph ─── */
.bar-graph{
    position:relative;
}
.bar-graph-inner{
    padding:30px 0 0;
    overflow-y: auto;
    display:flex;
    justify-content: start;
    justify-content: safe center;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}

ul.bar-group{
    display:flex;
    flex-wrap:nowrap;
    justify-content: start;
    padding:0 0 0 24px;
    box-sizing:border-box;
}

ul.bar-group::after {
    content: '';
    flex: 0 0 24px;
}

ul.bar-group li{
    position:relative;
    flex:0 0 16px;
    width:16px;
    justify-content: end;
    margin-right:24px;
    --bar-height: 0;
}

ul.bar-group li:last-child{
    margin-right:0;
}

ul.bar-group li .bar-inner{
    position:relative;
    width:100%;
    height:60px;
}

ul.bar-group .bar-inner:before{
    content:'';
    display:block;
    width:100%;
    height:100%;
    background: rgba(255, 255, 255, 0.10);
}

@keyframes bar-grow{
    from{
        height:0;
    }
    to{
        height:var(--bar-height, 100%);
    }
}

@keyframes bar-data-appear{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

ul.bar-group li span.bar{
    display:block;
    width:16px;
    height:0;
    position:absolute;
    bottom:0;
    left:0;
    background: linear-gradient(180deg, #FFF 0%, #C6CEDB 100%);
    animation:bar-grow 0.85s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

ul.bar-group li span span.data{
    white-space:nowrap;
    position:absolute;
    top:-24px;
    left:-100%;
    right:-100%;
    margin:0 auto;
    text-align: center;
    z-index: 1;
    opacity:0;
    animation:bar-data-appear 0.45s ease forwards;
    font-size:var(--fs-13);
    line-height:1.5384615384;
}

ul.bar-group li span.city-name{
    white-space:nowrap;
    display:flex;
    justify-content:center;
    margin-top:16px;
    font-size:var(--fs-13);
}

ul.bar-group li.whole span.bar{
    background: linear-gradient(180deg, #FFF 0%, #93B0E3 100%);
}

ul.bar-group li.high span.bar{
    background: linear-gradient(180deg, #FFF 0%, #9370D6 100%);
}

ul.bar-group li.whole span.city-name{
    font-family:'mbcnew-bold';
}

ul.bar-group li.low span.bar{
    background: linear-gradient(180deg, #FFF 0%, #79ADAE 100%);
}

ul.bar-group li.high span.bar:before,
ul.bar-group li.low span.bar:before{
    position: absolute;
    top:-41px;
    left:-100%;
    right:-100%;
    margin:0 auto;
    text-align:center;
    font-family:'mbcnew-bold';
    font-size: var(--fs-13);
}

ul.bar-group li.high span.bar:before{
    content:'최고';
    display:block;
    color:#9370D6;
}

ul.bar-group li.low span.bar:before{
    content:'최저';
    display:block;
    color:#79ADAE;
}

ul.bar-line{
    position:absolute;
    top:30px;
    left:0;
    right:0;
    margin:auto;
    height:60px;
    pointer-events: none;
}

ul.bar-line li{
    width:100%;
    height:1px;
    background-color:rgba(255, 255, 255, 0.15);
    font-size:1px;
    color:transparent;
    text-indent:-9999px;
    overflow:hidden;
    margin-bottom:29px;
    position: relative;
}
ul.bar-line li:last-child{
    background-color:rgba(255, 255, 255, 0.60);
    z-index: 2;
}

/* ─── select-wrap ─── */
.select-area{
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    position:relative;
}
.select-wrap{
    position:relative;
    flex:1 0 auto;
    position:relative;
    padding:0 20px;
}

.select-wrap button.btn-select{
    width:100%;
    border-radius: 4px;
    border:none;
    background:url(/images/imnews/img_arrow_down.svg) no-repeat right center / 20px;
    height:26px;
    font-family:'mbcnew-bold';
    position:relative;
    z-index:4;
}

.select-wrap button.btn-select img{
    position:absolute;
    width:40px;
    margin-left:8px;
    top:-1px;
}

.select-area:has(.select-wrap:nth-of-type(2)){
    justify-content:center;
}

.select-area:has(.select-wrap:nth-of-type(2)) .select-wrap{
    position:static;
    flex:0 0 auto;
    padding:0 10px;
}

.select-area:has(.select-wrap:nth-of-type(2)) button.btn-select{
    text-align:left;
    padding-right:30px;
    white-space: nowrap;
}

.region-list {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: none;
    z-index:10;
    flex-direction: column;
    list-style: none;
    max-height: 120px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: #050530;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding:8px 0;
}

.region-list.on{
    display: flex;
}

.region-list button{
    width:100%;
    text-align:left;
    padding: 6px 12px;
    font-size:var(--fs-13);
    line-height:1.5384615384;
    cursor: pointer;
    color:#F8F9FA;
}

.region-list button.btn-region:hover,
.region-list button.btn-region.on {
    background:rgba(255, 255, 255, 0.10);
    font-family: 'mbcnew-medium';
    font-weight: normal;
}

/* ─── candidate card ─── */
.candidate-card .card-title{
    border-radius: 16px 16px 0 0;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    background: rgba(255, 255, 255, 0.20);
    min-height:44px;
    padding:9px 0;
    border:1px solid rgba(255, 255, 255, 0.15);
    border-bottom:none;
}

.candidate-card .card-title>strong{
    font-family:'mbcnew-bold';
}

.candidate-card .card-title>span{
    color: #ADB5BD;
    font-family: "mbcnew-medium";
    font-size: var(--fs-12);
    line-height: 1.5;
}

.candidate-card .card-body{
    padding:12px 20px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 0 0 16px 16px;
    border:1px solid rgba(255, 255, 255, 0.15);
    border-top:none;
}

.candidate-card .card-item{
    display:flex;
    align-items:start;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(255, 255, 255, 0.15);
}

.candidate-card .card-item:first-child{
    margin-top:0;
    padding-top:0;
    border-top:none;
}

.candidate-card .card-item>div span{
    line-height:1.5;
}

.candidate-card .img-wrap {
    display:flex;
    margin-right:16px;
    flex:0 0 auto;
}

.candidate-card .img-wrap .rank{
    min-width:23px;
    margin-right:12px;
    font-family:'mbcnew-bold';
    font-size: var(--fs-18);
    text-align:center;
}

.candidate-card .img-wrap .rank em{
    font-size: var(--fs-12);
    line-height: 1;
    vertical-align:2px;
}

.candidate-card .img-wrap .photo{
    position:relative;
}

.candidate-card .img-wrap span.img{
    display:block;
    flex:0 0 64px;
    width:64px;
    height:64px;
    border-radius: 50%;
    overflow:hidden;
}

.candidate-card .img-wrap span.img:after{
    content:'';
    display:block;
    position:absolute;
    top:0;
    left:0;
    z-index:1;
    width:100%;
    height:100%;
    border-radius:50%;
    border:1px solid #DEE2E6;
    box-sizing:border-box;
}

.candidate-card .img-wrap img{
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: center top;
}

.candidate-card .img-wrap span.badge{
    position:absolute;
    left:-21px;
    bottom:-6px;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    width:42px;
    height:42px;
}

.candidate-card .info-wrap{
    flex:2 0 auto;
    display:flex;
    justify-content: space-between;
    align-items:start;
}

.candidate-card .info-wrap .info,
.candidate-card .info-wrap .rate{
    flex:0 0 auto;
}

.candidate-card .info-wrap span{
    display:block;
    margin-bottom:2px;
}

.candidate-card .info-wrap span:last-child{
    margin-bottom:0;
}

.candidate-card .info-wrap .info span.number,
.candidate-card .info-wrap .info span.party{
    font-size:var(--fs-12);
    color:#ADB5BD;
}

.candidate-card .info-wrap .info span.name{
    font-size:var(--fs-16);
    font-family:'mbcnew-bold';
}

.candidate-card .info-wrap .rate{
    text-align:right;
}

.candidate-card .info-wrap .rate span.percent{
    font-size:var(--fs-20);
    font-family:'mbcnew-bold';
}

.candidate-card .info-wrap .rate span.percent em{
    font-size:var(--fs-12);
    line-height: 1;
}

.candidate-card .info-wrap .rate .vote{
    display:block;
    font-size:var(--fs-12);
    color:#ADB5BD;
}

.candidate-card .card-note{
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    min-height:64px;
    font-size:var(--fs-13);
    word-break: keep-all;
    height:100%;
}

/* ─── sec-ct content ────────────────────────────────────────── */
/* ─── prevote ─── */
.prevote-schedule-wrap{
    text-align:center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.10);
    padding:8px 0;
    margin:12px auto 0;
    width:calc(100% - 32px);
}

ul.prevote-schedule{
    color:#ADB5BD;
    display:inline-block;
}

ul.prevote-schedule li{
    text-align:left;
    font-size:var(--fs-13);
    line-height:1.5384615384;
}

ul.prevote-schedule li:before{
    content:'';
    display:inline-block;
    width:4px;
    height:4px;
    background:#ADB5BD;
    margin-right:6px;
    vertical-align: middle;
}

ul.prevote-schedule li:last-child{
    margin-right:0;
}

ul.prevote-schedule li span{
    font-family:'mbcnew-medium';
}

/* ─── vote ─── */
.rebyelect-wrap{
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(255,255,255,.2) transparent;
    padding:0 16px;
    box-sizing:border-box;
}

ul.rebyelect-list {
    display:flex;
    flex-wrap:nowrap;
    margin:0 auto;
}
  
ul.rebyelect-list:after{
    content:'';
    flex:0 0 16px;
}

ul.rebyelect-list li{
    width: 38.88888888vw;
    flex:0 0 38.88888888vw;
    margin-right:12px;
    max-width:140px;
}

ul.rebyelect-list li:last-child{
    margin-right:0;
}

.rebyelect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width:100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.10);
}
.rebyelect-region {
    display: block;
    text-align: center;
    font-family: 'mbcnew-bold';
    margin-bottom:10px;
    font-size: var(--fs-13);
    line-height:1.5384615384;
}
  
.rebyelect-rate {
    display: block;
    width: 100%;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.30);
    text-align: center;
    font-family: "mbcnew-medium";
    font-size: var(--fs-18);
    line-height: 1.33333333;
    color: #93B0E3;
}

/* ─── forecast ─── */
#forecast .candidate-card .img-wrap{
    align-items:center;
}

/* ─── winner ─── */
.winner-tab-area{
    margin-top:16px;
}
.winner-tab-area.select-area{
    justify-content:start !important;
}
.winner-tab-area .select-wrap{
    width:calc(100% / 2 - 6px);
    flex:0 0 calc(100% / 2 - 6px);
    padding:0 !important;
    margin-right:12px;
}
.winner-tab-area .select-wrap:last-child{
    margin-right:0;
}
.winner-tab-area button.btn-select{
    height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.10);
    font-family:'mbcnew-medium';
    text-align:left;
    background-position:right 8px center;
}

.winner-tab-area ul.region-list{
    top: 36px;
}

.winner-m-slide{
    position:relative;
}

.winner-m-slide .swiper-pagination{
    position:relative;
    bottom:auto;
    top:auto;
    line-height:1px;
    margin-top:16px;
}

.winner-m-slide .swiper-pagination span{
    background-color:rgba(255, 255, 255, 0.30);
    opacity:1;
}

.winner-m-slide .swiper-pagination span.swiper-pagination-bullet-active{
    background-color:#F8F9FA;
}

.winner-m-slide .swiper-container,
.winner-m-slide .swiper-wrapper{
    height:auto;
}

.winner-m-slide .swiper-wrapper{
    align-items:stretch;
}

.winner-m-slide .swiper-slide{
    height:auto;
    align-self:stretch;
    display:flex;
    flex-direction:column;
}

.winner-m-slide .swiper-slide > .candidate-card{
    flex:1;
    display:flex;
    flex-direction:column;
    width:100%;
    box-sizing:border-box;
}

.winner-card .card-body{
    flex:1;
    padding:12px;
}

.winner-card .card-title>strong{
    font-size:inherit;
    line-height:inherit;
}

.card-winner .info span{
    display:block;
    text-align: center;
    font-size:var(--fs-12);
    line-height:1.5;
    color:#ADB5BD;
    margin-bottom:2px;
}

.card-winner .info span.name{
    color:#F8F9FA;
    font-size:var(--fs-16);
    font-family:'mbcnew-bold';
}

.card-winner .info .vote span{
    color:#CED4DA;
}

.card-winner .info .vote span:last-child{
    margin-bottom:0;
}

.card-winner .info .vote span.rate{
    font-family:'mbcnew-medium';
}


.winner-legend {
    text-align:center;
}
.winner-legend strong{
    display: inline-flex;
    color: #CED4DA;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.10);
    padding:8px 24px 6px;
    margin-bottom:4px;
}

.winner-legend strong span{
    font-family:'mbcnew-medium';
    margin-right:5px;
}

.winner-legend ul.winner-legend-list{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
}

.winner-legend ul.winner-legend-list li{
    margin:0 10px;
    font-size:var(--fs-13);
    line-height:1.5384615384;
    margin-top:8px;
    color:#CED4DA;
}

.winner-legend ul.winner-legend-list li span.legend-chip{
    display:inline-block;
    width:12px;
    height:12px;
    background:var(--c-party8);
    margin-right:8px;
}

.winner-legend ul.winner-legend-list li span.legend-chip.party1{background-color:var(--c-party1);}
.winner-legend ul.winner-legend-list li span.legend-chip.party2{background-color:var(--c-party2);}
.winner-legend ul.winner-legend-list li span.legend-chip.party3{background-color:var(--c-party3);}
.winner-legend ul.winner-legend-list li span.legend-chip.party4{background-color:var(--c-party4);}
.winner-legend ul.winner-legend-list li span.legend-chip.party5{background-color:var(--c-party5);}
.winner-legend ul.winner-legend-list li span.legend-chip.party99{background-color:var(--c-party99);}
.winner-legend ul.winner-legend-list li span.legend-chip.partyC{background-color:var(--c-partyC);}
.winner-legend ul.winner-legend-list li span.legend-chip.party-etc2{background-color:var(--c-party-etc2);}
.winner-legend ul.winner-legend-list li span.legend-chip.edu{background-color:var(--c-edu);}

/* ─── Mobile CSS ────────────────────────────────────────── */
@media (max-width: 360px) {
    html,
    body.vote{
        font-size:3.8888888vw;
    }
    .sec-state .sh-state .sh-rate{
        padding:4px 4.907975460%;
    }

    .sec-state .sh-state .state-text{
        flex:0 0 24.5398773006%;
        padding:0 5%;
    }
}

@media (min-width: 720px){
    .wrapper{
        width:720px;
        margin:0 auto;
    }
    .tab-wrap{
        width:720px;
        margin:16px auto 0;
    }
}