/*
 * Lists in copy (2026-10-14, the two column's and callout's List style
 * setting, from the modern gap mockups): how a plain list in the text is
 * drawn. Bullets is the browser's list as style.css indents it. Checks
 * puts a check in the accent before each item, two columns in a tinted
 * box from four items. Chips sets each item as a small card with a check,
 * or a pin for places. The block carries lp-block--list-<style>; a style
 * may make one its default (the launchpad_default_list_style filter), and
 * Bullets then asks for the plain list back. Colours ride the accent fill
 * and ink (style.css) and the card tokens, so the page's palette, tones
 * and corners apply.
 */

.lp-block--list-bullets :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) {
	display: block;
	padding-left: 1.25em;
	list-style: disc;
}

.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]),
.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]),
.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) {
	display: grid;
	gap: 10px 24px;
	margin: 1.25em 0;
	padding: 0;
	list-style: none;
}

.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li,
.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li,
.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li {
	margin: 0;
	color: var(--text-primary);
}

/* Checks: the check in the accent's ink on a round of the accent's fill. */
.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li {
	position: relative;
	padding-left: 34px;
	font-weight: 600;
}

.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--lp-accent-fill, var(--accent-300));
}

.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 22px;
	height: 22px;
	background: var(--lp-accent-ink, #fff);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Four or more checks: two columns in a tinted box. */
.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]):has(> li:nth-child(4)) {
	grid-template-columns: 1fr 1fr;
	padding: 20px 22px;
	border-radius: var(--card-radius, 12px);
	background: var(--surface-subtle);
}

/* Chips: each item a small card, the marker in the accent. */
.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]),
.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li,
.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: var(--card-border, 1px solid var(--border-default));
	border-radius: var(--card-radius, 12px);
	font-family: var(--font-family-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	background: var(--surface-card, #fff);
	box-shadow: var(--card-shadow, none);
}

.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li::before,
.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--lp-accent-fill, var(--accent-300));
}

.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) > li::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media screen and (max-width: 500px) {
	.lp-block--list-checks :is(.lp-two-column__body, .lp-callout__content) ul:not([class]):has(> li:nth-child(4)),
	.lp-block--list-chips :is(.lp-two-column__body, .lp-callout__content) ul:not([class]),
	.lp-block--list-pins :is(.lp-two-column__body, .lp-callout__content) ul:not([class]) {
		grid-template-columns: 1fr;
	}
}
