/*
Theme Name: Açaí Atlas Theme
Theme URI: https://acaiatlas.com
Author: Açaí Atlas
Author URI: https://acaiatlas.com
Description: Tema block-based (FSE) próprio do projeto Açaí Atlas. Etapas 6B.1/6B.2: identidade visual mínima e marca visual do MVP, mantendo a arquitetura editorial já validada.
Version: 0.4.1
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acai-atlas-theme
*/

/*
Etapa 6B.1: identidade visual mínima do MVP. O tema continua simples e
block-based, mas passa a comunicar melhor a proposta do Açaí Atlas: uma
plataforma editorial internacional sobre açaí, Amazônia, ciência, cultura
e mercado. A intervenção é deliberadamente pequena: paleta, tipografia,
ritmo visual, home, listagem de posts e caixas de confiança editorial.
*/

/* ========================================================================== 
   Base
   ========================================================================== */

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--wp--preset--color--secondary);
}

a {
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover,
a:focus-visible {
  color: var(--wp--preset--color--secondary);
}

main.wp-block-group {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

main.wp-block-group > * + * {
  margin-block-start: 1.55rem;
}

.wp-block-post-content p,
main.wp-block-group > p {
  max-width: 68ch;
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
  margin-top: 2.1rem;
}

.wp-block-post-content h3 {
  font-family: var(--wp--preset--font-family--system-sans);
  font-size: 1.05rem;
  color: var(--wp--preset--color--secondary);
}

/* ========================================================================== 
   Cabeçalho e rodapé
   ========================================================================== */

header.wp-block-group {
  margin-bottom: 2.4rem;
  padding: 1.05rem 1.25rem 1.2rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--surface);
}

/*
 * Etapa 12.16 — logo horizontal oficial (bloco nativo core/site-logo,
 * substituindo o site-title textual usado até aqui). max-width/height:auto
 * garantem responsividade real (o arquivo original é 2172×724 — sem esses
 * dois, o `width` fixo do bloco poderia estourar em telas muito estreitas);
 * a largura de exibição em si é controlada pelo atributo `width` do próprio
 * bloco (220px), não por CSS, para continuar editável via o editor de
 * site sem precisar tocar neste arquivo de novo.
 */
header.wp-block-group .wp-block-site-logo {
  margin: 0;
}

header.wp-block-group .wp-block-site-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

header.wp-block-group .wp-block-site-logo a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

header.wp-block-group .wp-block-site-logo a:hover img {
  opacity: 0.85;
}

header.wp-block-group .wp-block-navigation {
  margin-top: 0.75rem;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
}

header.wp-block-group .wp-block-navigation a {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}

header.wp-block-group .wp-block-navigation a:hover,
header.wp-block-group .wp-block-navigation a:focus-visible {
  color: var(--wp--preset--color--secondary);
}

footer.wp-block-group {
  margin-top: 4rem;
  padding: 1.6rem 1.25rem;
  border-top: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

/* Etapa 6F.6 — navegação institucional + linha de copyright do rodapé.
   Mesma linguagem visual do restante do site: sublinhado permanente nos
   links (não só no hover/focus, lição da 6F.2/6F.4), cor secundária no
   hover/focus, nenhuma cor nova. */
.acai-atlas-site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.75rem;
}

.acai-atlas-site-footer-link {
  color: var(--wp--preset--color--muted);
  text-decoration: underline;
}

.acai-atlas-site-footer-link:hover,
.acai-atlas-site-footer-link:focus-visible {
  color: var(--wp--preset--color--secondary);
}

.acai-atlas-site-footer-legal {
  margin: 0;
}

/* ========================================================================== 
   Home
   ========================================================================== */

/* Etapa 8F.4 — Home PT-BR definitiva. Substitui as regras da Home anterior
 * (intro/visual/navigation por categoria e mercado, removidas do
 * congelamento editorial da 8F.3-C). .acai-atlas-market-list,
 * .acai-atlas-section-list/.acai-atlas-term-count permanecem abaixo — são
 * dos blocos reutilizáveis market-list/section-list
 * (inc/editorial-navigation-blocks.php), não exclusivos da Home, e
 * continuam disponíveis para navegação editorial mínima.
 */
.acai-atlas-home-tagline {
  max-width: 58ch;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
  color: var(--wp--preset--color--muted);
  font-size: 1.12rem;
}

.acai-atlas-home-hero-image {
  width: 100%;
  margin-bottom: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  background: var(--wp--preset--color--surface);
  aspect-ratio: 16 / 6.5;
  box-shadow: 0 12px 30px rgba(31, 36, 31, 0.08);
  line-height: 0;
}

.acai-atlas-home-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% center;
}

.acai-atlas-home-cta {
  margin-bottom: 2.25rem;
}

.acai-atlas-home-cta a {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}

@media (max-width: 720px) {
  .acai-atlas-home-hero-image {
    aspect-ratio: 4 / 3;
  }

  .acai-atlas-home-hero-image img {
    object-position: 36% center;
  }
}

/* 6G.5-B: legenda da imagem destacada (divulgação de origem/IA quando aplicável) */
.acai-atlas-featured-image-caption {
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
}

.acai-atlas-start-here {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin: 1.5rem 0 2.25rem;
}

.acai-atlas-start-here-item {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.acai-atlas-start-here-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  object-fit: cover;
}

.acai-atlas-start-here-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.acai-atlas-start-here-item h3 a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}

.acai-atlas-start-here-item h3 a:hover,
.acai-atlas-start-here-item h3 a:focus-visible {
  color: var(--wp--preset--color--primary);
}

.acai-atlas-start-here-item p {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .acai-atlas-start-here {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.acai-atlas-home-section-discovery {
  margin-top: 2rem;
  margin-bottom: 2.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.acai-atlas-home-section-discovery h2 {
  margin-top: 0;
}

.acai-atlas-editorial-sections {
  margin-top: 1.75rem;
  margin-bottom: 2.25rem;
}

.acai-atlas-editorial-sections .acai-atlas-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.acai-atlas-editorial-sections .acai-atlas-section-list li {
  min-height: 5.25rem;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--wp--preset--color--border);
}

.acai-atlas-editorial-sections .acai-atlas-section-list a {
  display: inline-block;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 1.15rem;
  line-height: 1.25;
}

.acai-atlas-editorial-note {
  max-width: 62ch;
  color: var(--wp--preset--color--muted);
}

@media (max-width: 720px) {
  .acai-atlas-editorial-sections .acai-atlas-section-list {
    grid-template-columns: 1fr;
  }
}

.acai-atlas-market-list,
.acai-atlas-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acai-atlas-market-list li,
.acai-atlas-section-list li {
  margin-bottom: 0.55rem;
}

.acai-atlas-market-list a,
.acai-atlas-section-list a {
  color: var(--wp--preset--color--foreground);
  font-weight: 650;
  text-decoration: none;
}

.acai-atlas-market-list a:hover,
.acai-atlas-market-list a:focus-visible,
.acai-atlas-section-list a:hover,
.acai-atlas-section-list a:focus-visible {
  color: var(--wp--preset--color--primary);
}

.acai-atlas-term-count {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.acai-atlas-editorial-kicker {
  margin: 0 0 0.8rem;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.acai-atlas-editorial-sections .acai-atlas-section-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1.75rem;
}

.acai-atlas-editorial-sections .acai-atlas-section-card {
  min-height: 0;
  margin: 0;
  padding: 0 0 1.25rem;
  border-top: 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.acai-atlas-section-card-image-link {
  display: block;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wp--preset--color--surface);
}

.acai-atlas-section-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 180ms ease;
}

.acai-atlas-section-card-image-link:hover .acai-atlas-section-card-image,
.acai-atlas-section-card-image-link:focus-visible .acai-atlas-section-card-image {
  transform: scale(1.025);
}

.acai-atlas-section-card-title {
  margin: 0 0 0.45rem;
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 1.2rem;
  line-height: 1.25;
}

.acai-atlas-section-card-title a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}

.acai-atlas-section-card-title a:hover,
.acai-atlas-section-card-title a:focus-visible {
  color: var(--wp--preset--color--primary);
}

.acai-atlas-section-card-text {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 0.98rem;
}

.acai-atlas-section-card-count {
  margin: 0.75rem 0 0;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
}

@media (max-width: 720px) {
  .acai-atlas-editorial-sections .acai-atlas-section-card-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   Listas de posts
   ========================================================================== */

.wp-block-post-template {
  display: grid;
  gap: 0;
  padding-left: 0;
  list-style: none;
}

.wp-block-post-template > li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--wp--preset--color--border);
}

.wp-block-post-template > li:last-child {
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-post-template .wp-block-post-title {
  margin-bottom: 0.45rem;
  font-size: 1.28rem;
}

.wp-block-post-template .wp-block-post-title a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}

.wp-block-post-template .wp-block-post-title a:hover,
.wp-block-post-template .wp-block-post-title a:focus-visible {
  color: var(--wp--preset--color--primary);
}

.wp-block-post-template .wp-block-post-date {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-template .wp-block-post-excerpt {
  margin-top: 0.6rem;
  color: var(--wp--preset--color--muted);
}

/* ========================================================================== 
   Artigo individual
   ========================================================================== */

.single main.wp-block-group > .wp-block-post-title {
  max-width: 820px;
  margin-bottom: 0.65rem;
  color: var(--wp--preset--color--foreground);
}

.acai-atlas-post-meta {
  gap: 0.5rem 1rem;
  margin-top: -0.3rem;
  margin-bottom: 0.75rem;
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.acai-atlas-editorial-context {
  gap: 0.5rem 1.25rem;
  margin-bottom: 2.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.acai-atlas-editorial-context .wp-block-post-terms,
.acai-atlas-language {
  margin: 0;
}

.acai-atlas-editorial-context a {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
}

.acai-atlas-editorial-context a:hover,
.acai-atlas-editorial-context a:focus-visible {
  color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Seletor público de idioma (Etapa 6E.11) — discreto, mesma linguagem
   visual do bloco de contexto editorial logo acima. Só aparece no HTML
   quando há pelo menos duas traduções publicadas (regra decidida no PHP,
   não aqui); por isso não há estado "vazio" a estilizar.

   Etapa 6F.2: reforço de contraste entre o idioma atual (não acionável) e
   o idioma alternativo (link). A distinção não depende só de cor:
   - atual = pill "preenchida" (fundo sólido, negrito, sem sublinhado) —
     lê como rótulo/estado, não como botão;
   - alternativo = pill "contornada" (borda e texto na cor secundária,
     sublinhado permanente, não só no hover) — lê como ação disponível.
   Nenhuma cor nova foi introduzida; ambos reaproveitam tokens já
   existentes no theme.json (border, foreground, secondary, primary).
   ========================================================================== */

.acai-atlas-language-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  margin-bottom: 2.1rem;
  font-size: var(--wp--preset--font-size--small);
}

.acai-atlas-language-selector-current,
.acai-atlas-language-selector-link {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  line-height: 1.4;
}

.acai-atlas-language-selector-current {
  border-color: var(--wp--preset--color--border);
  background-color: var(--wp--preset--color--border);
  color: var(--wp--preset--color--foreground);
  font-weight: 700;
}

.acai-atlas-language-selector-link {
  border-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary);
  text-decoration: underline;
}

.acai-atlas-language-selector-link:hover,
.acai-atlas-language-selector-link:focus-visible {
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Tabelas do conteúdo editorial — achado da revisão humana do D1 (pós-7G.3-A).
   O D1 foi o primeiro conteúdo publicado no Açaí Atlas a usar uma tabela;
   nenhum CSS de tabela existia até aqui, e o CSS nativo de blocos do
   WordPress não carrega para tabelas em HTML puro (o mesmo padrão de todo
   o conteúdo do site — nenhum post usa comentários de bloco). Escopo
   deliberadamente restrito a `.entry-content` (corpo de posts/páginas), sem
   afetar tabelas administrativas ou qualquer outro contexto do WordPress.
   ========================================================================== */

.entry-content table {
  width: 100%;
  margin: 1.6rem 0;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.entry-content thead th {
  border-bottom: 2px solid var(--wp--preset--color--foreground);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
}

.entry-content tbody tr:last-child th,
.entry-content tbody tr:last-child td {
  border-bottom: none;
}

.entry-content th:first-child,
.entry-content td:first-child {
  width: 30%;
}

.entry-content th:last-child,
.entry-content td:last-child {
  width: 70%;
}

/* Proteção responsiva: mesma abordagem do próprio núcleo do WordPress
   (`.wp-block-table { overflow-x: auto; }`) — evita quebra de layout em
   telas estreitas sem inventar uma transformação de "cartões empilhados". */
.entry-content .wp-block-table {
  overflow-x: auto;
}

/* ==========================================================================
   Blocos de confiança editorial
   ========================================================================== */

.acai-atlas-editorial-status,
.acai-atlas-disclosure,
.acai-atlas-references {
  margin-top: 2rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--wp--preset--color--border);
  border-left: 4px solid var(--wp--preset--color--secondary);
  border-radius: 6px;
  background-color: var(--wp--preset--color--surface);
  box-shadow: 0 1px 0 rgba(31, 36, 31, 0.04);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.58;
}

.acai-atlas-disclosure {
  border-left-color: var(--wp--preset--color--primary);
}

.acai-atlas-references {
  border-left-color: var(--wp--preset--color--accent);
}

.acai-atlas-editorial-status + .acai-atlas-disclosure,
.acai-atlas-disclosure + .acai-atlas-references {
  margin-top: 1rem;
}

.acai-atlas-editorial-status > strong,
.acai-atlas-disclosure > strong,
.acai-atlas-references > strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--wp--preset--color--foreground);
  font-size: var(--wp--preset--font-size--medium);
}

.acai-atlas-editorial-status-row {
  margin-bottom: 0.3rem;
}

.acai-atlas-editorial-status-row:last-child {
  margin-bottom: 0;
}

.acai-atlas-editorial-status-label {
  font-weight: 700;
}

.acai-atlas-references ul {
  margin: 0;
  padding-left: 1.25rem;
}

.acai-atlas-references li {
  margin-bottom: 0.42rem;
}

.acai-atlas-references li:last-child {
  margin-bottom: 0;
}

.acai-atlas-reference-meta {
  color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   Encerramento editorial do artigo (Etapa 6F.4) — "Voltar para {categoria}"
   e, quando houver candidato válido, "Continue lendo: {título}". Só até 2
   links, nunca uma grade; nenhuma cor nova — reaproveita os mesmos tokens
   das caixas de confiança editorial e do seletor de idioma logo acima.
   Sublinhado permanente nos dois links (não só no hover/focus), mesma
   lição da 6F.2: a distinção de "isto é um link" não deve depender só de
   cor nem só de hover.
   ========================================================================== */

.acai-atlas-article-continuation {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2.1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--wp--preset--color--border);
  font-size: var(--wp--preset--font-size--small);
}

.acai-atlas-article-continuation-back,
.acai-atlas-article-continuation-next {
  text-decoration: underline;
}

.acai-atlas-article-continuation-back {
  color: var(--wp--preset--color--muted);
}

.acai-atlas-article-continuation-next {
  color: var(--wp--preset--color--secondary);
  font-weight: 700;
}

.acai-atlas-article-continuation-back:hover,
.acai-atlas-article-continuation-back:focus-visible,
.acai-atlas-article-continuation-next:hover,
.acai-atlas-article-continuation-next:focus-visible {
  color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Utilitário de acessibilidade — texto só para leitor de tela, visualmente
   oculto sem usar display:none (que também o esconderia de leitores de
   tela). Padrão idêntico ao usado pelo WordPress Core/Gutenberg.
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Compartilhamento social do artigo (Etapa 12.12) — WhatsApp, Facebook,
   LinkedIn, copiar link e (quando suportado pelo navegador) compartilhamento
   nativo via navigator.share. Mesmos tokens de cor/espaçamento já usados
   pelo encerramento editorial logo acima — nenhuma cor nova, nenhum ícone
   (marca do site é 100% tipográfica, ver auditoria 12.8). Botões em linha,
   quebrando naturalmente em telas estreitas (flex-wrap), nunca disputando
   espaço com o corpo do artigo.
   ========================================================================== */

.acai-atlas-social-share {
  margin-top: 2.1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.acai-atlas-social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.acai-atlas-social-share-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--wp--preset--color--secondary);
  border-radius: 999px;
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--small);
  text-decoration: none;
  background: none;
  cursor: pointer;
  line-height: 1.3;
}

.acai-atlas-social-share-link:hover,
.acai-atlas-social-share-link:focus-visible {
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

.acai-atlas-social-share-link:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

.acai-atlas-social-share-copy.acai-atlas-social-share-copy-success {
  color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Páginas e arquivos
   ========================================================================== */

.page main.wp-block-group > .wp-block-post-title,
.archive .wp-block-query-title {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-query-title {
  margin-bottom: 0.5rem;
}

/* ========================================================================== 
   Responsivo
   ========================================================================== */

@media (max-width: 720px) {
  body::before {
    height: 5px;
  }

  header.wp-block-group {
    margin-bottom: 1.6rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  main.wp-block-group {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .acai-atlas-post-meta,
  .acai-atlas-editorial-context {
    display: block;
  }

  .acai-atlas-post-meta > *,
  .acai-atlas-editorial-context > * {
    margin-bottom: 0.35rem;
  }
}
/* 6B.1-A: guarda responsiva contra overflow horizontal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.wp-site-blocks,
header.wp-block-group,
main.wp-block-group,
footer.wp-block-group {
  max-width: 100%;
}

.wp-block-post-title,
.wp-block-post-content,
.wp-block-post-content > * {
  overflow-wrap: break-word;
}

@media (max-width: 720px) {
  main.wp-block-group > *,
  .wp-block-post-content > * {
    max-width: calc(100vw - 2rem) !important;
  }

  .acai-atlas-post-meta.wp-block-group,
  .acai-atlas-editorial-context.wp-block-group {
    display: block !important;
  }

  .acai-atlas-post-meta > *,
  .acai-atlas-editorial-context > * {
    display: block;
    margin-bottom: 0.35rem;
  }
}
/* 6B.1-B: largura real mobile para blocos constrained */
@media (max-width: 720px) {
  html,
  body,
  .wp-site-blocks {
    max-width: 100%;
    overflow-x: hidden;
  }

  header.wp-block-group,
  main.wp-block-group,
  footer.wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  main.wp-block-group > *,
  .wp-block-post-content,
  .wp-block-post-content > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .wp-block-post-title,
  .wp-block-post-content p,
  .wp-block-post-content h2,
  .wp-block-post-content h3 {
    overflow-wrap: anywhere;
  }
}
/* 6B.1-C: ajuste direto para layouts constrained do WordPress */
@media (max-width: 720px) {
  .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    width: auto !important;
    max-width: calc(100vw - 2rem) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .wp-block-post-content :where(p, h2, h3, ul, ol, blockquote),
  .wp-block-post-title {
    width: auto !important;
    max-width: calc(100vw - 2rem) !important;
  }
}
