/* ============================================================
   Blog Treasy — estilos dedicados
   Carrega APÓS styles.css. Usa os tokens --teal*, --ink*, --serif, etc.
   ============================================================ */

/* ── Reading progress bar (topo) ── */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200; pointer-events: none;
}
.reading-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal-light));
  transition: width .05s linear;
}

/* ── Breadcrumb ── */
.blog-breadcrumb {
  font-size: .8rem;
  color: var(--muted-light);                /* tom mais claro para reduzir destaque */
  padding: 0 0 24px;                        /* espaço MAIOR antes do título */
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  position: static !important;
}
.blog-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0; }
.blog-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-light); font-weight: 400; }
.blog-breadcrumb li:not(:last-child)::after {
  content: '›'; color: var(--muted-light); margin-left: 4px;
}
.blog-breadcrumb a { color: var(--muted-light); text-decoration: none; font-weight: 400; }
.blog-breadcrumb a:hover { color: var(--teal); }
.blog-breadcrumb [aria-current="page"] { color: var(--muted-light); font-weight: 400; }

/* ── Layout 3 colunas (desktop)
   ESQUERDA: TOC "Neste artigo" (240px)
   CENTRO:   conteúdo (max ~660-720)
   DIREITA:  categorizações (220px) ── */
.blog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 220px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 88px;
  align-items: start;
}
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blog-toc, .blog-sidebar-right { display: none; }
}

/* ── Sidebar de categorizações (agora à direita) ── */
.blog-sidebar-right {
  position: sticky; top: 88px;
  font-size: .85rem;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.blog-sidebar-right::-webkit-scrollbar { width: 4px; }
.blog-sidebar-right::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 4px; }
.blog-sidebar-section { margin-bottom: 28px; }
.blog-sidebar-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted-light);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.blog-sidebar-list { list-style: none; padding: 0; margin: 0; }
.blog-sidebar-list li { margin-bottom: 4px; }
.blog-sidebar-list a {
  display: block;
  padding: 5px 8px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: .85rem;
  line-height: 1.4;
  transition: all .15s;
}
.blog-sidebar-list a:hover {
  color: var(--ink); background: var(--teal-xpale);
}
.blog-sidebar-list a.is-active {
  color: var(--teal); background: var(--teal-pale);
  font-weight: 600;
}
.blog-sidebar-list .sub { padding-left: 18px; font-size: .8rem; }

/* ── Sidebar direita — TOC "Neste artigo" ── */
.blog-toc {
  position: sticky; top: 88px;
  font-size: .85rem;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.blog-toc::-webkit-scrollbar { width: 4px; }
.blog-toc::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 4px; }
.blog-toc-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted-light);
  margin-bottom: 16px;
}
.blog-toc-list { list-style: none; padding: 0; margin: 0; }
.blog-toc-list li { margin: 2px 0; }
.blog-toc-list a {
  display: block;
  padding: 6px 12px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  font-size: .85rem;
  line-height: 1.4;
  transition: all .15s;
}
.blog-toc-list a:hover { color: var(--ink); border-left-color: var(--border); }
.blog-toc-list a.is-active {
  color: var(--teal); border-left-color: var(--teal-mid);
  font-weight: 600;
}
.blog-toc-list li.lvl-3 a { padding-left: 24px; font-size: .8rem; }
.blog-toc-list li.lvl-4 a { padding-left: 36px; font-size: .8rem; }

/* TOC colapsável no mobile (escondida no desktop) */
.blog-toc-mobile {
  display: none;
  margin: 20px 0 28px;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  background: var(--bg);
}
.blog-toc-mobile summary {
  padding: 12px 16px;
  font-size: .85rem; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.blog-toc-mobile summary::after {
  content: '▾'; margin-left: auto; transition: transform .2s;
}
.blog-toc-mobile[open] summary::after { transform: rotate(180deg); }
.blog-toc-mobile .blog-toc-list { padding: 4px 16px 14px; }
@media (max-width: 1100px) { .blog-toc-mobile { display: block; } }

/* ── HERO do post (banner full-width, antes do grid 3-col) ── */
.post-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(11,209,175,.08), transparent 50%),
    linear-gradient(180deg, var(--teal-xpale) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-lt);
  padding: 28px 0 20px;
  margin-bottom: 0;
}
.post-hero-inner {
  max-width: 1280px;          /* alinhado com o container do site */
  margin: 0 auto;
  padding: 0 32px;
}
.blog-main { min-width: 0; }

.post-eyebrow {
  font-size: .76rem; color: var(--teal); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 4px;             /* JUNTO ao breadcrumb */
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.post-eyebrow a { color: inherit; text-decoration: none; }
.post-eyebrow a:hover { color: var(--ink); }

.post-h1 {
  font-family: var(--sans);                       /* mais fino que DM Serif Display */
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin-bottom: 8px;                              /* JUNTO ao resumo */
}

.post-resumo {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;                             /* SEPARADO do byline */
  /* sem max-width — flui até a margem do hero */
}

.post-byline {
  display: flex; align-items: center; gap: 16px;
  font-size: .85rem; color: var(--muted);
  flex-wrap: wrap;
  margin-top: 8px;
}
.post-author { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.post-author:hover { color: var(--ink); }
.post-author .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem;
  overflow: hidden; flex-shrink: 0;
  border: 1.5px solid var(--border);
}
.post-author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author b { color: var(--muted); font-weight: 500; }   /* mesmo tom da data */
.post-meta-sep { color: var(--border); }
.post-meta time, .post-meta .reading-time { color: var(--muted); }
.post-mod-note {
  font-size: .78rem; color: var(--muted-light);
  font-style: italic;
}
.post-mod-note time { color: inherit; }

/* ── Imagem de capa ── */
.post-cover {
  margin: 0 0 36px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-lt);
}
.post-cover img { display: block; width: 100%; height: auto; }
.post-cover figcaption {
  font-size: .82rem; color: var(--muted);
  padding: 10px 14px; text-align: center; font-style: italic;
  border-top: 1px solid var(--border-lt);
}

/* ── Corpo do post ── */
.post-body {
  font-size: 1.0625rem;   /* 17px — leitura mais confortável */
  line-height: 1.75;
  color: var(--ink);
}
.post-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.post-body h2 {
  font-family: var(--serif); font-size: 1.75rem; color: var(--ink);
  line-height: 1.25;
  margin: 18px auto 18px;        /* ritmo enxuto antes dos títulos (Gilles 2026-06-21) */
  scroll-margin-top: 88px;
}
.post-body h3 {
  font-size: 1.2rem; font-weight: 600; color: var(--ink);
  margin: 18px auto 14px;
  scroll-margin-top: 88px;
}
.post-body h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 18px auto 12px; }
.post-body h5, .post-body h6 { font-size: .95rem; font-weight: 600; color: var(--muted); margin: 18px auto 10px; }
.post-body p {
  margin-bottom: 18px;   /* respiro entre parágrafos (Gilles 2026-06-21: voltou de 24px p/ 18px) */
}
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin: 4px auto 24px;                 /* margem p/ o parágrafo vizinho */
}
.post-body li { line-height: 1.7; }
.post-body li + li { margin-top: 5px; }  /* espaço entre itens irmãos (Gilles 2026-07-07) */
.post-body li > ul, .post-body li > ol { margin: 5px auto 0; }   /* sublista aninhada: respiro pequeno, sem margem grande */
.post-body strong, .post-body b { font-weight: 600; }
.post-body em, .post-body i { font-style: italic; }
.post-body a {
  color: var(--teal); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: rgba(28,128,119,.35);
  transition: text-decoration-color .15s;
}
.post-body a:hover { text-decoration-color: var(--teal); }

/* ── Blockquote ── */
.post-body blockquote {
  border-left: 3px solid var(--teal-mid);
  padding: 16px 22px;
  background: var(--teal-xpale);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 28px auto;
  font-size: .95rem; color: var(--ink-soft); font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote cite { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted); font-style: normal; }

/* ── Tabela ── */
.post-body .table-wrap { overflow-x: auto; margin: 28px auto; max-width: 720px; }
.post-body table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; line-height: 1.55;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  overflow: hidden;
}
.post-body th {
  background: var(--teal-xpale);
  font-weight: 600;
  padding: 11px 16px; text-align: left;
  border-bottom: 1px solid var(--border-lt);
  color: var(--ink);
}
.post-body td {
  padding: 10px 16px; border-bottom: 1px solid var(--border-lt);
  vertical-align: top;
}
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:nth-child(even) td { background: var(--bg); }

/* ── Imagens no corpo (alinhamentos WP) ── */
.post-body img, .post-body figure {
  max-width: 100%; height: auto;
  border-radius: var(--r-sm);
  margin: 14px auto;
  display: block;
}
.post-body figure { margin: 28px auto; max-width: 720px; }
.post-body figure img { margin: 0 auto; border-radius: var(--r-md); }
.post-body figcaption {
  font-size: .82rem; color: var(--muted);
  text-align: center; font-style: italic;
  margin-top: 10px;
}
/* alinhamentos do WordPress, convertidos para CSS semântico */
.post-body .alignleft  { float: left;  margin: 8px 24px 16px 0; max-width: 50%; }
.post-body .alignright { float: right; margin: 8px 0 16px 24px; max-width: 50%; }
.post-body .aligncenter{ display: block; margin: 24px auto; }
.post-body .alignnone  { margin: 14px 0; }
.post-body .size-thumbnail { max-width: 150px; }
.post-body .size-medium    { max-width: 300px; }
.post-body .size-large     { max-width: 500px; }
.post-body .size-full      { max-width: 100%; }
/* Imagens migradas vêm embrulhadas em <picture>; o alinhamento/float precisa valer para o
   <picture> (elemento do fluxo), não para o <img> interno. Espelha as regras acima no wrapper
   (via :has), e neutraliza o alinhamento no <img> de dentro (o <picture> já cuida). */
.post-body picture:has(> img.alignleft)  { float: left;  margin: 8px 24px 16px 0; max-width: 50%; }
.post-body picture:has(> img.alignright) { float: right; margin: 8px 0 16px 24px; max-width: 50%; }
.post-body picture:has(> img.aligncenter){ display: block; width: fit-content; max-width: 100%; margin: 24px auto; }
.post-body picture:has(> img.alignnone)  { margin: 14px 0; }
.post-body picture > img { display: block; width: 100%; height: auto; }
.post-body picture > img.alignleft,
.post-body picture > img.alignright,
.post-body picture > img.aligncenter,
.post-body picture > img.alignnone { float: none; margin: 0; max-width: 100%; }
/* clear de floats no fim de cada bloco */
.post-body h2, .post-body h3 { clear: both; }
@media (max-width: 640px) {
  .post-body .alignleft, .post-body .alignright,
  .post-body picture:has(> img.alignleft), .post-body picture:has(> img.alignright) {
    float: none; max-width: 100%; margin: 14px auto;
  }
}

/* ── Lite-embed (YouTube/SoundCloud/Spotify/Vimeo)
   Usa padding-top em vez de aspect-ratio para garantir
   posicionamento absoluto das crianças em todos os browsers. ── */
.lite-embed {
  position: relative;
  display: block;
  margin: 32px auto;
  max-width: 720px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
}
.lite-embed::before {
  content: '';
  display: block;
  padding-top: 56.25%;   /* 16:9 padrão (YouTube, Vimeo) */
}
.lite-embed[data-kind="soundcloud"]::before { padding-top: 20%; }   /* ~5:1 */
.lite-embed[data-kind="spotify"]::before    { padding-top: 25%; }   /* 4:1 */

.lite-embed .le-thumb {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
}
.lite-embed .le-play {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  transition: background .2s;
}
.lite-embed:hover .le-play { background: rgba(0,0,0,.32); }
.lite-embed .le-play svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
  transition: transform .2s;
}
.lite-embed:hover .le-play svg { transform: scale(1.08); }
.lite-embed .le-label {
  position: absolute; top: 12px; left: 16px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.45);
  padding: 4px 10px; border-radius: 4px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.lite-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Link "Post original" (apenas durante migração) ── */
.post-original-link {
  color: var(--amber) !important;
  font-weight: 600;
  text-decoration: none;
  border: 1px dashed var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .78rem;
}
.post-original-link:hover {
  background: var(--amber-pale);
}

/* ── Card de autor (após o conteúdo) ── */
.post-author-card {
  display: flex; gap: 18px;
  max-width: 720px; margin: 56px auto 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
}
.post-author-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--teal-pale); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.4rem;
  border: 1px solid var(--border-lt);
  overflow: hidden;
}
.post-author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-card .pac-info { flex: 1; min-width: 0; }
.post-author-card .pac-name {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  margin-bottom: 4px;
}
.post-author-card .pac-name a { color: inherit; text-decoration: none; }
.post-author-card .pac-name a:hover { color: var(--teal); }
.post-author-card .pac-bio {
  font-size: .9rem; color: var(--muted); line-height: 1.6;
}
.post-author-card .pac-bio p:last-child { margin-bottom: 0; }

/* ── Card do entrevistado (Controller Cast) ── */
.post-body .guest-card {
  display: flex; gap: 32px; align-items: center;
  max-width: 720px; margin: 36px auto;
  padding: 32px 36px;
  background: var(--teal-xpale);
  border: 1px solid var(--teal-pale);
  border-left: 4px solid var(--teal-mid);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post-body .guest-card + .guest-card { margin-top: 24px; }
.post-body .guest-card .gc-photo {
  flex: 0 0 auto; width: 250px; height: 250px;
  border-radius: 50%; overflow: hidden;
  background: var(--white); border: 3px solid var(--white);
  box-shadow: 0 6px 22px rgba(28, 128, 119, .15);
}
.post-body .guest-card .gc-photo picture {
  display: block; width: 100%; height: 100%; float: none; margin: 0; max-width: none;
}
.post-body .guest-card .gc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  margin: 0; border-radius: 0; display: block; max-width: none;
}
.post-body .guest-card .gc-body { flex: 1 1 auto; min-width: 0; }
.post-body .guest-card .gc-body h2 {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.2;
  color: var(--ink); margin: 0 0 14px; padding: 0; clear: none;
}
.post-body .guest-card .gc-body p {
  font-size: .95rem; color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px;
}
.post-body .guest-card .gc-body p:last-child { margin-bottom: 0; }
.post-body .guest-card .gc-body a { color: var(--teal); }
@media (max-width: 640px) {
  .post-body .guest-card { flex-direction: column; text-align: center; gap: 20px; padding: 28px 24px; }
  .post-body .guest-card .gc-photo { width: 200px; height: 200px; }
}

/* ── Banner contextual (classificado por conteúdo) ── */
.post-banner {
  background: var(--ink-mid);
  color: #fff;
  border-radius: var(--r-md);
  margin: 56px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  position: relative;
}
.post-banner[data-banner]:has(.pb-image) {
  grid-template-columns: 1fr 240px;
}
.post-banner .pb-content {
  padding: 30px 34px;
  display: flex; flex-direction: column; gap: 8px;
}
.post-banner .pb-eyebrow {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal-light);
  margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.post-banner .pb-titulo {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 6px;
}
.post-banner .pb-subtitulo {
  font-size: .98rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 6px;
  font-weight: 500;
}
.post-banner .pb-descricao {
  font-size: .9rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin: 0;
}
.post-banner .pb-prova {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  margin: 4px 0 0;
  font-style: italic;
}
.post-banner .pb-cta {
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 22px;
  background: var(--teal-mid); color: #fff;
  border-radius: var(--r-sm);
  font-weight: 500; font-size: .95rem;
  text-decoration: none;
  transition: all .15s;
}
.post-banner .pb-cta:hover {
  background: var(--teal-light); color: var(--ink);
  transform: translateY(-1px);
}
.post-banner .pb-image {
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
}
.post-banner .pb-image img {
  width: 100%; height: 100%; object-fit: cover;
}
/* variantes de acento (cor do eyebrow + CTA) */
.post-banner.accent-teal       .pb-eyebrow,
.post-banner.accent-teal-light .pb-eyebrow { color: var(--teal-light); }
.post-banner.accent-amber      .pb-eyebrow { color: var(--amber); }
.post-banner.accent-purple     .pb-eyebrow { color: #B7AEFE; }
.post-banner.accent-coral      .pb-eyebrow { color: #FFA985; }

.post-banner.accent-teal       .pb-cta { background: var(--teal-mid); }
.post-banner.accent-teal       .pb-cta:hover { background: var(--teal-light); color: var(--ink); }
.post-banner.accent-teal-light .pb-cta { background: var(--teal-light); color: var(--ink); }
.post-banner.accent-teal-light .pb-cta:hover { background: #fff; color: var(--teal); }
.post-banner.accent-amber      .pb-cta { background: var(--amber); }
.post-banner.accent-amber      .pb-cta:hover { background: #FFA858; color: var(--ink); }
.post-banner.accent-purple     .pb-cta { background: var(--purple); }
.post-banner.accent-purple     .pb-cta:hover { background: #6B62D1; }
.post-banner.accent-coral      .pb-cta { background: var(--coral); }
.post-banner.accent-coral      .pb-cta:hover { background: #E8754F; }

@media (max-width: 640px) {
  .post-banner { grid-template-columns: 1fr !important; }
  .post-banner .pb-image { display: none; }
  .post-banner .pb-content { padding: 24px; }
}

/* ── Posts relacionados ── */
.post-related {
  max-width: 720px; margin: 56px auto 0;
}
.post-related h2 {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--ink); margin-bottom: 20px;
}
.post-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.post-related-card {
  display: block;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.post-related-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.post-related-card .prc-eyebrow {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--teal); margin-bottom: 8px;
}
.post-related-card .prc-title {
  font-family: var(--serif); font-size: 1rem;
  color: var(--ink); line-height: 1.3;
  margin: 0;
}

/* ── Sumário executivo (super-posts, autores convidados etc.) ── */
.post-sumario {
  background: var(--teal-xpale);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 22px 28px;
  margin: 0 auto 40px;
  max-width: 720px;
}
.post-sumario .ps-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--teal); margin-bottom: 12px;
}
.post-sumario ul { margin: 0; gap: 6px; padding-left: 22px; }
.post-sumario li { font-size: .92rem; color: var(--ink); line-height: 1.6; }

/* ── FAQ ── */
.post-faq {
  max-width: 720px; margin: 56px auto 0;
  padding-top: 36px;
  border-top: 2px solid var(--teal-pale);
}
.post-faq h2 {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--ink); margin-bottom: 24px;
}
.post-faq details {
  border-bottom: 1px solid var(--border-lt);
  padding: 16px 0;
}
.post-faq summary {
  font-weight: 600; font-size: 1rem; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.post-faq summary::after {
  content: '+'; margin-left: auto; font-weight: 400; color: var(--teal);
  font-size: 1.5rem; line-height: 1; transition: transform .2s;
}
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq details > p, .post-faq details > div {
  font-size: .93rem; color: var(--muted); line-height: 1.7;
  margin-top: 12px;
}

/* ── TL;DR (resumo em bullets no topo do corpo) — §24 expansão editorial ── */
.post-tldr {
  max-width: 720px; margin: 0 auto 32px;
  background: var(--teal-xpale);
  border: 1px solid var(--teal-pale);
  border-left: 3px solid var(--teal-mid);
  border-radius: var(--r-md);
  padding: 20px 24px;
}
.post-tldr-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.post-tldr ul { margin: 0; padding-left: 1.15rem; }
.post-tldr li {
  font-size: .95rem; color: var(--ink); line-height: 1.6;
  margin-bottom: 8px;
}
.post-tldr li:last-child { margin-bottom: 0; }

/* ── CTA de download no meio do conteúdo (CRO) — §24 ── */
.post-dl-cta {
  max-width: 720px; margin: 32px auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  justify-content: space-between;
  background: var(--teal-pale); border: 1px solid var(--teal-mid);
  border-radius: var(--r-md); padding: 18px 22px;
}
.post-dl-cta .pdc-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 280px; }
.post-dl-cta .pdc-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.post-dl-cta .pdc-sub { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.post-dl-cta .pdc-btn {
  flex: 0 0 auto; background: var(--teal-mid); color: #fff;
  padding: 11px 22px; border-radius: var(--r-sm); font-weight: 600;
  font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.post-dl-cta .pdc-btn:hover { background: var(--teal); }

/* ── Variantes por tipo (badge na eyebrow) ── */
.post-type-badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-left: 8px;
  vertical-align: middle;
}
.tb-artigos        { background: var(--teal-pale);   color: var(--teal); }
.tb-controller-cast{ background: #FDE6E1;           color: #B23A12; }
.tb-casos-de-sucesso{ background: var(--amber-pale); color: var(--amber); }
.tb-autores-convidados{ background: var(--purple-pale); color: var(--purple); }
.tb-e-books        { background: #EAF1FF;           color: #1D4ED8; }
.tb-drops-treasy   { background: var(--purple-pale); color: var(--purple); }
.tb-webinars       { background: #FEE4E4;           color: #B91C1C; }
.tb-modelos-de-planilhas{ background: #E0F2EF;      color: #0F766E; }
.tb-pesquisas      { background: var(--amber-pale); color: var(--amber); }
.tb-super-posts    { background: var(--teal-pale);  color: var(--teal); }
.tb-novidades-no-treasy{ background: var(--teal-xpale); color: var(--teal); }
.tb-treasy-tips    { background: var(--teal-xpale); color: var(--teal); }

/* ── Mobile fine tuning ── */
@media (max-width: 720px) {
  .blog-layout { padding: 16px 20px 64px; }
  .post-h1 { font-size: 1.75rem; }
  .post-body h2 { font-size: 1.4rem; }
  .post-body h3 { font-size: 1.05rem; }
  .post-cta { padding: 22px 24px; }
  .post-author-card { padding: 18px; }
}

/* ── Sentinela do PDF Generator (invisível) ── */
.pdf-generator-sentinel { display: none; }

/* ============================================================
   PÁGINA DE LISTAGEM DO BLOG (/blog/index.html)
   ============================================================ */
.blog-list-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(11,209,175,.10), transparent 60%),
    linear-gradient(180deg, var(--teal-xpale) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-lt);
  padding: 56px 0 36px;
}
.blog-list-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--ink);
  line-height: 1.1;
  margin: 4px 0 18px;
  letter-spacing: -.01em;
}
.blog-list-h1 em { color: var(--teal-mid); font-style: italic; }
.blog-list-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 26px;
  /* sem max-width — flui até a margem do container (regra absoluta para parágrafos) */
}
.blog-search {
  margin-bottom: 24px;
}
#blog-search-input {
  width: 100%;
  font-family: var(--sans);
  font-size: .9rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color .15s;
}
#blog-search-input:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(44,167,155,.12);
}

.blog-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;     /* SIDEBAR À DIREITA */
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 32px 88px;
  align-items: start;
}
@media (max-width: 1100px) {
  .blog-list-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blog-list-sidebar { display: none; }
}
.blog-list-sidebar {
  position: sticky; top: 88px;
  font-size: .85rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.blog-list-sidebar::-webkit-scrollbar { width: 4px; }
.blog-list-sidebar::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 4px; }
/* Item do filtro: nome + badge alinhados horizontalmente (flex em vez de float
   — float quebra alinhamento vertical quando o nome ocupa 2 linhas). */
.blog-sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.blog-sidebar-list .badge-count {
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--muted-light);
  background: var(--bg);
  padding: 0 6px;
  border-radius: 10px;
  line-height: 1.6;
}
.blog-sidebar-list a.is-active .badge-count {
  background: #fff;
  color: var(--teal);
}
/* Bug crítico: .blog-card tem display: flex que sobrescreve o display: none
   implícito do atributo [hidden]. Sem isto, JS marca como hidden mas o card
   continua visível e o filtro "não funciona". */
.blog-card[hidden] { display: none !important; }

.blog-list-counter {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.blog-list-counter #blog-list-count { color: var(--ink); font-weight: 600; }

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
  overflow: hidden;
}
.blog-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.blog-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--teal-xpale);
  border-bottom: 1px solid var(--border-lt);
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 22px;
  flex: 1;
}
.blog-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  flex-wrap: wrap;
}

/* Tags do card: tipo (badge) em cima, tema (texto) embaixo */
.blog-card-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.blog-card-tags .post-type-badge {
  /* compensa o padding interno do badge para alinhar o texto com o tema abaixo */
  margin-left: -5px;
}
.blog-card-tags .blog-card-tema {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
}
.blog-card-title {
  font-family: var(--sans);          /* mais leve que DM Serif Display */
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.005em;
  margin: 4px 0;
}
.blog-card-resumo {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.blog-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-lt);
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.blog-card-meta .blog-card-autor { color: var(--ink); font-weight: 500; }

/* Placeholder para posts sem imagem de capa */
.blog-card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(11,209,175,.22), transparent 60%),
    linear-gradient(135deg, var(--teal-mid), var(--ink-mid));
  color: rgba(255,255,255,.92);
  text-align: center;
  padding: 20px;
}
.blog-card-cover-placeholder .bccp-tema {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.blog-list-empty {
  padding: 48px 32px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* ── Drawer de filtros (mobile/tablet — < 1100px) ── */
.blog-filters-mobile {
  display: none;                       /* escondido em desktop */
  margin-bottom: 20px;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
@media (max-width: 1100px) {
  .blog-filters-mobile { display: block; }
}
.blog-filters-mobile summary {
  padding: 14px 18px;
  font-size: .95rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  user-select: none;
}
.blog-filters-mobile summary::after {
  content: '▾';
  color: var(--teal);
  font-size: 1.1rem;
  transition: transform .2s;
}
.blog-filters-mobile[open] summary::after { transform: rotate(180deg); }
.blog-filters-mobile summary .bfm-count {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
}
.blog-filters-mobile .bfm-body {
  padding: 8px 18px 18px;
  border-top: 1px solid var(--border-lt);
  display: flex; flex-direction: column; gap: 18px;
}
.blog-filters-mobile #blog-search-input-mobile {
  width: 100%;
  font-family: var(--sans);
  font-size: .9rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--r-sm);
  color: var(--ink);
  margin-top: 12px;
}
.blog-filters-mobile #blog-search-input-mobile:focus {
  outline: none; border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(44,167,155,.12);
}
.blog-filters-mobile .bfm-section { font-size: .85rem; }

/* === DEPOIMENTO (citação de entrevistado em caso de sucesso) ============= */
.post-depoimento {
  margin: 28px 0;
  padding: 24px 28px 22px;
  background: var(--teal-xpale);
  border-left: 3px solid var(--teal-mid);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post-depoimento .pd-texto {
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
}
.post-depoimento .pd-texto p { margin: 0 0 8px; }
.post-depoimento .pd-texto p:last-child { margin: 0; }
.post-depoimento .pd-fonte {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-lt);
}
.post-depoimento .pd-foto {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted);
  font-size: .95rem;
}
.post-depoimento .pd-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-depoimento .pd-info { display: flex; flex-direction: column; gap: 2px; }
.post-depoimento .pd-nome {
  font-size: .95rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.post-depoimento .pd-nome:hover { text-decoration: underline; }
.post-depoimento .pd-cargo {
  font-size: .82rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .post-depoimento { padding: 20px 18px 18px; }
  .post-depoimento .pd-texto { font-size: 1.04rem; }
}

/* ── Cards de resultados (casos de sucesso) ──────────────────────── */
.post-body .case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin: 40px auto;
  clear: both; /* nunca contornar um logo flutuante (case-logo) acima */
}
.post-body .case-result {
  background: var(--teal-xpale);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-md);
  padding: 24px;
}
.post-body .case-result .cr-destaque {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--teal);
  margin-bottom: 10px;
}
.post-body .case-result .cr-texto {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 600px) {
  .post-body .case-results { grid-template-columns: 1fr; }
}

/* ── Logo da empresa flutuando ao lado do texto (casos de sucesso) ── */
.post-body p.case-logo {
  float: right;
  max-width: 220px;
  margin: 2px 0 6px 28px;   /* rodapé enxuto p/ o texto contornar e preencher abaixo do logo */
}
.post-body p.case-logo img {
  max-width: 200px;
  max-height: 200px;
  height: auto;
  margin: 0;
}
@media (max-width: 640px) {
  .post-body p.case-logo { float: none; max-width: 100%; margin: 14px auto; }
  .post-body p.case-logo img { margin: 0 auto; }
}
