@charset "utf-8";
/* 블렌더코리아 게시판 공통 (목록 / 보기 / 댓글 / 글쓰기) - 갤러리 게시판과 같은 톤 */

:root { --bd-radius: 14px; --bd-soft: #f1f5f9; }

/* ---------- 공통 버튼 ---------- */
#bk .btn_bo_user .btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--bk-line); border-radius: 999px; background: #fff; color: var(--bk-sub); line-height: 1; transition: border-color .15s, color .15s, background .15s; }
#bk .btn_bo_user .btn:hover { border-color: var(--bk-blue); color: var(--bk-blue); background: #fff; }
#bk .btn_bo_user a[title="글쓰기"] { width: auto; padding: 0 18px; gap: 6px; background: var(--bk-blue); border-color: var(--bk-blue); color: #fff; font-weight: 700; }
#bk .btn_bo_user a[title="글쓰기"]:hover { background: #1e40af; border-color: #1e40af; color: #fff; }
#bk .btn_bo_user a[title="글쓰기"]:after { content: "글쓰기"; font-size: 13px; }
#bk .btn_bo_user a[title="글쓰기"] .sound_only { display: none; }
#bk .more_opt { border: 1px solid var(--bk-line); border-radius: 12px; box-shadow: 0 12px 28px rgba(15,23,42,.14); overflow: hidden; }
#bk .more_opt li button, #bk .more_opt li a { color: var(--bk-text); font-size: 13px; }
#bk .more_opt li:hover { background: var(--bk-bg); }

#bk .btn_submit, #bk a.btn_submit, #bk button.btn_submit { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--bk-blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
#bk .btn_submit:hover { background: #1e40af; }
#bk .btn_cancel, #bk a.btn_cancel { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 26px; border: 1px solid var(--bk-line); border-radius: 999px; background: #fff; color: var(--bk-sub); font-size: 14px; font-weight: 700; line-height: 1; }
#bk .btn_cancel:hover { border-color: var(--bk-text); color: var(--bk-text); }
#bk .btn_b03, #bk a.btn_b03 { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid var(--bk-line); border-radius: 999px; background: #fff; color: var(--bk-sub); font-size: 12px; font-weight: 600; }
#bk .btn_b03:hover { border-color: var(--bk-blue); color: var(--bk-blue); }

/* ---------- 카테고리 / 상단 툴바 (일반 게시판) ---------- */
#bk #bo_list #bo_cate ul { gap: 8px; }
#bk #bo_list #bo_cate a { height: 34px; line-height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13px; box-shadow: none; }
#bk #bo_list #bo_cate a:hover { border-color: var(--bk-blue); color: var(--bk-blue); background: var(--bk-blue-soft); }
#bk #bo_list #bo_cate #bo_cate_on { background: var(--bk-text); border-color: var(--bk-text); color: #fff; box-shadow: none; }
#bk #bo_list #bo_btn_top { margin: 0 0 16px; }
#bk #bo_list #bo_list_total { font-size: 13px; }
#bk #bo_list #bo_list_total strong { color: var(--bk-text); font-weight: 800; }
#bk #bo_list #bo_list_total em { font-style: normal; margin-left: 6px; color: var(--bk-mute); font-size: 12px; }

/* ---------- 목록 (카드형 리스트) ---------- */
#bk #bo_list .tbl_head01 { margin: 0; border: 1px solid var(--bk-line); border-radius: var(--bd-radius); background: #fff; overflow: hidden; }
#bk #bo_list .tbl_head01 table { border-top: 0; border-collapse: collapse; width: 100%; }
#bk #bo_list .tbl_head01 thead th { height: 44px; padding: 0 8px; background: #f8fafc; border: 0; border-bottom: 1px solid var(--bk-line); color: var(--bk-mute); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
#bk #bo_list .tbl_head01 tbody td { height: 58px; padding: 8px; border: 0; border-bottom: 1px solid var(--bd-soft); background: #fff; color: var(--bk-sub); font-size: 13px; transition: background .12s; }
#bk #bo_list .tbl_head01 tbody tr:last-child td { border-bottom: 0; }
#bk #bo_list .tbl_head01 tbody tr:hover td { background: #f8faff; }
#bk #bo_list .tbl_head01 tbody tr.even td { background: #fff; }
#bk #bo_list .tbl_head01 tbody tr.even:hover td { background: #f8faff; }
#bk #bo_list td.td_subject { font-size: 14px; }
#bk #bo_list .bo_tit { display: inline; }
#bk #bo_list .bo_tit a { color: var(--bk-text); font-weight: 600; letter-spacing: -0.02em; }
#bk #bo_list .bo_tit a:hover { color: var(--bk-blue); }
#bk #bo_list .td_num2 { width: 64px; color: var(--bk-mute); }
#bk #bo_list .td_name { width: 120px; color: var(--bk-sub); font-weight: 600; }
#bk #bo_list .td_num { width: 64px; color: var(--bk-mute); }
#bk #bo_list .td_datetime { width: 90px; color: var(--bk-mute); }
#bk #bo_list .td_chk { width: 44px; }
#bk #bo_list .bo_cate_link { margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--bk-blue-soft); color: var(--bk-blue); font-size: 11px; font-weight: 700; line-height: 1.4; }
#bk #bo_list .cnt_cmt { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff7ed; color: var(--bk-orange); font-size: 11px; font-weight: 800; }
#bk #bo_list .cnt_cmt::before, #bk #bo_list .cnt_cmt::after { content: none; }
#bk #bo_list .new_icon { width: auto; height: auto; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #c0ffab; font-size: 10px; line-height: 1.5; }
#bk #bo_list .hot_icon { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #fef2f2; color: #dc2626; font-size: 10px; font-weight: 800; line-height: 1.5; }
#bk #bo_list .bo_notice td, #bk #bo_list .bo_notice.even td { background: #f8fbff; }
#bk #bo_list .bo_notice .notice_icon { padding: 2px 8px; border-radius: 6px; background: var(--bk-blue); font-size: 11px; font-weight: 700; line-height: 1.4; }
#bk #bo_list .bo_notice .bo_tit a { font-weight: 800; }
#bk #bo_list .empty_table { padding: 80px 0; color: var(--bk-mute); font-size: 14px; }
#bk #bo_list .pg_wrap { margin: 28px 0 8px; }

/* 페이지 번호 */
#bk .pg_page, #bk .pg_current { height: 36px; min-width: 36px; line-height: 34px; padding: 0 10px; border-radius: 999px; font-size: 13px; }
#bk .pg_page, #bk .pg_start, #bk .pg_prev, #bk .pg_next, #bk .pg_end { margin: 0 2px; }
#bk .pg_current { font-weight: 700; }

/* ---------- 게시글 보기 ---------- */
#bk #bo_v { max-width: 100%; }
#bk #bo_v_title { padding: 4px 0 18px; border-bottom: 0; }
#bk #bo_v_title .bo_v_cate { padding: 3px 10px; border-radius: 6px; background: var(--bk-blue-soft); font-size: 12px; line-height: 1.4; }
#bk #bo_v_title .bo_v_tit { margin-top: 10px; font-size: 26px; line-height: 1.35; letter-spacing: -0.04em; }
#bk #bo_v_info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0; padding: 14px 0; border-top: 1px solid var(--bk-line); border-bottom: 1px solid var(--bk-line); }
#bk #bo_v_info h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#bk #bo_v_info .profile_info { display: flex; align-items: center; gap: 12px; float: none; margin: 0; }
#bk #bo_v_info .pf_img { float: none; margin: 0; }
#bk #bo_v_info .pf_img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
#bk #bo_v_info .profile_info_ct { float: none; margin: 0; line-height: 1.7; }
#bk #bo_v_info .profile_info_ct strong { margin-right: 10px; color: var(--bk-sub); font-size: 12px; font-weight: 600; }
#bk #bo_v_info .profile_info_ct strong:first-of-type { color: var(--bk-text); font-size: 14px; font-weight: 800; }
#bk #bo_v_info .if_date { color: var(--bk-mute); }
#bk #bo_v_top { float: none; margin: 0; flex:1; }
#bk #bo_v_top ul { margin: 0; }
#bk #bo_v_atc { min-height: 160px; padding: 28px 0 12px; }
#bk #bo_v_share { float: none; margin: 0 0 14px; text-align: right; }
#bk #bo_v_con { font-size: 15px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
#bk #bo_v_con img, #bk #bo_v_img img { max-width: 100%; height: auto; border-radius: 12px; }
#bk #bo_v_img { margin: 0 0 18px; text-align: center; }
#bk #bo_v_file li, #bk #bo_v_link li { border-radius: 10px; border-color: var(--bk-line); background: #f8fafc; }
#bk #bo_v_act { margin: 32px 0; }
#bk #bo_v_act a, #bk #bo_v_act .bo_v_good, #bk #bo_v_act .bo_v_nogood { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 88px; height: 42px; padding: 0 20px; border: 1px solid var(--bk-line); border-radius: 999px; background: #fff; color: var(--bk-sub); font-weight: 700; }
#bk #bo_v_act a:hover { border-color: var(--bk-blue); background: var(--bk-blue-soft); color: var(--bk-blue); }
#bk .bo_v_nb { margin: 28px 0 0; border: 1px solid var(--bk-line); border-radius: var(--bd-radius); overflow: hidden; border-top: 1px solid var(--bk-line); }
#bk .bo_v_nb li { display: flex; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--bd-soft); font-size: 13px; }
#bk .bo_v_nb li:last-child { border-bottom: 0; }
#bk .bo_v_nb li:hover { background: #f8faff; }
#bk .bo_v_nb .nb_tit { flex: none; width: 94px; color: var(--bk-mute); font-weight: 700; }
#bk .bo_v_nb a { color: var(--bk-text); font-weight: 600; }
#bk .bo_v_nb .nb_date { margin-left: auto; color: var(--bk-mute); }

/* ---------- 댓글 ---------- */
#bk #bo_vc { margin: 32px 0 0; }
#bk #bo_vc > h2, #bk #bo_vc_w > h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
#bk #bo_vc article { padding: 16px 0; border-bottom: 1px solid var(--bd-soft); }
#bk #bo_vc .cmt_contents, #bk #bo_vc p { color: var(--bk-text); font-size: 14px; line-height: 1.75; }
#bk #bo_vc .pf_img img { border-radius: 50%; }
#bk #bo_vc header { margin-bottom: 4px; }
#bk #bo_vc header .member, #bk #bo_vc header .guest, #bk #bo_vc header .sv_member { font-weight: 800; color: var(--bk-text); }
#bk #bo_vc .bo_vc_hdinfo { color: var(--bk-mute); font-size: 12px; }
#bk .bo_vc_w { margin: 20px 0 0; padding: 16px; border: 1px solid var(--bk-line); border-radius: var(--bd-radius); background: #fff; }
#bk .bo_vc_w textarea { width: 100%; min-height: 100px; padding: 12px 14px; border: 1px solid var(--bk-line); border-radius: 10px; font-size: 14px; resize: vertical; box-shadow: none; }
#bk .bo_vc_w textarea:focus { border-color: var(--bk-blue) !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#bk .bo_vc_w .btn_submit { height: 40px; padding: 0 22px; }

/* ---------- 글쓰기 ---------- */
#bk #bo_w { padding: 4px 0 0; }
#bk #bo_w .write_div { margin: 0 0 14px; }
#bk #bo_w .frm_input, #bk #bo_w select, #bk #bo_w input[type=text], #bk #bo_w input[type=password] { height: 46px; padding: 0 14px; border: 1px solid var(--bk-line); border-radius: 10px; background: #fff; color: var(--bk-text); font-size: 14px; box-shadow: none; }
#bk #bo_w .frm_input:focus, #bk #bo_w select:focus { border-color: var(--bk-blue) !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#bk #bo_w #wr_subject { font-size: 16px; font-weight: 700; }
#bk #bo_w .bo_w_flie .frm_file, #bk #bo_w .bo_w_flie .file_wr { border-radius: 10px; border-color: var(--bk-line); }
#bk #bo_w .bo_v_option li label { font-size: 13px; }
#bk #bo_w .btn_confirm { display: flex; justify-content: center; gap: 10px; margin: 28px 0 0; }
#bk #bo_w .btn_confirm .btn_submit, #bk #bo_w .btn_confirm .btn_cancel { min-width: 120px; height: 46px; line-height: 1; }

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
    #bk #bo_list .tbl_head01 { border-radius: 12px; }
    #bk #bo_list .tbl_head01 table, #bk #bo_list .tbl_head01 tbody { display: block; }
    #bk #bo_list .tbl_head01 thead { display: none; }
    #bk #bo_list .tbl_head01 tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 14px 16px; border-bottom: 1px solid var(--bd-soft); }
    #bk #bo_list .tbl_head01 tbody tr:last-child { border-bottom: 0; }
    #bk #bo_list .tbl_head01 tbody td { display: block; width: auto; height: auto; padding: 0; border: 0; background: transparent !important; text-align: left; font-size: 12px; }
    #bk #bo_list .tbl_head01 tbody td.td_num2, #bk #bo_list .tbl_head01 tbody td.td_num ~ td.td_num { display: none; }
    #bk #bo_list .tbl_head01 tbody td.td_chk { order: -1; width: 28px; }
    #bk #bo_list .tbl_head01 tbody td.chk_box { display: block; }
    #bk #bo_list .tbl_head01 tbody td.td_subject { order: 0; flex: 1 1 100%; padding: 0 0 4px !important; font-size: 14px; line-height: 1.5; }
    #bk #bo_list .tbl_head01 tbody td.td_name { order: 1; width: auto; color: var(--bk-sub); }
    #bk #bo_list .tbl_head01 tbody td.td_datetime { order: 2; width: auto; }
    #bk #bo_list .tbl_head01 tbody td.td_num { order: 3; width: auto; }
    #bk #bo_list .tbl_head01 tbody td.td_datetime:before, #bk #bo_list .tbl_head01 tbody td.td_num:before { content: "·"; margin: 0 6px; color: var(--bk-mute); }
    #bk #bo_list .tbl_head01 tbody td.td_num:after { content: "회"; }
    #bk #bo_list .tbl_head01 tbody td.td_num:before { content: "· 조회 "; margin: 0 6px 0 6px; }
    #bk #bo_list .empty_table { display: block; width: 100%; }
    #bk #bo_list .tbl_head01 tbody tr:has(.empty_table) { display: block; }
    #bk #bo_v_title .bo_v_tit { font-size: 21px; }
    #bk .bo_v_nb li { padding: 12px 14px; }
    #bk .bo_v_nb .nb_date { display: none; }
}

/* =========================================================
   게시판 페이지 레이아웃 + 우측 사이드
   ========================================================= */
#bk .bk-sub-main { border-radius: 14px; padding: 26px 28px 32px; }
#bk .bk-sub-body.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
#bk .bk-sub-title { border-bottom-width: 0; padding-bottom: 14px; margin-bottom: 18px; font-size: 22px; font-weight: 800; position: relative; }
#bk .bk-sub-title:after { content: ""; display: block; width: 36px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--bk-blue); }

#bk .bk-sub-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; position: sticky; top: 16px; }
#bk .bk-sd-card { min-width: 0; padding: 18px; border: 1px solid var(--bk-line); border-radius: 14px; background: #fff; overflow: hidden; }
#bk .bk-sd-hd { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: var(--bk-text); }
#bk .bk-sd-hd .fa { color: var(--bk-orange); margin-right: 2px; }

/* 계정 */
#bk .bk-sd-acct { padding: 18px; }
#bk .bk-sd-msg { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--bk-sub); }
#bk .bk-sd-btns { display: flex; gap: 8px; }
#bk .bk-sd-btns a { flex: 1; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; font-size: 13px; font-weight: 700; }
#bk .bk-sd-btns .is-line { border: 1px solid var(--bk-line); background: #fff; color: var(--bk-text); }
#bk .bk-sd-btns .is-line:hover { border-color: var(--bk-blue); color: var(--bk-blue); }
#bk .bk-sd-btns .is-fill { background: var(--bk-blue); border: 1px solid var(--bk-blue); color: #fff; }
#bk .bk-sd-btns .is-fill:hover { background: #1e40af; }
#bk .bk-sd-user { display: flex; align-items: center; gap: 12px; }
#bk .bk-sd-id { min-width: 0; }
#bk .bk-sd-id strong { display: block; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bk .bk-sd-id span { font-size: 12px; color: var(--bk-sub); }
#bk .bk-sd-id b { color: var(--bk-blue); font-weight: 700; }
#bk .bk-sd-links { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bd-soft); font-size: 12px; font-weight: 600; color: var(--bk-blue); }

/* 메뉴 */
#bk .bk-sd-menu { margin: 0 -6px; padding: 0; list-style: none; }
#bk .bk-sd-menu li a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--bk-sub); }
#bk .bk-sd-menu li a:hover { background: var(--bk-bg); color: var(--bk-text); }
#bk .bk-sd-menu li.is-on a { background: var(--bk-blue-soft); color: var(--bk-blue); font-weight: 800; }

/* 인기글 */
#bk .bk-sd-top { margin: 0; padding: 0; list-style: none; }
#bk .bk-sd-top li + li { border-top: 1px solid var(--bd-soft); }
#bk .bk-sd-top a { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
#bk .bk-sd-top .no { flex: none; width: 20px; height: 20px; border-radius: 6px; background: #f1f5f9; color: var(--bk-sub); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
#bk .bk-sd-top .no.is-top { background: var(--bk-blue); color: #fff; }
#bk .bk-sd-top .tit { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--bk-text); }
#bk .bk-sd-top a:hover .tit { color: var(--bk-blue); }
#bk .bk-sd-top .hit { flex: none; font-size: 11px; color: var(--bk-mute); }
#bk .bk-sub-side .bk-banner { border-radius: 14px; }

@media (max-width: 980px) {
    #bk .bk-sub-body.has-side { grid-template-columns: minmax(0, 1fr); }
    #bk .bk-sub-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    #bk .bk-sd-acct { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    #bk .bk-sub-main { border-radius: 0; padding: 18px 14px 24px; }
    #bk .bk-sub-title { font-size: 19px; }
    #bk .bk-sub-side { padding: 0 14px; grid-template-columns: minmax(0, 1fr); }
    #bk .bk-sub-side .bk-banner { display: none; }
}
#bk .bk-sub-side .bk-banner { width: 100%; max-width: 100%; overflow: hidden; }
#bk .bk-sub-side .bk-banner img { display: block; width: 100%; max-width: 100%; height: auto; }

/* ---------- 옵션(⋮) 팝업: 기본 숨김 / 세로 목록 ---------- */
/* sub.css 의 `#bo_v_top ul { display:flex }` 규칙이 팝업 ul 까지 덮어 항상 열려 있던 문제 보정 */
#bk #bo_v_top ul.more_opt, #bk #bo_v_bot ul.more_opt, #bk #bo_btn_top ul.more_opt, #bk .bo_fx ul.more_opt {
    display: none; flex-direction: column; gap: 0; position: absolute; top: 46px; right: 0; z-index: 999;
    width: 150px; min-width: 150px; margin: 0; padding: 6px; border: 1px solid var(--bk-line); border-radius: 12px;
    background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.16); list-style: none; overflow: hidden;
}
#bk ul.more_opt:before, #bk ul.more_opt:after { display: none; }
#bk ul.more_opt > li { float: none; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; }
#bk ul.more_opt > li a, #bk ul.more_opt > li button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--bk-text); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
#bk ul.more_opt > li i { float: none; line-height: 1; color: var(--bk-mute); }
#bk ul.more_opt > li:hover { background: var(--bk-bg); }
#bk ul.more_opt > li:hover a, #bk ul.more_opt > li:hover button { color: var(--bk-blue); }

/* =========================================================
   자동등록방지 (KCAPTCHA / reCAPTCHA) - 가입, 글쓰기, 댓글 공통
   ========================================================= */
#bk fieldset#captcha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "img key rel mp3" "info info info info"; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; position: relative; }
#bk fieldset#captcha legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
#bk #captcha #captcha_img { grid-area: img; display: block; width: auto; max-width: 100%; height: 48px; margin: 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; object-fit: contain; }
#bk #captcha #captcha_key { grid-area: key; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0f172a; font-size: 20px; font-weight: 800; letter-spacing: .3em; text-align: center; box-shadow: none; }
#bk #captcha #captcha_key:focus { border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#bk #captcha #captcha_reload, #bk #captcha #captcha_mp3 { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; font-size: 0; line-height: 1; text-indent: 0; cursor: pointer; overflow: hidden; transition: border-color .15s, color .15s, background .15s; }
#bk #captcha #captcha_reload { grid-area: rel; }
#bk #captcha #captcha_mp3 { grid-area: mp3; }
#bk #captcha #captcha_reload:hover, #bk #captcha #captcha_mp3:hover { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
#bk #captcha #captcha_reload span, #bk #captcha #captcha_mp3 span { display: inline-block !important; width: auto; height: auto; font-size: 17px; }
#bk #captcha #captcha_reload span:before { font-family: FontAwesome; content: "\f021"; }
#bk #captcha #captcha_mp3 span:before { font-family: FontAwesome; content: "\f028"; }
#bk #captcha #captcha_info { grid-area: info; display: block; margin: 0; font-size: 12px; letter-spacing: 0; color: #94a3b8; }
#bk #captcha audio { grid-column: 1 / -1; width: 100%; height: 36px; margin: 0; }

/* reCAPTCHA */
#bk fieldset#captcha.recaptcha { display: flex; justify-content: center; padding: 14px 0; background: transparent; border: 0; }
#bk .g-recaptcha { display: flex; justify-content: center; }

@media (max-width: 480px) {
    #bk fieldset#captcha { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img rel" "key key" "info info"; padding: 12px; }
    #bk #captcha #captcha_mp3 { display: none; }
    #bk #captcha #captcha_img, #bk #captcha.m_captcha #captcha_img { width: 100%; height: auto; max-height: 64px; margin: 0; }
    #bk #captcha.m_captcha #captcha_key { width: 100%; margin: 0; height: 48px; }
    #bk #captcha.m_captcha #captcha_reload { position: static; margin: 0; width: 44px; height: 44px; background: #fff; }
    #bk .g-recaptcha { transform: scale(.9); transform-origin: center top; }
}

/* =========================================================
   댓글 목록 / 댓글 쓰기 리디자인
   ========================================================= */

/* 댓글 헤더 (접기/펼치기) */
#bk .cmt_btn { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 36px 0 6px; padding: 0 0 14px; border: 0; border-bottom: 1px solid #e2e8f0; background: transparent; text-align: left; cursor: pointer; }
#bk .cmt_btn .total { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #1d4ed8; font-weight: 800; position: relative; }
#bk .cmt_btn .total b { font-size: 18px; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; }
#bk .cmt_btn .total:after { display: none; }
#bk .cmt_btn .cmt_more { float: none; width: 28px; height: 28px; margin: 0; border-radius: 50%; background: #f1f5f9; position: relative; }
#bk .cmt_btn .cmt_more:before { content: "\f107"; font-family: FontAwesome; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 16px; transition: transform .2s; }
#bk .cmt_btn.cmt_btn_op .cmt_more:before { transform: rotate(180deg); }

/* 댓글 목록 */
#bk #bo_vc { margin: 0; }
#bk #bo_vc article { display: flex; align-items: flex-start; gap: 14px; position: relative; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid #f1f5f9; background: transparent; }
#bk #bo_vc article:after { display: none; }
#bk #bo_vc article .pf_img { float: none; flex: none; margin: 0; }
#bk #bo_vc article .pf_img img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
#bk #bo_vc article .cm_wrap { float: none; flex: 1; width: auto; max-width: none; min-width: 0; padding-right: 36px; }
#bk #bo_vc header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; width: auto; margin: 0 0 6px; }
#bk #bo_vc header:after { display: none; }
#bk #bo_vc header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#bk #bo_vc .member, #bk #bo_vc .guest, #bk #bo_vc .sv_member, #bk #bo_vc .sv_guest { font-size: 14px; font-weight: 800; color: #0f172a; }
#bk #bo_vc .bo_vc_hdinfo { font-size: 12px; color: #94a3b8; }
#bk #bo_vc .cmt_contents { padding: 0 0 4px; }
#bk #bo_vc .cmt_contents p { margin: 0; font-size: 14px; line-height: 1.75; color: #1e293b; word-break: break-all; }
/* 대댓글: 들여쓰기된 댓글을 카드로 구분 */
#bk #bo_vc article[style*="margin-left"] { margin-top: 8px; padding: 16px 16px; border: 0; border-radius: 14px; background: #f8fafc; }
#bk #bo_vc article[style*="margin-left"] .pf_img img { width: 36px; height: 36px; }
#bk #bo_vc #bo_vc_empty { padding: 56px 0 !important; color: #94a3b8; font-size: 14px; }

/* 댓글 옵션(⋮) */
#bk #bo_vc .bo_vl_opt { position: absolute; top: 14px; right: 0; }
#bk #bo_vc article[style*="margin-left"] .bo_vl_opt { right: 10px; top: 12px; }
#bk #bo_vc .btn_cm_opt { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #94a3b8; cursor: pointer; }
#bk #bo_vc .btn_cm_opt:hover { background: #f1f5f9; color: #0f172a; }
#bk #bo_vc .bo_vc_act { top: 36px; right: 0; width: 120px; margin: 0; padding: 6px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.16); text-align: left; list-style: none; z-index: 50; }
#bk #bo_vc .bo_vc_act:before, #bk #bo_vc .bo_vc_act:after { display: none; }
#bk #bo_vc .bo_vc_act li { border: 0; }
#bk #bo_vc .bo_vc_act li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #1e293b; }
#bk #bo_vc .bo_vc_act li a:hover { background: #f4f6fa; color: #1d4ed8; }

/* 댓글 쓰기 영역 */
#bk .bo_vc_w:empty { display: none; margin: 0; padding: 0; border: 0; }
#bk aside#bo_vc_w { margin: 22px 0 0; padding: 18px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
#bk span.bo_vc_w:not(:empty) { display: block; margin: 12px 0 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
#bk .bo_vc_w h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#bk .bo_vc_w #char_cnt { display: block; margin: 0 0 6px; font-size: 12px; color: #94a3b8; text-align: right; }
#bk .bo_vc_w textarea { display: block; width: 100%; min-height: 110px; height: 110px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: 14px; line-height: 1.7; resize: vertical; box-shadow: none; background-image: none; }
#bk .bo_vc_w textarea:focus { background: #fff; border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#bk .bo_vc_w textarea::placeholder, #bk .bo_vc_w .frm_input::placeholder { color: #94a3b8; }
#bk .bo_vc_w .required, #bk .bo_vc_w .frm_input.required { background-image: none; }

#bk .bo_vc_w_wr { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
#bk .bo_vc_w_wr:after { display: none; }
#bk .bo_vc_w_info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; float: none; width: 100%; margin: 0; }
#bk .bo_vc_w_info:empty { display: none; }
#bk .bo_vc_w_info:after { display: none; }
#bk .bo_vc_w_info .frm_input { float: none; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: 14px; box-shadow: none; }
#bk .bo_vc_w_info .frm_input:focus { background: #fff; border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#bk .bo_vc_w_info #captcha, #bk .bo_vc_w_info fieldset#captcha { grid-column: 1 / -1; padding-top: 14px; }
#bk .bo_vc_w .btn_confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; clear: none; margin: 0; }
#bk .bo_vc_w .btn_submit { height: 44px; padding: 0 26px; border-radius: 999px; font-size: 14px; }

/* 비밀글 체크 */
#bk .bo_vc_w .secret_cm { position: relative; display: inline-flex; align-items: center; }
#bk .bo_vc_w .secret_cm label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; }
#bk .bo_vc_w .secret_cm label span { position: relative; float: none; top: auto; left: auto; display: inline-block; width: 20px; height: 20px; margin: 0; border: 1.5px solid #cbd5e1; border-radius: 6px; background: #fff; }
#bk .bo_vc_w .secret_cm input:checked + label span { background: #1d4ed8; border-color: #1d4ed8; }
#bk .bo_vc_w .secret_cm input:checked + label span:after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
#bk .bo_vc_w .secret_cm input:checked + label { color: #1d4ed8; }

@media (max-width: 640px) {
    #bk aside#bo_vc_w { padding: 14px; border-radius: 16px; }
    #bk .bo_vc_w_info { grid-template-columns: minmax(0, 1fr); }
    #bk #bo_vc article { gap: 10px; }
    #bk #bo_vc article .pf_img img { width: 36px; height: 36px; }
    #bk #bo_vc article[style*="margin-left"] { padding: 12px; }
    #bk .cmt_btn .total b { font-size: 16px; }
}

/* 목록 표 제목(caption): 화면에는 숨김 (모바일에서 세로로 늘어서던 문제) */
#bk .tbl_head01 caption, #bk .tbl_wrap caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }

/* mobile-write-unify: 모바일에서는 상단 툴바의 글쓰기 버튼을 숨기고 하단 글쓰기 버튼으로 통일 */
#bk #bo_list_total, #bk #bo_btn_top #bo_list_total { white-space: nowrap; }
@media (max-width: 768px) {
    #bk #bo_btn_top .btn_bo_user a[title="글쓰기"] { display: none; }
    #bk #bo_btn_top { gap: 8px; }
    #bk .bo_fx { margin-top: 16px; }
    #bk .bo_fx .btn_bo_user { width: 100%; justify-content: flex-end; }
    #bk .bo_fx .btn_bo_user a[title="글쓰기"] { height: 46px; padding: 0 24px; font-size: 14px; }
}

/* 작성자 이름 버튼 + 클릭 메뉴 */
.bk-un { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: inherit; color: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.bk-un:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
#bk-un-menu { display: none; position: absolute; z-index: 2000; min-width: 168px; padding: 6px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.18); }
#bk-un-menu .bk-un-head { padding: 8px 12px 6px; font-size: 12px; font-weight: 800; color: #94a3b8; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bk-un-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #1e293b; text-decoration: none; }
#bk-un-menu a i { width: 16px; text-align: center; color: #94a3b8; }
#bk-un-menu a:hover { background: #f4f6fa; color: #1d4ed8; }
#bk-un-menu a:hover i { color: #1d4ed8; }
#bk #bo_vc header .bk-un { font-size: 14px; font-weight: 800; color: #0f172a; }
#bk #bo_vc header .bk-un:hover { color: #1d4ed8; }
#bk .td_name .bk-un { font-weight: 600; color: #475569; }
#bk .gall_name .bk-un { color: #64748b; font-weight: 600; }
