/* 시공사례 게시판 스킨 — 시안(css/cases.css)에 더해 실제 게시판에서 필요한 부분만 */

/* 제품 필터: 시안의 버튼 → 주소가 바뀌는 링크 */
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 11px 21px; background: #fff; color: var(--text-2); font-size: 16px; font-weight: 650; }
.filters a[aria-current=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 640px) { .filters a { padding: 9px 17px; font-size: 15px; } }
.load-more { display: inline-block; }
.load-more[aria-busy=true] { opacity: .6; pointer-events: none; }
.empty h2 { font-size: 24px; }

/* 사진이 없는 글 */
.card-photo .no-photo { display: grid; place-items: center; height: 100%; color: var(--text-3); font-size: 14px; }

/* 상세 본문 (그누보드 본문 출력) */
.detail-description p { margin: 0 0 1em; }
.detail-description img { max-width: 100%; height: auto; border-radius: 12px; }

/* 관리자 전용 버튼 */
.bk-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 20px; font-size: 13px; color: var(--text-3); }
.bk-admin-actions.inline { margin: 0; gap: 8px; }

/* 글쓰기 폼 */
.bk-write { background: #fff; border-radius: 28px; padding: 44px 48px; max-width: 900px; margin: 0 auto; }
.bk-write h1 { font-size: 32px; }
.bk-write-lead { color: var(--text-2); margin: 8px 0 28px; font-size: 16px; }
.bk-write form { display: grid; gap: 22px; }
.bk-field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.bk-field > span, .bk-field > legend { font-size: 15px; font-weight: 700; color: var(--text); padding: 0; }
.bk-field i { color: var(--cta); font-style: normal; }
.bk-field small { font-weight: 500; color: var(--text-3); font-size: 13px; }
.bk-field input[type=text], .bk-field input[type=url], .bk-field textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
.bk-field textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-choices label { position: relative; }
.bk-choices input { position: absolute; opacity: 0; }
.bk-choices span { display: inline-block; padding: 10px 20px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 650; cursor: pointer; }
.bk-choices input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.bk-choices input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.bk-multi, .bk-files input[type=file] { font: inherit; font-size: 15px; }
.bk-hint { font-size: 13px; color: var(--text-3); }
.bk-files { list-style: none; display: grid; gap: 8px; }
.bk-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.bk-files li.empty { background: #fafbfc; }
.bk-files .no { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.bk-files .name { font-weight: 600; word-break: break-all; }
.bk-files .del { color: var(--cta); font-weight: 600; }
.bk-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bk-actions .pill { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; padding: 14px 28px; }
.bk-actions .pill.ghost { border: 1px solid var(--line); }
.bk-actions .pill:disabled { opacity: .5; }
@media (max-width: 640px) {
  .bk-write { padding: 28px 20px; border-radius: 22px; }
  .bk-write h1 { font-size: 26px; }
  .bk-row2 { grid-template-columns: 1fr; }
  .bk-actions .pill { flex: 1; }
}

/* 현장 영상(유튜브) · 블로그 링크 */
.case-video { max-width: 780px; margin: 0 auto 32px; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.case-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.case-blog { max-width: 780px; margin: -12px auto 32px; }
