/* ════════════════════════════════════════
   JEJU BOARD SKIN — style.css
   ════════════════════════════════════════ */

/* 스크린리더 전용 텍스트 숨김 */
.sound_only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ── 페이지 타이틀 ── */
.bo-page-title {
  background: var(--color-surface-alt, #ebe8de);
  border-bottom: 1px solid var(--color-line, #d9ddd6);
  padding: 36px 24px 32px;
}
.bo-page-title-inner {
  width: 100%;
  margin: 0;
}
.bo-crumb {
  font-size: .78rem;
  color: var(--color-muted, #6e6e73);
  margin: 0 0 10px;
  letter-spacing: .01em;
}
.bo-page-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-ink, #1A1A1A);
  margin: 0;
  letter-spacing: -.03em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bo-page-title h2 span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted, #6e6e73);
}

/* ── 게시판 main 영역 — 흰 배경으로 채움 ── */
#main:has(#bo_list),
#main:has(#bo_v),
#main:has(#bo_w) {
  background: #fff;
}

/* ── 공통 래퍼 ── */
#bo_list,
#bo_v,
#bo_w {
  width: min(1180px, calc(100% - 160px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

/* ════════════════════════════════════════
   LIST
   ════════════════════════════════════════ */

.bo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-green, #5C6F52);
}
.bo-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink, #1A1A1A);
  margin: 0;
  letter-spacing: -.02em;
}
.bo-head-meta { font-size: .8rem; color: var(--color-muted, #6e6e73); }
.bo-head-right { display: flex; align-items: center; gap: 10px; }

.bo-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--color-green, #5C6F52);
  color: #fff !important;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.bo-write-btn:hover { background: var(--color-primary-hover, #6b8060); }

.bo-admin-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--color-muted, #6e6e73);
  text-decoration: none;
  background: #fff;
}
.bo-admin-btn:hover { background: var(--color-surface, #f5f1ed); }

.bo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.bo-table thead tr { border-bottom: 1px solid var(--color-line, #d9ddd6); }
.bo-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-muted, #6e6e73);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bo-table thead th.th-num { width: 64px; text-align: center; }
.bo-table thead th.th-date { width: 96px; text-align: center; }

.bo-table tbody tr {
  border-bottom: 1px solid var(--color-surface-line, #eef0ec);
  transition: background .12s;
}
.bo-table tbody tr:hover { background: var(--color-surface, #f5f1ed); }
.bo-table tbody td { padding: 15px 14px; vertical-align: middle; }

.bo-table td.td-num {
  text-align: center;
  color: var(--color-muted, #6e6e73);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.bo-table td.td-date {
  text-align: center;
  color: var(--color-muted, #6e6e73);
  font-size: .8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bo-table td.td-subject { line-height: 1.4; }
.bo-table td.td-subject a {
  color: var(--color-ink, #1A1A1A);
  text-decoration: none;
  font-weight: 500;
  display: inline;
  vertical-align: middle;
}
.bo-table td.td-subject a:hover { color: var(--color-primary, #5C6F52); }

.notice-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-green, #5C6F52);
  border-radius: 4px;
  padding: 2px 7px;
  margin-right: 8px;
  vertical-align: middle;
}
.new-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  color: var(--color-primary, #5C6F52);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}
.file-icon { margin-left: 4px; font-size: .8rem; vertical-align: middle; opacity: .6; }

.bo-empty {
  padding: 72px 0;
  text-align: center;
  color: var(--color-muted, #6e6e73);
  font-size: .92rem;
}

/* 페이지네이션 */
.bo-paging {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.bo-paging a,
.bo-paging strong,
.bo-paging span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--color-ink, #1A1A1A);
  border: 1px solid var(--color-line, #d9ddd6);
  transition: background .15s;
}
.bo-paging strong {
  background: var(--color-green, #5C6F52);
  color: #fff !important;
  border-color: var(--color-green, #5C6F52);
  font-weight: 700;
}
.bo-paging a:hover { background: var(--color-surface, #f5f1ed); }

/* 검색 */
.bo-search { margin-top: 32px; display: flex; justify-content: center; }
.bo-search form { display: flex; gap: 8px; align-items: center; }
.bo-search select {
  padding: 9px 12px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 8px;
  font-size: .85rem;
  background: #fff;
  color: var(--color-ink, #1A1A1A);
  font-family: inherit;
}
.bo-search input[type=text] {
  padding: 9px 16px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 8px;
  font-size: .85rem;
  width: 220px;
  font-family: inherit;
  color: var(--color-ink, #1A1A1A);
  transition: border-color .2s;
}
.bo-search input[type=text]:focus { outline: none; border-color: var(--color-green, #5C6F52); }
.bo-search button[type=submit] {
  padding: 9px 20px;
  background: var(--color-green, #5C6F52);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.bo-search button[type=submit]:hover { background: var(--color-primary-hover, #6b8060); }


/* ════════════════════════════════════════
   VIEW
   ════════════════════════════════════════ */

#bo_v .bo-v-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ink, #1A1A1A);
  line-height: 1.45;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
#bo_v .bo-v-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: .82rem;
  color: var(--color-muted, #6e6e73);
  padding: 16px 0;
  border-top: 2px solid var(--color-green, #5C6F52);
  border-bottom: 1px solid var(--color-line, #d9ddd6);
  margin-bottom: 40px;
}
#bo_v .bo-v-meta span { display: flex; align-items: center; gap: 5px; }
#bo_v .bo-v-meta span::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--color-line, #d9ddd6);
  border-radius: 50%;
}
#bo_v .bo-v-meta span:first-child::before { display: none; }

#bo_v .bo-v-con {
  font-size: .97rem;
  line-height: 1.85;
  color: var(--color-ink, #1A1A1A);
  min-height: 140px;
}
#bo_v .bo-v-con img { max-width: 100%; height: auto; border-radius: 8px; }
#bo_v .bo-v-con p { margin: 0 0 1em; }

#bo_v .bo-v-files {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--color-surface, #f5f1ed);
  border-radius: 12px;
}
#bo_v .bo-v-files h3 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-muted, #6e6e73);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
#bo_v .bo-v-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#bo_v .bo-v-files li a {
  font-size: .88rem;
  color: var(--color-primary, #5C6F52);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
#bo_v .bo-v-files li a:hover { text-decoration: underline; }
#bo_v .bo-v-files .file-meta { font-size: .78rem; color: var(--color-muted, #6e6e73); font-weight: 400; }

.bo-v-nav {
  margin-top: 36px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 12px;
  overflow: hidden;
}
.bo-v-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  font-size: .88rem;
  transition: background .15s;
}
.bo-v-nav-item:not(:last-child) { border-bottom: 1px solid var(--color-surface-line, #eef0ec); }
.bo-v-nav-item:hover { background: var(--color-surface, #f5f1ed); }
.bo-v-nav-label { font-size: .72rem; font-weight: 700; color: var(--color-muted, #6e6e73); width: 44px; flex-shrink: 0; }
.bo-v-nav-item a {
  color: var(--color-ink, #1A1A1A);
  text-decoration: none;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bo-v-nav-item a:hover { color: var(--color-primary, #5C6F52); }
.bo-v-nav-date { font-size: .78rem; color: var(--color-muted, #6e6e73); white-space: nowrap; }

.bo-v-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 10px;
  flex-wrap: wrap;
}
.bo-v-actions-left,
.bo-v-actions-right { display: flex; gap: 8px; }

.bo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-line, #d9ddd6);
  color: var(--color-ink, #1A1A1A);
  background: #fff;
  font-family: inherit;
  transition: background .15s, border-color .15s;
  letter-spacing: -.01em;
}
.bo-btn:hover { background: var(--color-surface, #f5f1ed); }
.bo-btn.primary { background: var(--color-green, #5C6F52); color: #fff !important; border-color: var(--color-green, #5C6F52); }
.bo-btn.primary:hover { background: var(--color-primary-hover, #6b8060); }
.bo-btn.danger { color: #c0392b; border-color: #e8c8c5; }
.bo-btn.danger:hover { background: #fff0ee; }


/* ════════════════════════════════════════
   WRITE — 표준 게시판 폼 (th|td 테이블 레이아웃)
   ════════════════════════════════════════ */

#bo_w { }
#bo_w h2.sound_only { display: none !important; }
#bo_w form { width: 100% !important; }

/* ── 폼 테이블 ── */
.wr-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--color-green, #5C6F52);
}
.wr-col-th { width: 120px; }

.wr-table th,
.wr-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-line, #d9ddd6);
  vertical-align: middle;
  font-size: .9rem;
}
.wr-table th {
  background: var(--color-surface, #f5f1ed);
  font-weight: 600;
  color: var(--color-ink, #1A1A1A);
  white-space: nowrap;
  text-align: left;
  width: 110px;
}
.wr-table td { background: #fff; }

/* 내용 행 — 위쪽 정렬 */
.wr-table tr:has(#wr_content) th,
.wr-table tr:has(.wr_content) th { vertical-align: top; padding-top: 18px; }

/* 필수 표시 */
.wr-table .req { color: #c0392b; font-size: .8rem; margin-left: 2px; font-weight: 700; }

/* ── 공통 입력 ── */
.wr-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 6px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--color-ink, #1A1A1A);
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.wr-input:focus {
  outline: none;
  border-color: var(--color-green, #5C6F52);
  box-shadow: 0 0 0 3px rgba(92,111,82,.1);
}
.wr-input::placeholder { color: #c0c4bf; }

.wr-select {
  padding: 10px 14px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 6px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--color-ink, #1A1A1A);
  background: #fff;
  cursor: pointer;
}
.wr-select:focus { outline: none; border-color: var(--color-green, #5C6F52); }

/* ── 본문 textarea ── */
#wr_content {
  width: 100% !important;
  min-height: 360px;
  padding: 14px 16px;
  border: 1px solid var(--color-line, #d9ddd6) !important;
  border-radius: 6px;
  font-size: .93rem;
  font-family: inherit;
  line-height: 1.8;
  resize: vertical;
  box-sizing: border-box;
  color: var(--color-ink, #1A1A1A);
  background: #fff;
  transition: border-color .2s;
  display: block;
}
#wr_content:focus {
  outline: none;
  border-color: var(--color-green, #5C6F52) !important;
  box-shadow: 0 0 0 3px rgba(92,111,82,.1);
}
.wr_content { width: 100%; }

/* 글자수 */
.wr-char-desc { font-size: .8rem; color: var(--color-muted, #6e6e73); margin: 0 0 8px; }
.wr-char-count { font-size: .8rem; color: var(--color-muted, #6e6e73); text-align: right; margin-top: 6px; }

/* 임시저장 버튼 */
.wr-autosave-btn {
  display: block;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 6px;
  font-size: .8rem;
  background: #fff;
  color: var(--color-muted, #6e6e73);
  cursor: pointer;
  font-family: inherit;
}

/* ── 옵션 체크박스 ── */
.bo_v_option {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.chk_box { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--color-ink, #1A1A1A); }
.chk_box input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--color-green, #5C6F52);
  cursor: pointer;
  flex-shrink: 0;
}
.chk_box label { cursor: pointer; }

/* ── 파일 첨부 ── */
.wr-file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wr-file-input { font-size: .88rem; color: var(--color-ink, #1A1A1A); }
.wr-file-desc { flex: 1; min-width: 160px; }
.wr-file-existing {
  margin-top: 8px;
  font-size: .82rem;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wr-file-existing input[type=checkbox] { accent-color: #c0392b; }

/* ── 캡차 (kcaptcha HTML: fieldset > legend + img + input + button + button + span) ── */
.wr-captcha-td fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wr-captcha-td fieldset legend {
  display: none;
}
#captcha_img {
  border-radius: 6px;
  border: 1px solid var(--color-line, #d9ddd6);
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
#captcha_key,
.wr-captcha-td fieldset input[type=text] {
  padding: 9px 12px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 6px;
  font-size: .92rem;
  width: 90px;
  font-family: inherit;
  background: #fff;
  flex-shrink: 0;
  transition: border-color .2s;
}
#captcha_key:focus,
.wr-captcha-td fieldset input[type=text]:focus {
  outline: none;
  border-color: var(--color-green, #5C6F52);
  box-shadow: 0 0 0 3px rgba(92,111,82,.1);
}
#captcha_mp3,
#captcha_reload,
.wr-captcha-td fieldset button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--color-surface, #f5f1ed);
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-muted, #6e6e73);
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
#captcha_mp3:hover,
#captcha_reload:hover,
.wr-captcha-td fieldset button:hover { background: var(--color-surface-alt, #ebe8de); }
/* 버튼 안 span (아이콘 영역) 숨김 */
#captcha_mp3 span,
#captcha_reload span { display: none; }
#captcha_info {
  font-size: .8rem;
  color: var(--color-muted, #6e6e73);
  flex-basis: 100%;
  margin-top: 4px;
}
#captcha_audio { display: none; }

/* ── 하단 버튼 ── */
#bo_w .btn_confirm {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
#bo_w .btn_confirm a,
#bo_w .btn_confirm button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .2s, border-color .2s;
  letter-spacing: -.01em;
  min-width: 110px;
}
#bo_w .btn_confirm .btn_cancel {
  border: 1px solid var(--color-line, #d9ddd6);
  background: #fff;
  color: var(--color-muted, #6e6e73);
}
#bo_w .btn_confirm .btn_cancel:hover { background: var(--color-surface, #f5f1ed); }
#bo_w .btn_confirm .btn_submit {
  background: var(--color-green, #5C6F52);
  color: #fff;
  border: 1px solid var(--color-green, #5C6F52);
}
#bo_w .btn_confirm .btn_submit:hover { background: var(--color-primary-hover, #6b8060); }


/* ════════════════════════════════════════
   COMMENT
   ════════════════════════════════════════ */

/* 댓글 토글 버튼 */
.cmt_btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border: none;
  border-top: 2px solid var(--color-green, #5C6F52);
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-ink, #1A1A1A);
  cursor: pointer;
  margin-top: 40px;
  text-align: left;
  letter-spacing: -.01em;
}
.cmt_btn .total b { font-weight: 700; color: var(--color-green, #5C6F52); }
.cmt_btn .cmt_more { margin-left: auto; font-size: .75rem; color: var(--color-muted, #6e6e73); }
.cmt_btn .cmt_more::after { content: '▲'; }
.cmt_btn.cmt_btn_op .cmt_more::after { content: '▼'; }

/* 댓글 목록 섹션 */
#bo_vc { padding: 0; margin-top: 0; }
#bo_vc > h2 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* 댓글 없음 */
#bo_vc_empty {
  padding: 32px 0;
  text-align: center;
  color: var(--color-muted, #6e6e73);
  font-size: .9rem;
  border-bottom: 1px solid var(--color-line, #d9ddd6);
}

/* 댓글 개별 아이템 */
#bo_vc article {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-surface-line, #eef0ec);
}
#bo_vc .pf_img {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-alt, #ebe8de);
}
#bo_vc .pf_img img { width: 100%; height: 100%; object-fit: cover; }
#bo_vc .cm_wrap { flex: 1; min-width: 0; }
#bo_vc article header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  background: transparent;
  border: none;
  padding: 0;
  position: static !important;
}
#bo_vc article header h2 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  font-size: 0;
}
.sv_guest, .member {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-ink, #1A1A1A);
}
.bo_vc_hdinfo {
  font-size: .77rem;
  color: var(--color-muted, #6e6e73);
}
.bo_vc_hdinfo .fa { display: none; }
.cmt_contents p {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--color-ink, #1A1A1A);
  margin: 0;
}

/* 댓글 옵션 버튼 */
.bo_vl_opt { position: relative; flex-shrink: 0; }
.btn_cm_opt {
  padding: 4px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-muted, #6e6e73);
  font-size: 1.1rem;
  line-height: 1;
}
.btn_cm_opt .fa { display: none; }
.btn_cm_opt::after { content: '···'; letter-spacing: .1em; }
.bo_vc_act {
  display: none;
  position: absolute;
  right: 0; top: 100%;
  background: #fff;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 8px;
  padding: 4px 0;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  list-style: none;
  margin: 0;
  z-index: 10;
}
.bo_vc_act li a {
  display: block;
  padding: 8px 16px;
  font-size: .85rem;
  color: var(--color-ink, #1A1A1A);
  text-decoration: none;
}
.bo_vc_act li a:hover { background: var(--color-surface, #f5f1ed); }

/* 댓글 쓰기 폼 */
#bo_vc_w {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line, #d9ddd6);
}
#bo_vc_w > h2 {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-muted, #6e6e73);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
#bo_vc_w textarea#wr_content {
  width: 100% !important;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--color-line, #d9ddd6) !important;
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  display: block;
  transition: border-color .2s;
}
#bo_vc_w textarea#wr_content:focus {
  outline: none;
  border-color: var(--color-green, #5C6F52) !important;
  box-shadow: 0 0 0 3px rgba(92,111,82,.1);
}
.bo_vc_w_wr {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bo_vc_w_info {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.bo_vc_w_info .frm_input {
  flex: 1;
  min-width: 120px;
  padding: 9px 12px;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 7px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--color-ink, #1A1A1A);
  background: #fff;
}
.bo_vc_w_info .frm_input:focus { outline: none; border-color: var(--color-green, #5C6F52); }
#bo_vc_w .btn_confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.secret_cm.chk_box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--color-muted, #6e6e73);
  white-space: nowrap;
}
.secret_cm.chk_box input[type=checkbox] { accent-color: var(--color-green, #5C6F52); }
.secret_cm.chk_box label { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.secret_cm.chk_box label span { display: none; }
#bo_vc_w .btn_submit {
  padding: 10px 24px;
  background: var(--color-green, #5C6F52);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  white-space: nowrap;
}
#bo_vc_w .btn_submit:hover { background: var(--color-primary-hover, #6b8060); }
#char_cnt { font-size: .78rem; color: var(--color-muted, #6e6e73); display: block; margin-bottom: 6px; }


/* ════════════════════════════════════════
   GALLERY (자료실)
   ════════════════════════════════════════ */

.bo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.bo-gallery-card {
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.bo-gallery-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.bo-gallery-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-alt, #ebe8de);
  flex-shrink: 0;
}
.bo-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.bo-gallery-card:hover .bo-gallery-thumb img { transform: scale(1.04); }
.bo-gallery-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-muted, #6e6e73);
}
.bo-gallery-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bo-gallery-body h3 {
  font-size: .97rem;
  font-weight: 600;
  color: var(--color-ink, #1A1A1A);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -.02em;
}
.bo-gallery-body h3 a {
  color: inherit;
  text-decoration: none;
}
.bo-gallery-body h3 a:hover { color: var(--color-green, #5C6F52); }
.bo-gallery-date {
  font-size: .78rem;
  color: var(--color-muted, #6e6e73);
  margin: 0;
}
.bo-gallery-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 0;
  background: var(--color-green, #5C6F52);
  color: #fff !important;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  letter-spacing: -.01em;
}
.bo-gallery-dl-btn:hover { background: var(--color-primary-hover, #6b8060); }

/* 자료실 상세 — 날짜만 표시 */
.bo-v-meta--archive {
  padding: 12px 0 !important;
  margin-bottom: 28px !important;
}

/* 자료실 상세 — 다운로드 버튼 */
.bo-v-dl-wrap {
  margin-top: 40px;
}
.bo-v-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--color-green, #5C6F52);
  color: #fff !important;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: background .2s;
}
.bo-v-dl-btn:hover { background: var(--color-primary-hover, #6b8060); }
.bo-v-dl-meta {
  font-size: .78rem;
  font-weight: 400;
  opacity: .8;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

@media (max-width: 900px) {
  .bo-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  #bo_list, #bo_v, #bo_w { width: calc(100% - 28px); padding: 24px 0 64px; }
  .bo-gallery { grid-template-columns: 1fr; gap: 16px; }
  .bo-table thead th.th-date, .bo-table td.td-date { display: none; }
  #bo_v .bo-v-title { font-size: 1.2rem; }
  .bo-v-actions { flex-direction: column-reverse; }
  .bo-v-actions-left, .bo-v-actions-right { width: 100%; justify-content: flex-end; }
  .bo-page-title { padding: 24px 16px 20px; }
  .bo-page-title h2 { font-size: 1.3rem; }
  /* 글쓰기 테이블 — 모바일에서 th 위 / td 아래 */
  .wr-table,
  .wr-table tbody,
  .wr-table tr,
  .wr-table th,
  .wr-table td { display: block; width: 100%; }
  .wr-table tr { border-bottom: 1px solid var(--color-line, #d9ddd6); padding: 0; }
  .wr-table tr:last-child { border-bottom: none; }
  .wr-table th {
    border-bottom: none;
    padding: 12px 16px 4px;
    font-size: .78rem;
    color: var(--color-muted, #6e6e73);
  }
  .wr-table td { border-bottom: none; padding: 6px 16px 14px; }
  #bo_w .btn_confirm a, #bo_w .btn_confirm button { flex: 1; }
}

/* ══════ 언론보도 카드 (press) ══════ */
.bo-press {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.bo-press-card {
  position: relative;
  border: 1px solid var(--color-line, #d9ddd6);
  border-radius: 12px;
  background: #fff;
  padding: 26px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bo-press-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
  border-color: var(--color-green, #5C6F52);
}
.bo-press-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--color-ink, #1A1A1A);
  margin: 0;
}
.bo-press-title a { color: inherit; text-decoration: none; }
.bo-press-card:hover .bo-press-title a { color: var(--color-green, #5C6F52); }
.bo-press-meta {
  font-size: .84rem;
  color: var(--color-muted, #6e6e73);
  margin: 0;
}
.bo-press-more {
  align-self: flex-end;
  margin-top: auto;
  padding: 11px 20px;
  background: var(--color-surface-alt, #ebe8de);
  color: var(--color-ink, #1A1A1A) !important;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: background .2s, color .2s;
}
.bo-press-more:hover {
  background: var(--color-green, #5C6F52);
  color: #fff !important;
}

@media (max-width: 860px) {
  .bo-press { grid-template-columns: 1fr; gap: 16px; }
  .bo-press-card { padding: 22px 20px 18px; }
  .bo-press-title { font-size: 1.02rem; }
}
