@charset "UTF-8";
/* frontend/board/_board-common.scss */
/* =========================================
   Board Tokens (공통 토큰)
   ========================================= */
/* =========================================
   Board Layout Contract (공통 레이아웃)
   - .board-section : 섹션 리듬(상하 여백)
   - .board-shell   : 폭/카드/패딩/톤
   ========================================= */
.board-section {
  background: #ffffff;
  padding: 48px 0;
}
@media (max-width: 768px) {
  .board-section {
    padding: 32px 0;
  }
}
@media (max-width: 480px) {
  .board-section {
    padding: 24px 0;
  }
}

.board-shell {
  max-width: clamp(1080px, 86vw, 1320px);
  margin: 0 auto;
  background: #ffffff;
  padding: 48px 24px;
}
@media (max-width: 768px) {
  .board-shell {
    padding: 32px 8px;
  }
}
@media (max-width: 480px) {
  .board-shell {
    padding: 24px 4px;
  }
}

.board-shell.is-reading {
  max-width: clamp(1080px, 86vw, 1320px);
}

/* =========================================
   Board Header (공통) : 타이틀/검색 영역
   ========================================= */
.board-header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .board-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================
   Board Header Title (공통)
   ========================================= */
.board-header__title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
}
.board-header__title h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.board-header__title .board-header__desc,
.board-header__title .qna-desc {
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  word-break: keep-all;
}

.board-header__title.is-empty {
  min-height: 1px;
}

/* =========================================
   Search (공통)
   ========================================= */
.board-search {
  margin-left: auto;
}
.board-search .board-search__group {
  --ctl-h: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.board-search .board-search__select {
  height: var(--ctl-h);
  min-width: 84px;
  padding: 0 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.875rem;
  color: #111827;
}
.board-search .board-search__select:focus {
  outline: none;
}
.board-search .board-search__input {
  height: var(--ctl-h);
  min-width: clamp(180px, 28vw, 320px);
  padding: 0 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.875rem;
  color: #111827;
}
.board-search .board-search__input::placeholder {
  color: #94a3b8;
}
.board-search .board-search__input:focus {
  outline: none;
}
.board-search .board-search__button {
  height: var(--ctl-h);
  padding: 0 1rem;
  border: 1px solid #111827;
  border-radius: 4px;
  background: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .board-search {
    width: 100%;
  }
  .board-search .board-search__group {
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    gap: 8px;
  }
  .board-search .board-search__select,
  .board-search .board-search__input,
  .board-search .board-search__button {
    width: 100%;
  }
}

/* =========================================
   Placeholders (extend용)
   ========================================= */
.board-shell .board-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.board-shell .board-table th,
.board-shell .board-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  font-size: 0.9rem;
}

/* =========================================
   Utilities (board 한정 유틸)
   ========================================= */
.board-ellipsis, .board-shell .gallery-board--thumb-list .thumb-list-title, .board-shell .board-table .board-title-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.board-muted {
  color: #4b5563;
}

.board-section ul,
.board-section ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.board-content ul,
.board-content ol {
  list-style: revert;
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

/* =========================================
   Badge (board 스코프)
   - 전역 .badge 충돌 방지
   ========================================= */
.board-section .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.board-section .badge-notice {
  background-color: #f9fafb;
  color: #2563eb;
  border: 1px solid #2563eb;
}

/* =========================================
   Pagination (모든 보드 공통)
   - HTML 클래스 버전 차이 호환(page-list/pagination-list, active/is-active)
   ========================================= */
.board-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.board-pagination .pagination-list,
.board-pagination .page-list {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.board-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  line-height: 1;
  font-size: 0.875rem;
}
.board-pagination .page-link:hover {
  background: #f9fafb;
  border-color: #94a3b8;
  color: #111827;
}
.board-pagination li.active .page-link,
.board-pagination li.is-active .page-link {
  background: #f3f4f6;
  border-color: #94a3b8;
  color: #111827;
}
.board-pagination li.is-disabled .page-link {
  pointer-events: none;
  opacity: 0.5;
}

/* =========================================
   Content Safety
   ========================================= */
.board-content {
  overflow-wrap: anywhere;
}

.board-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.board-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.board-content .table-wrap {
  overflow-x: auto;
}

/* frontend/board/_board-list.scss */
/* =========================================================
   Board List (ONLY)
   - 레이아웃(.board-section/.board-shell) = board-common
   - pagination(.board-pagination)         = board-common
   - badge(.badge/.badge-notice)           = board-common
   여기서는 "리스트 화면에서만 필요한 것"만 둔다.
   ========================================================= */
.board-shell {
  /* =========================================================
     Bottom Actions (리스트 전용)
     ========================================================= */
  /* =========================================================
     400px 이하: 제목/등록일만
     ========================================================= */
}
.board-shell .board-list {
  overflow-x: auto;
}
.board-shell .board-table {
  table-layout: fixed;
  border-top: 2px solid #1f2937;
}
.board-shell .board-table th,
.board-shell .board-table td {
  text-align: center;
}
.board-shell .board-table thead th {
  background: #f9fafb;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.board-shell .board-table td.tdTitle,
.board-shell .board-table td.col-title {
  text-align: left;
}
.board-shell .board-table td.tdTitle a,
.board-shell .board-table td.col-title a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
}
.board-shell .board-table td.tdTitle a:hover,
.board-shell .board-table td.col-title a:hover {
  color: #2563eb;
}
.board-shell .board-table .board-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.board-shell .board-table .board-title-text {
  display: block;
}
.board-shell .board-table .board-title-wrap .icon-lock,
.board-shell .board-table .board-title-wrap [data-lucide=lock] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke-width: 2;
  color: #4b5563;
}
.board-shell .board-table .board-title-wrap .board-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background-color: #f9fafb;
}
.board-shell .board-table .board-title-wrap .board-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-shell .board-table tr.notice-row {
  background: rgba(0, 0, 0, 0.015);
}
.board-shell .board-table .col-no .badge-notice {
  vertical-align: middle;
}
.board-shell .board-table .is-empty {
  color: #4b5563;
  text-align: center;
  font-size: 0.875rem;
}
@media (min-width: 1024px) {
  .board-shell .board-table col.col-no {
    width: 72px;
  }
  .board-shell .board-table col.col-author {
    width: clamp(96px, 12vw, 140px);
  }
  .board-shell .board-table col.col-date {
    width: clamp(110px, 14vw, 160px);
  }
  .board-shell .board-table col.col-hit {
    width: 80px;
  }
  .board-shell .board-table col.col-action {
    width: 92px;
  }
}
@media (max-width: 767.98px) {
  .board-shell .board-table th.col-action,
  .board-shell .board-table td.col-action {
    display: none;
  }
}
.board-shell .board-bottom-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.board-shell .board-bottom-actions .btn {
  --ctl-h: 40px;
  height: var(--ctl-h);
  line-height: 1;
  padding: 0 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}
.board-shell .board-bottom-actions .btn-primary {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #ffffff;
}
.board-shell .board-bottom-actions .btn-primary:hover {
  filter: brightness(1.05);
}
@media (max-width: 400px) {
  .board-shell .board-table .col-author,
  .board-shell .board-table th.col-author,
  .board-shell .board-table td.col-author,
  .board-shell .board-table .col-hit,
  .board-shell .board-table th.col-hit,
  .board-shell .board-table td.col-hit,
  .board-shell .board-table .col-action,
  .board-shell .board-table th.col-action,
  .board-shell .board-table td.col-action {
    display: none;
  }
  .board-shell .board-table td.tdTitle a,
  .board-shell .board-table td.col-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
  .board-shell .board-table .col-date,
  .board-shell .board-table td.col-date {
    text-align: right;
    white-space: nowrap;
  }
}

/* frontend/board/_board-form.scss */
/* =========================================================
   Board Form (ONLY)
   - 레이아웃(.board-section/.board-shell) = board-common
   - 여기서는 폼 내부만 스타일링
   ========================================================= */
.board-shell {
  /* =========================================
   * 비밀글 / 공지글 옵션 (board-form 내부로 제한)
   * ========================================= */
  /* =========================================
   * 썸네일 (board-shell 내부로만)
   * ========================================= */
}
.board-shell .board-form {
  display: grid;
  gap: 24px;
}
.board-shell .board-form .form-row {
  display: grid;
  gap: 8px;
}
.board-shell .board-form .form-row--two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.board-shell .board-form .col-span-2 {
  grid-column: 1/-1;
}
@media (max-width: 768px) {
  .board-shell .board-form .form-row--two-cols {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}
.board-shell .board-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.board-shell .board-form .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.board-shell .board-form .form-group input[type=text],
.board-shell .board-form .form-group input[type=email],
.board-shell .board-form .form-group input[type=file],
.board-shell .board-form .form-group select,
.board-shell .board-form .form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #ffffff;
  color: #111827;
  transition: all 0.3s ease;
}
.board-shell .board-form .form-group input:focus,
.board-shell .board-form .form-group select:focus,
.board-shell .board-form .form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.09);
  outline: none;
}
.board-shell .board-form .form-group input::placeholder,
.board-shell .board-form .form-group textarea::placeholder {
  color: #94a3b8;
}
.board-shell .board-form .form-group input:disabled,
.board-shell .board-form .form-group select:disabled,
.board-shell .board-form .form-group textarea:disabled {
  background-color: #f3f4f6;
  opacity: 0.5;
  cursor: not-allowed;
}
.board-shell .board-form-fields .editor-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}
.board-shell .form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
}
.board-shell .form-actions .btn {
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.board-shell .form-actions .btn-primary {
  background-color: #2563eb;
  border: 1px solid #2563eb;
  color: #ffffff;
}
.board-shell .form-actions .btn-primary:hover {
  filter: brightness(1.05);
}
.board-shell .form-actions .btn-secondary {
  border: 1px solid #d1d5db;
  background: linear-gradient(0deg, #f9fafb, #fff);
  color: #374151;
}
.board-shell .form-actions .btn-secondary:hover {
  background: #f3f4f6;
}
@media (max-width: 480px) {
  .board-shell .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
.board-shell .form-actions.sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), #ffffff 40%);
  backdrop-filter: saturate(180%) blur(6px);
  border-top: 1px solid #e5e7eb;
  z-index: 10;
}
.board-shell .board-form .secret-option-group,
.board-shell .board-form .notice-option-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.board-shell .board-form .secret-option-group .secret-option,
.board-shell .board-form .notice-option-group .notice-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #374151;
}
.board-shell .board-form .secret-option-group input[type=checkbox],
.board-shell .board-form .notice-option-group input[type=checkbox] {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: #2563eb;
}
.board-shell .board-form .notice-option-group .form-note {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.board-shell .thumbnail-group {
  margin-top: 32px;
}
.board-shell .thumbnail-group .thumbnail-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-shell .thumbnail-group .thumb-preview {
  width: 200px;
  height: 140px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f9fafb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.board-shell .thumbnail-group .thumb-placeholder {
  opacity: 0.6;
}
.board-shell .thumbnail-group .thumb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.board-shell .thumbnail-group .thumb-input {
  flex: 0 1 auto;
  max-width: 240px;
  padding: 4px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 0.875rem;
}
.board-shell .thumbnail-group .btn-thumb-reset {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f3f4f6;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.board-shell .thumbnail-group .btn-thumb-reset:hover {
  background: #e5e7eb;
}

/* frontend/board/_board-detail.scss */
/* =========================================================
   Board Detail (ONLY)
   - 레이아웃(.board-section/.board-shell) = board-common
   - 여기서는 상세 내부만 스타일링
   ========================================================= */
.board-shell .board-detail {
  border-top: 1px solid #e5e7eb;
}
.board-shell .board-detail .detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 640px) {
  .board-shell .board-detail .detail-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.board-shell .board-detail .detail-label {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
@media (max-width: 640px) {
  .board-shell .board-detail .detail-label {
    text-align: left;
  }
}
.board-shell .board-detail .detail-value {
  color: #111827;
  line-height: 1.6;
  min-width: 0;
}
.board-shell .board-detail .detail-row.title-row {
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
  padding-inline: 0.5rem;
}
.board-shell .board-detail .detail-row.title-row .detail-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
}
.board-shell .board-detail .detail-row.meta-row .detail-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 640px) {
  .board-shell .board-detail .detail-row.meta-row .detail-value {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
.board-shell .board-detail .meta-row .author {
  font-weight: 600;
  color: #111827;
}
.board-shell .board-detail .meta-row .right-info {
  display: inline-flex;
  gap: 1rem;
  color: #374151;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .board-shell .board-detail .meta-row .right-info {
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}
.board-shell .board-detail .detail-thumbnail {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
}
.board-shell .board-detail .attached-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
}
.board-shell .board-detail .attach-value .attach {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #111827;
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.board-shell .board-detail .attach-value .attach:hover {
  border-color: #2563eb;
  background-color: #f9fafb;
}
.board-shell .board-navigation {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 0.5rem;
}
.board-shell .board-navigation .nav-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.board-shell .board-navigation .nav-label {
  color: #374151;
  font-weight: 600;
  white-space: nowrap;
}
.board-shell .board-navigation .nav-link {
  color: #111827;
  text-decoration: none;
}
.board-shell .board-navigation .nav-link:hover {
  color: #2563eb;
}
.board-shell .detail-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.board-shell .detail-actions .actions-right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.board-shell .board-detail .content-area {
  overflow-wrap: anywhere;
}
.board-shell .board-detail .content-area img {
  max-width: 100%;
  height: auto;
  display: block;
}
.board-shell .board-detail .content-area table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}
.board-shell .board-detail .content-area .table-wrap {
  overflow-x: auto;
}
.board-shell .board-detail .pre-content {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  padding: 0;
}
.board-shell .board-detail .toastui-editor-contents {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.6;
  color: #111827;
}
.board-shell .board-detail .toastui-editor-contents img {
  max-width: 100%;
  height: auto;
  display: block;
}
.board-shell .board-detail .toastui-editor-contents table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}
.board-shell .board-detail .toastui-editor-contents .table-wrap {
  overflow-x: auto;
}

/* ================================================
 * 게시판 댓글 – 공통 스타일 (리스트 톤)
 * ================================================ */
.board-section .comment-section {
  margin-top: 32px;
  /* ============================
     댓글 목록 – 1번 이미지 톤
     ============================ */
  /* ============================
     댓글 페이징
     ============================ */
  /* ============================
     댓글 작성 폼
     ============================ */
}
.board-section .comment-section .comment-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.board-section .comment-section .comment-list {
  margin-bottom: 16px;
  border-top: 1px solid #e5e7eb;
}
.board-section .comment-section .comment-list .comment-item {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}
.board-section .comment-section .comment-list .comment-item .comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.board-section .comment-section .comment-list .comment-item .comment-writer {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}
.board-section .comment-section .comment-list .comment-item .comment-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #374151;
}
.board-section .comment-section .comment-list .comment-item .comment-date {
  font-size: 0.9rem;
}
.board-section .comment-section .comment-list .comment-item .btn-comment-delete {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  background: #ffffff;
  font-size: 0.75rem;
  cursor: pointer;
  color: #374151;
  transition: background-color 0.2s, border-color 0.2s;
}
.board-section .comment-section .comment-list .comment-item .btn-comment-delete:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}
.board-section .comment-section .comment-list .comment-item .comment-body {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #111827;
  padding: 8px 16px;
}
.board-section .comment-section .comment-list .no-comment {
  padding: 8px 0;
  color: #374151;
  font-size: 0.95rem;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}
.board-section .comment-section .comment-pagination {
  margin-top: 16px;
}
.board-section .comment-section .comment-form {
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 4px;
  background: #fbfdff;
  margin-top: 16px;
  display: grid;
  gap: 16px;
}
.board-section .comment-section .comment-form .comment-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-section .comment-section .comment-form .comment-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #374151;
}
.board-section .comment-section .comment-form .comment-user-info .comment-user-label {
  font-weight: 600;
  color: #111827;
}
.board-section .comment-section .comment-form .comment-user-info .comment-user-name {
  font-weight: 600;
}
.board-section .comment-section .comment-form textarea {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}
.board-section .comment-section .comment-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.board-section .comment-section .comment-form .comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-section .comment-section .comment-form .comment-actions .char-count {
  color: #374151;
  font-size: 0.75rem;
}
.board-section .comment-section .comment-form .comment-actions .btn-primary {
  padding: 8px 24px;
  border-radius: 4px;
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}
.board-section .comment-section .comment-form .comment-actions .btn-primary:hover {
  background: #1d4ed8;
}

/* frontend/board/_board-gallery.scss */
/* =========================================================
   Gallery Board (CONTENT ONLY)
   - 레이아웃은 board-section / board-shell 이 담당
   - 스코프는 board-shell 내부로 고정
   ========================================================= */
.board-shell .gallery-board {
  /* ==============================
   * GRID / 기본 카드
   * ============================== */
  /* ==============================
   * ALBUM
   * ============================== */
  /* ==============================
   * OVERLAY
   * ============================== */
  /* ==============================
   * THUMB LIST
   * ============================== */
}
.board-shell .gallery-board .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .board-shell .gallery-board .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .board-shell .gallery-board .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .board-shell .gallery-board .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.board-shell .gallery-board .thumbnail-box {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.board-shell .gallery-board .thumbnail-box a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.board-shell .gallery-board .thumbnail-box img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: #f9fafb;
  display: block;
}
.board-shell .gallery-board .thumbnail-box .title {
  padding: 8px 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.board-shell .gallery-board .thumbnail-box .gallery-meta {
  padding: 0 16px 8px;
  font-size: 0.8rem;
  color: #6b7280;
}
.board-shell .gallery-board .thumbnail-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}
.board-shell .gallery-board--album .album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .board-shell .gallery-board--album .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .board-shell .gallery-board--album .album-grid {
    grid-template-columns: 1fr;
  }
}
.board-shell .gallery-board--album .album-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.board-shell .gallery-board--album .album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.board-shell .gallery-board--album .album-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.board-shell .gallery-board--album .album-body {
  padding: 8px 16px 16px;
}
.board-shell .gallery-board--album .album-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-shell .gallery-board--album .album-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
}
.board-shell .gallery-board--overlay .overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .board-shell .gallery-board--overlay .overlay-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .board-shell .gallery-board--overlay .overlay-grid {
    grid-template-columns: 1fr;
  }
}
.board-shell .gallery-board--overlay .overlay-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #f3f4f6;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.board-shell .gallery-board--overlay .overlay-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.board-shell .gallery-board--overlay .overlay-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.board-shell .gallery-board--overlay .overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0));
}
.board-shell .gallery-board--overlay .overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: #fff;
}
.board-shell .gallery-board--overlay .overlay-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.board-shell .gallery-board--overlay .overlay-meta {
  font-size: 0.75rem;
  opacity: 0.85;
}
.board-shell .gallery-board--thumb-list .thumb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.board-shell .gallery-board--thumb-list .thumb-list-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 8px 16px;
  transition: background-color 0.15s ease;
}
.board-shell .gallery-board--thumb-list .thumb-list-item:hover {
  background-color: #f9fafb;
}
.board-shell .gallery-board--thumb-list .thumb-list-link {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.board-shell .gallery-board--thumb-list .thumb-list-thumb {
  width: 220px;
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f3f4f6;
  flex: 0 0 auto;
}
.board-shell .gallery-board--thumb-list .thumb-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-shell .gallery-board--thumb-list .thumb-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2px 0;
}
.board-shell .gallery-board--thumb-list .thumb-list-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.board-shell .gallery-board--thumb-list .thumb-list-title {
  margin: 0;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}
.board-shell .gallery-board--thumb-list .thumb-list-excerpt {
  margin: 8px 0 0 0;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-shell .gallery-board--thumb-list .thumb-list-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .board-shell .gallery-board--thumb-list .thumb-list-link {
    flex-direction: column;
    align-items: stretch;
  }
  .board-shell .gallery-board--thumb-list .thumb-list-thumb {
    width: 100%;
    height: auto;
  }
  .board-shell .gallery-board--thumb-list .thumb-list-thumb img {
    aspect-ratio: 16/9;
    height: auto;
  }
  .board-shell .gallery-board--thumb-list .thumb-list-body {
    justify-content: flex-start;
    padding-top: 8px;
  }
  .board-shell .gallery-board--thumb-list .thumb-list-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* frontend/board/_board-faq.scss */
/* =========================================================
   FAQ Board (A 규약)
   - 상단: .board-header / .board-header__title / .board-search = board-common
   - 여기서는 FAQ 목록/아코디언만 담당
   - 스코프: .faq-board
   ========================================================= */
.faq-board .faq-list-wrap {
  margin-top: 0;
}
.faq-board .faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}
.faq-board .faq-item {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  transition: background-color 0.15s ease;
}
.faq-board .faq-item:last-child {
  border-bottom: none;
}
.faq-board .faq-item:hover {
  background: #f9fafb;
}
.faq-board .faq-item.is-open .faq-question {
  background: #f9fafb;
}
.faq-board .faq-item.is-open .faq-answer {
  max-height: 520px;
  opacity: 1;
  padding-bottom: 24px;
}
.faq-board .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.faq-board .faq-question .faq-question__inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.faq-board .faq-question .faq-question__label {
  flex: 0 0 auto;
  min-width: 42px;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
}
.faq-board .faq-question .faq-question__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.45;
}
.faq-board .faq-question .faq-question__meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.faq-board .faq-question .faq-question__meta .faq-question__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.faq-board .faq-question .faq-question__meta .faq-question__date {
  font-size: 0.75rem;
  color: #4b5563;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .faq-board .faq-question {
    align-items: flex-start;
  }
  .faq-board .faq-question .faq-question__meta {
    display: none;
  }
}
.faq-board .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #f9fafb;
  padding: 0 1rem;
  padding-left: calc(1rem + 44px + 8px);
  padding-bottom: 0;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
  transition: max-height 0.22s ease, opacity 0.22s ease, padding-bottom 0.22s ease;
}
.faq-board .faq-answer .faq-answer__inner {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}
.faq-board .faq-answer .faq-answer__label {
  flex: 0 0 auto;
  min-width: 44px;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 0.02em;
}
.faq-board .faq-answer .faq-answer__content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  .faq-board .faq-answer {
    padding-left: 1rem;
  }
  .faq-board .faq-answer .faq-answer__content {
    max-width: none;
  }
}

/* frontend/board/_board-qna.scss */
/* =========================================================
   Q&A Board (CONTENT ONLY)
   - 레이아웃/헤더/검색 = board-common
   - 스코프는 board-shell 내부로 고정(충돌 방지)
   ========================================================= */
.board-shell .qna-board {
  /* =========================
     Notice List
     ========================= */
  /* =========================
     QNA List
     ========================= */
}
.board-shell .qna-board .board-notice-list {
  margin-bottom: 24px;
}
.board-shell .qna-board .board-notice-list .notice-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.board-shell .qna-board .board-notice-list .notice-item {
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 16px;
}
.board-shell .qna-board .board-notice-list .notice-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.board-shell .qna-board .board-notice-list .notice-item__meta {
  margin-bottom: 6px;
}
.board-shell .qna-board .board-notice-list .notice-item__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  min-width: 0;
}
.board-shell .qna-board .board-notice-list .notice-item__title .notice-item__label {
  flex: 0 0 auto;
  font-weight: 600;
  color: #2563eb;
}
.board-shell .qna-board .board-notice-list .notice-item__title span {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 0;
}
.board-shell .qna-board .board-notice-list .notice-item__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #4b5563;
}
.board-shell .qna-board .qna-list-wrap {
  margin-top: 0;
}
.board-shell .qna-board .qna-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}
.board-shell .qna-board .qna-item {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  transition: background-color 0.15s ease;
}
.board-shell .qna-board .qna-item:last-child {
  border-bottom: none;
}
.board-shell .qna-board .qna-item:hover {
  background: #f9fafb;
}
.board-shell .qna-board .qna-item__link {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.board-shell .qna-board .qna-item__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.board-shell .qna-board .qna-item__status,
.board-shell .qna-board .qna-item__badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  white-space: nowrap;
}
.board-shell .qna-board .qna-item__status {
  font-weight: 600;
}
.board-shell .qna-board .qna-item__status--done {
  border-color: #2563eb;
  color: #2563eb;
  background: #f9fafb;
}
.board-shell .qna-board .qna-item__status--pending {
  color: #374151;
  background: #f9fafb;
}
.board-shell .qna-board .qna-item__badge {
  font-weight: 500;
}
.board-shell .qna-board .qna-item__badge--secret,
.board-shell .qna-board .qna-item__badge--private {
  background: #f9fafb;
}
.board-shell .qna-board .qna-item__title {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 6px;
  min-width: 0;
}
.board-shell .qna-board .qna-item__label {
  flex: 0 0 auto;
  font-weight: 600;
  color: #2563eb;
  margin-top: 1px;
}
.board-shell .qna-board .qna-item__title-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.45;
}
.board-shell .qna-board .qna-item__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #4b5563;
}

/* =========================================
   Pagination (모든 보드 공통)
   - supports: .pagination-list (new) / .page-list (legacy)
   - supports: .is-active / .is-disabled (new) + li.active (legacy)
   ========================================= */
.board-pagination {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}
.board-pagination .pagination-list,
.board-pagination .page-list {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-pagination .page-item {
  display: inline-flex;
}
.board-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.board-pagination .page-link:hover {
  background: #3b82f6;
  color: #1d4ed8;
  border-color: #2563eb;
}
.board-pagination .page-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.board-pagination .page-item.is-active .page-link,
.board-pagination li.active .page-link {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}
.board-pagination .page-item.is-disabled .page-link {
  background: #f9fafb;
  color: #94a3b8;
  border-color: #e5e7eb;
  cursor: not-allowed;
  pointer-events: none;
}
.board-pagination .page-item.is-prev .page-link,
.board-pagination .page-item.is-next .page-link,
.board-pagination .page-item.is-first .page-link,
.board-pagination .page-item.is-last .page-link {
  font-weight: 600;
}

/* 경로: frontend/board/_board-contact.scss */
/* =========================================================
   Contact (문의하기) - Board Contract 기반
   - 레이아웃: .board-section / .board-shell / .board-header = board-common
   - 여기서는 폼 UI만 정의
   ========================================================= */
.board-shell--contact .contact-form {
  width: 100%;
}
.board-shell--contact .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
@media (max-width: 768px) {
  .board-shell--contact .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.board-shell--contact .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.board-shell--contact .form-col-2 {
  grid-column: 1/-1;
}
@media (max-width: 768px) {
  .board-shell--contact .form-col-2 {
    grid-column: auto;
  }
}
.board-shell--contact .form-row > label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.board-shell--contact input[type=text],
.board-shell--contact input[type=email],
.board-shell--contact input[type=tel],
.board-shell--contact textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.board-shell--contact input[type=text],
.board-shell--contact input[type=email],
.board-shell--contact input[type=tel] {
  height: 44px;
  padding: 0 0.9rem;
}
.board-shell--contact textarea {
  padding: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 160px;
}
.board-shell--contact input::placeholder,
.board-shell--contact textarea::placeholder {
  color: #94a3b8;
}
.board-shell--contact input:focus,
.board-shell--contact textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.board-shell--contact .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}
.board-shell--contact .checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 6px;
  accent-color: #111827;
}
.board-shell--contact .checkbox span {
  min-width: 0;
}
.board-shell--contact .cta-row {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .board-shell--contact .cta-row {
    justify-content: stretch;
  }
}
@media (max-width: 768px) {
  .board-shell--contact .cta-row .btn {
    width: 100%;
  }
}
.board-shell--contact .field-help {
  margin-top: -2px;
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.4;
}
.board-shell--contact .field-error {
  margin-top: -2px;
  font-size: 0.75rem;
  color: #ef4444;
  line-height: 1.4;
}
