/********** blog-post.html ***********/
.blog-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1 0 auto;
    background-color: #F4F1EC;
    animation: fadeIn 0.3s ease-out 0s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.blog-post {
    --post-details-max-width: 78rem;
    --post-details-inline-padding: 1rem;
    --post-category-inline-padding: 0.75rem;
}

.blog-post-image-wrapper {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  width: 100%;
  min-height: clamp(24rem, 54vh, 36rem);
  height: auto;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  background: var(--blog-cover-fallback);
}

.background-emulate {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  image-rendering: crisp-edges;
  image-rendering: -webkit-crisp-edges;
}


.text-container {
    position: relative;
    z-index: 2;
    width: calc(100% - 2rem);
    max-width: 78rem;
    min-width: 0;
    padding: clamp(2rem, 7vh, 6rem) 0;
    box-sizing: border-box;
}

.blog-post-image-wrapper h1 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1.75rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: 0px;
  color: #fff;
  text-align: left;
  position: relative;
  margin: 0; 
  padding: 1.5rem; 
  z-index: 2;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out 0s forwards;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  word-break: normal;
  box-sizing: border-box;
}

.blog-post-image-wrapper h2 {
  font-family: 'Roboto', 'Roboto-Condensed', 'Signika', 'Arsenal', sans-serif;
  letter-spacing: 2px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: #fff;
  text-align: left;
  padding: 1rem; 
  margin: 0;  
  z-index: 2;
  animation: fadeIn 0.3s ease-out 0s forwards;
}



.blog-post-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.28) 100%
    );
  pointer-events: none;
}

.background-emulate {
  z-index: 0;
}


/* =========================================================
   BLOG POST DETAILS / METADADOS

   Cabeçalho e rodapé compartilham a mesma faixa: categoria
   principal à esquerda; data e curtida agrupadas à direita.
   Os assuntos aparecem apenas uma vez, acima do rodapé, como
   texto editorial simples e centralizado.
   ========================================================= */

.blog-post-details {
    width: 100%;
    padding: 0.75rem var(--post-details-inline-padding);
    box-sizing: border-box;
    background-color: #F2EEE8;
}

.blog-post-details-wrapper {
    width: 100%;
    max-width: var(--post-details-max-width);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: clamp(0.25rem, 1.6vw, 1.25rem);

    flex-wrap: nowrap;
    min-width: 0;
}

.blog-post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 auto;
    min-width: 0;

    min-height: clamp(1.55rem, 5vw, 2rem);

    padding:
        clamp(0.2rem, 1vw, 0.375rem)
        var(--post-category-inline-padding);

    box-sizing: border-box;

    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.03);

    color: #4F4A44;
    font-family: 'Roboto', 'Signika', sans-serif;
    font-size: clamp(0.64rem, 2.7vw, 1rem);
    font-weight: 300;
    line-height: 1.2;
    text-align: center;

    white-space: nowrap;
}

.blog-post-category p {
    margin: 0;

    font: inherit;
    color: inherit;
    line-height: inherit;
    text-align: inherit;

    white-space: inherit;
}

.blog-post-details-meta {
    margin-left: auto;

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 1 auto;
    min-width: 0;

    gap: clamp(0.2rem, 1.7vw, 1.15rem);

    white-space: nowrap;
}

.blog-post-date {
    margin: 0;

    color: #4F4A44;
    font-family: 'Roboto', 'Signika', sans-serif;
    font-size: clamp(0.64rem, 2.7vw, 1rem);
    font-weight: 300;
    line-height: 1.2;

    text-align: right;
    white-space: nowrap;
}

.blog-like-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: clamp(0.2rem, 1vw, 0.45rem);

    white-space: nowrap;
}

.blog-like-count {
    margin: 0;

    font-family: 'Roboto', 'Signika', sans-serif;
    font-size: clamp(0.64rem, 2.7vw, 1rem);
    font-weight: 300;
    line-height: 1.2;
}

/* Assuntos relacionados ficam fora da faixa de detalhes e podem usar
   toda a largura restante da página. O início da linha coincide com o
   texto interno de .blog-post-category p (wrapper + padding da pill).
   A linha nunca é cortada: o JS reduz a fonte somente quando necessário. */
.blog-post-related-subjects {
    width: calc(
        100% - (2 * var(--post-details-inline-padding))
    );

    max-width: var(--post-details-max-width);

    margin: 1rem auto 0;

    padding: 0;

    box-sizing: border-box;
}

.blog-post-related-subjects p {
    width: 100%;
    max-width: 100%;

    margin: 0;

    /*
     * Alinha exatamente com o texto dentro da pill
     * da categoria.
     */
    padding-left: var(--post-category-inline-padding);
    padding-right: 0;

    box-sizing: border-box;

    color: #77716A;

    font-family: 'Roboto', 'Signika', sans-serif;

    /*
     * Diminuição progressiva e discreta.
     */
    font-size: clamp(
        0.72rem,
        calc(0.65rem + 0.35vw),
        0.82rem
    );

    font-weight: 200;
    line-height: 1.45;

    text-align: left;

    white-space: normal;

    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.blog-post-related-subjects strong {
    color: #4F4A44;
    font-weight: 400;
}







@media (max-width: 928px) {
  .blog-post-details {
      padding: 0.8rem 1rem;
  }

  .blog-post-details-wrapper {
      width: 100%;
      gap: 0.3rem 0.8rem;
  }

  .blog-post-details-meta {
      gap: 0.3rem 0.8rem;
  }


  .blog-post-category,
  .blog-post-date,
  .blog-like-count {
      font-size: 0.95rem;
  }
}

@media (max-width: 640px) {

    .blog-post {
        --post-details-inline-padding: 0.6rem;
        --post-category-inline-padding: 0.4rem;
    }

    .blog-post-details {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .blog-post-details-wrapper {
        gap: 0.3rem;
    }

    .blog-post-details-meta {
        gap: 0.3rem;
    }

    .blog-post-category {
        min-height: 1.55rem;
    }

    .blog-like-icon {
        font-size: clamp(0.9rem, 3.8vw, 1.1rem);
    }

    .blog-post-related-subjects {
        margin-top: 0.85rem;
        margin-bottom: 0.65rem;
    }

    .blog-post-category,
    .blog-post-date,
    .blog-like-count {
        font-size: clamp(0.62rem, 2.65vw, 0.82rem);
    }
}






.blog-like-toggle {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #4F4A44;
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.blog-like-toggle:hover {
  color: red;
  opacity: 0.92;
}

.blog-like-toggle:active {
  transform: scale(0.94);
}

.blog-like-toggle:focus-visible {
  outline: 2px solid #2E98ED;
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.blog-like-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
}

/* estado curtido */
.blog-like-toggle.is-liked .blog-like-icon {
  color: red;
}

.blog-like-toggle.is-liked .blog-like-icon::before {
  content: "♥";
}

.blog-like-toggle:not(.is-liked) .blog-like-icon::before {
  content: "♡";
}

.blog-like-icon {
  font-size: 1.35rem;
  color: inherit;
}









.blog-post-article {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 1.15rem;
    background-color: #F4F1EC;
    align-items: flex-start;
    justify-content: center;
    flex: 1 0 auto;
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 728px;
    margin: 0 auto 1.75rem;
    padding: 0;
}

.blog-post-content .blog-post-summary {
    width: 100%;
    min-width: 0;

    margin: 0 0 2rem;
    padding: 1.5rem 0;

    box-sizing: border-box;

    border-top:
        1px solid rgba(40, 80, 149, 0.22);

    border-bottom:
        1px solid rgba(40, 80, 149, 0.22);

    background: transparent;

    color: #3F3B36;

    font-family:
        'Roboto',
        'Signika',
        'Arsenal',
        sans-serif;

    font-size:
        clamp(
            1.2rem,
            2.7vw,
            1.4rem
        );

    font-weight: 400;
    line-height: 1.65;

    text-align: justify;
}



.blog-post-content .image-block {
  position: relative;
  /* Retrato e quadrada acompanham a coluna de leitura. */
  width: min(728px, calc(100vw - 2rem));
  max-width: none;
  flex: 0 0 auto;
  align-self: center;
  margin: 2rem 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

/* Somente imagens realmente horizontais usam a faixa editorial ampliada. */
.blog-post-content .image-block.image-block--landscape {
  width: min(880px, calc(100vw - 2rem));
}

.blog-post-content .image-block img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-media);
}

.blog-post-content .image-block .image-title {
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 0.65rem;
  color: #5E5851;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.4;
  text-align: left;
}

.blog-post-content .image-block .image-description {
  text-align: left;
  font-family: 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 300;
  line-height: 1.125rem;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(25, 25, 25, 0.16);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(64px);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  border-radius: 0 0 var(--radius-media) var(--radius-media);
}

/* Estilos para elementos de lista */
.blog-post-content p,
.blog-post-content p span,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content li {
    color: #4F4A44;

    font-family:
        'Roboto',
        'Signika',
        'Arsenal',
        sans-serif;

    font-size:
        clamp(
            1.125rem,
            2.5vw,
            1.25rem
        );

    font-weight: 300;
    line-height: 2.5rem;
}

.blog-post-content p,
.blog-post-content p span {
    text-align: left;

    margin-bottom: 1rem;

    background-color: transparent;
}

.blog-post-content ul,
.blog-post-content ol {
    width: 100%;

    margin: 0.75rem 0 1rem;
    padding-left: 1.75rem;

    text-align: left;
}

.blog-post-content li {
    margin: 0 0 0.25rem;
    padding: 0;
}


.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  color: #2F2B27;
  text-align: left;
  margin-bottom: 1.5rem; 
  margin-top: 1rem; 
}

.blog-post-content h2 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 4rem;
  letter-spacing: 0px;
}

.blog-post-content h3 {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  line-height: 2.25rem;
}

.blog-post-content h4 {
  font-size: clamp(1.37rem, 5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.5rem;
}

.blog-post-content h5 {
  font-size: clamp(1.37rem, 5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: -0.8px;
  line-height: 1.5rem;
}

.blog-post-content h6 {
  font-size: clamp(1.125rem, 5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: -0.8px;
  line-height: 1.25rem;
}

.blog-post-content > p,
.blog-post-content > h2,
.blog-post-content > h3,
.blog-post-content > h4,
.blog-post-content > h5,
.blog-post-content > h6,
.blog-post-content > ul,
.blog-post-content > ol,
.blog-post-content > dl,
.blog-post-content > pre,
.blog-post-content > table,
.blog-post-content > figure,
.blog-post-content > hr {
  width: 100%;
  box-sizing: border-box;
}

.blog-post-content a {
  color: #285095;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.18s ease;
}

.blog-post-content a:hover,
.blog-post-content a:focus {
  color: #2E98ED;
}


/* =========================================================
TABELAS
========================================================= */

.blog-post-content .table-block {
    width: fit-content;
    max-width: min(880px, calc(100vw - 2rem));

    flex: 0 0 auto;
    align-self: center;

    margin: 2rem 0;
    box-sizing: border-box;
}

.blog-post-content .table-scroll {
    width: fit-content;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
}

.blog-post-content .table-scientific {
    width: max-content;
    min-width: 0;
    max-width: none;

    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;

    background: transparent;
    color: #4F4A44;

    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 200;
    line-height: 1.25;

    white-space: nowrap;
    text-align: left;
}

.blog-post-content .table-scroll:focus-visible {
  outline: 2px solid rgba(40, 80, 149, 0.45);
  outline-offset: 4px;
}





/* Compatibilidade com tabelas antigas inseridas sem wrapper. */
.blog-post-content > .table-scientific {
  display: block;
  width: min(880px, calc(100vw - 2rem));
  max-width: none;
  align-self: center;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-post-content .table-scientific caption {
  caption-side: top;
  padding: 0 0 0.65rem;
  color: #5E5851;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.4;
  text-align: left;
}

.blog-post-content .table-scientific th,
.blog-post-content .table-scientific td {
  padding: 0.35rem 0.65rem;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: inherit;
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
}

/*
 * Apenas o cabeçalho recebe linha superior e inferior.
 * O fundo é sempre transparente para preservar o padrão editorial.
 */
.blog-post-content .table-scientific thead th {
  border-top: 1px solid rgba(47, 43, 39, 0.72) !important;
  border-bottom: 1px solid rgba(47, 43, 39, 0.72) !important;
  background: transparent !important;
  color: #2F2B27;
  font-weight: 700;
}

/* Sem linha de total:
   a última linha de dados fecha a tabela. */
.blog-post-content
.table-scientific
tbody
tr:last-child:not(.table-total)
td {
    border-bottom: 1px solid rgba(47, 43, 39, 0.72) !important;
}


/* Com linha de total:
   o total ganha linha acima e abaixo. */
.blog-post-content
.table-scientific
tbody
tr.table-total
td {
    color: #2F2B27;
    font-weight: 700;

    border-top: 1px solid rgba(47, 43, 39, 0.72) !important;
    border-bottom: 1px solid rgba(47, 43, 39, 0.72) !important;
}

/* Linha de total: destaque tipográfico, sem criar uma divisória extra. */
.blog-post-content .table-scientific tbody tr.table-total td {
  color: #2F2B27;
  font-weight: 700;
}

.blog-post-content .table-scientific.table-numeric th:not(:first-child),
.blog-post-content .table-scientific.table-numeric td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
CODIGOS
========================================================= */
.blog-post-content pre {
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
 border-radius: var(--radius-media);
  background: #292D32;
  color: #F5F5F5;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.65;
}

.blog-post-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.blog-post-content :not(pre) > code {
  padding: 0.12rem 0.35rem;
  border-radius: var(--radius-xs);
  background: rgba(40, 80, 149, 0.08);
  color: #37475F;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}
/* =========================================================
SEPARADOR
========================================================= */
.blog-post-content hr {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid rgba(79, 74, 68, 0.18);
}


/* =========================================================
TABELAS
========================================================= */




/* =========================================================
   BLOCKQUOTES
   Base comum + 8 variações
   ========================================================= */

.blog-post blockquote {
  margin: 1rem 0;
  padding: 1rem 0rem;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
}

/* remove margens internas estranhas se houver tags dentro */
.blog-post blockquote p:last-child {
  margin-bottom: 0;
}

.blog-post blockquote p,
.blog-post blockquote p span {
  margin: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}

/* -------------------------
   1. Destaque editorial
   Forte, limpo, elegante
------------------------- */
.blog-post blockquote.blockquote1 {
  border-left: 4px solid #285095;
  padding: 1rem 1.15rem;
  margin-bottom:1.5rem;
  background: transparent;
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 2.5rem;
  letter-spacing: 0;
  text-align: left;
  color: #4F4A44;
}

/* -------------------------
   2. Citação deslocada
   Mais leve, mais autoral
------------------------- */
.blog-post blockquote.blockquote2 {
  width: min(80%, 560px);
  border-left: 3px solid #808080;
  padding: 1rem 1.15rem;
  margin-bottom:1.5rem;
  background-color: #F2EEE8;
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 2.5rem;
  letter-spacing: 0.4px;
  text-align: left;
  color: #6A635B;
}

/* -------------------------
   3. Card com glow sutil
   Mais visual, mas utilizável
------------------------- */
.blog-post blockquote.blockquote3 {
  width: min(78%, 520px);
  border: 1px solid rgba(40, 80, 149, 0.22);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #F7F4EF 0%, #F4F1EC 100%);
  box-shadow: 0 10px 30px rgba(40, 80, 149, 0.08);
  padding: 1rem 1.15rem;
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 2.5rem;
  text-align: left;
  color: #5C554E;
}

.blog-post blockquote.blockquote3::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(135deg, #285095, #F4F1EC, #3B8210);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}


/* -------------------------
   5. Minimal técnico
   Bom para nota séria
------------------------- */
.blog-post blockquote.blockquote4 {
  padding: 1rem 1.15rem;
  border-top: 1px solid #D7D1C8;
  border-bottom: 1px solid #D7D1C8;
  background: transparent;
  font-family: 'Roboto', 'Arsenal', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 2.5rem;
  text-align: left;
  color: #5E5851;
}

/* -------------------------
   6. Caixa azul suave
   Para destaque informativo
------------------------- */
.blog-post blockquote.blockquote5 {
  padding: 1rem 1.15rem;
  background: rgba(40, 80, 149, 0.06);
  border-left: 4px solid #285095;
 border-radius: var(--radius-media);
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 2.5rem;
  text-align: left;
  color: #4F4A44;
}

/* -------------------------
   7. Caixa verde suave
   Para insight positivo
------------------------- */
.blog-post blockquote.blockquote6 {
  padding: 1rem 1.15rem;
  background: rgba(59, 130, 16, 0.07);
  border-left: 4px solid #3B8210;
 border-radius: var(--radius-media);
  font-family: 'Roboto', 'Arsenal', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 2.5rem;
  text-align: left;
  color: #4F4A44;
}





.blog-post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(728px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 1rem 3.5rem;
    border-top: 1px solid rgba(79, 74, 68, 0.14);
    border-bottom: 1px solid rgba(79, 74, 68, 0.14);
    margin-bottom: 1.5rem;
    text-align: center;
}

.blog-post-author__avatar {
    position: relative;

    display: flex;

    width: 96px;
    height: 96px;

    align-items: center;
    justify-content: center;

    margin-bottom: 0.75rem;

    overflow: hidden;

    border-radius: 14px;

    background: transparent;

    color: #fff;

    font-family: 'Roboto', 'Signika', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.04em;

    box-shadow: none;
}

.blog-post-author__avatar img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


.blog-post-author__name {
    margin: 0;
    color: #2F2B27;
    font-family: 'Roboto', 'Signika', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
}

.blog-post-author__profession {
    margin: 0.3rem 0 0 0;
    color: #77716A;
    font-family: 'Roboto', 'Signika', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.4;
}






/*Related Content */

/* Related Content */

.related-content {
  width: 100%;
  background-color: #e3e3e3;
  padding: 2.75rem 0 3.5rem;
  text-align: center;
}

.related-content-container {
  width: min(calc(80rem - 2rem), 95%);
  margin: 0 auto;
}

.related-content h3 {
  font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.08;
  color: #333;
  margin: 0 0 1.5rem;
}

.blog-post-related-content {
  margin: 0;
  padding: 0;
}

/* Ajustes do componente compartilhado dentro de related-content. */
.related-content .blog-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin: 0;
}

.related-content .blog-card-link {
  height: clamp(20rem, 28vw, 24rem);
  text-decoration: none;
}

.related-content .blog-card-content {
  left: 0;
  right: 0;
  min-height: 10rem;
  background: rgba(30, 30, 30, 0.22);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding-bottom: 0.25rem;
}

.related-content .blog-card-title {
  padding: 0.85rem 0.9rem 0;
}

.related-content .blog-card-title h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.related-content .blog-card-summary {
  padding: 0.25rem 0.9rem 0;
}

.related-content .blog-card-details {
  padding: 0.65rem 0.9rem 0.7rem;
}

/* tablet */
@media (max-width: 928px) {
    .related-content {
        padding: 2.25rem 0 3rem;
    }

    .related-content h3 {
        margin-bottom: 1.5rem;
    }

    .related-content
    .blog-card-link {
        height: clamp(16rem, 44vw, 20rem);
    }

    .related-content
    .blog-card-content {
        min-height: 7rem;
    }
}

@media (max-width: 520px) {
    .related-content {
      padding: 1.75rem 0 2.25rem;
  }

  .related-content h3 {
      margin-bottom: 1rem;
  }

    .related-content
    .blog-card-link {
        height: 14rem;
    }

    .related-content
    .blog-card-title {
        padding: 0.7rem 0.7rem 0;
    }

    .related-content
    .blog-card-title h4 {
        font-size: clamp(0.82rem, 3.7vw, 0.98rem);
    }

    .related-content
    .blog-card-details {
        padding: 0.55rem 0.7rem 0.65rem;
    }
}


@media (max-width: 640px) {
    .blog-post-image-wrapper {
      min-height: 24rem;
      height: auto;
    }

    .text-container {
        width: calc(100% - 2rem);
        max-width: 100%;
        min-width: 0;

        padding: 2.5rem 0;
    }

    .blog-post-image-wrapper h1 {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        font-size: clamp(1.75rem, 8vw, 2.7rem);
        line-height: 1.08;

        white-space: normal;
        overflow-wrap: anywhere;
    }

  .blog-post-image-wrapper h2 {
    padding: 0.75rem 0 0;
    line-height: 1.45;
  }

  .blog-post-article {
    padding: 0.85rem 0.75rem;
  }

  .blog-post-content {
    margin-bottom: 1.25rem;
  }

  .blog-post-content .blog-post-summary {
      margin-bottom: 1.5rem;
      padding: 1.15rem 0;

      line-height: 1.6;
  }


  .blog-post-content p,
  .blog-post ul,
  .blog-post ol {
    line-height: 1.85;
  }

  .blog-post blockquote.blockquote2,
  .blog-post blockquote.blockquote3 {
    width: 100%;
  }

  .blog-post-content .image-block .image-description {
    /* No mobile a legenda permanece sobre a imagem, como no desktop. */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    padding: 0.55rem 0.75rem;

    background: rgba(25, 25, 25, 0.16);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(64px);

    border-radius: 0 0 var(--radius-media) var(--radius-media);
  }





  .blog-post-content .table-scientific {
    font-size: 0.88rem;
  }

  .blog-post-content .table-scientific th,
  .blog-post-content .table-scientific td {
      padding: 0.32rem 0.6rem;
      white-space: nowrap;
  }
}

@media (max-width: 640px) {
    .blog-post-author {
        padding: 1.5rem 0.75rem 2rem;
    }

    .blog-post-author__avatar {
        width: 84px;
        height: 84px;
    }

    .blog-post-image-wrapper h1 {
      font-size: clamp(2rem, 9vw, 2.7rem);
      line-height: 1.08;
    }

    .blog-post-image-wrapper h2 {
        margin-top: 0.75rem;

        font-size: clamp(0.95rem, 4vw, 1.15rem);
        line-height: 1.4;
        letter-spacing: 0.5px;
    }

    /* =========================================================
     METADADOS
     categoria / assuntos / data / likes
     ========================================================= */

    .blog-like-icon {
      font-size: clamp(1rem, 4.5vw, 1.35rem);
      line-height: 1;
    }


    /* =========================================================
      RESUMO
      ========================================================= */

    .blog-post-content .blog-post-summary {
        font-size:
            clamp(
                1.05rem,
                4.5vw,
                1.25rem
            );

        line-height: 1.6;
    }


    /* =========================================================
      TEXTO PRINCIPAL
      ========================================================= */

    .blog-post-content p,
    .blog-post-content p span,
    .blog-post-content ul,
    .blog-post-content ol,
    .blog-post-content li {
        font-size:
            clamp(
                0.92rem,
                3.8vw,
                1.25rem
            );

        line-height: 1.85;
    }


    /* =========================================================
      LINKS DENTRO DO ARTIGO
      ========================================================= */

    .blog-post-content a {
      font-size: inherit;
      line-height: inherit;

      text-decoration-thickness: 1px;
      text-underline-offset: 0.18em;
    }


    /* =========================================================
      HEADINGS DO ARTIGO
      ========================================================= */

    .blog-post-content h2 {
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;

      font-size: clamp(1.5rem, 6.5vw, 2rem);
      line-height: 1.15;
    }

    .blog-post-content h3 {
      margin-top: 1.15rem;
      margin-bottom: 0.7rem;

      font-size: clamp(1.3rem, 5.8vw, 1.7rem);
      line-height: 1.2;
    }

    .blog-post-content h4 {
      margin-top: 1rem;
      margin-bottom: 0.6rem;

      font-size: clamp(1.05rem, 4.8vw, 1.5rem);
      line-height: 1.25;
    }

    .blog-post-content h5 {
      margin-top: 1rem;
      margin-bottom: 0.6rem;

      font-size: clamp(1rem, 4.5vw, 1.5rem);
      line-height: 1.25;
    }

    .blog-post-content h6 {
      margin-top: 1rem;
      margin-bottom: 0.6rem;

      font-size: clamp(0.9rem, 4vw, 1.25rem);
      line-height: 1.3;
    }


    /* =========================================================
      LISTAS
      ========================================================= */

    .blog-post ul,
    .blog-post ol {
        margin: 0.6rem 0 0.85rem;
        padding-left: 1.25rem;

    }

    .blog-post-content ul,
    .blog-post-content ol {
        margin: 0.6rem 0 0.85rem;
        padding-left: 1.5rem;
    }

    .blog-post-content li {
        margin-bottom: 0.2rem;
    }

    .blog-post ul li,
    .blog-post ol li {
        margin-bottom: 0.2rem;

        font-size: inherit;
        line-height: inherit;
    }

    .blog-post li > ul,
    .blog-post li > ol {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        padding-left: 1.25rem;
   }

    @media (max-width: 640px) {
      .blog-post li > ul,
      .blog-post li > ol {
          margin-top: 0.15rem;
          margin-bottom: 0.15rem;
          padding-left: 1rem;
      }
    }

    .blog-post-content dl {
        margin: 0.75rem 0 1rem;

        color: #4F4A44;

        font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
        font-size: clamp(1rem, 2.5vw, 1.15rem);
        font-weight: 300;
        line-height: 1.6;
    }

    .blog-post-content dt {
        margin-top: 0.6rem;
        margin-bottom: 0.15rem;

        font-weight: 500;
    }

    .blog-post-content dd {
        margin: 0 0 0.45rem 1.25rem;
    }

    @media (max-width: 640px) {

      .blog-post-content dl {
          margin: 0.6rem 0 0.85rem;

          font-size: clamp(0.85rem, 3.5vw, 1rem);
          line-height: 1.5;
      }

      .blog-post-content dt {
          margin-top: 0.45rem;
          margin-bottom: 0.1rem;
      }

      .blog-post-content dd {
          margin:
              0
              0
              0.3rem
              1rem;
      }
    }


    /* =========================================================
      DESCRIÇÃO / LEGENDA SOBRE IMAGENS
      ========================================================= */

    .blog-post-content .image-block .image-description {
      /* Um pouco menor no mobile para acomodar legendas longas sem
         abandonar o overlay translúcido sobre a imagem. */
      font-size: clamp(0.68rem, 2.8vw, 0.88rem);
      line-height: 1.25;
    }

    .blog-post-content figure.image-block {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    @media (max-width: 640px) {
        .blog-post-content figure.image-block {
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .blog-post-content .table-block,
        .blog-post-content > .table-scientific {
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
        }
    }


    /* =========================================================
      BLOCKQUOTES
      ========================================================= */

    .blog-post blockquote.blockquote1 {
      font-size: clamp(0.92rem, 3.8vw, 1.25rem);
      line-height: 1.65;
    }

    .blog-post blockquote.blockquote2 {
      width: 100%;

      font-size: clamp(0.9rem, 3.7vw, 1.25rem);
      line-height: 1.65;
    }

    .blog-post blockquote.blockquote3 {
      width: 100%;

      font-size: clamp(0.9rem, 3.7vw, 1.25rem);
      line-height: 1.65;
    }

    .blog-post blockquote.blockquote4 {
      font-size: clamp(0.9rem, 3.7vw, 1.25rem);
      line-height: 1.65;
    }

    .blog-post blockquote.blockquote5 {
      font-size: clamp(0.9rem, 3.7vw, 1.25rem);
      line-height: 1.65;
    }

    .blog-post blockquote.blockquote6 {
      font-size: clamp(0.9rem, 3.7vw, 1.25rem);
      line-height: 1.65;
    }

    /*
    Os <p> internos dos blockquotes já herdam:
    font-size: inherit;
    line-height: inherit;
    portanto não precisam de regra própria.
    */

    @media (max-width: 640px) {

        .blog-post blockquote {
            margin: 0.75rem 0;
            padding: 0.75rem 0;
        }

        .blog-post blockquote.blockquote1,
        .blog-post blockquote.blockquote2,
        .blog-post blockquote.blockquote3,
        .blog-post blockquote.blockquote4,
        .blog-post blockquote.blockquote5,
        .blog-post blockquote.blockquote6 {
            padding: 0.75rem 0.9rem;
        }
    }


    /* =========================================================
      TABELAS
      ========================================================= */


    .blog-post-content .table-scientific {
        font-size: clamp(0.68rem, 2.8vw, 0.82rem);
        line-height: 1.15;
    }

    .blog-post-content .table-scientific th,
    .blog-post-content .table-scientific td {
        padding: 0.22rem 0.42rem;
        line-height: 1.15;
        white-space: nowrap;
    }
    

    .blog-post-content .image-block .image-title,
    .blog-post-content .table-scientific caption,
    .blog-post-content .code-block .code-title {
        padding: 0 0 0.5rem;

        color: #6A635B;

        font-size: 0.85rem;
        font-weight: 200;
        line-height: 1.35;

        text-align: left;
    }

    @media (max-width: 640px) {
        .blog-post-content .image-block .image-title,
        .blog-post-content .table-scientific caption,
        .blog-post-content .code-block .code-title {
            padding-bottom: 0.35rem;

            font-size: clamp(0.7rem, 2.8vw, 0.8rem);
        }
        .blog-post-content .table-scientific {
            font-size: 0.84rem;
            line-height: 1.1;
        }

        .blog-post-content .table-scientific th,
        .blog-post-content .table-scientific td {
            padding: 0.18rem 0.5rem;
            line-height: 1.15;
            white-space: nowrap;
        }

        .blog-post-content .image-block .image-title,
        .blog-post-content .table-scientific caption,
        .blog-post-content .code-block .code-title {
            padding-bottom: 0.45rem;
            line-height: 1.25;
        }
    }

    .blog-post-content cite,
    .blog-post blockquote cite {
        display: block;

        margin-top: 0.45rem;

        font-size: 0.85em;
        font-style: normal;
        font-weight: 400;
        line-height: 1.35;

        opacity: 0.8;
    }

    .blog-post-content abbr[title] {
        text-decoration:
            underline dotted;

        text-underline-offset: 0.15em;

        cursor: help;
    }

    .blog-post-content sup,
    .blog-post-content sub {
        font-size: 0.72em;
        line-height: 0;
    }

    .blog-post-content strong,
    .blog-post-content b,
    .blog-post-content em,
    .blog-post-content i {
        font-size: inherit;
        line-height: inherit;
    }

    .blog-post-content strong,
    .blog-post-content b {
        font-weight: 600;
    }

    .blog-post-content em,
    .blog-post-content i {
        font-style: italic;
    }


    /* =========================================================
      BLOCO DE CÓDIGO
      ========================================================= */

    .blog-post-content pre {
      font-size: clamp(0.68rem, 2.8vw, 0.9rem);
      line-height: 1.55;
    }

    .blog-post-content pre code {
      font-size: inherit;
      line-height: inherit;
    }


    /* =========================================================
      CÓDIGO INLINE
      ========================================================= */

    .blog-post-content :not(pre) > code {
      font-size: clamp(0.75rem, 3.2vw, 0.9em);
      line-height: inherit;
    }


    /* =========================================================
      AUTOR
      ========================================================= */

    .blog-post-author__avatar {
      font-size: clamp(1rem, 4.5vw, 1.4rem);
    }

    .blog-post-author__name {
      font-size: clamp(0.9rem, 3.8vw, 1.1rem);
      line-height: 1.35;
    }

    .blog-post-author__profession {
      font-size: clamp(0.78rem, 3.3vw, 0.95rem);
      line-height: 1.4;
    }


    /* =========================================================
      CONTEÚDO RELACIONADO — TÍTULO DA SEÇÃO
      ========================================================= */

    .related-content h3 {
      font-size: clamp(1.35rem, 6vw, 3rem);
      line-height: 1.08;
    }


    /* =========================================================
      CARDS RELACIONADOS — TÍTULO
      ========================================================= */

    .related-content .blog-card-title h4 {
      font-size: clamp(0.9rem, 4vw, 1.35rem);
    }


    /* =========================================================
      CARDS RELACIONADOS — RESUMO
      ========================================================= */

    .related-content .blog-card-summary p {
      font-size: clamp(0.72rem, 3.2vw, 0.95rem);
    }


    /* =========================================================
      CARDS RELACIONADOS — DATA
      ========================================================= */

    .related-content .blog-card-date p {
      font-size: clamp(0.68rem, 2.8vw, 0.9rem);
      line-height: 1.2;
    }


    /* =========================================================
      CARDS RELACIONADOS — CATEGORIA
      ========================================================= */

    .related-content .blog-card-category p {
      font-size: clamp(0.65rem, 2.7vw, 0.8rem);
      line-height: 1.2;
    }
}

/* =========================================================
   NUMERAÇÃO EDITORIAL AUTOMÁTICA

   Cada categoria mantém sua própria sequência. CSS counters atualizam
   a numeração automaticamente quando blocos são inseridos, removidos
   ou reordenados.
   ========================================================= */

.blog-post-content {
  counter-reset: blog-figure blog-table blog-code;
}

.blog-post-content > figure.image-block {
  counter-increment: blog-figure;
}

.blog-post-content > .table-block,
.blog-post-content > table.table-scientific {
  counter-increment: blog-table;
}

.blog-post-content > figure.code-block {
  counter-increment: blog-code;
}

.blog-post-content .image-block .image-title::before {
  content: "Figura " counter(blog-figure) ": ";
}

.blog-post-content .table-scientific caption::before {
  content: "Tabela " counter(blog-table) ": ";
}

.blog-post-content .code-block .code-title::before {
  content: "Código " counter(blog-code) ": ";
}

.blog-post-content .image-block .image-title::before,
.blog-post-content .table-scientific caption::before,
.blog-post-content .code-block .code-title::before {
  color: inherit;
  font-weight: 600;
}

/* Fallback visual para conteúdo antigo que não possuía campo de título. */
.blog-post-content > figure.image-block:not(:has(> .image-title))::before,
.blog-post-content > .table-block:not(:has(caption))::before,
.blog-post-content > figure.code-block:not(:has(> .code-title))::before {
  display: block;
  box-sizing: border-box;
  padding: 0 0 0.65rem;
  color: #5E5851;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.blog-post-content > figure.image-block:not(:has(> .image-title))::before {
  content: "Figura " counter(blog-figure) ":";
}

.blog-post-content > .table-block:not(:has(caption))::before {
  content: "Tabela " counter(blog-table) ":";
}

.blog-post-content > figure.code-block:not(:has(> .code-title))::before {
  content: "Código " counter(blog-code) ":";
}

/* Código: título externo ao painel escuro, no mesmo padrão de figura/tabela. */
.blog-post-content > figure.code-block {
  width: 100%;
  box-sizing: border-box;
  align-self: center;
}

.blog-post-content .code-block .code-title {
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 0.65rem;
  color: #5E5851;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.4;
  text-align: left;
}

.blog-post-content .code-block pre {
  margin: 0;
}

@media (max-width: 640px) {
  .blog-post-content .code-block .code-title,
  .blog-post-content > figure.image-block:not(:has(> .image-title))::before,
  .blog-post-content > .table-block:not(:has(caption))::before,
  .blog-post-content > figure.code-block:not(:has(> .code-title))::before {
    padding-bottom: 0.45rem;
    font-size: clamp(0.7rem, 2.8vw, 0.8rem);
    line-height: 1.25;
  }
}

/* =========================================================
   RITMO VERTICAL DO ARTIGO

   Escala editorial, sem soma acidental de margens:
   - texto/listas entre si: 1rem
   - transições com títulos e blocos de apoio: 1.5rem
   - imagens e tabelas: 2rem

   Cada distância é controlada por UM único margin-top no segundo
   elemento. Isso mantém p -> h e h -> p exatamente simétricos.
   ========================================================= */

.blog-post-content {
  --blog-space-flow: 1rem;
  --blog-space-section: 1.5rem;
  --blog-space-media: 2rem;
}

/* Zera apenas as margens EXTERNAS dos blocos de primeiro nível.
   Padding e ritmo interno de listas, tabelas, citações etc. permanecem. */
.blog-post-content > p,
.blog-post-content > h2,
.blog-post-content > h3,
.blog-post-content > h4,
.blog-post-content > h5,
.blog-post-content > h6,
.blog-post-content > ul,
.blog-post-content > ol,
.blog-post-content > dl,
.blog-post-content > pre,
.blog-post-content > figure.image-block,
.blog-post-content > .table-block,
.blog-post-content > table.table-scientific,
.blog-post-content > hr,
.blog-post-content > blockquote,
.blog-post-content > blockquote.blockquote1,
.blog-post-content > blockquote.blockquote2,
.blog-post-content > blockquote.blockquote3,
.blog-post-content > blockquote.blockquote4,
.blog-post-content > blockquote.blockquote5,
.blog-post-content > blockquote.blockquote6 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Fluxo normal: parágrafos, listas e definições. */
.blog-post-content > :is(
  p,
  h2, h3, h4, h5, h6,
  ul, ol, dl,
  pre,
  figure.image-block,
  .table-block,
  table.table-scientific,
  hr,
  blockquote
) + :is(
  p,
  h2, h3, h4, h5, h6,
  ul, ol, dl,
  pre,
  figure.image-block,
  .table-block,
  table.table-scientific,
  hr,
  blockquote
) {
  margin-top: var(--blog-space-flow);
}

/* Títulos: mesma distância antes e depois, independentemente do vizinho
   textual. p -> h == h -> p. */
.blog-post-content > :is(p, ul, ol, dl, h2, h3, h4, h5, h6, pre, blockquote, hr)
  + :is(h2, h3, h4, h5, h6),
.blog-post-content > :is(h2, h3, h4, h5, h6)
  + :is(p, ul, ol, dl, h2, h3, h4, h5, h6, pre, blockquote, hr),
.blog-post-content > :is(p, ul, ol, dl, h2, h3, h4, h5, h6)
  + :is(pre, blockquote, hr),
.blog-post-content > :is(pre, blockquote, hr)
  + :is(p, ul, ol, dl, h2, h3, h4, h5, h6, pre, blockquote, hr) {
  margin-top: var(--blog-space-section);
}

/* Imagens e tabelas preservam a respiração maior do desenho anterior.
   A regra vale nos dois sentidos e também entre dois blocos de mídia. */
.blog-post-content > :is(
  p, h2, h3, h4, h5, h6, ul, ol, dl, pre,
  figure.image-block, .table-block, table.table-scientific, hr, blockquote
) + :is(figure.image-block, .table-block, table.table-scientific),
.blog-post-content > :is(figure.image-block, .table-block, table.table-scientific)
  + :is(
    p, h2, h3, h4, h5, h6, ul, ol, dl, pre,
    figure.image-block, .table-block, table.table-scientific, hr, blockquote
  ) {
  margin-top: var(--blog-space-media);
}

@media (max-width: 640px) {
  .blog-post-content {
    --blog-space-flow: 0.85rem;
    --blog-space-section: 1.25rem;
    --blog-space-media: 1.5rem;
  }
}

/* Código numerado participa do mesmo ritmo dos blocos de apoio. */
.blog-post-content > figure.code-block {
  margin-top: 0;
  margin-bottom: 0;
}

.blog-post-content > :is(
  p, h2, h3, h4, h5, h6, ul, ol, dl, pre,
  figure.code-block, hr, blockquote
) + figure.code-block,
.blog-post-content > figure.code-block + :is(
  p, h2, h3, h4, h5, h6, ul, ol, dl, pre,
  figure.code-block, hr, blockquote
) {
  margin-top: var(--blog-space-section);
}

.blog-post-content > :is(
  figure.image-block, .table-block, table.table-scientific
) + figure.code-block,
.blog-post-content > figure.code-block + :is(
  figure.image-block, .table-block, table.table-scientific
) {
  margin-top: var(--blog-space-media);
}

/* =========================================================
   MOBILE — ESPAÇAMENTO FINAL DOS HEADINGS
   Deve permanecer no final do arquivo para vencer a cascata.
   ========================================================= */

@media (max-width: 640px) {

    .blog-post-content > h2,
    .blog-post-content > h3,
    .blog-post-content > h4,
    .blog-post-content > h5,
    .blog-post-content > h6 {
        margin-top: 1rem;
        padding-top: 1.5rem;
        margin-bottom: 1rem;
    }

}