/* Blog (página inicial do blog e artigos). Mesmos tokens da Home.
 * O elemento forte é a capa de cada artigo (número grande, feita por gerarimagensog.js);
 * o resto fica quieto para o texto respirar. */
:root {
  --bg: #0B0B0B;
  --surface: #131313;
  --surface-2: #1C1C1C;
  --line: rgba(255, 255, 255, .1);
  --text: #F2F2F2;
  --soft: #DADADA;
  --muted: #A6A6A6;
  --orange: #F96D00;
  --ink: #0B0B0B;
  --radius: 18px;
  --wrap: 1180px;
  --font-head: "Lexend Deca", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:where(:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Cabeçalho e menu do celular: os mesmos das páginas de serviço (servico.css). Mudou lá, mudar aqui. */
.ui-button[data-size="xl"] { height: 48px; padding: 0 28px; font-size: 1rem; font-weight: 600; }
.ui-button[data-size="xl"] svg { width: 18px; height: 18px; }
/* Quanto do artigo já foi lido (responde à rolagem; blog.js) */
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  border-radius: 0; background: transparent;
}
.read-progress .ui-progress-indicator { transition: none; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { width: 140px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav > ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a, .nav .ui-navigation-menu-trigger { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .975rem; transition: color .2s; }
.nav > ul > li > a:hover, .nav .ui-navigation-menu-trigger:hover, .nav .ui-navigation-menu-trigger[aria-expanded="true"],
.nav > ul > li > a[aria-current="page"] { color: var(--text); }
.nav > ul > li > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--orange);
}
.nav .ui-button-colorful { color: #FFF; }
.ui-navigation-menu-footer { margin: 0; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; color: var(--text); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-sheet nav ul { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; }
.menu-sheet nav a {
  display: block; padding: 12px 10px; margin-inline: -10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font: 500 1.1rem/1.3 var(--font-head);
}
.menu-sheet nav a:hover { background: var(--ui-accent); }
.menu-sheet nav a[aria-current="page"] { color: var(--orange); }
.menu-sheet nav .menu-sub { margin: 0 0 6px 2px; padding-left: 14px; border-left: 1px solid var(--line); }
.menu-sheet nav .menu-sub a { padding-block: 8px; font: 500 .98rem/1.3 var(--font-body); color: var(--muted); }
.menu-sheet .logo img { width: 112px; }
.menu-sheet .sheet-cta { width: 100%; margin-top: 24px; }
.menu-sheet .sheet-foot { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }

/* Peças comuns */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.tema { margin: 0; font: 600 .9rem/1.2 var(--font-head); color: var(--orange); }
.tema a { text-decoration: none; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: .88rem; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 18px; border-radius: 12px; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .24); background: none; font: 500 .95rem/1.1 var(--font-body); color: var(--text);
  transition: border-color .2s, color .2s;
}
.botao:hover { border-color: var(--orange); color: var(--orange); }
.botao svg { width: 18px; height: 18px; flex: none; }
.botao.cheio { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 600; }
.botao.cheio:hover { color: var(--ink); filter: brightness(1.1); }
.botao.escuro { background: var(--ink); border-color: var(--ink); color: var(--text); font-weight: 600; }
.botao.escuro:hover { color: var(--orange); }
.botao.ok { border-color: #7BE3A4; color: #7BE3A4; }

/* ------------------------------------------------------------------ Página inicial do blog */
.blog-topo { padding-block: clamp(40px, 7vw, 80px) clamp(28px, 4vw, 44px); }
.blog-topo h1 { font: 600 clamp(2.2rem, 5.4vw, 3.9rem)/1.04 var(--font-head); letter-spacing: -.03em; margin: 18px 0 0; max-width: 17ch; text-wrap: balance; }
.blog-topo .lead { margin: 20px 0 0; color: var(--soft); font-size: 1.2rem; line-height: 1.55; max-width: 54ch; }
.redes { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.redes span { margin-right: 4px; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; }
.filtros button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--muted); font: 500 .92rem/1 var(--font-body);
}
.filtros button:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.filtros button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }

.posts { list-style: none; margin: 0; padding: 0 0 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.post-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.post-card .capa { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.post-card .capa img { width: 100%; transition: transform .35s ease; }
.post-card:hover .capa img { transform: scale(1.03); }
.post-card .tema { margin-top: 6px; }
.post-card :is(h2, h3) { font: 600 1.3rem/1.22 var(--font-head); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.post-card :is(h2, h3) a { text-decoration: none; }
.post-card :is(h2, h3) a:hover { color: var(--orange); }
.post-card .resumo { margin: 0; color: var(--soft); font-size: .98rem; line-height: 1.6; }
.post-card .meta { margin-top: auto; padding-top: 4px; }
/* O artigo mais recente abre a lista em destaque */
.posts:not(.filtrado) > li:first-child { grid-column: 1 / -1; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.posts:not(.filtrado) > li:first-child .post-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(24px, 4vw, 52px); row-gap: 14px; align-items: start; }
.posts:not(.filtrado) > li:first-child .capa { grid-row: 1 / -1; }
.posts:not(.filtrado) > li:first-child .tema { margin-top: clamp(0px, 2vw, 22px); }
.posts:not(.filtrado) > li:first-child h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.posts:not(.filtrado) > li:first-child .resumo { font-size: 1.1rem; }
.posts:not(.filtrado) > li:first-child .meta { margin-top: 6px; }

/* Aviso abaixo da lista (blog em inglês: a maior parte dos artigos está em português) */
.blog-nota { margin: -40px 0 56px; color: var(--muted); font-size: .98rem; }
.blog-nota a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* Faixa laranja de chamada (mesma linguagem das capas) */
.faixa { background: var(--orange); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
.faixa h2 { font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--font-head); letter-spacing: -.02em; margin: 0; color: var(--ink); text-wrap: balance; }
.faixa p { margin: 8px 0 0; color: rgba(11, 11, 11, .8); max-width: 56ch; }
.faixa .acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-fim { padding-bottom: 88px; }

/* ------------------------------------------------------------------ Artigo */
.artigo-topo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.artigo-topo .tema { margin-top: 22px; }
.artigo-topo h1 { font: 600 clamp(2rem, 4.3vw, 3.1rem)/1.08 var(--font-head); letter-spacing: -.028em; margin: 12px 0 0; text-wrap: balance; }
.artigo-topo .lead { margin: 18px 0 0; color: var(--soft); font-size: 1.2rem; line-height: 1.55; }
.assinatura { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.assinatura img { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); }
.assinatura .quem { display: grid; line-height: 1.3; }
.assinatura .quem strong { font: 600 .98rem/1.3 var(--font-head); }
.assinatura .quem span, .assinatura .meta { font-size: .88rem; color: var(--muted); }
.assinatura .meta { margin-left: auto; }
.compartilhar { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.compartilhar .botao { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.artigo-topo .capa img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

.artigo { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: 48px 88px; }
.lateral { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 124px); overflow-y: auto; font-size: .9rem; scrollbar-width: thin; scrollbar-color: #3A3A3A transparent; }
.lateral p { font: 600 .9rem/1.2 var(--font-head); margin: 0 0 12px; color: var(--text); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.atual { color: var(--text); border-left-color: var(--orange); }

.texto { max-width: 70ch; min-width: 0; font-size: 1.125rem; line-height: 1.75; color: var(--soft); }
.texto > :first-child, .texto > section:first-child > :first-child { margin-top: 0; }
.texto h2 { font: 600 clamp(1.5rem, 2.8vw, 1.9rem)/1.18 var(--font-head); letter-spacing: -.02em; color: var(--text); margin: 2.6em 0 .7em; text-wrap: balance; }
.texto h3 { font: 600 1.2rem/1.3 var(--font-head); color: var(--text); margin: 1.9em 0 .5em; }
.texto p, .texto ul, .texto ol { margin: 0 0 1.1em; }
.texto ul, .texto ol { padding-left: 1.3em; }
.texto li + li { margin-top: .45em; }
.texto li::marker { color: var(--orange); }
.texto strong { color: var(--text); font-weight: 600; }
.texto a { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.texto a:hover { color: var(--orange); }
.texto code { font-size: .9em; color: var(--text); background: var(--surface-2); padding: .12em .4em; border-radius: 5px; overflow-wrap: anywhere; }

/* Resposta direta, logo no começo */
.resposta { border-left: 3px solid var(--orange); padding: 2px 0 2px 22px; margin: 0 0 2em; font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.resposta strong:first-child { display: block; font: 600 .9rem/1.2 var(--font-head); color: var(--orange); margin-bottom: 8px; }
.resposta p:last-child { margin-bottom: 0; }

/* Dado em destaque: o número fala, a frase explica, a fonte assina */
.dado { margin: 2.2em 0; padding: 26px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; }
.dado b { font: 700 clamp(2.8rem, 7vw, 4.4rem)/.9 var(--font-head); letter-spacing: -.045em; color: var(--orange); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dado figcaption { font: italic 400 clamp(1.3rem, 2.4vw, 1.6rem)/1.3 var(--font-serif); color: var(--text); }
.dado cite { display: block; margin-top: 8px; font: normal 400 .84rem/1.4 var(--font-body); color: var(--muted); }
.dados-linha { margin: 2em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.dados-linha .dado { margin: 0; padding: 22px 20px 22px 0; border: 0; display: block; }
.dados-linha .dado + .dado { padding-left: 20px; border-left: 1px solid var(--line); }
.dados-linha .dado b { display: block; font-size: clamp(2rem, 4.4vw, 2.7rem); }
.dados-linha .dado figcaption { margin-top: 10px; font: 400 .98rem/1.45 var(--font-body); color: var(--soft); }

/* Passo a passo (só quando a ordem importa) */
.passos { list-style: none; padding: 0 !important; counter-reset: passo; margin: 1.6em 0 !important; }
.passos > li { counter-increment: passo; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.passos > li:last-child { border-bottom: 1px solid var(--line); }
.passos > li::before { content: counter(passo); grid-row: 1 / span 9; font: 700 2rem/1 var(--font-head); color: var(--orange); letter-spacing: -.03em; padding-top: 2px; }
.passos > li > * { grid-column: 2; margin: 0 0 .5em; }
.passos > li > :last-child { margin-bottom: 0; }
.passos h3 { margin: 0 0 .3em; }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.6-1.6 2.4 2.4 5-5 1.6 1.6-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.6-1.6 2.4 2.4 5-5 1.6 1.6-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat; }

.aviso { background: var(--surface); border-radius: 14px; padding: 18px 20px; margin: 1.8em 0; font-size: 1.02rem; }
.aviso p:last-child { margin-bottom: 0; }

/* Chamada no meio do texto: bloco laranja, como as capas */
.chamada { background: var(--orange); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); margin: 2.4em 0; }
.chamada h2, .chamada h3 { font: 600 clamp(1.3rem, 2.4vw, 1.6rem)/1.2 var(--font-head); letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.chamada p { color: rgba(11, 11, 11, .82); margin: 0 0 18px; font-size: 1.05rem; }
.chamada .acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.chamada a.botao { color: var(--text); text-decoration: none; }
.chamada a.botao.claro { background: none; border-color: rgba(11, 11, 11, .45); color: var(--ink); }
.chamada a.botao:hover { color: var(--orange); }
.chamada a.botao.claro:hover { border-color: var(--ink); color: var(--ink); }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 1.6em 0 .6em; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
caption { text-align: left; padding: 14px 16px; font: 600 .98rem/1.3 var(--font-head); color: var(--text); background: var(--surface); border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font: 600 .82rem/1.3 var(--font-head); color: var(--muted); background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--soft); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.num { color: var(--text); font-weight: 600; }
td.acao, th.acao { width: 44px; padding: 0; text-align: center; vertical-align: middle; }
.copiar-dado { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.copiar-dado:hover { color: var(--orange); }
.copiar-dado svg { width: 16px; height: 16px; }
.copiar-dado.ok { color: #7BE3A4; }
/* Tabela completa recolhida: o gráfico e os destaques contam a história; a tabela fica a um clique */
.tabela { margin: 1.2em 0 .6em; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tabela > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none; font: 500 .98rem/1.35 var(--font-body); color: var(--text); background: var(--surface); }
.tabela > summary::-webkit-details-marker { display: none; }
.tabela > summary:hover { color: var(--orange); }
.tabela > summary small { color: var(--muted); font-size: .86rem; white-space: nowrap; margin-left: auto; }
.tabela > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.tabela[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.tabela[open] > summary { border-bottom: 1px solid var(--line); }
.tabela .table-wrap { margin: 0; border: 0; border-radius: 0; }
.tabela caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Gráfico de barras em CSS (cada linha também é um dado) */
.grafico { margin: 1.8em 0 .6em; }
.grafico figcaption { font: 600 1.02rem/1.3 var(--font-head); color: var(--text); margin-bottom: 14px; }
.barras { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
.barras li { margin: 0 !important; display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) 4.4em; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.3; color: var(--soft); }
.barras i { display: block; height: 14px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.barras i::before { content: ""; display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--orange); }
.barras b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.fonte { font-size: .86rem; line-height: 1.5; color: var(--muted); margin: .4em 0 1.6em !important; }
.fonte a { color: var(--muted); text-decoration-thickness: 1px; }

/* Busca nos dados (artigo de estatísticas) */
.busca { margin: 2em 0; background: var(--surface); border-radius: var(--radius); padding: 22px; }
.busca label { display: block; font: 600 1.02rem/1.3 var(--font-head); color: var(--text); margin-bottom: 10px; }
.busca input { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: var(--bg); color: var(--text); font: inherit; }
.busca input::placeholder { color: #8A8A8A; }
.busca-info { margin: 10px 0 0 !important; font-size: .9rem; color: var(--muted); }
.busca-resultados { list-style: none; padding: 0 !important; margin: 12px 0 0 !important; display: grid; gap: 8px; }
.busca-resultados li { margin: 0 !important; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: .95rem; line-height: 1.5; }
.busca-resultados b { color: var(--orange); font-variant-numeric: tabular-nums; }
.busca-resultados small { display: block; color: var(--muted); margin-top: 2px; }

/* Dúvidas (mesma marcação das páginas de serviço: o FAQPage é lido daqui). A base vem de ui.css. */
.ui-accordion { border-top: 1px solid var(--line); }
.ui-accordion-item { border-bottom: 1px solid var(--line); }
.ui-accordion-trigger { align-items: center; padding: 18px 0; min-height: 44px; font: 600 1.08rem/1.4 var(--font-head); color: var(--text); }
.ui-accordion-trigger:hover { color: var(--orange); text-decoration: none; }
.ui-accordion-chevron { width: 18px; height: 18px; margin-top: 0; color: var(--muted); }
.ui-accordion-content { padding-bottom: 18px; color: inherit; font-size: inherit; }
.ui-accordion-content p:last-child { margin-bottom: 0; }

/* Fim do artigo: citar, compartilhar, autor, leia também */
.citar { background: var(--surface); border-radius: 14px; padding: 20px; margin: 1.4em 0; }
.citar p { margin: 0 0 14px !important; font-size: .98rem; overflow-wrap: anywhere; }
.fim { margin-top: 3.2em; padding-top: 2em; border-top: 1px solid var(--line); }
.fim .pergunta { font: 600 1.15rem/1.3 var(--font-head); color: var(--text); margin: 0 0 4px; }
.fim .compartilhar { margin-top: 14px; }
.autor { margin-top: 2.2em; display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 22px; font-size: 1rem; line-height: 1.6; }
.autor img { width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--surface-2); }
.autor p { margin: 0 0 8px; }
.autor .nome { font: 600 1.08rem/1.3 var(--font-head); color: var(--text); margin-bottom: 4px; }
.autor .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: .95rem; }
.fontes-lista { font-size: .95rem; line-height: 1.6; }
.fontes-lista li { overflow-wrap: anywhere; }

.leia { border-top: 1px solid var(--line); padding-block: 56px 88px; }
.leia > h2 { font: 600 clamp(1.4rem, 2.6vw, 1.8rem)/1.2 var(--font-head); letter-spacing: -.02em; margin: 0 0 28px; }
.leia .posts { padding-bottom: 0; }
.leia .posts > li:first-child { grid-column: auto; padding-bottom: 0; border-bottom: 0; }
.leia .posts > li:first-child .post-card { display: flex; }
.leia .posts > li:first-child .capa { grid-row: auto; }
.leia .posts > li:first-child .tema { margin-top: 6px; }
.leia .posts > li:first-child .resumo { font-size: .98rem; }

/* Rodapé e WhatsApp flutuante: os mesmos das páginas de serviço (servico.css) */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; font-size: .95rem; line-height: 1.65; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid .logo img { width: 128px; margin-bottom: 18px; }
.footer-grid p { margin: 0; color: var(--muted); max-width: 32ch; }
.footer-grid .footer-title { font: 600 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); text-decoration: none; }
.footer-grid ul a:hover, .footer-grid ul a[aria-current="page"] { color: var(--orange); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #0B0B0B;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float > svg { width: 30px; height: 30px; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artigo-topo { grid-template-columns: minmax(0, 1fr); }
  .artigo { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 28px; }
  .lateral { position: static; max-height: none; background: var(--surface); border-radius: 14px; padding: 18px 20px; }
  .faixa { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .posts:not(.filtrado) > li:first-child .post-card { display: flex; }
  .posts:not(.filtrado) > li:first-child .tema { margin-top: 6px; }
  .texto { font-size: 1.0625rem; line-height: 1.72; }
  .assinatura .meta { margin-left: 0; width: 100%; }
  .dado { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .dados-linha .dado + .dado { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .passos > li { grid-template-columns: 38px minmax(0, 1fr); }
  .passos > li::before { font-size: 1.6rem; }
  table { font-size: .88rem; }
  th, td { padding: 10px 8px; overflow-wrap: anywhere; }
  td.num, th.num { white-space: normal; }
  td.acao, th.acao { width: 40px; }
  .copiar-dado { width: 40px; }
  .barras li { grid-template-columns: minmax(0, 1fr) 4.4em; }
  .barras li span { grid-column: 1 / -1; }
  .tabela > summary { flex-wrap: wrap; gap: 2px 12px; }
  .tabela > summary small { margin-left: 0; order: 3; width: 100%; }
  .autor { flex-direction: column; }
}
/* Alvos de toque de pelo menos 44 px em tela de toque (com mouse nada muda) */
@media (pointer: coarse) {
  .crumbs a, .fonte a, .tema a, .autor .links a, .post-card h2 a { position: relative; }
  .crumbs a::after, .fonte a::after, .tema a::after, .autor .links a::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%;
  }
  .toc a { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Sem artigo relacionado publicado ainda, a seção não aparece */
.leia:not(:has(li)) { display: none; }
