/* SPDX-License-Identifier: GPL-2.0-or-later
 * horo theme comments, 2026: travellers' notes left at the inn. Static public
 * data, neutral ancestors and privacy-safe geometric avatars. Original styling.
 */
.historical-comments { max-width: 760px; margin: 56px auto 0; padding-bottom: 12px; overflow-wrap: anywhere; font-family: var(--h-sans); }
.historical-comments, .historical-comment { scroll-margin-top: 90px; }
#comments-list-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 24px; font: 800 24px/1.4 var(--horo-font); }
#comments-list-title > span { font: 500 13px/1.6 var(--h-sans); color: var(--h-ink-3); }
.comment-list, .comment-children { list-style: none; margin: 0; padding: 0; }
.historical-comment { margin: 0; padding: 0; }
.comment-main { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 14px; margin-bottom: 16px; }
.comment-avatar { grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--h-wheat-soft); color: var(--h-wheat-deep); }
.comment-avatar .icon { width: 22px; height: 22px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; min-height: 42px; }
.comment-author { margin: 0; font-size: 15px; line-height: 1.8; font-weight: 700; }
.comment-author a { color: inherit; }
.comment-date, .comment-parent { font-size: 12px; line-height: 1.8; color: var(--h-ink-3); font-variant-numeric: tabular-nums; }
.comment-parent { color: var(--h-apple-ink); }
.comment-date:hover, .comment-parent:hover, .comment-author a:hover { color: var(--h-apple); text-decoration: underline; }
.comment-body { grid-column: 2; position: relative; margin-top: 4px; padding: 12px 18px; border-radius: 4px 16px 16px 16px; background: var(--h-paper); box-shadow: var(--h-lift); font-size: 14.5px; line-height: 1.85; white-space: pre-line; }
.comment-body p { margin: 6px 0; }
.comment-body :is(ol, ul) { white-space: normal; margin-block: 8px; padding-inline-start: 24px; }
.comment-body li { white-space: pre-line; }
.comment-body a { color: var(--h-apple-ink); text-decoration: underline; }
.comment-body blockquote { margin: 8px 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--h-wheat); color: var(--h-ink-2); }
.comment-body pre { max-width: 100%; overflow: auto; padding: 12px; border-radius: 10px; background: var(--h-paper-2); font-size: 13px; line-height: 1.7; white-space: pre; }
.comment-body code { font-family: var(--h-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-body pre code { white-space: pre; overflow-wrap: normal; }
.comment-body img { max-width: 100%; height: auto; vertical-align: middle; }
.comment-body .comment-emoticon img { width: 2em; height: 2em; }
.comment-emoticon-text { display: none; }
.comment-children { margin-inline-start: 56px; }
.comment-children .comment-children .comment-children { margin-inline-start: 0; }
.comment-unavailable { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; padding: 10px 16px; border-radius: 12px; background: var(--h-paper-2); color: var(--h-ink-3); font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--h-line); }
.comment-unavailable a { color: inherit; }
.comment-count-note, .comment-empty, .comment-submission-note { font-size: 14px; color: var(--h-ink-3); }
.comment-count-note { margin: -14px 0 24px; }
.comment-empty { padding: 22px; border-radius: 16px; text-align: center; background: var(--h-paper-2); }
.comment-submission-note { margin-top: 28px; padding-top: 16px; border-top: 1.5px dotted var(--h-line-strong); }
.historical-comment:target > .comment-main .comment-body, .historical-comment:target > .comment-unavailable { box-shadow: 0 0 0 2.5px var(--h-wheat), var(--h-lift); }
@media (max-width: 720px) {
  .comment-main { grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; }
  .comment-avatar { width: 34px; height: 34px; }
  .comment-children { margin-inline-start: 22px; }
  .comment-children .comment-children { margin-inline-start: 0; }
  .comment-meta { min-height: 34px; }
  .comment-body { grid-column: 1 / -1; margin-top: 8px; }
  .comment-author a, .comment-date, .comment-parent, .comment-unavailable a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .comment-emoticon img { display: none; }
  .comment-emoticon-text { display: inline; }
}
