/* ============================================================
 * Blog — Thermopelícula
 *
 * CSS puro, escrito à mão. Não passa por build nenhum: basta
 * editar este arquivo e recarregar a página.
 *
 * Reaproveita os tokens já publicados em assets/css/styles.css
 * (--brand-900, --ink-soft, --shadow-glass-lg, --radius...), de
 * modo que o blog acompanha a identidade do restante do site.
 *
 * Carregue sempre DEPOIS de styles.css.
 * ============================================================ */

/* ─────────────────────────────────────────────
 * Estrutura de página
 * ───────────────────────────────────────────── */

.blog-wrap {
  padding-left: 6vw;
  padding-right: 6vw;
}

@media (min-width: 1280px) {
  .blog-wrap {
    padding-left: 8vw;
    padding-right: 8vw;
  }
}

@media (min-width: 1536px) {
  .blog-wrap {
    padding-left: 15vw;
    padding-right: 15vw;
  }
}

.blog-secao {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .blog-secao {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Envoltório das páginas do blog.
 *
 * Usa overflow-x: clip em vez de hidden porque `hidden` transforma o
 * elemento em contexto de rolagem e isso desativaria o position:sticky
 * do sumário lateral. O `hidden` fica antes como reserva para
 * navegadores sem suporte a clip — nesses, o sumário só não gruda. */
.pagina-blog {
  overflow-x: hidden;
  overflow-x: clip;
}

/* Fundo ambiente das páginas do blog, na mesma paleta da home.
   Sem overflow aqui: o ::before já é inset:0 e não transborda, e
   qualquer recorte quebraria o sumário grudento. */
.blog-fundo {
  position: relative;
  isolation: isolate;
}

.blog-fundo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 12% 4%, rgba(115, 150, 180, 0.16), transparent 60%),
    radial-gradient(45% 40% at 88% 28%, rgba(196, 214, 230, 0.34), transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────
 * Migalhas de pão
 * ───────────────────────────────────────────── */

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.blog-breadcrumb a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
  color: var(--brand-900);
}

.blog-breadcrumb svg {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.blog-breadcrumb [aria-current="page"] {
  color: var(--ink-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}

@media (min-width: 768px) {
  .blog-breadcrumb [aria-current="page"] {
    max-width: 48ch;
  }
}

/* ─────────────────────────────────────────────
 * Cabeçalho do listado
 * ───────────────────────────────────────────── */

.blog-hero-titulo {
  margin-top: 1rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.1rem, 4.08vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-900);
}

.blog-hero-texto {
  margin-top: 1rem;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .blog-hero-texto {
    font-size: 1.125rem;
  }
}

/* ─────────────────────────────────────────────
 * Filtro por categoria
 * ───────────────────────────────────────────── */

.blog-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}

.blog-filtro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-glass);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-900);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-filtro:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}

.blog-filtro[aria-pressed="true"] {
  background: var(--brand-900);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-elegant);
}

.blog-filtro-contagem {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: rgba(34, 67, 102, 0.1);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.blog-filtro[aria-pressed="true"] .blog-filtro-contagem {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Item escondido pelo filtro */
.blog-item[hidden] {
  display: none !important;
}

.blog-vazio {
  margin-top: 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ─────────────────────────────────────────────
 * Grade e cartão de post
 * ───────────────────────────────────────────── */

.blog-grade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .blog-grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .blog-grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-glass);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -20px rgba(34, 67, 102, 0.35);
}

.post-card:focus-within {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
}

.post-card-midia {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-50);
}

.post-card-midia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card-midia img {
  transform: scale(1.05);
}

.post-card-categoria {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-900);
  box-shadow: var(--shadow-glass);
}

.post-card-categoria svg {
  width: 0.875rem;
  height: 0.875rem;
}

.post-card-corpo {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .post-card-corpo {
    padding: 1.75rem;
  }
}

.post-card-titulo {
  font-family: var(--font-display, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-900);
}

@media (min-width: 640px) {
  .post-card-titulo {
    font-size: 1.25rem;
  }
}

.post-card-titulo a {
  color: inherit;
  text-decoration: none;
}

/* Faz o cartão inteiro clicável sem aninhar links */
.post-card-titulo a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card-resumo {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-rodape {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.post-card-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-link {
  color: var(--brand-900);
}

.post-card-link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-link svg {
  transform: translateX(3px);
}

/* ── Metadados (data · leitura · autor) ── */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.post-meta svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--brand-400);
}

/* ─────────────────────────────────────────────
 * Cartão de destaque (post principal do listado)
 * ───────────────────────────────────────────── */

.post-destaque {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  background:
    linear-gradient(160deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.42) 40%,
      rgba(196, 214, 230, 0.32) 100%);
  backdrop-filter: blur(10px) saturate(130%) brightness(1.04) contrast(1.02);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-glass-lg), var(--glass-highlight);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-destaque:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px -22px rgba(34, 67, 102, 0.4);
}

@media (min-width: 1024px) {
  .post-destaque {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.post-destaque-midia {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-50);
}

@media (min-width: 1024px) {
  .post-destaque-midia {
    aspect-ratio: auto;
    min-height: 24rem;
  }
}

.post-destaque-midia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-destaque:hover .post-destaque-midia img {
  transform: scale(1.04);
}

.post-destaque-corpo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Sem isto a etiqueta inline-flex esticaria por toda a coluna */
  align-items: flex-start;
  padding: 1.75rem;
}

.post-destaque-corpo > * {
  width: 100%;
}

.post-destaque-corpo > span {
  width: auto;
}

@media (min-width: 640px) {
  .post-destaque-corpo {
    padding: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .post-destaque-corpo {
    padding: 3rem;
  }
}

.post-destaque-titulo {
  margin-top: 1rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-900);
}

.post-destaque-titulo a {
  color: inherit;
  text-decoration: none;
}

.post-destaque-titulo a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-destaque-resumo {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .post-destaque-resumo {
    font-size: 1rem;
  }
}

/* ─────────────────────────────────────────────
 * Barra de progresso de leitura
 * ───────────────────────────────────────────── */

.post-progresso {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.post-progresso-barra {
  height: 100%;
  width: 100%;
  transform: scaleX(var(--progresso, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #224366, #7396b4, #c4d6e6);
  transition: transform 0.1s linear;
}

/* ─────────────────────────────────────────────
 * Cabeçalho da postagem
 * ───────────────────────────────────────────── */

.post-hero-titulo {
  margin-top: 1.25rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-900);
}

.post-hero-dek {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .post-hero-dek {
    font-size: 1.1875rem;
  }
}

.post-hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 214, 230, 0.6);
}

.post-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-autor-avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-900);
}

.post-autor-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
}

.post-autor-nome {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-900);
}

.post-autor-cargo {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.post-capa {
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-glass-lg);
  aspect-ratio: 16 / 9;
  background: var(--brand-50);
}

.post-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────────────────────────────────────────
 * Layout do artigo (texto + sumário lateral)
 * ───────────────────────────────────────────── */

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 3.5rem;
  }
}

.post-aside {
  display: none;
}

@media (min-width: 1024px) {

  /* O aside precisa ocupar toda a altura da linha do grid: é ele que
     serve de trilho para o sumário grudento. Sem o stretch, o
     align-items:start acima limitaria o trilho à altura do próprio
     sumário e ele sumiria logo na primeira rolagem. */
  .post-aside {
    display: block;
    align-self: stretch;
    height: 100%;
  }

  .post-aside .post-toc {
    position: sticky;
    top: 7rem;
  }
}

/* ── Sumário ── */

.post-toc {
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-glass);
  padding: 1.5rem;
}

.post-toc-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 67, 102, 0.6);
}

.post-toc-titulo svg {
  width: 0.875rem;
  height: 0.875rem;
}

.post-toc ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.post-toc a {
  display: block;
  border-left: 2px solid rgba(196, 214, 230, 0.7);
  padding: 0.4375rem 0 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.post-toc a:hover {
  color: var(--brand-900);
  border-left-color: var(--brand-400);
  transform: translateX(2px);
}

.post-toc a[aria-current="true"] {
  color: var(--brand-900);
  font-weight: 700;
  border-left-color: var(--brand-900);
}

/* Sumário recolhível do mobile */
.post-toc-mobile {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .post-toc-mobile {
    display: none;
  }
}

.post-toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-glass);
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-900);
  list-style: none;
}

.post-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.post-toc-mobile summary svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.post-toc-mobile[open] summary svg {
  transform: rotate(180deg);
}

.post-toc-mobile .post-toc {
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────
 * Tipografia do texto
 * ───────────────────────────────────────────── */

.post-body {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .post-body {
    font-size: 1.0625rem;
  }
}

.post-body > * + * {
  margin-top: 1.375rem;
}

.post-body p {
  color: #3c4a5c;
}

.post-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink) !important;
  font-weight: 500;
}

@media (min-width: 640px) {
  .post-lead {
    font-size: 1.25rem;
  }
}

.post-body h2 {
  margin-top: 3rem;
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-900);
  scroll-margin-top: 7rem;
}

@media (min-width: 640px) {
  .post-body h2 {
    font-size: 1.75rem;
  }
}

.post-body h3 {
  margin-top: 2.25rem;
  font-family: var(--font-display, inherit);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-900);
  scroll-margin-top: 7rem;
}

@media (min-width: 640px) {
  .post-body h3 {
    font-size: 1.3125rem;
  }
}

.post-body strong {
  font-weight: 700;
  color: var(--ink);
}

.post-body em {
  font-style: italic;
}

.post-body a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(115, 150, 180, 0.55);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.post-body a:hover {
  color: var(--brand-900);
  text-decoration-color: var(--brand-900);
}

.post-body ul,
.post-body ol {
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.post-body ul {
  list-style: none;
  padding-left: 0;
}

.post-body ul > li {
  position: relative;
  padding-left: 1.625rem;
  color: #3c4a5c;
}

.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.7em;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--brand-400);
}

.post-body ol {
  list-style: none;
  counter-reset: post-ol;
  padding-left: 0;
}

.post-body ol > li {
  position: relative;
  counter-increment: post-ol;
  padding-left: 2.375rem;
  color: #3c4a5c;
}

.post-body ol > li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-900);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.post-body blockquote {
  border-left: 3px solid var(--brand-400);
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--brand-900);
}

.post-body img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-glass);
}

.post-body figcaption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Blocos de destaque dentro do texto ── */

.post-callout {
  border-radius: calc(var(--radius) + 8px);
  border-left: 3px solid var(--brand-400);
  background: rgba(238, 243, 248, 0.75);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.post-callout > * + * {
  margin-top: 0.75rem;
}

.post-callout p {
  color: #33455c;
}

.post-callout[data-tipo="destaque"] {
  border-left-color: var(--brand-900);
  background: linear-gradient(135deg, rgba(196, 214, 230, 0.4) 0%, rgba(238, 243, 248, 0.8) 100%);
}

.post-callout[data-tipo="dica"] {
  border-left-color: #25d366;
  background: rgba(37, 211, 102, 0.07);
}

.post-formula {
  border-radius: calc(var(--radius) + 8px);
  background: rgba(34, 67, 102, 0.05);
  border: 1px dashed rgba(34, 67, 102, 0.22);
  padding: 1.5rem;
  text-align: center;
}

.post-formula p {
  margin: 0;
  color: var(--brand-900);
  font-size: 0.9375rem;
  line-height: 1.9;
}

@media (min-width: 640px) {
  .post-formula p {
    font-size: 1.0625rem;
  }
}

/* ── Tabelas ── */

.post-tabela-wrap {
  overflow-x: auto;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(196, 214, 230, 0.7);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-glass);
  -webkit-overflow-scrolling: touch;
}

.post-tabela {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.post-tabela th,
.post-tabela td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(196, 214, 230, 0.5);
}

.post-tabela thead th {
  background: rgba(34, 67, 102, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-900);
  white-space: nowrap;
}

.post-tabela tbody tr:last-child th,
.post-tabela tbody tr:last-child td {
  border-bottom: 0;
}

.post-tabela tbody tr:hover {
  background: rgba(238, 243, 248, 0.55);
}

.post-tabela td {
  color: #3c4a5c;
}

.post-tabela .post-tabela-destaque {
  background: rgba(115, 150, 180, 0.09);
  color: var(--brand-900);
  font-weight: 600;
}

.post-tabela thead th.post-tabela-destaque {
  background: rgba(34, 67, 102, 0.13);
}

.post-tabela .post-tabela-positivo {
  color: #1a7f4b;
  font-weight: 600;
}

/* ─────────────────────────────────────────────
 * Compartilhar
 * ───────────────────────────────────────────── */

.post-share {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(196, 214, 230, 0.6);
}

.post-share-rotulo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(34, 67, 102, 0.6);
  margin-right: 0.25rem;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 214, 230, 0.8);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-900);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.post-share-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-glass);
}

.post-share-btn:active {
  transform: translateY(0) scale(0.97);
}

.post-share-btn svg {
  width: 1rem;
  height: 1rem;
}

.post-share-btn[data-share="whatsapp"] {
  border-color: transparent;
  background: #25d366;
  color: #fff;
}

.post-share-btn[data-share="whatsapp"]:hover {
  background: #128c7e;
}

/* ── Etiquetas ── */

.post-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  background: var(--brand-50);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-700);
}

.post-tag svg {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────
 * Chamada para ação no fim do texto
 * ───────────────────────────────────────────── */

.post-cta {
  margin-top: 3rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-900) 100%);
  box-shadow: var(--shadow-glass-lg);
  padding: 2rem;
  color: #fff;
}

@media (min-width: 640px) {
  .post-cta {
    padding: 2.75rem;
  }
}

.post-cta h2 {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 640px) {
  .post-cta h2 {
    font-size: 1.875rem;
  }
}

.post-cta p {
  margin-top: 0.875rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(238, 243, 248, 0.8);
}

.post-cta-acoes {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ─────────────────────────────────────────────
 * FAQ do artigo — herda o comportamento do
 * acordeão já existente em assets/js/ui.js
 * ───────────────────────────────────────────── */

.post-faq {
  margin-top: 3rem;
}

.post-faq-titulo {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-900);
}

@media (min-width: 640px) {
  .post-faq-titulo {
    font-size: 1.75rem;
  }
}

/* ─────────────────────────────────────────────
 * Carrossel de sugestões
 * ───────────────────────────────────────────── */

.blog-sugestoes {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.blog-sugestoes::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(238, 243, 248, 0) 0%, rgba(238, 243, 248, 0.85) 35%, rgba(238, 243, 248, 0.85) 100%);
  pointer-events: none;
}

.blog-sugestoes-titulo {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-900);
}

/* O arraste do carrossel não deve selecionar o texto dos cartões */
.blog-sugestoes .carousel-track {
  user-select: none;
}

.blog-sugestoes .carousel-track a {
  -webkit-user-drag: none;
}

/* ─────────────────────────────────────────────
 * Seção de blog na home
 * ───────────────────────────────────────────── */

.home-blog-grade {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .home-blog-grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─────────────────────────────────────────────
 * Acessibilidade
 * ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  .post-card,
  .post-card-midia img,
  .post-destaque,
  .post-destaque-midia img,
  .post-share-btn,
  .blog-filtro,
  .post-toc a,
  .post-progresso-barra {
    transition: none !important;
  }

  .post-card:hover,
  .post-destaque:hover,
  .post-share-btn:hover,
  .blog-filtro:hover {
    transform: none;
  }

  .post-card:hover .post-card-midia img,
  .post-destaque:hover .post-destaque-midia img {
    transform: none;
  }
}
