/*
 * Numbered list (home-6 "Top 5 Benefits"), the HTML reference. The original theme: an ordered core/list; the circle variant is the
 * Numbered circles block style (themes/furnica/wp/block-styles/numbered-circles), type and colour are the list's settings.
 * The number is a CSS counter: a 75px accent circle (36px number), 25px, a 49px line, 30px, then the text; items 35px
 * apart.
 */
.rt-numbered-list--circle {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rt-number;
	color: var(--rt-color-body);
	font-size: var(--rt-font-size-base);
	line-height: 1.625;
}

.rt-numbered-list--circle > li {
	position: relative;
	box-sizing: border-box;
	min-height: 4.6875rem;
	padding-inline-start: 11.1875rem;
	align-content: center;
	counter-increment: rt-number;
}

.rt-numbered-list--circle > li + li {
	margin-top: 2.1875rem;
}

.rt-numbered-list--circle > li::before {
	content: counter(rt-number);
	position: absolute;
	top: 50%;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 4.6875rem;
	height: 4.6875rem;
	border-radius: 50%;
	background-color: var(--rt-color-accent);
	color: var(--rt-color-on-accent);
	font-family: var(--rt-font-family-heading);
	font-size: var(--rt-font-size-x-large);
	font-weight: var(--rt-font-weight-semibold);
	line-height: 1;
	translate: 0 -50%;
}

.rt-numbered-list--circle > li::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-start: 6.25rem;
	width: 3.0625rem;
	border-top: 1px solid var(--rt-color-contrast);
}

/* Phones: a smaller circle, no line */
@media (max-width: 37.5rem) {
	.rt-numbered-list--circle > li {
		min-height: 3.5rem;
		padding-inline-start: 4.75rem;
	}

	.rt-numbered-list--circle > li::before {
		width: 3.5rem;
		height: 3.5rem;
		font-size: var(--rt-font-size-large);
	}

	.rt-numbered-list--circle > li::after {
		display: none;
	}
}
