/**
 * nl-info-box – "Why … from NicLen?" box 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.
 * Width and column layout come from the Elementor container; the box fills the height of its row,
 * so it lines up with the contact box next to it.
 */

.e-con > .elementor-widget-shortcode:has(.nl-info-box) {
	align-self: stretch;
}

.elementor-widget-shortcode:has(.nl-info-box) .elementor-shortcode {
	height: 100%;
}

/*
 * In the category template the shortcode widget carries the class "nl-info-box-slot". Without a box
 * (no text in the category or its parents) the slot is hidden and the next element (the contact box) takes the full row.
 */
.nl-info-box-slot:not(:has(.nl-info-box)) {
	display: none;
}

.nl-info-box-slot:not(:has(.nl-info-box)) + * {
	grid-column: 1 / -1;
}

.nl-info-box.nl-portfolio {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 32px;
	border-radius: var(--nl-r-l);
	background: var(--nl-action);
	color: #fff;
}

.nl-info-box .nl-info-box__title {
	font-family: var(--nl-font-heading);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.25;
	color: #fff;
}

.nl-info-box .nl-info-box__text {
	max-width: 60ch;
	font-size: 16px;
	line-height: 1.6;
	color: #fff;
}

@media (max-width: 767px) {
	.nl-info-box.nl-portfolio {
		padding: 24px;
	}

	.nl-info-box .nl-info-box__title {
		font-size: 20px;
	}
}
