/* NICHO Trabalho · KIT E · Mosaico */

/* Mosaico: destaque (2 linhas) | ferramenta da semana + etapa -------------------- */
.nx-mo-mosaic {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	padding-top: 8px;
	padding-bottom: 40px;
}

.nx-mo-lead {
	grid-column: span 7;
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-mo-lead:hover {
	color: var(--nx-ink);
}

.nx-mo-lead__media {
	position: relative;
	flex-shrink: 0;
	height: 360px;
	overflow: hidden;
}

.nx-mo-lead__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 32px 32px;
}

.nx-mo-lead__title {
	font-family: var(--nx-display);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
	text-wrap: balance;
}

.nx-mo-lead:hover .nx-mo-lead__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.nx-mo-lead__text {
	font-size: 17px;
	line-height: 1.55;
	color: var(--nx-muted);
}

/* sem destaque, os dois cartões ficam lado a lado */
.nx-mo-mosaic--no-lead .nx-mo-week,
.nx-mo-mosaic--no-lead .nx-mo-step {
	grid-column: span 6;
}

/* Ferramenta da semana: cartão na cor do site */
.nx-mo-week {
	grid-column: span 5;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
	border-radius: 20px;
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.nx-mo-week__label {
	font-size: 13px;
	font-weight: 700;
}

.nx-mo-week__title {
	font-family: var(--nx-display);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.nx-mo-week__text {
	font-size: 16px;
	line-height: 1.5;
}

.nx-mo-week__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	height: 48px;
	margin-top: 6px;
	padding: 0 22px;
	border-radius: 999px;
	background: #fff;
	color: var(--nx-ink) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.nx-mo-week__btn:hover {
	background: var(--nx-bg);
}

/* Em que etapa você está?: cartão escuro com 3 caminhos */
.nx-mo-step {
	grid-column: span 5;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 32px;
	border-radius: 20px;
	background: var(--nx-dark);
	color: #fff;
}

.nx-mo-step__label {
	font-size: 13px;
	font-weight: 700;
	color: color-mix(in oklab, var(--nx-accent) 60%, #fff);
}

.nx-mo-step__title {
	font-family: var(--nx-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.nx-mo-step__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nx-mo-step__options a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 46px;
	padding: 0 18px;
	border: 0;
	box-shadow: var(--float);
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}

.nx-mo-step__options a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: var(--float-hover);
	transform: translateY(-3px);
}

.nx-mo-step__note {
	font-size: 13px;
	color: #B9BCC4;
}

/* Categorias: 5 blocos ---------------------------------------------------------- */
.nx-mo-cats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	padding-bottom: 48px;
}

.nx-mo-cat {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	border-radius: 20px;
	background: #fff;
	color: var(--nx-ink);
	text-decoration: none;
	transition: transform 0.15s ease;
}

.nx-mo-cat:hover {
	color: var(--nx-ink);
	transform: translateY(-2px);
}

.nx-mo-cat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--nx-tint-16);
	color: var(--nx-ink);
}

/* blocos coloridos (2º e 4º), como no design */
.nx-mo-cat.nx-tint-22 {
	background: color-mix(in oklab, var(--nx-accent) 22%, #fff);
}

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

/* nos blocos coloridos, o ícone fica em branco */
.nx-mo-cat.nx-tint-22 .nx-mo-cat__icon,
.nx-mo-cat.nx-tint-40 .nx-mo-cat__icon {
	background: #fff;
}

.nx-mo-cat strong {
	font-family: var(--nx-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.nx-mo-cat__count {
	font-size: 14px;
	color: var(--nx-muted);
}

.nx-mo-cat.nx-tint-22 .nx-mo-cat__count,
.nx-mo-cat.nx-tint-40 .nx-mo-cat__count {
	color: var(--nx-ink);
}

.nx-home > .nx-mo-section:last-child {
	padding-bottom: 48px;
}

/* Responsivo ----------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.nx-mo-lead {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.nx-mo-week,
	.nx-mo-step,
	.nx-mo-mosaic--no-lead .nx-mo-week,
	.nx-mo-mosaic--no-lead .nx-mo-step {
		grid-column: span 6;
	}

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

@media (max-width: 860px) {
	/* 12 colunas com 16px de espaço não cabem no celular: vira 1 coluna */
	.nx-mo-mosaic {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding-top: 4px;
		padding-bottom: 28px;
	}

	.nx-mo-lead,
	.nx-mo-week,
	.nx-mo-step,
	.nx-mo-mosaic--no-lead .nx-mo-week,
	.nx-mo-mosaic--no-lead .nx-mo-step {
		grid-column: 1 / -1;
	}

	.nx-mo-lead__media {
		height: 220px;
	}

	.nx-mo-lead__body {
		padding: 20px 20px 24px;
	}

	.nx-mo-lead__title {
		font-size: 28px;
	}

	.nx-mo-lead__text {
		font-size: 16px;
	}

	.nx-mo-week,
	.nx-mo-step {
		padding: 24px 22px;
	}

	.nx-mo-week__title {
		font-size: 28px;
	}

	.nx-mo-step__title {
		font-size: 22px;
	}

	.nx-mo-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		padding-bottom: 32px;
	}

	.nx-mo-cat {
		gap: 12px;
		padding: 18px;
	}

	.nx-mo-cat strong {
		font-size: 18px;
	}

	.nx-home > .nx-mo-section:last-child {
		padding-bottom: 32px;
	}
}
