/**
 * Universo Tresora — tipografia editorial dos ARTIGOS do blog.
 *
 * Escopo: somente body.template-blog-post (página de post).
 * Não altera home, produtos, listagem /blog, checkout ou outras páginas.
 *
 * Estratégia: CSS centralizado no tema, com especificidade + !important
 * onde o HTML do artigo traz font-size/line-height inline (ZIP/ChatGPT).
 *
 * NÃO aplicar no tema ativo sem autorização explícita.
 */

/* -------------------------------------------------------------------------
   Coluna editorial + fundo
   ------------------------------------------------------------------------- */
body.template-blog-post .blog-post-page {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  color: #1a1714;
}

body.template-blog-post .container.container-narrow,
body.template-blog-post .blog-post-page {
  width: 100%;
}

/* -------------------------------------------------------------------------
   H1 (título do post no page-header Flex)
   ------------------------------------------------------------------------- */
body.template-blog-post .page-header .text-heading,
body.template-blog-post .page-header h1 {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif !important;
  font-size: 48px !important; /* faixa 44–52 */
  line-height: 1.2 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  color: #14110f !important;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------
   Corpo do artigo
   ------------------------------------------------------------------------- */
body.template-blog-post .post-content {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif;
  font-size: 19px !important;
  line-height: 1.8 !important; /* faixa 1.75–1.85 */
  color: #2d2a27 !important;
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
}

body.template-blog-post .post-content p,
body.template-blog-post .post-content li,
body.template-blog-post .post-content td,
body.template-blog-post .post-content th {
  font-size: 19px !important;
  line-height: 1.8 !important;
  color: #2d2a27 !important;
}

body.template-blog-post .post-content p {
  margin: 0 0 1.15em !important;
}

body.template-blog-post .post-content ul,
body.template-blog-post .post-content ol {
  margin: 0 0 1.25em 1.25em !important;
  padding: 0 !important;
}

body.template-blog-post .post-content li {
  margin: 0 0 0.45em !important;
}

body.template-blog-post .post-content a {
  color: #6b4f2a !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.template-blog-post .post-content strong {
  font-weight: 650;
  color: #1a1714;
}

/* -------------------------------------------------------------------------
   Títulos internos
   ------------------------------------------------------------------------- */
body.template-blog-post .post-content h2 {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif !important;
  font-size: 32px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  color: #14110f !important;
  margin: 2.1em 0 0.7em !important;
}

body.template-blog-post .post-content h3 {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
  font-weight: 550 !important;
  color: #14110f !important;
  margin: 1.6em 0 0.55em !important;
}

body.template-blog-post .post-content h4 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin: 1.35em 0 0.45em !important;
}

/* -------------------------------------------------------------------------
   Imagens / figuras — sem corte, centralizadas
   ------------------------------------------------------------------------- */
body.template-blog-post .blog-post-page > img.post-item-image,
body.template-blog-post .blog-post-page img.post-item-image {
  display: block;
  max-width: min(760px, 100%);
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto 1.5rem;
}

body.template-blog-post .post-content img {
  display: block !important;
  max-width: min(760px, 100%) !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 1.25em auto !important;
  border-radius: 8px;
}

body.template-blog-post .post-content figure {
  display: block !important;
  max-width: min(760px, 100%) !important;
  width: 100% !important;
  margin: 1.75em auto 2em !important;
  padding: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body.template-blog-post .post-content figure img {
  margin: 0 auto !important;
}

body.template-blog-post .post-content figcaption {
  display: block !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #645b52 !important;
  text-align: center !important;
  margin: 10px 0 0 !important;
  max-width: 760px;
}

/* Neutraliza object-fit:cover / alturas fixas vindas de inline ou Flex */
body.template-blog-post .post-content img[style*="object-fit:cover"],
body.template-blog-post .post-content img[style*="object-fit: cover"] {
  object-fit: contain !important;
}

body.template-blog-post .post-content img[style*="height:"],
body.template-blog-post .post-content img[height] {
  height: auto !important;
}

/* Blocos ERP (FAQ / coleções) — tipografia alinhada, sem depender do inline */
body.template-blog-post .post-content .tj-faq,
body.template-blog-post .post-content .tj-store-collections {
  margin: 2.25em 0 !important;
}

body.template-blog-post .post-content .tj-faq-item h3 {
  font-size: 24px !important;
}

/* Home-style collections: vertical + cover, sem faixa bege */
body.template-blog-post .post-content .tj-store-collections--home .tj-collection-media {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  overflow: hidden !important;
  background: transparent !important;
  line-height: 0 !important;
}
@media (min-width: 768px) {
  body.template-blog-post .post-content .tj-store-collections--home .tj-collection-media {
    aspect-ratio: 4 / 5 !important;
  }
}
body.template-blog-post .post-content .tj-store-collections--home .tj-collection-media img,
body.template-blog-post .post-content .tj-store-collections--home .tj-collection-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Meta “Publicado em … por …” — ocultar (não exibir autor/API NS) */
body.template-blog-post .blog-post-page .post-date {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.template-blog-post .page-header .text-heading,
  body.template-blog-post .page-header h1 {
    font-size: 34px !important;
    line-height: 1.22 !important;
  }

  body.template-blog-post .post-content {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }

  body.template-blog-post .post-content p,
  body.template-blog-post .post-content li {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }

  body.template-blog-post .post-content h2 {
    font-size: 28px !important;
  }

  body.template-blog-post .post-content h3 {
    font-size: 23px !important;
  }

  body.template-blog-post .post-content img,
  body.template-blog-post .post-content figure {
    max-width: 100% !important;
  }
}
