/* Blog: complementa /styles.css (cores, .faixa, .topo, .logo, .btn e .rodape vêm de lá). Sem JS. */

.blog-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.blog-nav a { color: var(--text); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.blog-nav a:hover, .blog-nav a[aria-current="page"] { color: var(--accent); }
.blog-nav .blog-nav-cta { border: 1px solid var(--border-strong); font-weight: 500; }
.blog-nav .blog-nav-cta:hover { border-color: var(--text); color: var(--text); }
/* Tela estreita: logo com ícone + dois links não cabem numa linha */
.blog-nav a { white-space: nowrap; }
/* O link é inline-flex: o espaço antes do span some, a margem o repõe */
.blog-nav-cta span { margin-left: 0.28em; }
@media (max-width: 420px) { .blog-nav-cta span { display: none; } }

/* Índice */
.indice { padding-top: 56px; padding-bottom: 80px; }
.indice-topo { max-width: 760px; }
.indice-topo .sobre { margin-bottom: 16px; }
.indice-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 14px; color: var(--muted); }
.assuntos { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.assuntos a { border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; padding: 8px 14px; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.assuntos a:hover { border-color: var(--border-strong); }
.assuntos span { color: var(--muted); font-size: 13px; }
.grupo { margin-top: 56px; scroll-margin-top: 16px; }
.grupo h2, .leia h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.grupo-texto { margin-top: 4px; color: var(--muted); font-size: 15px; }
.cartoes { margin-top: 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.cartoes a { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.cartoes a:hover { border-color: var(--text); color: var(--text); }
.cartoes strong { font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.cartoes span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cartoes small { margin-top: auto; padding-top: 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Artigo */
.artigo-faixa { padding-top: 24px; padding-bottom: 80px; }
.trilha { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.trilha a { color: var(--muted); }
.trilha a:hover { color: var(--accent); }
.artigo { max-width: 720px; margin-top: 32px; }
.artigo-topo .sobre { margin-bottom: 12px; color: var(--accent); }
.artigo h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; text-wrap: balance; }
.artigo-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

.sumario { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--border); background: var(--surface); }
.sumario h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.sumario ol { margin-top: 12px; display: grid; gap: 6px; counter-reset: s; font-size: 15px; }
.sumario li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; }
.sumario li::before { content: counter(s, decimal-leading-zero); font-size: 12px; color: var(--muted); padding-top: 3px; }
.sumario a { color: var(--text); text-decoration: none; }
.sumario a:hover { color: var(--accent); text-decoration: underline; }

.texto { margin-top: 32px; font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.texto > * + * { margin-top: 20px; }
.texto h2 { margin-top: 48px; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; scroll-margin-top: 16px; }
.texto h3 { margin-top: 32px; font-size: 1.15rem; font-weight: 600; line-height: 1.3; scroll-margin-top: 16px; }
.texto h2 + *, .texto h3 + * { margin-top: 12px; }
.texto ul, .texto ol { padding-left: 22px; display: grid; gap: 8px; }
.texto ul { list-style: square; }
.texto ol { list-style: decimal; }
.texto li::marker { color: var(--accent); }
.texto strong { font-weight: 600; }
.texto a { text-underline-offset: 3px; }
.texto code { font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; }

.tabela { overflow-x: auto; border: 1px solid var(--border); background: var(--surface); }
.tabela table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tabela th, .tabela td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 120px; }
.tabela th { font-weight: 600; background: var(--surface-2); font-size: 13px; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela td:first-child { font-weight: 500; }

.convite { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }
.convite a { color: inherit; font-weight: 600; }
.texto .convite + * { margin-top: 32px; }

.faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq h2 + details { margin-top: 16px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin-top: 8px; color: var(--muted); }

.fontes { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.texto .fontes h2 { margin-top: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.fontes ul { gap: 4px; }
.fontes a { overflow-wrap: anywhere; }
.fontes p { margin-top: 12px; }

.leia { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }

@media (max-width: 720px) {
  .blog-nav a { padding: 10px 8px; }
  .indice { padding-top: 32px; padding-bottom: 48px; }
  .grupo { margin-top: 40px; }
  .artigo-faixa { padding-bottom: 48px; }
  .artigo { margin-top: 24px; }
  .sumario { padding: 16px; }
  .texto { font-size: 16px; }
  .texto h2 { margin-top: 40px; font-size: 1.3rem; }
  .tabela table { font-size: 14px; }
  .tabela th, .tabela td { padding: 10px 12px; }
  .convite { padding: 16px; }
  .cartoes a { padding: 16px; }
}
