/* ==========================================================================
   ARTIGO DO BLOG — Redesign 2026
   ==========================================================================

   Montado por single.php do tema filho (o tema pai saiu da jogada). Quatro
   blocos: abertura sobre navy, capa em destaque atravessando para o bloco
   claro, texto sobre paper na largura do site com coluna lateral, e "Leia
   também" com o card da listagem.

   Só tokens do sistema. Sem !important.
   ========================================================================== */

.bfd-artigo-wrap {
	width: min( 1140px, 100% - 2 * var( --bf-gutter-desktop ) );
	margin-inline: auto;
}

@media ( max-width: 767px ) {
	.bfd-artigo-wrap {
		width: calc( 100% - 2 * var( --bf-gutter-mobile ) );
	}
}

/* ------------------------------------------------------------- abertura -- */

.bfd-artigo-abertura {
	padding: clamp( 56px, 8vw, 96px ) 0 clamp( 40px, 6vw, 72px );
	background: var( --bf-ink );
}

.bfd-artigo-abertura .bfd-trilha {
	margin-bottom: var( --bf-space-sm );
}

.bfd-artigo-assunto {
	margin: 0 0 var( --bf-space-sm );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-variation-settings: "wdth" var( --bf-wdth-eyebrow );
}

.bfd-artigo-assunto a {
	display: inline-flex;
	align-items: center;
	gap: var( --bf-space-xs );
	color: var( --bf-sky );
	text-decoration: none;
}

.bfd-artigo-assunto a::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.bfd-artigo-titulo {
	margin: 0 0 var( --bf-space-sm );
	max-width: 22ch;
	color: var( --bf-white );
	font-size: clamp( 2rem, 4.2vw, 3.5rem );
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-variation-settings: "wdth" var( --bf-wdth-h2 );
	text-wrap: balance;
}

.bfd-artigo-ficha {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var( --bf-space-2xs ) var( --bf-space-xs );
	margin: 0;
	color: var( --bf-mist );
	font-size: 0.9375rem;
}

/* ----------------------------------------------------------------- capa -- */

/* A capa fica metade sobre o navy, metade sobre o paper: o fundo do bloco é
   dividido por um gradiente duro e a figura atravessa a emenda. */
.bfd-artigo-capa {
	background: linear-gradient( 180deg, var( --bf-ink ) 0%, var( --bf-ink ) 50%, var( --bf-paper ) 50%, var( --bf-paper ) 100% );
}

.bfd-artigo-capa figure {
	margin: 0;
}

.bfd-artigo-capa img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: var( --bf-radius-md );
	border: 1px solid var( --bf-line );
	box-shadow: 0 24px 60px rgba( 6, 11, 22, 0.35 );
}

.bfd-artigo-capa figcaption {
	margin-top: var( --bf-space-xs );
	font-size: 0.8125rem;
	color: var( --bf-paper-muted );
}

@media ( max-width: 767px ) {
	.bfd-artigo-capa img {
		aspect-ratio: 16 / 10;
	}
}

/* ---------------------------------------------------------------- corpo -- */

.bfd-artigo-corpo {
	padding: clamp( 40px, 6vw, 72px ) 0 clamp( 64px, 8vw, 104px );
	background: var( --bf-paper );
	color: var( --bf-paper-ink );
}

.bfd-artigo-grade {
	display: grid;
	grid-template-columns: minmax( 0, 8fr ) minmax( 0, 4fr );
	gap: clamp( 40px, 6vw, 96px );
	align-items: start;
}

@media ( max-width: 900px ) {
	.bfd-artigo-grade {
		grid-template-columns: 1fr;
		gap: var( --bf-space-lg );
	}
}

/* Texto: a coluna de 8/12 do container dá cerca de 740px; 18px mantém a
   medida de leitura sem apertar a página. */
.bfd-artigo-texto {
	min-width: 0;
	font-size: 1.125rem;
	line-height: 1.7;
	color: var( --bf-paper-ink );
}

.bfd-artigo-texto > p,
.bfd-artigo-texto > ul,
.bfd-artigo-texto > ol,
.bfd-artigo-texto > blockquote,
.bfd-artigo-texto > figure {
	margin-block: 0 var( --bf-space-md );
	max-width: none;
}

.bfd-artigo-texto > p:first-child {
	font-size: 1.3125rem;
	font-weight: 300;
	line-height: 1.5;
}

.bfd-artigo-texto h2,
.bfd-artigo-texto h3,
.bfd-artigo-texto h4 {
	margin-block: var( --bf-space-xl ) var( --bf-space-sm );
	color: var( --bf-paper-ink );
	line-height: 1.2;
	text-wrap: balance;
}

.bfd-artigo-texto h2 {
	font-size: clamp( 1.5rem, 3vw, 2rem );
	font-weight: 600;
	letter-spacing: -0.015em;
}

.bfd-artigo-texto h3 {
	font-size: clamp( 1.125rem, 2.5vw, 1.375rem );
}

.bfd-artigo-texto a {
	color: var( --bf-electric-deep );
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

.bfd-artigo-texto a:hover {
	color: var( --bf-paper-ink );
}

.bfd-artigo-texto img {
	height: auto;
	border-radius: var( --bf-radius-md );
}

.bfd-artigo-texto blockquote {
	padding-inline-start: var( --bf-space-md );
	border-inline-start: 2px solid var( --bf-electric );
	color: var( --bf-paper-ink );
	font-size: 1.25rem;
	font-weight: 500;
	font-style: normal;
}

.bfd-artigo-texto li {
	margin-block-end: var( --bf-space-2xs );
}

.bfd-artigo-texto strong {
	font-weight: 600;
}

.bfd-artigo-texto code {
	padding: 0.1em 0.35em;
	border-radius: var( --bf-radius-sm );
	background: color-mix( in srgb, var( --bf-paper-ink ) 8%, transparent );
	font-size: 0.9em;
}

.bfd-artigo-tags {
	margin-top: var( --bf-space-lg );
	font-size: 0.9375rem;
	color: var( --bf-paper-muted );
}

/* -------------------------------------------------------------- lateral -- */

.bfd-artigo-lateral {
	position: sticky;
	top: 96px;
	display: grid;
	gap: var( --bf-space-md );
}

@media ( max-width: 900px ) {
	.bfd-artigo-lateral {
		position: static;
	}
}

.bfd-artigo-bloco {
	padding-top: var( --bf-space-sm );
	border-top: 1px solid var( --bf-paper-line );
}

.bfd-artigo-rotulo {
	margin: 0 0 var( --bf-space-xs );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --bf-paper-muted );
}

.bfd-artigo-rotulo--sky {
	color: var( --bf-sky );
	margin-bottom: var( --bf-space-md );
}

.bfd-artigo-redes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var( --bf-space-2xs );
}

.bfd-artigo-redes a,
.bfd-artigo-redes .bfd-artigo-copiar {
	display: inline-flex;
	align-items: center;
	gap: var( --bf-space-2xs );
	height: 40px;
	padding: 0 14px;
	border: 1px solid var( --bf-paper-line );
	border-radius: var( --bf-radius-xs );
	background: transparent;
	color: var( --bf-paper-ink );
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.bfd-artigo-redes a:hover,
.bfd-artigo-redes .bfd-artigo-copiar:hover,
.bfd-artigo-redes a:focus-visible,
.bfd-artigo-redes .bfd-artigo-copiar:focus-visible {
	border-color: var( --bf-electric );
	color: var( --bf-electric-deep );
	background: transparent;
}

.bfd-artigo-redes svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.bfd-artigo-assuntos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var( --bf-space-2xs );
}

.bfd-artigo-assuntos a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 1px 14px 0;
	border: 1px solid var( --bf-paper-line );
	border-radius: var( --bf-radius-pill );
	color: var( --bf-paper-ink );
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s;
}

.bfd-artigo-assuntos a:hover {
	border-color: var( --bf-electric );
}

.bfd-artigo-convite p:not( .bfd-artigo-rotulo ) {
	margin: 0 0 var( --bf-space-sm );
	font-size: 0.9375rem;
	color: var( --bf-paper-muted );
	max-width: 30ch;
}

/* O mesmo botão do site, sobre paper: navy cheio, electric no hover. */
.bfd-artigo-convite .bfd-botao {
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 1px 22px 0;
	border-radius: var( --bf-radius-xs );
	background: var( --bf-paper-ink );
	color: var( --bf-white );
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s;
}

.bfd-artigo-convite .bfd-botao:hover {
	background: var( --bf-electric-deep );
	color: var( --bf-white );
}

/* ------------------------------------------------------------ leia mais -- */

.bfd-artigo-mais {
	padding: clamp( 56px, 7.5vw, 96px ) 0;
	background: var( --bf-ink );
}

@media ( prefers-reduced-motion: reduce ) {
	.bfd-artigo-redes a,
	.bfd-artigo-redes .bfd-artigo-copiar,
	.bfd-artigo-assuntos a,
	.bfd-artigo-convite .bfd-botao {
		transition: none;
	}
}
