/* NICHO Trabalho · KIT E · Mosaico */

.nx-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--nx-ink);
	overflow-wrap: break-word;
}

/* .nx-content > :where(*): vence o reset "p { margin: 0 }" da base do kit */
.nx-content > :where(*) {
	margin-top: 0;
	margin-bottom: 22px;
}

.nx-content > :where(*:last-child) {
	margin-bottom: 0;
}

:where(.nx-content) h2 {
	margin: 36px 0 14px;
	font-family: var(--nx-display);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	text-wrap: balance;
	color: var(--nx-ink);
	scroll-margin-top: 24px;
}

:where(.nx-content) > h2:first-child {
	margin-top: 0;
}

:where(.nx-content) h3 {
	margin: 28px 0 10px;
	font-family: var(--nx-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--nx-ink);
	scroll-margin-top: 24px;
}

:where(.nx-content) h4 {
	margin: 22px 0 8px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--nx-ink);
	scroll-margin-top: 24px;
}

:where(.nx-content) a {
	color: var(--nx-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--nx-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

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

:where(.nx-content) ul,
:where(.nx-content) ol {
	padding-left: 24px;
}

:where(.nx-content) li + li {
	margin-top: 8px;
}

:where(.nx-content) li::marker {
	color: var(--nx-accent-ink);
}

.nx-content img,
.nx-content video,
.nx-content iframe {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.nx-content figure {
	margin-left: 0;
	margin-right: 0;
}

.nx-content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--nx-muted);
}

:where(.nx-content) blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 18px 22px;
	border-radius: 16px;
	background: var(--nx-tint-12);
	font-size: 18px;
	line-height: 1.55;
	color: var(--nx-ink);
}

.nx-content hr {
	border: 0;
	border-top: 1px solid var(--nx-line);
}

.nx-content .wp-block-table {
	overflow-x: auto;
}

:where(.nx-content) table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nx-ink);
	font-variant-numeric: tabular-nums;
}

:where(.nx-content) th {
	padding: 12px 14px;
	border-bottom: 2px solid var(--nx-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
	color: var(--nx-muted);
}

:where(.nx-content) td {
	padding: 13px 14px;
	border-bottom: 1px solid var(--nx-line);
}

/* Perguntas frequentes (blocos <details>) */
:where(.nx-content) details {
	margin-bottom: 10px;
	padding: 18px 22px;
	border-radius: 16px;
	background: var(--nx-bg);
	font-size: 16px;
	line-height: 1.6;
	color: var(--nx-muted);
}

:where(.nx-content) summary {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--nx-ink);
	cursor: pointer;
}

:where(.nx-content) details > :not(summary) {
	margin: 8px 0 0;
}

/* Botões dos blocos ACF do tema (antes estilizados pelo CSS global) */
.nx-content .button,
.nx-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--nx-ink);
	color: var(--nx-btn-text, #fff) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.nx-content .button:hover,
.nx-content .wp-block-button__link:hover {
	background: #000;
	color: var(--nx-btn-text, #fff) !important;
}

@media (max-width: 860px) {
	.nx-content {
		font-size: 16px;
	}

	:where(.nx-content) h2 {
		margin-top: 30px;
		font-size: 24px;
	}

	:where(.nx-content) h3 {
		font-size: 20px;
	}

	:where(.nx-content) blockquote {
		font-size: 17px;
	}
}
