@charset "utf-8";

/* ================================================
   책을담다 | 게시판 스킨 CSS
   Noto Sans KR / 캡처 디자인 기준
   ================================================ */

/* ── 공통 변수 ── */
:root {
  --bbs-main:       #1A5276;
  --bbs-main-dark:  #0F2F45;
  --bbs-aqua:       #1ABC9C;
  --bbs-peach:      #E8916A;
  --bbs-peach-lt:   #F5CDB5;
  --bbs-beige:      #F5F0E8;
  --bbs-text:       #2C3E50;
  --bbs-text-sub:   #7F8C8D;
  --bbs-border:     #E8ECEF;
  --bbs-border-top: #2C3E50;
  --bbs-bg:         #FFFFFF;
  --bbs-bg-even:    #FAFBFC;
  --bbs-bg-notice:  #FFFBF5;
  --bbs-r:          6px;
  --bbs-tr:         0.2s ease;
}

/* ── 폰트 ── */
#bo_list, #bo_v, #bo_w, #bo_vc, #bo_vc_w,
.bo_sch, .cmt_btn {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  font-size: 14px;
  color: var(--bbs-text);
  line-height: 1.7;
}

/* ================================================
   1. 목록 (list.skin.php)
   ================================================ */

#bo_list { position: relative; margin-bottom: 24px; }
#bo_list::after { display: block; visibility: hidden; clear: both; content: ""; }

/* ── 상단 영역: 제목 + 검색 ── */
#bo_btn_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bbs-border-top);
}
#bo_btn_top::after { display: none; }

#bo_list_total {
  float: none;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bbs-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
#bo_list_total span { font-family: 'Noto Serif KR', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--bbs-text); }

/* 상단 버튼 그룹 */
.btn_bo_user {
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.btn_bo_user li {
  float: none;
  width: auto;
  margin: 0;
  background: none;
  position: relative;
}
.btn_bo_user > li { position: relative; }

/* ── 검색 인라인 (상단) ── */
#bo_btn_top .btn_bo_user {
  display: flex;
  align-items: center;
  gap: 0;
}

/* 검색 입력 + 버튼 inline */
.bbs-search-inline {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--bbs-border);
  border-radius: var(--bbs-r);
  overflow: hidden;
  background: #fff;
}
.bbs-search-inline .sch_input {
  border: none;
  outline: none;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--bbs-text);
  background: transparent;
  width: 200px;
}
.bbs-search-inline .sch_input::placeholder { color: #BDC3C7; }
.bbs-search-inline .sch_btn {
  height: 40px;
  padding: 0 18px;
  background: var(--bbs-main);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: background var(--bbs-tr);
  white-space: nowrap;
}
.bbs-search-inline .sch_btn:hover { background: var(--bbs-main-dark); }
.bbs-search-inline .sch_btn i { margin-right: 4px; }

/* ── 목록·보기·글쓰기 상단 여백 ── */
#bo_list  { padding-top: 30px; }
#bo_v     { padding-top: 30px; }
#bo_w     { padding-top: 30px; }

/* ── 테이블 ── */
.tbl_head01.tbl_wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl_head01 table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;   /* colgroup 폭 지정을 위해 fixed 유지 */
}
.tbl_head01 caption {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* colgroup 컬럼 폭 — list.skin.php <colgroup> 참조 */
#bo_list col.col_chk      { width: 44px; }   /* 체크박스 */
#bo_list col.col_num      { width: 70px; }   /* 번호 */
#bo_list col.col_cate     { width: 90px; }   /* 구분(카테고리) */
#bo_list col.col_subject  { width: auto; }   /* 제목: 남은 공간 전부 */
#bo_list col.col_good     { width: 60px; }   /* 추천 */
#bo_list col.col_nogood   { width: 60px; }   /* 비추천 */
#bo_list col.col_datetime { width: 110px; }  /* 등록일 */

/* thead */
.tbl_head01 thead tr {
  border-top: 1px solid var(--bbs-border);
  border-bottom: 1px solid var(--bbs-border);
}
.tbl_head01 thead th {
  padding: 13px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bbs-text-sub);
  text-align: center;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.tbl_head01 thead th a { color: var(--bbs-text-sub); text-decoration: none; }

/* tbody */
.tbl_head01 tbody tr {
  border-bottom: 1px solid var(--bbs-border);
  transition: background var(--bbs-tr);
}
.tbl_head01 tbody tr:hover { background: #F7F9FC; }
.tbl_head01 tbody .even td { background: transparent; }

.tbl_head01 tbody td {
  padding: 15px 10px;
  vertical-align: middle;
  font-size: 14px;
  color: var(--bbs-text);
  overflow: hidden;
}

/* 컬럼 정렬 및 기본 스타일 */
#bo_list .td_chk     { text-align: center; padding: 0; }
#bo_list .td_num2    { text-align: center; color: var(--bbs-text-sub); font-size: 13px; }
#bo_list .td_subject { text-align: left; padding-left: 14px; }
#bo_list .td_name    { text-align: center; font-size: 13px; color: var(--bbs-text-sub); }
#bo_list .td_num     { text-align: center; font-size: 13px; color: var(--bbs-text-sub); }
#bo_list .td_datetime {
  text-align: center;
  font-size: 13px;
  color: var(--bbs-text-sub);
  white-space: nowrap;
}

/* 제목 컬럼 */
.td_subject { text-align: left; }
.bo_tit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bo_tit a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bbs-text);
  text-decoration: none;
  transition: color var(--bbs-tr);
}
.bo_tit a:hover { color: var(--bbs-main); }

/* 카테고리 뱃지 (분류) */
.bo_cate_link {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(26,82,118,0.08);
  color: var(--bbs-main);
  margin-right: 6px;
  text-decoration: none;
  float: none;
  height: auto;
  line-height: 1.4;
}
.bo_cate_link:hover { background: var(--bbs-main); color: #fff; text-decoration: none; }

/* 공지 아이콘 */
.notice_icon {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bbs-peach);
  color: #fff;
}
.bo_notice td { background: var(--bbs-bg-notice) !important; }
.bo_notice .bo_tit a { font-weight: 600; }

/* N 아이콘 */
.new_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--bbs-aqua);
  flex-shrink: 0;
}

/* 댓글 수 */
.cnt_cmt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(26,82,118,0.08);
  color: var(--bbs-main);
  flex-shrink: 0;
}

/* 아이콘들 */
#bo_list .bo_tit .fa-download,
#bo_list .bo_tit .fa-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; font-size: 11px;
}
#bo_list .bo_tit .fa-download { color: #D4784F; background: #FDE8DC; }
#bo_list .bo_tit .fa-link     { color: #7B5EA7; background: #EEE3F7; }
#bo_list .bo_tit .hot_icon    { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 11px; color: #C0392B; background: #FADBD8; }
#bo_list .bo_tit .fa-lock     { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 11px; color: var(--bbs-main); background: rgba(26,82,118,0.1); }

/* 현재 열람중 */
.bo_current { color: var(--bbs-peach); font-weight: 700; font-size: 13px; }

/* ── 하단 버튼 ── */
.bo_fx { float: none; margin: 20px 0 0; display: flex; justify-content: flex-end; }
.bo_fx::after { display: none; }
.bo_fx ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bo_fx ul li { float: none; width: auto; margin: 0; background: none; }

/* ── 공통 btn ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--bbs-r);
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--bbs-tr);
  border: 1.5px solid var(--bbs-border);
  background: #fff;
  color: var(--bbs-text);
  white-space: nowrap;
}
.btn:hover { border-color: var(--bbs-main); color: var(--bbs-main); }
.btn_b01 { background: #fff; border-color: var(--bbs-border); color: var(--bbs-text-sub); }
.btn_b01:hover { background: var(--bbs-main); border-color: var(--bbs-main); color: #fff; }
.btn_admin { background: #fff; border-color: #e0e0e0; color: #999; }
.btn_cancel { background: #f5f5f5; border-color: #ddd; color: var(--bbs-text-sub); }
.btn_cancel:hover { background: #e8e8e8; }
.btn_submit {
  background: var(--bbs-main);
  border-color: var(--bbs-main);
  color: #fff;
  font-weight: 600;
}
.btn_submit:hover { background: var(--bbs-main-dark); border-color: var(--bbs-main-dark); }

/* ── 더보기 옵션 ── */
.more_opt {
  display: none;
  position: absolute;
  top: 48px; right: 0;
  background: #fff;
  border: 1px solid var(--bbs-border);
  border-radius: var(--bbs-r);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 999;
  min-width: 110px;
  padding: 4px 0;
}
.more_opt::before { display: none; }
.more_opt::after  { display: none; }
.more_opt li {
  float: none; width: auto; margin: 0; padding: 0;
  border-bottom: 1px solid #f5f5f5;
}
.more_opt li:last-child { border-bottom: none; }
.more_opt li button,
.more_opt li a {
  display: block; width: 100%; padding: 9px 14px;
  font-size: 13.5px; color: var(--bbs-text);
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: 'Noto Sans KR', sans-serif;
  transition: background var(--bbs-tr);
}
.more_opt li button:hover,
.more_opt li a:hover { background: var(--bbs-beige); color: var(--bbs-main); }
.more_opt li i { float: right; }

/* ── 페이지 ── */
.pg_wrap { margin: 24px 0; text-align: center; }
.pg_wrap a, .pg_wrap strong, .pg_wrap span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px;
  margin: 0 2px; padding: 0 6px;
  border-radius: var(--bbs-r);
  font-size: 13.5px;
  border: 1.5px solid var(--bbs-border);
  background: #fff;
  color: var(--bbs-text-sub);
  text-decoration: none;
  transition: all var(--bbs-tr);
}
.pg_wrap a:hover { border-color: var(--bbs-main); color: var(--bbs-main); background: rgba(26,82,118,0.04); }
.pg_wrap strong { background: var(--bbs-main); border-color: var(--bbs-main); color: #fff; font-weight: 700; }
.pg_wrap .pg_prev, .pg_wrap .pg_next,
.pg_wrap .pg_start, .pg_wrap .pg_end { border-color: var(--bbs-border); }

/* ── 카테고리 ── */
#bo_cate { margin: 0 0 20px; }
#bo_cate h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_cate ul::after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_cate li { display: inline-block; padding: 3px; }
#bo_cate a {
  display: block; line-height: 1;
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--bbs-border);
  color: var(--bbs-text-sub); font-size: 13.5px;
  transition: all var(--bbs-tr); text-decoration: none;
}
#bo_cate a:hover,
#bo_cate #bo_cate_on { background: var(--bbs-main); color: #fff; border-color: var(--bbs-main); font-weight: 600; box-shadow: none; }

/* ── 검색창 (오버레이) ── */
.bo_sch_wrap { display: none; width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 999; }
.bo_sch {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; width: 340px; margin: 0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid var(--bbs-border);
  overflow: hidden;
}
.bo_sch h3 { padding: 16px 20px; border-bottom: 1px solid var(--bbs-border); font-size: 15px; font-weight: 700; color: var(--bbs-text); }
.bo_sch form { padding: 16px 20px; }
.bo_sch legend { display: none; }
.bo_sch select {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--bbs-border); border-radius: var(--bbs-r);
  font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
  color: var(--bbs-text); background: #fff; box-shadow: none;
}
.bo_sch .sch_bar {
  display: flex; margin-top: 12px;
  border: 1.5px solid var(--bbs-border); border-radius: var(--bbs-r);
  overflow: hidden; box-shadow: none;
}
.bo_sch .sch_input {
  flex: 1; height: 40px; padding: 0 12px;
  border: none; outline: none;
  font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
  color: var(--bbs-text); background: transparent; float: none; width: auto;
}
.bo_sch .sch_btn {
  height: 40px; padding: 0 16px;
  background: var(--bbs-main); color: #fff;
  border: none; font-size: 16px; cursor: pointer;
  float: none; width: auto;
  transition: background var(--bbs-tr);
}
.bo_sch .sch_btn:hover { background: var(--bbs-main-dark); }
.bo_sch .bo_sch_cls {
  position: absolute; right: 0; top: 0;
  border: none; padding: 14px 16px; font-size: 18px;
  background: transparent; color: var(--bbs-text-sub); cursor: pointer;
}
.bo_sch_bg { background: rgba(0,0,0,0.3); width: 100%; height: 100%; }

/* 체크박스 공통 */
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; outline: 0; z-index: -1; overflow: hidden; }
.chk_box { position: relative; }
.chk_box input[type="checkbox"] + label { position: relative; color: var(--bbs-text-sub); }
.chk_box input[type="checkbox"] + label span { float: left; width: 16px; height: 16px; display: block; background: #fff; border: 1.5px solid #D0D4DF; border-radius: 3px; }
.write_div .chk_box input[type="checkbox"] + label,
.bo_vc_w .chk_box input[type="checkbox"] + label { padding-left: 22px; }
.write_div .chk_box input[type="checkbox"] + label span,
.bo_vc_w .chk_box input[type="checkbox"] + label span { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; display: block; margin: 0; }
.chk_box input[type="checkbox"]:checked + label { color: var(--bbs-text); }
.chk_box input[type="checkbox"]:checked + label span { background: url(./img/chk.png) no-repeat 50% 50% var(--bbs-main); border-color: var(--bbs-main); }

/* ================================================
   2. 보기 (view.skin.php)
   ================================================ */

#bo_v { position: relative; margin-bottom: 24px; }

/* ── 제목 ── */
#bo_v header { border-bottom: 2px solid var(--bbs-border-top); padding-bottom: 0; margin-bottom: 0; }
#bo_v_title {
  font-size: 22px; font-weight: 700;
  color: var(--bbs-text); line-height: 1.4;
  padding: 20px 0 16px; margin: 0;
  letter-spacing: -0.01em;
}
.bo_v_cate {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  background: rgba(26,82,118,0.08); color: var(--bbs-main);
  margin-right: 8px; vertical-align: middle;
}
.bo_v_tit { vertical-align: middle; }

/* ── 정보 영역 ── */
#bo_v_info {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bbs-border);
}
#bo_v_info h2 { position: absolute; font-size: 0; overflow: hidden; }
.profile_info { display: flex; align-items: center; gap: 12px; }
.pf_img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.profile_info_ct { font-size: 13.5px; color: var(--bbs-text-sub); line-height: 1.6; }
.profile_info_ct strong { color: var(--bbs-text); }
.profile_info_ct a { color: var(--bbs-text-sub); text-decoration: none; }
.profile_info_ct .if_date { display: inline; }
.profile_info_ct i { margin-right: 3px; }

/* 상단 버튼 */
#bo_v_top { flex-shrink: 0; }
#bo_v_top .btn_bo_user { flex-wrap: wrap; gap: 6px; }
.bo_v_com .btn_b01 { font-size: 13px; padding: 7px 14px; }

/* ── 본문 ── */
#bo_v_atc { padding: 28px 0; border-bottom: 1px solid var(--bbs-border); }
#bo_v_atc_title { position: absolute; font-size: 0; overflow: hidden; }
#bo_v_share { padding: 0 0 16px; }
#bo_v_share::after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_v_con {
  font-size: 15px; line-height: 1.9; color: var(--bbs-text);
  word-break: break-word; overflow-wrap: break-word;
}
#bo_v_con img { max-width: 100%; height: auto; }
#bo_v_con a { color: var(--bbs-main); }

/* ── 추천/비추천 ── */
#bo_v_act {
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid var(--bbs-border);
}
#bo_v_act a, #bo_v_act span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 6px;
  padding: 10px 24px; border-radius: 30px;
  border: 1.5px solid var(--bbs-border);
  font-size: 14px; color: var(--bbs-text-sub);
  text-decoration: none;
  transition: all var(--bbs-tr); cursor: pointer;
}
#bo_v_act a:hover { border-color: var(--bbs-peach); color: var(--bbs-peach); background: #FFF5F0; }
#bo_v_act i { font-size: 1.2em; }
#bo_v_act strong { font-weight: 700; margin-left: 4px; }
#bo_v_act_good, #bo_v_act_nogood {
  display: none; position: absolute; top: 36px; left: 0; z-index: 9999;
  padding: 8px 14px; background: var(--bbs-peach); color: #fff;
  border-radius: var(--bbs-r); font-size: 13px; white-space: nowrap;
}
.bo_v_good, .bo_v_nogood { width: auto !important; line-height: 1 !important; }

/* ── 첨부파일 ── */
#bo_v_file {
  padding: 16px 0;
  border-bottom: 1px solid var(--bbs-border);
}
#bo_v_file h2 {
  font-size: 13px; font-weight: 700;
  color: var(--bbs-text-sub); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 10px;
}
#bo_v_file ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
#bo_v_file li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px;
  background: var(--bbs-beige);
  border-radius: var(--bbs-r);
  font-size: 13.5px;
}
#bo_v_file li i { margin-right: 6px; color: var(--bbs-main); }
#bo_v_file .view_file_download { color: var(--bbs-text); text-decoration: none; }
#bo_v_file .view_file_download:hover { color: var(--bbs-main); text-decoration: underline; }
#bo_v_file .view_file_download strong { font-weight: 600; }
.bo_v_file_cnt { font-size: 12px; color: var(--bbs-text-sub); }

/* ── 관련링크 ── */
#bo_v_link { padding: 16px 0; border-bottom: 1px solid var(--bbs-border); }
#bo_v_link h2 { font-size: 13px; font-weight: 700; color: var(--bbs-text-sub); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
#bo_v_link ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
#bo_v_link li { padding: 10px 14px; background: var(--bbs-beige); border-radius: var(--bbs-r); font-size: 13.5px; }
#bo_v_link li i { margin-right: 6px; color: var(--bbs-main); }
#bo_v_link li a { color: var(--bbs-main); text-decoration: none; }
#bo_v_link li a:hover { text-decoration: underline; }
.bo_v_link_cnt { font-size: 12px; color: var(--bbs-text-sub); display: block; margin-top: 3px; }

/* ── 이전/다음글 ── */
.bo_v_nb {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--bbs-border);
}
.bo_v_nb li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bbs-border);
  font-size: 13.5px;
}
.bo_v_nb li:last-child { border-bottom: none; }
.nb_tit {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 72px; font-size: 12.5px;
  color: var(--bbs-text-sub); flex-shrink: 0;
}
.bo_v_nb a {
  color: var(--bbs-text); text-decoration: none;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--bbs-tr);
}
.bo_v_nb a:hover { color: var(--bbs-main); }
.nb_date { font-size: 12px; color: var(--bbs-text-sub); flex-shrink: 0; }

/* ================================================
   3. 댓글 (view_comment.skin.php)
   ================================================ */

/* ── 댓글 토글 버튼 ── */
.cmt_btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  border: none; border-bottom: 1px solid var(--bbs-border);
  background: #fff;
  padding: 16px 0 14px; margin: 24px 0 0;
  font-size: 15px; font-weight: 700; color: var(--bbs-text);
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
}
.cmt_btn span.total {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: var(--bbs-main); margin: 0;
}
.cmt_btn span.total b { font-size: 15px; color: var(--bbs-text); }
.cmt_btn span.total::after {
  position: absolute; bottom: -16px; left: 0;
  display: block; background: var(--bbs-main);
  content: ""; width: 100%; height: 2px;
}
.cmt_btn span.cmt_more {
  float: none; display: inline-block; width: 16px; height: 10px;
  background: url(./img/btn_cmt.png) no-repeat right 2px;
  margin: 0;
}
.cmt_btn_op span.cmt_more { background-position: right -8px; }

/* ── 댓글 목록 ── */
#bo_vc { }
#bo_vc h2 { position: absolute; font-size: 0; overflow: hidden; }

#bo_vc article {
  display: flex; gap: 12px;
  padding: 16px 0;
  position: relative;
  border-bottom: 1px solid var(--bbs-border);
}
#bo_vc article::after { display: none; }

#bo_vc article .pf_img { flex-shrink: 0; }
#bo_vc article .pf_img img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

#bo_vc article .cm_wrap {
  flex: 1; float: none; max-width: none; width: auto;
}

#bo_vc header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; width: 100%;
}
#bo_vc header::after { display: none; }
#bo_vc header h2 { position: absolute; font-size: 0; overflow: hidden; }
#bo_vc .member, #bo_vc .guest,
#bo_vc .sv_member, #bo_vc .sv_guest { font-size: 13.5px; font-weight: 700; color: var(--bbs-text); }
.bo_vc_hdinfo { font-size: 12.5px; color: var(--bbs-text-sub); }
.bo_vc_hdinfo i { margin-right: 3px; }

#bo_vc .cmt_contents {
  font-size: 14px; line-height: 1.8;
  color: var(--bbs-text); padding: 0 0 8px;
}
#bo_vc p a { text-decoration: underline; }

#bo_vc_empty {
  padding: 48px 0 !important;
  text-align: center; color: var(--bbs-text-sub);
  font-size: 14px;
}

/* 댓글 옵션 버튼 */
.bo_vl_opt { position: absolute; top: 14px; right: 0; }
.btn_cm_opt {
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; color: var(--bbs-text-sub); font-size: 16px;
  border-radius: 4px; transition: background var(--bbs-tr);
}
.btn_cm_opt:hover { background: var(--bbs-beige); color: var(--bbs-text); }

.bo_vc_act {
  display: none; position: absolute; right: 0; top: 34px;
  background: #fff; border: 1px solid var(--bbs-border);
  border-radius: var(--bbs-r); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none; padding: 4px 0; margin: 0; z-index: 9999; min-width: 80px;
}
.bo_vc_act::before, .bo_vc_act::after { display: none; }
.bo_vc_act li { border-bottom: 1px solid #f5f5f5; }
.bo_vc_act li:last-child { border-bottom: none; }
.bo_vc_act li a {
  display: block; padding: 8px 14px;
  font-size: 13.5px; color: var(--bbs-text);
  text-decoration: none; transition: background var(--bbs-tr);
}
.bo_vc_act li a:hover { background: var(--bbs-beige); color: var(--bbs-main); }

/* ── 댓글 쓰기 ── */
#bo_vc_w, .bo_vc_w {
  position: relative; margin: 20px 0; display: block;
}
#bo_vc_w::after, .bo_vc_w::after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_vc_w h2 { position: absolute; font-size: 0; overflow: hidden; }

.bo_vc_w textarea {
  width: 100%; min-height: 100px;
  padding: 12px 14px;
  border: 1.5px solid var(--bbs-border);
  border-radius: var(--bbs-r);
  font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
  color: var(--bbs-text); background: #fff;
  resize: vertical; outline: none;
  transition: border-color var(--bbs-tr); box-shadow: none;
}
.bo_vc_w textarea:focus { border-color: var(--bbs-main); }
.bo_vc_w textarea::placeholder { color: #BDC3C7; }

.bo_vc_w_wr { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 10px; }
.bo_vc_w_info { float: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.bo_vc_w_info::after { display: none; }
.bo_vc_w_info .frm_input { float: none; margin: 0; }

.bo_vc_w .btn_confirm {
  display: flex; align-items: center; gap: 10px;
  clear: none; margin: 0; float: none;
}
.bo_vc_w .btn_confirm label { display: inline-flex; align-items: center; margin: 0; font-size: 14px; border-radius: 0; }
.bo_vc_w .btn_submit {
  height: 40px; padding: 0 20px;
  background: var(--bbs-main); color: #fff;
  border: none; border-radius: var(--bbs-r);
  font-size: 14px; font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer; transition: background var(--bbs-tr);
}
.bo_vc_w .btn_submit:hover { background: var(--bbs-main-dark); }
.secret_cm { display: inline-flex; align-items: center; float: none; }
.bo_vc_w .btn_confirm .secret_cm label { font-size: 14px !important; }
.bo_vc_w_wr::after { display: none; }

.bo_vc_w #char_cnt {
  display: block; margin: 0 0 6px;
  font-size: 12.5px; color: var(--bbs-text-sub); text-align: right;
}

/* ================================================
   4. 글쓰기 (write.skin.php)
   ================================================ */

#bo_w { }
#bo_w .write_div { margin: 12px 0; position: relative; }
#bo_w .write_div::after { display: block; visibility: hidden; clear: both; content: ""; }

/* 공통 입력 */
.frm_input {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--bbs-border);
  border-radius: var(--bbs-r);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--bbs-text);
  background: #fff;
  outline: none;
  transition: border-color var(--bbs-tr);
  box-sizing: border-box;
}
.frm_input:focus { border-color: var(--bbs-main); }
.frm_input::placeholder { color: #BDC3C7; }
.full_input { width: 100%; }
.half_input { width: 49%; margin-right: 1%; }
.half_input:last-child { margin-right: 0; }

/* 제목 */
#wr_subject { width: 100%; font-size: 15px; font-weight: 500; }

/* 분류 선택 */
#bo_w .bo_w_select select {
  width: 100%; height: 42px; padding: 0 14px;
  border: 1.5px solid var(--bbs-border); border-radius: var(--bbs-r);
  font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
  color: var(--bbs-text); background: #fff; outline: none;
  transition: border-color var(--bbs-tr);
}
#bo_w .bo_w_select select:focus { border-color: var(--bbs-main); }

/* 이름/비번 행 */
#bo_w .bo_w_info::after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_w .bo_w_info .frm_input { float: left; margin-bottom: 0; }
#bo_w #wr_password, #bo_w #wr_homepage { margin-left: 2%; }

/* 옵션 체크박스 */
#bo_w .bo_v_option { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
#bo_w .bo_v_option li { display: inline-flex; align-items: center; float: none; margin: 0; }
#bo_w .bo_v_option li label { vertical-align: middle; }

/* 링크 */
#bo_w .bo_w_link { position: relative; }
#bo_w .bo_w_link label {
  position: absolute; top: 1px; left: 1px;
  border-radius: var(--bbs-r) 0 0 var(--bbs-r);
  height: 40px; line-height: 40px; width: 42px;
  font-size: 1.1em; text-align: center; color: #BDC3C7;
}
#bo_w .bo_w_link .frm_input { padding-left: 52px; }

/* 파일 */
#bo_w .bo_w_flie { }
/* 파일 업로드 */
#bo_w .bo_w_flie { margin-bottom: 8px; }
#bo_w .bo_w_flie .file_wr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  /* div border 제거 — 버튼과 텍스트로만 구성 */
}
/* 폴더 아이콘 레이블 (클릭하면 파일 선택창 열림) */
#bo_w .bo_w_flie .file_wr_label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--bbs-border);
  border-radius: var(--bbs-r);
  background: #f5f5f5;
  color: #BDC3C7;
  font-size: 1.1em;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--bbs-tr);
}
#bo_w .bo_w_flie .file_wr_label:hover {
  border-color: var(--bbs-main);
  color: var(--bbs-main);
  background: rgba(26,82,118,0.04);
}
/* 네이티브 file input 숨기기 */
#bo_w .bo_w_flie .frm_file {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
  pointer-events: none;
}
/* 선택된 파일명 표시 텍스트 */
#bo_w .bo_w_flie .file_name_txt {
  font-size: 13.5px;
  color: var(--bbs-text-sub);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#bo_w .bo_w_flie .frm_input { margin: 8px 0 0; }
#bo_w .bo_w_flie .file_del {
  display: block;
  font-size: 13px;
  color: var(--bbs-text-sub);
  margin-top: 6px;
}

/* 에디터 영역 */
#bo_w .wr_content { }
#bo_w .wr_content textarea.frm_input {
  height: 300px; padding: 12px 14px;
  resize: vertical; line-height: 1.7;
}

/* 임시 저장 */
#autosave_wrapper { position: relative; }
#btn_autosave {
  position: absolute; top: 5px; right: 5px;
  height: 32px; padding: 0 12px; line-height: 32px;
  background: #f5f5f5; border: 1px solid var(--bbs-border);
  border-radius: var(--bbs-r); font-size: 12.5px;
  color: var(--bbs-text-sub); cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background var(--bbs-tr);
}
#btn_autosave:hover { background: var(--bbs-beige); }
#autosave_pop {
  position: absolute; right: 0; top: 42px;
  background: #fff; border: 1px solid var(--bbs-border);
  border-radius: var(--bbs-r); box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 14px; z-index: 999; min-width: 240px;
}
#autosave_pop strong { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; }
#autosave_pop ul { list-style: none; padding: 0; margin: 0; }
.autosave_close {
  margin-top: 10px; padding: 6px 14px;
  background: #f5f5f5; border: 1px solid var(--bbs-border);
  border-radius: var(--bbs-r); font-size: 13px; cursor: pointer;
}

/* 제출 버튼 */
#bo_w .btn_confirm {
  display: flex; align-items: center; gap: 10px;
  padding-top: 20px; border-top: 1px solid var(--bbs-border);
  margin-top: 20px;
}
#bo_w .btn_cancel {
  height: 44px; padding: 0 24px; border-radius: var(--bbs-r);
  font-size: 14px; background: #f5f5f5; border: 1.5px solid var(--bbs-border);
  color: var(--bbs-text-sub); text-decoration: none;
  display: inline-flex; align-items: center;
  transition: background var(--bbs-tr);
}
#bo_w .btn_cancel:hover { background: #e8e8e8; }
#bo_w .btn_submit {
  height: 44px; padding: 0 28px; border-radius: var(--bbs-r);
  font-size: 14px; font-weight: 700;
  background: var(--bbs-main); border: none; color: #fff;
  cursor: pointer; transition: background var(--bbs-tr);
  font-family: 'Noto Sans KR', sans-serif;
}
#bo_w .btn_submit:hover { background: var(--bbs-main-dark); }

/* 글자수 */
#char_count_desc { display: block; margin: 0 0 6px; font-size: 13px; color: var(--bbs-text-sub); }
#char_count_wrap { margin: 6px 0 0; text-align: right; font-size: 12.5px; color: var(--bbs-text-sub); }
#char_count { font-weight: 700; color: var(--bbs-main); }

/* SNS */
#bo_v_sns, #bo_vc_send_sns, #bo_vc_sns { display: none; }

/* ── 반응형 ── */

/* 태블릿: 글쓴이 컬럼 숨김 */
@media (max-width: 900px) {
  #bo_list col.col_datetime { width: 90px; }
  .tbl_head01 tbody td.td_name,
  .tbl_head01 thead th.th_name { display: none; }
}

/* 모바일 768px */
@media (max-width: 768px) {
  /* 상단 여백 축소 */
  #bo_list, #bo_v, #bo_w { padding-top: 20px; }

  /* 상단 영역 세로 배치 */
  #bo_btn_top { flex-direction: column; align-items: flex-start; gap: 10px; }
  #bo_btn_top .btn_bo_user { width: 100%; justify-content: flex-end; }
  .bbs-search-inline { width: 100%; }
  .bbs-search-inline .sch_input { flex: 1; width: auto; min-width: 0; }

  /* 컬럼 폭 조정 */
  #bo_list col.col_num      { width: 50px; }
  #bo_list col.col_datetime { width: 80px; }
  #bo_list col.col_cate     { width: 70px; }

  /* 보기 */
  #bo_v_info { flex-direction: column; align-items: flex-start; }
  #bo_v_top .btn_bo_user { flex-wrap: wrap; gap: 4px; }
  #bo_v_title { font-size: 18px; }

  /* 댓글 */
  .bo_vc_w_wr { flex-direction: column; align-items: flex-start; }
  .bo_vc_w_info { width: 100%; }
  .bo_vc_w_info .frm_input { width: 100%; }

  /* 글쓰기 */
  .half_input { width: 100%; margin-right: 0; }
  #bo_w #wr_password, #bo_w #wr_homepage { margin-left: 0; }
  #bo_w .btn_confirm { flex-wrap: wrap; }
}

/* 소형 480px: 번호 컬럼도 숨김 */
@media (max-width: 480px) {
  #bo_list col.col_num { width: 0; }
  .tbl_head01 tbody td.td_num2,
  .tbl_head01 thead th.th_num { display: none; }
  #bo_list col.col_datetime { width: 70px; }
  .tbl_head01 tbody .td_datetime { font-size: 12px; }
}