@charset "utf-8";

/* G5 theme/basic/head.php 의 #container_title 과 스킨 제목 중복 제거 */
#container #container_title,
#container_title { display: none !important; }

/* SE modern board tokens — 다크모드/반응형 */
.m-board-list { position: relative; margin-bottom: 20px; color: var(--m-text); }
.m-board-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
    padding-bottom: 14px; border-bottom: 1px solid var(--m-border);
}
.m-board-title { font-size: 22px; margin: 0 0 4px; color: var(--m-text); font-weight: 700; }
.m-board-count { font-size: 13px; color: var(--m-text-muted); margin: 0; }
.m-board-count strong { color: var(--m-text); }
.m-board-actions { display: flex; align-items: center; gap: 8px; }

.m-icon-btn {
    width: auto; min-width: 36px; height: 36px; padding: 0 10px;
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: var(--m-radius); color: var(--m-text-soft);
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; text-decoration: none; font-size: 13px; font-family: inherit;
}
.m-icon-btn:hover { background: var(--m-surface-2); color: var(--m-text); border-color: var(--m-border-hover); }

.m-board-categories, #bo_cate.m-board-categories {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
    padding: 12px; background: var(--m-surface-2); border-radius: var(--m-radius);
}
.m-board-categories h2 { position: absolute; font-size: 0; }
.m-board-categories ul { display: contents; margin: 0; padding: 0; }
.m-board-categories li { list-style: none; display: inline; }
.m-board-categories a, #bo_cate a {
    display: inline-block; padding: 6px 12px;
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: 999px; font-size: 13px; color: var(--m-text-soft); text-decoration: none;
    line-height: 1.4;
}
.m-board-categories a:hover, #bo_cate a:hover { border-color: var(--m-primary); color: var(--m-primary); background: var(--m-surface); }
.m-board-categories #bo_cate_on, #bo_cate #bo_cate_on {
    background: var(--m-primary); border-color: var(--m-primary); color: #fff;
    box-shadow: none; font-weight: 600;
}

.m-board-search-drawer {
    margin-bottom: 16px; padding: 14px;
    background: var(--m-surface-2);
    border: 1px solid var(--m-border); border-radius: var(--m-radius);
}
.m-board-search-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m-board-search-form .m-input { flex: 1; min-width: 160px; }
.m-board-bulk { margin-bottom: 12px; display: flex; gap: 6px; }
.m-bulk-btn {
    padding: 5px 10px; border-radius: var(--m-radius-sm);
    background: transparent; border: 1px solid var(--m-border);
    color: var(--m-text-faint); font-size: var(--m-text-sm); cursor: pointer; font-family: inherit;
}
.m-bulk-btn:hover { background: var(--m-surface-2); color: var(--m-text-soft); }

.m-card {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow);
}
.m-board-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--m-surface); color: var(--m-text); }
.m-board-table thead th {
    padding: 12px 10px; text-align: center; font-weight: 600;
    font-size: 12px; color: var(--m-text-muted);
    background: var(--m-surface-2); border-bottom: 1px solid var(--m-border);
}
.m-board-table thead th a { color: inherit; text-decoration: none; }
.m-board-table tbody tr { border-bottom: 1px solid var(--m-border); }
.m-board-table tbody tr:hover { background: var(--m-surface-2); }
.m-board-table td { padding: 14px 10px; vertical-align: middle; text-align: center; color: var(--m-text); }
.m-col-chk { width: 36px; }
.m-col-num { width: 80px; color: var(--m-text-faint); font-size: 13px; }
.m-board-table thead th.m-col-subject,
.m-board-table tbody td.m-col-subject { text-align: left; }
.m-board-table thead th.m-col-name,
.m-board-table tbody td.m-col-name { text-align: left; }
.m-col-name { width: 110px; color: var(--m-text-soft); font-size: 13px; }
.m-col-meta { width: 70px; color: var(--m-text-muted); font-size: 13px; }
.m-col-date { width: 110px; color: var(--m-text-faint); font-size: 12px; }
@media (max-width: 720px) {
    .m-col-name, .m-col-meta, .m-board-table .m-col-num { display: none; }
}
.m-row-notice { background: rgba(37,99,235,0.04); }
.m-row-current { background: rgba(245,158,11,0.06); }
.m-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.m-badge-notice { background: var(--m-primary-soft); color: var(--m-primary); }
.m-badge-current { background: rgba(245,158,11,0.15); color: #d97706; }
.m-subject-link {
    color: var(--m-text); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
}
.m-subject-link:hover .m-subject-text { color: var(--m-primary); }
.m-comment-count {
    display: inline-block; padding: 1px 7px;
    background: var(--m-surface-2); border-radius: 999px;
    font-size: 11px; color: var(--m-text-muted); font-weight: 600;
}
.m-cate-tag {
    display: inline-block; padding: 2px 8px;
    background: var(--m-surface-2); border: 1px solid var(--m-border);
    border-radius: 4px; font-size: 11px; color: var(--m-text-soft);
    text-decoration: none; margin-right: 6px;
}
.m-icon-pill { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.m-icon-new { background: #ef4444; color: #fff; }
.m-icon-hot { background: #f59e0b; color: #fff; }
.m-board-pagination { margin-top: 24px; display: flex; justify-content: center; }
.m-empty { padding: 48px 16px !important; color: var(--m-text-faint) !important; text-align: center !important; }

/* view — default.css #bo_v {background:#fff} 보다 우선 */
#bo_v,
#bo_v.m-view,
#bo_v.m-card {
    background: var(--m-surface) !important;
    border: 1px solid var(--m-border) !important;
    color: var(--m-text) !important;
    box-sizing: border-box;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow);
}
.m-view-head { padding: 28px 28px 20px; border-bottom: 1px solid var(--m-border); }
.m-view-title { font-size: 26px; margin: 8px 0 12px; color: var(--m-text); font-weight: 700; word-break: break-word; }
.m-view-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--m-text-muted); }
.m-view-name { color: var(--m-text-soft); font-weight: 600; }
.m-view-meta a { color: inherit; text-decoration: none; }
.m-view-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.m-view-kebab { position: relative; }
.m-view-kebab-menu, #bo_v .more_opt {
    display: none; position: absolute; right: 0; top: 42px; z-index: 20;
    min-width: 140px; padding: 6px; margin: 0; list-style: none;
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: var(--m-radius); box-shadow: var(--m-shadow-md);
}
.m-view-kebab-menu li a, #bo_v .more_opt li a {
    display: block; padding: 8px 12px; color: var(--m-text-soft); text-decoration: none; border-radius: 4px;
}
.m-view-kebab-menu li a:hover { background: var(--m-surface-2); color: var(--m-text); }
.m-view-body { padding: 24px 28px; }
.m-view-content, #bo_v_con { color: var(--m-text); line-height: 1.75; }
.m-view-content img, #bo_v_img img, #bo_v_con img { max-width: 100%; height: auto; }
.m-view-images { margin-bottom: 16px; }
.m-view-share { margin-bottom: 16px; }
.m-view-react { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.m-react-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--m-border);
    border-radius: 999px; background: var(--m-surface-2);
    color: var(--m-text-soft); text-decoration: none; font-size: 13px;
}
.m-react-btn:hover { border-color: var(--m-primary); color: var(--m-primary); }
.m-react-toast { display: none; color: var(--m-primary); font-size: 12px; }
.m-view-files { padding: 0 28px 16px; }
.m-view-section-title { font-size: 14px; color: var(--m-text); margin: 0 0 8px; }
.m-view-files ul { list-style: none; margin: 0; padding: 0; }
.m-view-files li {
    padding: 12px 14px; margin-bottom: 8px;
    border: 1px solid var(--m-border); border-radius: var(--m-radius);
    background: var(--m-surface-2);
}
.m-view-files a { color: var(--m-text); text-decoration: none; }
.m-view-files a:hover { color: var(--m-primary); }
.m-view-files span { display: block; margin-top: 4px; font-size: 12px; color: var(--m-text-faint); }
.m-view-nav, .bo_v_nb {
    list-style: none; margin: 0; padding: 8px 28px 0;
    border-top: 1px solid var(--m-border);
}
.m-view-nav li, .bo_v_nb li {
    display: flex; gap: 10px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--m-border);
    color: var(--m-text);
}
.m-view-nav a, .bo_v_nb a { color: var(--m-text); text-decoration: none; }
.m-view-nav a:hover { color: var(--m-primary); }
.nb_tit { color: var(--m-text-muted); font-size: 12px; flex-shrink: 0; }

/* write / comment — default.css 흰 배경 덮어쓰기 */
#bo_w,
#bo_w.m-write,
#bo_vc,
#bo_vc_w {
    background: var(--m-surface) !important;
    border: 1px solid var(--m-border) !important;
    color: var(--m-text) !important;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow);
}
#bo_w input[type=text], #bo_w input[type=password], #bo_w textarea, #bo_w select,
#bo_vc_w textarea, #bo_vc_w input[type=text], #bo_vc_w input[type=password] {
    background: var(--m-surface);
    border: 1px solid var(--m-border-hover);
    color: var(--m-text);
    border-radius: var(--m-radius);
}
#bo_w .frm_info, #bo_w .write_div, #bo_vc, #bo_vc_w { color: var(--m-text); }
#bo_vc article { border-color: var(--m-border); }
#bo_vc header, #bo_vc .cmt_contents { color: var(--m-text); }
#bo_w .btn_submit, #bo_vc_w .btn_submit {
    background: var(--m-primary); border: 0; color: #fff;
    border-radius: var(--m-radius); padding: 10px 16px;
}
#bo_w .btn_cancel {
    background: var(--m-surface-2); border: 1px solid var(--m-border);
    color: var(--m-text-soft); border-radius: var(--m-radius);
}

@media (max-width: 560px) {
    .m-view-head, .m-view-body, .m-view-files, .m-view-nav { padding-left: 16px; padding-right: 16px; }
    .m-view-title { font-size: 20px; }
}
