/*
 * Included / not included (data-section «Incluye / No incluye», pattern transpirenaica/included).
 * Ported from base.css and mobile.css of 01-transpirenaica-en-moto with docs/class-map.md:
 * .incluye → .included, .incluye__col--no → .included__col--excluded, .lista → .checklist.
 *
 * - The title icon is the mask of components.css (mask-icon--check-circle / --cross-circle) at 26 px.
 * - Each li gets its tick/cross as an absolute pseudo-element and a padding that centres the text: no flex on
 *   the li, so <strong>, <em> or <a> inside the text do not become grid/flex items.
 */

.included {
	background: var(--cream);
}

.included__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-8);
}

.included__grid > .included__col {
	margin: 0;
	min-width: 0;
}

.included .included__title {
	--icon-size: 26px;
	--icon-color: var(--forest);
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0;
	padding-bottom: var(--space-4);
	font-family: var(--gp-font--barlow-condensed);
	font-weight: 800;
	font-size: var(--fs-h3);
	line-height: 1;
	letter-spacing: var(--ls-heading);
	text-transform: uppercase;
	color: var(--forest-800);
	border-bottom: 2px solid var(--forest-800);
}

.included .included__col--excluded .included__title {
	--icon-color: var(--rust);
	color: var(--ink);
	border-bottom-color: var(--ink);
}

.included ul.checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * The approved row is a flex li (align-items:center) of min-height 56 px (52 px on mobile), border-box, with
 * 12 px of padding: one-line rows are 56 px with the text centred, and rows of several lines grow to
 * lines + 24 px + rule. Here the li stays a block (so <strong>, <em> or <a> are not flex items) and
 * align-content:center, which block containers support, centres the text the same way. The icon is centred
 * on the whole row (top 50%), as in the approved CSS, also in rows of two lines.
 */
.included .checklist li {
	--row-h: 56px;
	position: relative;
	display: block;
	align-content: center;
	box-sizing: border-box;
	min-height: var(--row-h);
	margin: 0;
	padding: var(--space-3) 0 var(--space-3) 36px;
	border-bottom: 1px solid var(--border);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--ink);
}

.included .checklist li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-color: var(--forest);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 18px 18px;
	mask-size: 18px 18px;
}

.included .checklist--included li::before {
	-webkit-mask-image: url("../../icons/check.svg?v=1");
	mask-image: url("../../icons/check.svg?v=1");
}

.included .checklist--excluded li::before {
	background-color: var(--rust);
	-webkit-mask-image: url("../../icons/cross.svg?v=1");
	mask-image: url("../../icons/cross.svg?v=1");
}

@media (max-width: 767px) {
	.included__grid {
		grid-template-columns: 1fr;
		gap: var(--space-7);
	}

	.included .checklist li {
		--row-h: 52px;
	}
}
