/* 게시판·문의 폼 — 사이트 원래 스타일 위에 얹는 최소 스타일 */
#board-app, .bd-form { --bd-line: #dcdcdc; --bd-ink: #222; --bd-muted: #777; --bd-accent: #1f4e8c; font-size: 15px; color: var(--bd-ink); text-align: left; }
.bd-hide { position: absolute; left: -9999px; }
.bd-msg, .bd-empty { padding: 48px 0; text-align: center; color: var(--bd-muted); border-top: 2px solid var(--bd-ink); border-bottom: 1px solid var(--bd-line); }
.bd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-total b { color: var(--bd-accent); }
.bd-search { display: flex; gap: 6px; }
.bd-search input { border: 1px solid var(--bd-line); padding: 8px 10px; min-width: 200px; font: inherit; }
.bd-search button, .bd-btn, .bd-form button { border: 1px solid var(--bd-ink); background: var(--bd-ink); color: #fff; padding: 8px 18px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
.bd-list { width: 100%; border-collapse: collapse; border-top: 2px solid var(--bd-ink); }
.bd-list th, .bd-list td { border-bottom: 1px solid var(--bd-line); padding: 13px 8px; text-align: center; }
.bd-list th { font-weight: 600; background: #f7f7f7; }
.bd-list td.bd-title { text-align: left; }
.bd-list a { color: inherit; text-decoration: none; }
.bd-list a:hover { text-decoration: underline; }
.bd-pinned td { background: #f4f7fb; font-weight: 600; }
.bd-no { width: 70px; } .bd-date { width: 110px; } .bd-views { width: 60px; }
.bd-pages { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.bd-pages a, .bd-pages strong { min-width: 34px; padding: 6px 8px; border: 1px solid var(--bd-line); text-align: center; text-decoration: none; color: inherit; }
.bd-pages strong { background: var(--bd-ink); color: #fff; border-color: var(--bd-ink); }
.bd-view header { border-top: 2px solid var(--bd-ink); border-bottom: 1px solid var(--bd-line); padding: 18px 8px; }
.bd-view-title { font-size: 20px; margin: 0 0 8px; }
.bd-meta { margin: 0; color: var(--bd-muted); display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.bd-files { list-style: none; margin: 0; padding: 12px 8px; border-bottom: 1px solid var(--bd-line); background: #fafafa; }
.bd-files li { padding: 2px 0; } .bd-files span { color: var(--bd-muted); font-size: 13px; }
.bd-body { padding: 28px 8px 40px; line-height: 1.8; border-bottom: 1px solid var(--bd-line); word-break: break-word; }
.bd-img img { max-width: 100%; height: auto; }
.bd-nav { list-style: none; margin: 0; padding: 0; }
.bd-nav li { display: flex; gap: 16px; padding: 12px 8px; border-bottom: 1px solid var(--bd-line); }
.bd-nav span { color: var(--bd-muted); width: 56px; flex: none; }
.bd-nav a { color: inherit; text-decoration: none; }
.bd-btns { text-align: right; margin-top: 20px; }
@media (max-width: 640px) { .bd-views, .bd-no { display: none; } .bd-search input { min-width: 0; width: 140px; } }

.bd-form { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.bd-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bd-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.bd-form label small { font-weight: 400; color: var(--bd-muted); }
.bd-form input, .bd-form textarea { border: 1px solid var(--bd-line); padding: 10px 12px; font: inherit; font-weight: 400; width: 100%; box-sizing: border-box; }
.bd-form textarea { min-height: 180px; resize: vertical; }
.bd-form .agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.bd-form .agree input { width: auto; margin-top: 4px; }
.bd-form .policy { font-size: 13px; color: var(--bd-muted); border: 1px solid var(--bd-line); padding: 12px; line-height: 1.6; background: #fafafa; }
.bd-form button { justify-self: center; padding: 12px 40px; }
.bd-out { min-height: 1.4em; text-align: center; }
.bd-ok { color: #1a7f37; } .bd-err { color: #c62828; }
@media (max-width: 640px) { .bd-form .row { grid-template-columns: 1fr; } }
