/* ================================================================
   VIA 47 — DESIGN SYSTEM CSS (v2.3 · Mar/2026)
   Customizer > CSS Adicional
   Ordem: tokens → tipografia → leitura → componentes → layout → a11y → mobile
   ================================================================ */


/* ── 1. TOKENS BASE ─────────────────────────────────────────────── */

:root {
  --theme-font-size:   17px;
  --theme-line-height: 1.7;
}


/* ── 2. TIPOGRAFIA GLOBAL ───────────────────────────────────────── */

body,
.site {
  font-size: 17px;
  line-height: 1.7;
}

/* H1 — título do artigo */
h1,
h1.entry-title {
  font-size: 2.4rem;        /* ≈ 41px */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* H2 — seções */
h2 {
  font-size: 1.55rem;       /* ≈ 26px */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

/* H3 — sub-seções (estava em 12–15px) */
h3,
.h3,
.entry-content h3,
.ct-post-content h3 {
  font-size: 1.25rem;       /* ≈ 21px */
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}


/* ── 3. ÁREA DE LEITURA (SINGLE POST / PAGE) ────────────────────── */

/* Força tamanho correto — Blocksy override para 15px */
.entry-content,
.ct-post-content {
  font-size: 17px;
  line-height: 1.7;
}

.entry-content p,
.entry-content li,
.entry-content ol,
.entry-content ul,
.ct-post-content p,
.ct-post-content li {
  font-size: 17px;
  line-height: 1.7;
}

/* Largura de leitura — ~680px centrado */
.single .entry-content,
.single .ct-post-content,
.page:not(.home) .entry-content {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Lede — primeiro parágrafo diferenciado */
.single .entry-content > p:first-of-type,
.single .ct-post-content > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--theme-palette-color-3, #3A4F66);
}

/* Espaçamento entre parágrafos */
.entry-content p,
.ct-post-content p {
  margin-bottom: 1.4em;
}


/* ── 4. BLOCKQUOTE / PULL QUOTE ─────────────────────────────────── */

blockquote,
.entry-content blockquote,
.ct-post-content blockquote {
  border-left: 3px solid var(--theme-palette-color-1, #2872fa);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2.5rem 0;
  background: transparent;
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--theme-palette-color-3, #3A4F66);
}

blockquote p { margin: 0; }


/* ── 5. META DO POST ────────────────────────────────────────────── */

.entry-meta,
.ct-meta-elements,
.post-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}


/* ── 6. NAVEGAÇÃO ───────────────────────────────────────────────── */

/* Reduz de 20px/700 para tamanho editorial */
.ct-nav-menu a,
.main-navigation a,
#site-navigation a,
nav .menu-item a {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Item ativo */
.ct-nav-menu .current-menu-item > a,
.main-navigation .current-menu-item > a,
.ct-nav-menu .current-page-ancestor > a {
  color: var(--theme-palette-color-1, #2872fa) !important;
  font-weight: 600 !important;
}


/* ── 7. CARDS DO BLOG (ARCHIVE / HOME) ──────────────────────────── */

/* Reset do CSS legado */
.entry-card {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

/* Título do card */
.ct-blog-archive-entry-title,
.ct-post-card .entry-title,
article:not(.single) .entry-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

/* Excerpt do card */
.entry-excerpt,
.ct-blog-archive-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Meta do card */
.entry-meta,
.entry-category {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  opacity: 0.75;
}

/* Espaço entre cards */
.ct-blog-layout article + article {
  margin-top: 2rem;
}


/* ── 8. IMAGENS ─────────────────────────────────────────────────── */

/* Thumbnails dos cards — aspect ratio 16:9 consistente */
.ct-blog-archive-entry-thumbnail img,
article .post-thumbnail img,
.wp-post-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: 0;
}

/* Imagens dentro do conteúdo */
.entry-content img,
.ct-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 2rem auto;
}


/* ── 9. FOOTER ──────────────────────────────────────────────────── */

/* Corrige texto ilegível: fundo preto + cor de texto body */
footer,
.site-footer,
.ct-footer,
.ct-footer-widgets,
.ct-footer-copyright {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer a,
.site-footer a,
.ct-footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

footer a:hover,
.site-footer a:hover,
.ct-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

footer h1, footer h2, footer h3, footer h4,
.ct-footer h1, .ct-footer h2, .ct-footer h3, .ct-footer h4 {
  color: #ffffff !important;
}


/* ── 10. LAYOUT ─────────────────────────────────────────────────── */

.site-main {
  padding-top: 40px;
  padding-bottom: 60px;
}


/* ── 11. ACESSIBILIDADE ─────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--theme-palette-color-1, #2872fa);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ── 12. RESPONSIVO MOBILE ──────────────────────────────────────── */

@media (max-width: 768px) {
  h1,
  h1.entry-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  h2 { font-size: 1.3rem; }

  h3,
  .entry-content h3,
  .ct-post-content h3 {
    font-size: 1.1rem;
  }

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

  .single .entry-content > p:first-of-type {
    font-size: 1rem;
  }

  .site-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }
}

/* ── 13. JETPACK RELATED POSTS ──────────────────────────────────── */

#jp-relatedposts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--theme-palette-color-6, #f2f5f7);
}

#jp-relatedposts h3.jp-relatedposts-headline {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600 !important;
  opacity: 0.6;
  margin-bottom: 1rem;
}

#jp-relatedposts .jp-relatedposts-items-visual .jp-relatedposts-post-title a {
  font-size: 0.95rem !important;
  font-weight: 600;
  line-height: 1.35;
}

#jp-relatedposts .jp-relatedposts-post-date,
#jp-relatedposts .jp-relatedposts-post-context {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ── 14. DARK MODE — Background override (LiteSpeed cache bypass) ── */

/* Garante fundo dark independente de CSS cacheado */
html,
body {
  background-color: var(--theme-palette-color-7, #080e1a) !important;
}

/* Cards e superfícies secundárias */
.ct-container,
.ct-blog-layout,
.entry-card,
article {
  background-color: transparent;
}

/* Corrige hero/destacado na homepage — bg explícito */
.ct-blog-archive-entry-thumbnail,
.ct-blog-archive-post {
  background-color: var(--theme-palette-color-5, #182435);
}

/* Header — fundo dark com blur sutil */
.site-header,
.ct-header,
#masthead {
  background-color: rgba(8, 14, 26, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 216, 232, 0.08);
}

/* Inputs e formulários */
input,
textarea,
select {
  background-color: var(--theme-palette-color-5, #182435);
  color: var(--theme-palette-color-3, #c8d8e8);
  border-color: rgba(200, 216, 232, 0.15);
}

/* Scrollbar sutil (Webkit) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080e1a; }
::-webkit-scrollbar-thumb { background: #182435; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1e293b; }

/* ── 15. DARK MODE — Heading colors ────────────────────────────── */

/* Blocksy tinha headings hardcoded em cor escura do tema light      */
/* Forçar para color3 (texto primário claro) em dark mode           */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.ct-post-card .entry-title,
.ct-blog-archive-entry-title {
  color: var(--theme-palette-color-3, #c8d8e8) !important;
}

/* H1 do single post especificamente */
.single h1.entry-title,
.single .page-header h1,
article h1 {
  color: var(--theme-palette-color-3, #c8d8e8) !important;
}

/* Meta e captions — manter em color4 (mais discreto) */
.entry-meta,
.ct-meta-elements,
.post-meta,
time,
figcaption,
.wp-caption-text {
  color: var(--theme-palette-color-4, #7295b0) !important;
}




/* ── 15b. HEADER ROWS — Blocksy inline override ─────────────────────── */


/* Logo invert para header escuro */
.ct-header img.default-logo,
.site-logo-container img.default-logo,
.ct-header .site-logo img {
  filter: invert(1) brightness(1.1) !important;
}

/* Override Blocksy inline [data-row="middle"] white background */
[data-header*="type-1"] .ct-header [data-row*="middle"],
.ct-header [data-row*="middle"],
.ct-header [data-row="middle"] {
  background-color: rgba(8, 14, 26, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Top bar (social icons row) */
[data-header*="type-1"] .ct-header [data-row*="top"],
.ct-header [data-row*="top"],
.ct-header [data-row="top"] {
  background-color: rgba(6, 10, 18, 0.97) !important;
}

/* ── 16. HOMEPAGE — Layout editorial ───────────────────────────────── */

/* Remove constraint de 680px da homepage */
.home .entry-content,
.home .wp-block-blocksy-query,
.home .wp-block-query {
  max-width: none !important;
  width: 100%;
}

/* Banda intro/tagline — presença editorial full-width */
.home .wp-block-group.alignwide.has-background {
  max-width: none !important;
  width: 100%;
  padding: 3.5rem 2.5rem !important;
  background: linear-gradient(135deg, #0e1a2a 0%, #080e1a 100%) !important;
  border-bottom: 1px solid rgba(91, 163, 255, 0.15);
  margin-bottom: 0 !important;
}

.home .wp-block-group.alignwide.has-background p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--theme-palette-color-3, #c8d8e8) !important;
  max-width: 600px;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

/* Label editorial acima do grid */
.home .wp-block-blocksy-query::before,
.home .wp-block-query::before {
  content: "ANÁLISES RECENTES";
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--theme-palette-color-1, #5ba3ff);
  padding: 2.5rem 0 1.25rem;
  border-top: 1px solid rgba(91, 163, 255, 0.18);
}

/* Grid: 3 colunas full-width */
.home .ct-query-template-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  width: 100%;
}

/* ── HERO: primeiro post — imagem full-width com overlay ── */

.home .ct-query-template-grid > .wp-block-post:first-child {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
}

.home .ct-query-template-grid > .wp-block-post:first-child > .wp-block-group {
  position: relative;
  overflow: hidden;
  display: block;
}

/* Hero: imagem com ratio cinematográfico */
.home .ct-query-template-grid > .wp-block-post:first-child a.ct-dynamic-media {
  display: block;
  overflow: hidden;
}

.home .ct-query-template-grid > .wp-block-post:first-child a.ct-dynamic-media img {
  aspect-ratio: 21 / 8 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Hero: bloco de texto como overlay */
.home .ct-query-template-grid > .wp-block-post:first-child .wp-block-group.has-background {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 4rem 2.5rem 2rem !important;
  background: linear-gradient(to top, rgba(8,14,26,0.97) 0%, rgba(8,14,26,0.75) 55%, transparent 100%) !important;
}

/* Hero: título */
.home .ct-query-template-grid > .wp-block-post:first-child h2.ct-dynamic-data {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 0.6rem !important;
  margin-top: 0 !important;
}

.home .ct-query-template-grid > .wp-block-post:first-child h2.ct-dynamic-data a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.home .ct-query-template-grid > .wp-block-post:first-child h2.ct-dynamic-data a:hover {
  color: var(--theme-palette-color-1, #5ba3ff) !important;
}

/* Hero: data */
.home .ct-query-template-grid > .wp-block-post:first-child .has-small-font-size {
  font-size: 0.72rem !important;
  color: rgba(200, 216, 232, 0.65) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 0.5rem !important;
  order: -1;
}

/* Hero: excerpt */
.home .ct-query-template-grid > .wp-block-post:first-child .ct-dynamic-data:not(h2):not(.has-small-font-size) {
  font-size: 0.95rem !important;
  color: rgba(200, 216, 232, 0.8) !important;
  line-height: 1.6 !important;
  max-width: 640px;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
}

/* Hero: LEIA MAIS */
.home .ct-query-template-grid > .wp-block-post:first-child .wp-block-read-more {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--theme-palette-color-1, #5ba3ff) !important;
  text-decoration: none !important;
  margin-top: 0.5rem !important;
  display: inline-block;
}

/* ── CARDS SECUNDÁRIOS: posts 2–6 ── */

.home .ct-query-template-grid > .wp-block-post:not(:first-child) {
  border-top: 1px solid rgba(200, 216, 232, 0.07);
  border-left: 1px solid rgba(200, 216, 232, 0.07);
  overflow: hidden;
  background: transparent;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) a.ct-dynamic-media {
  display: block;
  overflow: hidden;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) a.ct-dynamic-media img {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
  transition: transform 0.4s ease;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child):hover a.ct-dynamic-media img {
  transform: scale(1.04);
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) .wp-block-group.has-background {
  padding: 0 !important;
  background: transparent !important;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) h2.ct-dynamic-data {
  font-size: 0.975rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--theme-palette-color-3, #c8d8e8) !important;
  padding: 0.8rem 1rem 0 !important;
  margin: 0 !important;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) h2.ct-dynamic-data a {
  color: var(--theme-palette-color-3, #c8d8e8) !important;
  text-decoration: none !important;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) h2.ct-dynamic-data a:hover {
  color: var(--theme-palette-color-1, #5ba3ff) !important;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) .has-small-font-size {
  font-size: 0.7rem !important;
  color: var(--theme-palette-color-4, #7295b0) !important;
  padding: 0.3rem 1rem 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) .ct-dynamic-data:not(h2):not(.has-small-font-size) {
  font-size: 0.83rem !important;
  color: var(--theme-palette-color-4, #7295b0) !important;
  line-height: 1.5 !important;
  padding: 0.3rem 1rem 0 !important;
}

.home .ct-query-template-grid > .wp-block-post:not(:first-child) .wp-block-read-more {
  display: inline-block;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--theme-palette-color-1, #5ba3ff) !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem 1rem !important;
}


/* ── 17. HOMEPAGE — Responsivo ─────────────────────────────────────── */

@media (max-width: 960px) {
  .home .ct-query-template-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .home .ct-query-template-grid > .wp-block-post:first-child {
    grid-column: 1 / -1;
  }

  .home .ct-query-template-grid > .wp-block-post:first-child h2.ct-dynamic-data {
    font-size: 1.7rem !important;
  }

  .home .ct-query-template-grid > .wp-block-post:first-child .wp-block-group.has-background {
    padding: 3rem 1.75rem 1.75rem !important;
  }

  .home .wp-block-group.alignwide.has-background {
    padding: 2.5rem 1.5rem !important;
  }
}

@media (max-width: 600px) {
  .home .ct-query-template-grid {
    grid-template-columns: 1fr !important;
  }

  .home .ct-query-template-grid > .wp-block-post:first-child a.ct-dynamic-media img {
    aspect-ratio: 16 / 9 !important;
  }

  .home .ct-query-template-grid > .wp-block-post:first-child h2.ct-dynamic-data {
    font-size: 1.35rem !important;
  }

  .home .ct-query-template-grid > .wp-block-post:first-child .wp-block-group.has-background {
    padding: 2rem 1.25rem 1.5rem !important;
  }

  .home .ct-query-template-grid > .wp-block-post:not(:first-child) {
    border-left: none;
  }

  .home .wp-block-group.alignwide.has-background {
    padding: 2rem 1.25rem !important;
  }
}


/* ── 18. HOMEPAGE — Refinamentos ─────────────────────────────────── */

/* LEIA MAIS: remove estilo de botão Blocksy, fica link uppercase limpo */
.home .ct-query-template-grid .wp-block-read-more {
  display: inline-block !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--theme-palette-color-1, #5ba3ff) !important;
  text-decoration: none !important;
  margin: 0 !important;
  line-height: 1;
}

.home .ct-query-template-grid .wp-block-read-more:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Hero: LEIA MAIS inline com o bloco de texto */
.home .ct-query-template-grid > .wp-block-post:first-child .wp-block-read-more {
  margin-top: 0.75rem !important;
  display: inline-block !important;
}

/* Cards secundários sem imagem: adiciona padding-top para equilibrar */
.home .ct-query-template-grid > .wp-block-post:not(:first-child):not(:has(a.ct-dynamic-media)) .wp-block-group.has-background {
  padding: 1.25rem 1rem 1.25rem !important;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fallback para cards sem imagem via has-small-font-size reposicionamento */
.home .ct-query-template-grid > .wp-block-post:not(:first-child) h2.ct-dynamic-data {
  padding-top: 0.8rem !important;
}

/* "ANÁLISES RECENTES" — margem lateral para evitar clip */
.home .wp-block-blocksy-query::before,
.home .wp-block-query::before {
  padding-left: 0.5rem;
}


/* ══════════════════════════════════════════════════════════════════
   v2.3 — OPTIMIZAÇÕES GLOBAIS
   ══════════════════════════════════════════════════════════════════ */

/* ── 19a. HOMEPAGE — Gaps e CTA ─────────────────────────────────── */

/* Remove padding-top que cria gap entre header e intro band */
.home .site-main,
.home main.site-main {
  padding-top: 0 !important;
}

/* Botão "Fale conosco" — outline editorial (não pill branco) */
.home .wp-block-group.alignwide.has-background .wp-block-button__link,
.home .wp-block-group.alignwide.has-background a.wp-block-button__link {
  background-color: transparent !important;
  border: 1px solid rgba(91, 163, 255, 0.45) !important;
  color: var(--theme-palette-color-3, #c8d8e8) !important;
  border-radius: 0 !important;
  padding: 0.65rem 1.75rem !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.home .wp-block-group.alignwide.has-background .wp-block-button__link:hover,
.home .wp-block-group.alignwide.has-background a.wp-block-button__link:hover {
  background-color: var(--theme-palette-color-1, #5ba3ff) !important;
  border-color: var(--theme-palette-color-1, #5ba3ff) !important;
  color: #ffffff !important;
}

/* Intro band: imagem à direita — recortada, sem overflow */
.home .wp-block-group.alignwide.has-background .wp-block-image img,
.home .wp-block-group.alignwide.has-background figure img {
  border-radius: 0;
  object-fit: cover;
}


/* ── 19b. NAVEGAÇÃO — Hover e transições ────────────────────────── */

.ct-nav-menu a,
.main-navigation a,
#site-navigation a,
nav .menu-item a {
  transition: color 0.18s ease !important;
  position: relative;
}

/* Underline animado nos links de nav */
.ct-nav-menu .menu-item > a::after,
.main-navigation .menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--theme-palette-color-1, #5ba3ff);
  transition: width 0.2s ease;
}

.ct-nav-menu .menu-item > a:hover::after,
.ct-nav-menu .current-menu-item > a::after {
  width: 100%;
}


/* ── 19c. SINGLE POST — Imagem destaque e leitura ───────────────── */

/* Featured image: mais larga e com ratio consistente */
.single .post-thumbnail,
.single .entry-thumbnail,
.single .wp-block-post-featured-image,
.single figure.wp-block-post-featured-image {
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.single .post-thumbnail img,
.single .wp-post-image,
.single figure.wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
  border-radius: 0;
}

/* Links dentro do conteúdo */
.entry-content a,
.ct-post-content a {
  color: var(--theme-palette-color-1, #5ba3ff);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.entry-content a:hover,
.ct-post-content a:hover {
  color: var(--theme-palette-color-2, #3d8bff);
  opacity: 0.9;
}

/* Subtítulo / lead do post: primeira frase em destaque */
.single .entry-content > p:first-of-type,
.single .ct-post-content > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--theme-palette-color-3, #c8d8e8);
  border-left: none;
  padding-left: 0;
  opacity: 0.95;
}

/* Separador horizontal no conteúdo */
.entry-content hr,
.ct-post-content hr {
  border: none;
  border-top: 1px solid rgba(200, 216, 232, 0.12);
  margin: 2.5rem auto;
  max-width: 120px;
}

/* Code inline */
.entry-content code,
.ct-post-content code {
  background: rgba(91, 163, 255, 0.1);
  color: var(--theme-palette-color-1, #5ba3ff);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Code blocks */
.entry-content pre,
.ct-post-content pre {
  background: rgba(14, 26, 42, 0.8);
  border: 1px solid rgba(91, 163, 255, 0.12);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 2rem 0;
}

/* Tags de destaque / wp:pullquote */
.wp-block-pullquote {
  border-top: 2px solid var(--theme-palette-color-1, #5ba3ff) !important;
  border-bottom: 2px solid var(--theme-palette-color-1, #5ba3ff) !important;
  border-left: none !important;
  padding: 1.5rem 0 !important;
  text-align: left !important;
  margin: 3rem auto !important;
  max-width: 680px;
}

.wp-block-pullquote blockquote p {
  font-size: 1.2rem !important;
  font-weight: 600;
  line-height: 1.5;
  color: var(--theme-palette-color-3, #c8d8e8) !important;
}

.wp-block-pullquote cite {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}


/* ── 19d. ARCHIVES — Layout, título e cards ─────────────────────── */

/* Título de arquivo/categoria: label minimalista */
.archive .page-title,
.archive .ct-archive-title,
.archive h1.page-title {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: var(--theme-palette-color-3, #c8d8e8) !important;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem !important;
}

/* Prefixo "Categoria" / "Arquivo": vira label discreto */
.archive .page-title .screen-reader-text,
.archive .cat-name::before {
  display: none;
}

.archive .ct-archive-description,
.archive .taxonomy-description {
  font-size: 0.9rem;
  color: var(--theme-palette-color-4, #7295b0);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Cards de arquivo — hover sutil */
.archive article.entry-card,
.blog article.entry-card {
  border-bottom: 1px solid rgba(200, 216, 232, 0.07);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s ease;
}

.archive article.entry-card:hover,
.blog article.entry-card:hover {
  opacity: 0.88;
}

/* Título do card de arquivo */
.archive .entry-title a,
.blog .entry-title a {
  color: var(--theme-palette-color-3, #c8d8e8) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.archive .entry-title a:hover,
.blog .entry-title a:hover {
  color: var(--theme-palette-color-1, #5ba3ff) !important;
}

/* Tag de categoria no card */
.archive .meta-categories a,
.blog .meta-categories a {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--theme-palette-color-1, #5ba3ff) !important;
  text-decoration: none !important;
}

/* Thumbnail de arquivo: ratio consistente */
.archive .entry-thumbnail img,
.blog .entry-thumbnail img,
.archive .ct-blog-archive-entry-thumbnail img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease;
}

.archive article:hover .entry-thumbnail img,
.blog article:hover .ct-blog-archive-entry-thumbnail img {
  transform: scale(1.03);
}


/* ── 19e. FOOTER — Balanço visual ───────────────────────────────── */

footer,
.site-footer,
.ct-footer {
  border-top: 1px solid rgba(200, 216, 232, 0.08) !important;
  padding-top: 3rem !important;
}

.ct-footer-copyright {
  font-size: 0.75rem !important;
  opacity: 0.55;
  padding: 1.5rem 0 !important;
  border-top: 1px solid rgba(200, 216, 232, 0.06) !important;
}


/* ── 19f. PAGINAÇÃO ─────────────────────────────────────────────── */

.pagination,
.nav-links,
.ct-pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.page-numbers,
.nav-links a,
.ct-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-palette-color-4, #7295b0) !important;
  background: transparent !important;
  border: 1px solid rgba(200, 216, 232, 0.12) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-numbers:hover,
.nav-links a:hover,
.ct-pagination a:hover,
.page-numbers.current {
  color: var(--theme-palette-color-1, #5ba3ff) !important;
  border-color: var(--theme-palette-color-1, #5ba3ff) !important;
}


/* ── 19g. SCROLL E LEITURA — Micro-otimizações ──────────────────── */

/* Seleção de texto */
::selection {
  background: rgba(91, 163, 255, 0.25);
  color: #ffffff;
}

/* Transição suave nas imagens ao carregar */
img {
  transition: opacity 0.3s ease;
}

/* Smooth scroll nativo */
html {
  scroll-behavior: smooth;
}

/* Evitar overflow horizontal */
body {
  overflow-x: hidden;
}

/* === SEÇÃO 19h — Homepage: remover gap ct-container-full (contentAreaSpacing Blocksy) === */
.home .ct-container-full,
.home .ct-content-area,
.home .ct-container-full.ct-content-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
}