/* NICHO Finanças · KIT B · Patrimônio (jornal: Source Serif nos títulos, IBM Plex Sans no texto, azul-marinho e dourado, cantos retos) */

:root {
	/* Visual "flutuando": sombras suaves no lugar das linhas de borda. */
	--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-ink: #14171F;
	--nx-muted: #535967;
	--nx-line: #E4DED0;
	--nx-bg: #FFFFFF;
	--nx-soft: #FAF7F0;
	--nx-white: #FFFFFF;
	--nx-font: 'IBM Plex Sans', Arial, sans-serif;
	--nx-gutter: 104px;
	--fx-navy: #0E2340;
	--fx-gold: #C9A24A;
	--fx-gold-ink: #7E5C12;
	/* Dourado em fundo escuro (logo, faixa do topo, rodapé). */
	--fx-gold-light: #C9A24A;
	--fx-cream: #F5EFE2;
	/* Tom mais escuro da Cor destaque, para texto e ícones em fundo claro. */
	--fx-ink: color-mix(in oklab, var(--nx-accent) 80%, #000);
	--fx-tint-8: color-mix(in oklab, var(--nx-accent) 8%, #fff);
	--fx-tint-10: color-mix(in oklab, var(--nx-accent) 10%, #fff);
	--fx-tint-11: color-mix(in oklab, var(--nx-accent) 11%, #fff);
	--fx-tint-16: color-mix(in oklab, var(--nx-accent) 16%, #fff);
	--fx-wash: var(--nx-soft);
	--fx-gradient: linear-gradient(135deg, var(--fx-navy) 0%, color-mix(in oklab, var(--fx-navy) 70%, var(--nx-accent)) 100%);
	--fx-shadow: none;
	/* Variáveis usadas pelos outros CSS do kit (base, telas): títulos em serifa e cantos retos. */
	--fx-display: 'Source Serif 4', Georgia, serif;
	--fx-display-weight: 600;
	--fx-display-tracking: -.012em;
	--fx-radius: 2px;
	--fx-pill: 4px;
}

/* Cor destaque preenchida em Definições: ela substitui o azul-marinho e o dourado do desenho. */
.nx-cor-destaque {
	--fx-navy: color-mix(in oklab, var(--nx-accent) 55%, #000);
	--fx-gold: var(--nx-accent);
	--fx-gold-ink: var(--fx-ink);
	--fx-gold-light: color-mix(in oklab, var(--nx-accent) 45%, #fff);
	--fx-cream: color-mix(in oklab, var(--nx-accent) 7%, #fff);
	--nx-soft: color-mix(in oklab, var(--nx-accent) 4%, #fff);
}

/* Cor destaque preenchida: fundos, linhas e textos neutros ganham um leve tom dela (sem o tom fixo do kit). */
.nx-cor-destaque {
	--nx-ink: color-mix(in oklab, var(--nx-accent) 18%, #0E0E12);
	--nx-muted: color-mix(in oklab, var(--nx-accent) 14%, #55555C);
	--nx-line: color-mix(in oklab, var(--nx-accent) 12%, #ECECEE);
}

/* Cor destaque (hover) preenchida: a segunda cor do desenho do kit vira ela. */
.nx-cor-hover {
	--fx-gold: var(--nx-accent-hover);
	--fx-gold-ink: color-mix(in oklab, var(--nx-accent-hover) 60%, #000);
	--fx-gold-light: color-mix(in oklab, var(--nx-accent-hover) 45%, #fff);
}

/* Logo ------------------------------------------------------------------ */
.nx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--nx-ink) !important;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.nx-logo img {
	display: block;
	width: auto;
	max-height: 58px;
}

/* Monograma com as iniciais. */
.nx-logo__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--fx-navy);
	box-shadow: inset 0 0 0 2px var(--fx-gold-light);
	color: var(--fx-gold-light);
	font: italic 700 24px/1 var(--fx-display);
}

.nx-logo__name {
	font: 700 40px/1 var(--fx-display);
	letter-spacing: -.01em;
}

.nx-logo__tag {
	font-weight: 600;
	color: var(--fx-gold-ink);
}

/* Topo com a "Cor do topo" de Definições: nome da logo (e o "by") na cor do texto do topo, para não sumir num topo escuro. */
.nx-header .nx-logo {
	color: var(--nx-header-ink, var(--nx-ink)) !important;
}

.nx-header .nx-logo__tag {
	color: var(--nx-header-ink, var(--fx-gold-ink));
}

.nx-logo--footer {
	color: #fff !important;
}

.nx-logo--footer .nx-logo__mark {
	width: 49px;
	height: 49px;
	background: #fff;
	color: var(--fx-navy);
	font-size: 20px;
}

.nx-logo--footer .nx-logo__name {
	font-size: 34px;
}

.nx-logo--footer .nx-logo__tag {
	color: var(--fx-gold-light);
}

.nx .nx-logo-by {
	font-family: 'Schibsted Grotesk', Inter, Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	opacity: .72;
}

/* Botão quadrado de ícone (busca e menu do cabeçalho). */
.nx-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 4px;
	background: var(--nx-white);
	color: var(--nx-ink);
	cursor: pointer;
}

.nx-icon-btn:hover,
.nx-icon-btn[aria-expanded="true"] {
	box-shadow: var(--float);
	transform: translateY(-1px);
}

/* Cabeçalho ------------------------------------------------------------- */
.nx-header {
	position: relative;
	z-index: 20;
	background: var(--nx-header-bg, var(--nx-white));
	color: var(--nx-header-ink, var(--nx-ink));
	box-shadow: 0 1px 0 rgba(12, 32, 51, .04), 0 6px 20px rgba(12, 32, 51, .06);
}

/* Linha da logo: busca à esquerda, logo no centro, botão à direita. */
.nx-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.nx-header__inner > .nx-logo,
.nx-header__inner > .nx-logo-box {
	grid-column: 2;
	justify-self: center;
}

.nx-header__actions {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.nx-header .nx-header__cta {
	border-radius: 4px;
	background: var(--fx-navy);
	color: #fff !important;
}

.nx-header__menu {
	display: none;
}

/* Menu numa linha, entre um fio escuro e um fio claro. */
.nx-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 34px;
}

.nx-nav a {
	padding: 14px 0 12px;
	border-bottom: 3px solid transparent;
	color: var(--nx-header-ink, var(--nx-ink));
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nx-nav a:hover,
.nx-nav a[aria-current="page"] {
	border-bottom-color: var(--fx-gold);
	color: var(--nx-header-ink, var(--nx-ink));
}

.nx-search {
	padding: 16px 0;
	background: var(--nx-soft);
}

.nx-search__form {
	display: flex;
	gap: 10px;
}

/* Rodapé ---------------------------------------------------------------- */
.nx-footer {
	padding: 56px 0 32px;
	background: var(--fx-navy);
	color: #fff;
}

.nx-footer__top {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 40px 80px;
	padding-bottom: 32px;
}

.nx-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.nx-footer__brand p {
	max-width: 400px;
	font: italic 22px/1.45 var(--fx-display);
	color: #D9DFE8;
}

.nx-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nx-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-footer__head {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fx-gold-light);
}

.nx-footer__col a {
	color: #fff;
	font-size: 15px;
	text-decoration: none;
}

.nx-footer__col a:hover {
	text-decoration: underline;
}

.nx-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 24px;
}

.nx-footer__bottom p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #B9C3D1;
}

/* 1º artigo em destaque: foto grande à esquerda, texto à direita. */
.nx-list-destaque {
	padding: 32px 0 8px;
}

/* Artigo: topo centralizado, sem foto ao lado (a foto vai para o texto). */

.nx-art-foto {
	margin: 8px 0 28px;
}

.nx-art-foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

/* Responsivo ------------------------------------------------------------ */
@media (max-width: 1200px) {
	:root {
		--nx-gutter: 48px;
	}

	.nx-nav {
		gap: 0 22px;
	}
}

@media (max-width: 1024px) {
	.nx-logo__mark {
		width: 46px;
		height: 46px;
		font-size: 19px;
	}

	.nx-logo__name {
		font-size: 30px;
	}

	.nx-header__menu {
		display: inline-flex;
	}

	/* Menu vira painel embaixo do cabeçalho. */
	.nx-nav {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: 8px;
	}

	.nx-nav.is-open {
		display: flex;
	}

	.nx-nav a {
		padding: 12px 0;
		border-bottom: 1px solid var(--nx-line);
	}

	.nx-nav a:last-child {
		border-bottom: 0;
	}

	.nx-footer__top {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {

	:root {
		--nx-gutter: 20px;
	}

	.nx-header .nx-header__cta {
		display: none;
	}

	.nx-logo__mark {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.nx-logo__name {
		font-size: 22px;
	}

	.nx-footer {
		padding: 40px 0 24px;
	}

	.nx-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nx-search__form .nx-btn {
		padding: 0 18px;
	}
}

/* RODAPÉ: espaços menores e celular centralizado (disclaimer com seta no topo do rodapé) */

.nx-footer {
	padding: 36px 0 22px;
}

.nx-footer__top {
	padding-bottom: 12px;
}

.nx-footer__bottom {
	padding-top: 14px;
}

@media (max-width: 640px) {
	.nx-footer__top,
	.nx-footer__inner {
		text-align: center;
		justify-items: center;
		align-items: center;
	}

	.nx-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		text-align: center;
	}

	.nx-footer .nx-logo,
	.nx-footer .nx-logo-box {
		margin-left: auto;
		margin-right: auto;
		justify-content: center;
	}

	.nx-footer__cols {
		width: 100%;
		justify-items: center;
		justify-content: center;
		text-align: center;
	}

	.nx-footer__cols > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.nx-footer__col {
		align-items: center;
		text-align: center;
	}

	.nx-footer__bottom,
	.nx-footer__bottom .nx-wrap,
	.nx-footer__copy,
	.nx-footer__copy .nx-wrap {
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}
