/* Blog (ranielreis.com/blog): página do conteúdo e lista. Usa as cores e fontes do inicio.css. */
.pg-blog { background: var(--noite); }
.pg-blog main { display: block; }

/* ---------- conteúdo: capa no azul-escuro, fundindo com o título; corpo na folha clara */
.post-capa { position: relative; margin-top: calc(-1 * (var(--head) + var(--top))); padding-bottom: clamp(36px, 6vh, 64px); }
.post-banner { position: relative; height: min(64svh, 620px); min-height: 280px; overflow: hidden; background: var(--noite-2); }
.post-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* degradê no pé da imagem: ela some no fundo e o título entra por cima */
.post-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 22, .55) 0%, rgba(12, 14, 22, 0) 22%, rgba(12, 14, 22, 0) 46%, rgba(12, 14, 22, .72) 76%, var(--noite) 100%); pointer-events: none; }
.post-cab { position: relative; z-index: 1; max-width: 760px; margin: calc(-1 * clamp(70px, 12vh, 130px)) auto 0; padding: 0 var(--gut-r) 0 var(--gut); display: grid; justify-items: center; text-align: center; gap: 16px; }
.post-capa.sem-capa .post-banner { display: none; }
.post-capa.sem-capa .post-cab { margin-top: 0; padding-top: calc(var(--head) + var(--top) + clamp(40px, 9vh, 96px)); }
.post-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: var(--t-xs); font-weight: 500; color: var(--ceu);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.post-titulo { margin: 0; font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; color: var(--branca); }
.post-desc { margin: 0; max-width: 56ch; font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem); line-height: 1.55; color: rgba(218, 222, 235, .78); text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 6px; font-size: var(--t-s); color: rgba(218, 222, 235, .7); }
.post-autor { width: 34px; height: 30px; object-fit: contain; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.post-quem { color: var(--branca); font-weight: 500; }
.post-ponto { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.post-folha { position: relative; z-index: 1; background: #F3F5FA; color: var(--tinta); border-radius: 30px 30px 0 0; padding: clamp(40px, 7vh, 72px) var(--gut-r) clamp(64px, 10vh, 120px) var(--gut); }
.post-corpo { max-width: 680px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; color: #2A3046; overflow-wrap: break-word; }
.post-corpo > * + * { margin-top: 1.1em; }
.post-corpo.justificado p, .post-corpo.justificado li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
/* no editor, o texto recém-digitado ou colado ainda não virou <p> (fica solto ou em <div>): justifica do mesmo jeito */
.ed-corpo.justificado, .ed-corpo.justificado > div { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.ed-corpo.justificado > :is(h2, h3, figure, blockquote) { text-align: left; }
.post-corpo h2 { margin-top: 1.9em; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.15; letter-spacing: -.015em; color: var(--tinta); }
.post-corpo h3 { margin-top: 1.6em; font-size: 1.25rem; line-height: 1.25; color: var(--tinta); }
.post-corpo strong { color: var(--tinta); }
.post-corpo a { color: #2447C9; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-corpo ul, .post-corpo ol { padding-left: 1.3em; }
.post-corpo li + li { margin-top: .35em; }
.post-corpo blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--play); color: #4A5170; font-size: 1.125rem; }
.post-corpo code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(11, 22, 56, .07); }
.post-corpo hr { border: 0; height: 1px; background: rgba(11, 22, 56, .12); margin: 2.2em 0; }
.post-corpo figure { margin: 1.8em 0; }
.post-corpo figure img { display: block; width: 100%; height: auto; border-radius: 18px; background: #E4E8F1; }
.post-corpo figcaption { margin-top: 10px; font-size: var(--t-s); color: #6B7290; text-align: center; }
.post-volta { max-width: 680px; margin: clamp(48px, 8vh, 80px) auto 0; padding-top: 24px; border-top: 1px solid rgba(11, 22, 56, .1); }
.post-volta a { color: var(--tinta); font-weight: 500; text-decoration: none; }
.post-volta a::after { content: " →"; color: var(--play); }

/* ---------- lista (/blog/) */
.blog-cab { max-width: 1180px; margin: 0 auto; padding: calc(clamp(28px, 6vh, 64px)) var(--gut-r) 24px var(--gut); }
.blog-cab h1 { margin: 0; font-size: var(--t-titulo); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.blog-cab p { margin: 16px 0 0; max-width: 60ch; color: rgba(207, 219, 255, .84); font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem); line-height: 1.65; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.blog-dest-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut-r) clamp(48px, 8vh, 88px) var(--gut); }
.blog-destaque { position: relative; display: block; border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--branca); background: var(--noite-2); isolation: isolate; }
.blog-destaque .cp-img { display: block; aspect-ratio: 16 / 9; }
.blog-destaque .cp-img img, .blog-destaque .cp-sem { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.blog-destaque:hover .cp-img img { transform: scale(1.02); }
.blog-destaque .cp-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 22, 0) 35%, rgba(12, 14, 22, .92) 100%); }
.blog-destaque .cp-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 4vw, 44px); display: grid; gap: 10px; justify-items: start; }
.blog-destaque .cp-titulo { font-size: clamp(1.625rem, 1rem + 2.4vw, 2.75rem); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.blog-destaque .cp-desc { max-width: 60ch; color: rgba(218, 222, 235, .8); }
.blog-destaque .cp-meta { font-size: var(--t-xs); color: rgba(218, 222, 235, .66); }
.cp-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: var(--t-xs); font-weight: 500; color: var(--ceu); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.cp-sem { display: block; width: 100%; height: 100%; background: var(--noite-2); position: relative; }
.cp-sem::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 32px; margin: -16px 0 0 -12px; background: var(--play); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: .9; }

.blog-folha { background: #F3F5FA; color: var(--tinta); border-radius: 30px 30px 0 0; padding: clamp(44px, 7vh, 80px) var(--gut-r) clamp(72px, 12vh, 140px) var(--gut); }
.blog-grade { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 44px) clamp(16px, 2.4vw, 28px); }
.cartao-post { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--tinta); }
.cartao-post .cp-img { display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #E4E8F1; box-shadow: 0 18px 40px -28px rgba(11, 22, 56, .45); }
.cartao-post .cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.cartao-post:hover .cp-img img { transform: scale(1.03); }
.cartao-post .cp-txt { display: grid; gap: 6px; justify-items: start; }
.cartao-post .cp-tag { color: #2447C9; background: rgba(36, 71, 201, .08); box-shadow: none; margin-top: 4px; }
.cartao-post .cp-titulo { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.cartao-post .cp-desc { font-size: var(--t-s); line-height: 1.55; color: var(--muted-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cartao-post .cp-meta { font-size: var(--t-xs); color: var(--muted-light); }
.blog-nada, .blog-vazio { max-width: 1180px; margin: 0 auto; padding: 24px var(--gut-r) 80px var(--gut); color: var(--muted-night); }
.blog-folha .blog-vazio { color: var(--muted-light); padding: 0; }
.esconde { display: none !important; }
@media (max-width: 960px) { .blog-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .post-banner { height: 52svh; min-height: 240px; }
  .post-folha, .blog-folha { border-radius: 24px 24px 0 0; }
  .post-corpo { font-size: 1.03rem; }
  .blog-grade { grid-template-columns: minmax(0, 1fr); }
  .blog-destaque { border-radius: 22px; }
  .blog-destaque .cp-img { aspect-ratio: 4 / 5; }
}
