/**
 * _lists.css — the kit's lists: teal dots, numbered teal circles, nested navy dashes, the checklist.
 * Owns: List blocks (ul / ol.wp-block-list) in content; .is-style-rl-checklist.
 * Doesn't own: lists other blocks draw (menus, Spectra tabs, Gravity Forms choices), breadcrumbs and pagination
 * (_navigation.css) — the .wp-block-list class keeps those out.
 * Depends on: global/_tokens.css. Never browser bullets or numbers (STYLE.md → Lists).
 */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) :is(ul, ol).wp-block-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

/* Spectra's container CSS sets an ol anywhere inside a nested container to margin-left: 20px at (0,4,2): the lists' own
   left edge wins it back. */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) .wp-block-uagb-container.wp-block-uagb-container :is(ul, ol).wp-block-list.wp-block-list {
	margin-left: 0;
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) :is(ul, ol).wp-block-list > li {
	position: relative;
	padding-left: 24px;
}

/* Unordered: a 10px teal dot, 14px from its text, centred on the first line (29px). */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	top: 9.5px;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rl-color-alt-brand);
}

/* Ordered: a 28px teal circle with a navy 700 number. */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) ol.wp-block-list {
	counter-reset: rl-step;
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) ol.wp-block-list > li {
	padding-left: 42px;
	counter-increment: rl-step;
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) ol.wp-block-list > li::before {
	content: counter(rl-step);
	position: absolute;
	top: 0.5px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--rl-color-alt-brand);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: var(--rl-color-brand);
	font-variant-numeric: tabular-nums;
}

/* Nested: indented 28px; the second level marks with a 12×2 navy dash. */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) :is(ul, ol).wp-block-list :is(ul, ol).wp-block-list {
	margin-top: 12px;
	margin-left: 4px;
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) :is(ul, ol).wp-block-list :is(ul, ol).wp-block-list > li {
	padding-left: 24px;
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) :is(ul, ol).wp-block-list :is(ul, ol).wp-block-list > li::before {
	content: "";
	top: 13.5px;
	width: 12px;
	height: 2px;
	border-radius: 0;
	background: var(--rl-color-brand);
}

/* Checklist: a 22px teal circle with a navy check. */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) ul.wp-block-list.is-style-rl-checklist > li {
	padding-left: 36px;
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) ul.wp-block-list.is-style-rl-checklist > li::before {
	top: 3.5px;
	width: 22px;
	height: 22px;
	background: var(--rl-color-alt-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23272F44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
