/* Blog da Pluzy: mesma linguagem da landing (blocos pastel, notas de post, cursores, seleção). */
.pill-lima { background: var(--lima); color: var(--preto); }
.pill-lima:hover { background: #cfe69a; color: var(--preto); }

/* capa em formato de post: bloco pastel com uma nota de post girada */
.capa { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.capa-post { position: relative; width: 44%; transform: rotate(-4deg); background: var(--branco); }
.capa-post strong { font-size: clamp(15px, 1.6vw, 20px); }
.capa-g { flex: 1 1 380px; min-width: 0; aspect-ratio: auto; min-height: 420px; padding: 24px 0; background: rgba(255, 255, 255, .35); }
.capa-g .capa-post { width: min(50%, 250px); animation: boia1 7s ease-in-out infinite; }
.capa-g .capa-post strong { font-size: clamp(20px, 2.4vw, 30px); }
.capa .cur-ia { top: 64%; left: 50%; }

/* índice */
.blog .hero h1 { font-size: clamp(44px, 5.6vw, 80px); }
.lista-artigos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card-artigo { border: 1px solid var(--linha); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: var(--branco); transition: transform .2s ease, box-shadow .2s ease; }
.card-artigo:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.card-artigo .capa { border-radius: 0; }
.card-texto { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-artigo h2 { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.card-artigo h2 a { text-decoration: none; }
.card-artigo h2 a::after { content: ""; position: absolute; inset: 0; }
.card-artigo { position: relative; }
.card-artigo p { font-size: 16px; line-height: 1.45; }
.card-artigo time { margin-top: auto; color: #595959; }
.card-artigo:has(a:focus-visible) { outline: 3px solid var(--magenta); outline-offset: 2px; }

/* artigo */
.artigo { padding-top: clamp(24px, 4vw, 48px); }
.artigo article { display: flex; flex-direction: column; gap: 40px; }
.artigo-topo { align-items: stretch; }
.artigo-topo .bloco-texto { justify-content: center; }
.trilha { margin: 0; }
.trilha a { color: inherit; }
.artigo h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 340; line-height: 1.05; letter-spacing: -.02em; }
.artigo-data { margin: 0; }
.artigo-corpo { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.resposta { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }
.resposta p { font-size: 20px; line-height: 1.5; font-weight: 400; }
.texto { font-size: 18px; line-height: 1.7; font-weight: 400; }
.texto h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; margin: 48px 0 14px; display: flex; align-items: center; gap: 12px; }
.texto h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--magenta); flex: 0 0 14px; }
.texto h3 { font-size: 22px; font-weight: 700; margin: 28px 0 8px; }
.texto p, .texto ul, .texto ol { margin: 0 0 16px; }
.texto li { margin-bottom: 8px; }
.texto li::marker { font-weight: 700; }
.texto strong { font-weight: 700; }
.texto table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; margin: 8px 0 24px; display: block; overflow-x: auto; border: 1px solid var(--linha); border-radius: 16px; }
.texto th, .texto td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linha-suave); vertical-align: top; }
.texto th { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; background: var(--creme); }
.texto tr:last-child td { border-bottom: 0; }
.faq-artigo { border-radius: 24px; padding: 28px; background: var(--suave); display: flex; flex-direction: column; gap: 4px; }
.faq-artigo h2, .fontes h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.faq-artigo details { border-bottom: 1px solid var(--linha); padding: 14px 0; }
.faq-artigo details:last-child { border-bottom: 0; }
.faq-artigo summary { cursor: pointer; font-size: 18px; font-weight: 480; min-height: 28px; }
.faq-artigo details p { margin-top: 10px; font-size: 17px; line-height: 1.55; }
.chamada { border-radius: 24px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.chamada strong { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.chamada p { font-size: 17px; line-height: 1.5; opacity: .9; }
.fontes ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .capa-g .capa-post { animation: none; } }
.status-exclusao { border-radius: 16px; padding: 18px; background: var(--suave); font-weight: 480; }

/* ===== Redesenho 22/10: leitura do artigo ===== */
/* barra de leitura no topo, na cor de destaque da landing */
.progresso-leitura { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 30; pointer-events: none; }
.progresso-leitura i { display: block; height: 100%; background: var(--magenta); transform-origin: left; transform: scaleX(0); border-radius: 0 4px 4px 0; }

/* sumário: coluna fixa ao lado do texto no computador; caixa compacta antes do texto no celular */
.artigo-leitura { display: flex; flex-direction: column; gap: 32px; }
.sumario { border: 1px solid var(--linha); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; background: var(--branco); }
.sumario .mono { color: #595959; }
.sumario ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: sum; }
.sumario li { counter-increment: sum; }
.sumario a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; font-size: 15px; line-height: 1.35; color: #3d3d3d; transition: background-color .15s ease, color .15s ease; }
.sumario a::before { content: counter(sum, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: #8a8a8a; flex: 0 0 auto; }
.sumario a:hover { background: var(--suave); color: var(--preto); }
.sumario a[aria-current] { background: var(--preto); color: var(--branco); }
.sumario a[aria-current]::before { color: var(--lima); }
.texto h2 { scroll-margin-top: 88px; }

@media (min-width: 1180px) {
  .artigo-leitura { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .artigo-leitura .artigo-corpo { grid-column: 2; grid-row: 1; }
  .sumario { grid-column: 1; grid-row: 1; position: sticky; top: 96px; max-width: 260px; justify-self: end; border: 0; padding: 0; background: transparent; }
  .sumario a { font-size: 14px; }
}

/* leia também */
.leia-tambem { padding-top: clamp(48px, 7vw, 88px); }
.leia-tambem .lista-artigos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* herói do artigo: título palavra por palavra pede menos quebra feia */
.artigo h1 { text-wrap: balance; }
.blog .hero h1 { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .progresso-leitura { display: none; } }

/* celular: capa do artigo menor (o texto vem antes), tabela vira lista de fichas */
@media (max-width: 767px) {
  .capa-g { min-height: 0; flex-basis: auto; padding: 28px 0; border-radius: 20px; }
  .capa-g .capa-post { width: min(46%, 180px); }
  .capa-g .capa-post strong { font-size: 18px; }
  .resposta { padding: 22px; }
  .resposta p { font-size: 18px; }
}
@media (max-width: 640px) {
  .texto table.fichas { display: block; border: 0; border-radius: 0; overflow: visible; }
  .texto table.fichas thead { display: none; }
  .texto table.fichas tbody { display: flex; flex-direction: column; gap: 10px; }
  .texto table.fichas tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; border: 1px solid var(--linha); border-radius: 16px; padding: 14px 16px; }
  .texto table.fichas td { display: contents; }
  .texto table.fichas td::before { content: attr(data-rotulo); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #595959; padding-top: 3px; }
  .texto table.fichas td:first-child { font-weight: 700; }
}
