.blog-page .site-header {
  position: sticky;
}

.blog-main {
  min-height: 100vh;
}

.blog-hero,
.post-hero,
.blog-section,
.post-section,
.blog-cta {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.blog-hero,
.post-hero {
  padding: 120px 0 56px;
}

.blog-hero-grid,
.blog-grid,
.blog-cta-card,
.post-layout,
.related-grid {
  display: grid;
  gap: 24px;
}

.blog-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: end;
}

.blog-kicker,
.post-kicker {
  margin-bottom: 16px;
}

.blog-hero h1,
.post-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 1.02;
}

.post-content p {
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.blog-hero p,
.post-hero p,
.blog-card p,
.post-sidebar p,
.fact-card p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.blog-meta-box,
.post-meta-strip,
.fact-card,
.blog-card,
.post-content-card,
.post-sidebar-card,
.blog-cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.blog-meta-box {
  padding: 28px;
}

.blog-meta-title {
  margin: 0 0 6px;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 600;
}

.blog-meta-box li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.blog-meta-box li a:hover {
  gap: 8px;
}

.blog-meta-box ul,
.post-key-points,
.post-toc,
.post-faq-list,
.llm-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-meta-box li,
.post-key-points li,
.post-toc li,
.llm-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.blog-meta-box li:last-child,
.post-key-points li:last-child,
.post-toc li:last-child,
.llm-points li:last-child {
  border-bottom: 0;
}

.blog-section,
.post-section {
  padding: 0 0 72px;
}

.blog-section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.blog-section-head h2,
.post-content h2,
.related-head h2 {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 0.98;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  overflow: hidden;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(8, 54, 48, 0.92), rgba(31, 81, 74, 0.82));
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 28px;
}

.blog-tag,
.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(167, 253, 150, 0.18);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-content h3 {
  margin: 18px 0 12px;
  font-size: 40px;
  line-height: 0.98;
}

/* o `main` no seletor supera a escala global do advisora.css
   (main h3 { font-size: 40px !important }), pensada para títulos de seção */
main .blog-card h3 {
  margin: 16px 0 10px;
  font-size: 20px !important;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

main .blog-card-featured h3 {
  font-size: 26px !important;
}

/* card de texto: 20px é a medida do corpo do post, grande demais dentro de um card */
.blog-card p {
  font-size: 16px !important;
  line-height: 1.6;
}

.blog-card-featured p {
  font-size: 18px !important;
}

.blog-card-link {
  margin-top: 20px;
}

/* atalhos: o card inteiro é o link */
.blog-card-shortcut {
  display: block;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card-shortcut:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 54, 48, 0.28);
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.14);
}

.blog-card-shortcut .blog-card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-card-shortcut p {
  flex: 1;
}

.blog-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.blog-card-featured .blog-card-image {
  aspect-ratio: auto;
  min-height: 320px;
}

.blog-card-featured .blog-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.blog-card-footer,
.post-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.blog-card-footer {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.blog-cta {
  padding-bottom: 80px;
}

.blog-cta-card {
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  padding: 36px;
  background: var(--green);
  color: var(--paper);
}

.blog-cta-card h2,
.blog-cta-card p,
.post-sidebar-card h3,
.post-sidebar-card p {
  color: inherit;
}

.post-meta-strip {
  padding: 18px 20px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.post-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.post-content-card,
.post-sidebar-card {
  padding: 32px;
}

.post-content-card {
  display: grid;
  gap: 24px;
}

.post-summary {
  padding: 24px;
  border-radius: 20px;
  background: rgba(167, 253, 150, 0.18);
}

.post-summary h2 {
  font-size: 26px;
  line-height: 1.05;
}

.post-summary p,
.post-content li,
.post-faq-item p {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.post-content ul,
.post-content ol {
  padding-left: 22px;
  margin: 0;
  display: grid;
  gap: 12px;
}

.post-content blockquote {
  margin: 0;
  padding: 24px 28px;
  border-left: 4px solid var(--green);
  border-radius: 0 20px 20px 0;
  background: rgba(8, 54, 48, 0.06);
  font-size: 22px;
  line-height: 1.5;
}

.post-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.post-content th,
.post-content td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.post-content th {
  background: rgba(8, 54, 48, 0.06);
}

.post-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 20px;
}

.post-sidebar-card h3 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 24px;
}

.post-toc a {
  display: block;
  padding: 10px 0;
  color: var(--ink-soft);
}

.fact-grid,
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-card {
  padding: 24px;
}

.fact-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.related-grid .blog-card {
  height: 100%;
}

.post-faq-list {
  display: grid;
  gap: 18px;
}

.post-faq-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.post-faq-item h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

@media (max-width: 1080px) {
  .blog-grid,
  .fact-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-layout,
  .blog-hero-grid,
  .blog-cta-card,
  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-card-featured .blog-card-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .blog-card-featured .blog-card-body {
    padding: 32px;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .blog-hero,
  .post-hero {
    padding: 104px 0 40px;
  }

  .blog-hero h1,
  .post-hero h1 {
    font-size: 42px;
  }

  /* o `main` acompanha a escala global do advisora.css, que também usa !important nos breakpoints */
  main .blog-section-head h2,
  main .post-content h2,
  main .related-head h2 {
    font-size: 34px !important;
  }

  main .blog-card h3,
  main .blog-card-featured h3 {
    font-size: 24px !important;
  }

  main .post-content h3,
  main .post-faq-item h3 {
    font-size: 26px !important;
  }

  .blog-grid,
  .fact-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .post-content-card,
  .post-sidebar-card,
  .blog-card-body,
  .blog-cta-card,
  .blog-meta-box {
    padding: 24px;
  }

  .blog-hero,
  .post-hero,
  .blog-section,
  .post-section,
  .blog-cta {
    width: min(var(--container), calc(100% - 32px));
  }
}

/* =========================================================
   Página de post: hero em faixa escura, índice e sidebar fixa
   ========================================================= */

.post-page .post-hero-band {
  margin-bottom: 56px;
  padding: 96px 24px 104px;
  color: white;
  background: var(--green);
}

.post-hero-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
}

.post-page .post-hero-copy h1 {
  max-width: none;
  margin-bottom: 22px;
  color: white;
  font-size: 46px;
  line-height: 1.06;
}

.post-page .post-hero-copy > p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.65;
}

.post-hero-actions {
  margin: 32px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
  background: transparent;
}

.button-ghost-light:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.post-hero-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13px !important;
}

.post-hero-art img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  object-fit: cover;
}

.breadcrumb {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.post-page .post-meta-strip {
  margin: 0 0 28px;
}

/* índice recolhível — <details> resolve sem JavaScript */
.post-index {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.post-index summary {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--green);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.post-index summary::-webkit-details-marker {
  display: none;
}

.post-index summary i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s ease;
}

.post-index[open] summary i {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.post-index-list {
  margin: 0;
  padding: 4px 26px 24px;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: indice;
}

.post-index-list li {
  padding: 9px 0;
  counter-increment: indice;
}

.post-index-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
}

.post-index-list a::before {
  content: counter(indice) ".";
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 600;
}

.post-index-list a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* sidebar */
.post-sidebar-cta {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sidebar-badge {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 16px;
  color: var(--green) !important;
  background: rgba(167, 253, 150, 0.28);
  font-size: 15px !important;
  font-weight: 600;
  text-align: center;
}

.sidebar-checks {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  list-style: none;
}

.sidebar-checks a {
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.35;
}

.sidebar-checks a::before {
  content: "→";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(167, 253, 150, 0.35);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.sidebar-checks a:hover {
  color: var(--green);
}

.sidebar-checks a:hover::before {
  transform: translateX(3px);
}

.sidebar-note {
  margin: 18px 0 0 !important;
  color: var(--ink-soft) !important;
  font-size: 13px !important;
  line-height: 1.5;
}

.sidebar-cats {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.sidebar-cats a {
  padding: 9px 14px;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sidebar-cats a:hover {
  border-color: var(--green);
  color: var(--green);
}

/* FAQ dentro do corpo do artigo */
#perguntas-frequentes .post-faq-list {
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .post-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-hero-art img {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .post-page .post-hero-band {
    margin-bottom: 40px;
    padding: 76px 20px 80px;
  }

  .post-page .post-hero-copy h1 {
    font-size: 34px;
  }

  .post-hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .post-index summary {
    padding: 18px 20px;
    font-size: 19px;
  }

  .post-index-list {
    padding: 4px 20px 20px;
  }
}

/* ---------------------------------------------------------
   Correção de escala: o advisora.css aplica `main h2 { 48px !important }`
   e `main h3 { 40px !important }`, medidas de título de seção. Dentro de um
   artigo isso deixa cada subtítulo do tamanho de um cabeçalho de página.
   --------------------------------------------------------- */
main .post-content h2 {
  margin-bottom: 6px;
  font-size: 30px !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

main .post-summary h2 {
  font-size: 22px !important;
}

main .post-content h3,
main .post-faq-item h3 {
  font-size: 20px !important;
  line-height: 1.25;
}

main .post-sidebar-card h3 {
  font-size: 20px !important;
}

main .blog-cta-card h2 {
  font-size: 32px !important;
  line-height: 1.15;
}

main .related-head h2 {
  font-size: 34px !important;
}

@media (max-width: 720px) {
  main .post-content h2 {
    font-size: 25px !important;
  }

  main .blog-cta-card h2 {
    font-size: 26px !important;
  }
}
