/**
 * Single de post (matéria) — template single.php
 *
 * Estilos extras específicos da matéria (a faixa “Siga nossas redes” está em header-menu.css).
 *
 * @package PT2026
 */

body.pt2026-single-artigos-bg {
	background-color: #F5F3EB;
}

 @media (max-width: 766.98px) {
    .single-post-title {
        font-size: 28px;
    }

	/*
	 * Mobile: o .container do tema já aplica 20px laterais (style.css).
	 * Não duplicar padding aqui — senão o bloco .single-post-main-row fica ~40px
	 * e desalinha de .single-related-posts (só com padding do container).
	 */
	.single-post-back-link {
		margin-left: 0 !important;
	}

	.single-post-author-meta,
	.single-post-content,
	.single-post-header {
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-left: 0 !important;
	}

	.single-post-image-wrap {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.single-post-title--artigos {
		font-size: 40px !important;
	}
}

@media (min-width: 767px) and (max-width: 1023.98px) {

	.single-post-image-wrap {
		max-width: 794px;
		aspect-ratio: 794 / 415;
		margin-inline: auto;
	}

    .single-post-content, 
    .single-post-header {
        max-width: 591px;
    }

    .single-post-title {
        font-size: 40px;
    }

    .col-md-2 {
        flex: 0 0 auto;
        width: 25%;
        max-width: 202px !important;
    }

    .col-md-10 {
        flex: 0 0 auto;
        width: 75%;
        max-width: 591px !important;
    }

	.single-post-header--artigos {
		max-width: 1023px !important;
	}

	.single-post-title--artigos {
		font-size: 48px !important;
	}
}

@media (min-width: 1024px) and (max-width: 1819.98px) {

	.single-post-image-wrap {
		max-width: 1280px;
		aspect-ratio: 1280 / 699;
		margin-inline: auto;
	}

    .single-post-content, 
    .single-post-header {
        max-width: 738px;
    }

    .single-post-title {
        font-size: 40px;
    }

    .single-post-sidebar {
        border-left: 1px solid #E4DED2;
        padding-left: 40px;
        max-width: 400px;
    }

	.single-post-title--artigos {
		font-size: 48px !important;
	}

	.pt2026-noticias-header-right {
		padding-bottom: 0 !important;
	}

}

@media (min-width: 1820px) {

	.single-post-image-wrap {
		max-width: 1660px;
		aspect-ratio: 1660 / 990;
		margin-inline: auto;
	}

    .single-post-content, 
    .single-post-header {
        max-width: 869px;
    }

    .single-post-title {
        font-size: 48px;
    }

    .single-post-content {
        max-width: 820px;
    }

    .single-post-sidebar {
        border-left: 1px solid #E4DED2;
        padding-left: 40px;
        max-width: 400px;
    }
}

.single-post-content, 
.single-post-header {
    padding-left: 40px;
    border-left: 1px solid #E4DED2;
}

.single-post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-title {
    font-family: var(--pt2026-font-display-ultra-cond);
    font-weight: 900;
    letter-spacing: 2%;
	line-height: 105%;
    text-transform: uppercase;
}

.single-post-excerpt {
    font-family: var(--pt2026-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

.single-post-back-link {
    font-family: var(--pt2026-font-body);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-decoration: none;
	line-height: normal;
    color: var(--pt2026-secondary-btn-fg) !important;
    border-bottom: var(--pt2026-secondary-btn-line-width) solid var(--pt2026-secondary-btn-line);
    padding-bottom: var(--pt2026-secondary-btn-pad-underline);
    transition:
		color var(--pt2026-transition-hover),
		border-bottom-color var(--pt2026-transition-hover);
}

.single-post-back-link:hover,
.single-post-back-link:focus-visible {
    color: var(--pt2026-red) !important;
    border-bottom-color: transparent;
}

.single-post-back-arrow {
    margin-right: 0.15em;
}

.single-post-artigos-hero .single-post-back-link {
	width: fit-content;
	display: inline-block;
}

.single-post-header--artigos {
	max-width: 680px;
	padding-left: 0;
	border-left: 0;
}

.single-post-title--artigos {
	font-family: var(--pt2026-font-serif);
	font-size: 72px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.single-post-excerpt--artigos {
	max-width: 96%;
	font-family: var(--pt2026-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 150%;
	color: #202020;
}

.single-post-image-wrap--artigos {
	max-width: 820px;
	aspect-ratio: auto;
}

@media (min-width: 1024px) {
	.single-post-artigos-hero {
		border-bottom: 1px solid #E4DED2;
		padding-right: 12px;
		padding-bottom: 40px;
	}
}

.single-post-image-caption {
    font-family: var(--pt2026-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #202020;
    padding-top: 10px;
}

.single-post-author {
    font-family: var(--pt2026-font-body);
    font-size: 12px;
    font-weight: 700;
    color: #202020;
}

.single-post-photo-credit, 
.single-post-share-label, 
.single-post-meta {
    font-family: var(--pt2026-font-body);
    font-size: 12px;
    font-weight: 300;
    color: #202020;
	line-height: 110%;
}

.entry-content p,
.single-post-content p {
    font-family: var(--pt2026-font-body);
    font-size: 18px;
    font-weight: 400;
	line-height: 150%;
    color: #202020;
}

.entry-content p em,
.single-post-content p em {
    font-family: var(--pt2026-font-serif);
    font-style: italic;
    font-size: 32px;
    font-weight: 400;
	line-height: 120%;
    color: #202020;
}

/* QA 7.1: pull quote no single com texto em 20px */
.single-post-content blockquote p,
.single-post-content .wp-block-pullquote blockquote p,
.single-post-content .wp-block-quote.is-style-large p {
	font-size: 20px;
	line-height: 140%;
}

.entry-content h2,
.single-post-content h2 {
    font-family: var(--pt2026-font-display-cond);
    font-size: 24px !important;
    font-weight: 700;
    color: #202020;
}

.entry-content h3,
.single-post-content h3 {
    font-family: var(--pt2026-font-display-cond);
    font-size: 20px !important;
    font-weight: 700;
    color: #202020;
}

.entry-content figure img,
.single-post-content figure img {
    max-width: 780px !important;
    max-height: 580px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.entry-content figure figcaption,
.single-post-content figure figcaption {
    font-family: var(--pt2026-font-body);
    font-size: 14px;
    font-weight: 400;
    color: #202020;
    text-align: left;
}

/* Equivale a <span>↑</span> no início da legenda (sem alterar o HTML do conteúdo). */
.entry-content figure figcaption::before,
.single-post-content figure figcaption::before {
	content: '↑';
	display: inline-block;
	margin-right: 0.25em;
	font-weight: 600;
	line-height: 1;
}

/* --- Sidebar: Tópicos (tags) — até 1023px lado a lado; a partir de 1024px empilhados --- */
.single-post-topics-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
}

@media (min-width: 1024px) {
	.single-post-topics-list {
		flex-direction: column;
		flex-wrap: nowrap;
	}
}

.single-post-main-news-title {
    border-top: 1px solid #E4DED2;
    padding-top: 16px;
}

.single-post-main-news-title, 
.single-post-topics-title {
	font-family: var(--pt2026-font-display-cond);
	font-size: 22px;
	font-weight: 700;
	color: #202020;
    letter-spacing: 2%;
    text-transform: uppercase;
}

.home-principal-section-chart {
	margin-bottom: 5px;
	margin-left: 5px;
}

.single-post-topic-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 0.45rem 1rem;
	background-color: #fff;
	border: 1px solid #e4ded2;
	color: inherit !important;
	font-family: var(--pt2026-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
	max-width: 100%;
	word-break: break-word;
}

.single-post-topic-badge:hover,
.single-post-topic-badge:focus {
	background-color: #fff;
	border-color: #c41e3a;
	color: #c41e3a;
	text-decoration: none;
}

/* --- Galeria nativa [gallery] no conteúdo: carrossel Owl (ver assets/js/single-gallery.js) --- */
.single-post-content .gallery {
	margin: 1.5rem 0 2rem;
	clear: both;
}

.single-post-content .gallery .gallery-item {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-post-content .gallery figure.gallery-item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 1rem;
}

.single-post-content .gallery .gallery-icon {
	width: 100%;
	overflow: hidden;
	border-radius: 1rem;
}

.single-post-content .gallery .gallery-icon a {
	display: block;
	line-height: 0;
}

.single-post-content .gallery .gallery-icon img {
	width: 100%;
	height: auto;
	max-height: min(70vh, 640px);
	object-fit: cover;
	display: block;
	vertical-align: middle;
	border-radius: 1rem;
}

.single-post-content .gallery .gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	/* bottom: 0; */
	z-index: 2;
	font-family: var(--pt2026-font-body);
	font-size: 0.9rem;
	color: #fff;
	padding: 0.5rem 1rem 3.75rem;
	margin: 0;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
	background: none;
	border-radius: 0;
}

/* Wrapper Owl + gradient inferior + nav/dots sobre a imagem */
.single-post-content .gallery.pt2026-gallery-carousel {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	background: #000;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-stage-outer {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-stage-outer::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 48%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
	pointer-events: none;
	z-index: 1;
}

/* Dots centralizados sobre o gradiente */
.single-post-content .gallery.pt2026-gallery-carousel .owl-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3.25rem;
	margin: 0 !important;
	padding: 0 0.75rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-dots .owl-dot span {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	transition: background 0.2s ease, transform 0.2s ease;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-dots .owl-dot.active span,
.single-post-content .gallery.pt2026-gallery-carousel .owl-dots .owl-dot:hover span {
	background: #fff;
	transform: scale(1.15);
}

/* Setas em círculos vermelhos nos cantos inferiores */
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.65rem;
	margin: 0 !important;
	padding: 0 0.65rem;
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
	z-index: 4;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-prev,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-next {
	position: static;
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50%;
	background: #e4142c !important;
	border: none !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	opacity: 1;
	transition: opacity 0.2s ease;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-prev:hover,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-next:hover,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-prev:focus,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-next:focus,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-prev:active,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-next:active {
	opacity: 0.75;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-prev span,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-next span {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0 !important;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav .pt2026-gallery-nav-inner {
	font-size: 1.15rem;
	line-height: 1;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav .disabled {
	background: #e4142c !important;
	opacity: 0.4;
	pointer-events: none;
}

/* Uma imagem: sem controles duplicados */
.single-post-content .gallery.pt2026-gallery-carousel.owl-carousel .owl-nav.disabled,
.single-post-content .gallery.pt2026-gallery-carousel.owl-carousel .owl-dots.disabled {
	display: none !important;
}

.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-prev span i,
.single-post-content .gallery.pt2026-gallery-carousel .owl-nav button.owl-next span i {
	font-size: 12px !important;
	font-weight: bold !important;
	color: #fff !important;
}

