/* Blog: lista (destaque, busca, filtros, cartões) e post (barra de leitura, sumário, tipografia longa). */
.pg-blog main > section, .pg-blog .pt-cabeca { background: var(--bg); color: var(--fg); }

/* ---------- Comuns ---------- */
.post-cat { display: inline-block; font: 700 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: var(--espaco-rotulo); text-transform: uppercase; background: var(--verde); color: var(--roxo); padding: .45em .8em; border-radius: var(--pilula); }

/* ---------- Lista ---------- */
.bl-abertura { padding: clamp(7rem, 15vh, 9rem) 0 clamp(3rem, 7vh, 5rem); }
.bl-abertura__grade { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; }
.bl-abertura h1 { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--roxo); max-width: 14ch; }
.busca { position: relative; display: flex; align-items: center; width: min(380px, 100%); }
.busca svg { position: absolute; left: 1.1rem; width: 20px; color: var(--roxo); pointer-events: none; }
.busca input { width: 100%; font: inherit; font-weight: 600; padding: 1em 1.2em 1em 3.1rem; border-radius: var(--pilula); border: 2px solid rgb(var(--roxo-rgb) / .18); background: var(--branco); color: var(--tinta); }
.busca input:focus { outline: none; border-color: var(--roxo); box-shadow: var(--sombra-foco); }

.destaque { display: grid; grid-template-columns: 1.35fr 1fr; margin-top: clamp(2rem, 4vw, 3.2rem); border-radius: var(--raio); overflow: hidden; background: var(--roxo); color: var(--branco); text-decoration: none; isolation: isolate; }
.destaque__midia { overflow: hidden; aspect-ratio: 16 / 10; }
.destaque__midia img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.destaque:hover .destaque__midia img { scale: 1.05; }
.destaque__texto { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 1rem; padding: clamp(1.4rem, 3.5vw, 3rem); }
.destaque__texto b { font: 700 clamp(1.3rem, .8rem + 1.5vw, 2.1rem)/1.15 var(--f-titulo); }
.destaque__resumo { color: rgb(var(--branco-rgb) / .82); font-size: 1.05rem; }
.destaque small { color: var(--verde); font-weight: 700; }

.bl-lista__cabeca { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtros button { font: 700 var(--t-mini)/1 var(--f-titulo); padding: .8em 1.1em; border-radius: var(--pilula); border: 2px solid rgb(var(--roxo-rgb) / .18); background: none; color: var(--roxo); cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.filtros button:hover { border-color: var(--roxo); }
.filtros button[aria-pressed="true"] { background: var(--roxo); border-color: var(--roxo); color: var(--verde); }

.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 2.4vw, 2.2rem) clamp(1rem, 2vw, 1.6rem); }
.posts--3 { grid-template-columns: repeat(3, 1fr); margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
.post { display: flex; flex-direction: column; align-items: start; gap: .6rem; text-decoration: none; color: var(--tinta); }
.post__midia { width: 100%; aspect-ratio: 16 / 11; border-radius: var(--raio-p); overflow: hidden; background: var(--nevoa); margin-bottom: .3rem; }
.post__midia img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--dur-cena) var(--ease); }
.post:hover .post__midia img, .post:focus-visible .post__midia img { scale: 1.06; }
.post b { font: 700 1.05rem/1.3 var(--f-titulo); color: var(--roxo); }
.post:hover b { text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.post small { color: var(--texto-3); font-weight: 600; }
.bl-vazio { padding: 3rem 0; text-align: center; font-size: 1.1rem; color: var(--texto-2); }
.bl-vazio a { color: var(--roxo); font-weight: 700; }
.bl-nota { margin-top: 2.2rem; color: var(--texto-3); font-size: var(--t-legenda); }

/* ---------- Post ---------- */
.leitura { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: var(--z-flutua); pointer-events: none; }
.leitura i { display: block; height: 100%; background: var(--verde); transform: scaleX(0); transform-origin: 0 50%; }

.pt-cabeca { padding: clamp(7rem, 15vh, 9rem) 0 0; background: linear-gradient(var(--nevoa) 72%, var(--branco) 72%) !important; }
.pt-cabeca__grade { max-width: 900px; }
.pt-trilha { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: 1.2rem; }
.pt-trilha a { color: var(--roxo); }
.pt-cabeca h1 { font-size: clamp(2rem, 1rem + 2.8vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; color: var(--roxo); }
.pt-linha-fina { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); color: var(--texto-2); margin-top: 1.2rem; max-width: 60ch; }
.pt-autor { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; }
.pt-autor img { width: 40px; height: auto; }
.pt-autor span { display: grid; }
.pt-autor b { color: var(--roxo); }
.pt-autor small { color: var(--texto-3); font-weight: 600; }
.pt-capa { margin-top: clamp(2rem, 4vw, 3rem); }
.pt-capa img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--raio); }

.pt-corpo { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.6rem, 5vw, 4rem); }
.pt-lado { position: relative; }
.pt-lado > * { position: sticky; top: 6.5rem; }
.sumario { display: grid; gap: .2rem; border-left: 2px solid var(--nevoa); }
.sumario p, .partilha p { font: 700 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: var(--espaco-rotulo); text-transform: uppercase; color: var(--texto-3); margin: 0 0 .7rem 1rem; }
.sumario a { position: relative; padding: .45rem 0 .45rem 1rem; color: var(--texto-2); font-weight: 600; text-decoration: none; transition: color var(--dur); }
.sumario a::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--roxo); transform: scaleY(0); transition: transform var(--dur-lenta) var(--ease); }
.sumario a:hover { color: var(--roxo); }
.sumario a.is-aqui { color: var(--roxo); }
.sumario a.is-aqui::before { transform: scaleY(1); }
.partilha { display: grid; gap: .5rem; justify-items: start; margin-top: 2rem; }
.partilha p { margin-left: 0; }

.texto { font-size: 1.15rem; line-height: 1.75; color: var(--texto-1); }
.texto > * + * { margin-top: 1.3rem; }
.texto__abre { font-size: 1.3rem; line-height: 1.6; color: var(--tinta); }
.texto h2 { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); color: var(--roxo); margin-top: 2.8rem; scroll-margin-top: 6rem; }
.texto strong { color: var(--tinta); background: linear-gradient(transparent 62%, rgb(var(--verde-rgb) / .55) 62%); }
.citacao { margin: 2.4rem 0; padding: 0 0 0 1.6rem; border-left: 6px solid var(--verde); }
.citacao p { font: 700 clamp(1.3rem, 1rem + 1vw, 1.8rem)/1.3 var(--f-titulo); color: var(--roxo); }
.checks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 2.2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%234c39db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.texto__foto { margin: 2.4rem 0; }
.texto__foto img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--raio-p); }
.texto__foto figcaption { font-size: var(--t-legenda); color: var(--texto-3); margin-top: .6rem; }
.chamada { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap; margin: 2.4rem 0 !important; padding: 1.5rem 1.6rem; border-radius: var(--raio-p); background: var(--roxo); color: var(--branco); font-size: 1.05rem; line-height: 1.5; }
.chamada p { flex: 1 1 280px; }
.chamada b { color: var(--verde); }
.passos-texto { padding: 0; list-style: none; counter-reset: passo; display: grid; gap: .9rem; }
.passos-texto li { counter-increment: passo; position: relative; padding-left: 3rem; }
.passos-texto li::before { content: counter(passo); position: absolute; left: 0; top: .15em; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--roxo); color: var(--verde); font: 700 var(--t-legenda)/1 var(--f-titulo); }
.passos-texto b { color: var(--roxo); }
.texto .provisorio { font-size: var(--t-legenda); color: var(--texto-3); }

.pt-fim { max-width: 1040px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.autor { display: flex; gap: 1.2rem; align-items: center; padding: 1.6rem; border-radius: var(--raio); background: var(--nevoa); max-width: 720px; margin-left: auto; }
.autor img { width: 56px; height: auto; flex-shrink: 0; }
.autor b { color: var(--roxo); font-family: var(--f-titulo); }
.autor p { color: var(--texto-2); margin-top: .3rem; }

@media (max-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .destaque { grid-template-columns: 1fr; }
  .posts, .posts--3 { grid-template-columns: 1fr 1fr; }
  .pt-corpo { grid-template-columns: minmax(0, 1fr); }
  .pt-lado { order: 2; }
  .pt-lado > * { position: static; }
  .sumario { display: none; }
  .autor { margin-left: 0; }
  .pt-capa img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .posts, .posts--3 { grid-template-columns: 1fr; }
  .texto { font-size: 1.08rem; }
}
