/* Shared reading surface and controls inherit the public day/night palette. */
.article-comments { max-width: 800px; margin: 48px auto 0; border-top: 1px solid var(--qf-line); padding-top: 32px; }
.article-comments h2 { margin: 0 0 12px; }
.article-comments label { display: grid; gap: 8px; font-weight: 650; }
.article-comments textarea { width: 100%; padding: 14px; margin-bottom: 16px; border: 1px solid var(--qf-line); border-radius: 6px; background: var(--qf-surface-soft); color: var(--qf-ink); font: inherit; resize: vertical; }
.article-comments textarea:focus-visible { outline: 2px solid var(--qf-accent); }
.comment { display: grid; grid-template-columns: 132px minmax(0, 1fr); margin-top: 16px; border: 1px solid var(--qf-line); border-radius: 6px; background: var(--qf-surface-inset); box-shadow: 0 3px 8px #10182718; }
.comment-author { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 18px 12px; }
.comment-avatar { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--qf-surface); color: var(--qf-notebook-accent); border: 3px solid var(--qf-wood); box-shadow: 0 0 0 1px var(--qf-bevel-shadow); font-size: 32px; font-weight: 750; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-author-name { width: 100%; padding: 4px; border-radius: 3px; background: var(--qf-board-fill), var(--qf-wood); border: 1px solid var(--qf-bevel-shadow); border-top-color: var(--qf-bevel-light); color: #fff; text-shadow: 0 1px 1px #713c1580; text-align: center; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.comment-bubble { position: relative; min-width: 0; padding: 16px 20px 20px; border-left: 1px solid var(--qf-line); border-radius: 0 5px 5px 0; background: var(--qf-surface-soft); }
.comment-bubble::before { content: ''; position: absolute; top: 33px; left: -7px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--qf-surface-soft); border-left: 1px solid var(--qf-line); border-bottom: 1px solid var(--qf-line); }
.comment-heading { min-height: 30px; padding-right: 32px; border-bottom: 1px solid var(--qf-line); }
.comment time { color: var(--qf-muted); font-size: 12px; }
.comment-text { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-delete { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 4px; color: var(--qf-muted); }
.comment-delete:hover { background: var(--qf-surface-inset); color: var(--qf-ink); }
.comment-delete svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-comment-refresh] { color: var(--qf-accent); font-weight: 650; padding: 6px 0; }
[data-comment-notice] { min-height: 1.65em; }
[data-comment-prompt] a { text-decoration: underline; text-underline-offset: 3px; }
[data-comment-more] { margin-top: 24px; }
@media (max-width: 560px) {
  .comment { grid-template-columns: 82px minmax(0, 1fr); }
  .comment-author { padding: 16px 8px; gap: 8px; }
  .comment-author-name { font-size: 11px; }
  .comment-avatar { font-size: 24px; border-width: 2px; }
  .comment-bubble { padding: 16px 12px; }
  .comment-delete { width: 40px; height: 40px; top: 5px; right: 4px; }
}
