/*
Theme Name: O Malagueta
Theme URI: https://omalagueta.com.br
Author: O Malagueta
Author URI: https://omalagueta.com.br
Description: Tema WordPress premium com suporte completo a recursos modernos do WordPress e Tailwind CSS carregado diretamente no head, sem dependência de Node.js.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omalagueta
Tags: custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, post-formats, responsive-embeds, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Compatibilidade essencial com classes nativas do WordPress / Gutenberg
   ========================================================================== */

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-height: 3.5rem;
	max-width: 100%;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 3.5rem;
	max-width: 260px;
	object-fit: contain;
}

.site-branding-dark .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-height: 100%;
	max-width: 100%;
}

.site-branding-dark .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 2.25rem;
	max-width: 145px;
	object-fit: contain;
}

.site-branding-mobile .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-height: 2.5rem;
	max-width: 100%;
}

.site-branding-mobile .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 2.5rem;
	max-width: 170px;
	object-fit: contain;
}

.site-branding-footer .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-height: 3.25rem;
	max-width: 100%;
}

.site-branding-footer .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 3.25rem;
	max-width: 220px;
	object-fit: contain;
}

/* Barra de rolagem discreta na faixa de editorias no mobile */
.editorias-scroll {
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
	-webkit-overflow-scrolling: touch;
}

.editorias-scroll::-webkit-scrollbar {
	height: 4px;
}

.editorias-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.editorias-scroll::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 9999px;
}

@media (min-width: 1024px) {
	.editorias-scroll {
		scrollbar-width: none;
	}
	.editorias-scroll::-webkit-scrollbar {
		display: none;
	}
}

.omalagueta-pagination .omalagueta-page-nav {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	height: 2.25rem;
	padding-inline: 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #374151;
	white-space: nowrap;
	text-decoration: none;
}

.omalagueta-pagination .omalagueta-page-nav svg {
	display: inline-block;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #ffffff;
	border-radius: 0.375rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	clip: auto !important;
	clip-path: none;
	color: #111827;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin-inline-end: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-inline-start: 1.5rem;
	margin-bottom: 1rem;
}

.aligncenter {
	clear: both;
	display: block;
	margin-inline: auto;
	margin-bottom: 1.5rem;
}

.alignwide {
	max-width: 1400px;
	margin-inline: auto;
}

.alignfull {
	width: 100%;
	max-width: 100%;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5rem;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: #6b7280;
	margin-top: 0.5rem;
	text-align: center;
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

/* Tipografia base para conteúdo editorial gerado pelo editor clássico ou blocos */
.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content h2 {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	margin-top: 2.25rem;
	color: #111827;
}

.entry-content h3 {
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 1.75rem;
	color: #111827;
}

.entry-content p {
	line-height: 1.75;
	color: #374151;
}

.entry-content a {
	color: var(--color-primary, #b91c1c);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	opacity: 0.85;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.5rem;
	color: #374151;
}

.entry-content ul {
	list-style-type: disc;
}

.entry-content ol {
	list-style-type: decimal;
}

.entry-content li + li {
	margin-top: 0.375rem;
}

.entry-content blockquote {
	border-inline-start: 4px solid var(--color-primary, #b91c1c);
	padding-inline-start: 1.25rem;
	font-style: italic;
	color: #4b5563;
}

.entry-content img {
	height: auto;
	max-width: 100%;
	border-radius: 0.5rem;
}

/* Tipografia jornalística refinada para o corpo das matérias (estilo grande portal) */
.single-editorial-body {
	font-size: 1.0625rem;
	line-height: 1.82;
	color: #1f2937;
}

@media (min-width: 640px) {
	.single-editorial-body {
		font-size: 1.125rem;
	}
}

.single-editorial-body > * + * {
	margin-top: 1.35rem;
}

.single-editorial-body p {
	line-height: 1.82;
	color: #1f2937;
}

.single-editorial-body h2 {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.25;
	color: #111827;
	border-left: 4px solid var(--color-primary, #cc1014);
	padding-left: 0.75rem;
	margin-top: 2.5rem;
}

.single-editorial-body blockquote {
	border-inline-start: 4px solid var(--color-primary, #cc1014);
	background-color: #f9fafb;
	padding: 1rem 1.25rem;
	border-radius: 0 0.5rem 0.5rem 0;
	font-size: 1.0625rem;
	font-style: italic;
	color: #374151;
}

/* Formulário e lista de comentários */
.comment-form label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	color: #111827;
	background-color: #f9fafb;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	background-color: #ffffff;
	border-color: #cc1014;
}

.comment-list .comment-body {
	padding-top: 1rem;
}

.comment-list .comment-author img {
	border-radius: 9999px;
	display: inline-block;
	margin-right: 0.5rem;
}

/* --------------------------------------------------------------------------
 * Acessibilidade: Foco visível por teclado e preferência de movimento reduzido
 * -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #cc1014;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
