/* ==========================================================================
   CONTENT
   --------------------------------------------------------------------------
   Editor output, single posts, comments. .mtfs-prose styles markup the theme
   does not control, so the rules stay element-based rather than class-based.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.mtfs-prose > *:last-child {
	margin-bottom: 0;
}

.mtfs-prose h2 {
	margin-top: var(--mtfs-space-7);
}

.mtfs-prose h3 {
	margin-top: var(--mtfs-space-6);
}

.mtfs-prose img {
	border-radius: var(--mtfs-radius);
}


/* --------------------------------------------------------------------------
   Core block alignments
   -------------------------------------------------------------------------- */

.alignwide {
	width: min(var(--mtfs-container-wide), 100%);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.alignleft {
	float: left;
	margin: 0 var(--mtfs-space-5) var(--mtfs-space-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--mtfs-space-4) var(--mtfs-space-5);
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	margin-top: var(--mtfs-space-2);
	font-size: var(--mtfs-size-body-2);
	color: var(--mtfs-color-muted);
	text-align: center;
}

.mtfs-page-links {
	display: flex;
	gap: var(--mtfs-space-2);
	margin-top: var(--mtfs-space-5);
	font-weight: 600;
}


/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.mtfs-entry__tags a {
	padding: var(--mtfs-space-1) var(--mtfs-space-3);
	border-radius: var(--mtfs-radius-pill);
	background: var(--mtfs-color-surface);
	font-size: var(--mtfs-size-body-2);
	text-decoration: none;
}

.mtfs-entry__tags a:hover {
	background: var(--mtfs-color-primary);
	color: var(--mtfs-white);
}

.mtfs-share__link {
	width: 38px;
	height: 38px;
	border-radius: var(--mtfs-radius-sm);
	background: var(--mtfs-color-surface);
	color: var(--mtfs-color-heading);
	transition: background-color var(--mtfs-transition), color var(--mtfs-transition);
}

.mtfs-share__link:hover {
	background: var(--mtfs-color-primary);
	color: var(--mtfs-white);
}


/* --------------------------------------------------------------------------
   Post navigation
   -------------------------------------------------------------------------- */

.mtfs-post-nav__link {
	color: var(--mtfs-color-heading);
	border-color: var(--mtfs-color-border) !important;
	transition: border-color var(--mtfs-transition);
}

.mtfs-post-nav__link:hover {
	border-color: var(--mtfs-color-primary) !important;
	color: var(--mtfs-color-heading);
}


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

.mtfs-comments {
	margin-top: var(--mtfs-space-8);
	padding-top: var(--mtfs-space-7);
	border-top: 1px solid var(--mtfs-color-border);
}

.mtfs-comments__list,
.mtfs-comments__list .children {
	margin: 0 0 var(--mtfs-space-6);
	padding: 0;
	list-style: none;
}

.mtfs-comments__list .children {
	margin: var(--mtfs-space-4) 0 0 var(--mtfs-space-6);
	padding-left: var(--mtfs-space-4);
	border-left: 2px solid var(--mtfs-color-border);
}

.mtfs-comments__list .comment-body {
	padding: var(--mtfs-space-4) 0;
}

.mtfs-comments__list .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mtfs-space-3);
	margin-bottom: var(--mtfs-space-3);
	font-size: var(--mtfs-size-body-2);
}

.mtfs-comments__list .avatar {
	border-radius: var(--mtfs-radius-pill);
}

/* Bootstrap does not style the comment form core outputs, so give the fields
   the same look as .form-control without changing the markup WordPress emits. */
.mtfs-comment-form input[type="text"],
.mtfs-comment-form input[type="email"],
.mtfs-comment-form input[type="url"],
.mtfs-comment-form textarea {
	width: 100%;
	padding: var(--mtfs-space-3) var(--mtfs-space-4);
	border: 1px solid var(--mtfs-color-border);
	border-radius: var(--mtfs-radius-sm);
	background: var(--mtfs-white);
}

.mtfs-comment-form input:focus,
.mtfs-comment-form textarea:focus {
	outline: 0;
	border-color: var(--mtfs-color-primary);
	box-shadow: var(--mtfs-focus-ring);
}

.mtfs-comment-form label {
	display: block;
	margin-bottom: var(--mtfs-space-2);
	font-weight: 600;
	color: var(--mtfs-color-heading);
}

.mtfs-comment-form p {
	margin-bottom: var(--mtfs-space-4);
}


/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.mtfs-404__code {
	font-family: var(--mtfs-font-heading);
	font-size: clamp(72px, 18vw, 140px);
	font-weight: 800;
	line-height: 1;
	color: var(--mtfs-color-primary);
	opacity: 0.25;
}
