/* 댓글 (일지 · 상품 · 포스트) — inc/comments.php 참고 */
.wr-comments { font-size: 12.5px; line-height: 150%; letter-spacing: 0; color: #000; }
.wr-comment-list { list-style: none; margin: 0; padding: 0; }
.wr-comment { margin: 0 0 10px; }
.wr-comment-by { margin: 0; font-size: 11.5px; font-weight: 600; }
.wr-comment-by time { margin-left: 4px; font-weight: 400; color: #888; }
.wr-comment-body { margin: 0; line-height: 165%; word-break: keep-all; overflow-wrap: anywhere; }
.wr-comment-form { margin: 0; }
.wr-comment-form input[type="text"],
.wr-comment-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 6px;
  padding: 4px 0 5px;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-family: inherit !important;
  outline: 0;
}
.wr-comment-form textarea { resize: vertical; min-height: 5.5em; } /* 기본 높이: 세 줄 남짓 */
.wr-comment-form input[type="text"]:focus,
.wr-comment-form textarea:focus { border-bottom-color: #3e50f7; }
.wr-comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* 스팸 방지 칸: 사람에게는 보이지 않음 */
.wr-comment-note { margin: 0 0 6px; color: #c0392b; font-size: 11.5px; }
.wr-comment-note.is-ok { color: #888; }
.wr-comment-note:empty { display: none; }
.wr-comments .wr-comment-submit {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.wr-comments .wr-comment-submit:hover { color: #3e50f7; }
.wr-comments .wr-comment-submit:disabled { opacity: 0.5; cursor: default; }
/* 휴대폰은 16px 미만이면 입력할 때 iOS가 화면을 확대하므로 16px 유지 */
@media (max-width: 1024px) {
  .wr-comment-form input[type="text"],
  .wr-comment-form textarea { font-size: 16px; }
}

/* 메인 캘린더의 일지: 본문 아래 */
.wr-cal .wr-comments { margin-top: 48px; padding-top: 10px; border-top: 1px solid #e5e5e5; }

/* 상품 · 포스트 상세: 기본은 본문 아래 (Related Info 위) */
.wr-comments-side { margin-top: 40px; }
.wr-comments-side .wr-comments { font-size: 13.5px; }
.wr-comments-side .wr-comment-by { font-size: 12px; }

/* 넓은 화면: 본문 오른쪽 여백에 세워 2열처럼 보이게 (『자기소개』 목록이 왼쪽에 서는 것과 같은 방식 — css/self-list.css).
   본문을 내려도 따라오고, 댓글이 길면 그 안에서 따로 스크롤 */
@media (min-width: 1280px) {
  .wr-desc-wrap { position: relative; } /* 댓글란이 본문 시작 높이에서 시작해 본문 끝에서 끝남 */
  .wr-comments-side { position: absolute; top: 0; bottom: 0; left: 100%; width: min(300px, calc((100vw - 100%) / 2 - 78px)); margin: 0 0 0 39px; } /* 본문과의 간격 39px = 화면 오른쪽 끝과의 간격 */
  .wr-comments-inner { position: sticky; top: 20px; box-sizing: border-box; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; }
  .wr-comments-side .wr-comments { font-size: 12.5px; }
  .wr-comments-side .wr-comment-by { font-size: 11.5px; }
}
