/**
 * Rodapé do single — linha editorial minimalista (sem cards, sombras ou cantos arredondados).
 * Escopo: body.single-post
 */

body.single-post .reym-single-post-wrap {
	position: relative;
}

/* Régua simples após o artigo */
body.single-post .ast-single-post .entry-content {
	position: relative;
}

body.single-post .ast-single-post .entry-content::after {
	content: "";
	display: block;
	height: 1px;
	margin-top: clamp(2rem, 5vw, 3rem);
	background: rgba(15, 23, 42, 0.12);
}

body.single-post .reym-article-tail:not(:empty) {
	margin-top: clamp(1.25rem, 3vw, 2rem);
	padding-top: clamp(1rem, 2.5vw, 1.5rem);
}

body.single-post .reym-article-tail .ast-related-posts-wrapper,
body.single-post .reym-article-tail .comments-area {
	border-radius: 0;
	box-shadow: none;
}

/* Post navigation: só divisória e tipografia */
body.single-post .reym-post-continuation {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.25rem, 2vw, 2rem) 0;
	border-top: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.single-post .reym-post-continuation .post-navigation {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 0;
	border: none;
	margin: 0;
}

@media (min-width: 768px) {
	body.single-post .reym-post-continuation .post-navigation {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

body.single-post .reym-post-continuation .nav-links {
	display: contents;
}

body.single-post .reym-post-continuation .nav-previous,
body.single-post .reym-post-continuation .nav-next {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0.75rem 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: opacity 0.2s ease;
}

body.single-post .reym-post-continuation .nav-previous:hover,
body.single-post .reym-post-continuation .nav-next:hover {
	opacity: 0.72;
	transform: none;
	box-shadow: none;
}

body.single-post .reym-post-continuation .nav-previous a,
body.single-post .reym-post-continuation .nav-next a {
	display: block;
	text-decoration: none;
	color: inherit;
}

body.single-post .reym-post-continuation .post-navigation .ast-post-nav {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.55;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

body.single-post .reym-post-continuation .post-navigation p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 600;
}

body.single-post .reym-post-continuation .ast-related-posts-wrapper {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	border-top: 1px solid rgba(15, 23, 42, 0.12);
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

/* Comentários em qualquer posição no #primary */
body.single-post #primary .comments-area {
	margin-top: 0;
	padding: clamp(2rem, 4vw, 3rem) 0;
	border-radius: 0;
	background: transparent;
	border: none;
	border-top: 1px solid rgba(15, 23, 42, 0.12);
	box-shadow: none;
}

body.single-post #primary .comments-title {
	margin-top: 0;
}

/* Metabar: sem quebra dentro das chips + partilha numa linha (desktop) */
@media (min-width: 783px) {
	body.single-post .ed-single-metabar .ed-single-meta .elementor-widget-container {
		overflow: visible;
	}

	body.single-post .ed-single-metabar .ed-single-meta .elementor-post-info__item {
		white-space: nowrap;
		word-break: normal;
		overflow-wrap: normal;
	}

	body.single-post .ed-single-metabar .elementor-widget-share-buttons .elementor-share-buttons-wrapper {
		flex-wrap: nowrap !important;
	}

	body.single-post .ed-single-metabar .elementor-widget-share-buttons .elementor-share-btn {
		flex-shrink: 0;
	}
}

@media (max-width: 782px) {
	body.single-post .ed-single-metabar .ed-single-meta .elementor-post-info {
		flex-wrap: wrap !important;
	}
}

body.single-post .ed-single-metabar .elementor-icon-list-item {
	line-height: 1.5;
}

body.single-post .ed-single-share .elementor-share-btn {
	transition: opacity 0.2s ease;
}

body.single-post .ed-single-share .elementor-share-btn:hover {
	opacity: 0.75;
	transform: none;
	filter: none;
}

/* Título relacionados — caps discretas, alinhado ao tema */
body.single-post .ed-single-related__title .elementor-heading-title {
	font-size: clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #374151;
}

body.single-post .ed-single-related__title {
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

body.single-post .ed-related-grid .elementor-post {
	transition: opacity 0.2s ease;
}

body.single-post .ed-related-grid .elementor-post:hover {
	transform: none;
	opacity: 0.85;
}

body.single-post .ed-related-grid .elementor-post__title a {
	transition: opacity 0.2s ease;
	text-decoration: none;
}

body.single-post .ed-related-grid .elementor-post__title a:hover {
	opacity: 0.65;
	color: inherit;
}

/* Largura dos comentários alinhada ao grid editorial (detalhes de formulário abaixo) */
body.single-post .ed-single-comments #comments.comments-area {
	max-width: var(--ed-col-max, 80rem);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	box-sizing: border-box;
	border: none;
	box-shadow: none;
	border-radius: 0;
	background: transparent;
}

body.single-post .ed-single-comments .comment-reply-title,
body.single-post .ed-single-comments .comments-title {
	text-align: left;
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
	color: #111827;
}

body.single-post .ed-single-comments .logged-in-as,
body.single-post .ed-single-comments .comment-notes {
	text-align: left;
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 1.25rem;
	line-height: 1.55;
}

body.single-post .ed-single-comments .logged-in-as a {
	color: #111827;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.single-post .ed-single-comments #ast-commentform .comment-form-comment,
body.single-post .ed-single-comments #commentform .comment-form-comment {
	margin-bottom: 1.25rem;
}

body.single-post .ed-single-comments label[for="comment"] {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #374151;
	margin-bottom: 0.5rem;
}

body.single-post .ed-single-comments textarea#comment {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 140px;
	padding: 0.85rem 0;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(15, 23, 42, 0.22);
	background: transparent;
	font-size: 1rem;
	line-height: 1.6;
	transition: border-color 0.2s ease;
	resize: vertical;
}

body.single-post .ed-single-comments textarea#comment:hover,
body.single-post .ed-single-comments textarea#comment:focus {
	background: transparent;
	box-shadow: none;
	outline: none;
	border-bottom-color: #111827;
}

body.single-post .ed-single-comments #ast-commentform input[type="text"],
body.single-post .ed-single-comments #ast-commentform input[type="email"],
body.single-post .ed-single-comments #ast-commentform input[type="url"],
body.single-post .ed-single-comments #commentform input[type="text"],
body.single-post .ed-single-comments #commentform input[type="email"],
body.single-post .ed-single-comments #commentform input[type="url"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0;
	border-radius: 0;
	border: none;
	border-bottom: 1px solid rgba(15, 23, 42, 0.22);
	background: transparent;
	font-size: 0.9375rem;
	transition: border-color 0.2s ease;
}

body.single-post .ed-single-comments #ast-commentform input:focus,
body.single-post .ed-single-comments #commentform input:focus {
	outline: none;
	box-shadow: none;
	border-bottom-color: #111827;
}

body.single-post .ed-single-comments .form-submit {
	margin-top: 1.5rem;
	margin-bottom: 0;
	text-align: left;
}

body.single-post .ed-single-comments .form-submit input[type="submit"],
body.single-post .ed-single-comments #submit {
	display: inline-block;
	min-width: auto;
	padding: 0.65rem 0;
	border-radius: 0;
	border: none;
	border-bottom: 2px solid #111827;
	background: transparent !important;
	color: #111827 !important;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s ease;
	box-shadow: none;
}

body.single-post .ed-single-comments .form-submit input[type="submit"]:hover,
body.single-post .ed-single-comments #submit:hover {
	opacity: 0.6;
	transform: none;
	box-shadow: none;
	background: transparent !important;
}

body.single-post .ed-single-comments .ast-comment-list {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(15, 23, 42, 0.12);
}
