/*
 * PCCIL native comment styling.
 * Applied on any single view that renders comments_template().
 */
.pccc-comments {
	margin-top: var(--pccc-space-4);
	font-size: 0.9rem;
}
.pccc-comments__list,
.pccc-comments .children {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pccc-comments__list > li {
	margin: 0 0 12px;
	padding: 12px 14px;
	background: var(--pccc-color-surface);
	border: 1px solid var(--pccc-color-border);
	border-radius: 10px;
}
.pccc-comments .children {
	margin-top: 8px;
	padding-left: 16px;
	border-left: 2px solid var(--pccc-color-border);
}
.pccc-comments .comment-body { margin: 0; }
.pccc-comments .comment-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.pccc-comments .comment-author.vcard { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; }
.pccc-comments .comment-author img.avatar { width: 32px; height: 32px; border-radius: 50%; }
.pccc-comments .comment-metadata { font-size: 0.75rem; color: var(--pccc-color-ink-muted); }
.pccc-comments .comment-metadata a { color: inherit; text-decoration: none; }
.pccc-comments .comment-content { color: var(--pccc-color-ink); line-height: 1.5; }
.pccc-comments .comment-content p { margin: 4px 0; }
.pccc-comments .reply { margin-top: 6px; }
.pccc-comments .reply a { font-size: 0.8rem; color: var(--pccc-color-primary); text-decoration: none; font-weight: 600; }
.pccc-comments .reply a:hover { text-decoration: underline; }

.pccc-comments__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0;
	font-size: 0.82rem;
}

/* Comment form. */
.pccc-comments__form { margin-top: 20px; }
.pccc-comments__form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.82rem; color: var(--pccc-color-ink); }
.pccc-comments__form input[type="text"],
.pccc-comments__form input[type="email"],
.pccc-comments__form input[type="url"],
.pccc-comments__form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--pccc-color-border);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	color: var(--pccc-color-ink);
}
.pccc-comments__form textarea { min-height: 120px; resize: vertical; }
.pccc-comments__form p { margin: 0 0 10px; }
.pccc-comments__form .form-submit { margin-top: 10px; }
.pccc-comments__submit { padding: 8px 16px; }

/* Mobile. */
@media (max-width: 600px) {
	.pccc-comments__list > li { padding: 10px 12px; }
	.pccc-comments .comment-author img.avatar { width: 28px; height: 28px; }
}
