/**
 * Evesta comments styles. Loaded on singular views that show comments.
 * Covers the comment list, threading, metadata, the reply form and pingbacks.
 */

.evesta-comments { margin-top: calc(var(--evesta-spacing) * 2.5); }
.evesta-comments__title,
.comments-title { font-size: 1.4rem; margin: 0 0 calc(var(--evesta-spacing) * 1.5); }

/* ===================== COMMENT LIST ===================== */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 clamp(1rem, 4vw, 2.5rem); padding: 0; }
.comment-list li.comment { margin: 0; }

.comment-body {
	position: relative;
	padding: calc(var(--evesta-spacing) * 1.25) 0;
	padding-left: 64px;
	border-bottom: var(--evesta-border-width) solid var(--evesta-color-border);
}
.comment-author { line-height: 1.2; }
.comment-author .avatar {
	position: absolute; left: 0; top: calc(var(--evesta-spacing) * 1.25);
	width: 48px; height: 48px; border-radius: 50%;
}
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata {
	font-size: 0.8rem; opacity: 0.7; margin-top: 0.1rem;
}
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-metadata a:hover { text-decoration: underline; }
.comment-content { margin-top: 0.6rem; }
.comment-content > :last-child { margin-bottom: 0; }

.comment-awaiting-moderation { font-size: 0.85rem; font-style: italic; opacity: 0.8; }
.bypostauthor > .comment-body { }
.comment .reply { margin-top: 0.4rem; }
.comment-reply-link {
	font-size: 0.8rem; font-weight: 600; text-decoration: none;
	display: inline-block;
}
.comment-reply-link:hover { text-decoration: underline; }

/* Pingbacks / trackbacks */
.pingback .comment-body,
.trackback .comment-body { padding-left: 0; }

/* ===================== NAVIGATION ===================== */
.comment-navigation,
.comments-pagination {
	display: flex; justify-content: space-between; gap: 1rem;
	margin: calc(var(--evesta-spacing) * 1.5) 0;
}
.no-comments { opacity: 0.75; font-style: italic; }

/* ===================== REPLY FORM ===================== */
.comment-respond { margin-top: calc(var(--evesta-spacing) * 2); }
.comment-reply-title { font-size: 1.25rem; margin: 0 0 var(--evesta-spacing); }
.comment-reply-title small { font-size: 0.8rem; font-weight: 400; margin-left: 0.5rem; }
.comment-form { display: flex; flex-direction: column; gap: var(--evesta-spacing); }
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url { display: flex; flex-direction: column; gap: 0.35rem; }
.comment-form label { font-size: 0.85rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: var(--evesta-border-width) solid var(--evesta-color-border);
	border-radius: var(--evesta-radius);
	background: var(--evesta-color-bg);
	color: inherit;
	font: inherit;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 0.5rem; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.form-submit { margin: 0; }

/* Author / email / url sit side by side on wider screens */
@media screen and (min-width: 600px) {
	.comment-form-author,
	.comment-form-email,
	.comment-form-url { display: inline-flex; width: calc(50% - (var(--evesta-spacing) / 2)); }
}
