/*
Theme Name: Manchete
Theme URI: https://example.com/manchete
Author: Carlos Marques
Description: Tema de portal de notícias e revista digital. Grade de destaques, faixa "Em alta", blocos por categoria com abas, ranking de mais lidas, anúncios configuráveis e leitura confortável no celular. Tudo ajustável em Aparência → Personalizar → Opções do Manchete.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manchete
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, theme-options
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--paper: #ffffff;
	--ink: #000000;
	--muted: #5a5f66;
	--line: #e3e5e8;
	--soft: #f4f5f7;
	--accent: #d4001a;
	--dark: #14161a;
	--on-accent: #ffffff;

	--font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

	/* Escala modular 1.25 sobre 16px */
	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-md: 1rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5625rem;
	--fs-2xl: 1.953rem;
	--fs-3xl: 2.441rem;
	--fs-4xl: 3.052rem;

	--container: 1200px;
	--gutter: 24px;
	--radius: 2px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 64px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: var(--fs-md);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-ui);
	font-stretch: 78%;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--ink);
	color: var(--paper);
}

.button,
.search-submit,
.form-submit .submit {
	display: inline-block;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-weight: 700;
	font-size: var(--fs-sm);
}

.button:hover,
.search-submit:hover,
.form-submit .submit:hover {
	background: var(--accent);
	color: var(--on-accent);
}

/* ==========================================================================
   Barra superior
   ========================================================================== */

.topbar {
	background: var(--dark);
	color: #c9ccd1;
	font-size: var(--fs-xs);
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 34px;
}

.topbar-date {
	font-weight: 600;
	color: #fff;
}

.topbar-nav ul {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar-nav a:hover {
	color: #fff;
}

.social-links {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
}

.topbar-social {
	margin-left: auto;
}

.topbar-social a:hover {
	color: #fff;
}

/* ==========================================================================
   Logo e anúncio do cabeçalho
   ========================================================================== */

.masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.site-title {
	margin: 0;
	font-family: var(--font-ui);
	font-stretch: 62%;
	font-weight: 900;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: 0.9;
	letter-spacing: -0.03em;
}

.site-title a:hover {
	color: var(--ink);
}

.site-description {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.branding {
	display: flex;
	align-items: center;
	gap: 16px;
}

.custom-logo {
	max-height: 90px;
	width: auto;
}

.branding-text .site-description {
	margin-top: 6px;
}

.ad-slot {
	text-align: center;
}

.ad-label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 0.6875rem;
}

.ad-header {
	flex: 0 1 728px;
}

.ad-home {
	margin: 0 0 48px;
	padding: 16px 0;
	background: var(--soft);
}

.ad-article {
	margin: 40px 0;
}

/* ==========================================================================
   Menu principal
   ========================================================================== */

.navbar {
	background: var(--ink);
	color: #fff;
	z-index: 50;
}

.navbar.is-sticky {
	position: sticky;
	top: 0;
}

.admin-bar .navbar.is-sticky {
	top: 32px;
}

.navbar-inner {
	display: flex;
	align-items: stretch;
	min-height: 52px;
}

.navbar-home,
.search-toggle {
	display: grid;
	place-items: center;
	width: 52px;
	border: 0;
	background: transparent;
	color: #fff;
}

.navbar-home {
	background: var(--accent);
	margin-right: 8px;
}

.navbar-home:hover {
	color: #fff;
	background: #000;
	box-shadow: inset 0 -4px 0 var(--accent);
}

.search-toggle {
	margin-left: auto;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
	background: #24272c;
}

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav > ul {
	display: flex;
	height: 100%;
}

.primary-nav li {
	position: relative;
}

.primary-nav > ul > li > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 14px;
	font-stretch: 85%;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #fff;
}

.primary-nav > ul > li > a:hover,
.primary-nav > ul > li:focus-within > a,
.primary-nav > ul > .current-menu-item > a,
.primary-nav > ul > .current-menu-ancestor > a,
.primary-nav > ul > .current-post-ancestor > a {
	box-shadow: inset 0 -4px 0 var(--accent);
	color: #fff;
}

.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 8px 0;
	background: var(--paper);
	color: var(--ink);
	border-top: 4px solid var(--accent);
	box-shadow: 0 12px 32px rgba(20, 22, 26, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .sub-menu .sub-menu {
	top: -12px;
	left: 100%;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 8px 20px;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.primary-nav .sub-menu .menu-item-has-children > a::after {
	display: none;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 0 16px 0 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-weight: 700;
}

.burger {
	display: grid;
	gap: 4px;
	width: 20px;
}

.burger i {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.header-search {
	background: #24272c;
	padding: 16px 0;
}

.header-search .search-form {
	max-width: 640px;
}

/* ==========================================================================
   Busca
   ========================================================================== */

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
}

.header-search .search-submit {
	background: var(--accent);
}

/* ==========================================================================
   Faixa "Em alta"
   ========================================================================== */

.ticker {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.ticker-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 46px;
}

.ticker-label {
	flex: none;
	padding: 4px 10px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: var(--fs-sm);
	font-weight: 800;
	font-stretch: 85%;
}

.ticker-viewport {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 24px;
	overflow: hidden;
}

.ticker-track {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ticker-track li {
	position: absolute;
	inset: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 24px;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.35s, transform 0.35s;
}

.ticker-track li.is-active {
	opacity: 1;
	transform: none;
}

.ticker-track li.is-leaving {
	opacity: 0;
	transform: translateY(-100%);
}

.ticker-controls {
	display: flex;
	gap: 4px;
}

.ticker-controls button {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.ticker-controls button:hover {
	border-color: var(--ink);
}

/* ==========================================================================
   Estrutura com barra lateral
   ========================================================================== */

.site-main {
	padding-top: 32px;
	padding-bottom: 64px;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 48px;
	align-items: start;
}

.no-sidebar .layout {
	grid-template-columns: minmax(0, 1fr);
}

.sidebar-inner {
	height: 100%;
}

/* Só o último widget acompanha a rolagem: a barra inteira raramente cabe na tela. */
.sidebar .widget:last-child {
	position: sticky;
	top: 76px;
}

.admin-bar .sidebar .widget:last-child {
	top: 108px;
}

.layout > .sidebar {
	align-self: stretch;
}

/* ==========================================================================
   Selo de categoria, metadados, imagens
   ========================================================================== */

.cat-label {
	display: inline-block;
	padding: 3px 8px 4px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: var(--fs-xs);
	font-weight: 700;
	line-height: 1.2;
}

.cat-label:hover {
	background: var(--ink);
	color: #fff;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	color: var(--muted);
	font-size: var(--fs-xs);
}

.meta-author a {
	color: var(--ink);
	font-weight: 700;
}

.meta-comments {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--soft);
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

a.thumb:hover img {
	transform: scale(1.04);
}

.thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 0, 0, 0.04) 10px 11px),
		var(--soft);
}

.format-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
}

/* ==========================================================================
   Destaques do topo
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 230px);
	gap: 4px;
	margin-bottom: 48px;
}

.hero-item {
	position: relative;
	overflow: hidden;
	background: var(--dark);
	color: #fff;
}

.hero-lead {
	grid-column: span 2;
	grid-row: span 2;
}

.hero-item .thumb {
	position: absolute;
	inset: 0;
}

.hero-item .thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 70%);
}

.hero-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hero-item:hover .thumb img {
	transform: scale(1.04);
}

.hero-body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 18px 20px;
	pointer-events: none;
}

.hero-body a {
	pointer-events: auto;
}

.hero-title {
	margin-top: 10px;
	font-size: var(--fs-lg);
	color: #fff;
}

.hero-title a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.hero-lead .hero-body {
	padding: 28px 32px;
}

.hero-lead .hero-title {
	margin-bottom: 14px;
	font-stretch: 70%;
	font-size: clamp(var(--fs-2xl), 3.6vw, var(--fs-4xl));
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.hero-lead .post-meta,
.hero-lead .meta-author a {
	color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Blocos de seção
   ========================================================================== */

.news-block {
	margin-bottom: 48px;
}

.block-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 24px;
	padding-top: 12px;
	border-top: 4px solid var(--ink);
}

.block-title {
	font-stretch: 72%;
	font-weight: 900;
	font-size: var(--fs-xl);
	line-height: 1;
}

.block-title a:hover {
	color: var(--accent);
}

.block-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
}

.block-tabs button {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: var(--fs-sm);
	font-weight: 600;
	box-shadow: inset 0 -2px 0 transparent;
}

.block-tabs button:hover {
	color: var(--ink);
}

.block-tabs button[aria-selected="true"] {
	color: var(--ink);
	box-shadow: inset 0 -2px 0 var(--accent);
}

.block-body {
	transition: opacity 0.2s;
}

.block-body.is-loading {
	opacity: 0.35;
	pointer-events: none;
}

.block-empty {
	color: var(--muted);
}

/* Cartão */

.card-media {
	position: relative;
	margin-bottom: 14px;
}

.card-media .thumb {
	aspect-ratio: 534 / 340;
}

.card-media .cat-label {
	position: absolute;
	left: 0;
	bottom: 0;
}

.card-title {
	margin-bottom: 8px;
	font-size: var(--fs-lg);
}

.card-excerpt {
	margin: 10px 0 0;
	color: var(--muted);
	font-family: var(--font-text);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Item de lista */

.list-item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 14px;
	align-items: start;
}

.list-item .thumb {
	aspect-ratio: 218 / 150;
}

.list-title {
	margin-bottom: 6px;
	font-stretch: 85%;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.25;
	letter-spacing: 0;
}

/* Formato: destaque + lista */

.lead-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.lead-list > .card .card-title {
	font-size: var(--fs-xl);
}

.list-stack {
	display: grid;
	gap: 20px;
	align-content: start;
}

/* Formato: grade de 3 */

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 24px;
}

.grid-3 .card-title {
	font-size: 1.125rem;
}

/* Formato: duas colunas */

.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.grid-2 .col {
	display: grid;
	gap: 20px;
	align-content: start;
}

.grid-2 .card {
	margin-bottom: 4px;
}

/* Linhas de arquivo / últimas */

.row-list {
	display: grid;
	gap: 32px;
}

.row-item {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 24px;
	align-items: start;
}

.row-item .card-media {
	margin: 0;
}

.row-title {
	margin-bottom: 10px;
	font-size: var(--fs-xl);
}

.archive-lead .card-media .thumb {
	aspect-ratio: 1068 / 640;
}

.archive-lead .card-title {
	font-stretch: 72%;
	font-size: var(--fs-3xl);
	line-height: 1.04;
}

.archive-lead .card-excerpt {
	font-size: 1.0625rem;
}

/* Paginação */

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	font-size: var(--fs-sm);
	font-weight: 700;
}

.pagination a.page-numbers:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.pagination .current {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.pagination .dots {
	border: 0;
}

.pagination-count {
	margin-left: auto;
	color: var(--muted);
	font-size: var(--fs-sm);
}

/* ==========================================================================
   Cabeçalho de arquivos e trilha
   ========================================================================== */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	color: var(--muted);
	font-size: var(--fs-xs);
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.page-header {
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.page-title {
	font-stretch: 68%;
	font-weight: 900;
	font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
	line-height: 1;
	letter-spacing: -0.02em;
}

.page-desc {
	max-width: 68ch;
	margin-top: 12px;
	color: var(--muted);
	font-family: var(--font-text);
	font-size: 1.0625rem;
}

.page-desc p:last-child {
	margin: 0;
}

.subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.subcats a {
	display: block;
	padding: 6px 12px;
	border: 1px solid var(--line);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.subcats a:hover {
	border-color: var(--accent);
}

/* ==========================================================================
   Matéria
   ========================================================================== */

.article-header {
	margin-bottom: 28px;
}

.article-title {
	margin: 14px 0 16px;
	font-stretch: 68%;
	font-weight: 900;
	font-size: clamp(2.1rem, 5.2vw, 3.6rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.article-dek {
	max-width: 62ch;
	margin-bottom: 22px;
	color: #2f3338;
	font-family: var(--font-text);
	font-size: 1.3125rem;
	line-height: 1.45;
}

.article-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.article-byline .avatar {
	border-radius: 50%;
}

.article-byline .post-meta {
	font-size: var(--fs-sm);
}

.share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.share a,
.share button {
	display: block;
	padding: 7px 14px;
	border: 0;
	border-radius: var(--radius);
	color: #fff;
	font-size: var(--fs-xs);
	font-weight: 700;
}

.share a:hover,
.share button:hover {
	color: #fff;
	filter: brightness(0.88);
}

.share-whatsapp { background: #128c4b; }
.share-facebook { background: #1b4fd1; }
.share-x { background: #000; }
.share-telegram { background: #1f7fb8; }
.share-copy { background: var(--muted); }

.article-figure {
	margin: 0 0 32px;
}

.article-figure img {
	width: 100%;
}

.article-figure figcaption,
.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: var(--fs-xs);
}

.entry-content {
	max-width: 70ch;
	font-family: var(--font-text);
	font-size: 1.1875rem;
	line-height: 1.7;
}

.article-wide .entry-content,
.article-wide .article-header {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.15em;
}

.entry-content h2 {
	margin-top: 1.6em;
	font-size: var(--fs-2xl);
}

.entry-content h3 {
	margin-top: 1.4em;
	font-size: var(--fs-xl);
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--ink);
}

.entry-content > p:first-child::first-letter {
	float: left;
	margin: 0.08em 0.1em 0 0;
	font-family: var(--font-ui);
	font-stretch: 62%;
	font-weight: 900;
	font-size: 4.1em;
	line-height: 0.8;
	color: var(--accent);
}

.entry-content blockquote {
	margin-left: 0;
	padding-left: 24px;
	border-left: 4px solid var(--accent);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.45;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-family: var(--font-ui);
	font-size: var(--fs-sm);
	font-style: normal;
}

.entry-content img {
	height: auto;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-ui);
	font-size: var(--fs-sm);
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content .alignwide {
	max-width: none;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.entry-content .aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.page-links {
	font-family: var(--font-ui);
	font-weight: 700;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 36px 0;
}

.tags-label {
	margin-right: 6px;
	font-weight: 800;
	font-size: var(--fs-sm);
}

.article-tags a {
	padding: 5px 10px;
	background: var(--soft);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.article-tags a:hover {
	background: var(--ink);
	color: #fff;
}

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 40px 0;
	padding: 24px;
	background: var(--soft);
}

.author-box .avatar {
	flex: none;
	border-radius: 50%;
}

.author-name {
	margin-bottom: 6px;
	font-stretch: 80%;
	font-weight: 800;
	font-size: var(--fs-lg);
}

.author-box p:last-child {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 40px 0 48px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.post-navigation .nav-next {
	text-align: right;
}

.nav-label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.nav-title {
	font-stretch: 85%;
	font-weight: 800;
	line-height: 1.25;
}

/* ==========================================================================
   Comentários
   ========================================================================== */

.comments-area {
	margin-top: 48px;
}

.comments-area .block-title {
	margin-bottom: 24px;
}

#reply-title {
	padding-top: 12px;
	border-top: 4px solid var(--ink);
}

#reply-title small {
	margin-left: 12px;
	font-size: var(--fs-sm);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 32px;
}

.comment-body {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.comment-body .avatar {
	flex: none;
	border-radius: 50%;
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	margin-bottom: 6px;
}

.comment-head time {
	color: var(--muted);
	font-size: var(--fs-xs);
}

.comment-text {
	font-family: var(--font-text);
	font-size: 1.0625rem;
}

.comment-awaiting {
	color: var(--accent);
	font-size: var(--fs-sm);
}

.comment-reply-link {
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--accent);
}

.comment-respond {
	margin-top: 40px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.widget {
	margin-bottom: 44px;
}

.sidebar .widget > .block-title,
.sidebar .widget .wp-block-heading,
.sidebar .wp-block-search__label {
	display: block;
	margin: 0 0 18px;
	padding-top: 12px;
	border-top: 4px solid var(--ink);
	font-family: var(--font-ui);
	font-stretch: 72%;
	font-weight: 900;
	font-size: var(--fs-xl);
	line-height: 1;
}

/* Widgets de bloco do WordPress (Pesquisar, Posts recentes, Comentários etc.) */
.widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.widget .wp-block-search__input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.widget .wp-block-search__button {
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-weight: 700;
	font-size: var(--fs-sm);
}

.widget .wp-block-search__button:hover {
	background: var(--accent);
}

.sidebar .wp-block-latest-posts a,
.sidebar .wp-block-archives a,
.sidebar .wp-block-page-list a {
	font-weight: 700;
	line-height: 1.3;
}

.sidebar .wp-block-latest-comments {
	margin: 0;
	padding: 0;
}

.sidebar .wp-block-latest-comments li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-sm);
}

.sidebar .wp-block-latest-comments__comment-author,
.sidebar .wp-block-latest-comments__comment-link {
	font-weight: 700;
}

.sidebar .wp-block-archives li,
.sidebar .wp-block-page-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-sm);
}

.site-footer .wp-block-heading {
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
	color: #fff;
	font-stretch: 72%;
	font-weight: 900;
	font-size: var(--fs-lg);
}

.sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar .widget_categories li,
.sidebar .widget_archive li,
.sidebar .widget_pages li,
.sidebar .widget_meta li,
.sidebar .widget_recent_entries li,
.sidebar .widget_recent_comments li,
.sidebar .wp-block-categories li,
.sidebar .wp-block-latest-posts li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
	font-size: var(--fs-sm);
}

.sidebar .widget li {
	flex-wrap: wrap;
}

.sidebar .widget .children {
	width: 100%;
	margin: 10px 0 -10px;
	padding-left: 14px;
	border-top: 1px solid var(--line);
}

.sidebar .widget .children li:last-child {
	border-bottom: 0;
}

.widget-posts {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.style-ranked {
	counter-reset: rank;
	gap: 0;
}

.style-ranked > li {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 8px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	counter-increment: rank;
}

.style-ranked > li::before {
	content: counter(rank);
	font-stretch: 62%;
	font-weight: 900;
	font-size: 2.75rem;
	line-height: 0.85;
	color: var(--accent);
}

.style-ranked .list-item {
	display: block;
}

.style-ranked .list-title {
	font-size: 1rem;
}

.social-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.social-buttons a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 700;
}

.social-buttons a:hover {
	color: #fff;
	filter: brightness(0.88);
}

.social-facebook { background: #1b4fd1; }
.social-instagram { background: #c1306c; }
.social-x { background: #000; }
.social-youtube { background: #e00000; }
.social-tiktok { background: #25292e; }
.social-whatsapp { background: #128c4b; }

.about-widget .custom-logo {
	margin-bottom: 14px;
}

.about-widget .about-name {
	margin-bottom: 12px;
	color: inherit;
	font-stretch: 62%;
	font-weight: 900;
	font-size: var(--fs-2xl);
	line-height: 1;
}

.about-widget p {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.site-footer .about-widget p {
	color: #a9adb3;
}

.widget .search-form {
	margin: 0;
}

.tagcloud a,
.wp-block-tag-cloud a {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 5px 10px;
	background: var(--soft);
	font-size: var(--fs-xs) !important;
	font-weight: 600;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
	background: var(--dark);
	color: #c9ccd1;
	font-size: var(--fs-sm);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 16px;
}

.footer-title {
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
	color: #fff;
	font-stretch: 72%;
	font-weight: 900;
	font-size: var(--fs-lg);
}

.site-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .widget li {
	padding: 6px 0;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .list-title,
.site-footer .meta-author a {
	color: #fff;
}

.site-footer .post-meta {
	color: #8d9299;
}

.site-footer .style-ranked > li,
.site-footer .widget_categories li {
	border-color: #2b2e34;
}

.footer-brand {
	border-top: 1px solid #2b2e34;
}

.footer-brand-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 40px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.footer-logo .site-title {
	color: #fff;
	font-size: 2.6rem;
}

.footer-logo .custom-logo {
	max-height: 60px;
}

.footer-about p {
	max-width: 60ch;
	margin: 0 0 6px;
	color: #a9adb3;
}

.footer-social a {
	width: 38px;
	height: 38px;
	background: #24272c;
	color: #fff;
}

.footer-social a:hover {
	background: var(--accent);
}

.footer-bottom {
	background: #0c0d10;
	color: #8d9299;
	font-size: var(--fs-xs);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	min-height: 52px;
}

.copyright {
	margin: 0;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
}

.to-top:hover {
	background: var(--accent);
}

/* ==========================================================================
   404 e vazio
   ========================================================================== */

.error-404 > p,
.error-404 > .page-title {
	max-width: 760px;
}

.error-code {
	margin: 0;
	font-stretch: 62%;
	font-weight: 900;
	font-size: clamp(7rem, 22vw, 14rem);
	line-height: 0.8;
	letter-spacing: -0.04em;
	color: var(--accent);
}

.error-404 .page-title {
	margin: 20px 0 12px;
}

.error-404 .search-form {
	max-width: 560px;
	margin: 24px 0;
}

.error-404 .news-block {
	margin-top: 56px;
}

.no-results .search-form {
	max-width: 520px;
	margin-top: 16px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1080px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 32px;
	}

	.ad-header {
		display: none;
	}

	.row-item {
		grid-template-columns: 240px 1fr;
	}
}

@media (max-width: 900px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar-inner {
		position: static;
	}

	.hero {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 380px repeat(2, 200px);
	}

	.hero-lead {
		grid-column: span 2;
		grid-row: auto;
	}

	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand-inner {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	/* Menu vira gaveta */
	.menu-toggle {
		display: flex;
	}

	.navbar-home {
		display: none;
	}

	.primary-nav {
		position: fixed;
		top: var(--nav-top, 52px);
		right: 0;
		bottom: 0;
		left: 0;
		overflow-y: auto;
		padding: 12px 0 40px;
		background: var(--ink);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0.25s;
	}

	.primary-nav.is-open {
		transform: none;
		visibility: visible;
	}

	.primary-nav > ul {
		display: block;
		height: auto;
	}

	.primary-nav > ul > li > a {
		padding: 14px var(--gutter);
		font-size: var(--fs-lg);
		border-bottom: 1px solid #24272c;
	}

	.primary-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 8px;
		background: transparent;
		color: #fff;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .sub-menu a {
		padding: 10px var(--gutter) 10px calc(var(--gutter) + 16px);
		color: #c9ccd1;
	}

	.primary-nav .menu-item-has-children > a::after {
		display: none;
	}

	body.menu-open {
		overflow: hidden;
	}
}

@media (max-width: 680px) {
	:root {
		--gutter: 16px;
	}

	.topbar-nav,
	.topbar-social {
		display: none;
	}

	.topbar-date {
		white-space: nowrap;
	}

	.masthead-inner {
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.hero {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 360px repeat(2, 190px);
		margin-right: calc(var(--gutter) * -1);
		margin-left: calc(var(--gutter) * -1);
	}

	.hero-lead {
		grid-column: span 2;
	}

	.hero-item:not(.hero-lead) .hero-body {
		padding: 12px;
	}

	.hero-item:not(.hero-lead) .hero-title {
		font-size: 0.9375rem;
	}

	.hero-lead .hero-body {
		padding: 20px;
	}

	.lead-list,
	.grid-2,
	.grid-3 {
		grid-template-columns: 1fr;
	}

	.grid-3 .card {
		display: grid;
		grid-template-columns: 120px 1fr;
		gap: 0 14px;
	}

	.grid-3 .card .card-media {
		grid-row: span 2;
		margin: 0;
	}

	.grid-3 .card-title {
		font-size: 1rem;
	}

	.row-item {
		grid-template-columns: 120px 1fr;
		gap: 14px;
	}

	.row-title {
		font-size: 1.0625rem;
	}

	.row-item .card-excerpt,
	.row-item .cat-label {
		display: none;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.entry-content {
		font-size: 1.125rem;
	}

	.author-box {
		flex-direction: column;
	}

	.pagination-count {
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .navbar.is-sticky {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .navbar.is-sticky {
		top: 0;
	}
}

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

	html {
		scroll-behavior: auto;
	}
}

@media print {
	.topbar,
	.navbar,
	.ticker,
	.sidebar,
	.share,
	.ad-slot,
	.comments-area,
	.related,
	.site-footer,
	.to-top {
		display: none !important;
	}

	.layout {
		display: block;
	}
}
