@charset "utf-8";
/* ==========================================================================
   선올아이티 게시판 스킨 (corp)
   theme/seonol/skin/board/corp/style.css

   테마 style.css 의 --dc-* 변수를 그대로 사용한다.
   ========================================================================== */

.cb { font-size: 15px; color: var(--dc-body); }
.cb-desc {
    margin-bottom: 22px; padding: 16px 20px;
    background: var(--dc-bg-alt); border-radius: var(--dc-radius);
    font-size: 15px; color: var(--dc-body);
}

/* ---------- 툴바 / 검색 ---------- */
.cb-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.cb-count { font-size: 14px; color: var(--dc-muted); }
.cb-count strong { color: var(--dc-text); }

.cb-search { display: flex; gap: 6px; }
.cb-search-select, .cb-search-input {
    height: 40px; padding: 0 12px; font-family: inherit; font-size: 14px;
    border: 1px solid var(--dc-line); border-radius: 8px; background: #fff; color: var(--dc-text);
}
.cb-search-input { width: 200px; }
.cb-search-select:focus, .cb-search-input:focus {
    outline: none; border-color: var(--dc-primary); box-shadow: 0 0 0 3px rgba(23,135,168,.1);
}
.cb-search-btn {
    height: 40px; padding: 0 18px; border: 0; border-radius: 8px;
    background: var(--dc-navy); color: #fff; font-size: 14px; font-weight: 600;
}
.cb-search-btn:hover { background: var(--dc-primary); }

/* ---------- 카테고리 탭 ---------- */
.cb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cb-cat {
    padding: 7px 16px; border: 1px solid var(--dc-line); border-radius: 20px;
    font-size: 14px; color: var(--dc-body); background: #fff;
}
.cb-cat:hover { border-color: var(--dc-primary); color: var(--dc-primary); }
.cb-cat.active { background: var(--dc-primary); border-color: var(--dc-primary); color: #fff; font-weight: 600; }

/* ---------- 목록 ---------- */
.cb-list { border-top: 2px solid var(--dc-text); }
.cb-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 18px 8px; border-bottom: 1px solid var(--dc-line);
    color: var(--dc-text); transition: background .14s ease;
}
.cb-item:hover { background: #fafbfe; }
.cb-item.is-notice { background: var(--dc-primary-soft); }
.cb-item-body { flex: 1; min-width: 0; }
.cb-item-title {
    display: block; font-size: 16px; font-weight: 600; color: var(--dc-text);
    line-height: 1.5;
}
.cb-item:hover .cb-item-title { color: var(--dc-primary); }
.cb-item-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cb-item-meta em { font-style: normal; font-size: 13px; color: var(--dc-muted); }

.cb-badge {
    flex-shrink: 0; padding: 3px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 700; background: var(--dc-primary); color: #fff;
    margin-top: 3px;
}
.cb-badge-cat { background: var(--dc-bg-alt); color: var(--dc-body); border: 1px solid var(--dc-line); }
.cb-reply { color: var(--dc-muted); margin-right: 4px; }
.cb-ico  { font-size: 13px; margin-left: 4px; }
.cb-cmt  { color: var(--dc-primary); font-size: 14px; margin-left: 5px; font-weight: 700; }
.cb-new  { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--dc-accent); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.cb-hot  { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: var(--dc-danger); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; }

.cb-empty { padding: 60px 20px; text-align: center; color: var(--dc-muted); border-bottom: 1px solid var(--dc-line); }

.cb-foot { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ---------- 갤러리 ---------- */
.cb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- FAQ ---------- */
.cb-faq { border-top: 2px solid var(--dc-text); }
.cb-faq-item { border-bottom: 1px solid var(--dc-line); }
.cb-faq-q {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 20px 8px; background: none; border: 0; text-align: left;
}
.cb-faq-q:hover .cb-faq-subject { color: var(--dc-primary); }
.cb-faq-mark {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    background: var(--dc-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.cb-faq-mark.is-a { background: var(--dc-bg-alt); color: var(--dc-primary); border: 1px solid var(--dc-line); }
.cb-faq-subject { flex: 1; font-size: 16px; font-weight: 600; color: var(--dc-text); line-height: 1.5; }
.cb-faq-subject em { font-style: normal; color: var(--dc-muted); font-weight: 500; font-size: 14px; }
.cb-faq-arrow { color: var(--dc-muted); transition: transform .2s ease; }
.cb-faq-item.open .cb-faq-arrow { transform: rotate(180deg); }
.cb-faq-a {
    display: none; gap: 14px; padding: 4px 8px 24px 8px;
}
.cb-faq-item.open .cb-faq-a { display: flex; }
.cb-faq-content { flex: 1; font-size: 15px; line-height: 1.85; color: var(--dc-body); padding-top: 3px; }
.cb-faq-content img { max-width: 100%; }

/* ---------- 게시글 보기 ---------- */
.cb-view-head { padding-bottom: 20px; border-bottom: 2px solid var(--dc-text); }
.cb-view-title { font-size: 27px; margin-top: 10px; line-height: 1.4; }
.cb-view-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.cb-view-meta span { font-size: 14px; color: var(--dc-muted); }
.cb-view-meta strong { color: var(--dc-text); }

.cb-sitelink {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 20px; padding: 14px 18px;
    background: var(--dc-primary-soft); border-radius: var(--dc-radius);
}
.cb-sitelink-label {
    font-size: 12px; font-weight: 700; color: var(--dc-primary);
    padding: 3px 10px; background: #fff; border-radius: 20px;
}
.cb-sitelink-url {
    flex: 1; min-width: 160px; font-size: 15px; color: var(--dc-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-sitelink-url:hover { color: var(--dc-primary); text-decoration: underline; }

.cb-view-body {
    padding: 36px 4px; min-height: 200px;
    font-size: 16px; line-height: 1.9; color: var(--dc-body);
    border-bottom: 1px solid var(--dc-line);
    overflow-wrap: break-word;
}
.cb-view-body img { max-width: 100%; height: auto; }
.cb-view-body table { width: 100%; margin: 16px 0; }
.cb-view-body table th, .cb-view-body table td { padding: 12px 14px; border: 1px solid var(--dc-line); font-size: 15px; text-align: left; }
.cb-view-body table th { background: var(--dc-bg-alt); width: 130px; white-space: nowrap; }
.cb-view-body a { text-decoration: underline; }

.cb-files { margin-top: 20px; padding: 18px 20px; background: var(--dc-bg-alt); border-radius: var(--dc-radius); }
.cb-files > strong { display: block; margin-bottom: 10px; font-size: 14px; color: var(--dc-text); }
.cb-file { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.cb-file img { width: 60px; height: 40px; object-fit: cover; border-radius: 5px; }
.cb-file span { color: var(--dc-muted); font-size: 13px; }

.cb-like { text-align: center; margin: 30px 0; }
.cb-like-btn {
    padding: 12px 28px; border: 1px solid var(--dc-line); border-radius: 30px;
    background: #fff; font-size: 15px; color: var(--dc-text); font-weight: 600;
}
.cb-like-btn:hover { border-color: var(--dc-primary); color: var(--dc-primary); }
.cb-like-btn b { color: var(--dc-primary); }

.cb-prevnext { margin-top: 34px; border-top: 1px solid var(--dc-line); }
.cb-prevnext > div {
    display: flex; gap: 16px; align-items: center;
    padding: 15px 8px; border-bottom: 1px solid var(--dc-line); font-size: 15px;
}
.cb-prevnext > div > span { flex-shrink: 0; width: 62px; font-size: 13px; color: var(--dc-muted); font-weight: 600; }
.cb-prevnext a { color: var(--dc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-prevnext a:hover { color: var(--dc-primary); }
.cb-prevnext em { font-style: normal; color: var(--dc-muted); font-size: 14px; }

.cb-view-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.cb-view-actions > div { display: flex; gap: 8px; }
.cb-danger:hover { border-color: var(--dc-danger) !important; color: var(--dc-danger) !important; }

/* ---------- 댓글 ---------- */
.cb-comments { margin-top: 52px; padding-top: 28px; border-top: 2px solid var(--dc-text); }
.cb-comments-title { font-size: 18px; margin-bottom: 18px; }
.cb-cmt-item { padding: 16px 0; border-bottom: 1px solid var(--dc-line); }
.cb-cmt-head { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--dc-muted); }
.cb-cmt-head strong { font-size: 14px; color: var(--dc-text); }
.cb-cmt-body { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--dc-body); }
.cb-cmt-actions { margin-top: 8px; display: flex; gap: 12px; }
.cb-link { background: none; border: 0; padding: 0; font-size: 13px; color: var(--dc-muted); font-family: inherit; }
.cb-link:hover { color: var(--dc-primary); }
.cb-cmt-form { margin-top: 12px; }
.cb-cmt-form[hidden] { display: none; }
.cb-cmt-new { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--dc-line); }
.cb-cmt-submit { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 10px; }

/* ---------- 글쓰기 ---------- */
.cb-write-title { font-size: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--dc-text); }
.cb-write-files { margin-top: 10px; padding: 14px 16px; background: var(--dc-bg-alt); border-radius: 8px; font-size: 14px; }
.cb-write-files > strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--dc-text); }
.cb-write-files span { color: var(--dc-muted); font-size: 13px; }
.cb-write-file {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0; border-bottom: 1px dashed var(--dc-line); cursor: pointer;
}
.cb-write-file:last-of-type { border-bottom: 0; }
.cb-del-mark { font-size: 12px; color: var(--dc-danger); font-weight: 600; }
.cb-write-file input:checked ~ .cb-del-mark { text-decoration: none; }
.cb-thumb-badge {
    margin-left: auto; padding: 2px 9px; border-radius: 20px;
    background: var(--dc-primary); color: #fff !important; font-size: 11px; font-weight: 700;
}
.cb-write-files-hint { margin-top: 10px; font-size: 13px; color: var(--dc-muted); line-height: 1.7; }
.cb-write-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

/* ---------- 페이지네이션 (코어 bp_pagination 출력용) ---------- */
.bp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.bp-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--dc-line); border-radius: 8px;
    font-size: 14px; color: var(--dc-body); background: #fff;
}
a.bp-page-btn:hover { border-color: var(--dc-primary); color: var(--dc-primary); }
.bp-page-active {
    background: var(--dc-primary); border-color: var(--dc-primary); color: #fff; font-weight: 700;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
    .cb-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .cb-toolbar { flex-direction: column; align-items: stretch; }
    .cb-search { width: 100%; }
    .cb-search-input { flex: 1; width: auto; }
    .cb-gallery { grid-template-columns: 1fr; }
    .cb-view-title { font-size: 21px; }
    .cb-view-body { padding: 26px 0; font-size: 15px; }
    .cb-item-title { font-size: 15px; }
    .cb-prevnext > div > span { width: 50px; font-size: 12px; }
    .cb-view-actions { flex-direction: column-reverse; }
    .cb-view-actions > div { justify-content: space-between; }
    .cb-view-actions .dc-btn { flex: 1; }
}
