/* ===================================================================
   VOZ & PODER — GHOST THEME v2
   Réplica do layout de referência (Base44)
=================================================================== */

:root {
  --red: #A82020;
  --black: #111111;
  --gray: #666666;
  --gray-light: #999999;
  --cream-1: #E8E3DA;
  --cream-2: #F6F1E7;
  --line: #E4DFD5;
  --gold: #B8962E;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1400px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream-2);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 18px; } }

/* ---------------- TOP BAR (data/hora + social) ---------------- */
.top-bar {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--gray);
}
.top-bar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 8px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar .updated { color: var(--gray); }
.top-bar .updated strong { color: var(--red); font-weight: 700; }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { color: var(--black); opacity: 0.75; }
.top-bar-social a:hover { opacity: 1; color: var(--red); }
@media (max-width: 700px) { .top-bar-inner { padding: 8px 18px; font-size: 10.5px; } .top-bar .updated span:first-child { display:none; } }

/* ---------------- HEADER ---------------- */
.site-header { background: var(--cream-2); border-bottom: 1px solid var(--black); }
.site-header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 40px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark-svg { width: 46px; height: 46px; }
.brand-word { font-family: var(--serif); font-weight: 800; font-size: 21px; line-height: 1.05; color: var(--black); }
.brand-word span { color: var(--red); }

.site-nav { display: flex; gap: 26px; flex: 1; justify-content: center; flex-wrap: wrap; }
.site-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--black); padding: 6px 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--red); border-bottom-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-search { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--black); cursor: pointer; }
.btn-newsletter {
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 4px; white-space: nowrap;
}
.btn-newsletter:hover { opacity: 0.9; }

.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .site-nav { display: none; width: 100%; order: 4; flex-direction: column; }
  .site-nav.open { display: flex; }
  .site-header-inner { flex-wrap: wrap; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--black); border-radius: 4px;
    padding: 6px 10px; font-size: 12px; margin-left: auto;
  }
}

/* ---------------- TYPOGRAPHY ---------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--black); margin: 0; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--red); display: inline-block;
}
.meta { font-size: 12.5px; color: var(--gray-light); }
.is-analises h1, .is-analises .card-title, .is-analises .mini-title { font-style: italic; color: var(--gold); }
.is-analises .eyebrow { color: var(--gold); }

/* ---------------- HOME HERO GRID ---------------- */
.hero-grid { display: grid; grid-template-columns: 1.7fr 1.35fr 1fr; gap: 28px; padding: 28px 0 44px; align-items: stretch; }
@media (max-width: 1150px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-feature { position: relative; display: block; border-radius: 4px; overflow: hidden; background: var(--cream-2); }
.hero-feature.has-image { aspect-ratio: 3 / 2; }   /* capa 1536x1024 preenche sem cortar tag/logo */
.hero-feature.no-image { min-height: 420px; }
.hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-feature .tag-destaque {
  position: absolute; top: 18px; left: 18px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; padding: 6px 12px; border-radius: 3px; z-index: 2;
}
.hero-feature-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 26px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.86) 10%, rgba(0,0,0,0.45) 65%, rgba(0,0,0,0) 100%);
}
.hero-feature h2 { color: #fff; font-size: 25px; line-height: 1.18; margin-bottom: 10px; }
.hero-feature h2 a { color: #fff; }
.hero-feature p.excerpt { color: #E7E2D8; font-size: 13.5px; margin: 0 0 14px; max-width: 90%; }
.hero-byline { display: flex; align-items: center; gap: 8px; color: #D8D2C6; font-size: 12.5px; }
.hero-byline .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; overflow:hidden;
}
.hero-byline .avatar img { width:100%; height:100%; object-fit:cover; }

/* Middle numbered stories */
.hero-stories { display: flex; flex-direction: column; gap: 0; }
.story-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.story-row:first-child { padding-top: 0; }
.story-thumb { position: relative; width: 96px; height: 72px; border-radius: 3px; overflow: hidden; background: var(--cream-1); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-num {
  position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-family: var(--serif);
  font-weight: 700; font-size: 13px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}
.story-body .eyebrow { display: block; margin-bottom: 4px; }
.story-body h3 { font-size: 15.5px; line-height: 1.25; margin: 0 0 6px; }
.story-body h3 a:hover { color: var(--red); }

/* Mais lidas sidebar */
.mais-lidas { border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; height: 100%; }
.mais-lidas-title {
  font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--black); margin-bottom: 14px;
}
.mais-lidas-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mais-lidas-item:first-child { padding-top: 0; }
.mais-lidas-num { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--red); line-height: 1; }
.mais-lidas-item h4 { font-family: var(--sans); font-weight: 600; font-size: 13.5px; line-height: 1.3; margin-bottom: 4px; }
.mais-lidas-item h4 a:hover { color: var(--red); }
.btn-vertodas {
  margin-top: 16px; text-align: center; border: 1px solid var(--red); color: var(--red);
  font-size: 12.5px; font-weight: 700; padding: 10px; border-radius: 3px;
}
.btn-vertodas:hover { background: var(--red); color: #fff; }

/* ---------------- 5-COLUMN SECTION GRID ---------------- */
.sections-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px;
  padding: 36px 0 50px; border-top: 1px solid var(--line);
}
@media (max-width: 1150px) { .sections-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .sections-grid { grid-template-columns: repeat(2, 1fr); } }
.section-col-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-col-head h3 {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.section-col-head a { font-size: 11.5px; font-weight: 700; color: var(--red); white-space: nowrap; }
.section-col { min-width: 0; }
.section-col-image { display: block; width: 100%; aspect-ratio: 4/3; border-radius: 3px; overflow: hidden; background: var(--cream-1); margin-bottom: 12px; }
.section-col-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section-col h4.card-title { font-size: 15px; line-height: 1.28; margin-bottom: 6px; }
.section-col h4.card-title a:hover { color: var(--red); }
.section-col .meta { display: block; margin-bottom: 12px; }
.section-col-related { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.section-col-related li { position: relative; padding: 0 0 10px 14px; font-size: 12.5px; line-height: 1.35; }
.section-col-related li::before { content: "•"; color: var(--red); position: absolute; left: 0; top: 0; }
.section-col-related a:hover { color: var(--red); }
.section-col-related .meta { display: block; margin: 2px 0 0; font-size: 11px; }

/* ---------------- NEWSLETTER BANNER ---------------- */
.newsletter-banner {
  background: var(--cream-1); border-radius: 6px; padding: 30px 36px; margin-bottom: 44px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.newsletter-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px;
}
.newsletter-text { flex: 1; min-width: 240px; }
.newsletter-text h3 { font-size: 19px; margin-bottom: 4px; }
.newsletter-text p { font-size: 13.5px; color: var(--gray); margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 6px; }
.newsletter-form-row { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--sans);
  font-size: 13.5px; min-width: 240px;
}
.newsletter-form button {
  background: var(--red); color: #fff; border: none; padding: 12px 24px; border-radius: 4px;
  font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.9; }
.newsletter-form .fineprint { font-size: 11px; color: var(--gray-light); }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--cream-2); border-top: 3px solid var(--black); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand-word { font-family: var(--serif); font-weight: 800; font-size: 19px; }
.footer-brand-word span { color: var(--red); }
.footer-brand p { font-size: 12.5px; color: var(--gray); margin: 10px 0 14px; max-width: 240px; line-height: 1.5; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: var(--black); opacity: 0.7; }
.footer-social a:hover { opacity: 1; color: var(--red); }
.footer-col h4 {
  font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--black); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13px; color: var(--gray); padding: 5px 0; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--gray-light); flex-wrap: wrap; gap: 10px;
}

/* ---------------- POST / TAG (reused from base) ---------------- */
.post-hero { padding: 48px 0 0; max-width: 780px; margin: 0 auto; }
.post-hero h1 { font-size: 38px; line-height: 1.12; margin: 10px 0; }
.post-hero .excerpt { font-size: 16.5px; color: var(--gray); margin: 12px 0; }
.post-hero .meta { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-feature-image { max-width: 960px; margin: 0 auto 8px; border-radius: 4px; overflow: hidden; }
.image-credit { max-width: 960px; margin: 0 auto 36px; font-size: 11.5px; color: var(--gray-light); text-align: right; padding: 0 4px; }
.post-content { max-width: 720px; margin: 0 auto; padding-bottom: 56px; font-size: 17px; }
.post-content p { margin: 0 0 22px; }
.post-content h2 { font-size: 25px; margin: 36px 0 14px; }
.post-content h3 { font-size: 19px; margin: 30px 0 12px; }
.post-content blockquote { border-left: 3px solid var(--red); margin: 26px 0; padding: 4px 0 4px 20px; font-family: var(--serif); font-size: 18px; font-style: italic; }
.post-content img { border-radius: 4px; margin: 8px 0 4px; }
.post-content a { color: var(--red); border-bottom: 1px solid rgba(168,32,32,0.35); }
.post-tags { max-width: 720px; margin: 0 auto 56px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-tags a { font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--cream-1); padding: 6px 12px; border-radius: 20px; }
.post-tags a:hover { background: var(--red); color: #fff; }

.section-header { padding: 40px 0 20px; border-bottom: 1px solid var(--line); }
.section-header h1 { font-size: 32px; margin-bottom: 6px; }
.section-header p { color: var(--gray); font-size: 14.5px; max-width: 640px; }
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 32px 0 70px; }
.section-grid article { min-width: 0; }
.section-card-image { display: block; width: 100%; aspect-ratio: 3/2; border-radius: 3px; overflow: hidden; background: var(--cream-1); margin-bottom: 12px; }
.section-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .section-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .section-grid { grid-template-columns: 1fr; } }
.pagination { display: flex; justify-content: center; gap: 16px; padding: 20px 0 60px; font-size: 13px; }
.pagination a { font-weight: 700; color: var(--red); }

/* ============================================================
   Ghost Koenig editor — classes de largura e mídia (cards)
   Necessárias para imagens "wide"/"full", galerias e embeds
   inseridos no editor do Ghost. Calibradas para .post-content
   (720px de texto) e a identidade Voz & Poder.
   ============================================================ */

/* imagens e figuras dentro do conteúdo */
.post-content .kg-card { margin: 8px 0 24px; }
.post-content figure { margin: 24px 0; }
.post-content figcaption { text-align: center; font-size: 12.5px; color: var(--gray-light); padding-top: 8px; }
.post-content .kg-image { border-radius: 4px; display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* largura REGULAR: acompanha o texto (720px) */
.post-content .kg-width-regular { }

/* largura WIDE: um pouco mais larga que o texto, como a capa (960px) */
.post-content .kg-width-wide { position: relative; width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; }
.post-content .kg-width-wide img { max-width: 100%; }

/* largura FULL: ocupa a largura da tela */
.post-content .kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.post-content .kg-width-full img { width: 100%; max-width: 100vw; border-radius: 0; }

/* galeria de imagens do Ghost */
.post-content .kg-gallery-container { display: flex; flex-direction: column; max-width: 960px; margin: 24px auto; }
.post-content .kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; }
.post-content .kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; }

/* card com legenda de largura cheia precisa reposicionar o texto */
.post-content .kg-width-full.kg-card-hascaption figcaption { max-width: 720px; margin: 0 auto; padding: 8px 4px 0; }

/* embeds (vídeo, twitter etc.) */
.post-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* botão do Ghost (kg-button-card), na cor da marca */
.post-content .kg-button-card { display: flex; justify-content: center; margin: 24px 0; }
.post-content .kg-btn { display: inline-block; padding: 10px 22px; border-radius: 4px; font-weight: 700; font-size: 14px; background: var(--red); color: #fff; }
