@charset "utf-8";
/* =========================================================
   Board CSS — 게시판 공통 (목록 버튼 · 글쓰기/수정 폼)
   * 적용 뷰
     - app/Views/front/board/normal_list.php  (일반 · 공지 게시판 목록)
     - app/Views/front/board/gallery_list.php (갤러리 게시판 목록)
     - app/Views/front/board/normal_write.php (일반 · 갤러리 글쓰기/수정 공용)
   * 항목(작성자·비밀번호·말머리·추가필드·첨부·보안문자 등)은 관리자 게시판 설정을
     뷰가 그대로 읽어 그리므로, 새로 만드는 게시판에도 이 디자인이 자동 적용됩니다.
   * 사이트 공통 컴포넌트(.sec-title / .prefix-list / .write-form / .btn-box / .view-more)
     위에 덧씌우는 보정만 정의합니다. 색·간격은 reset.css :root 변수를 사용합니다.
   ========================================================= */


/* ── 목록 하단 글쓰기 버튼 ─────────────────────────────────
   마크업 : <div class="btn-box board-list-actions"><a class="view-more pt01 af-dn"><span>글쓰기</span></a></div>
   ─────────────────────────────────────────────────────── */
.btn-box.board-list-actions{justify-content:flex-end;margin-top:var(--row-gap40);}
.board-list-actions .view-more{justify-content:center;text-align:center;}


/* ── 글쓰기 / 수정 폼 ─────────────────────────────────── */
.board-write .write-form .desc.bw-full{width:100%;}
.board-write .write-form .desc.bw-w3{width:calc((100% - var(--col-gap20) * 2) / 3);}
.board-write .write-form .desc dt label{cursor:default;}
.board-write .write-form .desc dt label[for]{cursor:pointer;}
.board-write .bw-req{margin-left:3px;color:var(--point-color01);font-weight:700;font-style:normal;}
.board-write .bw-sub{margin-left:6px;font-size:var(--text-14);font-weight:400;color:var(--black-color08);}
.board-write .bw-help{margin-top:8px;font-size:var(--text-14);font-weight:400;color:var(--black-color08);line-height:1.5;}
.board-write .bw-help.bw-current{margin:0 0 8px;color:var(--black-color05);}
.board-write .write-form > .bw-notice{width:100%;margin-top:0;}
.board-write input[readonly]{color:var(--black-color08);}
.board-write .bw-dt-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 15px;}
.board-write .bw-secret{font-size:var(--text-15);}
.board-write .bw-editor dd{min-width:0;}
.board-write .bw-thumb{margin-bottom:10px;}
.board-write .bw-thumb img{display:block;height:96px;width:auto;}

/* select · 라디오/체크 옵션 (추가필드) — 사이트 밑줄 입력 톤 */
.board-write select{width:100%;height:clamp(40px, 6vw, 44px);border:0;border-bottom:1px solid var(--black-color01);border-radius:0;background:transparent;font-size:var(--text-16);color:var(--black-color01);padding:0 4px;}
.board-write .bw-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;min-height:clamp(40px, 6vw, 44px);padding-block:8px;border-bottom:1px solid var(--black-color01);}
.board-write .bw-options label{display:inline-flex;align-items:center;gap:8px;font-size:var(--text-16);color:var(--black-color01);}
.board-write .bw-options [type="radio"]{width:18px;height:18px;accent-color:var(--point-color02);}

/* 파일 선택 — 레이아웃 공통 스크립트가 만드는 .bf-file-wrap 을 사이트 톤(밑줄 입력 + 테두리 버튼)으로 */
.board-write .bf-file-wrap{display:flex;align-items:center;gap:15px;width:100%;min-height:clamp(40px, 6vw, 44px);padding-bottom:8px;border-bottom:1px solid var(--black-color01);}
.board-write .bf-file-wrap .bf-file-btn{flex-shrink:0;padding:9px 18px;background:var(--point-white);color:var(--point-color02);border:1px solid var(--point-color02);border-radius:0;font-size:var(--text-15);font-weight:500;line-height:1.2;transition:all 0.3s;}
.board-write .bf-file-wrap .bf-file-btn:hover{background:var(--point-color02);color:var(--point-white);}
.board-write .bf-file-wrap .bf-file-name{min-width:0;font-size:var(--text-15);color:var(--black-color06);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* 개인정보 동의 */
.board-write .bw-agree{padding-top:var(--row-gap10);}
.board-write .bw-link{padding:0;border:0;background:none;font:inherit;color:var(--point-color01);text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.board-write .bw-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* 하단 버튼 (취소 · 등록/저장) — 화살표 없이 텍스트만 가운데 */
.board-write .bw-actions .view-more{justify-content:center;text-align:center;cursor:pointer;}
.board-write .bw-actions button.view-more{font-family:var(--font-type02);}
.board-write .bw-actions button.view-more:disabled{opacity:0.6;cursor:wait;}

@media (max-width:767px){
    .board-write .write-form .desc.bw-w3{width:100%;}
}
@media (max-width:479px){
    .board-write .bw-actions{flex-wrap:nowrap;}
    .board-write .bw-actions .view-more{flex:1;min-width:0;}
}
