/* Comment composer and discussion list share the site's white card surface. */
.comments-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.comments-heading h2 { font-size: 18px; line-height: 1.5; }
.comments-heading > span { color: var(--muted-foreground); font-size: 13px; }
.comments-section .comment-respond { margin: 0; }
.comment-reply-title { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 2; }
.comment-reply-title small { display: contents; font-size: 12px; font-weight: 400; }
#cancel-comment-reply-link { color: var(--muted-foreground); }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comment-form > p { margin: 0; min-width: 0; }
.comment-form-comment,
.comment-current-user,
.comment-form-footer { grid-column: 1 / -1; }
.comments-section #commentform textarea,
.comments-section #commentform input:not([type="hidden"]) {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 10px;
  background: var(--card);
  padding: 13px 16px;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.7;
}
.comments-section .comment-form textarea { display: block; min-height: 140px; resize: vertical; }
.comments-section .comment-form input { min-height: 46px; }
.comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 2px; }
.comment-form-hint,
.comment-current-user { color: var(--muted-foreground); font-size: 12px; }
.comment-current-user strong { color: var(--foreground); font-weight: 500; }
.comment-form .form-submit { margin: 0 0 0 auto; flex-shrink: 0; }
.comment-form .form-submit .button { min-height: 40px; padding-inline: 22px; }
.comment-login-prompt,
.comments-empty,
.comments-closed { background: var(--neutral-50); color: var(--muted-foreground); border-radius: 10px; text-align: center; }
.comment-login-prompt { display: grid; justify-items: center; gap: 16px; padding: 28px 20px; }
.comment-login-prompt > i { font-size: 28px; line-height: 1; color: var(--neutral-400); }
.comment-login-prompt p { font-size: 14px; }
.comment-login-prompt .button { background: var(--card); }
.comment-login-prompt .button:hover { background: var(--accent); }
.comments-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 16px; margin-top: 24px; font-size: 13px; }
.comments-empty > i { font-size: 19px; }
.comments-closed { padding: 18px; font-size: 13px; }
.comments-section .comment-list { margin-top: 28px; padding: 0; list-style: none; }
.comment-list .children { padding-left: 28px; margin: 0; list-style: none; }
.comment-list .comment-body { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 0; }
.comment-author-row { display: flex; align-items: center; gap: 12px; }
.comment-author-info { min-width: 0; }
.comment-author-info > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comment-author-info strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.comment-author-badge { padding: 1px 6px; background: var(--secondary); color: var(--muted-foreground); border-radius: 4px; font-size: 11px; }
.comment-author-bio { margin-top: 2px; color: var(--muted-foreground); font-size: 12px; overflow-wrap: anywhere; }
.comment-content { margin: 16px 0; color: var(--foreground); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.comment-content p + p { margin-top: 12px; }
.comment-content a { color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.comment-content pre { max-width: 100%; overflow-x: auto; }
.comment-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted-foreground); font-size: 12px; }
.comment-date { display: inline-flex; align-items: center; gap: 5px; }
.comment-reply-link,
.comment-reply-login { margin-left: auto; padding: 3px 0 3px 12px; }
.comment-reply-link:hover,
.comment-reply-login:hover { color: var(--foreground); }
.comment-moderation { margin-top: 12px; color: var(--muted-foreground); font-size: 12px; }
.comment-list .comment-respond { padding: 20px; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 10px; }
.comments-section > .pagination { margin-top: 20px; }
@media (max-width: 640px) {
  .comments-heading { margin-bottom: 20px; }
  .comment-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .comment-form-footer { align-items: flex-end; gap: 12px; }
  .comment-form-hint { max-width: 160px; font-size: 11px; }
  .comment-form .form-submit .button { padding-inline: 16px; }
  .comment-list .children { padding-left: 14px; }
  .comment-list .comment-respond { padding: 14px; }
  .comments-empty { align-items: flex-start; text-align: left; padding: 22px 16px; }
}
