/* NICHO Trabalho · KIT O · Original */

/* Artigo ----------------------------------------------------------------- */
.nx-progress {
	position: sticky;
	top: 0;
	z-index: 30;
	height: 4px;
	background: var(--nx-line);
}

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

.nx-art-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 48px;
	align-items: start;
}

.nx-art-head {
	padding: 48px 0 40px;
	background: #fff;
}

.nx-art-head__main {
	grid-column: span 8;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nx-art-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nx-art-cat {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--nx-accent);
	color: var(--nx-on-accent) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.nx-art-title {
	font-size: 48px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}

.nx-art-lead {
	font-size: 20px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.nx-art-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 16px;
	border-top: 1px solid var(--nx-line);
}

.nx-art-meta__info {
	font-size: 14px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.nx-art-meta__info a {
	font-weight: 600;
	color: var(--nx-ink);
}

.nx-art-actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nx-art-btn {
	height: 44px;
	padding: 0 18px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 999px;
	background: #fff;
	color: var(--nx-ink);
	font: 600 14px var(--nx-font);
	cursor: pointer;
}

.nx-art-btn:hover,
.nx-art-btn[aria-pressed="true"] {
	border-color: var(--nx-ink);
}

.nx-art-btn[aria-pressed="true"] {
	background: var(--nx-tint-10);
}

.nx-art-btn--dark {
	border-color: var(--nx-ink);
	background: var(--nx-ink);
	color: #fff;
}

.nx-art-body {
	padding: 0 0 72px;
	background: #fff;
}

.nx-art-main {
	grid-column: span 8;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.nx-art-cover {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 16px;
	background: var(--nx-bg);
}

/* A lateral ocupa a altura do texto para o bloco de dentro poder acompanhar a rolagem */
.nx-art-side {
	grid-column: span 4;
	align-self: stretch;
}

/* Sumário + Mais lidos acompanham a rolagem juntos (o sumário sozinho passava por cima de "Mais lidos"). */
.nx-art-side__sticky {
	position: sticky;
	top: var(--nx-sticky-top, 24px);
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Depois do texto */
.nx-art-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.nx-art-tags__label {
	font-size: 14px;
	font-weight: 700;
}

.nx-art-alert {
	display: flex;
	gap: 16px;
	padding: 24px 28px;
	border-radius: 16px;
	background: var(--nx-ink);
	color: #fff;
}

.nx-art-alert svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.nx-art-alert div,
.nx-art-news {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

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

.nx-art-alert span {
	font-size: 16px;
	line-height: 1.6;
	color: #CCCCCC;
}

.nx-art-news {
	gap: 12px;
	padding: 28px;
	border-radius: 16px;
	background: var(--nx-ink);
	color: #fff;
}

.nx-art-news strong {
	font-size: 20px;
}

.nx-art-news > span {
	font-size: 15px;
	line-height: 1.55;
	color: #CCCCCC;
}

.nx-art-news input[type="email"],
.nx-art-news input[type="text"] {
	width: 100%;
	height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	font: 16px var(--nx-font);
}

.nx-art-news input[type="submit"],
.nx-art-news button[type="submit"] {
	height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
	font: 700 15px var(--nx-font);
	cursor: pointer;
}

.nx-art-disclaimer {
	font-size: 13px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.nx-art-next {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nx-art-next__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 16px;
	background: #fff;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}

.nx-art-next__card:hover {
	color: var(--nx-ink);
	box-shadow: var(--float-hover);
	transform: translateY(-3px);
}

.nx-art-next__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--nx-muted);
}

.nx-art-next__card strong {
	font-size: 18px;
	line-height: 1.35;
}

.nx-art-next__more {
	font-size: 15px;
	font-weight: 700;
	color: var(--nx-accent-ink);
}

/* Lateral: mais lidos */
.nx-art-popular {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-art-popular .nx-toc__title {
	margin: 0;
}

.nx-art-popular__item {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.nx-art-popular__media {
	position: relative;
	flex-shrink: 0;
	width: 88px;
	height: 64px;
	overflow: hidden;
	border-radius: 10px;
}

.nx-art-popular__item span {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.nx-art-side .nx-ad {
	align-items: flex-start;
	padding: 0;
	background: transparent;
}

/* Continue lendo */
.nx-art-more {
	padding: 64px 0;
	border-top: 1px solid var(--nx-line);
	background: #fff;
}

.nx-art-more .nx-wrap {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.nx-art-more__title {
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

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

.nx-art-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-art-card__media {
	position: relative;
	height: 200px;
	overflow: hidden;
	border-radius: 16px;
}

.nx-art-card__cat {
	font-size: 13px;
	font-weight: 700;
	color: var(--nx-accent-ink);
}

.nx-art-card__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.nx-art-card__title a {
	text-decoration: none;
}

.nx-art-card__meta {
	font-size: 13px;
	color: var(--nx-muted);
}

@media (max-width: 1180px) {
	/* Responsivo · Artigo --------------------------------------------------- */
	/* Uma coluna; a lateral vai para depois do texto e o sumário sobe para o topo */
	.nx-art-grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

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

	.nx-art-side__sticky {
		position: static;
	}

	.nx-art-title {
		font-size: 40px;
	}
}

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

	.nx-art-title {
		font-size: 32px;
	}

	.nx-art-lead {
		font-size: 18px;
	}

	.nx-art-cover {
		border-radius: 12px;
	}

	.nx-art-alert,
	.nx-art-news {
		padding: 20px;
	}

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

	.nx-art-more__title {
		font-size: 28px;
	}

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

@media (max-width: 560px) {
	.nx-art-title {
		font-size: 28px;
	}

	.nx-art-btn {
		height: 40px;
		padding: 0 14px;
		font-size: 13px;
	}

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

	.nx-art-card__media {
		height: 180px;
	}
}

/* Celular: título menor e menos espaço entre título, anúncio e texto (aparece mais texto na 1ª tela) */
@media (max-width: 640px) {
	.nx-article .nx-art-title {
		font-size: 24px;
		line-height: 1.2;
	}
	.nx-article .nx-art-head {
		gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
	}
	.nx-article :is(.nx-ad, .nx-ad--inline, [data-av-wrapper], div[id$="_wrapper"][align="center"], .code-block, .google-auto-placed) {
		margin-top: 6px !important;
		margin-bottom: 6px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}
