/* NICHO Trabalho · KIT B · Pôster */

: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: #111318;
	--nx-muted: #4D525C;
	--nx-line: #DADDE2;
	--nx-line-strong: #111318;
	--nx-field: #8A8F98;
	--nx-bg: #F4F5F6;
	--nx-white: #FFFFFF;
	--nx-font: Barlow, Arial, sans-serif;
	--nx-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	/* títulos de seção das telas do nicho (ferramentas) */
	--nx-heading: var(--nx-display);
	--nx-heading-weight: 800;
	--nx-heading-ls: 0;
	--nx-gutter: 72px;
	--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);
}

/* Título traduzido com palavra longa (ex.: alemão) quebra dentro da própria caixa em vez de vazar; com hífen nos idiomas de palavras compostas. */
h1, h2, h3, h4, h5, h6,
[class*="__title"] {
	overflow-wrap: anywhere;
}

:is(:lang(de), :lang(nl), :lang(sv), :lang(da), :lang(nb), :lang(no), :lang(fi), :lang(hu)) :is(h1, h2, h3, h4, h5, h6, [class*="__title"]) {
	hyphens: auto;
}

/* Base ------------------------------------------------------------------ */
.nx *,
.nx *::before,
.nx *::after {
	box-sizing: border-box;
}

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

/* :where() = prioridade mínima: estilos do próprio conteúdo (blocos, HTML) vencem */
:where(.nx) a {
	color: var(--nx-ink);
}

:where(.nx) a:hover {
	color: var(--nx-accent-ink);
}

:where(.nx) img {
	max-width: 100%;
	height: auto;
}

:where(.nx) h1,
:where(.nx) h2,
:where(.nx) h3,
:where(.nx) p {
	margin: 0;
}

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

.nx-wrap {
	width: 100%;
	max-width: calc(1296px + var(--nx-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--nx-gutter);
}

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

.nx-skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--nx-ink);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.nx-skip:focus {
	top: 12px;
}

/* Botões e campos ------------------------------------------------------- */
.nx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 0;
	background: var(--nx-accent);
	color: var(--nx-on-accent) !important;
	font: 700 19px/1 var(--nx-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.nx-btn:hover {
	background: var(--nx-accent-hover);
	color: var(--nx-on-accent-hover) !important;
}

/* botão preto (sobre a cor do site) */
.nx-btn--ink {
	background: var(--nx-ink);
	color: #fff !important;
}

.nx-btn--ink:hover {
	background: #000;
	color: #fff !important;
}

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

.nx-input {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 0;
	background: #fff;
	color: var(--nx-ink);
	font: 16px var(--nx-font);
}

.nx-input--lg {
	height: 54px;
}

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

.nx-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--nx-ink);
	color: #fff;
	cursor: pointer;
}

.nx-icon-btn:hover,
.nx-icon-btn[aria-expanded="true"] {
	background: #000;
}

/* Etiquetas e textos comuns --------------------------------------------- */
.nx-eyebrow,
.nx-kicker {
	font-family: var(--nx-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nx-accent-ink);
	text-decoration: none;
}

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

.nx-chip {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 0;
	box-shadow: var(--float-sm);
	color: var(--nx-ink);
	font-family: var(--nx-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.nx-chip:hover {
	background: var(--nx-ink);
	color: #fff;
}

/* Cartão de ferramenta (Ferramentas e "Outras ferramentas") ---------------- */
.nx-tool {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 0;
	background: #fff;
	color: var(--nx-ink);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nx-tool:hover {
	background: var(--nx-ink);
	color: #fff;
}

.nx-tool__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.nx-tool__title {
	font-family: var(--nx-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.nx-tool__text {
	font-size: 15px;
	line-height: 1.5;
	color: var(--nx-muted);
}

.nx-tool:hover .nx-tool__text {
	color: #C4C7CD;
}

.nx-tool__cta {
	margin-top: auto;
	padding-top: 4px;
	font-family: var(--nx-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ferramenta sem página ainda */
.nx-tool.is-soon {
	cursor: default;
}

.nx-tool.is-soon:hover {
	background: #fff;
	color: var(--nx-ink);
}

.nx-tool.is-soon .nx-tool__cta {
	color: var(--nx-muted);
}

/* Ilustrações / mídia --------------------------------------------------- */
.nx-illus {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.nx-media__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.nx-tint-12 { background: var(--nx-tint-12); }

.nx-tint-16 { background: color-mix(in oklab, var(--nx-accent) 16%, #fff); }

.nx-tint-22 { background: color-mix(in oklab, var(--nx-accent) 22%, #fff); }

/* Cabeçalho ------------------------------------------------------------- */
/* Faixa preta com a data; barra na cor do site. Com "Cor do topo" em */
.nx-header {
	position: relative;
	z-index: 20;
}

.nx-topbar {
	background: var(--nx-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nx-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 34px;
}

.nx-topbar__date {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nx-topbar__links {
	display: flex;
	gap: 24px;
}

.nx-topbar__links a {
	color: #fff;
	text-decoration: none;
}

.nx-topbar__links a:hover {
	color: #fff;
	text-decoration: underline;
}

.nx-header__bar {
	background: var(--nx-header-bg, var(--nx-accent));
	color: var(--nx-header-ink, var(--nx-on-accent));
	/* linha leve: separa a barra da capa, que tem a mesma cor */
}

.nx-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 80px;
}

.nx-logo {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-family: var(--nx-display);
	font-size: 36px;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--nx-header-ink, var(--nx-on-accent)) !important;
	text-decoration: none;
	white-space: nowrap;
}

.nx-logo__tag {
	padding: 0 6px;
	background: var(--nx-ink);
	color: #fff;
}

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

.nx-nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
	font-family: var(--nx-display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.nx-nav a {
	padding: 4px 0;
	border-bottom: 3px solid transparent;
	color: var(--nx-header-ink, var(--nx-on-accent)) !important;
	text-decoration: none;
	white-space: nowrap;
}

.nx-nav a:hover,
.nx-nav a[aria-current="page"] {
	border-bottom-color: currentColor;
}

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

.nx-header__menu {
	display: none !important;
}

.nx-search {
	padding: 16px 0;
	background: var(--nx-ink);
}

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

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

.nx-search .nx-input {
	border-color: #fff;
}

/* Anúncio --------------------------------------------------------------- */
.nx-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 16px 64px;
}

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

/* Rodapé: claro, na cor do site, com a linha preta grossa em cima --------- */
.nx-footer {
	padding: 36px 0 24px;
	background: color-mix(in oklab, var(--nx-accent) 8%, #fff);
	color: var(--nx-ink);
}

.nx-footer .nx-wrap {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nx-logo--footer {
	gap: 14px;
	font-size: 104px;
	line-height: 0.85;
	color: var(--nx-ink) !important;
}

.nx-logo--footer .nx-logo__tag {
	padding: 0;
	background: none;
	color: var(--nx-accent);
}

/* logo de Definições no rodapé: como foi enviada, sem fundo nem filtro */
.nx-logo--footer.nx-logo--img img {
	max-height: 56px;
	max-width: 360px;
}

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

/* logo + frase, na mesma altura das colunas de links */
.nx-footer__brand {
	grid-column: span 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.nx-footer__tagline {
	font-size: 18px;
	line-height: 1.5;
	color: var(--nx-muted);
}

.nx-footer__cols {
	grid-column: 7 / span 6;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nx-footer__col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
}

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

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

.nx-footer a:hover {
	color: var(--nx-accent-ink);
}

.nx-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 16px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.nx-footer__disclaimer {
	max-width: 1100px;
}

.nx-footer__disclaimer p {
	margin: 0 0 6px;
}

.nx-footer__disclaimer p:last-child {
	margin-bottom: 0;
}

/* Topo das telas internas (ferramentas...) ------------------------------- */
.nx-cat-head {
	padding: 48px 0;
	background: #fff;
}

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

.nx-cat-head__title {
	font-family: var(--nx-display);
	font-size: 72px;
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
	text-wrap: balance;
}

.nx-cat-head__text {
	max-width: 760px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--nx-muted);
}

/* Trilha (breadcrumb): caixa alta condensada com setas. */
.nx-crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-family: var(--nx-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--nx-muted);
}

.nx-crumbs a {
	flex-shrink: 0;
	color: var(--nx-muted);
	text-decoration: none;
}

/* Níveis do meio encolhem com "…" quando a trilha não cabe no celular. */
.nx-crumbs a:not(:first-child) {
	flex-shrink: 1;
	min-width: 3em;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

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

/* separador: seta no lugar da barra */
.nx-crumbs span[aria-hidden] {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	overflow: hidden;
	background: var(--nx-field);
	font-size: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m9 6 6 6-6 6%27/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m9 6 6 6-6 6%27/%3E%3C/svg%3E") center / contain no-repeat;
}

/* página atual: título longo termina em "…" */
.nx-crumbs [aria-current] {
	min-width: 0;
	overflow: hidden;
	color: var(--nx-ink);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Formulários ------------------------------------------------------------ */
/* armadilha para robôs: fora da tela */
.nx-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* mensagens de envio */
.nx-alert {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 20px;
	border-radius: 0;
	font-size: 15px;
	line-height: 1.5;
}

.nx-alert--error {
	border: 0;
	box-shadow: var(--float);
	background: color-mix(in oklab, #dc2626 8%, #fff);
	color: #7f1d1d;
}

/* Busca: sugestões de artigos enquanto digita ------------------------------ */
.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: 2px solid var(--nx-ink);
	border-radius: 0;
	background: #fff;
	box-shadow: 6px 6px 0 var(--nx-ink);
	text-align: left;
}

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

.nx-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 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-12);
}

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

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

.nx-suggest__title {
	font-family: var(--nx-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nx-suggest__title mark {
	padding: 0 1px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.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-top: 2px solid var(--nx-ink);
	font-family: var(--nx-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nx-ink);
	text-decoration: none;
}

/* Responsivo ------------------------------------------------------------ */
@media (max-width: 1320px) {
	:root {
		--nx-gutter: 48px;
	}

	.nx-nav {
		gap: 18px;
		font-size: 17px;
	}
}

@media (max-width: 1180px) {
	/* Menu vira painel sob a barra da logo */
	.nx-header__menu {
		display: flex !important;
	}

	.nx-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 8px var(--nx-gutter) 20px;
		background: var(--nx-header-bg, var(--nx-accent));
		border-top: 2px solid var(--nx-ink);
		font-size: 22px;
	}

	.nx-nav.is-open {
		display: flex;
	}

	.nx-nav a {
		padding: 12px 0;
		border-bottom: 2px solid color-mix(in oklab, var(--nx-header-ink, var(--nx-on-accent)) 25%, transparent);
	}

	.nx-nav a:last-child {
		border-bottom-color: transparent;
	}

	.nx-header__actions {
		margin-left: auto;
	}

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

	.nx-footer__brand,
	.nx-footer__cols {
		grid-column: 1 / -1;
	}

	.nx-cat-head__title {
		font-size: 58px;
	}
}

@media (max-width: 860px) {
	:root {
		--nx-gutter: 20px;
	}

	.nx-topbar__links {
		gap: 16px;
	}

	.nx-header__inner {
		gap: 16px;
		height: 64px;
	}

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

	.nx-logo--img img {
		max-height: 38px;
		max-width: 170px;
	}

	.nx-footer {
		padding: 28px 0 20px;
	}

	/* 12 colunas com espaço largo não cabem no celular */
	.nx-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-logo--footer {
		flex-wrap: wrap;
		gap: 0 10px;
		font-size: 52px;
	}

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

	.nx-cat-head__inner {
		gap: 14px;
	}

	.nx-cat-head__title {
		font-size: 44px;
	}

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

@media (max-width: 560px) {
	/* data some no celular; ficam os atalhos */
	.nx-topbar__date {
		display: none;
	}

	.nx-topbar__inner {
		justify-content: flex-end;
	}

	.nx-field-row,
	.nx-search__form {
		flex-direction: column;
	}

	.nx-field-row .nx-btn,
	.nx-search__form .nx-btn {
		width: 100%;
	}

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

/* Visual "flutuando" -------------------------------------------------------
   Botão principal com sombra na cor do site; botão redondo com sombra no hover; perguntas frequentes do texto em cartões. */
.nx-btn {
	box-shadow: 0 6px 18px color-mix(in oklab, var(--nx-accent) 30%, transparent);
	transition: background .15s, color .15s, box-shadow .2s, transform .2s;
}

.nx-btn:hover {
	box-shadow: 0 10px 26px color-mix(in oklab, var(--nx-accent) 42%, transparent);
	transform: translateY(-1px);
}

.nx-icon-btn {
	transition: box-shadow .2s, transform .2s;
}

.nx-icon-btn:hover,
.nx-icon-btn[aria-expanded="true"] {
	box-shadow: var(--float);
	transform: translateY(-1px);
}

.nx-content details {
	padding: 18px 22px;
	border-bottom: 0;
	border-radius: 14px;
	background: var(--nx-white, #fff);
	box-shadow: var(--float);
}

.nx-content details + details {
	margin-top: 12px;
}

/* RODAPÉ: espaços menores e celular centralizado (disclaimer com seta no topo do rodapé) */

@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;
	}
}
