/* Webmentions display (counts, reply-comments, facepile-free by design).
 *
 * Deliberately a SEPARATE stylesheet: the PDF cache key hashes
 * blog-post.css and styles.css, so webmention styling must never live in
 * either (a tweak there re-renders every PDF on the site). The section is
 * likewise hidden from print below, keeping the PDF editions untouched.
 */

.post-webmentions {
    padding: 0 0 3rem;
}

@media (min-width: 1024px) {
    /* Match the post grid's 1200px cap so the block lines up with the
       post body column above it. */
    .post-webmentions .container {
        max-width: 1200px;
    }
}

.webmention-block {
    max-width: 800px;
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
}

.webmention-block h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin: 0 0 0.85rem;
    color: var(--text-primary);
}

.webmention-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.webmention-counts i {
    color: var(--accent-primary);
    margin-right: 0.4rem;
}

.webmention-replies {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.webmention-reply {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.webmention-reply:last-child {
    margin-bottom: 0;
}

.webmention-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.webmention-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent-primary);
    font-family: var(--font-serif);
    font-weight: 600;
    text-transform: uppercase;
}

.webmention-reply-meta {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.webmention-reply-author {
    color: var(--text-primary);
    font-weight: 600;
}

.webmention-reply-meta a:hover {
    color: var(--accent-secondary);
}

.webmention-reply-source {
    margin-left: 0.6rem;
}

.webmention-reply-text {
    margin: 0;
    overflow-wrap: anywhere;
}

/* The PDF editions are printed from these pages: mentions are live web
   ephemera, not part of the archival document. */
@media print {
    .post-webmentions {
        display: none !important;
    }
}
