/* 레이아웃 */
.cs-board { width:100%; max-width: 900px; margin: 0 auto; padding: 30px 0 60px; color: #222; word-break: break-all;}
.cs-title { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 6px; color: #222; }
.cs-subtitle { font-size: 13px; color: #9E9E9E; margin-bottom: 28px; }

/* 공통 */
.cs-label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 8px; }
.cs-flex-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cs-inline-check { display: inline-flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; }

/* 안내 배너 */
.cs-notice-banner { background: #FFE0EC; border-left: 3px solid #ff4e8c; padding: 14px 18px; font-size: 13px; color: #555; margin-bottom: 24px; line-height: 1.6; }

/* 카테고리 탭 */
.cs-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cs-cat-tabs a { padding: 6px 16px; border-radius: 20px; font-size: 13px; color: #555; background: #F0F0F0; }

/* 목록 테이블 */
.cs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-table thead th { padding: 10px 14px; text-align: center; font-size: 12px; font-weight: 600; color: #9E9E9E; border-bottom: 1px solid #E0E0E0; white-space: nowrap; }
.cs-table thead th.th-num { width: 60px; text-align: center; }
.cs-table thead th.th-date { width: 90px; text-align: center; }
.cs-table thead th.th-stat { width: 80px; text-align: center; }
.cs-table tbody tr { border-bottom: 1px solid #F0F0F0; transition: background 0.15s; }
.cs-table tbody td { padding: 15px 0; vertical-align: middle; }
.cs-table td.td-num { text-align: center; color: #9E9E9E; font-size: 13px; }
.cs-table td.td-title a,
.cs-table td.td-title span { color: #444; font-weight: 500; }
.cs-table td.td-date { text-align: center; color: #9E9E9E; font-size: 12px; }
.cs-table td.td-status { text-align: center; font-size: 12px; }
.cs-table td.td-del { text-align: center; }
.cs-table .nopost td { text-align: center; padding: 60px 0; color: #9E9E9E; font-size: 14px; }

/* 공지사항 행 */
.cs-table tbody tr.is-notice-row { background: #FFF9FB; }
.cs-table tbody tr.is-notice-row td.td-title a { font-weight: 600; }

/* 배지 */
.badge-cat, .badge-notice { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-right: 6px; white-space: nowrap; }
.badge-cat { font-weight: 600; background: #FFE0EC; color: #ff4e8c; }
.badge-notice { font-weight: 600; background: #ff4e8c; color: #fff; }
.badge-secret { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 11px; background: #F0F0F0; color: #9E9E9E; margin-left: 4px; }
.badge-new { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff4e8c; margin-left: 5px; vertical-align: middle; }
.status-waiting { color: #9E9E9E; }
.status-answered { color: #ff4e8c; font-weight: 600; }

/* 첨부파일 아이콘 (목록) */
.cs-attach-icon { color: #BDBDBD; font-size: 12px; margin-left: 4px; vertical-align: middle; }

/* 목록 하단 */
.cs-list-bottom { display: flex; justify-content: flex-end; align-items: center; margin-top: 18px; }

/* ── 페이지네이션 (공통) ── */
.cs-paging {display: flex;justify-content: center;gap: 5px;margin-top: 28px;}
.cs-paging a {display: inline-flex;align-items: center;justify-content: center;min-width: 34px;height: 34px;padding: 0 8px;border: 1px solid #E0E0E0;font-size: 13px;color: #555;}
.cs-paging a.active { background: #ff4e8c; border-color: #ff4e8c; color: #fff; pointer-events: none; }

/* 게시글 보기 - 헤더 */
.cs-post-header { border-bottom: 1px solid #F0F0F0; padding-bottom: 15px; margin-bottom: 15px; }
.cs-post-header .post-cat { font-size: 12px; color: #ff4e8c; font-weight: 600; margin-bottom: 9px; }
.post-title { font-size: 20px; font-weight: 600; color: #222; letter-spacing: -0.5px; margin: 0 0 6px; line-height: 1.5; }
.cs-post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #9E9E9E; }
.cs-post-meta i { margin-right: 3px; }

/* 게시글 보기 - 본문 */
.cs-post-body { min-height: 140px; line-height: 1.8; font-size: 14px; color: #222; padding-bottom:20px; border-bottom: 1px solid #F0F0F0; word-break: break-word; }

/* 게시글 보기 - 첨부파일 */
.cs-post-files { background: #F8F8F8; border-radius: 10px; padding: 14px 18px; margin: 16px 0; font-size: 13px; }
.cs-post-files-title { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 12px; }
.cs-post-files-title i { color: #ff4e8c; margin-right: 4px; }
.cs-file-item { margin-bottom: 12px; }
.cs-file-item:last-child { margin-bottom: 0; }
.cs-file-preview { margin-bottom: 8px; }
.cs-file-preview img { max-width: 100%; max-height: 150px; border-radius: 8px; border: 1px solid #E0E0E0; object-fit: contain; cursor: pointer; transition: opacity 0.2s; }
.cs-file-preview img:hover { opacity: 0.85; }
.cs-file-info { display: flex; align-items: center; gap: 8px; }
.cs-file-info i { color: #ff4e8c; }
.cs-file-info .cs-file-link { color: #ff4e8c; font-weight: 500; word-break: break-all; }
.cs-file-info .cs-file-link:hover { text-decoration: underline; }
.cs-file-size { color: #9E9E9E; font-size: 11px; white-space: nowrap; }

/* 게시글 보기 - 하단 버튼 */
.cs-post-action { display: flex; justify-content: flex-end; align-items: center; gap: 5px; padding-top: 18px; }
.cs-post-action .btn-group-right { display: flex; gap: 6px; align-items: center; }

/* 공통 버튼 */
.cs-btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; border: none; line-height: 1; }
.cs-btn-danger { white-space: nowrap; background: #fff; border: 1px solid #ffcdd2; color: #e53935; padding: 8px 10px; font-size: 10px; }

/* 글쓰기 폼 */
.cs-write-wrap { background: #fff; }
.cs-form-group { margin-bottom: 20px; }
.cs-form-group .required { color: #ff4e8c; margin-left: 2px; }
.cs-form-control { width: 100%; padding: 8px 14px; border: 1px solid #E0E0E0; border-radius: 6px; font-size: 13px; color: #222; outline: none; transition: border 0.2s; font-family: inherit; background: #fff; }
.cs-form-control.textarea { resize: vertical; min-height: 200px; line-height: 1.5; }

/* 파일 업로드 영역 */
.cs-file-upload { display: flex; align-items: center; gap: 10px; border: 1px dashed #E0E0E0; border-radius: 6px; padding: 12px 16px; cursor: pointer; transition: border 0.2s; }
.cs-file-upload.is-dragover { border-color: #ff4e8c; }
.cs-file-icon { color: #ff4e8c; font-size: 18px; }
.cs-file-main { flex: 1; min-width: 0; }
.cs-file-placeholder { color: #555; font-size: 13px; }
.cs-file-name { color: var(--pink); font-weight: 600; font-size: 13px; word-break: break-all; }
.cs-file-input { display: none; }
.cs-file-delete { font-size: 12px; color: var(--gray-500); }
.cs-file-hint { font-size: 11px; color: #9E9E9E; margin-top: 5px; }

/* 커스텀 셀렉트박스 */
.cs-select-like { position: relative; max-width: 260px; }
.cs-select-trigger { position: relative; text-align: left; cursor: pointer; padding-right: 40px; background: #fff; }
.cs-select-trigger::after { content: ''; position: absolute; top: 50%; right: 14px; width: 8px; height: 8px; border-right: 1.5px solid #777; border-bottom: 1.5px solid #777; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cs-select-like.is-open .cs-select-trigger { border-color: #ff4e8c; }
.cs-select-like.is-open .cs-select-trigger::after { transform: translateY(-30%) rotate(-135deg); }
.cs-select-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-select-options { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #E0E0E0; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); z-index: 50; max-height: 220px; overflow-y: auto; }
.cs-select-like.is-open .cs-select-options { display: block; }
.cs-select-option { padding: 10px 14px; font-size: 14px; color: #222; cursor: pointer; line-height: 1.4; }
.cs-select-option.is-selected { background: #FFF5F8; color: #ff4e8c; }
.cs-form-bottom { border-top: 1px solid #F0F0F0; margin-top: 32px; }

/* ── 댓글 섹션 ── */
.cs-comment-section { margin-top: 36px; }
.cs-comment-title { font-size: 14px; font-weight: 600; color: #555; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid #F0F0F0; }

/* 댓글 항목 */
.cs-comment-item { padding: 5px 0 15px;}
.comment-meta { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; font-size: 12px; color: #9E9E9E; }
.comment-author { font-weight: 600; color: #ff4e8c; font-size: 13px; }

/* 아바타 */
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; }

/* 관리자 아이콘 (핑크) */
.comment-author-icon { color: #ff4e8c; margin-right: 3px; }

/* 댓글 깊이 들여쓰기 */
.cs-comment-item.is-depth-1 { margin-left: 20px; }
.cs-comment-item.is-depth-2 { margin-left: 40px; }
.cs-comment-item.is-depth-3 { margin-left: 60px; }

/* 댓글 본문·lucky·액션 */
.comment-body { font-size: 14px; color: #222; line-height: 1.5; }
.comment-action {display:flex;gap:5px;padding-top:7px;font-size:11px;font-weight:400;color:#000;}

/* 댓글 작성 영역 */
.cs-comment-write { background: #F8F8F8; border-radius: 10px; padding: 18px; margin-top: 10px; }
.cs-comment-write textarea { border: 1px solid #E0E0E0; border-radius: 6px; padding: 10px 14px; font-size: 13px; resize: vertical; min-height: 100px; outline: none; transition: border 0.2s; background: #fff; }
.cs-comment-write textarea:focus { border-color: #ff4e8c; }

/* 비밀글 안내 페이지 */
.cs-pw-wrap { text-align: center; padding: 80px 20px; }
.cs-pw-wrap .lock-icon { font-size: 48px; color: #E0E0E0; margin-bottom: 16px; }
.cs-pw-wrap h4 { font-size: 18px; font-weight: 600; color: #222; margin-bottom: 8px; }
.cs-pw-wrap p { font-size: 13px; color: #9E9E9E; margin-bottom: 24px; }

/* 반응형 */
@media (max-width:799px) {
	.cs-subtitle { font-size: 12px; margin-bottom: 20px; }
	.cs-title { font-size: 16px; }
	.cs-board { padding: 16px 14px 40px; }
	.cs-table thead th.th-date,
	.cs-table td.td-date,
	.cs-table td.td-del { display: none; }
	.cs-table td.td-title a,
	.cs-table td.td-title span { font-size: 12px; }
	.cs-table tbody td { padding: 10px 0; }
	.cs-btn-danger { padding: 4px 10px; }
	.cs-label { margin-bottom:7px; }
	.cs-label,
	.cs-form-control { font-size: 12px; }
	.cs-file-icon { font-size: 16px; }
	.cs-file-placeholder { font-size: 10px; }
	.cs-file-preview img { max-height: 280px; }
	
	.cs-post-header { margin-bottom:14px; padding-bottom:16px; }
	.cs-post-header .post-cat { margin-bottom: 8px; }
	.cs-post-body  { font-size:13px; color:#333; }
	.post-title { font-size:16px; margin-bottom:4px; }
	
	.comment-body { font-size:12px; color:#333; }
	.cs-comment-title {margin-bottom:12px;}
	.cs-comment-item {padding:0 0 10px;}
	.comment-meta {padding-bottom:6px;}
	.comment-action {padding-top:4px;}
	
	/* 플로팅배너 */
	.floating-wrap {display:flex;}
}