/* NICHO Blog · Kit D · Moderno: base de todas as telas (topo, rodapé, títulos, botões, cards, trilha, filtros, anúncios e paginação).
   Visual rústico: papel creme com grão, Fraunces nos títulos, Geist no texto e Geist Mono nos selos; madeira escura nos botões e no
   rodapé (com a borda rasgada), papel kraft nos selos e polaroides nos cards; a cor do site misturada com marrom. Mesmas classes do
   Kit O; o que é só do Moderno fica no fim (e a camada "RÚSTICO" depois dele). */

:root {
	--nx-ink: #2E2419;
	--nx-text: #2E2419;
	--nx-muted: #7A6650;
	--nx-line: #E4D8C4;
	--nx-line-forte: #BCA98A;
	--nx-bg: #F3ECDF;
	--nx-white: #FFFFFF;
	--nx-dark: #3A2B1F;
	--nx-cinza: #EBE1CF; /* caixas: papel um pouco mais escuro */
	--nx-img: #DCC7A4; /* lugar da imagem: kraft */
	--nx-dark-line: #444444;
	--nx-dark-muted: #CCCCCC;
	/* Texto na cor do site, escurecida para ler bem no branco (sobretítulos, "Ver mais", números). */
	--nx-tinta: color-mix(in oklab, var(--nx-accent) 62%, #3A2B1F);
	--nx-tint: color-mix(in oklab, var(--nx-accent) 8%, #F3ECDF);
	--nx-font: Geist, Arial, sans-serif;
	--nx-font-mono: 'Geist Mono', Menlo, monospace;
	--nx-font-serif: Fraunces, Georgia, 'Times New Roman', serif;
	/* Rústico: madeira, papel kraft e o grão do papel (ruído em SVG, bem fraco) */
	--nx-madeira: #3A2B1F;
	--nx-papel: #F3ECDF;
	--nx-kraft: #DCC7A4;
	--nx-kraft-escuro: #C9AF86;
	--nx-cartao: #FFFDF8;
	--nx-grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .08 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	--nx-veios: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px, rgba(0, 0, 0, 0.05) 9px 10px, transparent 10px 23px);

	/* Variáveis das ferramentas de Finanças e Trabalho (o CSS delas vem desses nichos): as mesmas dos kits Original deles. */
	--float: 0 1px 2px rgba(12, 32, 51, .04), 0 10px 30px rgba(12, 32, 51, .08);
	--float-hover: 0 2px 4px rgba(12, 32, 51, .05), 0 20px 44px rgba(12, 32, 51, .13);
	--float-sm: 0 1px 2px rgba(12, 32, 51, .05), 0 4px 12px rgba(12, 32, 51, .07);
	--nx-soft: #EBE1CF;
	--nx-field: #999999;
	--nx-line-strong: #E4D8C4;
	--nx-tint-8: color-mix(in oklab, var(--nx-accent) 8%, #fff);
	--nx-tint-10: color-mix(in oklab, var(--nx-accent) 10%, #fff);
	--nx-tint-12: color-mix(in oklab, var(--nx-accent) 12%, #fff);
	--nx-tint-14: color-mix(in oklab, var(--nx-accent) 14%, #fff);
	--fx-display: Fraunces, Georgia, 'Times New Roman', serif;
	--fx-display-weight: 700;
	--fx-display-tracking: -.01em;
	--fx-radius: 16px;
	--fx-gray: #999999;
	--fx-border: #E4D8C4;
	--fx-ink: var(--nx-tinta);
	--fx-tint-8: var(--nx-tint-8);
	--fx-tint-10: var(--nx-tint-10);
	--fx-tint-12: var(--nx-tint-12);
	--fx-tint-14: var(--nx-tint-14);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--nx-bg);
	color: var(--nx-text);
	font-family: var(--nx-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nx-ink);
}

a:hover {
	color: var(--nx-tinta);
}

.nx-wrap {
	width: 100%;
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 24px;
}

.nx-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nx-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--nx-ink);
	color: #FFFFFF;
	font-weight: 700;
}

.nx-skip:focus {
	left: 8px;
}

/* ---------- Títulos e textos ---------- */

.nx-eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nx-tinta);
}

.nx-eyebrow--claro {
	color: #999999;
}

.nx-h2 {
	margin: 0;
	font-size: 44px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nx-h2--sm {
	font-size: 30px;
}

.nx-side-title {
	display: block;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nx-ink);
}

/* ---------- Botões, campos e busca ---------- */

.nx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--nx-accent);
	color: var(--nx-on-accent, #1B1B1B);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}

.nx-btn:hover {
	background: var(--nx-accent-hover);
	color: var(--nx-on-accent-hover, #1B1B1B);
}

.nx-btn--lg {
	height: 56px;
	padding: 0 28px;
	font-size: 16px;
}

.nx-btn--linha {
	border: 1.5px solid var(--nx-ink);
	background: transparent;
	color: var(--nx-ink);
	font-weight: 600;
}

.nx-btn--linha:hover {
	background: var(--nx-ink);
	color: #FFFFFF;
}

.nx-btn--branco {
	background: #FFFFFF;
	color: var(--nx-ink);
}

.nx-btn--branco:hover {
	background: var(--nx-accent);
	color: var(--nx-on-accent, #1B1B1B);
}

.nx-btn--linha-clara {
	border: 1.5px solid #FFFFFF;
	background: transparent;
	color: #FFFFFF;
	font-weight: 600;
}

.nx-btn--linha-clara:hover {
	background: #FFFFFF;
	color: var(--nx-ink);
}

.nx-botoes {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nx-input {
	width: 100%;
	height: 56px;
	padding: 0 20px;
	border: 1.5px solid var(--nx-line-forte);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--nx-ink);
	font-family: inherit;
	font-size: 16px;
}

.nx-input:focus {
	outline: none;
	border-color: var(--nx-ink);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--nx-accent) 35%, transparent);
}

.nx-busca {
	display: flex;
	gap: 8px;
}

.nx-busca .nx-input {
	flex: 1;
	min-width: 0;
}

.nx-busca .nx-btn {
	height: 56px;
	padding: 0 28px;
	font-size: 16px;
}

.nx-sublinha {
	align-self: flex-start;
	padding: 8px 0;
	font-size: 16px;
	font-weight: 700;
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-color: var(--nx-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.nx-sublinha:hover {
	color: var(--nx-accent);
}

/* ---------- Cabeçalho ---------- */

.nx-header {
	position: relative;
	z-index: 20;
	background: var(--nx-header-bg, #FFFFFF);
	border-bottom: 1px solid var(--nx-line);
	color: var(--nx-header-ink, var(--nx-ink));
}

.nx-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: 1248px;
	height: 84px;
	margin: 0 auto;
	padding: 0 24px;
}

.nx-logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	flex-shrink: 0;
	color: inherit;
	text-decoration: none;
}

.nx-logo:hover {
	color: inherit;
}

.nx-logo__name {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	white-space: nowrap;
}

.nx-logo--img img {
	display: block;
	width: auto;
	max-height: 60px;
}

/* Definições > MENU > Texto abaixo da logo (o alinhamento com a imagem e a cor em fundo escuro vêm do script do tema). */
.nx-logo-by {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	opacity: 0.72;
	white-space: nowrap;
}

.nx-logo-by .nx-logo-by__pre {
	font-weight: 400;
}

.nx-footer .nx-logo-by {
	color: var(--nx-footer-ink, inherit);
}

.nx-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
	font-size: 15px;
	font-weight: 600;
}

.nx-nav a {
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.nx-nav a:hover,
.nx-nav a[aria-current="page"] {
	border-bottom-color: var(--nx-header-accent, var(--nx-accent));
	color: inherit;
}

.nx-header__acoes {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nx-header__lupa {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 22px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nx-header__lupa:hover,
.nx-header__lupa[aria-expanded="true"] {
	border-color: currentColor;
}

.nx-header__busca {
	display: none;
	padding: 16px 24px 20px;
	border-top: 1px solid var(--nx-line);
	background: var(--nx-header-bg, #FFFFFF);
}

.nx-header__busca.is-open {
	display: block;
}

.nx-header__busca .nx-busca {
	max-width: 720px;
	margin: 0 auto;
}

/* Definições > CORES > Cor do topo: linhas na cor do texto do topo, para não sumirem em fundo escuro. */
.nx-header,
.nx-header__busca {
	border-color: color-mix(in srgb, var(--nx-header-ink, var(--nx-ink)) 12%, transparent);
}

.nx-header .nx-nav a:hover,
.nx-header .nx-nav a[aria-current="page"] {
	border-bottom-color: var(--nx-header-accent, var(--nx-accent));
}

/* ---------- Trilha, topo das páginas e filtros ---------- */

.nx-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: var(--nx-muted);
}

.nx-crumbs a {
	color: var(--nx-muted);
}

.nx-crumbs [aria-current="page"] {
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nx-page-head {
	padding: 48px 0 40px;
	background: transparent;
	border-bottom: 1px solid var(--nx-line);
}

.nx-page-head .nx-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-page-head__title {
	margin: 0;
	font-size: 56px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nx-page-head__text {
	margin: 0;
	max-width: 760px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.nx-page-head__busca {
	max-width: 640px;
}

/* Topo das ferramentas de Trabalho e da página Vagas (telas que vêm do nicho Trabalho): o mesmo desenho do topo das páginas. */
.nx-cat-head {
	padding: 48px 0 40px;
	background: transparent;
	border-bottom: 1px solid var(--nx-line);
}

.nx-cat-head__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nx-cat-head__title {
	margin: 0;
	font-size: 56px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nx-cat-head__text {
	margin: 0;
	max-width: 760px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--nx-muted);
}

/* Campo escondido contra robôs dos formulários (contato e "Informe seu salário"). */
.nx-form__trap {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 8px;
}

.nx-chip {
	padding: 10px 18px;
	border: 1px solid var(--nx-line-forte);
	border-radius: 999px;
	color: var(--nx-ink);
	font-size: 15px;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}

.nx-chip:hover {
	border-color: var(--nx-ink);
	color: var(--nx-ink);
}

.nx-chip.is-active {
	border-color: var(--nx-ink);
	background: var(--nx-ink);
	color: #FFFFFF;
	font-weight: 600;
}

/* ---------- Imagens (foto do post ou a arte do layout) ---------- */

.nx-thumb,
.nx-foto {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 16px;
	background: color-mix(in oklab, var(--nx-accent) 14%, #FFFFFF);
}

.nx-thumb__img,
.nx-arte {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-legenda {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--nx-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

/* ---------- Cards ---------- */

.nx-grid {
	display: grid;
	gap: 32px;
}

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

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

.nx-card__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
}

.nx-card__title a {
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-card__title a:hover {
	color: var(--nx-tinta);
}

/* ---------- Seções ---------- */

.nx-o-sec {
	padding: 72px 0;
}

/* Troca de fundo (branco > cinza ou cinza > branco): cada lado com meio respiro, para não somar um vão grande vazio. */
.nx-o-sec--branca + .nx-o-sec:not(.nx-o-sec--branca):not(.nx-o-sec--sem-topo),
.nx-o-sec:not(.nx-o-sec--branca) + .nx-o-sec--branca:not(.nx-o-sec--sem-topo) {
	padding-top: 48px;
}

.nx-o-sec--branca:not(.nx-o-sec--sem-base):has(+ .nx-o-sec:not(.nx-o-sec--branca)),
.nx-o-sec:not(.nx-o-sec--branca):not(.nx-o-sec--sem-base):has(+ .nx-o-sec--branca) {
	padding-bottom: 48px;
}

.nx-o-sec--sem-topo {
	padding-top: 0;
}

.nx-o-sec--sem-base {
	padding-bottom: 0;
}

.nx-o-sec--curta {
	padding: 48px 0 72px;
}

.nx-o-sec--branca {
	background: transparent;
}

.nx-o-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

/* ---------- Anúncios ---------- */

.nx-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin: 32px auto;
	overflow: hidden;
}

.nx-ad__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nx-muted);
}

/* ---------- Paginação ---------- */

.nx-paginas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 40px;
	font-size: 15px;
}

.nx-paginas .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--nx-ink);
	font-weight: 600;
	text-decoration: none;
}

.nx-paginas a.page-numbers:hover {
	border-color: var(--nx-ink);
}

.nx-paginas .page-numbers.current {
	border-color: var(--nx-accent);
	background: var(--nx-accent);
	color: var(--nx-on-accent, #1B1B1B);
	font-weight: 700;
}

.nx-paginas .page-numbers.dots {
	border: 0;
	background: none;
	color: var(--nx-muted);
}

/* ---------- Rodapé ---------- */

.nx-footer {
	background: var(--nx-footer-bg, var(--nx-dark));
	color: var(--nx-dark-muted);
}

.nx-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 36px;
	max-width: 1248px;
	margin: 0 auto;
	padding: 52px 24px 30px;
}

.nx-footer__top {
	display: grid;
	grid-template-columns: 4fr 3fr 3fr 2fr;
	gap: 24px;
}

.nx-logo--footer {
	color: #FFFFFF;
}

.nx-logo--footer .nx-logo__name {
	font-size: 28px;
}

.nx-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid var(--nx-dark-line);
	font-size: 13px;
	line-height: 1.6;
	color: #999999;
}

.nx-footer__copy {
	margin: 0;
	color: var(--nx-dark-muted);
}

.nx-footer__copy a {
	color: #FFFFFF;
}

/* Celular: a logo do rodapé do celular (.nx-mrodape, utils/niches/niches.php) no centro. */
@media (max-width: 640px) {
	.nx-footer .nx-logo {
		align-items: center;
		margin: 0 auto;
	}
}

/* ---------- Telas médias e celular ---------- */

@media (max-width: 1100px) {
	.nx-nav {
		gap: 18px;
		font-size: 14px;
	}
}

@media (max-width: 960px) {
	.nx-logo__name {
		font-size: 22px;
	}

	.nx-h2 {
		font-size: 34px;
	}

	.nx-page-head__title,
	.nx-cat-head__title {
		font-size: 42px;
	}

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

	.nx-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 40px;
	}

	.nx-o-sec {
		padding: 48px 0;
	}

	.nx-o-sec--sem-topo {
		padding-top: 0;
	}

	.nx-o-sec--sem-base {
		padding-bottom: 0;
	}
}

@media (max-width: 640px) {
	.nx-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.nx-h2 {
		font-size: 28px;
	}

	.nx-h2--sm {
		font-size: 24px;
	}

	.nx-page-head {
		padding: 32px 0 28px;
	}

	.nx-page-head__title,
	.nx-cat-head__title {
		font-size: 34px;
	}

	.nx-page-head__text {
		font-size: 17px;
	}

	.nx-o-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

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

	/* Celular: campo em cima e botão embaixo, os dois na largura toda.
	   Em coluna, o "flex: 1" do campo achatava a altura dele; aqui ele fica com a altura própria. */
	.nx-busca {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.nx-busca .nx-input {
		flex: none;
		width: 100%;
		height: 52px;
	}

	.nx-busca .nx-btn {
		width: 100%;
		height: 52px;
		padding: 0 20px;
		justify-content: center;
		text-align: center;
	}

	/* Topo das páginas (categoria, busca, 404) no celular: trilha, título, texto, busca e filtros no centro. */
	.nx-page-head .nx-wrap {
		align-items: center;
		text-align: center;
	}

	.nx-page-head .nx-crumbs,
	.nx-page-head .nx-chips {
		justify-content: center;
	}

	.nx-page-head__busca {
		width: 100%;
	}

	.nx-o-sec {
		padding: 48px 0;
	}

	.nx-o-sec--sem-topo {
		padding-top: 0;
	}

	.nx-o-sec--sem-base {
		padding-bottom: 0;
	}

	.nx-chip {
		padding: 8px 14px;
		font-size: 14px;
	}
}

/* ---------- Seletor (<select>) com lista própria (shared/assets/js/comum.js) ---------- */

.nx-select {
	position: relative;
	display: block;
	width: 100%;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.nx-select__nativo {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	color: transparent !important;
	pointer-events: none;
}

.nx-select__btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 0 16px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--nx-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.nx-select__btn::after {
	content: '';
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.nx-select.is-open .nx-select__btn::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.nx-select__btn:focus-visible {
	outline: 2px solid var(--nx-ink);
	outline-offset: 2px;
}

.nx-select__lista {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	display: none;
	max-height: 280px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border-radius: 12px;
	background: var(--nx-surface, #FFFFFF);
	box-shadow: 0 18px 40px rgba(27, 27, 27, 0.16);
}

.nx-select.is-open .nx-select__lista {
	display: block;
}

.nx-select.is-open {
	z-index: 100;
}

form:has(.nx-select.is-open) {
	position: relative;
	z-index: 100;
}

.nx-select__lista li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.nx-select__lista li.is-active {
	background: color-mix(in oklab, var(--nx-accent) 12%, var(--nx-surface, #FFFFFF));
}

.nx-select__lista li[aria-selected="true"] {
	color: var(--nx-tinta);
	font-weight: 700;
}

.nx-select__lista li[aria-selected="true"]::after {
	content: '';
	width: 5px;
	height: 10px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

/* ---------- Busca: sugestões de artigos enquanto digita (shared/assets/js/comum.js) ---------- */

.nx-suggest-host {
	position: relative;
}

.nx-suggest {
	position: absolute;
	z-index: 60;
	display: flex;
	flex-direction: column;
	max-height: min(420px, 70vh);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--nx-line);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.25);
	text-align: left;
}

.nx-suggest[hidden] {
	display: none;
}

.nx-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-suggest__item:hover,
.nx-suggest__item.is-active,
.nx-suggest__all:hover,
.nx-suggest__all.is-active {
	background: var(--nx-tint);
	color: var(--nx-ink);
}

.nx-suggest__img {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--nx-bg);
}

.nx-suggest__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nx-suggest__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.nx-suggest__title mark {
	padding: 0 1px;
	border-radius: 3px;
	background: var(--nx-tint-14);
	color: var(--nx-tinta);
	font-weight: 800;
}

.nx-suggest__cat {
	font-size: 12px;
	font-weight: 600;
	color: var(--nx-muted);
}

.nx-suggest__empty {
	padding: 12px;
	font-size: 14px;
	color: var(--nx-muted);
}

.nx-suggest__all {
	margin-top: 4px;
	padding: 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--nx-tinta);
	text-decoration: none;
}

/* ---------- Ferramentas (página Ferramentas, cada ferramenta e os Mini jogos): topo e títulos centralizados ---------- */
/* O anúncio que a rede coloca no topo aparece centralizado; trilha, título, texto e filtros ficam alinhados com ele. */

.nx-ferramentas-idx .nx-page-head .nx-wrap,
.nx-ft-pagina .nx-page-head .nx-wrap,
.nx-jogos .nx-page-head .nx-wrap,
.nx-tool-page .nx-tool-head__inner,
.nx-tool-page .nx-cat-head__inner,
.nx-vagas .nx-cat-head__inner {
	align-items: center;
	text-align: center;
}

.nx-ferramentas-idx .nx-crumbs,
.nx-ft-pagina .nx-crumbs,
.nx-tool-page .nx-crumbs,
.nx-vagas .nx-crumbs,
.nx-ferramentas-idx .nx-chips,
.nx-jogos .nx-chips,
.nx-jogos .nx-o-head,
.nx-ft-pagina .nx-ft-head__linha {
	justify-content: center;
}

.nx-ferramentas-idx .nx-page-head__text,
.nx-ft-pagina .nx-page-head__text,
.nx-jogos .nx-page-head__text,
.nx-jogos .nx-page-head__busca,
.nx-tool-page .nx-tool-head__text,
.nx-tool-page .nx-cat-head__text,
.nx-vagas .nx-cat-head__text {
	margin-left: auto;
	margin-right: auto;
}

.nx-ft-pagina .nx-ft-head__selo {
	align-self: center;
}

.nx-jogos .nx-page-head__busca {
	width: 100%;
}

.nx-tool-page .nx-tools-group__title {
	text-align: center;
}

/* Anúncio das ferramentas sempre no meio da tela. */
.nx-ferramentas-idx .nx-ad,
.nx-ferramentas .nx-ad,
.nx-jogos .nx-ad,
.nx-jogo .nx-ad,
.nx-tool-page .nx-ad,
.nx-vagas .nx-ad {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Botões, campos e cards sem linha em volta, com sombra (computador e celular) ---------- */
/* "body" na frente para valer também sobre o CSS de cada tela (home.css, single.css...), que carrega depois deste. */

:root {
	--nx-sombra-cel: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px -6px rgba(0, 0, 0, 0.16);
	--nx-sombra-cel-leve: 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 10px -4px rgba(0, 0, 0, 0.14);
	--nx-sombra-cel-toque: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 24px -8px rgba(0, 0, 0, 0.24);
}

/* Cards */
body .nx-ft-ajuda__dicas,
body .nx-artigo__voltar,
body .nx-artigo__box,
body .nx-artigo__content .block-content.block-content-default,
body .nx-contato__box,
body .nx-sobre__comp div,
body .nx-sobre__ficha,
body .nx-suggest,
body .nx-artigo__content > table {
	border-color: transparent;
	box-shadow: var(--nx-sombra-cel);
}

/* Botões e campos */
body .nx-chip,
body .nx-paginas .page-numbers,
body .nx-header__lupa,
body .nx-btn--linha,
body .nx-input,
body .nx-form__field input,
body .nx-form__field select,
body .nx-form__field textarea {
	border-color: transparent;
	box-shadow: var(--nx-sombra-cel-leve);
}

/* Em fundo escuro (Sobre o site, Sobre e o botão claro): a sombra não aparece, então um fundo um pouco mais claro no lugar da linha. */
body .nx-sobre__pilares div,
body .nx-sobre__sites a,
body .nx-sobre__sites span,
body .nx-btn--linha-clara {
	border-color: transparent;
	background: rgba(255, 255, 255, 0.08);
}

body .nx-sobre__sites a:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
}

body .nx-btn--linha-clara:hover {
	background: #FFFFFF;
	color: var(--nx-ink);
}

/* Campo em foco: a sombra e o contorno na cor do site. */
body .nx-input:focus,
body .nx-form__field input:focus,
body .nx-form__field select:focus,
body .nx-form__field textarea:focus {
	box-shadow: var(--nx-sombra-cel-leve), 0 0 0 3px color-mix(in oklab, var(--nx-accent) 35%, transparent);
}

/* Sem o realce cinza/azul que o próprio celular desenha em volta do que é tocado. */
body a,
body button,
body summary,
body input,
body select,
body textarea {
	-webkit-tap-highlight-color: transparent;
}

/* Hover, toque e foco: também sem linha; a sombra só fica um pouco mais forte. */
body .nx-artigo__voltar:is(:hover, :active, :focus-visible),
body .nx-artigo__content .block-content.block-content-default:is(:hover, :active),
body .nx-chip:is(:hover, :active, :focus-visible),
body .nx-paginas .page-numbers:is(:hover, :active, :focus-visible),
body .nx-header__lupa:is(:hover, :active, :focus-visible),
body .nx-header__lupa[aria-expanded="true"],
body .nx-btn--linha:is(:hover, :active, :focus-visible) {
	border-color: transparent;
	outline: none;
	box-shadow: var(--nx-sombra-cel-toque);
}

body .nx-input:focus,
body .nx-form__field input:focus,
body .nx-form__field select:focus,
body .nx-form__field textarea:focus {
	border-color: transparent;
}

/* Pílula e página marcadas continuam cheias na cor de antes, sem linha. */
body .nx-chip.is-active,
body .nx-paginas .page-numbers.current {
	border-color: transparent;
	box-shadow: none;
}

/* ========================================================================== */
/* KIT D · MODERNO: o que é só deste kit (topo em três partes, marca, sobretítulos em mono, cards e rodapé branco) */
/* ========================================================================== */

body {
	background: var(--nx-bg);
}

/* Títulos: Geist bem pesada e apertada. */
.nx-h2,
.nx-page-head__title,
.nx-cat-head__title {
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
}

/* Botões em pílula preta (a cor do site fica para links e destaques). */
.nx-btn {
	border-radius: 999px;
	background: var(--nx-ink);
	color: #FFFFFF;
	font-weight: 700;
}

.nx-btn:hover {
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
}

.nx-input {
	border-radius: 999px;
}

.nx-thumb,
.nx-foto {
	border-radius: 12px;
	background: var(--nx-img);
}

/* Sobretítulo em mono, caixa alta, na cor da categoria ("FINANÇAS"). */
.nx-d-cat {
	font-family: var(--nx-font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nx-tom, var(--nx-tinta));
	text-decoration: none;
}

.nx-tom-1 { --nx-tom: var(--nx-tinta); }
.nx-tom-2 { --nx-tom: #1B357A; }
.nx-tom-3 { --nx-tom: #0D5560; }
.nx-tom-4 { --nx-tom: #8A1D46; }
.nx-tom-5 { --nx-tom: #3A1D86; }
.nx-tom-6 { --nx-tom: #7A4A0E; }

/* "05 nov · 9 min de leitura". */
.nx-d-meta {
	font-size: 13px;
	line-height: 1.55;
	color: var(--nx-muted);
}

/* "Ver arquivo →": link forte com seta. */
.nx-d-ver {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nx-d-ver:hover {
	color: var(--nx-tinta);
}

/* Cabeçalho de seção: título à esquerda, link à direita, traço fino embaixo. */
.nx-d-sec {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--nx-line);
}

.nx-d-h2 {
	margin: 0;
	color: var(--nx-ink);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

/* ---------- Topo: marca à esquerda, menu no meio, lupa e "Assinar" à direita ---------- */

.nx-header__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 24px;
	height: 76px;
}

.nx-logo__name {
	gap: 10px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Bolinha preta com a meia-lua na cor do site. */
.nx-logo__bola {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--nx-header-ink, var(--nx-ink));
	box-shadow: inset -8px 0 0 var(--nx-accent);
}

.nx-nav {
	gap: 28px;
	margin: 0;
	font-weight: 500;
}

.nx-nav a,
.nx-header .nx-nav a {
	padding: 6px 0;
	border-bottom: 0;
	color: color-mix(in srgb, var(--nx-header-ink, var(--nx-ink)) 62%, transparent);
}

.nx-nav a:hover,
.nx-nav a[aria-current="page"],
.nx-header .nx-nav a:hover,
.nx-header .nx-nav a[aria-current="page"] {
	color: var(--nx-header-ink, var(--nx-ink));
}

.nx-header__acoes {
	justify-content: flex-end;
	gap: 12px;
}

body .nx-header__lupa,
body .nx-header__lupa:is(:hover, :active, :focus-visible),
body .nx-header__lupa[aria-expanded="true"] {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--nx-header-ink, var(--nx-ink));
}

body .nx-header__lupa:hover,
body .nx-header__lupa[aria-expanded="true"] {
	background: color-mix(in srgb, var(--nx-header-ink, var(--nx-ink)) 7%, transparent);
}

body .nx-header__cta,
body .nx-header__cta:is(:active, :focus-visible) {
	height: 40px;
	padding: 0 20px;
	background: var(--nx-header-ink, var(--nx-ink));
	box-shadow: none;
	color: var(--nx-header-bg, #FFFFFF);
	font-size: 15px;
}

body .nx-header__cta:hover {
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
}

/* ---------- Rodapé: branco, marca e links numa linha, disclaimer e empresa embaixo ---------- */

.nx-footer {
	border-top: 1px solid var(--nx-line);
	background: var(--nx-footer-bg, #FFFFFF);
	color: var(--nx-footer-ink, var(--nx-muted));
}

.nx-footer__inner {
	gap: 22px;
	padding: 48px 24px 36px;
}

.nx-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.nx-logo--footer {
	color: var(--nx-footer-ink, var(--nx-ink));
}

.nx-logo--footer .nx-logo__name {
	font-size: 22px;
}

.nx-logo--footer .nx-logo__bola {
	background: var(--nx-footer-ink, var(--nx-ink));
}

.nx-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.nx-footer__links a {
	color: var(--nx-footer-ink, var(--nx-muted));
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.nx-footer__links a:hover {
	color: var(--nx-footer-ink, var(--nx-ink));
	text-decoration: underline;
}

.nx-footer__bottom {
	gap: 6px;
	padding-top: 0;
	border-top: 0;
	color: var(--nx-footer-ink, var(--nx-muted));
}

.nx-footer__copy {
	color: var(--nx-footer-ink, var(--nx-muted));
}

/* ---------- Telas médias e celular ---------- */

@media (max-width: 1100px) {
	.nx-nav {
		gap: 18px;
		font-size: 14px;
	}
}

@media (max-width: 640px) {
	.nx-logo__name {
		font-size: 20px;
	}
}

/* ========================================================================== */
/* RÚSTICO (kit inteiro): papel creme com grão, títulos em Fraunces, madeira nos botões e no rodapé, kraft nos selos e polaroides
   nos cards. As cores base (:root) já são as do papel; aqui vão as peças. A home tem o resto em home.css. */
/* ========================================================================== */

body {
	background: var(--nx-grao), var(--nx-bg);
}

/* Títulos em Fraunces (serifada) em todas as telas */
.nx-h2,
.nx-side-title,
.nx-d-h2,
.nx-page-head__title,
.nx-cat-head__title,
.nx-artigo__title,
.nx-artigo__content :is(h2, h3, h4),
.nx-sobre__title,
.nx-sobre__grupo-title,
.nx-jogo-info__title,
.nx-d-lst-topo__titulo,
.nx-d-lst-news__titulo,
.nx-d-ftx-topo__titulo,
.nx-d-comece__titulo,
.nx-assuntos__titulo,
.nx-d-card__titulo {
	font-family: var(--nx-font-serif);
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Sobretítulos e datas: itálico serifado, cor de sépia */
.nx-d-meta,
.nx-d-lst-topo__sobre {
	font-family: var(--nx-font-serif);
	font-style: italic;
	color: var(--nx-muted);
}

/* Selo da categoria: carimbo de papel kraft, levemente torto */
.nx-d-cat {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--nx-kraft);
	color: var(--nx-madeira);
	font-size: 11px;
	transform: rotate(-2deg);
}

/* Cabeçalho de seção: no lugar do traço reto, um risco ondulado "feito à mão" */
.nx-d-sec {
	border-bottom: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 8'%3E%3Cpath d='M2 5c8-4 14 2 22-1s14-3 22 0 14 3 22 0 14-3 26 0' fill='none' stroke='%23C9AF86' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom / 96px 8px;
}

.nx-d-ver {
	font-family: var(--nx-font-serif);
	font-style: italic;
	color: var(--nx-tinta);
}

/* Botões: madeira escura com texto creme; no hover, a cor do site */
.nx-btn,
body .nx-header__cta,
body .nx-header__cta:is(:active, :focus-visible) {
	background: var(--nx-madeira);
	color: var(--nx-papel);
}

.nx-btn:hover,
body .nx-header__cta:hover {
	background: var(--nx-tinta);
	color: #FFFFFF;
}

/* Campos e caixas brancas: papel de cartão (quase branco, quente) */
.nx-input,
.nx-chip {
	background-color: var(--nx-cartao);
}

.nx-chip.is-active,
body .nx-paginas .page-numbers.current {
	background: var(--nx-madeira);
	color: var(--nx-papel);
}

/* Fotos um pouco envelhecidas; no hover, as cores voltam */
.nx-thumb,
.nx-foto {
	border-radius: 4px;
}

.nx-thumb__img {
	filter: sepia(0.2) saturate(0.92);
	transition: filter .3s, transform .4s ease;
}

:is(a, article):hover .nx-thumb__img {
	filter: none;
}

/* ---------- Topo: papel creme com grão, marca em Fraunces ---------- */

.nx-header {
	border-bottom: 0;
	background: var(--nx-grao), var(--nx-header-bg, var(--nx-papel));
	background-color: var(--nx-header-bg, var(--nx-papel));
	box-shadow: 0 1px 0 rgba(46, 36, 25, 0.06), 0 8px 18px -14px rgba(46, 36, 25, 0.45);
}

.nx-logo__name {
	font-family: var(--nx-font-serif);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.nx-logo__bola {
	background: var(--nx-header-ink, var(--nx-madeira));
}

.nx-nav a,
.nx-header .nx-nav a {
	font-family: var(--nx-font-serif);
	font-size: 16px;
	font-style: italic;
}

.nx-nav a[aria-current="page"],
.nx-header .nx-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--nx-kraft-escuro);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Topo do celular (utils/niches/niches.php): o mesmo papel */
.nx-mtopo {
	background: var(--nx-grao), var(--nx-header-bg, var(--nx-papel));
}

/* ---------- Cards das listas (categoria, busca): polaroides ---------- */

body .nx-d-card {
	padding: 10px 10px 16px;
	background: var(--nx-cartao);
	box-shadow: 0 1px 2px rgba(46, 36, 25, 0.12), 0 10px 24px -10px rgba(46, 36, 25, 0.35);
	transform: rotate(-0.8deg);
	transition: transform .25s ease, box-shadow .25s;
}

body .nx-d-card:nth-child(2n) {
	transform: rotate(0.9deg);
}

body .nx-d-card:nth-child(3n) {
	transform: rotate(-0.3deg);
}

body .nx-d-card:hover {
	box-shadow: 0 2px 4px rgba(46, 36, 25, 0.14), 0 20px 40px -14px rgba(46, 36, 25, 0.45);
	transform: rotate(0deg) translateY(-4px);
}

body .nx-d-card .nx-thumb,
body .nx-d-card:hover .nx-thumb {
	border-radius: 2px;
	transform: none;
}

/* ---------- Rodapé rústico ----------
   Madeira escura com veios e grão, a borda de cima rasgada como papel, textos creme e a marca e os links em Fraunces.
   A cor do rodapé escolhida no painel (--nx-footer-bg / --nx-footer-ink) continua valendo. */

body .nx-footer {
	border-top: 0;
	background:
		var(--nx-grao),
		var(--nx-veios),
		var(--nx-footer-bg, var(--nx-madeira));
	background-color: var(--nx-footer-bg, var(--nx-madeira));
	color: var(--nx-footer-ink, color-mix(in oklab, var(--nx-papel) 78%, transparent));
}

/* Borda de cima rasgada (papel) */
body .nx-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 15px;
	background: var(--nx-footer-bg, var(--nx-madeira));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 15' preserveAspectRatio='none'%3E%3Cpath d='M0 15V9l6-3 7 4 8-6 6 3 9-5 7 6 8-2 6 4 9-6 7 3 8-4 6 5 9-3 7 4 8-5 9 3V15z'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 15px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 15' preserveAspectRatio='none'%3E%3Cpath d='M0 15V9l6-3 7 4 8-6 6 3 9-5 7 6 8-2 6 4 9-6 7 3 8-4 6 5 9-3 7 4 8-5 9 3V15z'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 15px;
	pointer-events: none;
}

body .nx-footer .nx-logo--footer,
body .nx-footer .nx-logo-by {
	color: var(--nx-footer-ink, var(--nx-papel));
}

body .nx-footer .nx-logo--footer .nx-logo__name {
	font-family: Fraunces, Georgia, 'Times New Roman', serif;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

body .nx-footer .nx-logo--footer .nx-logo__bola {
	background: var(--nx-footer-ink, var(--nx-kraft));
}

body .nx-footer__links {
	gap: 10px 26px;
}

body .nx-footer__links a {
	color: var(--nx-footer-ink, var(--nx-kraft));
	font-family: Fraunces, Georgia, 'Times New Roman', serif;
	font-size: 16px;
	font-style: italic;
	font-weight: 500;
}

body .nx-footer__links a:hover {
	color: var(--nx-footer-ink, #FFFFFF);
	text-decoration-color: var(--nx-kraft);
	text-underline-offset: 5px;
}

/* Linha da empresa embaixo, separada por um fio claro */
body .nx-footer__copy {
	padding-top: 14px;
	background: linear-gradient(90deg, rgba(243, 236, 223, 0.16), rgba(243, 236, 223, 0.16)) top / 100% 1px no-repeat;
	color: var(--nx-footer-ink, color-mix(in oklab, var(--nx-papel) 62%, transparent));
	font-family: Fraunces, Georgia, 'Times New Roman', serif;
	font-style: italic;
}

/* Disclaimer: texto creme bem legível na madeira (o kit deixava cinza, que sumia no fundo escuro). */
body .nx-footer__bottom {
	color: var(--nx-footer-ink, var(--nx-papel));
}

body .nx-footer .rk-disclaimer__text {
	color: var(--nx-footer-ink, color-mix(in oklab, var(--nx-papel) 88%, transparent));
	font-size: 13px;
}

/* Seta do disclaimer: botão kraft, como um botão de casaco */
body .nx-footer .rk-disclaimer-seta__btn {
	background: var(--nx-kraft);
	color: var(--nx-madeira);
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

/* Rodapé do celular (utils/niches/niches.php): sem fundo próprio, para a madeira com veios aparecer; textos creme. */
body .nx-footer .nx-mrodape {
	background: transparent;
	color: var(--nx-footer-ink, var(--nx-papel));
}

