/*
Theme Name:   Radar Político
Theme URI:    https://oradarpolitico.com
Author:       O Radar Político
Description:  Tema jornalístico customizado para O Radar Político
Version:      5.0
Text Domain:  radar-politico
*/

/* ========================================
   VARIÁVEIS
   ======================================== */

:root {
  --laranja:        #FF6B35;
  --laranja-hover:  #FF8A5C;
  --laranja-claro:  #FF9B77;
  --laranja-opaco:  #CC7A5C;
  --preto:          #0A0A0A;
  --cinza-escuro:   #1A1A1A;
  --cinza-medio:    #2A2A2A;
  --branco:         #FFFFFF;
  --branco-puro:    #FFFFFF;
  --cinza-claro:    #B8C5D6;
  --cinza-terciario:#8A96A8;
  --texto-meta:     #666666;
  --fonte-titulo:   'Roboto Slab', serif;
  --fonte-corpo:    'Open Sans', -apple-system, sans-serif;
  --whatsapp:       #25D366;
  --facebook:       #1877F2;
  --twitter:        #000000;
  --linkedin:       #0A66C2;
  --telegram:       #0088CC;
}

/* ========================================
   RESET
   ======================================== */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-corpo);
  background: var(--preto);
  color: var(--branco);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Links nunca ficam azuis */
a                { color: inherit; text-decoration: none; }
a:visited        { color: inherit; }
a:hover          { color: var(--laranja); }

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-container,
.site-content,
.post-item,
.single-post,
article {
  max-width: 100%;
  overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  padding: 0;
  width: 100%;
  background: var(--preto);
  border-bottom: 2px solid var(--laranja);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-branding {
  text-align: center;
  padding: 0;
  width: 100%;
  overflow: hidden;
  display: block;
}

.site-branding a { display: inline-block; }

.site-logo {
  width: 100%;
  display: block;
  overflow: hidden;
}

/* Banner horizontal (ex: 1366x189) — escala proporcional em qualquer tela */
.site-logo a {
  display: block;
  width: 100%;
}

.site-logo img,
.site-logo a img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* custom_logo gerado pelo WP — sobrescreve width/height inline */
.custom-logo {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}

.site-title,
.site-title a {
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--branco);
  text-decoration: none;
  margin: 0;
}

.site-description { display: none; }

/* ========================================
   MENU HAMBURGER
   ======================================== */

.menu-toggle {
  display: block;
  background: var(--cinza-escuro);
  border: none;
  color: var(--branco);
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-toggle:before {
  content: "☰ ";
  font-size: 18px;
  margin-right: 6px;
  color: var(--laranja);
}

.menu-toggle:hover { background: var(--cinza-medio); }

.main-navigation {
  background: var(--cinza-escuro);
  padding: 0;
  width: 100%;
  display: none;
}

.main-navigation.toggled { display: block; }

.main-navigation ul,
.nav-menu {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li { border-bottom: 1px solid #333; }

.main-navigation a {
  font-family: var(--fonte-corpo);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--branco);
  text-decoration: none;
  padding: 10px 14px;
  display: block;
  transition: background 0.2s ease;
}

.main-navigation a:visited { color: var(--branco); }

.main-navigation a:hover {
  background: var(--cinza-medio);
  color: var(--laranja);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }

  .main-navigation {
    display: block;
    padding: 6px 10px;
  }

  .main-navigation ul,
  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .main-navigation li { border: none; }

  .main-navigation a {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* ========================================
   BREADCRUMB
   ======================================== */

.single .breadcrumb,
.single .breadcrumbs { display: none; }

.breadcrumb,
.breadcrumbs {
  background: var(--cinza-escuro);
  padding: 6px 10px;
  margin: 8px 10px;
  font-size: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.single .entry-header { display: none; }

/* ========================================
   LAYOUT
   ======================================== */

.site-content {
  padding: 6px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.post-item,
.single-post {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--cinza-escuro);
}

.post-item { display: flex; flex-direction: column; }

@media (min-width: 600px)  { .site-content { padding: 12px; } .post-item, .single-post { padding: 14px; } }
@media (min-width: 1024px) { .site-content { padding: 16px; } .post-item, .single-post { padding: 20px; } }

/* ========================================
   HOME - LISTA DE POSTS
   ======================================== */

.post-item .post-meta {
  order: 1;
  font-family: var(--fonte-corpo);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-meta);
  margin-bottom: 6px;
}

@media (min-width: 600px) { .post-item .post-meta { font-size: 9px; } }

.post-item .post-categories { display: none; }

.post-item .post-title {
  order: 2;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  font-size: 24px;
}

.post-item .post-title a,
.post-item .post-title a:link,
.post-item .post-title a:visited,
.post-item .post-title a:active {
  color: var(--laranja);
  text-decoration: none;
}

.post-item .post-title a:hover { color: var(--laranja-hover); }

@media (min-width: 600px)  { .post-item .post-title { font-size: 29px; } }
@media (min-width: 1024px) { .post-item .post-title { font-size: 34px; } }

.post-item .post-thumbnail {
  order: 3;
  position: relative;
  margin: 0 0 8px 0;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.post-item .post-thumbnail a { display: block; }

.post-item .post-thumbnail img {
  max-width: 100%;
  height: auto;
  width: 100%;
  display: block;
  border-radius: 8px;
}

.post-item .read-more { display: none; }

.post-item .post-excerpt {
  order: 4;
  font-family: var(--fonte-corpo);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 0;
  font-style: italic;
}

.post-item .post-excerpt a,
.post-item .post-excerpt a:link,
.post-item .post-excerpt a:visited,
.post-item .post-excerpt a:active {
  color: var(--cinza-terciario);
  text-decoration: none;
  display: block;
}

.post-excerpt p { margin: 0; }

@media (min-width: 600px)  { .post-item .post-excerpt { font-size: 14px; } }
@media (min-width: 1024px) { .post-item .post-excerpt { font-size: 15px; } }

/* ========================================
   PAGINAÇÃO
   ======================================== */

.pagination {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 16px auto;
  padding: 0;
  width: 100%;
  list-style: none;
}

.pagination a,
.pagination span,
.pagination .page-numbers {
  background: var(--cinza-medio);
  color: var(--branco);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
}

.pagination a:visited { color: var(--branco); }
.pagination a:hover   { background: var(--laranja); }
.pagination .current,
.pagination span.current { background: var(--laranja); }

.pagination .prev,
.pagination .next {
  text-transform: uppercase;
  font-size: 11px;
  padding: 8px 12px;
}

.pagination .dots {
  background: transparent;
  border: none;
  color: var(--cinza-claro);
  padding: 8px 6px;
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post {
  display: flex;
  flex-direction: column;
}

/* Ordem dos elementos no single */
.single-post .post-categories  { order: 1; }
.single-post-title              { order: 2; }
.single-post .post-summary      { order: 3; }
.single-post .post-meta         { order: 4; }
.social-share-container         { order: 6; }   /* botões APÓS a foto */
.single-post .post-thumbnail    { order: 5; }
.single-post .post-content,
.single-post .entry-content     { order: 7; }
.post-tags-footer               { order: 8; }
.post-navigation                { order: 9; }

/* 1. Categorias */
.single-post .post-categories {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 6px 0;
  padding: 0;
}

.single-post .post-categories a,
.single-post .post-categories a:visited {
  font-family: var(--fonte-corpo);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--laranja);
  color: var(--branco);
  padding: 3px 8px;
  text-decoration: none;
  line-height: 1.2;
  display: inline-block;
}

/* 2. Título */
.single-post-title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--laranja);
  line-height: 1.3;
  font-size: 27px;
  margin: 0 0 8px 0;
}

@media (min-width: 600px)  { .single-post-title { font-size: 31px; } }
@media (min-width: 1024px) { .single-post-title { font-size: 39px; } }

/* 3. Resumo */
.single-post .post-summary {
  font-family: var(--fonte-corpo);
  font-size: 16px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 700;
  color: var(--branco);
  margin: 0 0 10px 0;
  padding: 0;
}

@media (min-width: 600px)  { .single-post .post-summary { font-size: 17px; } }
@media (min-width: 1024px) { .single-post .post-summary { font-size: 18px; } }

/* 4. Data */
.single-post .post-meta {
  font-size: 8px;
  margin: 0 0 8px 0;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-meta);
}

@media (min-width: 600px) { .single-post .post-meta { font-size: 9px; } }

/* 5. Foto */
.single-post .post-thumbnail {
  margin: 0 0 8px 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.single-post .post-thumbnail img {
  max-width: 100%;
  height: auto;
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* 6. Conteúdo */
.post-author, .byline, .author { display: none; }

/* ========================================
   BOTÕES SOCIAIS - SÓ ÍCONES, CIRCULARES
   ======================================== */

.social-share-container {
  background: var(--cinza-escuro);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px solid #333;
}

.social-share-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.social-share-header svg  { color: var(--laranja); flex-shrink: 0; }

.social-share-header span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--branco);
  letter-spacing: 0.1em;
  font-family: var(--fonte-corpo);
}

/* Linha horizontal de ícones */
.social-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0;
}

/* Botão circular — tamanho proporcional à largura do container */
.social-btn {
  width: 13%;
  aspect-ratio: 1 / 1;
  max-width: 40px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  color: transparent;
}

.social-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* Cores */
.social-btn.whatsapp { background: var(--whatsapp); }
.social-btn.facebook  { background: var(--facebook);  }
.social-btn.twitter   { background: var(--twitter);   }
.social-btn.linkedin  { background: var(--linkedin);  }
.social-btn.telegram  { background: var(--telegram);  }

.social-btn.copy {
  background: var(--cinza-medio);
  border: 1px solid #444;
}

.social-btn.copy svg      { color: var(--cinza-claro); }
.social-btn.copy:hover    { background: var(--laranja); border-color: var(--laranja); }
.social-btn.copy:hover svg { color: #fff; }
.social-btn.copy.copied   { background: var(--whatsapp); border-color: var(--whatsapp); }
.social-btn.copy.copied svg { color: #fff; }

/* Visitados: sem mudança de cor */
.social-btn:link,
.social-btn:visited,
.social-btn:active { color: transparent; }

/* ========================================
   TAGS NO RODAPÉ - discretas
   ======================================== */

.post-tags-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 0;
  margin: 4px 0 16px 0;
  background: transparent;
  border: none;
}

.post-tags-footer svg { display: none; }

.post-tags-footer .tags-label {
  font-family: var(--fonte-corpo);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
}

.post-tags-footer a,
.post-tags-footer a:link,
.post-tags-footer a:visited {
  font-family: var(--fonte-corpo);
  font-size: 9px;
  color: #555;
  text-decoration: none;
  background: rgba(255,107,53,0.07);
  border-radius: 3px;
  padding: 2px 5px;
  transition: all 0.2s ease;
  display: inline;
}

.post-tags-footer a:hover {
  background: var(--laranja);
  color: #fff;
}

/* ========================================
   CORPO DE TEXTO
   ======================================== */

.post-content,
.entry-content,
.post-content p,
.entry-content p {
  font-family: var(--fonte-corpo);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  color: var(--cinza-claro);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

@media (min-width: 1024px) {
  .post-content p,
  .entry-content p { font-size: 20px; line-height: 1.75; }
}

.post-content strong, .entry-content strong,
.post-content b,      .entry-content b      { color: var(--branco-puro); font-weight: 700; }

.post-content em, .entry-content em,
.post-content i,  .entry-content i          { color: var(--branco-puro); font-style: italic; }

/* Links no corpo do texto */
.post-content a,
.post-content a:link,
.post-content a:visited,
.post-content a:active {
  color: var(--laranja);
  text-decoration: underline;
}

.post-content a:hover { color: var(--laranja-hover); }

/* ========================================
   INTERTÍTULOS
   ======================================== */

.post-content h2, .entry-content h2 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 24px;
  color: var(--laranja-opaco);
  line-height: 1.4;
  margin: 16px 0 10px 0;
}

.post-content h3, .entry-content h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 20px;
  color: var(--laranja-opaco);
  line-height: 1.4;
  margin: 12px 0 8px 0;
}

@media (min-width: 1024px) {
  .post-content h2, .entry-content h2 { font-size: 31px; }
  .post-content h3, .entry-content h3 { font-size: 26px; }
}

/* ========================================
   BLOCKQUOTE
   ======================================== */

.post-content blockquote,
.entry-content blockquote {
  background: var(--cinza-medio);
  border-left: 4px solid var(--laranja);
  padding: 14px 18px;
  margin: 20px 0;
  font-family: var(--fonte-corpo);
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: var(--branco);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.post-content blockquote p,
.entry-content blockquote p { color: var(--branco); margin: 0; }

@media (min-width: 600px) {
  .post-content blockquote,
  .entry-content blockquote { font-size: 17px; padding: 18px 22px; }
}

/* ========================================
   IMAGENS E LEGENDAS
   ======================================== */

.post-content figure, .entry-content figure { margin: 0 0 8px 0; width: 100%; }

.post-content img, .entry-content img {
  max-width: 100%;
  height: auto;
  width: 100%;
  display: block;
  margin: 0 auto 2px;
  border-radius: 8px;
}

.wp-caption, figcaption, .wp-element-caption {
  max-width: 100%;
  margin: 0 0 12px 0;
  background: transparent;
  border: none;
  padding: 0;
}

.wp-caption-text,
figcaption,
.wp-element-caption {
  font-family: var(--fonte-corpo);
  font-size: 10px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 700;
  color: var(--texto-meta);
  text-align: left;
  margin: 0;
  padding: 2px 0 0 0;
}

/* ========================================
   EMBEDS
   ======================================== */

.post-content iframe,
.post-content embed,
.post-content video {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 16px 0;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* YouTube via Gutenberg wp-block-embed */
.post-content .wp-block-embed-youtube,
.post-content figure.wp-block-embed {
  margin: 16px 0 !important;
  width: 100% !important;
}

/* O wrapper do Gutenberg JÁ aplica aspect-ratio via padding-top
   mas o iframe precisa de position:absolute para preencher */
.post-content .wp-block-embed__wrapper {
  position: relative !important;
  width: 100% !important;
  /* Remove padding fantasma quando não há aspect-ratio definido */
}

.post-content .wp-block-embed__wrapper iframe {
  position: relative !important; /* Gutenberg controla o layout */
  width: 100% !important;
  height: auto !important;
  min-height: 250px !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  border: none !important;
}

/* ========================================
   POSTS RELACIONADOS E POPULARES
   ======================================== */

.related-posts,
.popular-posts {
  background: var(--laranja);
  padding: 10px 12px;
  margin: 16px 0;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}

.related-posts-title,
.popular-posts-title {
  font-family: var(--fonte-corpo);
  font-size: 15px;
  font-weight: 700;
  color: var(--branco-puro);
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.related-posts ul,
.popular-posts ul  { list-style: none; margin: 0; padding: 0; }

.related-posts li,
.popular-posts li  { margin: 0 0 4px 0; padding: 0 0 4px 0; line-height: 1.3; }

.related-posts li:last-child,
.popular-posts li:last-child { margin-bottom: 0; padding-bottom: 0; }

.related-posts li::before,
.popular-posts li::before { content: "▪ "; color: var(--preto); font-weight: 700; margin-right: 4px; }

.related-posts a,
.related-posts a:visited,
.popular-posts a,
.popular-posts a:visited {
  font-family: var(--fonte-corpo);
  font-size: 15px;
  line-height: 1.4;
  color: var(--preto);
  text-decoration: none;
  font-weight: 600;
  display: inline;
}

.related-posts a:hover,
.popular-posts a:hover { color: var(--cinza-escuro); text-decoration: underline; }

/* ========================================
   NAVEGAÇÃO ENTRE POSTS
   ======================================== */

.post-navigation,
.nav-links {
  background: var(--cinza-escuro);
  border: 2px solid var(--laranja);
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-previous, .nav-next { display: flex; flex-direction: column; }

.nav-previous a,
.nav-previous a:visited,
.nav-next a,
.nav-next a:visited {
  font-family: var(--fonte-corpo);
  text-decoration: none;
  color: var(--cinza-claro);
  transition: color 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover { color: var(--laranja); }

.nav-subtitle {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-meta);
  margin-bottom: 4px;
  display: block;
  font-family: var(--fonte-corpo);
}

.nav-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  font-family: var(--fonte-corpo);
}

.nav-next { text-align: right; }

@media (max-width: 599px) {
  .post-navigation, .nav-links { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
  width: 100%;
  background: var(--cinza-escuro);
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
}

.sidebar-title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--laranja);
}

.sidebar ul  { list-style: none; margin: 0; padding: 0; }

.sidebar li {
  padding: 6px 0;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.sidebar li:last-child { border-bottom: none; }

.sidebar a,
.sidebar a:visited {
  font-size: 12px;
  line-height: 1.4;
  color: var(--cinza-claro);
  text-decoration: none;
  flex: 1;
  font-family: var(--fonte-corpo);
  transition: color 0.2s ease;
}

.sidebar a:hover { color: var(--laranja); }

.sidebar .post-date {
  font-size: 9px;
  color: var(--texto-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-weight: 600;
  font-family: var(--fonte-corpo);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  width: 100%;
  padding: 12px 10px;
  background: var(--preto);
  border-top: 2px solid var(--laranja);
  text-align: center;
  font-size: 10px;
  color: #666;
  margin-top: 16px;
  font-family: var(--fonte-corpo);
}

.site-footer p { margin: 3px 0; }
.site-footer p:last-child { display: none; }

.site-footer a,
.site-footer a:visited { color: var(--laranja); text-decoration: none; }
.site-footer a:hover   { text-decoration: underline; }

/* ========================================
   ACESSIBILIDADE
   ======================================== */

a:focus, button:focus, input:focus {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
}

@media (max-width: 599px) {
  a, button { min-height: 44px; min-width: 44px; }

  .single-post-title { font-size: 22px; }

  .post-content p,
  .entry-content p { font-size: 16px; line-height: 1.65; }

  .social-btn { width: 36px; height: 36px; min-width: 36px; }
}

/* ========================================
   OVERFLOW FIXES
   ======================================== */

.post-content, .entry-content,
.post-item, .single-post {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.post-content table, .entry-content table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.post-content ul, .post-content ol { margin: 12px 0 12px 20px; }
.post-content li { margin-bottom: 8px; }
/* ========================================
   INSTAGRAM EMBED - fix definitivo v3
   O blockquote tem style="min-width:326px" INLINE
   gerado pelo Instagram — precisa de !important
   no CSS E de um truque de transform para
   forçar o browser a recalcular o layout.
   ======================================== */

/* Wrapper do Gutenberg — limita e centraliza */
.post-content figure.wp-block-embed,
.post-content figure.wp-block-embed-instagram {
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 !important;
  overflow: visible !important;
  display: block !important;
}

.post-content .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  min-height: 300px !important;
  display: block !important;
}

/* Blockquote ANTES do embed.js processar
   Usa transform:scale para contornar min-width inline */
.post-content blockquote.instagram-media,
blockquote.instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-height: 300px !important;
  transform-origin: top left !important;
}

/* iframe APÓS embed.js processar */
iframe.instagram-media,
iframe.instagram-media-rendered {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 500px !important;
  display: block !important;
  margin: 0 !important;
  border: none !important;
}

/* YouTube via Gutenberg — fix espaço em branco */
.post-content figure.wp-block-embed-youtube,
.post-content .wp-block-embed.wp-embed-aspect-16-9 {
  margin: 16px 0 !important;
  width: 100% !important;
}

/* Remove o embed-container extra se ainda vier no HTML */
.post-content .wp-block-embed__wrapper > .embed-container {
  position: static !important;
  padding-bottom: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.post-content .wp-block-embed__wrapper > .embed-container iframe {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 200px !important;
  display: block !important;
}

/* Fallback: iframe direto dentro do wrapper do Gutenberg (sem embed-container) */
.post-content .wp-block-embed__wrapper > iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 200px !important;
  display: block !important;
  border: none !important;
}