/* ==========================================================
   board-list.css : 기본 게시판 목록 (공지사항 · 질문답변) — theme/charity_ch01/skin/board/ch_basic
   머리말 · 버튼 · 페이지는 이벤트 스킨(page_basic/style.css)의 .mev 를 같이 씀
========================================================== */
.bl { max-width: calc(960px + var(--gutter, 20px) * 2); }
.bl-cate a { white-space: nowrap; }
.bl-cate { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
@media screen and (min-width: 768px) { .bl-cate { justify-content: center; } }

.bl-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bl-count { margin-right: auto !important; font-size: 14px; color: var(--muted); }
.bl-count b { color: var(--ink); }
.bl-search { display: flex; align-items: center; width: min(280px, 100%); height: 44px; border: 1px solid var(--line); background: #fff; }
.bl-search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 14px; outline: none; }
.bl-search button { display: grid; place-items: center; width: 44px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.bl-search:focus-within { border-color: var(--ink); }
.bl-write { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; white-space: nowrap; }

.bl-list { border-top: 2px solid var(--ink); }
.bl-item { border-bottom: 1px solid var(--line); }
.bl-item > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 20px 4px; transition: background-color .15s; }
.bl-item > a:hover { background: var(--soft); }
.bl-item.is-notice > a { background: #faf8fd; }
.bl-item__badges { display: flex; gap: 6px; }
.bl-item__badges:empty { display: none; }
.bl-badge { display: inline-block; padding: 3px 9px; background: var(--soft); color: var(--text); font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.bl-badge--notice { background: var(--ink); color: #fff; }
.bl-badge--done { background: #e8f6ee; color: #1f8a4c; }
.bl-badge--wait { background: #fff4e0; color: #b26a00; }
.bl-item__title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.bl-item__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-item.is-notice .bl-item__title { font-weight: 800; }
.bl-lock { flex-shrink: 0; color: var(--muted); }
.bl-new { flex-shrink: 0; display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.bl-cmt { flex-shrink: 0; font-size: 14px; color: var(--accent); }
.bl-item__meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bl-empty { padding: 72px 20px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }

@media screen and (max-width: 767px) {
	.bl-bar { flex-wrap: wrap; }
	.bl-count { width: 100%; }
	.bl-search { flex: 1 1 0; min-width: 0; width: auto; }
	.bl-item > a { grid-template-columns: minmax(0, 1fr); padding: 16px 2px; gap: 6px; }
	.bl-item__title { font-size: 16px; white-space: normal; }
	.bl-item__meta { gap: 10px; }
}

/* ---------- 글쓰기 ---------- */
.bw { max-width: calc(760px + var(--gutter, 20px) * 2); }
.bw-form { display: grid; gap: 18px; }
.bw-row { display: grid; gap: 12px; }
.bw-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-field { display: flex; flex-direction: column; gap: 6px; }
.bw-field > span { font-size: 14px; font-weight: 700; color: var(--ink); }
.bw-field > span small, .bw-field > small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bw-field input[type=text], .bw-field input[type=email], .bw-field input[type=password], .bw-field select, .bw-editor textarea {
	width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fff;
	font: inherit; font-size: 15px; color: var(--ink); box-sizing: border-box;
}
.bw-editor textarea { height: 260px; padding: 14px; line-height: 1.7; resize: vertical; }
.bw-field input:focus, .bw-field select:focus, .bw-editor textarea:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.bw-editor .sound_only { display: none; }
.bw-editor iframe { max-width: 100%; }
.bw-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 16px; background: var(--soft); }
.bw-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.bw-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.bw-check small { color: var(--muted); }
.bw-consent { padding: 16px; border: 1px solid var(--line); }
.bw-consent p { margin-bottom: 10px !important; font-size: 13px; line-height: 1.7; color: var(--text); }
.bw-consent p b { display: block; margin-bottom: 2px; color: var(--ink); }
.bw-consent a { color: var(--accent); text-decoration: underline; }
.bw-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bw-captcha #captcha { margin: 0; }
.bw-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 6px; }
.bw-btns .mev-btn { height: 54px; justify-content: center; font-size: 16px; }
@media screen and (max-width: 767px) {
	.bw-row--3 { grid-template-columns: 1fr 1fr; }
	.bw-row--3 .bw-field:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- 약관 · 개인정보처리방침 ---------- */
.ct-doc { max-width: calc(820px + var(--gutter, 20px) * 2); }
.ct-doc__body { padding-top: 8px; border-top: 2px solid var(--ink); font-size: 15px; line-height: 1.85; color: var(--text); }
.ct-doc__body h2 { margin: 36px 0 12px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ct-doc__body h3 { margin: 24px 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.ct-doc__body p { margin: 0 0 14px !important; }
.ct-doc .mev-note a { color: var(--accent); text-decoration: underline; }
@media screen and (max-width: 767px) { .ct-doc__body { font-size: 14.5px; } .ct-doc__body h2 { font-size: 17px; } }
