/* ARTIGO (comum, guia "rec-" e análise "fullreview-") · Finanças · Kit C · Crescimento */

/* Barra de leitura ----------------------------------------------------- */
.nx-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: 3px;
	pointer-events: none;
}

.nx-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--nx-accent);
}

/* Topo ----------------------------------------------------------------- */
.nx-art-head {
	padding: 40px 0;
	background: var(--fx-mint);
}

.nx-art-head__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	align-items: center;
	gap: 48px;
}

.nx-art-head__grid.is-single {
	grid-template-columns: minmax(0, 860px);
}

.nx-art-head__main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.nx-art-head__title {
	font-size: 46px;
	font-family: var(--fx-display, inherit);
	font-weight: var(--fx-display-weight, 800);
	line-height: 1.12;
	letter-spacing: var(--fx-display-tracking, -.025em);
	text-wrap: balance;
}

.nx-art-head__lead {
	font-size: 19px;
	line-height: 1.65;
	color: var(--nx-muted);
}

.nx-art-head__media {
	height: 320px;
	overflow: hidden;
	border-radius: var(--fx-radius, 18px);
	box-shadow: 0 20px 40px rgba(6, 30, 60, .10);
}

.nx-art-head__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-size: 14px;
	color: var(--nx-muted);
}

.nx-byline a,
.nx-byline strong {
	color: var(--nx-ink);
	font-weight: 700;
}

.nx-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--nx-muted);
}

.nx-share button,
.nx-share a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: var(--fx-pill, 999px);
	background: transparent;
	color: var(--nx-ink);
	font: 600 14px var(--nx-font);
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow .2s, transform .2s;
}

.nx-share button:hover,
.nx-share a:hover {
	box-shadow: var(--float);
	transform: translateY(-1px);
}

.nx-article .nx-ad {
	margin: 28px auto 4px;
}

/* Texto + lateral ------------------------------------------------------ */
.nx-art-body {
	padding: 40px var(--nx-gutter) 72px;
}

.nx-art-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 760px) 320px;
	justify-content: center;
	align-items: start;
	gap: 64px;
}

.nx-art-body__grid.is-single {
	grid-template-columns: minmax(0, 760px);
}

/* Sem lateral (sumário oculto e sem "mais lidos") e sem foto ao lado: topo no centro, alinhado com o texto. */
.nx-article--solo .nx-art-head__grid.is-single {
	justify-content: center;
}

.nx-article--solo .nx-art-head__grid.is-single .nx-art-head__main {
	align-items: center;
	text-align: center;
}

.nx-article--solo .nx-art-head__grid.is-single .nx-eyebrow {
	align-self: center;
}

.nx-article--solo .nx-art-head__grid.is-single :is(.nx-crumbs, .nx-byline, .nx-share) {
	justify-content: center;
}

.nx-art-main {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.nx-art-disclosure {
	padding: 14px 18px;
	border-left: 3px solid var(--nx-accent);
	background: var(--fx-mint);
	font-size: 14px;
	line-height: 1.55;
	color: var(--nx-muted);
}

.nx-art-notice {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
	border-radius: var(--fx-radius, 14px);
	background: #F4F4F5;
	font-size: 13px;
	line-height: 1.6;
	color: #4A4A4A;
}

.nx-art-notice strong {
	color: #1B1B1B;
}

/* Cartão "Ferramenta grátis" no meio do texto. */
.nx-tool-card {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 36px 0 8px;
	padding: 24px 26px;
	border-radius: var(--fx-radius, 16px);
	background: var(--fx-wash);
	color: var(--nx-ink) !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	line-height: 1.5;
}

.nx-tool-card__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: var(--fx-radius, 14px);
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.nx-tool-card__text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 4px;
	font-size: 15px;
	color: var(--nx-muted);
}

.nx-tool-card__tag {
	font-size: 13px;
	font-weight: 800;
	color: var(--fx-ink);
}

.nx-tool-card strong {
	font-size: 21px;
	font-family: var(--fx-display, inherit);
	font-weight: var(--fx-display-weight, 800);
	color: var(--nx-ink);
}

.nx-tool-card__go {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 800;
	white-space: nowrap;
}

.nx-tool-card + h2 {
	margin-top: 36px;
}

/* Lateral -------------------------------------------------------------- */
.nx-art-side {
	position: sticky;
	top: var(--nx-sticky-top, 24px);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.nx-side-title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--nx-muted);
}

.nx-toc {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 0;
	border-radius: var(--fx-radius, 16px);
	background: var(--fx-mint);
	box-shadow: none;
}

.nx-toc nav {
	display: flex;
	flex-direction: column;
}

.nx-toc a {
	display: block;
	padding: 9px 0 9px 14px;
	border-left: 3px solid var(--nx-line);
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.nx-toc a:hover,
.nx-toc a.is-active {
	border-left-color: var(--nx-accent);
	color: var(--fx-ink);
	font-weight: 700;
}

.nx-side-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nx-side-list .nx-side-title {
	padding-bottom: 6px;
}

.nx-side-list a {
	padding: 11px 0;
	border-top: 1px solid var(--nx-line);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.nx-side-list a:hover {
	text-decoration: underline;
}

/* Leia a seguir -------------------------------------------------------- */
.nx-art-next {
	padding: 56px 0 72px;
	background: var(--nx-soft);
}

.nx-art-next__title {
	margin-bottom: 24px;
	font-size: 30px;
	font-family: var(--fx-display, inherit);
	font-weight: var(--fx-display-weight, 800);
	letter-spacing: var(--fx-display-tracking, -.025em);
}

.nx-art-next__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.nx-mini {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--nx-ink) !important;
	text-decoration: none;
}

.nx-mini__media {
	position: relative;
	display: block;
	height: 180px;
	overflow: hidden;
	border-radius: var(--fx-radius, 14px);
}

.nx-mini__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-mini__title {
	font-size: 20px;
	font-family: var(--fx-display, inherit);
	font-weight: var(--fx-display-weight, 800);
	line-height: 1.25;
	letter-spacing: var(--fx-display-tracking, -.025em);
	text-wrap: balance;
}

.nx-mini:hover .nx-mini__title {
	text-decoration: underline;
}

/* Responsivo ----------------------------------------------------------- */
@media (max-width: 1100px) {
	.nx-art-body__grid {
		grid-template-columns: minmax(0, 760px);
	}

	.nx-art-side {
		display: none;
	}

	.nx-toc-inline {
		display: block;
	}
}

@media (max-width: 1024px) {
	.nx-art-head__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.nx-art-head__title {
		font-size: 38px;
	}

	.nx-art-head__media {
		height: 280px;
	}

	.nx-art-next__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nx-art-head {
		padding: 28px 0 32px;
	}

	.nx-art-head__title {
		font-size: 30px;
	}

	.nx-art-head__lead {
		font-size: 17px;
	}

	.nx-art-head__media {
		height: 210px;
	}

	.nx-art-body {
		padding: 28px var(--nx-gutter) 48px;
	}

	.nx-content {
		font-size: 17px;
	}

	.nx-content h2 {
		margin-top: 36px;
		font-size: 25px;
	}

	.nx-tool-card {
		flex-wrap: wrap;
		gap: 14px;
		padding: 20px;
	}

	.nx-art-next {
		padding: 40px 0 48px;
	}

	.nx-art-next__title {
		font-size: 25px;
	}

	.nx-art-next__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}
