@charset "utf-8";

/* ==========================================================================
   그누보드7(G7) 테마 - 게시판 스킨 (skin/board/g7)
   ========================================================================== */

/* --------------------------------------------------------------------------
   목록
   -------------------------------------------------------------------------- */
#bo_list {
    position: relative;
    margin: 0 0 24px;
    width: 100% !important;
}
#bo_list .tbl_wrap {
    overflow-x: auto;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow-xs);
}
#bo_list table {
    width: 100%;
    min-width: 640px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}
#bo_list caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
#bo_list thead th {
    padding: 14px 12px;
    border-bottom: 1px solid var(--m-border);
    background: var(--m-surface-2);
    color: var(--m-muted);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
#bo_list thead th a { color: var(--m-muted); }
#bo_list thead th a:hover { color: var(--m-primary); }
#bo_list tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--m-border);
    color: var(--m-text-soft);
    font-size: 14px;
    vertical-align: middle;
}
#bo_list tbody tr:last-child td { border-bottom: 0; }
#bo_list tbody tr:hover td { background: var(--m-surface-2); }
#bo_list tbody .even td { background: transparent; }

#bo_list td.td_num2 { width: 64px; text-align: center; color: var(--m-muted); font-size: 12.5px; }
#bo_list td.td_num { width: 56px; text-align: center; color: var(--m-muted); font-size: 12.5px; }
#bo_list td.td_name { width: 110px; color: var(--m-muted); font-size: 13px; }
#bo_list td.td_datetime { width: 84px; text-align: center; color: var(--m-muted); font-size: 12.5px; }
#bo_list td.td_chk { width: 40px; text-align: center; }
#bo_list td.td_subject { text-align: left; }

#bo_list .bo_notice td,
#bo_list .bo_notice:hover td { background: var(--m-primary-soft); }

.notice_icon {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--m-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.bo_current {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--m-surface-2);
    color: var(--m-muted);
    font-size: 11px;
    font-weight: 700;
}

#bo_list .bo_tit { display: inline; }
#bo_list .bo_tit > a {
    color: var(--m-text);
    font-size: 14.5px;
    font-weight: 600;
}
#bo_list .bo_tit > a:hover { color: var(--m-primary); }
#bo_list .bo_tit img { vertical-align: middle; margin-left: 4px; }

.bo_cate_link {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--m-primary-soft);
    color: var(--m-primary);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.bo_cate_link:hover { background: var(--m-primary); color: #fff; }

.cnt_cmt {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--m-surface-2);
    color: var(--m-primary);
    font-size: 11.5px;
    font-weight: 700;
    vertical-align: middle;
}
.new_icon,
.hot_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}
.new_icon { background: var(--m-danger); }
.hot_icon { background: var(--m-warning); }

/* 카테고리 */
#bo_cate {
    display: inline-block;
    margin: 0 0 16px;
    padding: 4px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-pill);
    background: var(--m-surface);
}
#bo_cate h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#bo_cate ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
#bo_cate li { display: inline-block; padding: 0; }
#bo_cate a {
    display: block;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--m-muted);
    font-size: 13px;
    font-weight: 600;
}
#bo_cate a:hover { background: var(--m-surface-2); color: var(--m-primary); text-decoration: none; }
#bo_cate #bo_cate_on,
#bo_cate .bo_cate_on {
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
    color: #fff;
    box-shadow: var(--m-shadow-sm);
}

/* 목록 상단 버튼 / 총 건수 */
#bo_btn_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}
#bo_list_total {
    float: none;
    color: var(--m-muted);
    font-size: 13px;
}
.btn_bo_user,
#bo_list .bo_fx .btn_bo_user {
    float: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#bo_list .btn_bo_user li {
    float: none;
    width: auto;
    margin: 0;
    background: none;
    position: relative;
}
#bo_list .btn_bo_user .btn,
#bo_list .btn_bo_user .btn_b01,
#bo_list .btn_bo_user .btn_admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: transparent;
    color: var(--m-muted);
    font-size: 14px;
}
#bo_list .btn_bo_user .btn:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
    transform: none;
    box-shadow: var(--m-shadow-sm);
}
.bo_fx {
    float: none;
    display: flex;
    justify-content: flex-end;
    margin: 16px 0 0;
}

/* 관리자 선택 옵션 드롭다운 */
.more_opt {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    min-width: 148px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
}
#bo_list .btn_bo_user .more_opt li,
#bo_v_top .btn_bo_user .more_opt li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}
.more_opt a,
.more_opt button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--m-text-soft);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
.more_opt a i,
.more_opt button i {
    float: none;
    flex: 0 0 auto;
    margin: 0;
    color: var(--m-muted);
    line-height: 1;
}
.more_opt a:hover,
.more_opt button:hover { background: var(--m-surface-2); color: var(--m-primary); }
.more_opt a:hover i,
.more_opt button:hover i { color: var(--m-primary); }

/* 게시판 검색 */
.bo_sch_wrap {
    display: none;
    position: relative;
    margin: 0 0 16px;
}
.bo_sch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow-xs);
}
.bo_sch h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.bo_sch select { width: auto; min-width: 120px; }
.bo_sch .sch_bar {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bo_sch .sch_input { flex: 1 1 auto; }
.bo_sch .sch_btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--m-radius-sm);
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
    color: #fff;
    cursor: pointer;
}
.bo_sch .bo_sch_cls {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--m-surface-2);
    color: var(--m-muted);
    cursor: pointer;
}
.bo_sch_bg { display: none; }

/* --------------------------------------------------------------------------
   게시물 보기
   -------------------------------------------------------------------------- */
#bo_v {
    margin: 0 0 24px;
    padding: 28px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow-xs);
    width: 100% !important;
}
#bo_v_title { margin: 0 0 16px; }
#bo_v_title .bo_v_cate {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--m-primary-soft);
    color: var(--m-primary);
    font-size: 12.5px;
    font-weight: 700;
}
#bo_v_title .bo_v_tit {
    display: block;
    margin: 10px 0 0;
    color: var(--m-text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
    word-break: break-all;
}

#bo_v_info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--m-border);
    color: var(--m-muted);
}
#bo_v_info h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#bo_v_info .profile_info {
    float: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
#bo_v_info .profile_info .pf_img { float: none; margin: 0; }
#bo_v_info .profile_info .pf_img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
#bo_v_info .profile_info .profile_info_ct {
    float: none;
    padding: 0;
    line-height: 1.7;
    font-size: 13px;
}
#bo_v_info strong { display: inline-block; margin: 0 8px 0 0; font-weight: 600; color: var(--m-text-soft); }
#bo_v_info .sv_member,
#bo_v_info .sv_guest,
#bo_v_info .member,
#bo_v_info .guest { font-weight: 700; color: var(--m-text); }
#bo_v_info .profile_img { display: none; }
#bo_v_info .if_date { color: var(--m-muted); }

#bo_v_top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 16px 0 0;
}
#bo_v_top .btn_bo_user { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; float: none; }
#bo_v_top .btn_bo_user li { float: none; width: auto; margin: 0; position: relative; }
#bo_v_top .btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: transparent;
    color: var(--m-muted);
    font-size: 14px;
}
#bo_v_top .btn_bo_user .btn:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
    transform: none;
    box-shadow: var(--m-shadow-sm);
}

#bo_v_atc {
    min-height: 120px;
    padding: 24px 0;
    border-bottom: 1px solid var(--m-border);
    color: var(--m-text-soft);
    font-size: 15px;
    line-height: 1.8;
}
#bo_v_atc_title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#bo_v_con { width: 100%; margin-top: 15px; word-break: break-all; }
#bo_v_con img { max-width: 100%; height: auto; }

/* 첨부파일 / 링크 */
#bo_v_file,
#bo_v_link {
    margin: 0;
    padding: 18px 0 0;
    border-bottom: 1px solid var(--m-border);
    padding-bottom: 18px;
}
#bo_v_file h2,
#bo_v_link h2 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
}
#bo_v_file ul,
#bo_v_link ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
#bo_v_file li,
#bo_v_link li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface-2);
    font-size: 13.5px;
}
#bo_v_file li:last-child,
#bo_v_link li:last-child { margin-bottom: 0; }
#bo_v_file a,
#bo_v_link a { color: var(--m-text-soft); }
#bo_v_file a:hover,
#bo_v_link a:hover { color: var(--m-primary); }
.bo_v_file_cnt,
.bo_v_link_cnt { color: var(--m-muted); font-size: 12.5px; }

/* 이전/다음 글 */
.bo_v_nb {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--m-border);
    list-style: none;
}
.bo_v_nb li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
}
.bo_v_nb li + li { border-top: 1px solid var(--m-border); }
.bo_v_nb .nb_tit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 76px;
    color: var(--m-muted);
    font-size: 13px;
    font-weight: 600;
}
.bo_v_nb li > a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--m-text-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bo_v_nb li > a:hover { color: var(--m-primary); }
.bo_v_nb .nb_date { flex: 0 0 auto; color: var(--m-muted); font-size: 12.5px; }

/* 추천 / 비추천 */
#bo_v_act {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 0;
}
#bo_v_act .bo_v_act_gng {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    color: var(--m-text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: all .18s ease;
}
#bo_v_act .bo_v_act_gng:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
    box-shadow: var(--m-shadow-sm);
}
#bo_v_act_good,
#bo_v_act_nogood {
    display: none;
    margin: 12px 0 0;
    text-align: center;
    color: var(--m-primary);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   댓글
   -------------------------------------------------------------------------- */
#bo_vc {
    margin: 0;
    padding: 24px 0 0;
}
#bo_vc > h2,
#bo_vc > h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
}
#bo_vc > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
#bo_vc article {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    margin: 0 0 12px;
    padding: 16px 52px 16px 16px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface-2);
}
#bo_vc .pf_img { margin: 0; }
#bo_vc .pf_img img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
#bo_vc .cm_wrap { min-width: 0; }
#bo_vc article header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--m-muted);
}
#bo_vc article header h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.bo_vc_hdinfo { color: var(--m-muted); font-size: 12.5px; }
.cmt_contents {
    margin: 0;
    color: var(--m-text-soft);
    font-size: 14px;
    line-height: 1.7;
}
.cmt_contents p { margin: 0; }
.cmt_contents img { max-width: 100%; height: auto; }
#bo_vc .bo_vl_opt { position: absolute; top: 12px; right: 12px; }
#bo_vc .btn_cm_opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    color: var(--m-muted);
    cursor: pointer;
}
#bo_vc .btn_cm_opt:hover { border-color: var(--m-primary); color: var(--m-primary); }
.bo_vc_act {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    min-width: 96px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
    font-size: 13px;
}
.bo_vc_act li { margin: 0; }
.bo_vc_act a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--m-text-soft); }
.bo_vc_act a:hover { background: var(--m-surface-2); color: var(--m-primary); }
#bo_vc_empty {
    margin: 0 0 12px;
    padding: 24px;
    border: 1px dashed var(--m-border);
    border-radius: var(--m-radius-sm);
    color: var(--m-muted);
    text-align: center;
    font-size: 14px;
}

/* 댓글 입력 */
#bo_vc_w {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
}
.bo_vc_w_info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.bo_vc_w_info .frm_input { width: auto; min-width: 140px; margin: 0; }
#bo_vc_w_wr { margin-bottom: 10px; }
#bo_vc_w_wr textarea,
#bo_vc_w #wr_content { width: 100%; min-height: 90px; }
.bo_vc_w .btn_confirm,
#bo_vc_w .btn_confirm { display: flex; justify-content: flex-end; gap: 8px; }
.cmt_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 24px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    color: var(--m-text);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.cmt_btn .total b { margin-right: 4px; color: var(--m-primary); }
#bo_vc_w > h2 {
    margin: 0 0 12px;
    color: var(--m-text);
    font-size: 16px;
    font-weight: 800;
}
.secret_cm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* --------------------------------------------------------------------------
   글쓰기
   -------------------------------------------------------------------------- */
#bo_w { margin: 0; }
#bo_w .bo_w_select,
#bo_w .bo_w_tit,
#bo_w > form > .write_div,
#bo_w .bo_w_flie { margin-bottom: 14px; }
#bo_w .bo_w_select select { width: 100%; max-width: 280px; }
.bo_w_info { display: flex; flex-wrap: wrap; gap: 10px; }
.bo_w_info .frm_input { flex: 1 1 200px; margin: 0; }

#bo_w .bo_v_option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#bo_w .bo_v_option li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
#bo_w .bo_v_option label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#autosave_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
#autosave_wrapper .frm_input { flex: 1 1 auto; width: auto; min-width: 0; }
#bo_w #btn_autosave.btn_frmline {
    position: static;
    flex: 0 0 auto;
    width: auto;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface-2);
    color: var(--m-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 40px;
    white-space: nowrap;
    cursor: pointer;
}
#bo_w #btn_autosave.btn_frmline:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
}

#bo_w .bo_w_link { position: relative; }
#bo_w .bo_w_link label {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    width: auto;
    height: auto;
    margin: 0;
    transform: translateY(-50%);
    line-height: 1;
}
#bo_w .bo_w_link .frm_input { width: 100%; padding-left: 40px; }

#bo_w .bo_w_flie { display: block; }
#bo_w .file_wr {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
#bo_w .bo_w_flie .lb_icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    transform: translateY(-50%);
    color: var(--m-muted);
    font-size: 14px;
    line-height: 1;
}
#bo_w .frm_file { width: 100%; }
#bo_w .file_del { display: block; margin-top: 6px; font-size: 12.5px; color: var(--m-muted); }

#bo_w .wr_content { width: 100%; min-height: 320px; }
#char_count_desc { display: block; margin: 0 0 6px; color: var(--m-muted); font-size: 12.5px; }
#char_count_wrap { margin: 6px 0 0; text-align: right; color: var(--m-muted); font-size: 12.5px; }
#char_count { color: var(--m-primary); font-weight: 700; }

.btn_confirm.write_div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--m-border);
}
#container #bo_w .btn_confirm .btn_submit,
#container #bo_w .btn_confirm .btn_cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 110px;
    height: 44px;
    margin: 0;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
#container #bo_w .btn_confirm .btn_submit {
    border: 1px solid var(--m-primary);
    background: var(--m-primary);
    color: #fff;
    cursor: pointer;
}
#container #bo_w .btn_confirm .btn_cancel {
    border: 1px solid var(--m-border);
    background: var(--m-surface);
    color: var(--m-text-soft);
}
#container #bo_w .btn_confirm .btn_submit:hover { color: #fff; background: var(--m-primary); }
#container #bo_w .btn_confirm .btn_cancel:hover { border-color: var(--m-primary); color: var(--m-primary); }

/* 자동저장 팝업 */
#autosave_wrapper { position: relative; }
#autosave_pop {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    z-index: 20;
    width: 320px;
    max-height: 260px;
    overflow: hidden;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
}
#autosave_pop strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#autosave_pop ul { margin: 0; padding: 10px; max-height: 200px; overflow-y: auto; list-style: none; }
#autosave_pop li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid var(--m-border);
    font-size: 13px;
}
#autosave_pop li:last-child { border-bottom: 0; }
#autosave_pop span { color: var(--m-muted); font-size: 12px; }
.autosave_close {
    width: 100%;
    padding: 10px;
    border: 0;
    border-top: 1px solid var(--m-border);
    background: var(--m-surface-2);
    color: var(--m-muted);
    font-size: 13px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   반응형 (게시판)
   - 좁은 화면에서는 목록 테이블을 가로 스크롤로 사용합니다.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    #bo_v { padding: 20px; }
    #bo_v_title .bo_v_tit { font-size: 20px; }
    .bo_w_info .frm_input { flex: 1 1 100%; }
    #autosave_wrapper { flex-wrap: wrap; }
    #bo_w #btn_autosave.btn_frmline { width: 100%; }
    #bo_vc_w { padding: 14px; }
    .btn_confirm.write_div { flex-direction: column-reverse; }
    .btn_confirm .btn_submit,
    .btn_confirm .btn_cancel { width: 100%; }
}
@media (max-width: 480px) {
    .bo_v_nb .nb_date { display: none; }
}

/* --------------------------------------------------------------------------
   FAQ 목록 (아코디언)
   -------------------------------------------------------------------------- */
.faq-container { margin: 0; }
.faq-allchk {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--m-muted);
    font-size: 13px;
    font-weight: 600;
}
.faq {
    position: relative;
    margin: 0 0 12px;
    padding: 22px 64px 22px 22px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow-xs);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq:last-child { margin-bottom: 0; }
.faq.active {
    border-color: var(--m-primary);
    box-shadow: var(--m-shadow-sm);
}
.faq-title {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--m-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
.faq-title a { color: inherit; }
.faq-title a:hover { color: var(--m-primary); }
.faq-chk { flex: 0 0 auto; margin-top: 4px; }
.faq-text {
    display: none;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--m-border);
    color: var(--m-text-soft);
    font-size: 14.5px;
    line-height: 1.75;
}
.faq.active .faq-text { display: block; }
.faq-text img { max-width: 100%; height: auto; }
.faq-container .empty_table {
    margin: 0;
    padding: 48px 16px;
    border: 1px dashed var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    color: var(--m-muted);
    text-align: center;
}
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: 50%;
    background: var(--m-surface-2);
    color: var(--m-muted);
    font-size: 14px;
    cursor: pointer;
}
.faq-toggle:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
}
.faq-toggle:focus { outline: 0; }
.faq-toggle .xi-close { display: none; }
.faq.active .faq-toggle {
    border-color: var(--m-primary);
    background: var(--m-primary);
    color: #fff;
}
.faq.active .faq-toggle .xi-close { display: block; color: #fff; }
.faq.active .faq-toggle .xi-angle-down { display: none; }
