/*
Theme Name: Uz AdSense
Theme URI: https://uztech.com.br/
Author: Filipe Reis / UzTech
Author URI: https://uztech.com.br/
Description: Seu blog rápido, bonito e ganhando com o AdSense — sem plugin extra. O Uz AdSense traz 8 posições de anúncio prontas (topo, meio do artigo, fim, in-feed e mais), com controle por dispositivo e por post, e reserva o espaço de cada anúncio para ele não empurrar o texto do leitor. Tudo em português, direto no Personalizar: cole o pub-ID e o código de cada posição e publique. Leve (CSS+JS abaixo de 50 KB), com banner de consentimento LGPD e ads.txt editável no próprio painel.
Version: 1.13.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uz-adsense
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* Uz AdSense — esqueleto veloz: sem jQuery, sem framework, sem fonte externa. */

:root {
  --uz-ink: #1c1c1c;
  --uz-muted: #5f6368;
  --uz-bg: #ffffff;
  --uz-surface: #f7f7f5;
  --uz-border: #e3e3e0;
  --uz-accent: #1a5c2e;
  --uz-accent-hover: #12401f;
  --uz-link: #14532d;
  --uz-max: 72rem;
  --uz-content: 44rem;
  --uz-gap: 1.5rem;
  --uz-radius: 0.5rem;
  --uz-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --uz-font-serif: Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--uz-bg);
  color: var(--uz-ink);
  font-family: var(--uz-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--uz-link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--uz-accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--uz-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; overflow-wrap: break-word; }
h1 { font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.25vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.5rem; }
blockquote { margin: 0 0 1.25em; padding-left: 1rem; border-left: 3px solid var(--uz-accent); color: var(--uz-muted); }
code { font-size: 0.9em; background: var(--uz-surface); padding: 0.1em 0.3em; border-radius: 0.25rem; }
pre { background: var(--uz-surface); padding: 1rem; overflow-x: auto; border-radius: var(--uz-radius); }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--uz-border); margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.25em; font-size: 0.95rem; }
th, td { padding: 0.5rem; border: 1px solid var(--uz-border); text-align: left; }
figure { margin: 0 0 1.25em; }
figcaption { font-size: 0.875rem; color: var(--uz-muted); margin-top: 0.5rem; }

/* Texto só para leitor de tela */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Acessibilidade: link "pular para o conteúdo" */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--uz-accent); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

/* Estrutura */
.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1; width: 100%; max-width: var(--uz-max); margin: 0 auto; padding: var(--uz-gap) 1rem 3rem; }
.site-content { display: block; }
.content-area { min-width: 0; }
@media (min-width: 64rem) {
  .has-sidebar .site-content { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; align-items: start; }
  .has-sidebar .widget-area { position: sticky; top: 1rem; }
}

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--uz-border); background: var(--uz-bg); }
.site-header-inner { max-width: var(--uz-max); margin: 0 auto; padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.site-branding { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.site-branding a { text-decoration: none; color: var(--uz-ink); }
.custom-logo { width: auto; max-height: 3rem; }
.site-title { font-size: 1.375rem; font-weight: 700; line-height: 1.2; margin: 0; }
.site-description { font-size: 0.875rem; color: var(--uz-muted); margin: 0; }
@media (max-width: 80rem) { .site-description { display: none; } }
.menu-toggle { display: none; margin-left: auto; background: var(--uz-surface); border: 1px solid var(--uz-border); border-radius: var(--uz-radius); padding: 0.5rem 0.75rem; font: inherit; font-size: 0.95rem; cursor: pointer; color: var(--uz-ink); }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.primary-navigation a { text-decoration: none; color: var(--uz-ink); font-size: 0.95rem; padding: 0.25rem 0; }
.primary-navigation a:hover { color: var(--uz-accent); text-decoration: underline; }
.primary-navigation .current-menu-item > a, .primary-navigation .current_page_item > a { font-weight: 700; color: var(--uz-accent); }
.primary-navigation li{position:relative}
.primary-navigation ul ul{position:absolute;top:100%;left:0;display:none;flex-direction:column;min-width:12rem;padding:.5rem 0;background:var(--uz-surface);border:1px solid var(--uz-border);border-radius:var(--uz-radius);z-index:200}
.primary-navigation ul ul a{display:block;padding:.5rem 1rem}
.primary-navigation li:is(:hover,:focus-within)>ul{display:flex}
.uz-header-dark:not(.has-dark-logo) .custom-logo{filter:invert(1)}
.has-custom-logo .site-title{display:none}
.uz-search-details{position:relative}
.uz-search-details>summary{list-style:none;cursor:pointer;padding:.4rem}
.uz-search-details>summary::-webkit-details-marker{display:none}
.uz-search-details .search-form{position:absolute;top:100%;right:0;width:18rem;padding:.75rem;background:var(--uz-surface);border:1px solid var(--uz-border)}
@media (max-width: 48rem) {
  .menu-toggle { display: block; }
  .primary-navigation { display: none; flex-basis: 100%; }
  .primary-navigation.toggled { display: block; }
  .primary-navigation ul { flex-direction: column; gap: 0.5rem; padding: 0.5rem 0; }
  .primary-navigation ul ul { position: static; display: flex; border: 0; padding: 0 0 0 1rem; }
}

/* Busca no cabeçalho */
.header-search { margin-left: auto; }
.header-search .search-form { display: flex; gap: 0.4rem; }
@media (max-width: 48rem) { .header-search { flex-basis: 100%; margin-left: 0; } }

/* Formulário de busca */
.search-form label { flex: 1; }
.search-field, input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.55rem 0.75rem;
  border: 1px solid var(--uz-border); border-radius: var(--uz-radius); background: var(--uz-bg); color: var(--uz-ink);
}
.search-submit, button, input[type="submit"] {
  font: inherit; font-size: 1rem; padding: 0.55rem 1rem; border: 0; border-radius: var(--uz-radius);
  background: var(--uz-accent); color: #fff; cursor: pointer;
}
.search-submit:hover, button:hover, input[type="submit"]:hover { background: var(--uz-accent-hover); }

/* Listas de posts */
.page-header { margin-bottom: 1.5rem; border-bottom: 1px solid var(--uz-border); padding-bottom: 1rem; }
.page-title { margin: 0; }
.archive-description { color: var(--uz-muted); margin: 0.5rem 0 0; }
.post-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: 0.75rem; }
.post-card .post-thumbnail { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); background: var(--uz-surface); }
.post-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.entry-title { margin: 0; font-size: 1.3rem; }
.entry-title a { color: var(--uz-ink); text-decoration: none; }
.entry-title a:hover { color: var(--uz-accent); text-decoration: underline; }
.entry-meta { font-size: 0.875rem; color: var(--uz-muted); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.entry-meta a { color: var(--uz-muted); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.entry-summary { margin: 0; color: var(--uz-ink); }
.entry-summary p { margin: 0; }
.read-more { font-size: 0.95rem; font-weight: 600; }

/* Post único e páginas */
.entry-header { margin-bottom: 1.5rem; }
.entry-header .entry-title { font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem); }
.post-thumbnail--single { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); background: var(--uz-surface); margin-bottom: 1.5rem; }
.post-thumbnail--single img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { max-width: var(--uz-content); margin: 0 auto; }
.entry-content > :first-child { margin-top: 0; }
.entry-content img { border-radius: var(--uz-radius); }
.entry-content .alignwide { max-width: var(--uz-max); }
.entry-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--uz-border); font-size: 0.9rem; color: var(--uz-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--uz-border); }
.post-navigation a { text-decoration: none; }
.nav-subtitle { display: block; font-size: 0.8rem; color: var(--uz-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Caixa do autor. */
.author-box { display: flex; gap: 1rem; background: var(--uz-surface); border-radius: var(--uz-radius); padding: 1.25rem; margin-top: 2.5rem; }
.author-box .avatar { border-radius: 50%; flex-shrink: 0; }
.author-box h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--uz-muted); }

/* Breadcrumb */
.breadcrumbs { font-size: 0.85rem; color: var(--uz-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--uz-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--uz-ink); }

/* Sidebar / widgets */
.widget-area { display: flex; flex-direction: column; gap: 2rem; }
.widget { margin: 0; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--uz-accent); }
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* Paginação */
.pagination { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--uz-border); border-radius: var(--uz-radius); text-decoration: none; color: var(--uz-ink); }
.pagination .page-numbers.current { background: var(--uz-accent); border-color: var(--uz-accent); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--uz-accent); }

/* Comentários */
.comments-area { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--uz-border); }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.comment-body { display: flex; flex-direction: column; gap: 0.5rem; }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--uz-muted); }
.comment-meta .avatar { border-radius: 50%; }
.comment-content p { margin: 0 0 0.75em; }
.comment-reply-link { font-size: 0.9rem; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; }
.comment-form p { margin-bottom: 1rem; }

/* Nada encontrado / 404 */
.not-found { max-width: var(--uz-content); }
.not-found .page-title { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--uz-border); background: var(--uz-surface); margin-top: auto; }
.site-footer-inner { max-width: var(--uz-max); margin: 0 auto; padding: 2rem 1rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: 0.9rem; color: var(--uz-muted); }
.site-footer a { color: var(--uz-muted); }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* Impressão: sem navegação nem sidebar */
@media print {
  .site-header, .site-footer, .widget-area, .comments-area, .post-navigation, .menu-toggle { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; }
}

/* Anúncios: anti-CLS com altura mínima reservada; sem código, o slot nem é renderizado. */

/* Slot genérico: reserva o espaço, não empurra o texto. */
.uz-ad { position: relative; margin: 1.5rem 0; overflow: hidden; background: #f4f4f2; }
.uz-ad ins.adsbygoogle { display: block; position: relative; z-index: 1; }
/* v1.13.2 — fade do criativo ao pintar e do banner ao aparecer. */
@keyframes uz-ad-fade { from { opacity: 0; } to { opacity: 1; } }
.uz-ad ins.adsbygoogle iframe { animation: uz-ad-fade .45s ease-out; }
.uz-ad:not(.uz-ad--preview)::before { content: "Publicidade"; position: absolute; top: .4rem; left: 50%; transform: translateX(-50%); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #9a9a90; z-index: 0; pointer-events: none; }
.uz-ad--top, .uz-ad--end, .uz-ad--infeed { text-align: center; }
.uz-ad--sidebar { margin: 0 0 2rem; }

/* Controle por dispositivo. */
@media (max-width: 48rem) {
  .uz-ad--desktop-only { display: none; }
}
@media (min-width: 48.01rem) {
  .uz-ad--mobile-only { display: none; }
}

/* Prévia do admin. */
.uz-ad--preview {
  border: 2px dashed #8c8f94;
  background: repeating-linear-gradient(45deg, #f6f7f7, #f6f7f7 10px, #fff 10px, #fff 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.uz-ad__label { font-size: 0.85rem; color: #50575e; font-weight: 600; }

/* Âncora mobile: fixa embaixo, só até 48rem. */
.uz-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--uz-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}
.uz-anchor .uz-ad { margin: 0 auto; max-width: 48rem; }
.uz-anchor__close {
  position: absolute;
  top: -2rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
body.uz-anchor-visible .site-footer { padding-bottom: 4.5rem; }
@media (min-width: 48.01rem) {
  .uz-anchor { display: none; }
}

/* Vinheta: overlay próprio do tema, uma vez por sessão. */
.uz-vignette {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.uz-vignette__box {
  position: relative;
  width: 100%;
  max-width: 40rem;
  background: #fff;
  border-radius: var(--uz-radius);
  padding: 2.5rem 1rem 1rem;
}
.uz-vignette__box .uz-ad { margin: 0; }
.uz-vignette__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #1c1c1c;
  color: #fff;
  border-radius: var(--uz-radius);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Banner de consentimento LGPD: cores explícitas (não herdar o texto do site). */
.uz-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1001;
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  color: #1c1c1c;
  border: 1px solid var(--uz-border);
  border-radius: var(--uz-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  animation: uz-ad-fade .45s ease-out;
}
.uz-consent p { margin: 0 0 0.75rem; color: #1c1c1c; }
.uz-consent .uz-consent__accept,
.uz-consent .uz-consent__refuse {
  padding: 0.6rem 1.25rem;
  border-radius: var(--uz-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.uz-consent .uz-consent__accept { background: var(--uz-accent); color: #fff; border: 1px solid var(--uz-accent); }
.uz-consent .uz-consent__accept:hover { background: var(--uz-accent-hover); }
.uz-consent .uz-consent__refuse { background: #fff; color: #1c1c1c; border: 1px solid #9a9a94; }

/* v1.3.0 — o tema bonito sem Elementor. */

/* Cabeçalho fixo no topo (com respiro para a barra de admin). */
.site-header { position: sticky; top: 0; z-index: 100; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Rodapé escuro, como na prévia do tema. */
.site-footer { background: #1c1c1c; border-top: 0; color: #b9b9b0; }
.site-footer a { color: #f7f7f5; }
.site-footer a:hover { color: #fff; }

/* Selo da primeira categoria. */
.uz-cat-chip { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; background: var(--uz-accent); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 0.3rem 0.7rem; }
.entry-header .uz-cat-chip, .post-card__body .uz-cat-chip { position: static; display: inline-block; margin-bottom: 0.5rem; }

/* Botão em pílula (destaque da home). */

/* Cabeçalho de seção ("Últimos posts", "Você também pode gostar"). */
.uz-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 1.25rem; }
.uz-section-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }

/* Destaque da home: identidade do blog + post mais recente. */
.uz-hero { display: grid; gap: 2rem; align-items: center; padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--uz-border); }
@media (min-width: 48rem) {
  .uz-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.uz-hero__post { position: relative; }
.uz-hero__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.75rem; background: var(--uz-surface); }
.uz-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-hero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; border-radius: 0 0 0.75rem 0.75rem; }
.uz-hero__cap .uz-cat-chip { position: static; display: inline-block; margin-bottom: 0.4rem; }
.uz-hero__post-title { margin: 0 0 0.25rem; font-size: 1.25rem; line-height: 1.3; }
.uz-hero__post-title a { color: var(--uz-hero-title, #fff); text-decoration: none; }
.uz-hero__post-title a:hover { text-decoration: underline; }
.uz-hero__meta { margin: 0; font-size: 0.85rem; opacity: 0.85; }

/* Grade da home: 3 colunas no desktop. */
@media (min-width: 64rem) {
  .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Cards. */
.post-card { border: 1px solid var(--uz-border); border-radius: 0.75rem; overflow: hidden; background: #fff; gap: 0; }
.post-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.post-card .post-thumbnail { position: relative; border-radius: 0; }
.post-card__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__body .entry-title { font-size: 1.15rem; }
.post-card__body .entry-summary { font-size: 0.95rem; color: var(--uz-muted); }
.post-card__body p:last-child { margin-top: auto; margin-bottom: 0; }

/* Post único: tags em pílula; relacionados com grade própria. */
.tags-links a { display: inline-block; background: var(--uz-surface); border: 1px solid var(--uz-border); border-radius: 999px; padding: 0.2rem 0.7rem; margin: 0.15rem 0.25rem 0.15rem 0; text-decoration: none; font-size: 0.85rem; }
.uz-related { margin-top: 3rem; padding-top: 0.5rem; border-top: 1px solid var(--uz-border); }

/* Arquivo e busca: quantos posts há na lista. */
.archive-count { color: var(--uz-muted); font-size: 0.95rem; margin: 0.5rem 0 0; }

/* 404: número grande, busca e últimos posts. */
.not-found { text-align: center; padding: 2rem 0; }
.not-found .uz-404 { font-size: clamp(4rem, 3rem + 8vw, 7rem); font-weight: 800; line-height: 1; color: var(--uz-accent); margin: 0 0 0.5rem; }
.not-found .page-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 1rem; }
.not-found .search-form { max-width: 28rem; margin: 1.5rem auto; }
.not-found .uz-latest { text-align: left; }

/* v1.4.0 — tema premium: cabeçalho escuro, manchetes, rodapé em 3 colunas, barra de progresso. */

/* Cabeçalho escuro (padrão). O claro é o visual base, sem regra. */
.uz-header-dark .site-header { background: #111; border-bottom: 0; }
.uz-header-dark .site-title a { color: #fff; }
.uz-header-dark .site-description { color: #b9b9b0; }
.uz-header-dark .primary-navigation a { color: #e8e8e3; }
.uz-header-dark .primary-navigation a:hover { color: #fff; }
.uz-header-dark .primary-navigation .current-menu-item > a,
.uz-header-dark .primary-navigation .current_page_item > a { color: #8fd6a4; }
.uz-header-dark .primary-navigation ul ul { background: #1a1a1a; border-color: #333; }
.uz-header-dark .uz-search-toggle { color: #e8e8e3; }
.uz-header-dark .menu-toggle { background: #222; border-color: #333; color: #fff; }
.uz-header-dark .header-search .search-field { background: #222; border-color: #333; color: #fff; }
.uz-header-dark .header-search .search-field::placeholder { color: #999; }

/* Manchete grande: imagem larga, sem a coluna de texto (o nome e a
   descrição do blog já estão no cabeçalho). */
.uz-hero { display: block; padding: 0 0 2rem; border-bottom: 0; }
.uz-hero__post { max-width: 100%; }
.uz-hero__thumb { aspect-ratio: 21 / 9; }
.uz-hero__cap { padding: 3rem 1.5rem 1.5rem; }
.uz-hero__post-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); letter-spacing: 0; }

/* Faixa de manchetes: os 3 posts seguintes ao destaque, em
   cartões compactos (miniatura à esquerda, título à direita). */
.uz-headlines { display: grid; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--uz-border); border-bottom: 1px solid var(--uz-border); margin-bottom: 2rem; }
@media (min-width: 48rem) { .uz-headlines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uz-headline { display: flex; gap: 0.75rem; align-items: flex-start; }
.uz-headline__thumb { flex: 0 0 7rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); }
.uz-headline__thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-headline__text { min-width: 0; }
.uz-headline h3 { margin: 0 0 0.25rem; font-size: 1rem; line-height: 1.35; }
.uz-headline h3 a { color: var(--uz-hero-small, var(--uz-ink)); text-decoration: none; }
.uz-headline h3 a:hover { color: var(--uz-accent); text-decoration: underline; }
.uz-headline__meta { margin: 0; font-size: 0.85rem; color: var(--uz-muted); }

/* Título de seção com barra de destaque (padrão G1). */
.uz-section-head { border-left: 4px solid var(--uz-accent); padding-left: 0.75rem; }
.uz-section-head h2 { letter-spacing: 0; }

/* Meta curta no card: uma linha só (data · leitura · comentários). */
.post-card__body .entry-meta { font-size: 0.85rem; }

/* Rodapé premium: colunas (sobre, links, recentes). auto-fit para
   não deixar buraco quando o menu do rodapé não existe. */
.site-footer-inner { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-footer-inner { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.uz-footer-brand { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 800; }
.uz-footer-brand a { color: #fff; text-decoration: none; }
.site-footer p { margin: 0 0 0.75rem; }
.footer-navigation h2, .uz-footer-recent h2 { margin: 0 0 0.75rem; font-size: 1rem; color: #fff; }
.footer-navigation ul { list-style: none; margin: 0; padding: 0; }
.footer-navigation li { margin-bottom: 0.5rem; }
.footer-navigation a { color: #b9b9b0; text-decoration: none; }
.footer-navigation a:hover { color: #fff; text-decoration: underline; }
.uz-footer-recent ul { list-style: none; margin: 0; padding: 0; }
.uz-footer-recent li { margin-bottom: 0.75rem; }
.uz-footer-recent li a { display: flex; gap: 0.75rem; align-items: flex-start; color: #e8e8e3; text-decoration: none; line-height: 1.4; }
.uz-footer-recent li a:hover { color: #fff; text-decoration: underline; }
.uz-footer-recent img { flex: 0 0 4.5rem; width: 4.5rem; height: 3rem; object-fit: cover; border-radius: 0.25rem; }

/* Barra de progresso de leitura (só no post único, só ligada). */
.uz-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1002; }
.uz-progress__bar { display: block; height: 100%; width: 0; background: var(--uz-accent); }

/* Redes de segurança do Customizer (o PHP já não emite o que foi
   desligado; isto cobre qualquer saída de tema-filho). */
.uz-no-chips .uz-cat-chip { display: none; }
.uz-no-reading-time .reading-time { display: none; }

/* ---------------------------------------------------------------
 * v1.5.0 — personalização de layout estilo Elementor. O
 * Customizer agora tem 3 seções (Layout do tema, Home e cards,
 * Post e rodapé) e 17 opções. O CSS reage às classes do <body>
 * que o Customizer coloca: grade com 2 colunas, destaque 16:9
 * e rodapé claro. O resto dos toggles é o PHP que não emite o
 * trecho (resumo, Continuar lendo, comentários, categoria no
 * card, relacionados, caixa do autor).
 * ------------------------------------------------------------ */

/* Grade com 2 colunas (cards maiores). Vale para a home, o
   arquivo, a busca e os relacionados — é a mesma grade. */
@media (min-width: 64rem) { .uz-grid-2 .uz-latest .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Destaque 16:9 (imagem mais alta que o cinema 21:9). */
.uz-hero-16x9 .uz-hero__thumb { aspect-ratio: 16 / 9; }
/* A proporção vale para a imagem grande da grade de revista
 * também (no celular; no computador a grade preenche a célula). */
.uz-hero-21x9 .uz-mag__big-thumb { aspect-ratio: 21 / 9; }

/* Rodapé claro (o padrão é o escuro premium). */
.uz-footer-light .site-footer { background: var(--uz-surface); border-top: 1px solid var(--uz-border); color: var(--uz-muted); }
.uz-footer-light .uz-footer-brand a { color: var(--uz-ink); }
.uz-footer-light .footer-navigation h2, .uz-footer-light .uz-footer-recent h2 { color: var(--uz-ink); }
.uz-footer-light .footer-navigation a { color: var(--uz-muted); }
.uz-footer-light .footer-navigation a:hover { color: var(--uz-accent); }
.uz-footer-light .uz-footer-recent li a { color: var(--uz-ink); }
.uz-footer-light .uz-footer-recent li a:hover { color: var(--uz-accent); }

/* v1.6.0 — seções da home. */

/* Faixa de fundo (largura total) + conteúdo dentro do limite. */
.uz-band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 2.5rem 0; }
.uz-band__inner { max-width: var(--uz-max); margin: 0 auto; padding: 0 1rem; }
.uz-band + .uz-band, .uz-band + .uz-latest, .uz-latest + .uz-band { margin-top: 0; }
.uz-catsec, .uz-threecol, .uz-webstories { margin-bottom: 0; }

/* Grade de revista: 1 grande à esquerda + 4 pequenos em 2x2. */
.uz-mag { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.uz-mag__big { position: relative; border-radius: var(--uz-radius); overflow: hidden; }
.uz-mag__big-thumb { display: block; aspect-ratio: 16 / 9; }
.uz-mag__big-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-mag__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; }
.uz-mag__title { margin: 0; font-size: clamp(1.5rem, 1rem + 2vw, 2rem); }
.uz-mag__title a { color: var(--uz-hero-title, #fff); text-decoration: none; }
.uz-mag__title a:hover { text-decoration: underline; }
.uz-mag__meta { margin: 0.25rem 0 0; font-size: 0.9rem; color: #ddd; }
.uz-mag__small { display: flex; gap: 0.75rem; align-items: flex-start; }
.uz-mag__small-thumb { display: block; width: 7rem; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); }
.uz-mag__small-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-mag__small-text h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.uz-mag__small-text h3 a { color: var(--uz-hero-small, var(--uz-ink)); text-decoration: none; }
.uz-mag__small-text h3 a:hover { color: var(--uz-accent); text-decoration: underline; }
.uz-mag__small-meta { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--uz-muted); }
@media (min-width: 48rem) {
  .uz-mag { grid-template-columns: 1.5fr 1fr 1fr; }
  .uz-mag__big { grid-column: 1; grid-row: 1 / span 2; }
  .uz-mag__big-thumb { aspect-ratio: auto; height: 100%; min-height: 22rem; }
  .uz-mag__small { flex-direction: column; gap: 0.5rem; }
  .uz-mag__small-thumb { width: 100%; }
  .uz-mag--big-estreito { grid-template-columns: 1fr 1fr 1fr; }
  .uz-mag--big-largo { grid-template-columns: 2fr 1fr 1fr; }
  .uz-mag--big-bem-largo { grid-template-columns: 3fr 1fr 1fr; }
  .uz-mag--tres-colunas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uz-mag--tres-colunas .uz-mag__big { grid-column: auto; grid-row: auto; }
  .uz-mag--tres-colunas .uz-mag__big-thumb { min-height: 14rem; }
  .uz-mag--dois-grandes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .uz-mag--dois-grandes .uz-mag__big { grid-column: span 3; grid-row: auto; }
  .uz-mag--dois-grandes .uz-mag__big-thumb { min-height: 16rem; }
  .uz-mag--dois-grandes .uz-mag__small { grid-column: span 2; }
  .uz-mag--grande-lista { grid-template-columns: 1.5fr 1fr; }
  .uz-mag--grande-lista .uz-mag__big { grid-row: 1 / span 3; }
  .uz-mag--grande-lista .uz-mag__small { flex-direction: row; }
  .uz-mag--grande-lista .uz-mag__small-thumb { width: 7rem; }
}

/* Seção por categoria: grade com 2, 3 ou 4 colunas. */
@media (min-width: 64rem) { .post-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Seção por categoria, layout "destaque + lista". */
.uz-catsec--featured { display: grid; gap: 1.5rem; }
.uz-catsec__big-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); margin-bottom: 0.75rem; }
.uz-catsec__big-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-catsec__big h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.uz-catsec__big h3 a { color: var(--uz-ink); text-decoration: none; }
.uz-catsec__big h3 a:hover { color: var(--uz-accent); text-decoration: underline; }
.uz-catsec__item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-top: 1px solid var(--uz-border); }
.uz-catsec__item-thumb { display: block; width: 5.5rem; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); }
.uz-catsec__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-catsec__item-text h4 { margin: 0; font-size: 1rem; line-height: 1.3; }
.uz-catsec__item-text h4 a { color: var(--uz-ink); text-decoration: none; }
.uz-catsec__item-text h4 a:hover { color: var(--uz-accent); text-decoration: underline; }
.uz-catsec__item-meta { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--uz-muted); }
@media (min-width: 48rem) { .uz-catsec--featured { grid-template-columns: 1.4fr 1fr; } .uz-catsec__big { grid-row: 1 / span 4; } }

/* Três colunas de categorias lado a lado. */
.uz-threecol__row { display: grid; gap: 2rem; }
.uz-threecol__big { margin-bottom: 0.5rem; }
.uz-threecol__big a { display: block; }
.uz-threecol__big img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--uz-radius); }
.uz-threecol__big h3 { margin: 0.75rem 0 0.5rem; font-size: 1.15rem; }
.uz-threecol__big h3 a { color: var(--uz-ink); text-decoration: none; }
.uz-threecol__big h3 a:hover { color: var(--uz-accent); text-decoration: underline; }
.uz-threecol__item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-top: 1px solid var(--uz-border); }
.uz-threecol__item-thumb { display: block; width: 5.5rem; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--uz-radius); }
.uz-threecol__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uz-threecol__item-text h4 { margin: 0; font-size: 1rem; line-height: 1.3; }
.uz-threecol__item-text h4 a { color: var(--uz-ink); text-decoration: none; }
.uz-threecol__item-text h4 a:hover { color: var(--uz-accent); text-decoration: underline; }
.uz-threecol__item-meta { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--uz-muted); }
@media (min-width: 48rem) { .uz-threecol__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* WebStories: cartões verticais 9:16, 5 por linha no desktop. */
.uz-webstories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.uz-webstory a { display: block; text-decoration: none; position: relative; border-radius: var(--uz-radius); overflow: hidden; aspect-ratio: 9 / 16; background: var(--uz-surface); }
.uz-webstory img { width: 100%; height: 100%; object-fit: cover; }
.uz-webstory__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem; font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); }
@media (min-width: 48rem) { .uz-webstories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .uz-webstories__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* v1.7.0 — ordem das seções, blocos livres e sidebar na home. */

/* Últimos posts + sidebar lado a lado (desktop). */
.uz-home__cols { display: flex; flex-direction: column; gap: 2rem; }
.uz-home__cols .uz-latest { flex: 1; min-width: 0; }
.uz-home__cols .widget-area { width: 100%; }
@media (min-width: 48rem) {
  .uz-home__cols { flex-direction: row; align-items: flex-start; }
  .uz-home__cols .widget-area { width: 19rem; flex-shrink: 0; }
}

/* Bloco livre: o conteúdo colado pelo dono (HTML/shortcode). */
.uz-free__content > :first-child { margin-top: 0; }
.uz-free__content > :last-child { margin-bottom: 0; }

/* v1.8.0 — blocos livres lado a lado (2 colunas no desktop). */
.uz-free__row { display: grid; gap: 1.5rem; max-width: var(--uz-max); margin: 0 auto; padding: 0 1rem; }
.uz-free__row .uz-free { margin-left: 0; margin-right: 0; display: flex; flex-direction: column; }
.uz-free__row .uz-free .uz-band__inner { padding: 0; flex: 1; display: flex; flex-direction: column; }
.uz-free__row .uz-free__content { flex: 1; }
.uz-free__row .uz-free__content > :last-child { height: 100%; }
@media (min-width: 48rem) {
  .uz-free__row { grid-template-columns: 1fr 1fr; }
}

/* v1.8.2 — cores das seções em variáveis na própria seção
 * (--uz-sec-title e --uz-sec-bg), com fallback para o tema. */
@media (min-width: 48rem) {
  .uz-free__row--2-1 { grid-template-columns: 2fr 1fr; }
  .uz-free__row--1-2 { grid-template-columns: 1fr 2fr; }
}
.uz-sec { background-color: var(--uz-sec-bg, transparent); }
.uz-sec .uz-section-head h2 { color: var(--uz-sec-title, inherit); }
.uz-sec .uz-catsec__big h3 a, .uz-sec .uz-catsec__item-text h4 a, .uz-sec .post-card .entry-title a { color: var(--uz-sec-post, var(--uz-ink)); }
.uz-sec .uz-catsec__big h3 a:hover, .uz-sec .uz-catsec__item-text h4 a:hover, .uz-sec .post-card .entry-title a:hover { color: var(--uz-accent); }
.uz-sec .uz-section-head { border-left-color: var(--uz-sec-title, var(--uz-accent)); }
.uz-latest.uz-sec[style] { padding: 1.25rem 1.5rem; border-radius: 12px; }

/* v1.8.3 — cores por coluna e largura do conteúdo. */
.uz-threecol__col .uz-section-head h2 { color: var(--uz-col-title, inherit); }
.uz-threecol__col .uz-threecol__big h3 a, .uz-threecol__col .uz-threecol__item-text h4 a { color: var(--uz-col-post, var(--uz-ink)); }
.uz-threecol__col .uz-threecol__big h3 a:hover, .uz-threecol__col .uz-threecol__item-text h4 a:hover { color: var(--uz-accent); }
.uz-threecol__col .uz-section-head { border-left-color: var(--uz-col-title, var(--uz-accent)); }
body.uz-width-full { --uz-max: none; }

/* v1.9.0 — rodapé: logo, links na vertical, barra de direitos. */
.site-footer .custom-logo{max-height:none}
.site-footer.uz-footer-invert-logo .custom-logo{filter:invert(1)}
.uz-footer-menu-vertical .footer-navigation ul{flex-direction:column;gap:.25rem}
.site-copyright{background:#111;color:#8a8a80;text-align:center;padding:.75rem 1rem;font-size:.85rem}
.uz-footer-light .site-copyright{background:var(--uz-surface);border-top:1px solid var(--uz-border);color:var(--uz-muted)}

/* v1.10.0 — redes sociais e data no rodapé. */
.uz-footer-social{display:flex;gap:.5rem;margin-top:.25rem}
.uz-footer-social a{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:50%;background:#2b2b2b;color:#e8e8e3}
.uz-footer-social a:hover{background:var(--uz-accent);color:#fff}
.uz-footer-recent-text{display:flex;flex-direction:column}
.uz-footer-recent-date{font-size:.8rem;color:#8a8a80}
.uz-footer-light .uz-footer-recent-date{color:var(--uz-muted)}

/* v1.12.0 — página de post: imagem destacada, compartilhar, "Veja também", sidebar à esquerda. */
.uz-single-featured-medium .post-thumbnail--single { max-width: var(--uz-content); margin-left: auto; margin-right: auto; }
.uz-single-featured-none .post-thumbnail--single { display: none; }
.uz-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--uz-border); }
.uz-share > span { font-weight: 600; }
.uz-share a { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--uz-surface); color: var(--uz-text); border: 1px solid var(--uz-border); }
.uz-share a:hover { background: var(--uz-accent); border-color: var(--uz-accent); color: #fff; }
.uz-veja-tambem { margin: 2rem 0; padding: 1.25rem; background: var(--uz-surface); border: 1px solid var(--uz-border); border-radius: var(--uz-radius); }
.uz-veja-tambem h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.uz-veja-tambem ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.uz-veja-tambem li a { display: flex; gap: .75rem; align-items: center; text-decoration: none; color: var(--uz-text); }
.uz-veja-tambem li img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: calc(var(--uz-radius) / 2); flex-shrink: 0; }
.uz-veja-tambem li a:hover span { text-decoration: underline; }
@media (min-width: 64rem) {
  .uz-sidebar-left.has-sidebar .site-content { grid-template-columns: 19rem minmax(0, 1fr); }
  .uz-sidebar-left .content-area { grid-column: 2; }
  .uz-sidebar-left .widget-area { grid-column: 1; grid-row: 1; }
}

/* v1.13.0 — página de post como os blogs grandes: coluna centralizada, capa com teto, trilho de compartilhar. */
.single .content-area { max-width: 75rem; margin: 0 auto; }
.single .entry-header { max-width: var(--uz-content); margin: 0 auto 1.5rem; }
.single .entry-footer { max-width: var(--uz-content); margin-left: auto; margin-right: auto; }
.single .uz-share { max-width: var(--uz-content); margin-left: auto; margin-right: auto; }
.uz-share--rail { display: none; }
@media (min-width: 86rem) {
  .single:not(.has-sidebar) .uz-share--rail { display: flex; position: fixed; left: calc(50% - 37.5rem - 4.5rem); top: 50%; transform: translateY(-50%); flex-direction: column; margin: 0; padding: 0; border: 0; gap: .5rem; z-index: 5; }
}
