/*
 * Sitewide article list polish for plain editorial lists.
 * Scoped to .entry-content and classless lists so custom components keep their own layout.
 */

body .entry-content :where(ul, ol):not([class]){
	box-sizing:border-box;
	max-width:min(74ch, 100%);
	margin:clamp(20px, 2vw, 28px) 0 clamp(26px, 2.4vw, 34px);
	padding:0;
	display:grid;
	gap:10px;
	list-style:none;
}

body .entry-content :where(ul, ol):not([class]) > li{
	/* Let editorial grid items shrink within their reading rail, including NBSP phrases. */
	min-width:0;
	position:relative;
	margin:0;
	padding:0 0 0 30px;
	color:inherit;
	font:inherit;
	line-height:1.55;
	list-style:none;
}

body .entry-content ul:not([class]) > li::before{
	content:"";
	position:absolute;
	left:0;
	top:.58em;
	width:9px;
	height:9px;
	border:1px solid oklch(42% 0.075 179);
	border-radius:999px;
	background:oklch(42% 0.075 179);
	box-shadow:0 0 0 5px oklch(42% 0.075 179 / .09);
}

body .entry-content ol:not([class]){
	counter-reset:jt-article-list;
}

body .entry-content ol:not([class]) > li{
	counter-increment:jt-article-list;
	padding-left:42px;
}

body .entry-content ol:not([class]) > li::before{
	content:counter(jt-article-list, decimal-leading-zero);
	position:absolute;
	left:0;
	top:.08em;
	display:inline-grid;
	place-items:center;
	width:28px;
	height:28px;
	border:1px solid oklch(78% 0.016 70);
	background:oklch(97% 0.008 67);
	color:oklch(30% 0.007 286);
	font-family:Roobert,"Helvetica Neue",Arial,sans-serif;
	font-size:11px;
	font-weight:800;
	line-height:1;
}

body .entry-content :where(ul, ol):not([class]) :where(ul, ol):not([class]){
	margin:10px 0 0;
	gap:7px;
}

body .entry-content :where(ul, ol):not([class]) > li > span{
	font:inherit!important;
}

body .entry-content :where(.wp-block-buttons, .slick-dots, .rrssb-buttons, .wp-block-gallery, .blocks-gallery-grid, .gallery) :where(ul, ol){
	display:revert;
	margin:revert;
	padding:revert;
	list-style:revert;
}

body .entry-content :where(.wp-block-buttons, .slick-dots, .rrssb-buttons, .wp-block-gallery, .blocks-gallery-grid, .gallery) :where(li){
	padding:revert;
	list-style:revert;
}

body .entry-content :where(.wp-block-buttons, .slick-dots, .rrssb-buttons, .wp-block-gallery, .blocks-gallery-grid, .gallery) :where(li)::before{
	content:none;
}

@media (max-width: 720px){
	body .entry-content :where(ul, ol):not([class]){
		gap:9px;
		margin:18px 0 28px;
	}

	body .entry-content :where(ul, ol):not([class]) > li{
		padding-left:26px;
		line-height:1.5;
	}

	body .entry-content ol:not([class]) > li{
		padding-left:38px;
	}
}

/* 2026-09-18: the jt-pr-next15 safety grid (plugin jt-component-system, hash-registered — not editable here) is a class-less
   <ul> of dark cards; the generic bullet above painted a green dot over each card's top-left corner. */
body .entry-content .jt-pr-next15__safety ul > li::before{
	content:none;
}
