/* =========================================================
   2026 천안아산 나우가구페어 — 그누보드 게시판을 사이트 디자인으로
   theme/basic head·tail에서 우리 헤더/푸터 include, 게시판은 이 CSS로 사이트 톤 적용.
   대상 스킨: skin/board/basic (list/view)
   ========================================================= */

/* 그누보드 기본 헤더/푸터/구분선/회원사이드바 숨김 */
#hd, #ft { display: none !important; }
body > hr { display: none !important; }
#aside { display: none !important; }
#container { width: 100% !important; float: none !important; margin: 0 !important; }

/* 그누보드 기본 게시판명 타이틀 숨김 (히어로가 대체) */
#container_title { display: none !important; }

/* 본문 래퍼 — 히어로 바로 아래, 흰 배경 위에 상단 여백 */
#wrapper { padding-top: 48px; padding-bottom: 72px; background: #fff; }
#container_wr { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ── 게시판 히어로 밴드 (page-hero 재사용, 게시판 전용 미세조정) ── */
.board-hero { margin-bottom: 0; }        /* 히어로 아래 회색 띠 제거 (여백은 #wrapper가 담당) */
.board-hero h1 { font-size: clamp(28px, 4.2vw, 46px); }

/* ── 상단 버튼/카운트 줄 ── */
#bo_btn_top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
#bo_btn_top::after { display: none !important; content: none !important; }   /* 스킨 clearfix ::after가 flex 아이템이 되어 검색버튼을 가운데로 밀던 문제 제거 */
#bo_list_total { color: #9a917f; font-size: 13px; font-weight: 600; }
#bo_btn_top .btn_bo_user, .bo_fx .btn_bo_user { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.btn_b01, .btn_admin, #bo_list .btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; background: #f2eee7; color: #6b6456;
  border: 1px solid #ece7df; font-size: 13px; transition: all .16s ease; }
.btn_b01:hover, .btn_admin:hover, #bo_list .btn:hover { background: #ef6c1a; color: #fff; border-color: #ef6c1a; }

/* ── 목록: 블록형 카드 리스트 (FAQ 블록 디자인 차용) ── */
#bo_list { width: 100% !important; }
.nf-board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.nf-bl-item {
  background: #fff; border: 1px solid #ece9e3; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20,20,20,.03);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.nf-bl-item:hover { border-color: #e3ded5; box-shadow: 0 8px 22px rgba(20,20,20,.07); transform: translateY(-1px); }
.nf-bl-item.is-notice { background: #fff8f1; border-color: #f6e2cf; }

.nf-bl-link { display: flex; align-items: center; gap: 16px; padding: 22px 26px; text-decoration: none; color: inherit; }
.nf-bl-chk { display: flex; align-items: center; padding-left: 20px; }

/* 좌측 마커 (번호 / 공지 / 열람중) */
.nf-bl-mark { flex: 0 0 auto; min-width: 46px; display: flex; align-items: center; }
.nf-bl-mark .num { font-size: 14px; font-weight: 700; color: #b7b0a3; font-variant-numeric: tabular-nums; }
.nf-bl-mark .notice_icon { display: inline-block; background: #ef6c1a; color: #fff; padding: 4px 11px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.nf-bl-mark .bo_current { display: inline-block; background: #20242c; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }

/* 제목 */
.nf-bl-tit { flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 600; color: #22262e;
  line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .16s ease; }
.nf-bl-item:hover .nf-bl-tit { color: #ef6c1a; }
.nf-bl-tit .new_icon { display: inline-block; margin-left: 7px; background: #19a36a; color: #fff; padding: 1px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; vertical-align: middle; }
.nf-bl-tit .cnt_cmt { margin-left: 7px; color: #ef6c1a; font-weight: 800; font-size: 13px; }

/* 우측 카테고리 배지(GLOW 자리) + 날짜 + 플러스 아이콘 */
.nf-bl-cate { flex: 0 0 auto; background: #f2eee7; color: #8a8172; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 5px 12px; border-radius: 6px; }
.nf-bl-date { flex: 0 0 auto; color: #a49d90; font-size: 13px; font-variant-numeric: tabular-nums; }
.nf-bl-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 300; color: #c3bcae; line-height: 1; transition: all .18s ease; }
.nf-bl-item:hover .nf-bl-ico { background: #ef6c1a; color: #fff; }

.nf-bl-empty { background: #fff; border: 1px solid #ece9e3; border-radius: 6px; padding: 72px 0; text-align: center; color: #b0a99b; font-size: 15px; }

/* ── 페이지네이션 ── */
.pg_wrap { margin-top: 26px; text-align: center; }
.pg { display: inline-flex; gap: 5px; }
.pg_page, .pg_current, .pg_start, .pg_prev, .pg_next, .pg_end {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 9px; border: 1px solid #ece7df; border-radius: 9px; color: #6b6456; text-decoration: none; font-size: 14px; background: #fff; transition: all .14s ease; }
.pg_current { background: #20242c; color: #fff; border-color: #20242c; font-weight: 700; }
.pg_page:hover, .pg_prev:hover, .pg_next:hover, .pg_start:hover, .pg_end:hover { border-color: #ef6c1a; color: #ef6c1a; }

/* ── 하단 글쓰기 버튼줄 ── */
.bo_fx { margin-top: 18px; display: flex; justify-content: flex-end; }

/* ── 검색창 ── */
.bo_sch .sch_btn, #bo_list .sch_btn { background: #ef6c1a !important; color: #fff !important; border: none; border-radius: 9px; }
.bo_sch .sch_input { border: 1px solid #d6dae1; border-radius: 9px; }

/* =========================================================
   글보기(view) — 깔끔한 아티클 레이아웃
   ========================================================= */
#bo_v { width: 100% !important; margin: 0; padding-top: 4px; }

#bo_v_title {
  font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: #20242c;
  line-height: 1.4; padding: 0 0 14px; border-bottom: none; margin: 0; }
/* 실제 제목 글자 (스킨의 font-size:2em 덮어쓰기) */
#bo_v_title .bo_v_tit { display: block; font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 800; margin: 0; line-height: 1.4; }
#bo_v_title .bo_v_cate { display:inline-block; background:#f2eee7; color:#8a8172; font-size:12px; font-weight:700; padding:3px 10px; border-radius:6px; margin-right:6px; vertical-align:middle; }

/* 작성자/작성일 메타줄 = 좌: 작성자정보 / 우: 목록버튼 (얼굴이미지·조회·댓글 제거됨) */
#bo_v_info { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0 16px; border-bottom: 2px solid #20242c; margin: 0 0 28px; flex-wrap: wrap; }
#bo_v_info > h2 { position: absolute; left: -9999px; }        /* '페이지 정보' 헤딩 숨김 */
#bo_v_info::after { display: none !important; content: none !important; }   /* 스킨 clearfix ::after가 flex 3번째 아이템이 되어 버튼을 가운데로 밀던 문제 제거 */
#bo_v_info .profile_info { display: flex; align-items: center; margin: 0; padding: 0; float: none; }
#bo_v_info .profile_info_ct { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; float: none; color: #8a8172; font-size: 13.5px; }
#bo_v_info .profile_info_ct strong { font-weight: 600; color: #55606c; margin: 0; display: inline-flex; align-items: center; }
#bo_v_info .profile_info_ct .if_date { color: #9a917f; }
#bo_v_info .profile_info_ct i { color: #b7b0a3; margin-right: 3px; }

/* 상단 버튼줄 (목록 등) — 메타줄 우측에 정렬 (스킨의 margin:20px·float:right 리셋) */
#bo_v_top { margin: 0; padding: 0; flex: 0 0 auto; display: flex; align-items: center; }
#bo_v_top .btn_bo_user, #bo_v_top .bo_v_com { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; float: none; }
#bo_v_top .btn_bo_user > li, #bo_v_top .bo_v_com > li { float: none; width: auto; margin: 0; background: transparent; }

/* SNS 공유·스크랩 등 포럼 잡요소 숨김 (사이트 톤 통일) */
#bo_v_share { display: none !important; }

/* 댓글 기능 전체 숨김 (고객 요청) — 토글버튼(.cmt_btn) + 목록(#bo_vc) + 작성폼(#bo_vc_w) */
.cmt_btn, #bo_vc, #bo_vc_w, #bo_v .cmt_wrap, #viewcomment { display: none !important; }

/* 본문 */
#bo_v_atc { padding: 4px 0 8px; }
#bo_v_atc_title { position: absolute; left: -9999px; }     /* '본문' 숨김(스크린리더용 유지) */
#bo_v_con { font-size: 16px; line-height: 1.85; color: #33383f; min-height: 160px; padding: 6px 0 40px; word-break: break-word; }
#bo_v_con img { max-width: 100%; height: auto; }

/* 추천/비추천 */
#bo_v_act { text-align: center; margin: 10px 0 8px; }
#bo_v_act .bo_v_good, #bo_v_act .bo_v_nogood { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:1px solid #ece7df; border-radius:10px; color:#6b6456; text-decoration:none; margin:0 4px; }

/* 첨부파일/관련링크 */
#bo_v_file, #bo_v_link { background: #faf7f2; border: 1px solid #ece7df; border-radius: 12px; padding: 16px 20px; margin-top: 16px; }
#bo_v_file h2, #bo_v_link h2 { font-size: 13px; font-weight: 800; color: #8a8172; margin-bottom: 8px; }
#bo_v_file ul, #bo_v_link ul { list-style: none; margin: 0; padding: 0; }
#bo_v_file a, #bo_v_link a { color: #33383f; text-decoration: none; }
#bo_v_file a:hover, #bo_v_link a:hover { color: #ef6c1a; }

/* 이전/다음글 */
.bo_v_nb { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid #ece7df; }
.bo_v_nb li { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid #f2ede4; }
.bo_v_nb .nb_tit { flex: 0 0 88px; color: #9a917f; font-size: 13px; font-weight: 700; }
.bo_v_nb a { color: #33383f; text-decoration: none; font-size: 14.5px; }
.bo_v_nb a:hover { color: #ef6c1a; }
.bo_v_nb .nb_date { margin-left: auto; color: #b7b0a3; font-size: 12.5px; }

@media (max-width: 640px) {
  .board-hero { margin-bottom: 28px; }
  .nf-bl-link { gap: 12px; padding: 18px 18px; }
  .nf-bl-mark { min-width: auto; }
  .nf-bl-date { display: none; }               /* 모바일에선 날짜 숨겨 간결하게 */
  .nf-bl-ico { width: 28px; height: 28px; font-size: 20px; }
  #bo_v_con { font-size: 15.5px; }
}
