/* ==========================================================================
   bbs.css - 게시판 · 회원 화면
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.danger { color: var(--red) !important; }
.btn-primary.danger { background: var(--red); color: #fff !important; }
.btn-primary.danger:hover { background: #b83434; }
form.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.link-btn:hover { color: var(--red); }

/* icons (mask, currentColor) */
.ico-lock, .ico-file { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; background: currentColor; color: var(--muted); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-lock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9z'/%3E%3C/svg%3E"); }
.ico-file { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 6.5v10a4.5 4.5 0 0 1-9 0V5a3 3 0 0 1 6 0v10.5a1.5 1.5 0 0 1-3 0V6.5H9v9a3 3 0 0 0 6 0V5a4.5 4.5 0 0 0-9 0v11.5a6 6 0 0 0 12 0v-10h-1.5z'/%3E%3C/svg%3E"); margin: 0 0 0 4px; }
.ico-lock.lg { width: 40px; height: 40px; color: var(--brand-strong); margin: 0 0 8px; }

.bbs { min-width: 0; }

/* ---------- 안내 · 상단 ---------- */
.bbs-notice { background: var(--brand-softer); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; font-size: 15px; color: var(--ink-2); }
.bbs-notice p { margin: 0; }
.bbs-notice strong { color: var(--ink); margin-right: 6px; }
.bbs-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.bbs-count { margin: 0; font-size: 14px; color: var(--muted); }
.bbs-count strong { color: var(--ink); }
.bbs-search { display: flex; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.bbs-search select, .bbs-search input { height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; font-size: 14.5px; background: #fff; color: var(--ink); min-width: 0; }
.bbs-search select { padding-right: 30px; }
.bbs-search input { width: 220px; }
.bbs-search .btn { min-height: 44px; padding: 0 18px; }

/* ---------- 목록 ---------- */
.bbs-list { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; table-layout: fixed; }
.bbs-list th { font-weight: 500; color: var(--ink-2); background: var(--bg-2); padding: 13px 8px; border-bottom: 1px solid var(--line); }
.bbs-list td { padding: 15px 8px; border-bottom: 1px solid var(--line-2); text-align: center; color: var(--muted); }
.bbs-list .c-no { width: 76px; }
.bbs-list .c-name { width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-list .c-date { width: 110px; }
.bbs-list .c-hit { width: 70px; }
.bbs-list .c-state { width: 96px; }
.bbs-list td.c-title { text-align: left; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-list td.c-title a { color: var(--ink); }
.bbs-list td.c-title a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.bbs-list tbody tr { transition: background .15s; }
.bbs-list tbody tr:hover { background: var(--brand-softer); }
.bbs-list .re { display: inline-block; margin-left: calc((var(--d) - 1) * 14px); margin-right: 6px; color: var(--brand-strong); }
.bbs-list .is-deleted .t-del { color: var(--muted); }
.bbs-cmt { font-style: normal; font-size: 13px; color: var(--brand-ink); margin-left: 4px; font-weight: 500; }
.badge-new { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: var(--ink); font-size: 10px; font-weight: 700; margin-left: 6px; vertical-align: 1px; }
.st { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.st-done { background: #e8f4ec; color: #22744a; }
.st-wait { background: var(--bg-2); color: var(--muted); }
.bbs-empty { padding: 72px 20px; text-align: center; color: var(--muted); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- 갤러리 (신생아포토) ---------- */
.bbs-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.bbs-gallery a { display: block; color: var(--ink); }
.bbs-thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); position: relative; }
.bbs-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bbs-gallery a:hover .bbs-thumb img { transform: scale(1.06); }
.bbs-thumb-empty { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.bbs-g-title { display: block; margin-top: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-g-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.bbs-promo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px 36px; margin-bottom: 36px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, #fcedf5 0%, var(--brand-softer) 45%, #eef7e3 100%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bbs-promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(251,198,55,.18); }
.bbs-promo-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand-ink); text-transform: uppercase; }
.bbs-promo h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.4; letter-spacing: -.02em; }
.bbs-promo-text p { margin: 0; color: var(--ink-2); font-size: 15px; }
.bbs-promo-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.bbs-promo-card { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: 18px; background: rgba(255,255,255,.85); border: 1px solid rgba(242,169,0,.25); color: var(--ink); backdrop-filter: blur(6px); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.bbs-promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--ink); }
.bbs-promo-card strong { font-size: 17px; }
.bbs-promo-card > span:last-child { font-size: 13.5px; color: var(--brand-ink); }
.bbs-promo-card .ico { width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); position: relative; margin-bottom: 8px; }
.bbs-promo-card .ico::before { content: ""; position: absolute; inset: 10px; background: var(--brand-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-photo { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 7.2 5H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.2L15 3H9zm3 15a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E"); }
.ico-video { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-3.5l5 4v-11l-5 4V7a2 2 0 0 0-2-2H4z'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.bbs-faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 8px; cursor: pointer; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; flex: none; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-q { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); font-weight: 700; font-size: 14px; }
.faq-a { display: flex; gap: 14px; padding: 20px 8px 24px; background: var(--bg-2); border-radius: var(--radius-sm); margin: 0 0 16px; }
.faq-a .faq-q { background: var(--deep); color: #fff; }
.faq-body { min-width: 0; color: var(--ink-2); }
.faq-adm { text-align: right; margin: -8px 8px 16px; font-size: 13px; }

/* ---------- 페이지 · 버튼 ---------- */
.bbs-paging { display: flex; justify-content: center; gap: 4px; margin: 36px 0 8px; flex-wrap: wrap; }
.bbs-paging a, .bbs-paging strong { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; font-size: 15px; color: var(--ink-2); }
.bbs-paging a:hover { background: var(--brand-soft); color: var(--ink); }
.bbs-paging strong { background: var(--deep); color: #fff; font-weight: 500; }
.bbs-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.bbs-btns { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }

/* ---------- 보기 ---------- */
.bbs-view { border-top: 2px solid var(--ink); }
.bbs-view-head { padding: 26px 4px 18px; border-bottom: 1px solid var(--line); }
.bbs-view-title { margin: 0 0 10px; font-size: 24px; line-height: 1.45; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bbs-view-title .ico-lock { width: 18px; height: 18px; vertical-align: -1px; }
.bbs-view-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--ink-2); }
.bbs-view-meta .k { color: var(--muted); margin-right: 4px; }
.bbs-files { list-style: none; margin: 0; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.bbs-files li + li { margin-top: 4px; }
.bbs-files a { color: var(--ink); }
.bbs-files a .ico-file { margin: 0 6px 0 0; }
.bbs-files .sz { color: var(--muted); font-size: 13px; }
.bbs-body { padding: 32px 4px 48px; min-height: 160px; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; overflow-x: auto; }
.bbs-body img { max-width: 100% !important; height: auto !important; }
.bbs-body table { max-width: 100%; }
.bbs-img { margin: 0 0 20px; text-align: center; }
.bbs-img img { border-radius: var(--radius-sm); }

.bbs-memos { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.bbs-memos h3 { margin: 0 0 14px; font-size: 18px; }
.bbs-memos h3 span { color: var(--brand-ink); }
.bbs-memos ul { list-style: none; margin: 0; padding: 0; }
.bbs-memo { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-2); margin-bottom: 10px; }
.bbs-memo.is-staff { background: var(--brand-softer); border: 1px solid rgba(242,169,0,.3); }
.bbs-memos.is-answer .bbs-memo { padding: 22px 24px; }
.bbs-memos.is-answer .bbs-memo-head strong::before { content: "A"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); margin-right: 8px; font-size: 12px; }
.bbs-memo-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.bbs-memo-head time { color: var(--muted); font-size: 13px; }
.bbs-memo-head form { margin-left: auto; }
.bbs-memo-body { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.bbs-memo-wait { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--muted); margin: 0 0 10px; }
.bbs-memo-form { display: flex; gap: 8px; align-items: stretch; margin-top: 14px; }
.bbs-memo-form textarea { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical; }
.bbs-memo-form .btn { border-radius: var(--radius-sm); min-height: auto; }
.bbs-memo-login { font-size: 14px; color: var(--muted); }

.bbs-view-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.bbs-view-actions > div { display: flex; gap: 8px; flex-wrap: wrap; }
.bbs-prevnext { border-top: 1px solid var(--line); }
.bbs-prevnext a, .bbs-prevnext p { display: flex; gap: 18px; padding: 15px 8px; border-bottom: 1px solid var(--line-2); margin: 0; color: var(--ink); font-size: 15px; }
.bbs-prevnext a:hover { background: var(--brand-softer); }
.bbs-prevnext .k { flex: none; width: 64px; color: var(--muted); font-size: 14px; }
.bbs-prevnext .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 비밀번호 상자 ---------- */
.bbs-pwbox { max-width: 420px; margin: 20px auto; padding: 40px 32px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.bbs-pwbox h2 { margin: 0 0 6px; font-size: 22px; }
.bbs-pwbox p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.bbs-pwbox input[type=password] { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; font: inherit; text-align: center; letter-spacing: .1em; }
.bbs-empty-box { text-align: center; padding: 60px 20px; }

/* ---------- 쓰기 폼 · 회원 폼 ---------- */
.bbs-form, .mem-form { max-width: 860px; margin: 0 auto; }
.mem-form { max-width: 480px; }
.bbs-form-title { margin: 0 0 6px; font-size: 22px; }
.bbs-form-ref { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.fld { margin-top: 18px; min-width: 0; }
.fld > label, .fld > .lbl { display: block; font-weight: 500; font-size: 15px; margin-bottom: 7px; }
.fld em { font-style: normal; color: var(--red); }
.fld input[type=text], .fld input[type=password], .fld input[type=email], .fld input[type=tel], .fld textarea, .fld select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.fld input:focus, .fld textarea:focus, .fld select:focus, .bbs-memo-form textarea:focus, .bbs-search input:focus, .bbs-pwbox input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 4px rgba(251,198,55,.25); }
.fld textarea { resize: vertical; line-height: 1.7; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.help { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 15px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand-strong); }
.bbs-agree { margin-top: 22px; padding: 16px 18px; background: var(--bg-2); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.bbs-agree p { margin: 0; }
.bbs-agree .chk { margin-top: 10px; }

.bbs-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bbs-up li { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.bbs-up-cur { margin: 0 0 8px; font-size: 14px; }
.bbs-up-cur .chk { margin: 0 0 0 10px; font-size: 13.5px; color: var(--red); }
.bbs-up-pick { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.bbs-up-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bbs-up-pick:focus-within .btn { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.bbs-up-pick .btn { min-height: 38px; padding: 0 16px; font-size: 14px; pointer-events: none; }
.bbs-up-name { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bbs-up li.is-done .bbs-up-name { color: var(--ink); }
.bbs-up li.is-error .bbs-up-name { color: var(--red); }
.bbs-up progress { width: 100%; height: 6px; margin-top: 8px; accent-color: var(--brand-strong); }
.bbs-form .bbs-btns .btn { min-width: 120px; }

/* 회원 */
.mem-card { max-width: 480px; margin: 0 auto; padding: 40px 36px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.mem-card.wide { max-width: 760px; }
.mem-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.mem-card .lead { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.mem-links { display: flex; justify-content: center; gap: 6px 18px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; }
.mem-links a { color: var(--ink-2); }
.mem-msg { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; margin: 14px 0 0; }
.mem-msg.err { background: #fdecec; color: #a12d2d; }
.mem-msg.ok { background: #e8f4ec; color: #22744a; }
.mem-terms { max-height: 220px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; }
.mem-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.mem-section h3 { margin: 0 0 4px; font-size: 18px; }
.mem-result { margin: 18px 0 0; padding: 18px; text-align: center; border-radius: 12px; background: var(--brand-softer); font-size: 18px; font-weight: 700; letter-spacing: .04em; }

@media (max-width: 1023px) {
  .bbs-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .bbs-promo { grid-template-columns: 1fr; padding: 28px 24px; }
}
@media (max-width: 767px) {
  .pc-only { display: none; }
  .bbs-top { flex-direction: column; align-items: stretch; }
  .bbs-search { width: 100%; }
  .bbs-search input { width: 0; flex: 1 1 0; }
  .bbs-search .btn { flex: none; padding: 0 16px; }
  .bbs-search select { flex: none; width: 92px; padding-right: 8px; }
  .bbs-list { font-size: 14.5px; }
  .bbs-list thead { display: none; }
  .bbs-list, .bbs-list tbody, .bbs-list tr { display: block; }
  .bbs-list tr { position: relative; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
  .bbs-list td { display: inline; padding: 0; border: 0; font-size: 13px; }
  .bbs-list td.c-no, .bbs-list td.c-hit { display: none; }
  .bbs-list td.c-title { display: block; white-space: normal; font-size: 15.5px; margin-bottom: 4px; padding-right: 0; }
  .bbs-list td.c-name::after { content: "·"; margin: 0 6px; color: var(--line); }
  .bbs-list td.c-state { margin-left: 8px; }
  .bbs-list .re { margin-left: calc((var(--d) - 1) * 10px); }
  .bbs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bbs-g-title { font-size: 14.5px; }
  .bbs-promo { padding: 24px 20px; border-radius: 20px; margin-bottom: 28px; }
  .bbs-promo h2 { font-size: 21px; }
  .bbs-promo-links { gap: 10px; }
  .bbs-promo-card { padding: 16px 14px; }
  .bbs-promo-card strong { font-size: 15px; }
  .bbs-view-title { font-size: 20px; }
  .bbs-body { padding: 24px 2px 36px; font-size: 15.5px; }
  .bbs-memo-form { flex-direction: column; }
  .bbs-memo-form .btn { min-height: 46px; }
  .fld-row { grid-template-columns: 1fr; }
  .mem-card { padding: 30px 20px; border-radius: 20px; }
  .bbs-pwbox { padding: 32px 20px; }
}
