/* NICHO Trabalho · KIT A · Editorial */

/* Texto do post (the_content) --------------------------------------------------- */
.nx-content {
	font-family: var(--nx-display);
	font-size: 20px;
	line-height: 1.72;
	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: 24px;
}

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

:where(.nx-content) h2 {
	margin: 44px 0 14px;
	font-family: var(--nx-display);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.015em;
	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: 32px 0 10px;
	font-family: var(--nx-display);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--nx-ink);
}

:where(.nx-content) h4 {
	margin: 24px 0 8px;
	font-family: var(--nx-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--nx-ink);
}

:where(.nx-content) a {
	color: var(--nx-ink);
	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: 26px;
}

: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: 4px;
}

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

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

:where(.nx-content) blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--nx-accent);
	font-size: 23px;
	font-style: italic;
	line-height: 1.5;
	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;
	background: #fff;
	font-family: var(--nx-font);
	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);
	background: transparent;
	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: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--nx-line);
	font-family: var(--nx-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--nx-muted);
}

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

:where(.nx-content) details > :not(summary) {
	margin: 10px 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-family: var(--nx-font);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

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

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

	:where(.nx-content) h2 {
		font-size: 27px;
	}
}
