/* ==========================================================
   CADERNOFINANCEIRO — JORNAL DIGITAL
   Estilo: Financial Times / NYT — denso, editorial, clássico
   Paleta: Verde-petróleo · Dourado · Azul-petróleo · Branco-gelo
   Fontes: Roboto Serif (títulos) · Roboto (UI/corpo)
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARS CLARO ── */
:root {
  --bg:           #f8fafc;
  --bg-card:      #ffffff;
  --bg-tinted:    #f1f5f9;
  --text:         #0f172a;
  --text-muted:   #334155;
  --text-light:   #64748b;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --gold:         #0f766e;
  --gold-light:   #ccfbf1;
  --crimson:      #0f766e;
  --ink:          #0f172a;
  --header-bg:    #111827;
  --header-text:  #f8fafc;
  --font:           'Lora', Georgia, serif;
  --font-ui:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow:         0 2px 10px rgba(15,23,42,.05);
  --shadow-md:      0 8px 24px rgba(15,23,42,.08);
  /* compat post.php / sidebar.php */
  --primary:        #0f766e;
  --primary-mid:    #115e59;
  --primary-light:  #ccfbf1;
  --radius:         4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --charcoal:       #111827;

  /* ── ESCALA TIPOGRÁFICA ── */
  --fs-cat:         .68rem;   /* categoria/label (todos os cards) */
  --fs-meta:        .72rem;   /* data, autor, tempo relativo */
  --fs-sub:         .78rem;   /* subtítulo/resumo sidebar e cards menores */
  --fs-sub-lg:      .85rem;   /* subtítulo post card (coluna larga) */
  --fs-title-xs:    .92rem;   /* título sidebar (alertas, mais lidas) */
  --fs-title-sm:    1.05rem;  /* título grid secundário e col stories */
  --fs-title-md:    1.15rem;  /* título post card e cf-latest full */
  --fs-title-lg:    1.28rem;  /* título card colunistas */
  --fs-title-xl:    2.6rem;   /* manchete hero */
}

/* ── VARS ESCURO ── */
[data-theme="dark"] {
  --bg:           #071311;
  --bg-card:      #0f1f1c;
  --bg-tinted:    #102522;
  --text:         #f8fafc;
  --text-muted:   #cbd5e1;
  --text-light:   #94a3b8;
  --border:       #28453f;
  --border-light: #1e3934;
  --gold:         #2dd4bf;
  --gold-light:   #123c36;
  --crimson:      #0f766e;
  --ink:          #f8fafc;
  --header-bg:    #111827;
  --header-text:  #f8fafc;
}

/* ── BASE ── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════
   HEADER — FAIXA DE TOPO + NAV JORNAL
══════════════════════════════════════════ */

/* Faixa institucional de destaque */
.site-topbar {
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: .28rem 1.25rem;
  gap: 1rem;
}
.topbar-left { justify-self: start; }
.topbar-brand { justify-self: center; }
.topbar-cta { justify-self: end; }
.topbar-date { opacity: .8; }
.topbar-brand { letter-spacing: .18em; font-size: .68rem; }
.topbar-cta a {
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: .08rem .55rem;
  border-radius: 2px;
  font-size: .63rem;
  transition: background .15s;
}
.topbar-cta a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
@media (max-width: 540px) {
  .topbar-date { display: none; }
  .topbar-brand { display: none; }
  .site-topbar { justify-content: center; }
}

/* Masthead (logo + tagline) */
.site-masthead {
  background: var(--header-bg);
  border-bottom: 3px double var(--border);
  padding: .8rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.masthead-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-decoration: none;
  grid-column: 2;
  grid-row: 1;
}
.masthead-tagline {
  grid-column: 1;
  grid-row: 1;
  order: -1;
  font-family: var(--font);
  font-size: .78rem;
  font-style: italic;
  color: rgba(248,250,252,.45);
  white-space: nowrap;
  letter-spacing: .01em;
}
.masthead-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  justify-content: flex-end;
  grid-column: 3;
  grid-row: 1;
}
.masthead-logo:hover { text-decoration: none; }
.masthead-logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(1.05);
}
.masthead-btn-sub {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #ffffff;
  padding: .38rem 1rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.masthead-btn-sub:hover { opacity: .85; text-decoration: none; color: #ffffff; }
.masthead-btn-account {
  font-family: var(--font-ui);
  font-size: .73rem;
  font-weight: 600;
  color: rgba(248,250,252,.75);
  text-decoration: none;
}
.masthead-btn-account:hover { color: var(--gold-light); text-decoration: none; }
.dark-toggle {
  background: rgba(248,250,252,.08);
  border: 1px solid rgba(248,250,252,.15);
  color: rgba(248,250,252,.7);
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 2px;
  font-size: .9rem;
  line-height: 1;
  transition: background .15s;
}
.dark-toggle:hover { background: rgba(248,250,252,.15); }
.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(248,250,252,.2);
  color: rgba(248,250,252,.8);
  font-size: 1rem;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 2px;
}

/* NAV de editorias (linha abaixo do masthead) */
.site-nav {
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(26,18,8,.07);
}
@media (max-width: 800px) {
  .site-nav { display: none; }
}
.site-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
@media (min-width: 801px) {
  .site-nav-inner { justify-content: center; }
}
.site-nav-inner::-webkit-scrollbar { display: none; }
.site-nav-inner a {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: .6rem .9rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
  display: block;
}
.site-nav-inner a:hover { color: var(--text); text-decoration: none; }
.site-nav-inner a.active { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav-inner a.nav-sep {
  color: var(--border);
  padding: 0;
  cursor: default;
  font-weight: 300;
  font-size: .9rem;
  user-select: none;
}
.site-nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  padding-left: 1rem;
  flex-shrink: 0;
}
.site-nav-search input {
  width: 0;
  padding: .3rem 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: .72rem;
  outline: none;
  transition: width .25s ease, border-color .25s ease, padding .25s ease;
}
.site-nav-search:focus-within input,
.site-nav-search input:not(:placeholder-shown) {
  width: 130px;
  padding: .3rem .4rem;
  border-bottom-color: var(--gold);
}
.site-nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: .3rem .3rem;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.site-nav-search button:hover { color: var(--gold); }
@media (max-width: 800px) { .site-nav-search { display: none; } }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #1e293b;
  border-top: 1px solid rgba(248,250,252,.07);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(248,250,252,.8);
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 500;
  padding: .6rem 1.25rem;
  border-bottom: 1px solid rgba(248,250,252,.05);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav a.nav-gold { color: var(--gold); font-weight: 700; }

/* AD header */
.ad-header {
  text-align: center;
  padding: .4rem;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: #0f1117;
  margin-top: 0;
  border-top: 1px solid #1e2330;
  padding: 1.75rem 1.25rem 1.25rem;
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e5e7eb;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.25rem;
}
.footer-nav a {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: #6b7280;
  text-decoration: none;
  transition: color .15s;
}
.footer-nav a:hover { color: #e5e7eb; }
.footer-copy {
  font-family: var(--font-ui);
  font-size: .68rem;
  color: #374151;
  border-top: 1px solid #1e2330;
  padding-top: .9rem;
  width: 100%;
  text-align: center;
}
.footer-copy a { color: #4b5563; text-decoration: none; }
.footer-copy a:hover { color: #9ca3af; }


/* ══════════════════════════════════════════
   ARTIGO / POST INDIVIDUAL
══════════════════════════════════════════ */
.post-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}
.post-wrap.no-sidebar { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 900px) {
  .post-wrap { grid-template-columns: 1fr; }
}

/* Cabeçalho do post */
.post-header { margin-bottom: 1rem; }
.post-category a {
  font-family: var(--font-ui);
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold);
  border-left: 3px solid var(--gold); padding-left: .45rem;
  text-decoration: none;
}
.post-category { margin-bottom: .5rem; }

.post-header h1, .post-title {
  font-family: var(--font);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin: .4rem 0 .5rem;
  letter-spacing: -.02em;
}
@media (max-width: 600px) {
  .post-header h1, .post-title { font-size: 1.45rem; }
}

.post-subtitle {
  font-family: var(--font);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: .75rem;
  line-height: 1.5;
}

/* Metadados */
.post-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-light);
  padding: .6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.post-meta strong { color: var(--text-muted); font-weight: 600; }
.post-author-byline {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600;
}
.post-author-avatar {
  width: 28px !important; height: 28px !important;
  border-radius: 50%; object-fit: cover; border: 2px solid var(--border);
  flex-shrink: 0;
}
.post-author-initial {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}

/* Imagem de capa */
.post-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin-bottom: .35rem;
}
.post-img-caption {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Corpo do post */
.post-content, .post-body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text);
}
.post-content p, .post-body p { margin-bottom: 1.1em; }
.post-content p:last-child, .post-body p:last-child { margin-bottom: 0; }
.post-content h2, .post-body h2 {
  font-family: var(--font);
  font-size: 1.35rem; margin: 1.75rem 0 .6rem; font-weight: 700;
  color: var(--text);
}
.post-content h3, .post-body h3 {
  font-family: var(--font);
  font-size: 1.1rem; margin: 1.4rem 0 .5rem; font-weight: 700;
  color: var(--text);
}
.post-content blockquote, .post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: .65rem 1.2rem;
  margin: 1.25rem 0;
  background: var(--bg-tinted);
  font-style: italic;
  color: var(--text-muted);
}
.post-content img, .post-body img { margin: 1rem 0; max-width: 100%; }
.post-content ul, .post-body ul,
.post-content ol, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.1em; }
.post-content li, .post-body li { margin-bottom: .35em; }
.post-content a, .post-body a { color: var(--gold); }
.post-content strong, .post-body strong { font-weight: 700; }

/* Compartilhar */
.share-block { margin: 1.75rem 0 1.25rem; }
.share-block h4 {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-light);
  margin-bottom: .6rem;
}
.share-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.share-btn {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  padding: .35rem .75rem; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted);
  text-decoration: none; border-radius: 2px; cursor: pointer;
  transition: background .15s, color .15s;
}
.share-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Bio do autor */
.author-bio-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-tinted); border: 1px solid var(--border);
  padding: 1rem 1.1rem; margin-top: 1.5rem;
}
.author-bio-box img {
  width: 64px !important; height: 64px !important;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.author-bio-box > div:first-child { /* initial circle */ }
.author-info h4 {
  font-family: var(--font); font-size: .95rem; font-weight: 700; margin-bottom: .2rem;
}
.author-info h4 a { color: var(--text); }
.author-info p { font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin: 0; }


/* ══════════════════════════════════════════
   BUSCA — página /busca
══════════════════════════════════════════ */
.search-page-form {
  display: flex;
  gap: .5rem;
  margin: 1.25rem 0 1.75rem;
}
.search-page-form input {
  flex: 1;
  padding: .65rem .9rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.search-page-form input:focus { border-color: var(--gold); }
[data-theme="dark"] .search-page-form input { background: var(--bg-tinted); border-color: #334155; }
.search-page-form button {
  padding: .65rem 1.25rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.search-page-form button:hover { opacity: .88; }

/* ══════════════════════════════════════════
   PÁGINA DE LISTAGEM (categorias, busca…)
══════════════════════════════════════════ */
.listing-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}
.listing-wrap.no-sidebar { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 900px) { .listing-wrap { grid-template-columns: 1fr; } }

.listing-header {
  border-bottom: 3px double var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
}
.listing-header h1 {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.listing-header p {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* Card de post em listagem */
.list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { text-decoration: none; }
.list-thumb {
  width: 120px; height: 80px;
  object-fit: cover; display: block; flex-shrink: 0;
}
.list-thumb-ph {
  width: 120px; height: 80px; background: var(--bg-tinted); flex-shrink: 0;
}
.list-cat {
  font-family: var(--font-ui);
  font-size: .6rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .15rem;
}
.list-title {
  font-family: var(--font);
  font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--text);
}
.list-item:hover .list-title { color: var(--gold); }
.list-sub {
  font-family: var(--font-ui);
  font-size: .75rem; color: var(--text-muted); line-height: 1.4; margin-top: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-meta {
  font-family: var(--font-ui);
  font-size: .63rem; color: var(--text-light); margin-top: .3rem; display: block;
}

/* ══════════════════════════════════════════
   PAGINAÇÃO
══════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .25rem; margin: 1.75rem 0; font-family: var(--font-ui);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: all .15s;
}
.pagination a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pagination .active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pagination .pg-dots { border: none; background: none; width: auto; color: var(--text-light); }

/* ══════════════════════════════════════════
   PREMIUM / PAYWALL
══════════════════════════════════════════ */
.premium-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  background: var(--gold-light); border: 1px solid var(--gold);
  color: #6a4c00; font-family: var(--font-ui); font-size: .65rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: .15rem .55rem; margin-bottom: .4rem;
}
[data-theme="dark"] .premium-badge { background: #2a1e04; color: var(--gold); }
.paywall-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); padding: 2rem 1.5rem; text-align: center; margin: 1.5rem 0;
}
.paywall-inner h3 { font-family: var(--font); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.paywall-inner p { font-family: var(--font-ui); font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.paywall-btn-primary {
  display: inline-block; padding: .6rem 1.35rem; background: var(--gold); color: var(--ink);
  font-family: var(--font-ui); font-weight: 700; font-size: .82rem; text-decoration: none; border-radius: 2px;
}
.paywall-btn-primary:hover { opacity: .85; text-decoration: none; color: var(--ink); }
.paywall-btn-secondary {
  display: inline-block; padding: .6rem 1.35rem; background: transparent;
  border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-ui); font-size: .82rem; text-decoration: none; border-radius: 2px; margin-left: .5rem;
}
.paywall-btn-secondary:hover { background: var(--bg-tinted); text-decoration: none; }

/* ══════════════════════════════════════════
   AUTHOR / COLUNISTAS
══════════════════════════════════════════ */
.author-block { text-align: center; }
.author-block .author-photo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .6rem; border: 2px solid var(--gold);
}
.author-block .author-name { font-family: var(--font); font-weight: 700; font-size: .95rem; margin-bottom: .15rem; }
.author-block .author-bio  { font-family: var(--font-ui); font-size: .78rem; color: var(--text-muted); font-style: italic; margin-bottom: .6rem; line-height: 1.45; }
.author-socials { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.author-socials a {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tinted); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem; text-decoration: none; transition: background .15s, color .15s;
}
.author-socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.columnists-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.columnist-card {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--bg-card); padding: 1rem 1.1rem;
  text-decoration: none; color: inherit; transition: background .15s;
}
.columnist-card:hover { background: var(--bg-tinted); text-decoration: none; }
.columnist-card-photo {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border); background: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.columnist-card-photo img { width: 64px; height: 64px; object-fit: cover; }
.columnist-card-photo span { color: #ffffff; font-size: 1.3rem; font-weight: 700; font-family: var(--font); }
.columnist-card-name { font-family: var(--font); font-size: .92rem; font-weight: 700; margin-bottom: .1rem; }
.columnist-card-role { font-family: var(--font-ui); font-size: .65rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.columnist-card-bio  { font-family: var(--font-ui); font-size: .75rem; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ══════════════════════════════════════════
   PODCAST
══════════════════════════════════════════ */
.podcast-list { display: flex; flex-direction: column; gap: 0; }
.podcast-card {
  display: flex; gap: .9rem; padding: .85rem 0; align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
}
.podcast-card:last-child { border-bottom: none; }
.podcast-card-cover {
  flex-shrink: 0; width: 80px; height: 80px; background: var(--bg-tinted);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.podcast-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.podcast-card-title { font-family: var(--font); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; line-height: 1.3; }
.podcast-card-desc  { font-family: var(--font-ui); font-size: .78rem; color: var(--text-muted); margin-bottom: .35rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.podcast-card-meta  { font-family: var(--font-ui); font-size: .68rem; color: var(--text-light); margin-bottom: .4rem; }
.podcast-audio { width: 100%; max-width: 400px; height: 32px; accent-color: var(--gold); }
.podcast-download-btn {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  color: var(--gold); border: 1px solid var(--gold); padding: .2rem .55rem;
  text-decoration: none; transition: background .15s, color .15s;
}
.podcast-download-btn:hover { background: var(--gold); color: var(--ink); }

/* ══════════════════════════════════════════
   COMENTÁRIOS
══════════════════════════════════════════ */
.comments-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 3px double var(--border); }
.comments-title { font-family: var(--font); font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.comments-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.75rem; }
.comment-item { display: flex; gap: .65rem; align-items: flex-start; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.comment-body { flex: 1; background: var(--bg-card); border: 1px solid var(--border-light); padding: .7rem .9rem; }
.comment-author { font-family: var(--font-ui); font-weight: 700; font-size: .8rem; }
.comment-date   { font-family: var(--font-ui); font-size: .67rem; color: var(--text-light); margin-left: .5rem; }
.comment-text   { font-family: var(--font); font-size: .85rem; line-height: 1.65; margin-top: .3rem; }
.comment-form textarea {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: .83rem;
  line-height: 1.5; resize: vertical; outline: none; border-radius: 0; transition: border-color .15s;
}
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .45rem; flex-wrap: wrap; }
.comment-hint { font-family: var(--font-ui); font-size: .68rem; color: var(--text-light); }
.comment-form button {
  padding: .45rem 1rem; background: var(--ink); color: var(--gold-light);
  border: none; font-family: var(--font-ui); font-weight: 700; font-size: .78rem; cursor: pointer;
}
.comment-form button:hover { background: var(--gold); color: var(--ink); }


/* ══════════════════════════════════════════
   BUSCA
══════════════════════════════════════════ */
.search-form { display: flex; gap: .35rem; }
.search-form input {
  flex: 1; padding: .45rem .7rem; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: .83rem;
  border-radius: 0; outline: none; transition: border-color .15s;
}
.search-form input:focus { border-color: var(--gold); }
.search-form button {
  padding: .45rem .75rem; background: var(--ink); color: var(--gold-light);
  border: none; cursor: pointer; font-family: var(--font-ui); font-size: .83rem; font-weight: 700;
}
.search-form button:hover { background: var(--gold); color: var(--ink); }

/* ══════════════════════════════════════════
   ALERTS / AVISOS
══════════════════════════════════════════ */
.alert-list { list-style: none; }
.alert-list li { padding: .45rem 0; border-bottom: 1px solid var(--border-light); }
.alert-list li:last-child { border-bottom: none; }
.alert-list a { font-family: var(--font-ui); font-size: .8rem; color: var(--text); font-weight: 500; display: block; line-height: 1.35; }
.alert-list a:hover { color: var(--gold); text-decoration: none; }
.alert-date { font-family: var(--font-ui); font-size: .63rem; color: var(--text-light); margin-top: .1rem; }

/* ══════════════════════════════════════════
   COOKIE
══════════════════════════════════════════ */
#cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .9rem 1.25rem;
  background: var(--ink) !important;
  color: rgba(248,250,252,.8) !important;
  border-top: 2px solid var(--gold);
}
#cookie-banner.show { display: flex; }
#cookie-banner a { color: var(--gold) !important; }
#cookie-banner button {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: .5rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   MISC
══════════════════════════════════════════ */
.ad-slot { overflow: hidden; }
.site-main { max-width: 1300px; margin: 0 auto; padding: 1.5rem 1.25rem; display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; }
.site-main.no-sidebar { grid-template-columns: 1fr; max-width: 900px; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; }
@media (max-width: 900px) { .site-main { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .hamburger { display: flex; }
  .masthead-btn-sub { font-size: .65rem; padding: .32rem .75rem; }
}
@media (max-width: 420px) {
  .masthead-btn-account { display: none; }
  .site-masthead { padding: .6rem .75rem; gap: .5rem; }
}

/* ══════════════════════════════════════════
   SIDEBAR — blocos laterais (post, listagens)
══════════════════════════════════════════ */
.sidebar-block {
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem 1rem 1rem;
  margin-bottom: 1.1rem;
}
[data-theme="dark"] .sidebar-block { background: rgba(255,255,255,.03); border-color: #334155; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-block h3,
.sidebar-title {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--text-light);
  padding-bottom: .4rem;
  margin-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
  display: block;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: .1rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  font-family: var(--font-ui); font-size: .82rem;
  color: var(--text); font-weight: 500;
  text-decoration: none; line-height: 1.35;
}
.sidebar-list a:hover { color: var(--gold); }
.sidebar-list .meta { font-size: .67rem; color: var(--text-light); }

/* ── Mais lidas & Alertas (sidebar global) ── */
.cf-most-item {
  display: flex; gap: .7rem; padding: .55rem .4rem;
  margin: 0 -.4rem; border-radius: 6px;
  text-decoration: none; color: inherit; align-items: center;
  transition: background .15s;
}
.cf-most-item + .cf-most-item { margin-top: .1rem; }
.cf-most-item:hover { background: rgba(37,99,235,.06); text-decoration: none; }
.cf-most-num {
  font-family: var(--font-ui);
  font-size: .8rem; font-weight: 800; line-height: 1;
  color: var(--gold); flex-shrink: 0; width: 1.6rem; text-align: center;
}
.cf-most-item:nth-child(1) .cf-most-num,
.cf-most-item:nth-child(2) .cf-most-num,
.cf-most-item:nth-child(3) .cf-most-num {
  color: #fff; background: var(--gold); border-radius: 50%;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center; font-size: .78rem;
}
.cf-most-title {
  font-family: var(--font); font-size: var(--fs-title-xs); font-weight: 700;
  line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cf-most-item:hover .cf-most-title { color: var(--gold); }

.cf-alert-item {
  padding: .5rem 0; border-bottom: 1px solid var(--border-light);
  display: block; text-decoration: none; color: inherit;
}
[data-theme="dark"] .cf-alert-item { border-bottom-color: #1e293b; }
.cf-alert-item:last-child { border-bottom: none; }
.cf-alert-title {
  font-family: var(--font); font-size: var(--fs-title-xs); font-weight: 700;
  line-height: 1.3; color: var(--text);
}
.cf-alert-item:hover .cf-alert-title { color: var(--gold); }
.cf-alert-date {
  font-family: var(--font-ui); font-size: var(--fs-meta);
  color: var(--text-light); margin-top: .2rem;
}

/* ── CABEÇALHO DO POST ── */
.post-header { margin-bottom: 1.25rem; }
.post-category { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.post-category a {
  font-family: var(--font-ui);
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: #fff;
  background: var(--gold); padding: .2rem .6rem;
  border-radius: 2px; text-decoration: none; transition: opacity .15s;
}
.post-category a:hover { opacity: .85; }
.post-header h1, .post-title {
  font-family: var(--font); font-size: 2.15rem; font-weight: 700;
  line-height: 1.18; color: var(--text); margin: 0 0 .75rem; letter-spacing: -.01em;
}
@media (max-width: 600px) { .post-header h1, .post-title { font-size: 1.55rem; } }
.post-subtitle {
  font-family: var(--font); font-size: 1.1rem; font-style: italic;
  color: var(--text-muted); margin-bottom: 1rem; line-height: 1.55;
  border-left: 3px solid var(--border); padding-left: .85rem;
}

/* ── METADADOS ── */
.post-meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: .75rem; color: var(--text-light);
  padding: .75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-meta strong { color: var(--text-muted); font-weight: 600; }
.post-author-byline { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--text); }
.post-author-avatar { width: 32px !important; height: 32px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; }
.post-author-initial {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.post-meta-sep { color: var(--border); }

/* ── IMAGEM DE CAPA ── */
.post-featured-img {
  width: 100%; height: auto; max-height: 500px; object-fit: cover; display: block;
  border-radius: 4px; margin-bottom: 1.75rem; box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.post-featured-img.has-caption { border-radius: 4px 4px 0 0; margin-bottom: 0; }
.post-img-caption {
  font-family: var(--font-ui); font-size: .72rem; color: var(--text-light); font-style: italic;
  margin-bottom: 1.75rem; padding: .45rem .75rem; background: var(--bg-tinted);
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 4px 4px; line-height: 1.4;
}

/* ── CORPO DO POST ── */
.post-content, .post-body {
  font-family: var(--font); font-size: 1.05rem; line-height: 1.85; color: var(--text);
}
.post-content p, .post-body p { margin-bottom: 1.25em; }
.post-content p:last-child, .post-body p:last-child { margin-bottom: 0; }
.post-content h2, .post-body h2 {
  font-family: var(--font); font-size: 1.45rem; margin: 2rem 0 .65rem; font-weight: 700;
  color: var(--text); padding-bottom: .4rem; border-bottom: 2px solid var(--border);
}
.post-content h3, .post-body h3 {
  font-family: var(--font); font-size: 1.2rem; margin: 1.6rem 0 .5rem; font-weight: 700; color: var(--text);
}
.post-content blockquote, .post-body blockquote {
  border-left: 4px solid var(--gold); padding: .85rem 1.25rem; margin: 1.75rem 0;
  background: var(--bg-tinted); border-radius: 0 4px 4px 0;
  font-style: italic; font-size: 1.08rem; color: var(--text-muted);
}
.post-content img, .post-body img { margin: 1.5rem 0; max-width: 100%; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.post-content ul, .post-body ul, .post-content ol, .post-body ol { padding-left: 1.6rem; margin-bottom: 1.25em; }
.post-content li, .post-body li { margin-bottom: .45em; }
.post-content a, .post-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-content strong, .post-body strong { font-weight: 700; }

/* ── COMPARTILHAR ── */
.share-block { margin: 2rem 0 1.5rem; padding: 1.1rem 1.25rem; background: var(--bg-tinted); border-radius: 6px; border: 1px solid var(--border); }
.share-block h4 { font-family: var(--font-ui); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-light); margin-bottom: .75rem; }
.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn { font-family: var(--font-ui); font-size: .73rem; font-weight: 600; padding: .4rem .85rem; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); text-decoration: none; border-radius: 20px; cursor: pointer; transition: all .15s; }
.share-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-twitter:hover  { background: #000; border-color: #000; }
.share-telegram:hover { background: #0088cc; border-color: #0088cc; }
.share-linkedin:hover { background: #0077b5; border-color: #0077b5; }

/* ── BIO DO AUTOR ── */
.author-bio-box { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 0 0 6px 6px; padding: 1.25rem 1.4rem; margin-top: 2rem; }
.author-bio-box img { width: 72px !important; height: 72px !important; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.author-info h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin-bottom: .2rem; color: var(--text); }
.author-info h4 a { color: var(--text); text-decoration: none; }
.author-info h4 a:hover { color: var(--gold); }
.author-info p { font-family: var(--font-ui); font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ── COMENTÁRIOS ── */
.comments-section { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 3px solid var(--gold); }
.comments-title { font-family: var(--font); font-size: 1.05rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text); }
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.comment-item { display: flex; gap: .75rem; align-items: flex-start; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.comment-body { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; border-top-left-radius: 0; padding: .75rem 1rem; }
.comment-header { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .3rem; }
.comment-author { font-family: var(--font-ui); font-weight: 700; font-size: .82rem; color: var(--text); }
.comment-date { font-family: var(--font-ui); font-size: .67rem; color: var(--text-light); }
.comment-text { font-family: var(--font); font-size: .87rem; line-height: 1.65; color: var(--text); }
.comment-form { margin-top: 1.25rem; }
.comment-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--text); font-family: var(--font-ui); font-size: .85rem; line-height: 1.5; resize: vertical; outline: none; transition: border-color .15s; }
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; flex-wrap: wrap; }
.comment-hint { font-family: var(--font-ui); font-size: .7rem; color: var(--text-light); }
.comment-form button { padding: .45rem 1.1rem; background: var(--gold); color: #fff; border: none; border-radius: 4px; font-family: var(--font-ui); font-weight: 700; font-size: .78rem; cursor: pointer; transition: opacity .15s; }
.comment-form button:hover { opacity: .85; }
.comment-success { background: #f0fdf4; border: 1px solid #86efac; border-radius: 6px; padding: .65rem .9rem; font-family: var(--font-ui); font-size: .8rem; color: #166534; margin-bottom: .9rem; }
.comment-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 6px; padding: .65rem .9rem; font-family: var(--font-ui); font-size: .8rem; color: #991b1b; margin-bottom: .9rem; }
.comments-empty { font-family: var(--font-ui); font-size: .82rem; color: var(--text-light); font-style: italic; }
.comment-login-prompt { background: var(--bg-tinted); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-ui); font-size: .82rem; color: var(--text-muted); }
.comment-login-prompt div { display: flex; gap: .5rem; flex-wrap: wrap; }
.comment-login-prompt a { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; padding: .35rem .85rem; border-radius: 4px; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--bg-card); transition: all .15s; }
.comment-login-prompt a:hover { border-color: var(--gold); color: var(--gold); }
.comment-subscribe-btn { background: var(--gold) !important; color: #fff !important; border-color: var(--gold) !important; }

/* ── PREVISÃO DO TEMPO (sidebar do post) ── */
.weather-location { font-family: var(--font-ui); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .6rem; }
.weather-content { font-family: var(--font-ui); }
.weather-loading { font-size: .78rem; color: var(--text-light); font-style: italic; }
.weather-now { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.weather-main { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.weather-icon { font-size: 2.4rem; line-height: 1; }
.weather-temp { font-family: var(--font); font-size: 2.2rem; font-weight: 700; color: var(--text); line-height: 1; }
.weather-desc { font-size: 1rem; font-weight: 600; color: var(--text-muted); text-align: right; }
.weather-stats { display: flex; justify-content: space-between; gap: .5rem; background: var(--bg-card); border-radius: 6px; padding: .55rem .8rem; margin-bottom: .7rem; }
[data-theme="dark"] .weather-stats { background: rgba(255,255,255,.05); }
.w-stat { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-light); font-weight: 500; }
.w-stat-icon { font-size: .95rem; }
.weather-forecast { display: flex; gap: .25rem; border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .2rem; }
.forecast-day { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.fc-day { font-size: .62rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); }
.fc-icon { font-size: 1.1rem; line-height: 1; }
.fc-temps { font-size: .68rem; color: var(--text-muted); }
.fc-temps strong { color: var(--text); }
.rain { font-size: .6rem; color: #3b82f6; }

/* ── MOBILE AJUSTES ── */
@media (max-width:800px) {
  .site-logo, .brand-logo, .logo { display:block !important; max-height:48px !important; }
  footer, .site-footer { padding:20px 14px !important; }
  .site-footer .container, footer .container { gap:12px !important; }
  .site-footer h3, .site-footer h4, footer h3, footer h4 { font-size:1rem !important; }
}
/* ── Mobile masthead fix ── */
@media (max-width: 768px) {
  .site-masthead {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: .55rem .9rem !important;
    gap: .4rem !important;
  }
  .masthead-logo {
    display: inline-flex !important;
    grid-column: unset !important;
    grid-row: unset !important;
    order: 0 !important;
    flex-shrink: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .masthead-actions {
    grid-column: unset !important;
    grid-row: unset !important;
    order: 1 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
}

/* ── Post Cards (listagens: arquivo, categoria, colunista, busca) ── */
.post-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card:last-of-type { border-bottom: none; }
.post-card-img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.post-card-body { flex: 1; min-width: 0; }
.post-card-category {
  font-family: var(--font-ui);
  font-size: var(--fs-cat);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
  margin-bottom: .3rem;
}
.post-card-title {
  font-family: var(--font);
  font-size: var(--fs-title-md);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .35rem;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--gold); text-decoration: none; }
.post-card-subtitle {
  font-family: var(--font-ui);
  font-size: var(--fs-sub-lg);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 .5rem;
}
.post-card-meta {
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  color: var(--text-light);
  display: flex;
  gap: 1rem;
}

@media (max-width: 560px) {
  .post-card { flex-direction: column; }
  .post-card-img { width: 100%; height: 180px; }
}

/* ── Helpers usados nas páginas de listagem ── */
.section-label {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .5rem;
  display: inline-block;
}
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.font-ui { font-family: var(--font-ui); }

.author-info { flex: 1; min-width: 0; }
.author-bio-box img { border-radius: 50%; object-fit: cover; }


/* ── Grid de posts com imagem (página do colunista) ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.post-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.post-grid-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.post-grid-img-link { display: block; }
.post-grid-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.post-grid-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--gold-light);
  color: var(--gold);
}
.post-grid-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.post-grid-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 .4rem;
}
.post-grid-title a { color: var(--text); }
.post-grid-title a:hover { color: var(--gold); text-decoration: none; }
.post-grid-subtitle {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 .6rem;
  flex: 1;
}

@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
}
/* Esconder widget nativo do Google Translate */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
.goog-te-balloon-frame,
.goog-logo-link { display: none !important; }
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }

/* ── Seletor de idiomas da faixa superior ── */
.topbar-left {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.masthead-languages{
 display:flex;
 align-items:center;
 gap:.35rem;
 margin-right:1rem;
}
.masthead-languages .language-btn{
 background:transparent;
 color:#fff;
 border:1px solid rgba(255,255,255,.6);
 border-radius:3px;
 font-size:.62rem;
 font-weight:700;
 padding:.22rem .45rem;
 cursor:pointer;
}
.masthead-languages .language-btn.active{
 background:#ca8a04;
 color:#111;
 border-color:#ca8a04;
}
/* Idiomas à esquerda, logo centralizado e ações à direita */
.site-masthead{
  grid-template-columns: 1fr auto 1fr;
}
.masthead-languages{
  grid-column:1;
  grid-row:1;
  justify-self:start;
  display:flex;
  align-items:center;
  gap:.35rem;
  margin:0;
  font-family:var(--font-ui);
  font-style:normal;
  white-space:nowrap;
}
.masthead-languages .language-btn{
  min-width:auto;
  height:auto;
  padding:0;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.92);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.05em;
}
.masthead-languages .language-btn:hover,
.masthead-languages .language-btn:focus-visible{
  background:transparent;
  color:#d4a017;
}
.masthead-languages .language-btn.active{
  background:transparent;
  color:#d4a017;
  border:0;
}
.language-separator{
  color:rgba(255,255,255,.45);
  font-size:.7rem;
}
.masthead-actions{
  grid-column:3;
  justify-self:end;
}
@media (max-width:768px){
  .site-masthead{
    grid-template-columns:auto 1fr auto;
    gap:.75rem;
  }
  .masthead-languages{
    grid-column:1;
  }
  .masthead-logo{
    grid-column:2;
  }
  .masthead-actions{
    grid-column:3;
  }
}
@media (max-width:560px){
  .masthead-languages{
    gap:.22rem;
  }
  .masthead-languages .language-btn{
    font-size:.6rem;
  }
  .language-separator{
    font-size:.6rem;
  }
}

/* ══════════════════════════════════════════
   MASTHEAD V4 — ACESSIBILIDADE + IDIOMAS
   Esquerda: A+ A− contraste e idiomas
   Centro: logo
   Direita: assinar e tema
══════════════════════════════════════════ */
.site-masthead {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.masthead-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  font-family: var(--font-ui);
  white-space: nowrap;
}
.accessibility-controls {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.accessibility-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.94);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 .2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: color .15s, background .15s, outline-color .15s;
}
.accessibility-btn:hover,
.accessibility-btn:focus-visible {
  color: #dfff00;
  background: rgba(255,255,255,.08);
  outline: 1px solid rgba(212,160,23,.65);
  outline-offset: 1px;
}
.accessibility-btn[aria-pressed="true"] {
  color: #111;
  background: #d4a017;
}
.masthead-left .masthead-languages {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  font-style: normal;
}
.masthead-logo { grid-column: 2; grid-row: 1; }
.masthead-actions { grid-column: 3; grid-row: 1; justify-self: end; }

/* Alto contraste */
html[data-contrast="high"] {
  --bg: #000000;
  --bg-tinted: #000000;
  --surface: #000000;
  --text: #ffffff;
  --text-muted: #ffffff;
  --text-light: #f2f2f2;
  --border: #ffffff;
  --gold: #ffff00;
  --gold-light: #ffff66;
  --header-bg: #000000;
}
html[data-contrast="high"] body,
html[data-contrast="high"] .site-nav,
html[data-contrast="high"] .site-footer,
html[data-contrast="high"] .post-card,
html[data-contrast="high"] .sidebar,
html[data-contrast="high"] .home-main,
html[data-contrast="high"] .home-column {
  background: #000 !important;
  color: #fff !important;
}
html[data-contrast="high"] a,
html[data-contrast="high"] .category-label,
html[data-contrast="high"] .section-kicker {
  color: #ffff00 !important;
}
html[data-contrast="high"] img {
  filter: contrast(1.12);
}
html[data-contrast="high"] .site-topbar {
  background: #000 !important;
  border-bottom: 2px solid #ffff00;
}
html[data-contrast="high"] .site-nav,
html[data-contrast="high"] .site-masthead,
html[data-contrast="high"] article,
html[data-contrast="high"] section,
html[data-contrast="high"] aside {
  border-color: #fff !important;
}
html[data-contrast="high"] .contrast-btn {
  color: #111 !important;
  background: #ffff00 !important;
}

@media (max-width: 900px) {
  .site-masthead { gap: .8rem; padding-left: .75rem; padding-right: .75rem; }
  .masthead-left { gap: .45rem; }
  .accessibility-controls { gap: .12rem; }
  .accessibility-btn { min-width: 1.4rem; font-size: .65rem; }
  .masthead-left .masthead-languages { gap: .2rem; }
  .masthead-left .language-btn, .language-separator { font-size: .6rem; }
}
@media (max-width: 700px) {
  .site-masthead {
    grid-template-columns: auto 1fr auto;
    gap: .55rem;
  }
  .masthead-left { gap: .3rem; }
  .accessibility-btn { min-width: 1.25rem; padding: 0 .08rem; }
  .language-separator { display: none; }
  .masthead-left .masthead-languages { gap: .15rem; }
  .masthead-left .language-btn { font-size: .56rem; }
  .masthead-btn-sub { padding-left: .65rem; padding-right: .65rem; }
}
@media (max-width: 560px) {
  .site-masthead {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "left left";
    row-gap: .55rem;
  }
  .masthead-logo { grid-area: logo; grid-column: auto; justify-self: start; }
  .masthead-actions { grid-area: actions; grid-column: auto; }
  .masthead-left {
    grid-area: left;
    grid-column: auto;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .45rem;
  }
}
/* Mobile */
@media (max-width: 768px) {

    /* Oculta acessibilidade e idiomas */
    .masthead-left,
    .masthead-accessibility,
    .masthead-languages {
        display: none !important;
    }

    /* Mantém logo e ações bem alinhados */
    .site-masthead {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .masthead-logo {
        flex: 1;
    }

    .masthead-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}


/* ══════════════════════════════════════════
   CORREÇÃO FINAL — CATEGORIAS NA NOVA PALETA
══════════════════════════════════════════ */
.post-category a,
.post-card-category,
.list-cat,
.category-label,
.card-category,
.news-category,
.hero-category,
.section-kicker,
.post-kicker,
.entry-category,
.article-category,
[class*="category-label"],
[class*="card-category"],
[class*="post-category"] {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Categorias exibidas como selo preenchido */
.post-category a,
.category-label.badge,
.category-badge,
.news-category.badge,
.article-category.badge {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* Hover das categorias */
.post-category a:hover,
.category-badge:hover,
.category-label:hover,
.post-card-category:hover,
.list-cat:hover,
.card-category:hover,
.news-category:hover,
.hero-category:hover,
.section-kicker:hover {
  color: var(--primary-mid) !important;
  border-color: var(--primary-mid) !important;
}

/* Selo preenchido no hover */
.post-category a:hover,
.category-badge:hover,
.category-label.badge:hover,
.news-category.badge:hover,
.article-category.badge:hover {
  background: var(--primary-mid) !important;
  color: #ffffff !important;
}

/* Remove azul residual */
.cf-most-item:hover {
  background: rgba(15, 118, 110, .07) !important;
}

/* Modo escuro */
[data-theme="dark"] .post-card-category,
[data-theme="dark"] .list-cat,
[data-theme="dark"] .category-label,
[data-theme="dark"] .card-category,
[data-theme="dark"] .news-category,
[data-theme="dark"] .hero-category,
[data-theme="dark"] .section-kicker {
  color: #2dd4bf !important;
}
