/* =========================================================
   WOIDA — Blog: listagem e páginas de publicação
   Entrou em 20/10/2026, com os 4 conteúdos do cliente.
   Os cards (.post-card) são os mesmos da home e vivem no home.css.
   ========================================================= */

/* ---------------------------------------------------------
   1. TOPO
   Mesmo navy com marca d'água do topo das páginas de área,
   em coluna única porque aqui não há texto de apoio.
   --------------------------------------------------------- */
.post-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 320px;
	padding-block: clamp(3rem, 2rem + 4vw, 5rem);
	background-color: var(--navy-hero);
	background-image: url('../img/ui/marca-dagua.png');
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--white);
}

.post-hero__inner { max-width: 880px; }

.post-hero__rotulo {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}
.post-hero__rotulo .eyebrow { margin: 0; white-space: nowrap; }
.post-hero__rotulo::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(195, 153, 105, 0.55);
}

.post-hero__titulo {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	line-height: 1.18;
	color: var(--gold);
}

.post-hero__area {
	margin-top: 1.5rem;
	font-size: var(--fs-eyebrow);
	color: rgba(255, 255, 255, 0.85);
}
.post-hero__area a {
	color: var(--white);
	border-bottom: 1px solid rgba(195, 153, 105, 0.6);
}
.post-hero__area a:hover { color: var(--gold); }

/* ---------------------------------------------------------
   2. CORPO DA PUBLICAÇÃO
   --------------------------------------------------------- */
.post { background: var(--white); }

.post__corpo,
.post__fontes {
	max-width: 820px;
	margin-inline: auto;
}

.post__corpo {
	font-size: var(--fs-lead);
	color: var(--grey-500);
}
.post__corpo p { margin-bottom: 1.15rem; }
.post__corpo > :last-child { margin-bottom: 0; }
.post__corpo strong { font-weight: 600; color: var(--graphite); }

.post__subtitulo {
	margin: 2.75rem 0 1rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.25;
	color: var(--navy-800);
}
.post__corpo > .post__subtitulo:first-child { margin-top: 0; }

.post__corpo ul {
	margin: 0 0 1.15rem;
	padding-left: 1.35rem;
	list-style: disc;
}
.post__corpo li { margin-bottom: 0.55rem; }
.post__corpo li:last-child { margin-bottom: 0; }
.post__corpo ul ul { margin: 0.55rem 0 0; list-style: circle; }

/* Fontes consultadas — vêm no fim de três dos quatro textos */
.post__fontes {
	margin-top: 3rem;
	padding: 1.5rem 1.75rem;
	background: var(--grey-100);
	border-left: 3px solid var(--gold);
	border-radius: var(--radius);
}
.post__fontes-titulo {
	margin-bottom: 0.75rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-h3);
	color: var(--navy-800);
}
.post__fontes ul {
	padding-left: 1.25rem;
	list-style: disc;
	color: var(--grey-500);
}
.post__fontes li { margin-bottom: 0.35rem; }
.post__fontes li:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   3. LEIA TAMBÉM / LISTAGEM
   --------------------------------------------------------- */
.post-outros { background: var(--grey-100); }

.post-outros__titulo {
	margin-bottom: 2.5rem;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-h2);
	color: var(--navy-800);
}

/* Na listagem são 4 publicações: 2x2 fica inteiro, 3+1 não */
.blog__grid--listagem {
	max-width: 980px;
	margin-inline: auto;
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
	.blog__grid--listagem { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   4. SUMÁRIO LATERAL
   Só existe no WordPress: o site estático não tinha.
   Em telas largas, duas colunas com o sumário fixo à esquerda;
   abaixo de 1024px ele volta a ser um bloco no topo do texto,
   porque coluna de 240px ao lado de texto não cabe no celular.
   --------------------------------------------------------- */
.post__inner--com-sumario {
	display: grid;
	gap: 1.75rem;
	align-items: start;
	justify-content: center;
}

.post__sumario {
	padding: 1.25rem 1.4rem;
	background: var(--grey-100);
	border-radius: var(--radius);
}

.post__sumario-titulo {
	margin: 0 0 0.75rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: var(--fs-eyebrow);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold-dark);
}

.post__sumario-lista {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: sumario;
}
.post__sumario-lista li {
	margin-bottom: 0.6rem;
	counter-increment: sumario;
}
.post__sumario-lista li:last-child { margin-bottom: 0; }

.post__sumario-lista a {
	display: block;
	padding-left: 1.6rem;
	position: relative;
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--grey-500);
	text-decoration: none;
	transition: var(--transition);
}
.post__sumario-lista a::before {
	content: counter(sumario);
	position: absolute;
	left: 0;
	top: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--gold);
}
.post__sumario-lista a:hover,
.post__sumario-lista a:focus-visible { color: var(--navy-800); }

/* A seção em leitura, marcada pelo sumario.js */
.post__sumario-lista a.is-atual {
	font-weight: 600;
	color: var(--navy-800);
}

/* O salto da âncora não pode parar atrás do cabeçalho fixo. */
.post__corpo .post__subtitulo { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

@media (min-width: 1024px) {
	.post__inner--com-sumario {
		grid-template-columns: 240px minmax(0, 820px);
		gap: 3rem;
	}

	.post__sumario {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
		grid-column: 1;
		grid-row: 1;
		max-height: calc(100vh - var(--header-h) - 4rem);
		overflow-y: auto;
	}

	.post__inner--com-sumario .post__corpo,
	.post__inner--com-sumario .post__fontes {
		grid-column: 2;
		margin-inline: 0;
	}
}
