/*
Theme Name: Pauta
Theme URI: https://example.com/pauta
Author: Pauta
Description: Tema de notícias e revista para o editor de site completo (block theme). Página inicial com manchete principal, grade de últimas notícias, colunas por categoria e barra lateral, tudo editável no editor.
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pauta
Tags: blog, news, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, full-site-editing, block-styles, wide-blocks, translation-ready
*/

/* Estilos complementares que não cabem no theme.json */

.pauta-kicker {
	display: inline-block;
	background: var(--wp--preset--color--manchete);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.2em 0.6em;
	margin-bottom: 0.6rem;
}

/* Categoria sobre a imagem no destaque principal */
.pauta-destaque .wp-block-post-terms a {
	background: var(--wp--preset--color--manchete);
	color: #fff;
	padding: 0.2em 0.6em;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

/* Link das categorias nas listas */
.wp-block-post-terms a {
	color: var(--wp--preset--color--manchete);
	font-weight: 700;
	text-decoration: none;
}

/* Título de seção com barra vermelha */
.pauta-secao-titulo {
	border-bottom: 3px solid var(--wp--preset--color--tinta);
	padding-bottom: 0.4rem;
	margin-bottom: 1.25rem !important;
}
.pauta-secao-titulo span,
.pauta-secao-titulo strong {
	display: inline-block;
	background: var(--wp--preset--color--manchete);
	color: #fff;
	padding: 0.25em 0.75em;
	margin-bottom: -0.4rem;
	font-weight: 700;
}

/* Lista compacta lateral */
.pauta-lista-compacta .wp-block-post-template > li {
	border-bottom: 1px solid var(--wp--preset--color--linha);
	padding-bottom: 0.9rem;
	margin-bottom: 0.9rem;
}
.pauta-lista-compacta .wp-block-post-template > li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
}

/* Imagens com proporção consistente nas grades */
.pauta-grade .wp-block-post-featured-image img,
.pauta-lista-compacta .wp-block-post-featured-image img {
	object-fit: cover;
}

/* Hover discreto nos títulos */
.wp-block-post-title a {
	text-decoration: none;
}
.wp-block-post-title a:hover,
.wp-block-post-title a:focus {
	color: var(--wp--preset--color--manchete);
}

/* Ticker de últimas notícias */
.pauta-ticker {
	border-top: 1px solid var(--wp--preset--color--linha);
	border-bottom: 1px solid var(--wp--preset--color--linha);
}
.pauta-ticker .wp-block-post-template {
	flex-wrap: nowrap;
	overflow: hidden;
	white-space: nowrap;
}
.pauta-ticker .wp-block-post-template > li {
	flex: 0 0 auto;
}
.pauta-ticker .wp-block-post-title {
	font-family: var(--wp--preset--font-family--corpo);
	font-size: 0.9rem;
	font-weight: 500;
	margin: 0;
}
.pauta-ticker .wp-block-post-title a::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--manchete);
	margin-right: 0.5em;
	vertical-align: middle;
}

/* Foco visível */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--wp--preset--color--manchete);
	outline-offset: 2px;
}

/* Legendas e conteúdo do post */
.wp-block-post-content figcaption {
	font-size: 0.85rem;
	color: var(--wp--preset--color--cinza);
}
.wp-block-post-content a {
	color: var(--wp--preset--color--manchete);
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
