/**
 * 후보 페이지 전용 — candidate/index.html
 * (구 style.css 후보 블록 통합)
 */

/* -------------------------------------------------------------------------
   레이아웃
   ------------------------------------------------------------------------- */
   .sub-candi {
    padding: 48px 0 80px;
    box-sizing: border-box;
    overflow: visible;
}

.sub-candi,
.candi-toolbar,
.candi-toolbar__searchRow,
.candi-toolbar__filtersRow,
.candi-toolbar__filters {
    overflow: visible;
}

/* -------------------------------------------------------------------------
   툴바: 검색 행(우측) → 필터 행(좌측)
   ------------------------------------------------------------------------- */
.candi-toolbar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.candi-toolbar__searchRow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

    .candi-toolbar__searchRow .candi-toolbar__search {
        margin-left: auto;
    }

.candi-toolbar__filtersRow {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.candi-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

/* -------------------------------------------------------------------------
   커스텀 드롭다운
   ------------------------------------------------------------------------- */
.candi-dropdown {
    position: relative;
    width: 302px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.candi-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 8px 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    font: inherit;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
}

    .candi-dropdown__trigger:focus {
        outline: none;
    }

    .candi-dropdown__trigger:focus-visible,
    .candi-dropdown.is-open .candi-dropdown__trigger {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.candi-dropdown__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    color: #495057;
    letter-spacing: -0.4px;
    text-align: center;
    font-family: 'mbcnew-medium';
}

.candi-dropdown__value--placeholder {
    color: #adb5bd;
}

.candi-dropdown__caret {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url(../images/ico_dropdown.svg) no-repeat center / 24px 24px;
    transition: transform 0.15s ease;
}

.candi-dropdown.is-open .candi-dropdown__caret {
    transform: rotate(180deg);
}

.candi-dropdown__menu {
    position: absolute;
    max-height: 500px;
    overflow-y: auto;
    z-index: 30;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    margin: 0;
    padding: 8px 0 12px;
    list-style: none;
    box-sizing: border-box;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .candi-dropdown__menu[hidden] {
        display: none !important;
    }

    .candi-dropdown__menu li {
        margin: 0;
        padding: 0;
    }

.candi-dropdown__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    background: none;
    font-family: 'mbcnew-light', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.4px;
    color: #495057;
    text-align: left;
    cursor: pointer;
}

    .candi-dropdown__option:hover,
    .candi-dropdown__option:focus {
        background-color: #e9ecef;
        outline: none;
    }

/* -------------------------------------------------------------------------
   검색 필드
   ------------------------------------------------------------------------- */
.candi-toolbar__search-field {
    position: relative;
    width: 302px;
    box-sizing: border-box;
}

.candi-toolbar__search input[type="search"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 44px 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-family: 'mbcnew-light', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #495057;
    letter-spacing: -0.4px;
    -webkit-appearance: none;
    appearance: none;
}

    .candi-toolbar__search input[type="search"]::placeholder {
        color: #adb5bd;
    }

    .candi-toolbar__search input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }

    .candi-toolbar__search input[type="search"]:focus {
        outline: none;
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.candi-toolbar__search-submit {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent url(../images/ico_search.svg) no-repeat center / 24px 24px;
    transform: translateY(-50%);
    cursor: pointer;
}

    .candi-toolbar__search-submit:focus {
        outline: none;
    }

    .candi-toolbar__search-submit:focus-visible {
        outline: 2px solid #86b7fe;
        outline-offset: 2px;
        border-radius: 2px;
    }

/* -------------------------------------------------------------------------
   브레드크럼
   ------------------------------------------------------------------------- */
.candi-breadcrumb {
    margin-bottom: 48px;
    padding: 16px 32px;
    border-radius: 4px;
    box-sizing: border-box;
    background: rgba(218, 231, 254, 0.9);
}

.candi-breadcrumb__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.candi-breadcrumb__lead {
    color: #495057;
    font-family: 'mbcnew-bold', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.45px;
}

.candi-breadcrumb__pipe {
    display: inline-block;
    flex-shrink: 0;
    width: 1px;
    height: 12px;
    background: #adb5bd;
}

.candi-breadcrumb__trail {
    color: #646d76;
    font-family: 'mbcnew-light', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: -0.4px;
}

.candi-breadcrumb__inner .candi-search__result {
    width: 100%;
    color: #495057;
    font-family: 'mbcnew-light', sans-serif;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    letter-spacing: -0.45px;
}

    .candi-breadcrumb__inner .candi-search__result strong {
        font-family: 'mbcnew-bold', sans-serif;
    }
/* -------------------------------------------------------------------------
   후보 카드 + 직함 라벨(검색결과 등)
   ------------------------------------------------------------------------- */
.candi-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 620px;
    max-width: 100%;
    box-sizing: border-box;
}

.candi-item__label {
    margin: 0;
    color: #495057;
    font-family: 'mbcnew-bold', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.45px;
}

/* -------------------------------------------------------------------------
   후보 카드 그리드
   ------------------------------------------------------------------------- */
.candi-list {
    display: grid;
    grid-template-columns: 620px 620px;
    gap: 48px 40px;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 391px;
}

.candi-card {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: 620px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #DEE2E6;
    border-radius: 24px;
    background: #fff;
    letter-spacing: -0.4px;
}

.candi-card__aside {
    display: flex;
    flex: 0 0 248px;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 32px 0;
}

.candi-card__photo {
    line-height: 0;
}

    .candi-card__photo img {
        display: block;
        width: 152px;
        height: 196px;
        border: 1px solid #DEE2E6;
        border-radius: 12px;
        object-fit: cover;
    }

.candi-card__identity {
    padding: 16px 12px;
    box-sizing: border-box;
    text-align: center;
    color: #495057;
}

.candi-card__name {
    margin: 0 0 10px;
    font-size: 20px;
    font-family: 'mbcnew-bold', sans-serif;
}

.candi-card__party {
    margin: 0 0 15px;
    color: #868e96;
    letter-spacing: -0.4px;
}

.candi-card__party-logo {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
}

    .candi-card__party-logo img {
    }

.candi-card__ballot {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-family: 'mbcnew-medium', sans-serif;
    letter-spacing: -0.4px;
}

.candi-card__body {
    flex: 1;
    min-width: 0;
    padding: 32px 48px 32px 32px;
    box-sizing: border-box;
    background: #f8f9fa;
}

.candi-card__dl {
    margin: 0;
}

    .candi-card__dl > div {
        margin-bottom: 14px;
        /* width: 100%; */
    }

        .candi-card__dl > div:last-child {
            margin-bottom: 0;
        }

    .candi-card__dl dt {
        margin: 0 0 4px;
        color: #646d76;
        font-size: 16px;
        font-family: 'mbcnew-medium', sans-serif;
        line-height: 24px;
    }

    .candi-card__dl dd {
        margin: 0;
        color: #646d76;
        line-height: 24px;
        /* word-break:keep-all; */
        /* width: 100%; */
    }
