/*
Theme Name: DOBRA
Theme URI: https://example.com/dobra
Author: Raphael Diniz
Description: Tema editorial para cultura nerd: tecnologia, anime e cinema. Layout escuro com acentos dourados, responsivo (desktop e celular). Home, categoria, artigo, busca e 404.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
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: dobra
Tags: blog, news, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, dark
*/

/* =========================================================================
   1. VARIÁVEIS (mude as cores aqui)
   ====================================================================== */
:root {
	--ink: #111110;
	--ink-2: #1c1b19;
	--ink-3: #2a2825;
	--cream: #f4f1e8;
	--cream-2: #e9e5d6;
	--paper: #fffdf7;
	--gold: #c9a227;
	--rust: #b8401c;
	--muted: #8a8578;
	--line-dark: rgba(255, 255, 255, .14);
	--line-light: rgba(17, 17, 16, .16);

	--f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

	--gutter: 32px;
	--maxw: 1312px;
}

/* Fonte reserva com as mesmas medidas do Inter: evita o texto "pular" quando a fonte carrega. */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
	size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%;
}

/* =========================================================================
   2. BASE
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--maxw) + 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 {
	position: fixed; left: 12px; top: 12px; z-index: 999; width: auto; height: auto;
	clip: auto; padding: 10px 16px; background: var(--gold); color: var(--ink);
}
.hp { position: absolute; left: -9999px; }
.arrow { display: inline-block; vertical-align: -1px; margin-left: 2px; flex: none; }

/* Tipografia utilitária */
.eyebrow, .kicker, .meta, .badge, .count, .topbar, .mainnav__week, .hot-tags, .most-read__title,
.filters__tabs, .breadcrumb, .toc__title, .section-head__sub span, .footer__social, .footer__bottom, .newsletter__legal {
	font-family: var(--f-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.eyebrow { font-size: 11px; color: var(--gold); }
.eyebrow--rust { color: var(--rust); }
.eyebrow--rust span { margin-right: 4px; }
.kicker { font-size: 10.5px; color: var(--rust); margin-bottom: 8px; }
.kicker--gold { color: var(--gold); }
.meta { font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.meta--light { color: rgba(255, 255, 255, .6); }

.link-strong, .link-gold, .link-rust {
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
	display: inline-flex; align-items: center; gap: 4px; padding-bottom: 2px; border-bottom: 1px solid currentColor;
}
.link-gold { color: var(--gold); }
.link-rust { color: var(--rust); }
.link-strong { color: var(--ink); }

.thumb-placeholder {
	display: block; width: 100%; height: 100%; min-height: 100%;
	background: radial-gradient(circle at 30% 30%, #3a352b, #15130f 70%);
}

/* =========================================================================
   3. CABEÇALHO
   ====================================================================== */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 20; }
.topbar { border-bottom: 1px solid var(--line-dark); font-size: 10px; color: rgba(255, 255, 255, .65); }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__date i { font-style: normal; margin: 0 8px; opacity: .6; }

.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand__logo {
	font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1;
	color: var(--gold); letter-spacing: .01em; display: inline-flex; align-items: flex-start; gap: 4px;
}
.brand__logo .arrow { margin-top: 4px; }
.brand__tagline { font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.custom-logo { max-height: 56px; width: auto; max-width: 100%; }
body.dobra-logo-hide-tagline .brand__tagline { display: none; }

@media (min-width: 761px) {
	body.dobra-logo-align-center .masthead__inner { position: relative; justify-content: center; }
	body.dobra-logo-align-center .masthead__search { position: absolute; top: 50%; right: var(--gutter); transform: translateY(-50%); }
	body.dobra-logo-align-right .masthead__inner { justify-content: flex-end; }
	body.dobra-logo-align-right .brand { order: 2; margin-left: auto; }
	body.dobra-logo-align-right .masthead__search { order: 1; margin-right: auto; }
}

@media (min-width: 761px) and (max-width: 960px) {
	body.dobra-logo-align-center .brand__tagline,
	body.dobra-logo-align-right .brand__tagline { display: none; }
}

.searchform {
	display: flex; align-items: center; width: 280px; max-width: 100%;
	border: 1px solid var(--line-dark); background: var(--ink-2); border-radius: 3px;
}
.searchform input[type="search"] {
	flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 12px; font-size: 12.5px; color: #fff;
}
.searchform input::placeholder { color: rgba(255, 255, 255, .6); }
.searchform input:focus { outline: none; }
.searchform:focus-within { border-color: var(--gold); }
.searchform button { background: transparent; border: 0; color: var(--gold); padding: 8px 12px; display: grid; place-items: center; }
.searchform--light { width: 260px; background: var(--paper); border-color: var(--line-light); }
.searchform--light input[type="search"] { color: var(--ink); }
.searchform--light input::placeholder { color: var(--muted); }
.searchform--light button { color: var(--ink); }

.search-toggle { display: none; background: transparent; border: 0; color: var(--gold); padding: 8px; }
.menu-toggle {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--line-dark); color: var(--gold); padding: 0;
}
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after {
	display: block; width: 18px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease;
}
.menu-toggle__bar { position: relative; }
.menu-toggle__bar::before { position: absolute; top: -6px; left: 0; }
.menu-toggle__bar::after { position: absolute; top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
.search-drawer { border-top: 1px solid var(--line-dark); padding: 12px 0; }
.search-drawer[hidden] { display: none; }
.search-drawer .searchform { width: 100%; }

.mainnav { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.mainnav__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.mainnav__list { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.mainnav__list::-webkit-scrollbar { display: none; }
.mainnav__list a { display: block; padding: 14px 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav__list a:hover { color: var(--gold); }
.mainnav__list .current-menu-item > a, .mainnav__list .current-cat > a, .mainnav__list .current-menu-ancestor > a, .mainnav__list .current_page_item > a {
	color: var(--gold);
}
.mainnav__week { color: var(--gold); font-size: 10.5px; white-space: nowrap; }
.mainnav__week:hover { text-decoration: underline; }

/* =========================================================================
   4. SEÇÕES E CABEÇALHO DE SEÇÃO
   ====================================================================== */
.section { padding: 56px 0 64px; }
.section--light { background: var(--cream); color: var(--ink); }
.section--dark { background: var(--ink); color: #fff; }
.section--archive { padding-top: 48px; }
.section--radar { padding-bottom: 20px; }
.section--radar + .section { padding-top: 24px; }
.ad-slot { width: min(var(--maxw), calc(100% - var(--gutter) * 2)); margin: 28px auto; text-align: center; }
.ad-slot__label { display: block; margin-bottom: 10px; color: var(--muted); font-family: var(--f-mono); font-size: 10px; line-height: 1.4; text-transform: uppercase; }
.ad-slot__content { max-width: 100%; margin-inline: auto; min-height: 100px; }
.ad-slot__content ins.adsbygoogle { max-width: 100%; margin-inline: auto; }
.ad-slot--post_top, .ad-slot--post_bottom { max-width: 720px; }

.section-head { margin-bottom: 28px; }
.section-head__row {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-top: 2px solid currentColor; padding-top: 18px;
}
.section-head__title { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.1; display: flex; align-items: baseline; gap: 12px; }
.section-head__num { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--rust); letter-spacing: .06em; }
.section--dark .section-head__num { color: var(--gold); }
.section-head__link { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--rust); text-transform: uppercase; white-space: nowrap; }
.section--dark .section-head__link { color: var(--gold); }
.section-head__link:hover { text-decoration: underline; }
.section-head__sub { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.section-head__sub span { font-size: 10px; }
.section--dark .section-head__sub { color: rgba(255, 255, 255, .6); }

.section-head--archive .section-head__title { border-top: 2px solid var(--ink); padding-top: 18px; width: 100%; font-size: 30px; }

/* =========================================================================
   5. HERO (home)
   ====================================================================== */
.hero { background: var(--ink); color: #fff; padding: 40px 0 28px; }
.hero__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 28px; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(52px, 8vw, 92px); line-height: .92; margin-top: 10px; letter-spacing: .005em; }
.hero__text { max-width: 270px; font-size: 13px; color: rgba(255, 255, 255, .7); padding-bottom: 8px; }

.hero__grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-card { position: relative; overflow: hidden; background: var(--ink-2); min-height: 200px; isolation: isolate; }
.hero-card--main { grid-row: 1 / span 2; min-height: 520px; }
.hero-card__media { position: absolute; inset: 0; z-index: -2; }
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-card:hover .hero-card__media img { transform: scale(1.03); }
.hero-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(17, 17, 16, 0) 30%, rgba(17, 17, 16, .88) 100%);
}
.hero-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.hero-card__title { font-family: var(--f-display); font-weight: 700; line-height: 1.02; }
.hero-card--main .hero-card__title { font-size: clamp(34px, 4.2vw, 52px); max-width: 560px; margin-bottom: 10px; }
.hero-card--side .hero-card__title { font-size: 24px; margin-bottom: 6px; }
.hero-card__excerpt { max-width: 520px; font-size: 14px; color: rgba(255, 255, 255, .82); margin-bottom: 14px; }
.hero-card .meta { color: rgba(255, 255, 255, .65); }
.hero-card__title a::after { content: ""; position: absolute; inset: 0; }
.badge { position: absolute; top: 20px; left: 24px; z-index: 2; font-size: 10px; background: var(--gold); color: var(--ink); padding: 5px 9px; }

.hot-tags { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.hot-tags a:hover { color: var(--gold); }
.hot-tags__label { color: var(--gold); }

/* =========================================================================
   6. CARDS E GRADES
   ====================================================================== */
.grid { display: grid; gap: 32px 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); margin-bottom: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.05; margin-bottom: 8px; }
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.card:hover .card__title a { background-size: 100% 1px; }
.card__excerpt { font-size: 14px; color: #5e5a50; margin-bottom: 10px; }
.section--dark .card__excerpt, .section--dark .meta { color: rgba(255, 255, 255, .62); }
.section--dark .kicker { color: var(--gold); }

.score {
	position: absolute; top: 0; left: 0; background: var(--gold); color: var(--ink);
	padding: 6px 10px 5px; text-align: center; line-height: 1;
}
.score strong { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 800; }
.score small { font-family: var(--f-mono); font-size: 8px; letter-spacing: .08em; }
.score--inline { position: static; display: inline-block; }

/* No radar */
.radar { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.radar-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-light); align-items: center; }
.radar-item:first-child { padding-top: 0; }
.radar-item:last-child { border-bottom: 0; }
.radar-item__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.radar-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.radar-item h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.radar-item h3 a:hover { color: var(--rust); }
.radar-item .kicker { margin-bottom: 4px; }

.most-read { background: var(--cream-2); padding: 14px 18px; }
.most-read__title { font-size: 10.5px; color: var(--rust); margin-bottom: 14px; }
.most-read li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-light); }
.most-read__n { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--rust); line-height: 1; }
.most-read a { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.05; display: block; margin-bottom: 3px; }
.most-read a:hover { color: var(--rust); }
.most-read .meta { font-family: var(--f-mono); text-transform: uppercase; font-size: 10px; }

/* Guia de bolso */
.section--cinema { padding-bottom: 24px; }
.section--bancada { padding-top: 20px; padding-bottom: 32px; }
.section--guia { padding-top: 24px; }
.guia { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); min-height: 280px; }
.guia__media { position: relative; overflow: hidden; background: var(--ink-2); }
.guia__media img { width: 100%; height: 100%; object-fit: cover; }
.guia__body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.guia__body h2 { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1; }
.guia__body p:not(.eyebrow) { color: #5e5a50; max-width: 460px; font-size: 14.5px; }

/* =========================================================================
   7. CABEÇALHO DE PÁGINA (categoria, busca, 404)
   ====================================================================== */
.page-hero { background: var(--ink); color: #fff; padding: 28px 0 32px; }
.page-hero--small { padding: 40px 0; }
.contact-hero { padding: 48px 0 52px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro { max-width: 480px; }
.contact-intro h2 { max-width: 430px; margin: 8px 0 20px; font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.contact-intro .entry-content { font-size: 15px; line-height: 1.65; }
.contact-note { margin-top: 22px; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.contact-form__field { min-width: 0; }
.contact-form__field--wide, .contact-form__message { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 6px; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rust); outline: 2px solid color-mix(in srgb, var(--rust) 28%, transparent); outline-offset: 1px; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form__submit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 18px; border: 0; background: var(--ink); color: var(--gold); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; cursor: pointer; }
.contact-form__submit:hover { background: var(--gold); color: var(--ink); }
.contact-form__message { padding: 14px 16px; font-size: 14px; }
.contact-form__message--success { border-left: 3px solid #538d60; background: var(--cream-2); }
.contact-form__message--error { border-left: 3px solid var(--rust); background: var(--cream-2); }
.not-found__actions { display: flex; align-items: center; gap: 24px; max-width: 760px; margin-top: 28px; }
.not-found__home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 16px; background: var(--gold); color: var(--ink); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; white-space: nowrap; }
.not-found__home:hover { background: var(--paper); text-decoration: none; }
.not-found__search { width: min(360px, 100%); }
.not-found__categories { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 36px; color: rgba(255, 255, 255, .66); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; }
.not-found__categories a { color: var(--gold); }
.not-found__categories a:hover { text-decoration: underline; }
.breadcrumb { font-size: 10px; color: rgba(255, 255, 255, .6); margin-bottom: 36px; text-transform: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: rgba(255, 255, 255, .85); }
.breadcrumb--light { color: var(--muted); margin-bottom: 24px; }
.breadcrumb--light a:hover { color: var(--rust); }
.page-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--line-dark); }
.page-hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 11vw, 132px); line-height: .88; color: var(--gold); }
.page-hero__title--small { font-size: clamp(44px, 7vw, 76px); margin: 8px 0; }
.page-hero__lead { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1.05; margin-bottom: 12px; color: #fff; }
.page-hero__text p:not(.page-hero__lead) { font-size: 14px; color: rgba(255, 255, 255, .7); max-width: 440px; }
.page-hero__tags { display: flex; gap: 24px; padding-top: 16px; font-family: var(--f-mono); font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.page-hero__tags a:hover { color: var(--gold); }
.page-hero__search { margin-top: 24px; }
.page-hero > .container > .page-hero__lead { color: rgba(255, 255, 255, .8); font-size: 22px; font-family: var(--f-body); font-weight: 400; margin-top: 12px; }

/* Destaque da categoria */
.feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: var(--ink); color: #fff; margin-bottom: 56px; }
.feature__media { display: block; position: relative; min-width: 0; min-height: 340px; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.feature__body h2 { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1; }
.feature__body p:not(.kicker):not(.meta) { font-size: 14px; color: rgba(255, 255, 255, .72); }
.feature__body .meta { color: rgba(255, 255, 255, .55); }

/* Filtros */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.filters__tabs { display: flex; gap: 22px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.filters__tabs a { display: block; padding: 6px 0; border-bottom: 2px solid transparent; }
.filters__tabs a:hover { color: var(--ink); }
.filters__tabs a.is-active { color: var(--rust); border-color: var(--rust); }
.count { font-size: 10px; color: var(--muted); margin-top: 20px; }
.section-head--archive { margin-bottom: 24px; }

/* Paginação */
.pagination { margin-top: 56px; }
.pagination ul { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 10px;
	border: 1px solid var(--line-light); background: var(--paper); font-family: var(--f-mono); font-size: 11px;
}
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.pagination .dots { border: 0; background: none; }

/* O olhar DOBRA */
.olhar { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-top: 64px; padding: 32px 36px; background: var(--cream-2); align-items: center; }
.olhar__label { font-family: var(--f-mono); font-size: 10.5px; color: var(--rust); letter-spacing: .06em; }
.olhar h2 { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.olhar p { color: #5e5a50; font-size: 14px; }

.empty { padding: 48px 0; color: var(--muted); }

/* =========================================================================
   8. ARTIGO
   ====================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

.article__head { padding: 40px 0 40px; }
/* Só usado em páginas estáticas (page.php). O artigo usa o .container normal. */
.container--narrow-head { max-width: calc(1080px + var(--gutter) * 2); }
/* Cabeçalho, capa e corpo do artigo usam o mesmo .container: tudo alinha na mesma borda. */
.article__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6.8vw, 98px); line-height: .98; max-width: 1100px; margin: 20px 0 20px; }
.article__deck { font-size: 21px; color: #6a665b; max-width: 720px; margin-bottom: 26px; line-height: 1.55; }
.article--page .article__title { margin-bottom: 0; }

.byline { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.byline__who { display: flex; align-items: center; gap: 14px; }
.byline__avatar { border-radius: 50%; border: 2px solid var(--gold); width: 44px; height: 44px; object-fit: cover; }
.byline__name { font-weight: 600; font-size: 13px; }
.byline__name a:hover { color: var(--rust); }
.byline .meta { font-family: var(--f-mono); text-transform: uppercase; font-size: 10px; }
.byline__actions { display: flex; align-items: center; gap: 8px; }
.byline__actions > .meta { margin-right: 6px; }
.icon-btn, .save-btn { background: transparent; border: 0; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 6px; }
.icon-btn:hover, .save-btn:hover { color: var(--rust); }
.save-btn { font-size: 12px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line-light); border-radius: 0; }
.save-btn[aria-pressed="true"] { color: var(--rust); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.share-links { display: inline-flex; align-items: center; gap: 2px; }
.share-link { display: grid; place-items: center; width: 32px; height: 32px; background: transparent; color: var(--ink); text-decoration: none; transition: opacity .15s ease; }
.share-link__icon { display: block; width: 18px; height: 18px; object-fit: contain; filter: brightness(0); opacity: .85; transition: filter .15s ease, opacity .15s ease; }
.share-link:hover .share-link__icon, .share-link:focus-visible .share-link__icon { filter: none; opacity: 1; }

.article__cover .container { padding-bottom: 0; }
.article__cover img { width: 100%; aspect-ratio: 1312 / 570; max-height: 570px; object-fit: cover; }
.article__cover figcaption { font-family: var(--f-body); font-size: 11px; color: #6a665b; margin-top: 12px; }

/* Três colunas: índice 200 · texto 700 · lateral 316 (soma = largura do container). */
.article__layout {
	display: grid; grid-template-columns: 200px minmax(0, 1fr) 316px; gap: 48px;
	padding-top: 48px; padding-bottom: 72px; align-items: start;
}
.article__layout--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
/* Cada bloco fica na sua coluna, mesmo com o índice escondido (artigos com menos de 2 títulos). */
.article__layout > .toc { grid-column: 1; grid-row: 1; }
.article__layout > .article__content { grid-column: 2; grid-row: 1; }
.article__layout > .article__side { grid-column: 3; grid-row: 1; }
.article__layout--single > .article__content { grid-column: 1; }
/* Sem índice (artigo com menos de 2 títulos): o texto fica centralizado na página. */
@media (min-width: 1101px) {
	.article__layout:not(.article__layout--single):has(> .toc[hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); }
	.article__layout:has(> .toc[hidden]) > .article__side { max-width: 316px; }
}

.toc { position: sticky; top: 24px; align-self: start; font-size: 13px; }
.toc[hidden] { display: none; }
.toc__title { font-size: 10px; color: var(--rust); margin-bottom: 14px; }
.toc__list li { border-top: 1px solid var(--line-light); }
.toc__list a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 10px 0; line-height: 1.3; color: #4d493f; }
.toc__list a:hover, .toc__list a.is-active { color: var(--rust); }
.toc__list b { font-family: var(--f-mono); font-weight: 400; font-size: 10px; padding-top: 3px; color: var(--rust); }
.toc__note { border-top: 1px solid var(--line-light); padding-top: 12px; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* Texto do artigo */
.entry-content { font-size: 18px; line-height: 1.72; color: #1d1c19; min-width: 0; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > p:first-child { font-size: 21px; }
.entry-content h2 { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1.05; margin-top: .8em; scroll-margin-top: 24px; }
.entry-content h2 + * { margin-top: 1.7em; }
.entry-content h3 { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.1; margin-top: 1.6em; }
.entry-content a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { width: 100%; }
.entry-content figure figcaption, .entry-content .wp-element-caption { font-family: var(--f-body); font-size: 11px; color: #6a665b; margin-top: 10px; }
.entry-content blockquote, .entry-content .is-style-dobra-pullquote {
	margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--rust);
	font-family: var(--f-display); font-weight: 600; font-size: 42px; line-height: 1.1; color: var(--rust);
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 14px; font-family: var(--f-mono); font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.entry-content .is-style-dobra-callout, .entry-content .callout {
	background: var(--cream-2); padding: 24px; font-size: 15px; line-height: 1.6;
}
.entry-content .is-style-dobra-callout > :first-child, .entry-content .callout > :first-child {
	font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); margin-bottom: 8px;
}
.entry-content .alignwide { margin-left: -48px; margin-right: -48px; width: auto; max-width: none; }

.tag-list, .entry-content .tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin-top: 1.6em; }
.entry-content .tag-list li + li { margin-top: 0; }
.tag-list a { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--line-light); padding: 6px 10px; }
.tag-list a:hover { border-color: var(--rust); color: var(--rust); }

.author-box { background: var(--paper); border: 1px solid var(--line-light); padding: 24px 26px; font-size: 14px; line-height: 1.55; }
.author-box h2 { font-family: var(--f-display); font-weight: 700; font-size: 26px; margin: 4px 0 8px; }
.author-box .eyebrow { color: var(--rust); font-size: 10px; }
.author-box .link-rust { margin-top: 14px; text-decoration: none; }

.article__side { align-self: start; position: sticky; top: 24px; }
.article__end { color: var(--rust); margin-top: 1.4em; }
.connect { background: var(--cream-2); padding: 24px; font-size: 13.5px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.connect h2 { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.02; }
.connect p:not(.eyebrow) { color: #5e5a50; }
.connect__card { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
.connect__thumb { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ink-2); }
.connect__thumb img { width: 100%; height: 100%; object-fit: cover; }
.connect__title { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.connect__card:hover .connect__title { color: var(--rust); }
.connect .link-rust { text-decoration: none; }

.section--orbit { background: var(--cream-2); }
.section--orbit .section-head__row { border-color: var(--ink); }

/* Desempenho: o navegador só desenha estas áreas quando chegam perto da tela. */
.section--orbit, .newsletter, .site-footer, .comments { content-visibility: auto; contain-intrinsic-size: auto 480px; }

/* Comentários */
.comments { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); font-size: 15px; }
.comments__title, .comment-reply-title { font-family: var(--f-display); font-weight: 700; font-size: 28px; margin-bottom: 18px; }
.comments__list { margin-bottom: 32px; }
.comments__list .comment-body { padding: 18px 0; border-top: 1px solid var(--line-light); }
.comments__list .children { padding-left: 24px; }
.comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comments__list .comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-form label { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.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-light); background: var(--paper); border-radius: 0;
}
.comment-form p { margin-bottom: 14px; }
.comment-form .submit, .newsletter button {
	background: var(--ink); color: #fff; border: 0; padding: 12px 22px; font-weight: 600; font-size: 13px;
}
.comment-form .submit:hover { background: var(--rust); }
.page-links { margin-top: 24px; font-family: var(--f-mono); font-size: 12px; }

/* =========================================================================
   9. NEWSLETTER E RODAPÉ
   ====================================================================== */
.newsletter { background: var(--gold); color: var(--ink); padding: 44px 0; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter .eyebrow { color: var(--ink); font-size: 10.5px; margin-bottom: 6px; }
.newsletter h2 { font-family: var(--f-display); font-weight: 700; font-size: 46px; line-height: 1; margin-bottom: 6px; }
.newsletter__text p:not(.eyebrow) { font-size: 14px; }
.newsletter__row { display: flex; background: var(--paper); border: 2px solid var(--ink); }
.newsletter__row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 16px; font-size: 14px; }
.newsletter__row input:focus { outline: none; }
.newsletter__row:focus-within { box-shadow: 0 0 0 3px rgba(17, 17, 16, .25); }
.newsletter button { background: var(--ink); color: #fff; white-space: nowrap; padding: 0 24px; font-size: 13px; }
.newsletter button:hover { background: var(--rust); }
.newsletter__legal, .newsletter__msg { font-size: 10px; margin-top: 10px; text-transform: none; letter-spacing: .02em; }
.newsletter__legal a { text-decoration: underline; }
.newsletter__msg { font-size: 13px; font-weight: 600; }

.site-footer { background: var(--ink); color: #fff; padding: 52px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer__brand p { font-size: 13px; color: rgba(255, 255, 255, .7); max-width: 340px; margin: 14px 0 18px; }
.footer__social { display: flex; gap: 18px; font-size: 10.5px; color: var(--gold); }
.footer__col h2 { font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer__list li { margin-bottom: 8px; font-size: 13px; }
.footer__list a:hover, .footer__social a:hover, .footer__legal a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 9.5px; color: rgba(255, 255, 255, .55); }
.footer__legal { display: flex; gap: 20px; }
.footer__cookie-settings { padding: 0; border: 0; background: transparent; color: var(--gold); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; cursor: pointer; }
.footer__cookie-settings:hover { text-decoration: underline; }

.cookie-notice[hidden] { display: none; }
.cookie-notice {
	position: fixed; right: 24px; bottom: 24px; z-index: 1000; width: min(520px, calc(100vw - 48px));
	padding: 22px 24px; border-top: 3px solid var(--gold); background: var(--ink); color: var(--paper);
	box-shadow: 0 12px 36px rgba(17, 17, 16, .24);
}
.cookie-notice__title { margin-bottom: 8px; color: var(--gold); font-family: var(--f-display); font-size: 24px; line-height: 1.05; }
.cookie-notice__text { margin-bottom: 10px; color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.55; }
.cookie-notice__link { display: inline-block; margin-bottom: 18px; color: var(--gold); font-family: var(--f-mono); font-size: 10.5px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cookie-notice__button { min-height: 40px; padding: 9px 14px; border: 1px solid var(--gold); background: transparent; color: var(--paper); font-size: 12px; font-weight: 600; cursor: pointer; }
.cookie-notice__button:hover { border-color: var(--paper); }
.cookie-notice__button--accept { background: var(--gold); color: var(--ink); }
.cookie-notice__button--accept:hover { background: var(--paper); color: var(--ink); }
.back-to-top[hidden] { display: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); background: var(--ink); color: var(--gold); box-shadow: 0 4px 16px rgba(17, 17, 16, .2); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.back-to-top:hover { background: var(--gold); color: var(--ink); }
.back-to-top:focus-visible { outline-color: var(--gold); }

/* =========================================================================
   10. TABLET
   ====================================================================== */
@media (max-width: 1100px) {
	.article__layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
	.article__layout > .article__content { grid-column: 2; grid-row: 1; }
	.article__layout > .article__side { grid-column: 2; grid-row: 2; position: static; }
	.article__layout--single > .article__content { grid-column: 1; }
	.radar { grid-template-columns: 1fr 300px; gap: 32px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

/* =========================================================================
   11. CELULAR
   ====================================================================== */
@media (max-width: 760px) {
	:root { --gutter: 20px; }
	body { font-size: 15.5px; }

	/* cabeçalho: menu à esquerda, logo centralizada e busca à direita */
	.topbar { display: none; }
	.masthead__inner { justify-content: center; position: relative; padding-top: 14px; padding-bottom: 14px; }
	.brand__tagline, .masthead__search { display: none; }
	.brand__logo { font-size: 34px; }
	.menu-toggle { display: inline-flex; position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); }
	.search-toggle { display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
	.mainnav { display: none; }
	.mainnav.is-open { display: block; }
	.mainnav__inner { display: block; }
	.mainnav__list { display: flex; flex-direction: column; gap: 0; overflow: visible; }
	.mainnav__list a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
	.mainnav__week { display: none; }

	.section { padding: 40px 0 44px; }
	.section-head__title { font-size: 28px; }
	.section-head__sub { flex-direction: column; gap: 6px; }

	/* hero */
	.hero { padding: 28px 0 20px; }
	.hero__intro { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
	.hero__text { max-width: none; padding: 0; }
	.hero__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
	.hero-card--main { grid-row: auto; min-height: 460px; }
	.hero-card--side { min-height: 190px; }
	.hero-card__body { padding: 18px; }
	.hero-card--side .hero-card__title { font-size: 22px; }
	.hot-tags { gap: 6px 16px; }

	/* grades viram 1 coluna */
	.grid--3 { grid-template-columns: 1fr; gap: 36px; }
	.card__title { font-size: 28px; }

	.radar { grid-template-columns: 1fr; gap: 28px; }
	.radar-item h3 { font-size: 20px; }

	.guia { grid-template-columns: 1fr; }
	.guia__media { aspect-ratio: 16 / 10; }
	.guia__body { padding: 28px 22px 32px; }
	.guia__body h2 { font-size: 34px; }

	/* categoria */
	.breadcrumb { margin-bottom: 24px; }
	.page-hero__grid { grid-template-columns: 1fr; gap: 20px; }
	.page-hero__title { font-size: 48px; line-height: .95; }
	.page-hero__lead { font-size: 30px; }
	.page-hero__tags { flex-wrap: wrap; gap: 8px 20px; }
	.feature { grid-template-columns: minmax(0, 1fr); min-width: 0; margin-bottom: 40px; }
	.feature__media { width: 100%; min-width: 0; min-height: 260px; aspect-ratio: 4 / 3; }
	.feature__body { padding: 24px 20px 28px; }
	.feature__body h2 { font-size: 36px; }
	.filters { flex-direction: column; align-items: stretch; gap: 14px; }
	.filters__tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; gap: 20px; }
	.filters__tabs a { white-space: nowrap; }
	.searchform--light { width: 100%; }
	.contact-layout { grid-template-columns: 1fr; gap: 30px; }
	.contact-hero { padding: 32px 0 36px; }
	.contact-form { grid-template-columns: 1fr; gap: 14px; }
	.contact-form__field--wide, .contact-form__message { grid-column: auto; }
	.not-found__actions { align-items: stretch; flex-direction: column; gap: 16px; }
	.not-found__home { align-self: flex-start; }
	.not-found__search { width: 100%; }
	.olhar { grid-template-columns: 1fr; padding: 24px 20px; gap: 10px; margin-top: 44px; }
	.pagination { margin-top: 40px; }

	/* artigo */
	.article__head { padding-top: 20px; padding-bottom: 24px; }
	.article__title { font-size: 44px; }
	.article__deck { font-size: 17px; margin-bottom: 22px; }
	.byline { flex-direction: column; align-items: flex-start; gap: 14px; }
	.byline__actions { width: 100%; justify-content: flex-start; flex-wrap: nowrap; gap: 4px; }
	.byline__actions > .meta { display: none; }
	.share-link { width: 34px; height: 34px; }
	.save-btn { margin-left: auto; }
	.article__cover .container { padding: 0; }
	.article__cover img { aspect-ratio: 4 / 3; }
	.article__cover figcaption { padding: 0 var(--gutter); }
	.article__layout { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; padding-bottom: 48px; }
	.toc { position: static; border: 1px solid var(--line-light); padding: 16px 18px; background: var(--paper); }
	.article__layout > .toc, .article__layout > .article__content, .article__layout > .article__side { grid-column: auto; grid-row: auto; }
	.entry-content { font-size: 17px; }
	.entry-content > p:first-child { font-size: 18.5px; }
	.entry-content h2 { font-size: 32px; }
	.entry-content blockquote, .entry-content .is-style-dobra-pullquote { font-size: 30px; padding-left: 18px; }
	.entry-content .is-style-dobra-callout, .entry-content .callout { padding: 18px 20px; }

	/* newsletter e rodapé */
	.newsletter { padding: 36px 0; }
	.newsletter__inner { grid-template-columns: 1fr; gap: 22px; }
	.newsletter h2 { font-size: 40px; }
	.newsletter__row { flex-direction: column; }
	.newsletter button { padding: 14px; }
	.footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.footer__brand { grid-column: 1 / -1; }
	.footer__bottom { flex-direction: column; gap: 10px; }
	.cookie-notice { right: 16px; bottom: 16px; width: calc(100% - 32px); padding: 18px; }
	.cookie-notice__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* =========================================================================
   12. PREFERÊNCIAS DO USUÁRIO
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .newsletter, .site-footer, .toc, .article__side, .byline__actions, .progress { display: none; }
	body { background: #fff; }
}
