/**
 * nl-seo-text – SEO heading and text of a category.
 *
 * Breakpoint template, see nl-base.css. Selectors use two classes so they win against
 * the Elementor kit (".elementor-kit-N h2") and the theme.
 */

/* Same fix as in nl-category-grid.css: full width in a wrapping flex container. */
.e-con-inner > .elementor-widget-nl-seo-text,
.e-con > .elementor-widget-nl-seo-text {
	width: var(--container-widget-width, 100%);
	--flex-grow: var(--container-widget-flex-grow);
}

.nl-seo-text.nl-portfolio {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 760px;
}

.nl-seo-text .nl-seo-text__title {
	font-family: var(--nl-font-heading);
	font-size: 30px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--nl-heading);
}

.nl-seo-text .nl-seo-text__body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--nl-text);
}

/* Content of the WYSIWYG field: paragraphs, subheadings, lists, links. */
.nl-seo-text .nl-seo-text__body > * {
	margin: 0 0 12px;
}

.nl-seo-text .nl-seo-text__body > :last-child {
	margin-bottom: 0;
}

.nl-seo-text .nl-seo-text__body :is(h2, h3, h4, h5, h6) {
	margin-top: 24px;
	font-family: var(--nl-font-heading);
	font-size: 20px;
	font-weight: 900;
	line-height: 1.3;
	color: var(--nl-navy);
}

.nl-seo-text .nl-seo-text__body > :first-child {
	margin-top: 0;
}

.nl-seo-text .nl-seo-text__body :is(ul, ol) {
	padding-left: 1.4em;
}

.nl-seo-text .nl-seo-text__body li + li {
	margin-top: 4px;
}

.nl-seo-text .nl-seo-text__body a {
	color: var(--nl-action);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nl-seo-text .nl-seo-text__body a:hover,
.nl-seo-text .nl-seo-text__body a:focus-visible {
	color: var(--nl-navy);
}

@media (max-width: 767px) {
	.nl-seo-text .nl-seo-text__title {
		font-size: 22px;
	}

	.nl-seo-text .nl-seo-text__body :is(h2, h3, h4, h5, h6) {
		font-size: 18px;
	}
}
