/*
Theme Name: Edição Extra
Theme URI: https://jornaledicaoextra.com/
Author: Kadu
Description: Tema de jornal sob medida para o Jornal Edição Extra — leve, pensado para o celular, com foto de destaque automática, espaços de anúncio e painel simplificado para a redação.
Version: 1.3.10
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edicao-extra
*/

/* ==========================================================================
   1. Fontes (hospedadas no próprio site — licença OFL em assets/fonts)
   ========================================================================== */
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
	--ee-accent: #D91A22;
	--ee-accent-dark: #9E0C24;
	--ink: #141414;
	--ink-2: #33302C;
	--muted: #5E5952;
	--line: #E3DFD8;
	--paper: #F5F3EF;
	--bg: #FFFFFF;
	--wa: #0E7A3E;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: 16px;
	--radius: 6px;
	--header-h: 60px;
}
@supports (color: color-mix(in srgb, red, blue)) {
	:root { --ee-accent-dark: color-mix(in srgb, var(--ee-accent) 78%, #000); }
}
@media (min-width: 760px) {
	:root { --gutter: 24px; }
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.drawer-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ee-accent); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--ee-accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { flex: 0 0 auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	position: fixed !important; top: 8px; left: 8px; z-index: 1000;
	padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.site-main { display: block; padding-bottom: 48px; outline: none; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
	font-family: var(--sans); font-weight: 700; font-size: 16px;
}
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; filter: brightness(1.1); }

/* ==========================================================================
   4. Topo
   ========================================================================== */
.topbar { background: var(--ink); color: #D8D4CE; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__date { white-space: nowrap; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__cta { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.topbar__cta:hover { color: #fff; text-decoration: underline; }
.topbar .social a { color: #D8D4CE; }
.topbar .social a:hover { color: #fff; }
@media (max-width: 759px) { .topbar { display: none; } }

.social { display: flex; align-items: center; gap: 4px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }

.masthead { background: var(--bg); position: relative; z-index: 40; }
.masthead__in {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	min-height: var(--header-h);
}
.masthead__in > .icon-btn:last-child { justify-self: end; }
.masthead__tagline { display: none; }
.icon-btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-width: 44px; min-height: 44px; padding: 0 10px;
	background: none; border: 0; border-radius: var(--radius);
	font-family: var(--sans); font-weight: 600; font-size: 14px;
	text-transform: uppercase; letter-spacing: .05em;
}
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.icon-btn__label { display: none; }
@media (min-width: 760px) { .icon-btn__label { display: inline; } }

/* Marca */
.brand { margin: 0; line-height: 1; font-size: inherit; font-weight: inherit; }
.brand__link { display: inline-flex; align-items: center; }
.brand__link:hover { color: inherit; }
/* Logo: altura fixa (ajustável no painel) e largura limitada — nunca "grandão" */
.logo { display: block; width: auto; height: var(--logo-h-m, 30px); max-width: min(62vw, 240px); object-fit: contain; object-position: center; }
.logo--mobile { display: none; }
@media (max-width: 759px) {
	.logo--main.logo--has-mobile { display: none; }
	.logo--mobile { display: block; }
}
.brand--drawer .logo { height: 30px; object-position: left center; }
.brand--footer .logo { height: 72px; max-width: 260px; object-position: left center; }
.brand--mini { display: none; }
.wordmark {
	display: inline-flex; align-items: stretch;
	font-family: var(--sans); font-weight: 800; text-transform: uppercase;
	font-size: 22px; letter-spacing: -.01em; line-height: 1;
	font-stretch: 85%;
}
.wordmark__a { background: var(--ee-accent); color: #fff; padding: .2em .32em .16em; }
.wordmark__b { color: var(--ink); padding: .2em .32em .16em; border: 2px solid var(--ink); border-left: 0; }

@media (min-width: 760px) {
	:root { --header-h: 84px; }
	.logo { height: var(--logo-h, 48px); max-width: 420px; }
	.wordmark { font-size: 34px; }
	.masthead__tagline {
		display: block; margin: 8px 0 12px; text-align: center;
		font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px;
	}
}

/* Celular: topo fixo ao rolar */
@media (max-width: 999px) {
	.masthead { position: sticky; top: 0; border-bottom: 1px solid var(--line); }
	.admin-bar .masthead { top: 46px; }
}
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }

/* Busca do topo */
.search-panel { border-top: 1px solid var(--line); padding: 12px 0; background: var(--bg); }
.search-form { display: flex; align-items: stretch; max-width: 640px; margin-inline: auto; }
.search-form__input {
	flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px;
	border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
	background: #fff; font-size: 17px; color: var(--ink);
}
.search-form__input:focus { outline: none; border-color: var(--ee-accent); }
.search-form__btn {
	flex: 0 0 56px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.search-form__btn:hover { background: var(--ee-accent); }

/* Editorias */
.sections { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 3px solid var(--ink); z-index: 30; }
.sections__in { position: relative; }
.sections__list {
	display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
	margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.sections__list::-webkit-scrollbar { display: none; }
.sections__list li { flex: 0 0 auto; scroll-snap-align: start; }
.sections__list a {
	display: flex; align-items: center; min-height: 46px; padding: 0 12px;
	font-weight: 600; font-size: 15px; white-space: nowrap; position: relative;
}
.sections__list .current-menu-item > a,
.sections__list .current-category-ancestor > a,
.sections__list a:hover { color: var(--ee-accent); }
.sections__list .current-menu-item > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--ee-accent);
}
@media (max-width: 999px) {
	.sections__in::after { /* indica que dá para deslizar */
		content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 32px;
		background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none;
	}
}
@media (min-width: 1000px) {
	.sections { position: sticky; top: 0; }
	.admin-bar .sections { top: 32px; }
	.sections__list { justify-content: center; flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
	.sections__list a { min-height: 50px; padding: 0 14px; font-size: 15.5px; }
}

/* Gaveta (menu) */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .55); }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: min(380px, 88vw); background: var(--bg); overflow-y: auto;
	padding: 12px var(--gutter) 32px; display: flex; flex-direction: column; gap: 20px;
	animation: ee-slide .22s ease-out;
}
@keyframes ee-slide { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer__panel { animation: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head .wordmark { font-size: 20px; }
.drawer__list a {
	display: flex; align-items: center; min-height: 52px;
	border-bottom: 1px solid var(--line);
	font-family: var(--serif); font-size: 21px; font-weight: 600;
}
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ==========================================================================
   5. Publicidade
   ========================================================================== */
.ad { margin-block: 20px; text-align: center; font-family: var(--sans); line-height: 1.4; }
.ad__label {
	display: block; margin-bottom: 6px;
	font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ad__track { display: grid; justify-items: center; gap: 16px; }
.ad__item { width: 100%; }
.ad__item > *, .ad .wp-block-image { margin: 0 auto; }
.ad img { display: block; margin-inline: auto; width: 100%; height: auto; }
.ad a { display: block; }

/* Larguras máximas por formato (banner nunca estica além do tamanho certo) */
.ad--anuncio-topo img { max-width: 100%; }
.ad--anuncio-topo-celular img { max-width: 400px; }
.ad--squares img, .ad--anuncio-materia img, .ad--anuncio-lateral img { max-width: 336px; }

/* Topo: versão do computador x celular */
.ad-top { margin-block: 14px 4px; }
.ad-top .ad { margin: 0 auto; }
@media (max-width: 759px) {
	.ad--only-desktop { display: none; }
	.ad-top { margin-block: 10px 0; }
}
@media (min-width: 760px) { .ad--only-mobile { display: none; } }

/* Faixa de quadrados da home */
.ad-band { background: var(--paper); margin-top: 36px; padding-block: 14px 22px; border-block: 1px solid var(--line); }
.ad-band .ad { margin-block: 0; }
@media (min-width: 760px) {
	.ad--squares .ad__track { grid-template-columns: repeat(auto-fit, minmax(0, 336px)); justify-content: center; gap: 24px; }
}

/* Meio da matéria: quadrado centralizado entre fios */
.entry-content .ad { margin: 32px 0; padding: 14px 0 18px; border-block: 1px solid var(--line); }
.entry-content .ad figure, .entry-content .ad .wp-block-image, .entry-content .ad p { margin: 0 auto; }
.entry-content .ad img { border-radius: 0; max-height: none; }

/* Lateral: na home e nas editorias acompanha a rolagem */
@media (min-width: 1000px) {
	.layout:not(.layout--article) .sidebar { align-self: stretch; }
	.layout:not(.layout--article) .sidebar > .ad:first-child { position: sticky; top: 72px; }
	.admin-bar .layout:not(.layout--article) .sidebar > .ad:first-child { top: 104px; }
}

/* Carrossel: todos os banners na mesma célula desde o primeiro desenho da
   página (a altura não "pula" quando o JavaScript carrega) */
.ad[data-rotate="always"] .ad__track { grid-template-columns: minmax(0, 1fr); }
.ad[data-rotate="always"] .ad__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ad[data-rotate="always"] .ad__item:first-child,
.ad[data-rotate="always"] .ad__item.is-active { opacity: 1; visibility: visible; }
.ad[data-rotate="always"].is-carousel .ad__item:first-child:not(.is-active) { opacity: 0; visibility: hidden; }
@media (max-width: 759px) {
	.ad[data-rotate="mobile"] .ad__track { grid-template-columns: minmax(0, 1fr); }
	.ad[data-rotate="mobile"] .ad__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
	.ad[data-rotate="mobile"] .ad__item:first-child,
	.ad[data-rotate="mobile"] .ad__item.is-active { opacity: 1; visibility: visible; }
	.ad[data-rotate="mobile"].is-carousel .ad__item:first-child:not(.is-active) { opacity: 0; visibility: hidden; }
}
@media (min-width: 760px) { .ad[data-rotate="mobile"] .ad__dots { display: none; } }
.ad__dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.ad__dot {
	width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.ad__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C9C3BA; transition: background .2s, transform .2s; }
.ad__dot[aria-current="true"]::before { background: var(--ee-accent); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .ad[data-rotate] .ad__item { transition: none; } }

/* "Anuncie aqui" (lateral vazia) */
.ad--house a {
	display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
	padding: 28px 20px; border: 2px dashed var(--line); border-radius: var(--radius);
	color: var(--ink-2); background: var(--paper);
}
.ad--house a:hover { border-color: var(--ee-accent); color: var(--ink); }
.ad--house .icon { color: var(--ee-accent); }
.ad--house strong { font-size: 20px; font-family: var(--serif); color: var(--ink); }
.ad--house span { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   6. Cards
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.005em; }
.card__title a { overflow-wrap: anywhere; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* card inteiro clicável */
.card:hover .card__title a { color: var(--ee-accent); }
.card__deck { font-family: var(--serif); color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__author { font-weight: 600; color: var(--ink-2); }

.kicker {
	position: relative; z-index: 2; align-self: flex-start;
	font-family: var(--sans); font-size: 12.5px; font-weight: 700;
	letter-spacing: .07em; text-transform: uppercase; color: var(--ee-accent);
}
a.kicker:hover { color: var(--ink); }
.kicker--sponsored { background: #FFF2CC; color: #6B4A00; padding: 3px 8px; border-radius: 3px; letter-spacing: .05em; }

.card__media {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	background: var(--paper); border-radius: 4px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card__media img { transition: none; } .card:hover .card__media img { transform: none; } }

/* Imagem padrão (marca) */
.ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 64px; background: var(--ink);
	font-family: var(--sans); font-weight: 800; text-transform: uppercase; font-stretch: 85%;
	font-size: 12px; line-height: 1; container-type: inline-size;
}
@supports (font-size: 1cqw) {
	.ph > span { font-size: clamp(10px, 8cqw, 30px); }
}
.ph__a { background: var(--ee-accent); color: #fff; padding: .25em .35em; }
.ph__b { color: #fff; padding: .25em .35em; border: 2px solid #fff; border-left: 0; }

/* Manchete */
.card--lead { gap: 16px; }
.card--lead .card__title { font-size: clamp(27px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.015em; }
.card--lead .card__deck { font-size: clamp(17px, 1.7vw, 20px); }
.card--lead .card__media { border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 760px) { .card--lead .card__media { margin-inline: 0; border-radius: 4px; } }

/* Lista (foto à esquerda) */
.card--row { flex-direction: row; align-items: flex-start; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.card--row .card__media { flex: 0 0 116px; aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 17.5px; line-height: 1.28; }
.card--row .kicker { font-size: 11.5px; }
@media (min-width: 760px) {
	.card--row { gap: 20px; }
	.card--row .card__media { flex-basis: 200px; aspect-ratio: 3 / 2; }
	.card--row .card__title { font-size: 20px; }
}
.sidebar .card--row .card__media { flex-basis: 96px; aspect-ratio: 1; }
.sidebar .card--row .card__title { font-size: 16px; }
.sidebar .card--row { padding-block: 12px; }

/* Opinião (sem foto) */
.card--text { padding-top: 14px; border-top: 3px solid var(--ink); }
.card--text .card__title { font-size: 20px; }

/* ==========================================================================
   7. Seções
   ========================================================================== */
.sec-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 8px;
}
.sec-title {
	font-family: var(--sans); font-size: 15px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .08em;
}
.sec-title a:hover { color: var(--ee-accent); }
.sec-title::before {
	content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px;
	background: var(--ee-accent); vertical-align: 1px;
}
.sec-more {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
	font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap;
}

/* Home: manchetes */
.home-lead { display: grid; gap: 24px; padding-top: 20px; }
.home-lead__side { display: grid; gap: 0; }
@media (max-width: 759px) {
	.home-lead__side .card--stack { flex-direction: row; align-items: flex-start; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
	.home-lead__side .card--stack .card__media { flex: 0 0 116px; aspect-ratio: 4 / 3; }
	.home-lead__side .card--stack .card__title { font-size: 17.5px; line-height: 1.28; }
	.home-lead__side .card--stack:first-child { border-top: 1px solid var(--line); }
}
@media (min-width: 760px) {
	.home-lead { padding-top: 28px; }
	.home-lead__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
	.home-lead__side .card__title { font-size: 18px; }
}
@media (min-width: 1000px) {
	.home-lead { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: start; }
	.home-lead__side { gap: 24px 20px; }
	.home-lead__side .card__title { font-size: 17px; }
}

/* Coluna principal + lateral */
.layout { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 1000px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
	.layout--article { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; }
	.sidebar { align-self: start; }
	.sidebar > .ad:first-child { margin-top: 0; }
}
.list > .card--row:last-child { border-bottom: 0; }
.list > .card--lead { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* Home: blocos de editoria */
.home-sec { margin-top: 44px; }
.home-sec__grid { display: grid; gap: 0; }
.home-sec__grid > .card--stack { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
	.home-sec__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 36px; }
	.home-sec__grid > .card--stack { grid-row: span 3; border-bottom: 0; padding-top: 12px; }
	.home-sec__grid > .card--stack .card__title { font-size: 26px; line-height: 1.15; }
	.home-sec__grid > .card--row .card__media { flex-basis: 150px; }
	.home-sec__grid > .card--row .card__title { font-size: 18px; }
	.home-sec__grid > .card--row:last-child { border-bottom: 0; }
}
.home-sec--opinion .home-sec__grid { gap: 24px; padding-top: 8px; }
.home-sec--opinion .sec-head { border-top-color: var(--ee-accent); }
@media (min-width: 760px) {
	.home-sec--opinion .home-sec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.home-sec--opinion .home-sec__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Grade de 4 (Leia também, 404) */
.related { margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 8px; }
.grid-4 .card__title { font-size: 16.5px; }
@media (min-width: 1000px) {
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
	.grid-4 .card__title { font-size: 18px; }
}

/* Cabeçalho de páginas (editoria, busca, 404) */
.page-head { padding-top: 32px; padding-bottom: 8px; }
.page-head__kicker {
	font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ee-accent);
	margin-bottom: 6px;
}
.page-head__title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -.015em; }
.page-head__desc { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.page-head__search { margin-top: 20px; max-width: 640px; }
.page-head__search .search-form { margin: 0; }
.page-head--center { text-align: center; }
.page-head--center .page-head__desc, .page-head--center .page-head__search { margin-inline: auto; }
.page-head--center .search-form { margin-inline: auto; }
.page-head--plain { padding-inline: 0; }
.empty { padding: 32px 0; font-size: 17px; color: var(--ink-2); }

/* Paginação */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--ee-accent); }
.pagination .dots { border: 0; }

/* ==========================================================================
   8. Matéria
   ========================================================================== */
.layout--article { margin-top: 24px; }
@media (min-width: 760px) { .layout--article { margin-top: 36px; } }
.article__head { display: flex; flex-direction: column; gap: 14px; }
.article__title {
	font-family: var(--serif); font-weight: 700;
	font-size: clamp(29px, 5vw, 46px); line-height: 1.1; letter-spacing: -.015em;
	overflow-wrap: anywhere;
}
.article__deck { font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); }
.article__meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	margin-top: 6px; padding-block: 12px; border-block: 1px solid var(--line);
	font-size: 14px; color: var(--muted);
}
.article__meta > p { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.article__author { font-weight: 700; color: var(--ink); }
.article__read { display: inline-flex; align-items: center; gap: 4px; }
.article__sponsor-note { font-size: 14px; background: #FFF2CC; color: #6B4A00; padding: 10px 14px; border-radius: var(--radius); }

.article__media { margin: 24px calc(var(--gutter) * -1) 0; }
.article__media img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--paper); }
.article__media figcaption, .entry-content figcaption {
	margin-top: 8px; padding-inline: var(--gutter);
	font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--muted); text-align: left;
}
@media (min-width: 760px) {
	.article__media { margin-inline: 0; }
	.article__media figcaption { padding-inline: 0; }
	.article__media img { border-radius: 4px; }
}

/* Texto da matéria */
.entry-content {
	margin-top: 28px;
	font-family: var(--serif); font-size: 18.5px; line-height: 1.7; color: var(--ink);
	overflow-wrap: break-word;
}
@media (min-width: 760px) { .entry-content { font-size: 19.5px; } }
.entry-content > * { margin: 0 0 1.15em; }
.entry-content a { color: var(--ee-accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--ee-accent); }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.01em;
}
.entry-content h2 { font-size: 1.35em; }
.entry-content h3 { font-size: 1.18em; }
.entry-content strong { font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--ee-accent); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 0 0 0 20px; border-left: 4px solid var(--ee-accent);
	font-size: 1.12em; font-style: italic; color: var(--ink-2);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.entry-content figure, .entry-content .wp-block-image { margin: 1.8em 0; }
.entry-content img { border-radius: 3px; }
.entry-content .wp-block-image img, .entry-content p > img, .entry-content p > a > img {
	width: auto; max-width: 100%; max-height: 80vh; margin-inline: auto; object-fit: contain;
}
.entry-content .wp-block-image:not(.alignleft):not(.alignright) { text-align: center; }
.entry-content figcaption { padding-inline: 0; }
.entry-content .wp-block-gallery { gap: 8px; }
.entry-content iframe, .entry-content .wp-block-embed { max-width: 100%; }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content .alignleft { float: left; margin: .3em 1.2em .8em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 .8em 1.2em; max-width: 50%; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Matérias antigas (editor clássico): largura/altura fixas em imagens, legendas,
   vídeos, tabelas e links enormes não podem estourar a coluna no celular. */
.layout__main, .article { min-width: 0; }
.entry-content { overflow-wrap: anywhere; }
.entry-content img, .entry-content video { max-width: 100%; height: auto !important; }
.entry-content .wp-caption, .entry-content figure { max-width: 100%; }
.entry-content .wp-caption img { display: block; margin-inline: auto; }
.entry-content .wp-caption-text { font-size: 14px; color: var(--muted); }
.entry-content table { max-width: 100%; }
.entry-content th, .entry-content td { overflow-wrap: normal; min-width: 7ch; }
.entry-content pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; font-size: 15px; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 599px) {
	.entry-content .alignleft, .entry-content .alignright { float: none; display: block; max-width: 100%; margin: 1em auto; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--paper); font-size: 14px; }

/* Compartilhar */
.share__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
	font-family: var(--sans); font-weight: 700; font-size: 14px;
}
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; padding: 0 16px 0 12px; }
.share__btn--wa:hover { color: #fff; border-color: var(--wa); filter: brightness(1.1); }
.share__copied {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
.share__copied:empty { display: none; }
.share--full {
	margin-top: 36px; padding: 20px; border-radius: 8px; background: var(--paper);
	display: flex; flex-direction: column; gap: 12px;
}
.share__label { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.share--full .share__btn--wa { height: 52px; font-size: 16px; padding-inline: 20px; }
@media (max-width: 599px) {
	.share--full .share__btn--wa { flex: 1 1 100%; }
	.share--compact .share__btn--wa span { display: none; }
	.share--compact .share__btn--wa { padding: 0 10px; }
}

.side-latest { margin-top: 32px; }
.side-title {
	font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
	border-top: 3px solid var(--ink); padding-top: 10px;
}

/* Páginas */
.page-content { max-width: calc(760px + var(--gutter) * 2); }
.page-content .entry-content { margin-top: 20px; }

/* ==========================================================================
   9. Rodapé
   ========================================================================== */
.site-footer { background: var(--ink); color: #CFCAC2; margin-top: 56px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 32px; padding-block: 44px 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer__about { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__about p { max-width: 46ch; line-height: 1.6; }
.site-footer .wordmark__b { color: #fff; border-color: #fff; }
.site-footer .social { margin-left: -8px; }
.site-footer .social a { color: #CFCAC2; }
.footer__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.footer__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.footer__list a { display: flex; align-items: center; min-height: 40px; }
.footer__cta p { margin-bottom: 16px; line-height: 1.6; }
.footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-block: 18px 28px; font-size: 13px; color: #A39E96;
	background: linear-gradient(#34312D, #34312D) top center / calc(100% - var(--gutter) * 2) 1px no-repeat;
}

/* ==========================================================================
   10. Acabamento editorial
   ========================================================================== */

/* Fio vermelho no alto da página */
/* Cabeçalho todo vermelho (a cor do logo vem do painel Edição Extra) */
.masthead { background: var(--ee-accent); color: #fff; }
.masthead .icon-btn { color: #fff; }
.masthead .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.masthead__tagline { color: #fff; }
.masthead__tagline::before, .masthead__tagline::after { background: rgba(255, 255, 255, .45) !important; }
.masthead { border-bottom: 0 !important; display: flow-root; }
/* Logos que ficam sobre branco ganham o fundo vermelho */
.brand--mini .logo, .brand--drawer .logo { background: var(--ee-accent); }

/* Slogan entre fios finos, como nas capas de jornal */
@media (min-width: 760px) {
	.masthead__tagline { display: flex; align-items: center; justify-content: center; gap: 14px; }
	.masthead__tagline::before, .masthead__tagline::after { content: ""; width: 48px; height: 1px; background: var(--line); }
}

/* Menu de editorias com fio duplo */
.sections { border-bottom: 0; box-shadow: 0 3px 0 var(--ink), 0 5px 0 var(--bg), 0 6px 0 var(--ink); }

/* Faixa "Agora" */
.ticker { margin-top: 6px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker__in { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ticker__label {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
	background: var(--ee-accent); color: #fff; border-radius: 3px; padding: 5px 9px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ee-pulse 1.6s ease-in-out infinite; }
@keyframes ee-pulse { 50% { opacity: .25; } }
.ticker__list {
	display: flex; gap: 28px; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap;
	-webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent);
}
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink-2); }
.ticker__list a:hover { color: var(--ee-accent); }
.ticker__time { color: var(--ee-accent); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ticker__dot { animation: none; } }

/* Títulos de seção: serifa grande, fio preto e marca vermelha */
.sec-head {
	position: relative; align-items: flex-end;
	border-top: 0; padding: 0 0 10px; margin-bottom: 20px; border-bottom: 1px solid var(--ink);
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 56px; height: 5px; background: var(--ee-accent); }
.sec-title {
	font-family: var(--serif); font-size: clamp(25px, 3vw, 32px); font-weight: 700;
	text-transform: none; letter-spacing: -.01em; line-height: 1.1;
}
.sec-title::before { display: none; }
.side-title { border-top: 0; padding-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); position: relative; margin-bottom: 4px; }
.side-title::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 36px; height: 4px; background: var(--ee-accent); }

/* Horário recente em vermelho */
.card__meta .is-recent { color: var(--ee-accent); font-weight: 600; }

/* Manchete principal */
.card--lead .kicker { background: var(--ee-accent); color: #fff; padding: 5px 9px; border-radius: 3px; }
.card--lead a.kicker:hover { background: var(--ink); color: #fff; }
.card--lead .card__deck { padding-left: 14px; border-left: 3px solid var(--ee-accent); }
.card__title a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .3s ease; }
.card:hover .card__title a { background-size: 100% 1px; }

/* Selo da editoria sobre a foto (cards com foto em cima, no computador) */
@media (min-width: 760px) {
	.home-lead__side .card--stack:not(.card--noimg) .kicker,
	.home-sec--featured .card--stack:not(.card--noimg) .kicker,
	.grid-4 .card--stack:not(.card--noimg) .kicker {
		position: absolute; top: 10px; left: 10px; z-index: 2;
		background: var(--bg); color: var(--ee-accent); padding: 5px 8px; border-radius: 3px;
		font-size: 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
	}
	.home-lead__side .card--stack:not(.card--noimg) .kicker--sponsored,
	.home-sec--featured .card--stack:not(.card--noimg) .kicker--sponsored,
	.grid-4 .card--stack:not(.card--noimg) .kicker--sponsored { background: #FFF2CC; color: #6B4A00; }
}

/* Dentro do bloco da editoria o selo repetiria o título: só fica o de patrocinado */
.home-sec .kicker:not(.kicker--sponsored) { display: none; }

/* Blocos da home: ritmo entre faixas */
.home-sec { margin-top: 48px; }
.home-sec--featured { background: var(--paper); padding-block: 36px 40px; }
.home-sec--featured .home-sec__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.home-sec--featured .home-sec__grid > .card--stack { grid-row: auto; padding: 0; border: 0; }
.home-sec--featured .card__title { font-size: 16.5px; }
@media (min-width: 1000px) {
	.home-sec--featured .home-sec__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
	.home-sec--featured .card__title { font-size: 19px; }
}

/* Opinião em faixa escura */
.home-sec--opinion { background: var(--ink); color: #EDE9E3; padding-block: 40px 44px; }
.home-sec--opinion .sec-head { border-bottom-color: #4A4641; }
.home-sec--opinion .sec-title a, .home-sec--opinion .sec-title { color: #fff; }
.home-sec--opinion .sec-title a:hover { color: #fff; text-decoration: underline; }
.home-sec--opinion .sec-more { color: #CFCAC2; }
.home-sec--opinion .sec-more:hover { color: #fff; }
.home-sec--opinion .home-sec__grid { gap: 28px; padding-top: 4px; }
.home-sec--opinion .card--text { border-top: 0; padding-top: 0; }
.home-sec--opinion .card--text::before {
	content: "\201C"; display: block; height: 30px;
	font-family: var(--serif); font-size: 72px; line-height: .9; color: var(--ee-accent);
}
.home-sec--opinion .kicker { display: none; }
.home-sec--opinion .card__title { color: #fff; font-size: 21px; }
.home-sec--opinion .card:hover .card__title a { color: #fff; }
.home-sec--opinion .card__meta { color: #B5AFA6; }
.home-sec--opinion .card__author { color: #fff; }
@media (min-width: 1000px) {
	.home-sec--opinion .card--text + .card--text { border-left: 1px solid #3A3632; padding-left: 28px; }
}

/* Cabeçalho de editoria/busca com marca vermelha */
.page-head { padding-top: 36px; }
.page-head__title::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 16px; background: var(--ee-accent); }
.page-head--center .page-head__title::after { margin-inline: auto; }
.page-head--plain .page-head__title::after { display: none; }

/* Matéria */
.article__deck { padding-left: 16px; border-left: 3px solid var(--ee-accent); }
.entry-content > p:first-of-type::first-letter {
	float: left; margin: .07em .1em 0 0;
	font-size: 3.7em; line-height: .8; font-weight: 700; color: var(--ee-accent);
}
.entry-content blockquote, .entry-content .wp-block-quote {
	position: relative; border-left: 0; padding: 4px 0 4px 54px;
	font-style: normal; font-weight: 600; font-size: 1.22em; line-height: 1.4; color: var(--ink);
}
.entry-content blockquote::before, .entry-content .wp-block-quote::before {
	content: "\201C"; position: absolute; left: 0; top: -6px;
	font-family: var(--serif); font-size: 80px; line-height: 1; color: var(--ee-accent);
}
.related { background: var(--paper); padding-block: 36px 44px; margin-top: 56px; }
.related + .site-footer, .site-main:has(> .related:last-child) + .site-footer { margin-top: 0; }
.site-main:has(> .related:last-child) { padding-bottom: 0; }

/* Rodapé */
.site-footer { border-top: 4px solid var(--ee-accent); }
.site-footer .wordmark { font-size: 30px; }
.site-main:has(> .home-sec--opinion:last-child) { padding-bottom: 0; }
.site-main:has(> .home-sec--opinion:last-child) + .site-footer,
.site-main:has(> .home-sec--featured:last-child) + .site-footer { margin-top: 0; }
.site-main:has(> .home-sec--featured:last-child) { padding-bottom: 0; }

/* ==========================================================================
   11. Impressão
   ========================================================================== */
@media print {
	.topbar, .masthead button, .sections, .ad, .share, .sidebar, .related, .site-footer, .drawer, .search-panel { display: none !important; }
	.layout { display: block; }
	body { font-size: 12pt; }
}

/* ==========================================================================
   12. Menu fixo com mini logo (computador)
   ========================================================================== */
@media (min-width: 1000px) {
	.brand--mini {
		display: flex; align-items: center;
		position: absolute; left: var(--gutter); top: 0; bottom: 0;
		opacity: 0; visibility: hidden; transform: translateY(-4px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.brand--mini .logo { height: 26px; max-width: 150px; object-position: left center; }
	.brand--mini .wordmark { font-size: 15px; }
	.brand--mini .wordmark__b { border-width: 1.5px; }
	body.is-stuck .brand--mini { opacity: 1; visibility: visible; transform: none; }
	body.is-stuck .sections { box-shadow: 0 3px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, .08); }
}
@media (min-width: 1000px) and (max-width: 1279px) {
	/* Telas médias: abre espaço para o mini logo à esquerda. */
	body.is-stuck .sections__list { padding-left: 170px; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .brand--mini { transition: none; } }

/* Logo completo no topo (com a frase "Compromisso só com o leitor") */
.logo.logo--full { height: 60px; max-width: 70vw; }
.has-logo-full .masthead__in { padding-block: 6px; }
@media (min-width: 760px) {
	.logo.logo--full { height: 92px; }
	.has-logo-full .masthead__tagline { display: none; }
	.has-logo-full .masthead__in { padding-block: 10px; }
}

/* Celular: sem a barra de editorias (as editorias ficam no botão de menu) */
@media (max-width: 759px) {
	.sections { display: none; }
}

/* Cabeçalho vermelho fixo ao rolar (computador e celular); sem barra de editorias */
.masthead { position: sticky; top: 0; z-index: 50; }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }
.masthead .logo, .masthead__in { transition: height .2s ease, padding .2s ease; }
@media (min-width: 760px) {
	.is-scrolled .masthead .logo.logo--main { height: 44px; }
	.is-scrolled .masthead .logo.logo--full { height: 56px; }
	.is-scrolled .masthead__in { padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) { .masthead .logo, .masthead__in { transition: none; } }
