/* 열린마당·서비스 소개·마이페이지 공통 LNB. sectionLnb fragment의 메뉴 데이터를 표시한다. */
.section-layout .section-lnb {
    width: 260px;
}

.section-layout > .sub_content {
    flex: 1;
    min-width: 0;
}

/* LNB가 있는 모든 목록은 목록 수와 페이지 이동이 한 행의 실제 폭을 나눠 쓴다.
   즐겨찾기의 별도 하단 구조도 같은 규칙을 적용한다. */
#wrap .section-layout :is(.paging, .bookmark-list-footer) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#wrap .section-layout :is(.paging, .bookmark-list-footer) > :is(.paging_btn, .list_cnt) {
    flex: 0 0 auto;
}

#wrap .section-layout :is(.paging, .bookmark-list-footer) .list_cnt .search_sort {
    width: 80px;
    min-width: 80px;
    padding-inline: 12px 28px;
    background-position: right 10px center;
}

#wrap .section-layout :is(.paging, .bookmark-list-footer) .list_cnt .select2-container {
    min-width: 80px;
}

#wrap .section-layout :is(.paging, .bookmark-list-footer) > .csp-pagination {
    position: static;
    top: auto;
    left: auto;
    translate: none;
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    margin: 0;
}

@media (min-width: 1201px) and (max-width: 1500px) {
    #wrap .section-layout :is(.paging, .bookmark-list-footer) > .csp-pagination {
        gap: 4px;
    }

    #wrap .section-layout :is(.paging, .bookmark-list-footer) > .csp-pagination > .page_num {
        min-width: 36px;
    }
}

.section-lnb .section-lnb-list > li > a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--alpha-g20, #d0d5dd);
    color: var(--gray-80, #344054);
    font-size: var(--text-20, 20px);
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.section-lnb .section-lnb-list > li.on > a {
    background: var(--primary-5, #f0f6ff);
    color: var(--primary-60, #155eef);
}

.section-lnb .section-lnb-list > li > a:hover,
.section-lnb .section-lnb-list > li > a:focus-visible {
    background: var(--primary-5, #f0f6ff);
    color: var(--primary-60, #155eef);
}

@media (max-width: 1200px) {
    .section-layout.side_content {
        flex-direction: column;
    }

    .section-layout .section-lnb {
        width: 100%;
    }

    .section-lnb .section-lnb-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
    }

    .section-lnb .section-lnb-list > li > a {
        height: 100%;
        justify-content: center;
        padding: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    #wrap .section-layout :is(.paging, .bookmark-list-footer) {
        flex-wrap: wrap;
    }

    #wrap .section-layout :is(.paging, .bookmark-list-footer) > .csp-pagination {
        flex-basis: 100%;
    }

    .section-lnb .section-lnb-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-lnb .section-lnb-list > li > a {
        font-size: var(--text-17, 17px);
    }
}
