/* markdown task list tweaks
   v6: literal [x] / [ ] text checkboxes ("Index of /" language) —
   no more nerd-font glyphs, pairs with theme.css/theme.js */

/* hide list bullets for markdown task items */
li:has(> p.task-list-item) {
	list-style-type: none;
	margin-left: 0;
}

/* turn Y / N into literal bracket checkboxes with no flash */
body .todo_pend,
body .todo_done {
	position: relative;
	display: inline-block;
	margin: 0 .45em 0 0;
	top: 0;
	font-size: 0 !important; /* hide the literal Y / N text */
}

body .todo_pend::before,
body .todo_done::before {
	font-family: 'JetBrainsMono Nerd Font', 'JetBrains Mono', monospace;
	font-size: 14px !important; /* absolute size so it survives parent font-size: 0 */
	line-height: 1;
	display: inline-block;
	white-space: pre;
}

body .todo_pend::before {
	content: '[ ]' !important;
	color: #8a8a8a;
}

body .todo_done::before {
	content: '[x]' !important;
	color: #6b9b7a;
}
