/* =============================================================
   assets/css/pages/wiki-comments.css
   위키톡 대댓글(답글) + 인라인 답글 폼 스타일.
   원본: single-widocs_wiki.php 인라인 <style> 이관(2026-04-21 Phase 5).
   ============================================================= */

.wiki-replies-list {
  margin: 10px 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiki-reply-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-sub, #f8f9fa);
  border-radius: 8px;
  font-size: 13.5px;
}
.wiki-reply__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.wiki-reply__body { flex: 1; min-width: 0; }
.wiki-reply__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.wiki-reply__name  { font-weight: 600; font-size: 13px; }
.wiki-reply__date  { font-size: 11px; color: var(--text-sub); margin-left: auto; }
.wiki-reply__content { color: var(--text-body, #333); line-height: 1.55; word-break: break-word; }
.wiki-reply__delete-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--text-sub);
  padding: 0 2px; margin-left: 4px;
  opacity: .7;
}
.wiki-reply__delete-btn:hover { color: #dc3232; opacity: 1; }

/* 답글 달기 버튼 + 폼 영역 */
.wiki-comment-item__reply-area {
  margin-top: 8px;
  padding-left: 44px;
}
.wiki-reply-toggle-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--text-sub);
  padding: 4px 0;
}
.wiki-reply-toggle-btn:hover { color: var(--primary); }
.wiki-reply-toggle-btn--login { text-decoration: none; }

/* 인라인 답글 폼 */
.wiki-inline-reply-form {
  display: flex; gap: 8px;
  margin-top: 8px;
  align-items: flex-start;
}
.wiki-inline-reply-form__right { flex: 1; min-width: 0; }
.wiki-inline-reply-form__textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  background: #fff;
}
.wiki-inline-reply-form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26,95,180,.12);
}
.wiki-inline-reply-form__actions {
  display: flex; justify-content: flex-end;
  gap: 6px; margin-top: 6px;
}
.wiki-inline-reply-form__msg {
  font-size: 12px; color: #dc3232;
  margin-top: 4px;
}

/* 모바일 조정 */
@media (max-width: 480px) {
  .wiki-replies-list { margin-left: 20px; }
  .wiki-comment-item__reply-area { padding-left: 20px; }
}

/* =============================================================
   댓글창 리디자인 — 작성 폼 vs 댓글 카드 명확 구분
   (pages-extension.css 의 기존 룰 위에 override 로 적용.
    enqueue.php 순서: main → pages-extension → wiki-comments 이므로
    여기 추가 룰이 최종 승자가 된다.)
   ============================================================= */

/* ── 섹션 헤더 정돈 ───────────────────────────────────────────── */
#wikiAnswersSection {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e5eaf2);
}
#wikiAnswersSection .single-wiki__answers-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
#wikiAnswersSection .single-wiki__answers-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  margin-left: 4px !important;
  background: var(--primary-light, #e3efff);
  color: var(--primary, #1a5fb4) !important;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1;
}

/* ── 댓글 카드 — flat thread 룩 ──────────────────────────────── */
.wiki-comment-list {
  gap: 10px;
  margin-bottom: 32px;
}
.wiki-comment-item {
  background: #fbfcfd;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: none;
  transition: background var(--transition), border-color var(--transition);
  /* flex column 으로 변환 — 자식 요소 visual order 를 DOM 순서와 분리해 재배치.
     `답글 달기` 영역을 본문 바로 아래 / 대댓글 위로 끌어올리기 위함. */
  display: flex;
  flex-direction: column;
}
.wiki-comment-item > .wiki-comment-item__doctor-badge { order: 0; align-self: flex-start; }
.wiki-comment-item > .wiki-comment-item__head        { order: 1; }
.wiki-comment-item > .wiki-comment-item__body        { order: 2; }
.wiki-comment-item > .wiki-comment-edit-form         { order: 3; }
.wiki-comment-item > .wiki-comment-item__reply-area  { order: 4; }
.wiki-comment-item > .wiki-replies-list              { order: 5; }
.wiki-comment-item:hover {
  background: var(--surface, #fff);
  border-color: #dfe5ed;
  box-shadow: none;
  transform: none;
}
/* 기본 doctor 카드 — 자유/경험 게시판 톤 (이전 옅은 디자인 복원).
   강조는 좌측 accent 보더 + 살짝 옅은 배경 정도로만. 일반 댓글과 한 단계 분리. */
.wiki-comment-item--doctor {
  background: #f0f7fb;
  border-color: rgba(15,159,147,.22);
  border-left: 3px solid var(--accent, #0f9f93);
  padding-left: 15px;
}

/* Q&A 답변 카드만 — accent 티얼 톤으로 강하게 차별화.
   답변 폼(Q&A override) 과 톤 통일 + 일반 댓글 카드(자유/경험)와 명확 분리. */
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor {
  background: #effaf8;
  border: 1.5px solid rgba(15,159,147,.22);
  border-left: 4px solid var(--accent, #0f9f93);
  padding-left: 16px;
}
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor:hover {
  background: #e9f6f3;
  border-color: rgba(15,159,147,.32);
}
/* 인증 배지 강조 — Q&A 답변 카드 한정 */
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor .wiki-comment-item__doctor-badge {
  color: #ffffff;
  background: linear-gradient(135deg, #14a99c 0%, #0f9f93 60%, #0e8a80 100%);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(15,159,147,.28);
}
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor .wiki-comment-item__doctor-badge svg { color: #ffffff; }
.wiki-comment-item__head {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.wiki-comment-item__avatar {
  width: 36px; height: 36px;
  border: 1px solid #e5eaf2;
  box-shadow: 0 1px 2px rgba(15,30,52,.04);
}
.wiki-comment-item__name { font-size: 13.5px; font-weight: 700; }
.wiki-comment-item__date { font-size: 11.5px; color: var(--text-muted); }
.wiki-comment-item__body {
  padding-left: 46px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  word-break: break-word;
}

/* 답글 영역 — thread line 제거 (depth 2 connector 와 연결 안 돼 "선이 끊긴" 인상을 줌).
   대신 들여쓰기 + 옅은 배경 + ↳ 마커로 depth 를 표시. */
.wiki-replies-list {
  margin: 10px 0 0 46px;
  padding-left: 0;
  border-left: none;
  gap: 6px;
  display: flex;
  flex-direction: column;
}
.wiki-reply-item {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 8px 12px;
}
/* 답글의 답글 (depth 2) — 들여쓰기 + 더 톤 다운 배경 + 좌측 thread 표식.
   같은 .wiki-replies-list 안에 평탄화 출력하되 시각적으로는 한 단계 들여쓰기. */
.wiki-reply-item--depth-2 {
  margin-left: 28px;
  background: #f7f9fc;
  position: relative;
}
/* depth 2 마커 — L자 corner 선으로 부모-자식 관계 표시 (화살표 머리 없이 선만).
   border-left + border-bottom + border-bottom-left-radius 로 ┗ 모양. 폰트 의존 없음. */
.wiki-reply-item--depth-2::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -3px;
  width: 12px;
  height: 18px;
  border-left: 1.5px solid #c5d0db;
  border-bottom: 1.5px solid #c5d0db;
  border-bottom-left-radius: 8px;
  background: none;
  pointer-events: none;
}

/* 답글 카드 안의 "답글 달기" 영역 — depth 1 답글 전용 (depth 2 엔 렌더 안 됨).
   점선/박스 효과 제거 — 토글만 우측에 단독으로 단순 배치. */
.wiki-reply__reply-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  padding: 0;
  border: none;
}
.wiki-reply__reply-area > .wiki-reply-toggle-btn {
  align-self: flex-end;
  padding: 4px 10px;
  font-size: 11.5px;
}
.wiki-reply__reply-area > .wiki-inline-reply-form {
  align-self: stretch;
  margin-top: 0;
}

/* reply-area 는 flex column — 토글 버튼만 우측 정렬, 답글 폼은 펼쳤을 때 풀폭.
   본문 바로 아래에 위치(order:4)하여 "이 댓글에 답글 달기" 의도가 명확.
   점선/박스 효과 없이 단독 토글 — 답글 유무 무관하게 동일한 미니멀 룩. */
.wiki-comment-item__reply-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 0 0 0 46px;
  border: none;
}
.wiki-reply-toggle-btn {
  align-self: flex-end; /* 우측 정렬 (pill 버튼만) */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #1a5fb4);
  background: #fff;
  border: 1px solid #d8e3f0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15,30,52,.04);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.wiki-reply-toggle-btn:hover {
  background: var(--primary-light, #e3efff);
  border-color: var(--primary, #1a5fb4);
  color: var(--primary-dark, #0a459d);
  transform: translateY(-1px);
}
.wiki-reply-toggle-btn svg { color: currentColor; }
.wiki-reply-toggle-btn--login { text-decoration: none; }
/* 답글 폼은 펼쳐졌을 때 풀폭 — align-self stretch 로 부모의 flex-start 정렬 무시 */
.wiki-comment-item__reply-area > .wiki-inline-reply-form { align-self: stretch; }

/* ── 작성 폼 — 명확한 "compose box" 룩 ───────────────────────── */
.single-wiki__answer-form {
  position: relative;
  margin-top: 28px;
  padding: 20px 22px 18px;
  background: #f4f9ff;
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  overflow: hidden;
}
/* 좌측 accent 바 제거 — 배경 톤만으로도 충분히 구분 */
.single-wiki__answer-form::before { display: none; }
/* 우상단 라벨 표시 — "지금 작성중" 느낌의 인디케이터 */
.single-wiki__answer-form::after {
  content: "일반인 답변";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary, #1a5fb4);
  background: rgba(255,255,255,.7);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(26,95,180,.18);
  pointer-events: none;
}
.single-wiki__answer-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.single-wiki__answer-form-title::before {
  content: "";
  display: inline-block;
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: var(--primary, #1a5fb4);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>") center / contain no-repeat;
}

/* 작성자 행 — 이름은 placeholder 안내처럼 작게 */
.wiki-comment-form { gap: 12px; }
.wiki-comment-form__avatar {
  width: 38px; height: 38px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15,30,52,.08);
  margin-top: 2px;
}
.wiki-comment-form__name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub, #4f6278);
  margin-bottom: 8px;
}
.wiki-comment-form__name::before {
  content: "작성자 · ";
  color: var(--text-muted, #5a6a80);
  font-weight: 500;
}

/* textarea — compose box 안에서 흰 카드처럼 보이도록 */
.wiki-comment-form__textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1.5px solid #d8e3f0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(15,30,52,.03);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.wiki-comment-form__textarea::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}
.wiki-comment-form__textarea:hover { border-color: #b9cce5; }
.wiki-comment-form__textarea:focus {
  outline: none;
  border-color: var(--primary, #1a5fb4);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,107,255,.12), inset 0 1px 2px rgba(15,30,52,.03);
}

/* 작성 폼 액션 행 — 등록 버튼 우측, 취소 ghost 좌측 */
.wiki-comment-form__right > form > div:last-of-type {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px !important;
}
.wiki-comment-form__right .btn--primary {
  padding: 8px 18px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(31,107,255,.45);
}
.wiki-comment-form__right .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(31,107,255,.55);
}

/* 의료 disclaimer — 작성 폼 안에선 배경 톤이 이미 옅은 블루라 흰 카드로 분리 */
.single-wiki__answer-form .sc-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  margin: 10px 0 0;
}

/* ── Q&A 게시글 — 전문가 답변 작성 폼 차별화 ─────────────────
   article[data-wiki-type="qa"] 안의 메인 답변 폼은 단순 댓글이 아닌
   "전문가 답변을 받는 공식 답변 작성 영역" 으로 시각 강조.
   기준 톤: .wiki-comment-item--doctor 와 동일한 accent 티얼 (#0f9f93).
   인라인 답글 폼(.wiki-inline-reply-form)·일반 댓글 폼(자유/경험)은 손대지 않음. */
.single-wiki__main[data-wiki-type="qa"] .single-wiki__answer-form {
  background: #effaf8;
  border: 1.5px solid rgba(15,159,147,.28);
  border-left: 4px solid var(--accent, #0f9f93);
  padding-left: 22px;
}
/* 우상단 라벨 — "댓글 작성" → "전문가 답변" 으로 교체 + accent 톤 */
.single-wiki__main[data-wiki-type="qa"] .single-wiki__answer-form::after {
  content: "전문가 답변";
  color: var(--accent, #0f9f93);
  background: #ffffff;
  border-color: rgba(15,159,147,.32);
  letter-spacing: .06em;
}
/* 제목 행 — accent 컬러 + 인증 뱃지(badge-check) 아이콘.
   청진기는 의사 전용 인상이 강해서 의료/헬스 양쪽을 포괄하는
   `wiki-comment-item__doctor-badge` 와 동일 verified-badge 모양으로 통일. */
.single-wiki__main[data-wiki-type="qa"] .single-wiki__answer-form-title { color: #0b3b4c; }
.single-wiki__main[data-wiki-type="qa"] .single-wiki__answer-form-title::before {
  background: var(--accent, #0f9f93);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/><path d='m9 12 2 2 4-4'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/><path d='m9 12 2 2 4-4'/></svg>") center / contain no-repeat;
}
/* 작성자 prefix — "작성자 ·" → "답변자 ·" 로 컨텍스트 명시 */
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-form__name::before {
  content: "답변자 · ";
}
/* textarea — accent 톤 보더/포커스 */
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-form__textarea {
  border-color: #cfe6e2;
}
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-form__textarea:hover {
  border-color: rgba(15,159,147,.45);
}
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-form__textarea:focus {
  border-color: var(--accent, #0f9f93);
  box-shadow: 0 0 0 4px rgba(15,159,147,.16), inset 0 1px 2px rgba(15,30,52,.03);
}
/* 등록 버튼 — accent 그라데이션 (전문가 답변임을 강조) */
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-form__right .btn--primary {
  background: linear-gradient(180deg, #14a99c 0%, #0f9f93 100%);
  border-color: #0e8d83;
  box-shadow: 0 4px 12px -4px rgba(15,159,147,.45);
}
.single-wiki__main[data-wiki-type="qa"] .wiki-comment-form__right .btn--primary:hover {
  background: linear-gradient(180deg, #0f9f93 0%, #0e8a80 100%);
  box-shadow: 0 6px 16px -4px rgba(15,159,147,.55);
}

/* ── 빈 상태 & 비로그인 안내 — 본문 카드 톤과 분리 ──────────── */
.single-wiki__answer-empty {
  background: var(--muted, #edf3f9);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 44px 24px;
  text-align: center;
  margin-bottom: 0;
}
.single-wiki__login-prompt {
  margin-top: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border, #e5eaf2);
  border-radius: 14px;
  gap: 14px;
}

/* Q&A — 인증 전문가 아닌 로그인 사용자에게 노출되는 잠금 안내 박스.
   (메인 답변 폼 자리를 대체. 대댓글 폼/카드 영역은 영향 없음) */
.single-wiki__answer-form-locked {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  background: #f7fbfa;
  border: 1px dashed rgba(15,159,147,.45);
  border-radius: 14px;
  color: var(--text);
}
.single-wiki__answer-form-locked > svg {
  flex-shrink: 0;
  color: var(--accent, #0f9f93);
  opacity: .8;
}
.single-wiki__answer-form-locked > div { flex: 1; min-width: 0; }
.single-wiki__answer-form-locked__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.single-wiki__answer-form-locked__desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-sub, #4f6278);
  margin: 0;
}
.single-wiki__answer-form-locked > .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .single-wiki__answer-form-locked {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
  }
  .single-wiki__answer-form-locked > .btn { width: 100%; text-align: center; }
}

/* ── 반응형: 태블릿 ≤1024 ──────────────────────────────────── */
@media (max-width: 1024px) {
  .wiki-comment-item__body { padding-left: 0; }
  .wiki-replies-list { margin-left: 0; }
  .wiki-comment-item__reply-area { padding-left: 0; }
  .wiki-comment-form { flex-direction: column; gap: 10px; }
  .wiki-comment-form__avatar { display: none; }
  .wiki-comment-form__right { width: 100%; }
}

/* ── 반응형: 모바일 ≤768 ───────────────────────────────────── */
@media (max-width: 768px) {
  #wikiAnswersSection { margin-top: 28px; padding-top: 20px; }
  #wikiAnswersSection .single-wiki__answers-title { font-size: 15.5px; }

  .wiki-comment-list { gap: 8px; margin-bottom: 24px; }
  .wiki-comment-item { padding: 12px 14px; border-radius: 11px; }
  /* Q&A 답변 카드 강화 톤 모바일 보정 — 일반 .wiki-comment-item padding shorthand 가
     padding-left 를 덮는 문제 회피 + border-left 3px 축소. 자유/경험 doctor 카드는 손대지 않음. */
  .single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor {
    padding-left: 14px;
    border-left-width: 3px;
  }
  .single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor .wiki-comment-item__doctor-badge {
    font-size: 10.5px;
    padding: 3px 9px;
  }
  .wiki-comment-item__head { gap: 8px; margin-bottom: 8px; }
  .wiki-comment-item__avatar { width: 32px; height: 32px; }
  .wiki-comment-item__body { font-size: 13.5px; line-height: 1.7; }
  /* thread line 제거 → padding-left 도 0 으로 유지 */
  .wiki-replies-list { padding-left: 0; }
  /* 모바일 — 답글의 답글 들여쓰기 + L자 corner 축소 */
  .wiki-reply-item--depth-2 { margin-left: 20px; }
  .wiki-reply-item--depth-2::before {
    left: -12px;
    top: -3px;
    width: 10px;
    height: 16px;
    border-bottom-left-radius: 7px;
  }

  .single-wiki__answer-form {
    margin-top: 22px;
    padding: 18px 16px 16px;
    border-radius: 14px;
  }
  .single-wiki__main[data-wiki-type="qa"] .single-wiki__answer-form {
    padding-left: 16px;
    border-left-width: 3px;
  }
  .single-wiki__answer-form::after {
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 2px 7px;
  }
  .single-wiki__answer-form-title { font-size: 14.5px; margin-bottom: 12px; }
  .single-wiki__answer-form-title::before { width: 16px; height: 16px; }
  .wiki-comment-form__textarea {
    min-height: 96px;
    padding: 12px 14px;
    font-size: 14px;
  }
  .wiki-comment-form__right .btn--primary { padding: 8px 16px; }
}

/* ── 반응형: 좁은 모바일 ≤480 ──────────────────────────────── */
@media (max-width: 480px) {
  .wiki-comment-item { padding: 11px 12px; }
  .single-wiki__main[data-wiki-type="qa"] .wiki-comment-item--doctor { padding-left: 12px; }
  .wiki-comment-item__avatar { width: 30px; height: 30px; }
  .wiki-comment-item__name { font-size: 13px; }
  .wiki-comment-item__body { font-size: 13px; }
  /* 좁은 폰 — depth 2 들여쓰기 + L자 corner 최소화 */
  .wiki-reply-item--depth-2 { margin-left: 16px; }
  .wiki-reply-item--depth-2::before {
    left: -10px;
    top: -3px;
    width: 8px;
    height: 14px;
    border-bottom-left-radius: 6px;
  }

  .single-wiki__answer-form { padding: 16px 14px 14px; }
  .single-wiki__main[data-wiki-type="qa"] .single-wiki__answer-form {
    padding-left: 14px;
  }
  .wiki-comment-form__textarea {
    min-height: 88px;
    padding: 11px 12px;
  }
  .single-wiki__login-prompt {
    flex-direction: column;
    align-items: stretch;
  }
  .single-wiki__login-prompt > div:last-child {
    width: 100%;
    justify-content: stretch;
  }
  .single-wiki__login-prompt > div:last-child .btn { flex: 1; }
}
