/* NICHO Trabalho · KIT A · Editorial */

/* Peças comuns da home ---------------------------------------------------- */
.nx-ed-media {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 4px;
}

.nx-ed-title {
	font-family: var(--nx-display);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
	text-wrap: balance;
}

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

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

.nx-ed-title--md { font-size: 23px; }

.nx-ed-title--card { font-size: 21px; }

.nx-ed-title--list { font-size: 22px; }

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

.nx-ed-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--nx-muted);
}

.nx-ed-text--big {
	font-size: 17px;
}

.nx-ed-section {
	padding: 56px 0 24px;
}

.nx-ed-section .nx-wrap {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.nx-ed-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 20px;
	row-gap: 6px;
}

.nx-ed-head--split {
	justify-content: space-between;
}

.nx-ed-h2 {
	font-family: var(--nx-display);
	font-size: 44px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.1;
	text-wrap: balance;
}

.nx-ed-dek {
	font-family: var(--nx-display);
	font-size: 19px;
	font-style: italic;
	color: var(--nx-muted);
}

/* Destaques: matéria principal + 3 ---------------------------------------- */
.nx-ed-top {
	padding: 56px 0 64px;
}

.nx-ed-top .nx-wrap {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

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

.nx-ed-lead__media {
	grid-column: span 7;
	height: 540px;
}

.nx-ed-lead__body {
	grid-column: span 5;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-bottom: 8px;
}

.nx-ed-lead__title {
	font-family: var(--nx-display);
	font-size: 58px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.03;
	text-wrap: balance;
}

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

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

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

.nx-ed-lead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

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

.nx-ed-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--nx-line);
}

.nx-ed-trio__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Em pauta ------------------------------------------------------------------ */
.nx-ed-section--tint {
	padding: 64px 0;
	background: var(--nx-tint-6);
}

.nx-ed-section--tint .nx-wrap {
	gap: 32px;
}

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

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

.nx-ed-media--card {
	height: 190px;
}

/* Categorias: matéria grande + lista ---------------------------------------- */
.nx-ed-split {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 48px;
	align-items: start;
}

.nx-ed-big {
	grid-column: span 7;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nx-ed-media--big {
	height: 420px;
}

.nx-ed-list {
	grid-column: span 5;
	display: flex;
	flex-direction: column;
}

.nx-ed-split--reverse .nx-ed-list {
	order: -1;
}

.nx-ed-list__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 0;
	border-top: 1px solid var(--nx-line);
}

/* Ferramentas ---------------------------------------------------------------- */
.nx-ed-section--tools {
	padding: 64px 0 72px;
}

.nx-ed-section--tools .nx-wrap {
	gap: 32px;
}

.nx-ed-tools {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
}

.nx-ed-tool {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-ed-tool__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 26px;
	background: var(--nx-tint-14);
	color: var(--nx-accent-ink);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nx-ed-tool__title {
	font-family: var(--nx-display);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.25;
}

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

.nx-ed-tool:hover {
	color: var(--nx-ink);
}

.nx-ed-tool:hover .nx-ed-tool__icon {
	background: var(--nx-accent);
	color: var(--nx-on-accent);
}

.nx-ed-tool:hover .nx-ed-tool__title {
	text-decoration: underline;
	text-decoration-color: var(--nx-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* Newsletter (formulário do shortcode em Página inicial > Newsletter) ------- */
.nx-ed-news-wrap {
	padding: 0 0 80px;
}

.nx-ed-news {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 24px;
	align-items: center;
	padding: 56px;
	border-radius: 4px;
	background: var(--nx-ink);
	color: #fff;
}

.nx-ed-news__title {
	grid-column: span 7;
	font-family: var(--nx-display);
	font-size: 42px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.12;
	text-wrap: balance;
}

.nx-ed-news__form {
	grid-column: 8 / span 5;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #D5D7DB;
	font-size: 14px;
}

.nx-ed-news__form form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.nx-ed-news__form p {
	margin: 0;
}

.nx-ed-news__form label {
	font-weight: 600;
	color: #D5D7DB;
}

.nx-ed-news__form input[type="email"],
.nx-ed-news__form input[type="text"] {
	flex-grow: 1;
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--nx-ink);
	font: 16px var(--nx-font);
}

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

.nx-ed-news__form input[type="submit"]:hover,
.nx-ed-news__form button:hover {
	background: var(--nx-accent-hover);
	color: var(--nx-on-accent-hover);
}

.nx-ed-news__legal {
	font-size: 13px;
	color: #A9ADB4;
}

.nx-ed-news__legal a {
	color: #fff;
}

/* Responsivo ------------------------------------------------------------------ */
@media (max-width: 1180px) {
	.nx-ed-lead__media {
		grid-column: span 6;
		height: 440px;
	}

	.nx-ed-lead__body {
		grid-column: span 6;
	}

	.nx-ed-lead__title {
		font-size: 46px;
	}

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

	.nx-ed-media--big {
		height: 340px;
	}

	.nx-ed-news__title,
	.nx-ed-news__form {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.nx-ed-top {
		padding: 28px 0 40px;
	}

	.nx-ed-top .nx-wrap {
		gap: 32px;
	}

	/* 12 colunas com 48px de espaço não cabem no celular: vira 1 coluna */
	.nx-ed-lead,
	.nx-ed-split,
	.nx-ed-news {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-ed-lead {
		row-gap: 20px;
	}

	.nx-ed-lead__media,
	.nx-ed-lead__body {
		grid-column: 1 / -1;
	}

	.nx-ed-lead__media {
		height: 260px;
	}

	.nx-ed-lead__body {
		gap: 14px;
		padding-bottom: 0;
	}

	.nx-ed-lead__title {
		font-size: 36px;
		line-height: 1.08;
	}

	.nx-ed-lead__text {
		font-size: 17px;
	}

	.nx-ed-trio {
		grid-template-columns: 1fr;
		gap: 0;
		padding-top: 0;
		border-top: 0;
	}

	.nx-ed-trio__item {
		padding: 20px 0;
		border-top: 1px solid var(--nx-line);
	}

	.nx-ed-section {
		padding: 40px 0 16px;
	}

	.nx-ed-section .nx-wrap {
		gap: 20px;
	}

	.nx-ed-section--tint {
		padding: 44px 0;
	}

	.nx-ed-section--tools {
		padding: 44px 0 52px;
	}

	.nx-ed-h2 {
		font-size: 32px;
	}

	.nx-ed-dek {
		font-size: 17px;
	}

	.nx-ed-grid {
		gap: 28px 20px;
	}

	.nx-ed-media--card {
		height: 140px;
	}

	.nx-ed-title--card {
		font-size: 18px;
	}

	.nx-ed-split {
		row-gap: 8px;
	}

	.nx-ed-big,
	.nx-ed-list {
		grid-column: 1 / -1;
	}

	.nx-ed-split--reverse .nx-ed-list {
		order: 0;
	}

	.nx-ed-media--big {
		height: 240px;
	}

	.nx-ed-title--big {
		font-size: 26px;
	}

	.nx-ed-title--list {
		font-size: 20px;
	}

	.nx-ed-list__item {
		padding: 18px 0;
	}

	.nx-ed-tools {
		gap: 28px 20px;
	}

	.nx-ed-tool__title {
		font-size: 20px;
	}

	.nx-ed-news-wrap {
		padding: 0 0 56px;
	}

	.nx-ed-news {
		padding: 32px 24px;
	}

	.nx-ed-news__title {
		font-size: 30px;
	}
}

@media (max-width: 560px) {
	.nx-ed-grid,
	.nx-ed-tools {
		grid-template-columns: 1fr;
	}

	.nx-ed-media--card {
		height: 190px;
	}

	.nx-ed-head--split {
		flex-direction: column;
		align-items: flex-start;
	}
}
