/*
 * Front-end styles for pbs/checklist. `__PREFIX__` is the neutral class prefix; logical
 * properties only (wp/bin/pbs-logical-css.php). Loaded only where this block renders.
 */
.__PREFIX__-checklist {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin-block: 1em;
	margin-inline: 0;
	padding: 0;
	list-style: none;
}

.__PREFIX__-checklist__item {
	display: flex;
	gap: 0.6em;
	align-items: baseline;
	margin: 0;
}

.__PREFIX__-checklist__mark {
	flex: none;
	align-self: center;
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--__PREFIX__-accent, currentcolor);
	line-height: 0;
}

.__PREFIX__-checklist__mark svg {
	inline-size: 1.2em;
	block-size: 1.2em;
}

.__PREFIX__-checklist__item--done .__PREFIX__-checklist__text {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.__PREFIX__-checklist__item--todo .__PREFIX__-checklist__mark {
	opacity: 0.8;
}

/* Shared by the G-B blocks. Each block file carries its own copy, because a page loads only the
   stylesheets of the blocks it uses. */
.__PREFIX__-accent--primary {
	--__PREFIX__-accent: var(--wp--preset--color--primary, var(--wp--preset--color--accent-3, #5b21b6));
}

.__PREFIX__-accent--secondary {
	--__PREFIX__-accent: var(--wp--preset--color--secondary, var(--wp--preset--color--accent-4, #3f3f46));
}

.__PREFIX__-accent--contrast {
	--__PREFIX__-accent: var(--wp--preset--color--contrast, currentcolor);
}

.__PREFIX__-accent--text {
	--__PREFIX__-accent: currentcolor;
}

.__PREFIX__-kit-icon,
.__PREFIX__-kit-icon svg {
	display: inline-block;
	line-height: 0;
}

.__PREFIX__-sr {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
