/* 창조회 시안 — 회원 게시판(S모루 · 2026-10-12) · board.js
   배우님 10-12 「배치가 이쁘지 않아 디자인적으로 이쁘게」 →
   들어가기 = 넓은 판 둘로: 왼쪽 회원 작품 한 점(한지색 벽 · 원본 비율) / 오른쪽 안내 · 이름 + 코드 한 줄 · 쓰임 세 줄
   들어온 뒤 = 왼쪽 칸(들어온 회원 · 글쓰기 · 나가기) + 오른쪽 목록 · 글 · 글쓰기
   글자: 국립현대미술관 글꼴 · 400/600 · 본문 16 · 캡션 15 이상 · 누르는 곳 44 이상 · 자주는 로고에만 */
.bd-wrap { padding: 0 var(--side) 48px; }
.bd-wrap .page-title { margin-bottom: 8px; }
.bd-wrap .lead { margin: 0 0 36px; font-size: 16px; color: var(--ink-2); }
.bd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: var(--w-strong); cursor: pointer; transition: transform .25s, background .25s; }
.bd-btn:hover { background: #3a3537; transform: translateY(-1px); }
.bd-wrap button:focus-visible, .bd-wrap a:focus-visible, .bd-wrap input:focus-visible, .bd-wrap select:focus-visible, .bd-wrap textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bd-err { min-height: 1.5em; margin: 0; font-size: 15px; color: #a3262e; }
.bd-err:empty { min-height: 0; }
.bd-tag { display: inline-block; margin-right: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-style: normal; font-size: 15px; color: var(--ink-2); }

/* ── 들어가기: 넓은 판 둘 ── */
.bd-gate { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 560px; border-top: 1px solid var(--ink); }
.bd-art { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 64px); background: var(--wall); }
.bd-art a { display: block; line-height: 0; }
.bd-art img { width: 100%; height: auto; max-height: 520px; object-fit: contain; box-shadow: 0 2px 4px rgba(40, 30, 25, .08), 0 22px 50px rgba(40, 30, 25, .16); }
.bd-art figcaption { font-size: 15px; color: var(--ink-2); }
.bd-art figcaption b { color: var(--ink); font-weight: var(--w-strong); }
.bd-gate-in { padding: clamp(32px, 4.4vw, 72px) 0 clamp(28px, 3vw, 48px) clamp(32px, 5vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.bd-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0; padding: 4px 14px 4px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: var(--w-strong); }
.bd-lock { position: relative; display: inline-block; width: 12px; height: 9px; margin-top: 5px; border: 2px solid var(--ink); border-radius: 2px; }
.bd-lock::before { content: ""; position: absolute; left: 1px; right: 1px; bottom: 100%; height: 6px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.bd-gate h2 { margin: 22px 0 0; font-size: clamp(28px, 2.6vw, 40px); font-weight: var(--w-strong); line-height: 1.3; }
.bd-gate .bd-lead { margin: 16px 0 0; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.bd-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 32px; }
.bd-form .bd-err { grid-column: 1 / -1; }
.bd-form label, .bd-write label { display: grid; gap: 8px; font-size: 15px; font-weight: var(--w-strong); }
.bd-form select, .bd-form input, .bd-write input[name], .bd-write textarea { width: 100%; min-height: 52px; padding: 10px 16px; border: 1px solid #c9c4bd; border-radius: 8px; background: var(--paper); font: inherit; font-size: 17px; font-weight: var(--w); color: var(--ink); }
.bd-form input[name="code"] { font-variant-numeric: tabular-nums; }
.bd-form input[name="code"]:not(:placeholder-shown) { letter-spacing: .28em; }     /* 넣은 숫자만 벌림 — 안내 글(숫자 6자리)은 그대로 */
.bd-help { margin: 32px 0 0; font-size: 15px; color: var(--ink-2); }
.bd-demo { margin: 12px 0 0; padding: 10px 14px; background: #fff7d6; border: 1px solid #e3cf7a; border-radius: 6px; font-size: 15px; color: #5b4a00; }

/* ── 들어온 뒤: 왼쪽 칸 + 오른쪽 본문 ── */
.bd-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; border-top: 1px solid var(--ink); padding-top: 32px; }
.bd-side { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 26px 24px; background: var(--wall); }
.bd-side-k { margin: 0; font-size: 15px; color: var(--ink-2); }
.bd-side-me { margin: 0 0 10px; font-size: 22px; font-weight: var(--w-strong); }
.bd-side-me a { color: var(--ink); text-decoration: none; }
.bd-side-me a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bd-side .bd-btn { width: 100%; }
.bd-out, .bd-back, .bd-cancel, .bd-own button { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.bd-side .bd-out, .bd-side .bd-back { align-self: flex-start; }
.bd-side-note { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.bd-main { min-width: 0; }
.bd-post, .bd-write { max-width: 820px; }
/* 목록 = 네이버 블로그 앨범형(배우님 10-12) — 공지 줄 · 「N개의 글」 + 앨범형 | 목록형 · 카드 격자 */
.bd-notes { list-style: none; margin: 0 0 8px; padding: 0; }
.bd-note { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.bd-note b { font-size: 15px; font-weight: var(--w-strong); }
.bd-note .t { font-size: 16px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-note .d { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-note:hover .t { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.bd-head p { margin: 0; font-size: 16px; }
.bd-head p b { font-weight: var(--w-strong); }
.bd-head p span { margin-left: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-view { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.bd-view button { min-height: 40px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.bd-view button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: var(--w-strong); }
.bd-album { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 22px; margin: 0; padding: 32px 0 8px; }
.bd-card { display: block; text-decoration: none; color: var(--ink); }
.bd-card .ph { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--wall); }
.bd-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }   /* 카드 그림만 네모로 — 글 안 사진은 원본 비율 */
.bd-card .ph i { position: absolute; right: 8px; top: 8px; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: rgba(28, 26, 27, .72); color: #fff; font-style: normal; font-size: 15px; text-align: center; }
.bd-card .ph.tx { display: flex; align-items: center; padding: 18px; border: 1px solid var(--line); }
.bd-card .ph.tx span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 1.6; color: var(--ink); }
.bd-card .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 14px; font-size: 17px; font-weight: var(--w-strong); line-height: 1.45; }
.bd-card .m { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.bd-card:hover .ph img { transform: scale(1.03); }
.bd-card:hover .t { text-decoration: underline; text-underline-offset: 4px; }

/* 목록 */
.bd-list { list-style: none; margin: 0; padding: 0; }
.bd-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t th" "m th"; column-gap: 24px; row-gap: 8px; align-items: center; min-height: 112px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.bd-row .t { grid-area: t; font-size: 20px; font-weight: var(--w-strong); line-height: 1.45; }
.bd-row .m { grid-area: m; font-size: 15px; color: var(--ink-2); }
.bd-row .th { grid-area: th; width: 104px; height: 104px; object-fit: cover; background: var(--wall); }   /* 목록의 작은 그림만 네모 — 글 안의 사진은 원본 비율 */
.bd-row:hover .t { text-decoration: underline; text-underline-offset: 5px; }
.bd-empty { padding: 48px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* 읽기 */
.bd-post h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: var(--w-strong); line-height: 1.35; }
.bd-by { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.bd-by a { color: var(--ink); font-weight: var(--w-strong); text-underline-offset: 4px; }
.bd-body { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.9; }
.bd-photos { display: grid; gap: 14px; margin-top: 32px; }
.bd-photos.n2, .bd-photos.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.bd-photos img { width: 100%; height: auto; background: var(--wall); }
.bd-own { display: flex; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.bd-del[data-sure] { color: #a3262e; }

/* 글쓰기 */
.bd-write { display: grid; gap: 20px; }
.bd-write h2 { margin: 0; font-size: 28px; font-weight: var(--w-strong); }
.bd-write .bd-by { margin: -10px 0 0; }
.bd-write textarea { min-height: 240px; line-height: 1.75; resize: vertical; }
.bd-ph { padding: 18px 20px; background: var(--wall); }
.bd-ph .lab { display: block; font-size: 15px; font-weight: var(--w-strong); }
.bd-ph .lab small { font-weight: var(--w); color: var(--ink-2); font-size: 15px; }
.bd-ph-list { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.bd-ph-list:empty { margin: 6px 0; }
.bd-ph-list figure { position: relative; margin: 0; }
.bd-ph-list img { height: 104px; width: auto; display: block; background: var(--paper); }
.bd-ph-list button { position: absolute; top: -12px; right: -12px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--wall); background: var(--ink); color: #fff; font-size: 22px; cursor: pointer; }
.bd-ph-add { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px dashed #a9a39b; border-radius: 8px; background: var(--paper); font-size: 16px; cursor: pointer; }
.bd-ph-add[hidden] { display: none; }
.bd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

@media (max-width: 1023px) {
  .bd-gate { grid-template-columns: 1fr; }
  .bd-art { padding: 28px; }
  .bd-art img { max-height: 380px; }
  .bd-gate-in { padding: 36px 0 8px; }
  .bd-grid { grid-template-columns: 1fr; gap: 24px; }
  .bd-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 18px 20px; }
  .bd-side-k { flex-basis: 100%; }
  .bd-side-me { margin: 0 auto 0 0; }
  .bd-side .bd-btn { width: auto; }
  .bd-side-note { flex-basis: 100%; margin-top: 4px; }
}
@media (max-width: 767px) {
  .bd-gate { margin: 0 calc(-1 * var(--side)); border-top: 0; }
  .bd-art { padding: 22px var(--side); }
  .bd-art img { max-height: 300px; }
  .bd-gate-in { padding: 28px var(--side) 0; }
  .bd-form { grid-template-columns: 1fr; }
  .bd-form .bd-btn { width: 100%; }
  .bd-row { min-height: 92px; padding: 18px 0; }
  .bd-row .t { font-size: 18px; }
  .bd-row .th { width: 72px; height: 72px; }
  .bd-photos.n2, .bd-photos.n3 { grid-template-columns: 1fr; }
  .bd-album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; padding-top: 22px; }
  .bd-card .t { font-size: 16px; }
  .bd-card .ph.tx { padding: 12px; } .bd-card .ph.tx span { font-size: 15px; -webkit-line-clamp: 4; }
  .bd-note { grid-template-columns: auto 1fr; } .bd-note .d { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bd-btn, .bd-card .ph img { transition: none; } }

/* 10-12 읽기는 누구나 · 글쓰기만 회원 — 들어가기 화면은 「글쓰기」를 누를 때만 · 위에 「← 게시판 글 보기」 */
.bd-gate-back { margin: 0 0 8px; }
.bd-gate-back .bd-back { padding-left: 0; }
.bd-side-k .bd-lock { margin-right: 4px; vertical-align: 0; }
/* 전시 소식 글(전시 쪽 자료에서 저절로) — 아래 링크 줄 */
.bd-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.bd-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: var(--w-strong); color: var(--ink); text-underline-offset: 5px; }

/* 꼬리표 파스텔(배우님 10-12 「전시 소식 같은 아이콘에 이쁜 파스텔 색상」) — 바탕은 옅게 · 글자는 같은 계열 진한 색(대비 4.5 넘게) · 테두리 없음
   전시 소식 = 하늘 · 예시 = 레몬 · 공지 = 살구 · 회원 전용 = 라벤더 (자주는 로고에만이라 분홍 · 자주 계열은 피함) */
.bd-tag { border: 0; padding: 2px 10px; font-weight: var(--w-strong); }
.bd-tag.t-news { background: #dcebfb; color: #1f4f80; }
.bd-tag.t-ex { background: #fff1b8; color: #6b4e00; }
.bd-tag.t-notice { background: #fde3cf; color: #7e3d12; margin-right: 0; }
.bd-note b.bd-tag { font-size: 15px; }
.bd-chip.t-member { border: 0; background: #e8e1fa; color: #4a3391; padding: 5px 15px 5px 13px; }
.bd-chip.t-member .bd-lock, .bd-chip.t-member .bd-lock::before { border-color: #4a3391; }
/* 글쓰기 단추도 파스텔(배우님 10-12 「글쓰기도」) — 민트 바탕 · 진한 초록 글자 · 연필 표시 */
.bd-btn.bd-new { gap: 8px; background: #d5f0e2; color: #17583a; }
.bd-btn.bd-new:hover { background: #c2e8d4; }
.bd-btn.bd-new .pen { position: relative; width: 14px; height: 14px; }
.bd-btn.bd-new .pen::before { content: ""; position: absolute; left: 5px; top: -1px; width: 4px; height: 13px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.bd-btn.bd-new .pen::after { content: ""; position: absolute; left: 0; bottom: 0; width: 6px; height: 2px; background: currentColor; }
/* 앨범형 | 목록형 바꾸기도 파스텔(배우님 10-12 「앨범형의 토글도」) — 고른 쪽 = 라벤더 · 앞에 모양 표시(앨범 = 네모 네 칸 · 목록 = 줄 셋) */
.bd-view { border-color: #e2dcf3; background: #faf8ff; }
.bd-view button { display: inline-flex; align-items: center; gap: 7px; }
.bd-view button::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; opacity: .75;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.bd-view button[data-v="album"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect width='5' height='5' rx='1'/%3E%3Crect x='7' width='5' height='5' rx='1'/%3E%3Crect y='7' width='5' height='5' rx='1'/%3E%3Crect x='7' y='7' width='5' height='5' rx='1'/%3E%3C/svg%3E"); }
.bd-view button[data-v="list"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect y='1' width='12' height='2' rx='1'/%3E%3Crect y='5' width='12' height='2' rx='1'/%3E%3Crect y='9' width='12' height='2' rx='1'/%3E%3C/svg%3E"); }
.bd-view button[aria-pressed="true"] { background: #e8e1fa; color: #4a3391; }
.bd-view button[aria-pressed="true"]::before { opacity: 1; }
