/* === SINGLE POST — fiel ao Stitch artigo_ia_wordpress_fiel/code.html ===
   REGRAS DE QUALIDADE:
   - Zero !important (exceto onde o WP injeta inline styles que não podemos evitar)
   - Seletores compostos com especificidade suficiente para vencer WP defaults
   - Spacing via tokens var(--wp--preset--spacing--XX) onde existe equivalente exato
   - Valores Stitch sem token equivalente mantidos em rem com comentário de origem
   - Zero cores hardcoded — apenas var(--wp--preset--color--*) e var(--wp--custom--*)
   ======================================================================= */

/* ══════════════════════════════════════════════════════
   1. ARTICLE HEADER SECTION
   Stitch: <main class="pt-48"> → padding-top já no JSON (var:preset|spacing|70)
           <header class="max-w-container-max mb-16">
             <div class="max-w-4xl"> → cat + h1 + meta-bar
             <div class="w-full aspect-[21/9]"> → imagem
   ══════════════════════════════════════════════════════ */

.single-header {
  padding-top: calc(var(--dv-header-height) + var(--wp--preset--spacing--70)) !important;
}

/* single-header__inner: layout:default — sem contentSize.
   A largura dos filhos é controlada pelo editor / pelo próprio alinhamento de cada bloco. */

/* Sticky sidebar: top = admin-bar offset + header fixo + margem de respiro.

   ESTRUTURA ATUAL (editor): o bloco grupo wrapper tem style.position.type:sticky
   com top:"0px" no JSON. O WP gera .wp-container-N { position:sticky; top:calc(0px
   + var(--wp-admin--admin-bar--position-offset, 0px)) } inline no <head>.

   Nosso override via .is-position-sticky com !important ganha de qualquer
   especificidade inline. Preservamos --wp-admin--admin-bar--position-offset
   para que a barra de admin não sobreponha o sticky no wp-admin preview.

   O hash .wp-container-N muda a cada render — não usar como seletor. */
.single-sidebar-col .is-position-sticky {
  top: calc(
    var(--wp-admin--admin-bar--position-offset, 0px) +
    var(--dv-header-height) +
    var(--wp--preset--spacing--30)
  ) !important;
}

/* Categoria pill
   Stitch: px-4 py-1 border border-primary/40 text-primary
           text-[10px] uppercase tracking-[0.3em] font-black rounded-full */
/* Wrapper: apenas reset de margin/display */
.single-cat.wp-block-post-terms {
  margin: 0;
}
/* Link: recebe o pill completo */
.single-cat.wp-block-post-terms a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem var(--wp--preset--spacing--20);
  border: 1px solid var(--wp--custom--primary-alpha-40);
  border-radius: 9999px;
  font-size: var(--wp--preset--font-size--2-xs);
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  background: none;
}

/* Tempo de leitura: core/post-time-to-read renderiza <div>
   Stitch: text-[10px] uppercase tracking-[0.2em] font-bold text-on-surface-variant */
.single-read-time.wp-block-post-time-to-read {
  font-size: var(--wp--preset--font-size--2-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin: 0;
}
.single-read-time.wp-block-post-time-to-read::before {
  content: '• ';
}

/* 1b. H1
   Stitch: font-display clamp(2.5rem,5vw,5rem) font-black leading-[1.1] tracking-tighter
   Sem margin-bottom aqui — espaçamento vem do blockGap do pai. */
.single-title.wp-block-post-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--wp--preset--color--contrast);
  margin-top: var(--wp--preset--spacing--50);
  margin-bottom: var(--wp--preset--spacing--30);
}
.single-title.wp-block-post-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--wp--preset--color--primary);
}

/* 1c. Meta-bar
   Stitch: flex justify-between py-8 border-y border-subtle mb-16
   py-8 = 2rem. mb-16 = 4rem. Sem token exato para esses valores no sistema.
   width: 100% para garantir que o justify-between funcione */
.single-meta-bar.wp-block-group {
  border-top: 1px solid var(--wp--custom--border-color-subtle);
  border-bottom: 1px solid var(--wp--custom--border-color-subtle);
  padding-top: 2rem;    /* Stitch: py-8 = 2rem */
  padding-bottom: 2rem; /* Stitch: py-8 = 2rem */
  margin-bottom: 4rem;  /* Stitch: mb-16 = 4rem */
  width: 100%;
}

/* Avatar: w-14 h-14 rounded-full border border-subtle overflow-hidden grayscale */
.single-author-avatar.wp-block-avatar img,
.single-author-avatar.wp-block-avatar .wp-block-avatar__image {
  width: 56px;  /* w-14 = 3.5rem = 56px */
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.single-author-avatar.wp-block-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--wp--custom--border-color-subtle);
  overflow: hidden;
  flex-shrink: 0;
}

/* Autor nome: text-xs uppercase tracking-[0.2em] font-black text-on-surface */
.single-author-name.wp-block-post-author-name {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast);
  margin: 0;
}

/* Data: text-[10px] uppercase tracking-[0.1em] text-on-surface-variant/60 font-bold */
.single-author-date.wp-block-post-date {
  font-size: var(--wp--preset--font-size--2-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  opacity: 0.6;
  margin: 0;
}
.single-author-date.wp-block-post-date a {
  color: inherit;
  text-decoration: none;
}

/* Botão compartilhar: w-12 h-12 rounded-full border border-subtle
   Stitch usa <button>; WP usa <p className> com SVG inline */
p.single-action-btn {
  width: 48px;  /* w-12 = 3rem = 48px */
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--wp--custom--border-color-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--wp--preset--color--contrast);
  margin: 0;
  padding: 0;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  overflow: hidden;
}
p.single-action-btn:hover {
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
}
p.single-action-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   2. FEATURED IMAGE
   Stitch: <div class="w-full aspect-[21/9] rounded-xl overflow-hidden border border-subtle relative group">
             <img class="w-full h-full object-cover transition-transform group-hover:scale-105"/>
             <div class="absolute inset-0 bg-gradient-to-t from-background/40"/>
   WP injeta: figure[style="aspect-ratio:21/9"] com img[style="width:100%;height:100%;object-fit:cover"]
   → O wrapper precisa apenas de overflow:hidden + position:relative (para overlay).
     A figure com aspect-ratio inline define a altura do wrapper. Img via inline style do WP.
   ══════════════════════════════════════════════════════ */

.single-featured-img-wrap.wp-block-group {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--wp--custom--border-color-subtle);
  position: relative;
  display: block;
}

/* Overlay gradiente: absolute inset-0 */
.single-featured-img-wrap.wp-block-group::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,16,32,0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* figure: WP injeta aspect-ratio:21/9 inline via o atributo aspectRatio do bloco.
   Deixar no fluxo normal — margin:0 e width:100% apenas. */
.single-featured-img-wrap.wp-block-group figure.wp-block-post-featured-image,
.single-featured-img-wrap.wp-block-group figure {
  display: block;
  width: 100%;
  margin: 0;
}

/* a: bloco, preenche a figure */
.single-featured-img-wrap.wp-block-group figure a {
  display: block;
  width: 100%;
  height: 100%;
}

/* img: WP injeta width:100%;height:100%;object-fit:cover via inline style do bloco.
   Adicionamos apenas a transition de hover. */
.single-featured-img-wrap.wp-block-group img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.single-featured-img-wrap.wp-block-group:hover img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════
   3. LAYOUT DE CONTEÚDO — 2 COLUNAS
   Stitch: grid-cols-12 gap-20 → col-span-8 + col-span-4
   gap-20 = 5rem. var(--wp--preset--spacing--60) = clamp(60px,7.8vw,100px) ≈ próximo.
   Usamos o blockGap do JSON (já definido). Aqui apenas align-items: flex-start.
   ══════════════════════════════════════════════════════ */

/* align-items: stretch (default) para que .single-sidebar-col tenha a altura total da linha.
   Isso é necessário para position:sticky funcionar — o sticky só rola quando o pai
   é mais alto que o próprio elemento. */
.single-layout.wp-block-columns.alignwide {
  align-items: stretch;
}
/* Coluna de conteúdo: align-self:flex-start para não esticar desnecessariamente */
.single-content-col.wp-block-column {
  align-self: flex-start;
  min-width: 0;
}
/* Coluna sidebar: stretch (herda do pai) para ter a altura total — permite sticky */
.single-sidebar-col.wp-block-column {
  min-width: 0;
}

/* ══════════════════════════════════════════════════════
   4. PROSA DO ARTIGO
   Stitch: space-y-12 (3rem entre filhos), text-lg/xl leading-relaxed
   Selector chain real do WP:
   .single-prose > .wp-block-group > .wp-block-post-content.entry-content
   ══════════════════════════════════════════════════════ */

/* =============================================================
   PROSA — chain real do WP:
   .single-prose.is-layout-constrained
     > .entry-content.wp-block-post-content.is-layout-flow
         > p | h2 | h3 | ul | blockquote | hr | pre

   O WP injeta via .is-layout-flow > * { margin-block-start: 0 }
   Nossos seletores precisam de especificidade maior.
   Usamos .entry-content.wp-block-post-content como âncora.
   ============================================================= */

/* max-width: none em todos os filhos da entry-content
   (o is-layout-constrained do .single-prose limitaria a 680px) */
.single-prose .entry-content.wp-block-post-content > * {
  max-width: none;
  margin-inline: 0;
}

/* Base tipográfica */
.single-prose .entry-content.wp-block-post-content {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--muted);
  line-height: 1.75;
}

/* space-y-12 = 3rem entre blocos
   Sobrescreve o margin-block-start:0 do WP com margin-block-start:3rem */
.single-prose .entry-content.wp-block-post-content > * + * {
  margin-block-start: 3rem;
}

/* Parágrafos */
.single-prose .entry-content.wp-block-post-content > p {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--muted);
  line-height: 1.75;
  margin-block-end: 0;
}
.single-prose .entry-content.wp-block-post-content > p strong {
  color: var(--wp--preset--color--contrast);
  font-weight: 700;
}

/* H2: text-4xl font-black tracking-tighter
   pt-8 (2rem) implementado via padding-top, não margin —
   assim o space-y-12 acima ainda aplica margem correta */
.single-prose .entry-content.wp-block-post-content > h2.wp-block-heading {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--wp--preset--color--contrast);
  padding-top: 2rem;
  margin-block-end: 0;
}

/* Code inline */
.single-prose .entry-content.wp-block-post-content code {
  background: var(--wp--custom--primary-alpha-09);
  border: 1px solid var(--wp--custom--primary-alpha-40);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--wp--preset--color--primary);
  font-size: 0.9em;
}

/* ══════════════════════════════════════════════════════
   5. SIDEBAR
   ══════════════════════════════════════════════════════ */

/* Artigos Relacionados: border-t pt-12 */
.sidebar-related.wp-block-group {
  border-top: 1px solid var(--wp--custom--border-color-subtle);
  padding-top: var(--wp--preset--spacing--50); /* pt-12 ≈ 3rem ≈ spacing--50 min */
}

/* Label Artigos Relacionados: text-[10px] tracking-[0.4em] font-black text-primary mb-10
   Label Tags: text-on-surface-variant (cor diferente!) */
p.sidebar-section-label {
  font-size: var(--wp--preset--font-size--2-xs);
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary); /* default: primary (artigos relacionados) */
  margin: 0 0 2.5rem 0; /* mb-10 = 2.5rem */
}
/* Tags label: text-on-surface-variant (muted), não primary */
.single-sidebar-col .wp-block-group:last-child p.sidebar-section-label {
  color: var(--wp--preset--color--muted);
}

/* Lista artigos relacionados */
.sidebar-related-list.wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-related-list.wp-block-latest-posts > li {
  list-style: none;
  padding-bottom: var(--wp--preset--spacing--50);
  margin-bottom: var(--wp--preset--spacing--50);
  border-bottom: 1px solid var(--wp--custom--border-color-subtle);
}
.sidebar-related-list.wp-block-latest-posts > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-related-list.wp-block-latest-posts a {
  display: block;
  text-decoration: none;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--wp--preset--color--contrast);
  transition: color 0.2s;
}
.sidebar-related-list.wp-block-latest-posts a:hover {
  color: var(--wp--preset--color--primary);
}

/* CTA sidebar */
.sidebar-cta.wp-block-group {
  border: 1px solid var(--wp--custom--border-color-subtle);
  padding: 2.5rem; /* p-10 = 2.5rem */
  /* position não declarada — o WP injeta position:sticky via .wp-container-* */
}
/* Glow decorativo — posicionado dentro do box para não vazar sem overflow:hidden */
.sidebar-cta.wp-block-group::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 6rem;
  height: 6rem;
  background: var(--wp--custom--primary-alpha-10);
  border-radius: 50%;
  filter: blur(2.5rem);
  pointer-events: none;
  z-index: 0;
}

/* Título CTA */
h4.sidebar-cta-title.wp-block-heading {
  font-size: 1.5rem; /* text-2xl = 1.5rem */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--wp--preset--color--contrast);
  margin: 0;
}

/* Descrição CTA */
p.sidebar-cta-desc {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  margin: 0;
}

/* Form Jetpack lateral — input + botão colados, full-width
   Usa CSS custom properties do Jetpack para garantir prioridade
   sobre grunion.css e theme.json */
.sidebar-form.wp-block-jetpack-contact-form {
  /* Zera gap via custom property que o Jetpack respeita internamente */
  --wp--style--block-gap: 0px;
  /* Zera border-radius via token Jetpack — aplicado antes de qualquer override */
  --jetpack--contact-form--border-radius: 0px;
  --jetpack--contact-form--border-color: var(--wp--custom--border-color-subtle);
  --jetpack--contact-form--input-padding: 1rem var(--wp--preset--spacing--30);
  --jetpack--contact-form--font-size: var(--wp--preset--font-size--sm);
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
}
[class*="wp-container-jetpack-contact-form"].sidebar-form {
  gap: 0 !important;
}
.sidebar-form label { display: none !important; }
.sidebar-form .grunion-field-wrap {
  width: 100% !important;
  margin: 0 !important;
  flex: none !important;
}
.sidebar-form input[type=email] {
  width: 100% !important;
  background: transparent !important;
  border-width: 1px 1px 0 1px !important; /* sem borda inferior — cola com botão */
  box-shadow: none !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 400 !important;
  color: var(--wp--preset--color--contrast) !important;
  outline: none !important;
  transition: border-color 0.2s;
}
.sidebar-form input[type=email] { text-align: center !important; }
.sidebar-form input[type=email]::placeholder {
  color: var(--wp--custom--muted-alpha-35) !important;
}
.sidebar-form input[type=email]:focus {
  border-color: var(--wp--preset--color--primary) !important;
}
.sidebar-form .wp-block-button {
  width: 100% !important;
  margin: 0 !important;
  flex: none !important;
}
/* Usar :where() para especificidade zero + !important para ganhar do theme.json */
.sidebar-form :where(.wp-block-button) :is(.wp-block-button__link, button[type=submit]),
.sidebar-form .wp-block-button__link,
.sidebar-form button[type=submit] {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  background: var(--wp--preset--color--primary) !important;
  color: #fff !important;
  border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
  border: 1px solid var(--wp--preset--color--primary) !important;
  padding: 1rem var(--wp--preset--spacing--30) !important;
  text-align: center !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  transition: opacity 0.2s !important;
  text-decoration: none !important;
  cursor: pointer !important;
  min-height: unset !important;
}
.sidebar-form .wp-block-button__link:hover,
.sidebar-form button[type=submit]:hover { opacity: 0.85 !important; }

/* Tags */
.sidebar-tags-wrap.wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--10); /* gap-2 = 0.5rem ≈ spacing--10 */
}
.sidebar-tags-wrap.wp-block-post-terms a {
  display: inline-block;
  font-size: var(--wp--preset--font-size--2-xs);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--wp--custom--border-color-subtle);
  border-radius: 0;
  padding: 0.4rem var(--wp--preset--spacing--20);
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.sidebar-tags-wrap.wp-block-post-terms a:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

/* ══════════════════════════════════════════════════════
   6. RESPONSIVO
   ══════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .single-title.wp-block-post-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  .single-layout.wp-block-columns {
    flex-direction: column !important;
  }
  .single-content-col.wp-block-column,
  .single-sidebar-col.wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .single-sidebar-col .is-position-sticky {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 640px) {
  .single-header {
    padding-top: calc(var(--dv-header-height) + var(--wp--preset--spacing--50)) !important;
    padding-bottom: var(--wp--preset--spacing--40) !important;
  }
  .single-content.wp-block-group {
    padding-bottom: var(--wp--preset--spacing--60) !important;
  }
  .single-title.wp-block-post-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .single-meta-bar.wp-block-group {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
  }
  .article-cta.wp-block-group {
    padding: var(--wp--preset--spacing--40) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-featured-img-wrap.wp-block-group img,
  .sidebar-related-list.wp-block-latest-posts a,
  .sidebar-cta .wp-block-button__link,
  .sidebar-form .wp-block-button__link,
  .sidebar-form button[type=submit] {
    transition: none;
  }
}
-end: 0;
}

/* H3: text-2xl font-black tracking-tight */
.single-prose .entry-content.wp-block-post-content > h3.wp-block-heading {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--wp--preset--color--contrast);
  padding-top: 2rem;
  margin-block-end: 0;
}

/* Separadores hr: invisíveis — Stitch usa space-y, não linhas visuais.
   border-top:2px do WP precisa de especificidade maior para ser cancelado */
.single-prose .entry-content.wp-block-post-content > .wp-block-separator.has-alpha-channel-opacity,
.single-prose .entry-content.wp-block-post-content > hr.wp-block-separator {
  border: none !important;
  border-top: none !important;
  background: transparent;
  height: 0;
  margin-block: 0;
  max-width: none;
  display: block;
}

/* Listas: space-y-6 entre items; li: flex gap-4; bullet círculo primary 6px */
.single-prose .entry-content.wp-block-post-content > .wp-block-list {
  list-style: none;
  padding: 0;
  margin-block-end: 0;
}
.single-prose .entry-content.wp-block-post-content > .wp-block-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--20);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  line-height: 1.6;
  margin-bottom: var(--wp--preset--spacing--30);
}
.single-prose .entry-content.wp-block-post-content > .wp-block-list li:last-child {
  margin-bottom: 0;
}
.single-prose .entry-content.wp-block-post-content > .wp-block-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  margin-top: 0.4em;
}

/* Blockquote
   Stitch: border-l-4 border-primary bg-primary/5 p-10 rounded-r-xl
   p:  italic text-2xl font-display text-on-surface leading-tight
   Não há font-weight explícito no Stitch — Geist italic regular */
.single-prose .entry-content.wp-block-post-content > .wp-block-quote {
  border-left: 4px solid var(--wp--preset--color--primary);
  background: var(--wp--custom--primary-alpha-09);
  padding: 2.5rem;           /* p-10 = 2.5rem */
  border-radius: 0;
  margin-block-end: 0;
  max-width: none;
}
.single-prose .entry-content.wp-block-post-content > .wp-block-quote p {
  font-family: var(--wp--preset--font-family--display); /* font-display = Geist */
  font-size: 1.5rem;         /* text-2xl = 1.5rem */
  font-style: italic;        /* italic */
  font-weight: 400;          /* Geist regular — o Stitch não usa bold na quote */
  color: var(--wp--preset--color--contrast); /* text-on-surface */
  line-height: 1.25;         /* leading-tight */
  letter-spacing: -0.01em;  /* leve tracking negativo para display italic */
  margin: 0;
  text-transform: none;
}
/* strong dentro do blockquote: herda tipografia da quote, não quebra italic */
.single-prose .entry-content.wp-block-post-content > .wp-block-quote p strong {
  font-weight: 400;          /* cancela o bold do strong — Stitch não usa bold */
  font-style: inherit;       /* mantém o italic */
  color: inherit;            /* mantém text-on-surface */
}

/* Code block */
.single-prose .entry-content.wp-block-post-content > .wp-block-code {
  background: var(--wp--preset--color--surface-low);
  border: 1px solid var(--wp--custom--border-color-subtle);
  border-radius: 0;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  margin-block-end: 0;
  max-width: none;
}
.single-prose .entry-content.wp-block-post-content > .wp-block-code::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--wp--custom--primary-alpha-09);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.single-prose .entry-content.wp-block-post-content > .wp-block-code:hover::before {
  opacity: 1;
}
.single-prose .entry-content.wp-block-post-content > .wp-block-code code {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--wp--preset--color--contrast);
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════
   ARTICLE CTA — seção de conversão ao final do artigo
   ══════════════════════════════════════════════════════ */

/* Wrapper section */
.article-cta.wp-block-group {
  position: relative;
  overflow: hidden;
}

/* Glow de fundo: elipse azul-roxo desfocada, centrada */
.article-cta.wp-block-group::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 120%,
    var(--wp--custom--primary-alpha-10) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Inner container: tudo em cima do glow */
.article-cta-inner.wp-block-group {
  position: relative;
  z-index: 1;
}

/* Eyebrow / label acima do H2 */
.article-cta-eyebrow.wp-block-paragraph {
  font-size: var(--wp--preset--font-size--2-xs);
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin: 0;
}

/* Heading principal */
h2.article-cta-title.wp-block-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--wp--preset--color--contrast);
  margin: 0;
  max-width: 18ch;
}

/* Linha decorativa sob o H2 */
h2.article-cta-title.wp-block-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: var(--wp--preset--spacing--30);
  background: var(--wp--preset--color--primary);
  border-radius: 9999px;
}

/* Parágrafos de copy */
.article-cta-copy.wp-block-group p {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}

/* Wrapper do botão */
.article-cta-btn-wrap.wp-block-buttons {
  margin: 0;
}

/* Botão principal: pill sólido com seta */
.article-cta-btn-wrap .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--wp--preset--color--primary);
  color: #fff;
  border-radius: 9999px;
  padding: 1.1rem 2.5rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--wp--custom--primary-alpha-40);
}
.article-cta-btn-wrap .wp-block-button__link::after {
  content: '→';
  font-size: 1em;
  line-height: 1;
  transition: transform 0.2s;
}
.article-cta-btn-wrap .wp-block-button__link:hover {
  background: var(--wp--custom--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--wp--custom--primary-alpha-40);
}
.article-cta-btn-wrap .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

/* Linha divisória decorativa à direita (desktop): separador visual */
.article-cta-divider.wp-block-separator {
  border: none;
  border-top: 1px solid var(--wp--custom--border-color-mid);
  margin: 0;
  opacity: 1;
}

/* Nota de rodapé / social proof */
.article-cta-note.wp-block-paragraph {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--dim);
  letter-spacing: 0.02em;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .single-featured-img-wrap.wp-block-group img,
  .single-prose .entry-content.wp-block-post-content > .wp-block-code::before,
  .article-cta-btn-wrap .wp-block-button__link,
  .article-cta-btn-wrap .wp-block-button__link::after {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
