@charset "utf-8";

/*
 * 통합검색(UI-A-02-04-01) 화면 보정 CSS
 *
 * 통합검색 스타일 본체는 퍼블 산출물 pub/css/sub.css 에 있다
 * (.sub_search / .side_search / .search_cont / .search_result / .result_list / .badge / mark).
 * 이 파일은 퍼블에 정의가 없는 검색 결과 상태를 보완한다.
 *   ① 결과 0건 카테고리의 비활성 표시 — 설계서 ①의 "1건 이상이면 진하게+클릭" 의 반대 상태
 *   ② 이동할 상세 화면이 없는 결과(링크 없는 항목) — a 대신 div 라 목록 레이아웃이 무너진다
 *
 * 퍼블 파일(pub/**)은 재전달 시 덮어써지므로 수정하지 않는다.
 */

.side_search .search_filter_heading {
    margin-bottom: var(--col-gap-xs);
}
.side_search .search_filter_heading h3 {
    margin-bottom: 0;
}

/* ① 결과 0건 카테고리 — 클릭 대상이 아님을 시각적으로 알린다 */
.side_search .side_lnb .dep02 > li > a.is_disabled {
    color: var(--gray-60);
    cursor: default;
    font-weight: 400;
}
.side_search .side_lnb .dep02 > li > a.is_disabled:hover,
.side_search .side_lnb .dep02 > li > a.is_disabled:focus {
    color: var(--gray-60);
    text-decoration: none;
}

/*
 * 분류 경로(.path) — 퍼블 custom.css 정의(색상·크기)를 그대로 쓰되,
 * 결과 항목은 flex + gap 으로 간격을 잡으므로 자체 margin 만 없앤다.
 */
.result_list .path {
    margin-bottom: 0;
    font-size: var(--text-15);
}

/* ② 링크 없는 결과 — 퍼블의 .result_list > li > a 와 동일한 레이아웃을 유지한다 */
.result_list > li > .no_link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: clamp(20px, 2.5vw, 25px) 0;
}
/* 링크가 없으므로 제목 뒤 화살표(퍼블 .title:after)는 숨긴다 */
.result_list > li > .no_link .title:after {
    display: none;
}

/*
 * 상세 화면(UI-A-02-04-02) 페이징 영역
 * 퍼블 sub.css 에 .paging 은 있으나 「목록수 선택 + 공통 페이징」 조합은 정의가 없다.
 */
.search_detail .detail_paging {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 1.5vw, 16px);
    margin-top: var(--row-gap-sl);
}
.search_detail .detail_paging .page_size {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 640px) {
    .search_detail .detail_paging {
        flex-direction: column;
        align-items: stretch;
    }
    .search_detail .detail_paging .page_size {
        justify-content: center;
    }
}

/* 결과별 재검색어 일치 위치 표시 */
.result_list mark.search_refine_mark {
    background: #ffdf80;
    color: #633300;
}
.result_list .refine_match {
    color: var(--gray-60);
    font-size: var(--text-14);
    line-height: 1.4;
}

/* 통합검색 조례 필터의 선택 문구는 조례 지역 팝업과 동일하게 쓴다. */
.search_detail .gov_group .region_filter_title {
    font-weight: 600;
}
.search_detail .gov_group .search_sort {
    width: clamp(220px, 21vw, 270px);
}
@media (max-width: 640px) {
    .search_detail .gov_group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .search_detail .gov_group .search_sort,
    .search_detail .gov_group .sub_btn {
        width: 100%;
    }
}

/*
 * 결과 제목 .title — 퍼블 sub.css 의 inline-flex 는 글자와 <mark>(검색어 강조)를 각각 flex 항목으로 나눠
 * 단어 사이 공백이 사라지고 줄바꿈이 어긋난다. 일반 글줄로 두고 끝 화살표만 글자 뒤에 붙인다.
 */
.result_list .title {
    display: block;
}
.result_list .title:after {
    display: inline-block;
    height: 9px;
    vertical-align: middle;
    translate: 0 -2px;
}

/* 분류별 "더 많은 검색결과 보기" — 글자만 있던 링크를 버튼 모양(테두리·배경)으로 보이게 한다 */
.search_result .more {
    border: 1px solid var(--gray-60);
    border-radius: 6px;
    background: var(--gray-0);
    padding: 8px 14px;
}
.search_result .more:hover,
.search_result .more:focus-visible {
    border-color: var(--primary-50);
    color: var(--primary-60);
}
