/* W34 — comments, blog design system v2 (v2_article.comments): heading and count, the
   moderation note, the form with visible labels, then the thread (one reply level). */
.hc-comments { display: flex; flex-direction: column; gap: 16px; }
.hc-comments__head { display: flex; align-items: baseline; gap: 12px; }
.hc-comments h2.hc-comments__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--hc-text);
}
.hc-comments__count { font-size: 18px; color: var(--hc-muted); }
.hc-comments__notice { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hc-body); }
.hc-comments__closed,
.hc-comments__more {
  margin: 0;
  padding-top: 20px;
  box-shadow: inset 0 1px 0 var(--hc-hair);
  font-size: 14px;
  color: var(--hc-muted);
}
.hc-comments__more[hidden] { display: none; }

/* ---- The form ---- */
.hc-comments .comment-respond { margin: 6px 0 0; padding: 0; background: none; border: 0; }
.hc-cform { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.hc-cform .comment-reply-title,
.hc-cform .logged-in-as { display: none; }
.hc-cform__row { display: flex; gap: 14px; }
.hc-cform__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; margin: 0; }
.hc-cform__field label { font-size: 14px; font-weight: 600; color: var(--hc-text); }
.hc-comments .hc-cform input:is([type="text"], [type="email"]),
.hc-comments .hc-cform textarea {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--hc-field-line);
  border-radius: 999px;
  background: var(--hc-field);
  color: var(--hc-text);
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
}
.hc-comments .hc-cform textarea { height: 140px; padding: 14px 20px; border-radius: 18px; resize: vertical; line-height: 1.6; }
.hc-comments .hc-cform :is(input, textarea):focus { outline: 2px solid var(--hc-focus); outline-offset: 2px; border-color: var(--hc-focus); }
.hc-cform__help { font-size: 13px; color: var(--hc-muted); }
.hc-cform__foot { display: flex; margin: 0; }
.hc-comments .hc-cform input#submit.hc-cform__submit {
  align-self: flex-start;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-btn-bg);
  color: var(--hc-btn-fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.hc-comments .hc-cform input#submit.hc-cform__submit:hover { opacity: 0.88; }

/* ---- The thread ---- */
.hc-comments__list { margin: 20px 0 0; padding: 0; list-style: none; }
.hc-comments__list > li { margin: 0; padding: 24px 0; box-shadow: inset 0 1px 0 var(--hc-hair); }
.hc-comments__list > li[data-hc-hidden] { display: none; }
.hc-comment__row { display: flex; gap: 14px; }
.hc-comment__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--hc-card-on-band);
  box-shadow: inset 0 0 0 1px var(--hc-hair);
  font-size: 16px;
  font-weight: 600;
  color: var(--hc-body);
}
.hc-comment__avatar--team { background: var(--hc-moment); box-shadow: none; }
.hc-comment__avatar img { display: block; width: 20px; height: 20px; }
.hc-comment__main { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.hc-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hc-comment__name { font-size: 16px; font-weight: 600; color: var(--hc-text); }
.hc-comment__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--hc-chip-on-bg);
  box-shadow: inset 0 0 0 1px var(--hc-chip-on-line);
  color: var(--hc-chip-on-fg);
  font-size: 12px;
  font-weight: 600;
}
.hc-comment__time { font-size: 14px; color: var(--hc-muted); }
.hc-comment__body p { margin: 0 0 10px; font-size: 16px; line-height: 1.65; color: var(--hc-prose-text); }
.hc-comment__body p:last-child { margin-bottom: 0; }
.hc-comment__body[lang="th"] p { line-height: 1.75; }
.hc-comment__pending { margin: 0; font-size: 14px; color: var(--hc-muted); }
.hc-comment__actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; color: var(--hc-muted); }
.hc-comment__actions .comment-reply-link { color: var(--hc-muted); text-decoration: none; }
.hc-comments button.hc-comment__helpful {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hc-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hc-comments button.hc-comment__helpful:hover { color: var(--hc-text); }
.hc-comments button.hc-comment__helpful.is-voted { color: var(--hc-accent); }
.hc-comments button.hc-comment__helpful.is-voted svg { fill: currentColor; }
/* One reply level, drawn with a rose rule on the left. */
.hc-comments .children {
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  list-style: none;
  box-shadow: inset 2px 0 0 var(--hc-chip-on-line);
}
.hc-comments .children > li { margin: 0; padding: 0; }
.hc-comments .children > li + li { margin-top: 20px; }

@media (max-width: 900px) {
  .hc-comments h2.hc-comments__title { font-size: 26px; }
  .hc-cform__row { flex-direction: column; }
  .hc-comments .children { padding-left: 14px; }
}
