/* =========================================================================
   Blog (/blog/ and /blog/<slug>/). Out of the main menu, indexable.
   Reuses editorial.css: `.service-hero--text` (text-only hero on paper) for
   page heads and `.sumario .idx-row` for the article index. This file only
   adds the article body, the FAQ and the end-of-article CTA box.
   No photos inside articles (photo rule: only cover/closing bands).
   ========================================================================= */

/* Footer credit: Casa Amarela logo at 40px (same rule is in base.css on the
   branch; kept here while the live base.css ?v=ed16 is still 18px). */
.footer-bottom .credit img { height: 40px; }

/* --- Head ------------------------------------------------------------- */
.blog-crumbs {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--taupe); margin-bottom: 26px;
}
.blog-crumbs a { color: var(--taupe); transition: color .2s ease; }
.blog-crumbs a:hover { color: var(--vermelho); }
.blog-meta {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe);
}
.service-hero--text { background: var(--paper); }  /* full-width paper, not a boxed panel */
.service-hero--text h1 { max-width: 22ch; }

/* --- Article index ---------------------------------------------------- */
.blog-lista { background: var(--paper); }
.blog-vazio { color: var(--taupe); font-style: italic; }

/* --- Article body ----------------------------------------------------- */
.artigo { background: var(--paper); }
.artigo .container { max-width: 860px; padding-top: 0; }
.artigo-corpo { border-top: 1px solid var(--ink); padding-top: clamp(32px, 5vw, 56px); }
.artigo-corpo > p,
.artigo-corpo li { color: var(--offblack); }
.artigo-corpo h2 {
  font-size: 26px; font-weight: 600; line-height: 1.12;
  margin: clamp(48px, 6vw, 72px) 0 22px;
}
.artigo-corpo h3 { font-size: 20px; font-weight: 500; margin: 40px 0 14px; }
.artigo-corpo ul, .artigo-corpo ol { margin: 0 0 1em; padding: 0; list-style: none; }
.artigo-corpo ul li, .artigo-corpo ol li {
  position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line);
}
.artigo-corpo ul li::before { content: "—"; position: absolute; left: 0; color: var(--vermelho); }
.artigo-corpo ol { counter-reset: passo; }
.artigo-corpo ol li { counter-increment: passo; }
.artigo-corpo ol li::before {
  content: counter(passo, decimal-leading-zero); position: absolute; left: 0; top: 12px;
  font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700; color: var(--vermelho);
}
/* Text links only (not the .btn buttons in the CTA box). */
.artigo-corpo p a, .artigo-corpo li a { color: var(--vermelho-deep); font-weight: 600; transition: color .2s ease; }
.artigo-corpo p a:hover, .artigo-corpo li a:hover { color: var(--ink); }
.artigo-corpo blockquote {
  margin: clamp(36px, 5vw, 56px) 0;
  padding-left: clamp(18px, 3vw, 32px);
  border-left: 2px solid var(--vermelho);
  font-family: 'Libre Caslon Text', serif; font-style: italic; font-weight: 500;
  font-size: 21px; line-height: 1.3; color: var(--ink);
}

/* --- "Em resumo" box: direct answer up top (what search engines and LLMs quote) */
.resposta-rapida {
  background: var(--bege); border-left: 3px solid var(--vermelho);
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 36px);
  margin-bottom: clamp(8px, 2vw, 16px);
}
.resposta-rapida .kicker { margin-bottom: 12px; font-size: 11px; }
.resposta-rapida p { color: var(--ink); font-size: 16px; line-height: 1.55; }

/* --- Tables (comparisons) ---------------------------------------------- */
.tabela { overflow-x: auto; margin: 28px 0 32px; -webkit-overflow-scrolling: touch; }
.tabela table { width: 100%; border-collapse: collapse; min-width: 520px; }
.tabela th {
  text-align: left; vertical-align: bottom;
  font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--vermelho);
  padding: 12px 14px 12px 0; border-bottom: 1px solid var(--ink);
}
.tabela td {
  vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; color: var(--offblack);
}
.tabela td:first-child { color: var(--ink); font-weight: 600; }

/* --- Author box + related articles ------------------------------------ */
.autora { margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); }
.autora .kicker { font-size: 11px; margin-bottom: 10px; }
.autora p { color: var(--offblack); font-size: 14px; }
.autora a, .blog-meta a { color: var(--vermelho-deep); font-weight: 600; }
.blog-meta a { color: inherit; }
.leia-tambem { margin-top: clamp(40px, 5vw, 56px); }
.leia-tambem .kicker { margin-bottom: 8px; }
.leia-tambem ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.leia-tambem li { padding: 0 !important; border-bottom: 1px solid var(--line); }
.leia-tambem li::before { content: none !important; }
.leia-tambem a {
  display: block; padding: 18px 40px 18px 0; position: relative;
  font-family: 'Libre Caslon Text', serif; font-size: 16px; font-weight: 500; line-height: 1.3;
  color: var(--ink) !important; transition: color .2s ease;
}
.leia-tambem a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--vermelho); }
.leia-tambem a:hover { color: var(--vermelho-deep) !important; }
.leia-tambem .lt-cat {
  display: block; margin-bottom: 4px;
  font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--taupe);
}
.artigo-faq h2.kicker { margin: 0 0 18px; font-size: 13px; line-height: 1.4; }

/* --- FAQ (same look as the landing page) ------------------------------ */
.artigo-faq { margin-top: clamp(48px, 6vw, 72px); }
.artigo-faq .kicker { margin-bottom: 18px; }
.faq-lista { border-top: 1px solid var(--ink); }
.faq-lista details { border-bottom: 1px solid var(--line); }
.faq-lista summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 24px 52px 24px 0;
  font-family: 'Libre Caslon Text', serif; font-weight: 500;
  font-size: 18px; line-height: 1.25; color: var(--ink);
  transition: color .2s ease;
}
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: 'Space Mono', ui-monospace, monospace; font-size: 18px; color: var(--vermelho);
}
.faq-lista details[open] summary::after { content: '–'; }
.faq-lista summary:hover { color: var(--vermelho-deep); }
.faq-lista details p { padding: 0 52px 26px 0; color: var(--offblack); }

/* --- End-of-article CTA ----------------------------------------------- */
.artigo-cta {
  margin-top: clamp(56px, 7vw, 88px);
  background: var(--ink); color: var(--bege);
  border-top: 3px solid var(--vermelho);
  padding: clamp(30px, 4vw, 52px);
}
.artigo-cta .kicker { margin-bottom: 16px; }
.artigo-cta h2 { color: var(--bege); font-size: 25px; margin: 0 0 16px; }
.artigo-cta p { color: rgba(228, 226, 221, .85); margin-bottom: 26px; }
.artigo-cta .btn { margin: 0 12px 12px 0; }

.artigo-voltar { padding: 40px 0 72px; }
.artigo-voltar a {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe);
  transition: color .2s ease;
}
.artigo-voltar a:hover { color: var(--vermelho); }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .resposta-rapida p { font-size: 14px; }
  .tabela td { font-size: 12px; }
  .leia-tambem a { font-size: 14px; }
  .artigo-corpo h2 { font-size: 21px; }
  .artigo-corpo h3 { font-size: 17px; }
  .artigo-corpo blockquote { font-size: 18px; }
  .faq-lista summary { font-size: 15px; padding-right: 40px; }
  .faq-lista details p { padding-right: 0; }
  .artigo-cta h2 { font-size: 20px; }
}
@media (max-width: 560px) {
  .artigo-cta .btn { width: 100%; justify-content: center; margin-right: 0; }
}
