/* =========================================================
 * DS Comm Board Skin
 * - ds_comm 레이아웃의 CSS 변수(--primary, --border 등)를 재사용.
 * - 3-column: 좌측 메뉴 / 메인 / 우측 사이드바.
 * - 클래스 prefix: .ds-board-
 * ========================================================= */

.ds-board-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 220px;
  gap: 20px;
  padding: 24px 0;
  max-width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* ===== 좌측 사이드 메뉴 ===== */
.ds-board-side {
  position: sticky;
  top: 24px;
  padding: 16px 12px;
  border: 1px solid var(--border, #E5E5E5);
  border-radius: 12px;
  background: var(--background, #fff);
}

.ds-board-side-nav { font-size: 14px; }

.ds-board-side-list,
.ds-board-side-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-board-side-item + .ds-board-side-item { margin-top: 2px; }
.ds-board-side-item.is-group { margin-top: 12px; }
.ds-board-side-item.is-group:first-child { margin-top: 0; }

.ds-board-side-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--foreground, #1A1A1A);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color .15s ease, color .15s ease;
}

.ds-board-side-link:hover {
  background: var(--secondary, #F5F5F5);
}

.ds-board-side-link.is-active {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
  font-weight: 600;
}

.ds-board-side-link--lv1 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ds-board-side-link--lv2 {
  font-size: 13px;
  color: var(--muted-foreground, #666);
  padding-left: 22px;
}

.ds-board-side-link--lv2.is-active {
  color: var(--background, #fff);
}

.ds-board-side-sublist {
  margin: 4px 0 6px;
}

/* ===== 디버그 박스 (관리자 전용) ===== */
.ds-board-side--debug {
  border-color: #f59e0b;
  background: #fffbeb;
}
.ds-board-debug {
  font-size: 12px;
  color: #78350f;
  line-height: 1.5;
}
.ds-board-debug-title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 13px;
}
.ds-board-debug p { margin: 4px 0; }
.ds-board-debug ul { margin: 6px 0; padding-left: 18px; }
.ds-board-debug code {
  background: #fde68a;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* ===== 메인 영역 ===== */
.ds-board-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* 헤더 */
.ds-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border, #E5E5E5);
}
.ds-board-head-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ds-board-head-title img { max-height: 36px; }
.ds-board-head-tools {
  display: flex;
  gap: 4px;
}
.ds-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted-foreground, #666);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.ds-icon-btn:hover {
  background: var(--secondary, #F5F5F5);
  color: var(--foreground, #1A1A1A);
}

/* 카테고리 탭 */
.ds-board-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}
.ds-board-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border, #E5E5E5);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted-foreground, #666);
  text-decoration: none;
  transition: all .15s ease;
}
.ds-board-cat:hover {
  border-color: var(--foreground, #1A1A1A);
  color: var(--foreground, #1A1A1A);
}
.ds-board-cat.is-active {
  background: var(--foreground, #1A1A1A);
  border-color: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
  font-weight: 600;
}
.ds-board-cat em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}

/* 배너 placeholder는 기존 .ds-board-placeholder 스타일 재사용 */
.ds-board-banner { margin: 4px 0; }

/* 목록 테이블 */
.ds-board-list-wrap {
  border-top: 2px solid var(--foreground, #1A1A1A);
  border-bottom: 1px solid var(--border, #E5E5E5);
}
.ds-board-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ds-board-list thead th {
  padding: 12px 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-foreground, #666);
  border-bottom: 1px solid var(--border, #E5E5E5);
  background: var(--secondary, #F5F5F5);
  text-align: center;
}
.ds-board-list thead th.col-title { text-align: left; }
.ds-board-list thead th a {
  color: inherit;
  text-decoration: none;
}
.ds-board-list thead th a:hover { color: var(--foreground, #1A1A1A); }

.ds-board-list .col-no { width: 64px; text-align: center; }
.ds-board-list .col-author { width: 120px; text-align: center; }
.ds-board-list .col-date { width: 100px; text-align: center; }
.ds-board-list .col-read { width: 80px; text-align: center; }
.ds-board-list .col-check { width: 44px; text-align: center; }

.ds-board-row td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border, #E5E5E5);
  vertical-align: middle;
}
.ds-board-row:hover { background: var(--secondary, #F5F5F5); }

.ds-board-row.is-notice {
  background: #fffbeb;
}
.ds-board-row.is-notice:hover { background: #fef3c7; }

.ds-board-empty td {
  padding: 60px 16px;
  text-align: center;
  color: var(--muted-foreground, #666);
}

.ds-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ds-tag--notice {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
}

.ds-board-cat-chip {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--secondary, #F5F5F5);
  color: var(--muted-foreground, #666);
  font-size: 11px;
  text-decoration: none;
  vertical-align: middle;
}
.ds-board-cat-chip:hover {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
}

.ds-vote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.ds-board-title-link {
  color: var(--foreground, #1A1A1A);
  text-decoration: none;
  font-weight: 500;
}
.ds-board-title-link:hover { text-decoration: underline; }

.ds-comment-count {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  text-decoration: none;
}
.ds-comment-count:hover { text-decoration: underline; }

.ds-board-icon {
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.6;
}

.ds-author-link {
  color: var(--muted-foreground, #666);
  text-decoration: none;
  font-size: 13px;
}
.ds-author-link:hover { color: var(--foreground, #1A1A1A); }

/* 검색바 + 액션 */
.ds-board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.ds-board-search {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}
.ds-board-search-select,
.ds-board-search-input,
.ds-board-search-btn,
.ds-btn {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border, #E5E5E5);
  background: var(--background, #fff);
  font-size: 13px;
  padding: 0 12px;
  color: var(--foreground, #1A1A1A);
}
.ds-board-search-select { padding-right: 24px; }
.ds-board-search-input { flex: 1; min-width: 0; }
.ds-board-search-btn {
  cursor: pointer;
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
  border-color: var(--foreground, #1A1A1A);
}
.ds-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ds-btn:hover { background: var(--secondary, #F5F5F5); }
.ds-btn--primary {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
  border-color: var(--foreground, #1A1A1A);
}
.ds-btn--primary:hover {
  background: #000;
}

/* 페이지네이션 */
.ds-board-pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}
.ds-board-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-foreground, #666);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.ds-board-pager-btn:hover {
  background: var(--secondary, #F5F5F5);
  color: var(--foreground, #1A1A1A);
}
.ds-board-pager-btn.is-active {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
}

/* 반응형: 작은 화면에서는 작성자/날짜/조회 축약 */
@media (max-width: 720px) {
  .ds-board-list .col-author,
  .ds-board-list .col-read { display: none; }
  .ds-board-list .col-no { width: 44px; }
  .ds-board-list .col-date { width: 70px; }
}

/* ===== 우측 사이드바 ===== */
.ds-board-aside {
  position: sticky;
  top: 24px;
}

/* ===== Placeholder (영역 가시화용) ===== */
.ds-board-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 24px 16px;
  border: 1px dashed var(--border, #E5E5E5);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 8px,
      rgba(0, 0, 0, 0.015) 8px 16px
    );
  color: var(--muted-foreground, #666);
  text-align: center;
}

.ds-board-placeholder--tall { min-height: 360px; }

.ds-board-placeholder-tag {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-foreground, #666);
  background: var(--background, #fff);
  padding: 2px 6px;
  border-radius: 4px;
}

.ds-board-placeholder-text {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* ===== 반응형 ===== */
@media (max-width: 1199px) {
  .ds-board-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .ds-board-aside {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 959px) {
  .ds-board-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }
  .ds-board-side {
    position: static;
  }
}

/* =========================================================
 * 글 보기 (READ)
 * ========================================================= */
.ds-read {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, #E5E5E5);
}

.ds-read-head {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #E5E5E5);
}

.ds-read-title {
  margin: 8px 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--foreground, #1A1A1A);
}

.ds-read-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--muted-foreground, #666);
}
.ds-read-meta-sep {
  opacity: 0.4;
}
.ds-read-author {
  font-weight: 600;
  color: var(--foreground, #1A1A1A);
  text-decoration: none;
}
.ds-read-author:hover { text-decoration: underline; }

.ds-read-extra {
  margin: 0;
  padding: 12px 16px;
  background: var(--secondary, #F5F5F5);
  border-radius: 8px;
  font-size: 13px;
}
.ds-read-extra dt {
  font-weight: 600;
  margin-top: 6px;
}
.ds-read-extra dd { margin: 0 0 4px; }

.ds-read-body {
  min-height: 120px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--foreground, #1A1A1A);
}
.ds-read-content img { max-width: 100%; height: auto; }
.ds-read-content table { max-width: 100%; }

.ds-read-files {
  padding: 12px 16px;
  border: 1px solid var(--border, #E5E5E5);
  border-radius: 8px;
  background: var(--secondary, #F5F5F5);
}
.ds-files-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--foreground, #1A1A1A);
  padding: 0;
}
.ds-files-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-files-list a {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--foreground, #1A1A1A);
  text-decoration: none;
}
.ds-files-list a:hover { text-decoration: underline; }
.ds-file-size {
  font-size: 11px;
  color: var(--muted-foreground, #666);
}

.ds-read-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border, #E5E5E5);
}
.ds-read-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-read-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--secondary, #F5F5F5);
  color: var(--muted-foreground, #666);
  font-size: 12px;
  text-decoration: none;
}
.ds-read-tag:hover {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
}
.ds-read-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ds-read-sign {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--secondary, #F5F5F5);
  border-radius: 8px;
  align-items: center;
}
.ds-read-sign-img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}
.ds-read-sign-text {
  font-size: 13px;
  color: var(--muted-foreground, #666);
}

/* =========================================================
 * 댓글
 * ========================================================= */
.ds-comments {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-comments-head {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--foreground, #1A1A1A);
}
.ds-comments-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ds-comments-count {
  font-style: normal;
  font-size: 14px;
  color: #ef4444;
}

.ds-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ds-comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #E5E5E5);
}
.ds-comment-item.is-reply { padding-left: 40px; background: rgba(0,0,0,0.015); }
.ds-comment-item.ds-reply-d2 { padding-left: 80px; }
.ds-comment-item.ds-reply-d3 { padding-left: 120px; }

.ds-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ds-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.ds-comment-avatar--default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary, #F5F5F5);
  color: var(--foreground, #1A1A1A);
  font-weight: 700;
  font-size: 14px;
}
.ds-comment-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground, #1A1A1A);
}
.ds-comment-author a {
  color: inherit;
  text-decoration: none;
}
.ds-comment-time {
  font-size: 11px;
  color: var(--muted-foreground, #666);
}

.ds-comment-body {
  padding-left: 42px;
  font-size: 14px;
  line-height: 1.6;
}
.ds-comment-content {
  word-break: break-word;
}
.ds-comment-deleted {
  color: var(--muted-foreground, #666);
  font-style: italic;
}

.ds-comment-actions {
  padding-left: 42px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ds-comment-action {
  font-size: 12px;
  color: var(--muted-foreground, #666);
  text-decoration: none;
}
.ds-comment-action:hover { color: var(--foreground, #1A1A1A); }
.ds-comment-voted {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
}

.ds-comments-pager {
  padding: 12px 0 0;
}

/* 댓글 작성 폼 */
.ds-comment-form {
  margin-top: 16px;
  padding: 16px;
  background: var(--secondary, #F5F5F5);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-comment-editor textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #E5E5E5);
  font: inherit;
}
.ds-comment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.ds-comment-anon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ds-comment-checks {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.ds-comment-submit {
  display: flex;
  justify-content: flex-end;
}

/* =========================================================
 * 글쓰기
 * ========================================================= */
.ds-board-shell--write,
.ds-board-shell--narrow {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
}

.ds-write-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-write-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: center;
}
.ds-write-head .ds-write-title {
  font-size: 16px;
  width: 100%;
  min-width: 0;
}
.ds-write-category { width: 100%; }
.ds-write-notice { width: 100%; }

/* 관리자(공지 셀렉트 없음) — 2-column으로 자동 조정 */
.ds-write-head:not(:has(.ds-write-notice)) {
  grid-template-columns: 140px minmax(0, 1fr);
}
.ds-write-head:not(:has(.ds-write-category)) {
  grid-template-columns: minmax(0, 1fr) 120px;
}
.ds-write-head:not(:has(.ds-write-category)):not(:has(.ds-write-notice)) {
  grid-template-columns: minmax(0, 1fr);
}

.ds-write-extra {
  border: 1px solid var(--border, #E5E5E5);
  border-radius: 8px;
  padding: 12px 16px;
}
.ds-write-extra legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.ds-write-extra dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0;
}
.ds-write-extra dt {
  font-size: 13px;
  align-self: center;
}
.ds-write-extra dd { margin: 0; }
.ds-required {
  color: #ef4444;
  font-style: normal;
  font-weight: 700;
  margin-right: 4px;
}

.ds-write-editor {
  min-height: 360px;
}
.ds-write-editor textarea {
  width: 100%;
  min-height: 360px;
}

.ds-write-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  background: var(--secondary, #F5F5F5);
  border-radius: 8px;
}
.ds-write-anon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ds-write-form .ds-write-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: 100%;
}
.ds-write-form .ds-write-tags .ds-input-label {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground, #1A1A1A);
}
.ds-write-form .ds-write-tags .ds-input {
  width: 100%;
  height: 40px;
}

.ds-write-status {
  display: flex;
  gap: 12px;
}

.ds-write-captcha {
  display: flex;
  justify-content: center;
}

.ds-write-submit {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #E5E5E5);
}

/* =========================================================
 * 공용 입력/체크
 * ========================================================= */
.ds-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border, #E5E5E5);
  border-radius: 8px;
  background: var(--background, #fff);
  font-size: 14px;
  color: var(--foreground, #1A1A1A);
}
.ds-input:focus {
  outline: 2px solid var(--foreground, #1A1A1A);
  outline-offset: -1px;
}
.ds-input-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ds-input-label {
  font-size: 12px;
  color: var(--muted-foreground, #666);
  min-width: 60px;
}
.ds-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--foreground, #1A1A1A);
  cursor: pointer;
}

/* =========================================================
 * 비밀번호 폼 / 확인 폼 / 메시지
 * ========================================================= */
.ds-pw-form,
.ds-confirm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--secondary, #F5F5F5);
  border-radius: 12px;
  align-items: center;
  text-align: center;
}
.ds-pw-form--block {
  margin: 40px auto;
  max-width: 480px;
}
.ds-pw-title,
.ds-confirm-message {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.ds-pw-row {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 320px;
}
.ds-pw-row .ds-input { flex: 1; min-width: 0; }

.ds-confirm-target {
  text-align: center;
  padding: 16px;
}
.ds-confirm-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.ds-confirm-author {
  margin: 0;
  font-size: 13px;
  color: var(--muted-foreground, #666);
}
.ds-confirm-actions {
  display: flex;
  gap: 6px;
}

.ds-btn--danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.ds-btn--danger:hover { background: #dc2626; }

.ds-message {
  padding: 48px 24px;
  text-align: center;
  background: var(--secondary, #F5F5F5);
  border-radius: 12px;
}
.ds-message-text {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}
.ds-message-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

/* =========================================================
 * 태그 클라우드
 * ========================================================= */
.ds-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
}
.ds-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--secondary, #F5F5F5);
  color: var(--foreground, #1A1A1A);
  text-decoration: none;
}
.ds-tag em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted-foreground, #666);
}
.ds-tag--rank1 { font-size: 20px; font-weight: 700; }
.ds-tag--rank2 { font-size: 17px; font-weight: 600; }
.ds-tag--rank3 { font-size: 15px; }
.ds-tag--rank4 { font-size: 13px; }
.ds-tag--rank5 { font-size: 12px; opacity: 0.7; }
.ds-tag:hover {
  background: var(--foreground, #1A1A1A);
  color: var(--background, #fff);
}
.ds-tag:hover em { color: rgba(255,255,255,0.7); }

/* =========================================================
 * 트랙백
 * ========================================================= */
.ds-trackback {
  padding: 16px 0;
}
.ds-trackback-url {
  font-size: 12px;
  color: var(--muted-foreground, #666);
  word-break: break-all;
  margin: 4px 0 0;
}
.ds-trackback-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.ds-trackback-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #E5E5E5);
}
.ds-trackback-excerpt {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-foreground, #666);
}

/* =========================================================
 * 모바일 보정
 * ========================================================= */
@media (max-width: 720px) {
  .ds-read-title { font-size: 18px; }
  .ds-write-head {
    grid-template-columns: 1fr;
  }
  .ds-write-extra dl {
    grid-template-columns: 1fr;
  }
  .ds-comment-body,
  .ds-comment-actions {
    padding-left: 0;
  }
  .ds-comment-item.is-reply { padding-left: 16px; }
  .ds-comment-item.ds-reply-d2 { padding-left: 32px; }
  .ds-comment-item.ds-reply-d3 { padding-left: 48px; }
}
