/*
 * 충남아이키움포털 — 통합 검색 (ik_search 스킨)
 *
 * 검색 입력(.srchbox) · 대상 탭(.ptabs) · 페이지네이션(.pager) 은
 * _layout/bootstrap/css/ui.css 의 공용 부품을 그대로 씁니다.
 * 공용 토큰(--color-*)은 style.css 에 있습니다.
 */

.app { background: #fff; }

.srch { background: #fff; }

.srch__bar { padding: 20px 24px; }

/* 대상 탭 — 버튼이라 공용 .ptabs__item 에 없는 것만 맞춰 줍니다. */
.srch__tabs .ptabs__item {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.srch__tabs .ptabs__item:disabled {
    cursor: default;
    opacity: .35;
}

.srch__total {
    margin: 0;
    padding: 20px 24px 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-soft);
}

.srch__total strong {
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== 묶음 (전체 검색) ===== */
.srch-group { padding: 8px 0 4px; }

.srch-group__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 16px 24px 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

.srch-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--color-bg);
    font-weight: 600;
    font-size: 12px;
    color: var(--color-text-soft);
}

.srch-group__more {
    display: block;
    width: calc(100% - 48px);
    margin: 12px 24px 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border-strong);
    background: #fff;
    color: var(--color-text-soft);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
}

.srch-group__more:active { background: var(--color-bg); }

/* ===== 결과 목록 ===== */
.srch-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.srch-item { border-top: 1px solid var(--color-border); }

.srch-item:last-child { border-bottom: 1px solid var(--color-border); }

.srch-item__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    color: inherit;
}

.srch-item__title {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

.srch-item__summary {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-soft);
    opacity: .7;

    /* 두 줄까지만 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.srch-item__date {
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: var(--color-text);
    opacity: .4;
}

.srch-item mark {
    background: none;
    color: var(--color-primary);
    font-weight: 700;
}
