/* 보드팩토리 기본 전체 검색 스킨 — 공통 UI 는 theme/boardfactory/css/skin.css
 * 루트 클래스가 bfk-sch 인 까닭: bfk-search 는 공통 검색 상자 클래스라서 겹치지 않게 했다. */
.bfk-sch { margin: 0 auto; }
.bfk-sch__form { margin-bottom: 20px; }
.bfk-sch__ops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.bfk-sch__op { position: relative; display: inline-flex; cursor: pointer; }
.bfk-sch__op input { position: absolute; opacity: 0; pointer-events: none; }
.bfk-sch__op span {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
    border: 1px solid var(--bfk-border); border-radius: 999px; background: var(--bfk-bg);
    color: var(--bfk-muted); font-size: .85rem; font-weight: 600;
}
.bfk-sch__op input:checked + span { border-color: var(--bfk-primary); background: var(--bfk-primary-soft); color: var(--bfk-primary); }
.bfk-sch__op input:focus-visible + span { outline: 2px solid var(--bfk-primary); outline-offset: 2px; }

/* 게시판별 결과 탭 (코어가 만든 a > strong + span.cnt_cmt) */
.bfk-sch__tabs a { gap: 6px; }
.bfk-sch__tabs strong { font-weight: 600; }
.bfk-sch__tabs .cnt_cmt { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--bfk-soft); color: var(--bfk-muted); font-size: .75rem; font-weight: 700; }
.bfk-sch__tabs a.is-active .cnt_cmt { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- 결과 ---------- */
.bfk-sch__group { margin-top: 26px; }
.bfk-sch__group:first-child { margin-top: 6px; }
.bfk-sch__group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--bfk-text); }
.bfk-sch__board { font-size: 1.05rem; font-weight: 800; }
.bfk-sch__item { padding: 16px 6px; border-bottom: 1px solid var(--bfk-border); }
.bfk-sch__title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bfk-sch__link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bfk-sch__pop { display: inline-flex; flex-shrink: 0; color: var(--bfk-muted); }
.bfk-sch .bfk-sch__text { margin-top: 6px; color: var(--bfk-muted); font-size: .9rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bfk-sch__meta { margin-top: 8px; font-size: .82rem; }
.bfk-sch__name { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfk-sch .sch_word { padding: 0 2px; border-radius: 3px; background: var(--bfk-primary-soft); color: var(--bfk-primary); font-weight: 700; }
.bfk-sch .pg_wrap { margin-top: 26px; }

@media (max-width: 768px) {
    .bfk-sch__form .bfk-select { flex: 1; min-width: 0; }
    .bfk-sch__form .bfk-search__input { flex-basis: 100%; }
    .bfk-sch__link { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .bfk-sch__item { padding: 14px 4px; }
}
