/*
 * Vendix comment styles: the comment list and the comment form.
 *
 * Loads after base.css on single views whose comments are open or that have comments.
 */

/* Comments ------------------------------------------------------------ */

.comments-area {
	margin-block-start: 3rem;
}

.comments-area a {
	text-decoration: underline;
}

/* On small screens a wide table in a comment scrolls inside itself, not the page. */
@media (max-width: 767px) {
	.comment-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-inline-start: 2rem;
}

.comment-body {
	position: relative;
	padding-block: 1.5rem;
	padding-inline-start: 60px;
	border-block-end: 1px solid var(--vt-border);
}

.comment-body .avatar {
	position: absolute;
	inset-inline-start: 0;
	border-radius: 50%;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-block-end: 0.75rem;
}

.comment-metadata,
.comment-body .reply {
	font-size: 0.8125rem;
}
