/* PW Host: estilos do blog (carregado pelo mu-plugin pwhost-ajustes.php). Fonte: Claude/scripts/mu-plugins/pwhost-assets/ */

/* Blog, categorias e busca: o mesmo espaçamento interno dos artigos (Astra single-post-inside-spacing: 40x48, 32x28, 24x16).
   A opção blog-post-inside-spacing do Astra só vale para listas com 2 colunas ou mais; a do blog tem 1. */
.ast-separate-container .ast-article-post.ast-archive-post {
	padding: 40px 48px;
}
@media (max-width: 921px) {
	.ast-separate-container .ast-article-post.ast-archive-post { padding: 32px 28px; }
}
@media (max-width: 544px) {
	.ast-separate-container .ast-article-post.ast-archive-post { padding: 24px 16px; }
}

/* Blog: a imagem destacada aparece inteira (as capas têm texto) e ganha um zoom leve no hover.
   O Astra (blog-hover-effect) aplicava scale(1.1) parado e scale(1) no hover. */
.ast-article-post .post-thumb-img-content {
	overflow: hidden;
}
body .ast-article-post .post-thumb-img-content img {
	transform: scale(1);
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
	will-change: transform;
}
body .ast-article-post:hover .post-thumb-img-content img,
body .ast-article-post:focus-within .post-thumb-img-content img {
	transform: scale(1.035);
}
@media (prefers-reduced-motion: reduce) {
	body .ast-article-post .post-thumb-img-content img { transition: none; }
	body .ast-article-post:hover .post-thumb-img-content img,
	body .ast-article-post:focus-within .post-thumb-img-content img { transform: none; }
}

/* "Leia também": artigos relacionados do Astra, dentro do cartão do artigo, depois do texto. */
.single .ast-single-related-posts-container {
	padding: 32px 0 0;
	margin: 48px 0 0;
	border-top: 1px solid #e2e8f0;
	background: transparent;
}
.single .ast-related-posts-title-section {
	border-top: 0;
	padding: 0;
}
.single .ast-related-posts-title {
	position: relative;
	margin: 0 0 20px;
	padding-left: 14px;
	color: #0f172a;
	line-height: 1.3;
}
.single .ast-related-posts-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	bottom: .15em;
	width: 4px;
	border-radius: 4px;
	background: linear-gradient(180deg, #3498db, #01af00);
}
.single .ast-related-posts-wrapper {
	grid-column-gap: 20px;
	grid-row-gap: 20px;
}
.single .ast-related-posts-wrapper .ast-related-post {
	position: relative;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.single .ast-related-posts-wrapper .ast-related-post:hover,
.single .ast-related-posts-wrapper .ast-related-post:focus-within {
	transform: translateY(-3px);
	border-color: #bcdcf3;
	box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .28);
}
.single .ast-related-post .post-thumb-img-content {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 0;
}
.single .ast-related-post .post-thumb-img-content img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.single .ast-related-post:hover .post-thumb-img-content img,
.single .ast-related-post:focus-within .post-thumb-img-content img {
	transform: scale(1.035);
}
.single .ast-related-post .related-entry-header {
	margin: 0;
	padding: 14px 16px 18px;
}
.single .ast-related-post .ast-related-post-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
.single .ast-related-post .ast-related-post-title a {
	color: #0f172a;
	text-decoration: none;
}
/* o cartão inteiro é clicável pelo link do título */
.single .ast-related-post .ast-related-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.single .ast-related-post:hover .ast-related-post-title a {
	color: #1f6fa8;
}
.single .ast-related-post .ast-related-post-title a:focus-visible {
	outline: none;
}
.single .ast-related-post:has(.ast-related-post-title a:focus-visible) {
	outline: 3px solid #3498db;
	outline-offset: 2px;
}
.single .ast-related-post .entry-meta {
	margin: 0;
}
.single .ast-related-post .entry-meta a {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e7f6ff;
	color: #1f6fa8;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}
.single .ast-related-post .entry-meta a:hover {
	background: #3498db;
	color: #fff;
}
.single .ast-related-post .entry-content:empty {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	.single .ast-related-posts-wrapper .ast-related-post,
	.single .ast-related-post .post-thumb-img-content img { transition: none; }
	.single .ast-related-posts-wrapper .ast-related-post:hover,
	.single .ast-related-posts-wrapper .ast-related-post:focus-within { transform: none; }
	.single .ast-related-post:hover .post-thumb-img-content img,
	.single .ast-related-post:focus-within .post-thumb-img-content img { transform: none; }
}
