/* ════ 주제 상세 페이지 ════ */
.detail-wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink3); cursor: pointer;
  margin-bottom: 20px; padding: 6px 0;
  border: none; background: transparent; font-family: 'Noto Sans KR', sans-serif;
  transition: color .15s;
}
.detail-back:hover { color: var(--ink); }
.detail-cat-badge { display: inline-block; margin-bottom: 10px; }
.detail-title {
  font-family: 'Gmarket Sans','Noto Sans KR',sans-serif;
  font-size: clamp(20px,4vw,28px); font-weight: 700;
  letter-spacing: -.5px; line-height: 1.3; margin-bottom: 16px;
}
.detail-vote-box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.detail-bar-outer {
  height: 10px; border-radius: 99px; background: var(--surface2);
  overflow: hidden; display: flex; margin: 12px 0 8px;
}
.detail-bar-agree    { background: var(--agree);    transition: width .5s; }
.detail-bar-neutral  { background: #c0b020;          transition: width .5s; }
.detail-bar-disagree { background: var(--disagree);  transition: width .5s; }
.detail-vote-row {
  display: flex !important;           /* 정렬을 위해 flex로 변경 */
  justify-content: center !important;  /* 가로 중앙 정렬 */
  align-items: center;
  gap: 12px;                          /* 버튼 사이 간격 */
  margin: 16px auto 0;                /* 위쪽 간격 주고 좌우 중앙 */
  width: 100%;
  max-width: 500px;                   /* 너무 넓어지지 않게 제한 */
}
/* ✅ 상세 페이지 투표 완료 상태 강조 */
.detail-vbtn.done-agree    { background: var(--agree) !important; color: white !important; border-color: var(--agree); }
.detail-vbtn.done-neutral  { background: var(--neutral) !important; color: white !important; border-color: var(--neutral); }
.detail-vbtn.done-disagree { background: var(--disagree) !important; color: white !important; border-color: var(--disagree); }
.detail-vbtn {
  padding: 12px 8px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: all .15s; color: var(--ink2);
  flex: 1;           /* 버튼들이 가로 공간을 똑같이 나눠 갖게 합니다. */
  max-width: 200px;  /* 버튼이 너무 옆으로 길어지지 않게 제한합니다. */
}
.detail-vbtn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface2); }
.detail-vbtn.done-agree    { background: var(--agree);    color: #fff; border-color: var(--agree); }
.detail-vbtn.done-neutral  { background: #c0b020;          color: #fff; border-color: #c0b020; }
.detail-vbtn.done-disagree { background: var(--disagree);  color: #fff; border-color: var(--disagree); }

/* 토론 탭 */
.detail-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px;
}
.detail-tab {
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--ink3);
  font-family: 'Noto Sans KR', sans-serif; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s;
}
.detail-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.detail-tab-panel { display: none; }
.detail-tab-panel.active { display: block; }

/* 실시간 토론 */
.debate-wrap {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.debate-msg {
  display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start;
}
.debate-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.debate-bubble {
  background: var(--surface2); border-radius: 4px 12px 12px 12px;
  padding: 8px 12px; font-size: 13px; line-height: 1.6;
  max-width: calc(100% - 42px);
}
.debate-meta { font-size: 11px; color: var(--ink3); margin-top: 3px; }
.debate-input-row {
  display: flex; gap: 8px; margin-top: 12px; align-items: flex-end;
}
.debate-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface2);
  font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
  resize: none; outline: none; transition: border .15s;
  max-height: 120px; overflow-y: auto; line-height: 1.5;
}
.debate-input:focus { border-color: var(--border2); }
.debate-send {
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: background .15s; white-space: nowrap;
}
.debate-send:hover { background: #333; }

/* 댓글 (상세 페이지용) */
.detail-comment-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.detail-comment-item:last-child { border-bottom: none; }
.detail-comment-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.detail-comment-nick { font-size: 12px; font-weight: 700; color: var(--ink2); }
.detail-comment-text { font-size: 14px; line-height: 1.6; color: var(--ink); }
.detail-comment-time { font-size: 11px; color: var(--ink3); margin-left: auto; }
.detail-comment-input-wrap {
  display: flex; gap: 8px; margin-bottom: 16px; align-items: flex-end;
}
.detail-comment-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 13px; font-family: 'Noto Sans KR', sans-serif;
  resize: none; outline: none; transition: border .15s; min-height: 44px;
}
.detail-comment-input:focus { border-color: var(--border2); }

