/* ForgePress Component: Comments
 * Threaded comments and comment form styling. */

.fp-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--fp-color-border);
}

.wp-block-comments-title,
.wp-block-post-comments-form h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.wp-block-comment {
	padding: 1.25rem;
	margin-bottom: 1rem;
	background: var(--fp-color-surface);
	border-radius: var(--fp-radius, 6px);
}

.wp-block-comment .wp-block-comment-author-name {
	font-weight: 700;
	font-size: 1rem;
}

.wp-block-comment .wp-block-comment-metadata {
	font-size: 0.8rem;
	color: var(--fp-color-muted);
	margin-bottom: 0.75rem;
}

.wp-block-comment .wp-block-comment-metadata a {
	color: var(--fp-color-muted);
}

.wp-block-comment .wp-block-comment-content {
	font-size: 0.95rem;
	line-height: 1.6;
}

.wp-block-comment .wp-block-comment-content p {
	margin-bottom: 0.75rem;
}

/* Nested comments. */
.wp-block-comment .wp-block-comment-template {
	margin-top: 1rem;
	padding-left: 1rem;
	border-left: 2px solid var(--fp-color-border);
}

/* Comment reply link. */
.wp-block-comment .comment-reply-link {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	font-size: 0.8rem;
	color: var(--fp-color-primary);
	border: 1px solid var(--fp-color-primary);
	border-radius: var(--fp-radius, 6px);
	text-decoration: none;
	transition: background-color var(--fp-transition-fast, 150ms ease);
}

.wp-block-comment .comment-reply-link:hover {
	background: var(--fp-color-primary);
	color: #fff;
}

/* Comment form. */
.wp-block-post-comments-form {
	margin-top: 2rem;
}

#respond {
	margin-top: 1.5rem;
}
