/* Rand Icon List */
.rand-il { margin-bottom: 0; }
.rand-il .rand-il__list,
:where(.editor-styles-wrapper) .rand-il .rand-il__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 5px;
	column-gap: 0;
	margin: 0 0 10px 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.rand-il .rand-il__item {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rand-il .rand-il__item::before, .rand-il .rand-il__item::marker { content: none; }
.rand-il .rand-il__link { display: flex; align-items: inherit; text-decoration: none; color: inherit; }
.rand-il .rand-il__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	padding: 4px 0;
	font-size: 20px;
	line-height: 1;
}
.rand-il .rand-il__icon svg { width: 1em; height: 1em; }
.rand-il .rand-il__text { flex: 1 1 auto; min-width: 0; }
.rand-il--icon-top .rand-il__item, .rand-il--icon-top .rand-il__link { align-items: flex-start; }
.rand-il--icon-bottom .rand-il__item, .rand-il--icon-bottom .rand-il__link { align-items: flex-end; }
.rand-il--align-center .rand-il__item { justify-content: center; }
.rand-il--align-right .rand-il__item { justify-content: flex-end; }
.rand-il .rand-il__item--indent-1 { padding-left: 2rem; }
.rand-il .rand-il__item--indent-2 { padding-left: 4rem; }
.rand-il .rand-il__item--indent-3 { padding-left: 6rem; }
.rand-il .rand-il__item--indent-4 { padding-left: 8rem; }
.rand-il .rand-il__item--indent-5 { padding-left: 10rem; }
.rtl .rand-il .rand-il__icon { margin-right: 0; margin-left: 10px; }

/* Editor: inner block wrappers must not break the grid. */
.editor-styles-wrapper .rand-il .rand-il__list > .block-list-appender { grid-column: 1 / -1; }
.editor-styles-wrapper .rand-il .rand-il__list > .wp-block { margin: 0 !important; max-width: none; }

/* ---- Additions: numbers, descriptions, item cards, hover effects ---- */
.rand-il .rand-il__item { box-sizing: border-box; border: 0 solid transparent; transition: color var(--rand-il-speed, .3s) ease, background var(--rand-il-speed, .3s) ease, box-shadow var(--rand-il-speed, .3s) ease, border-color var(--rand-il-speed, .3s) ease, transform var(--rand-il-speed, .3s) ease; }
.rand-il .rand-il__icon { box-sizing: content-box; transition: color var(--rand-il-speed, .3s) ease, background var(--rand-il-speed, .3s) ease, transform var(--rand-il-speed, .3s) ease; }
.rand-il .rand-il__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.rand-il .rand-il__desc { display: block; margin-top: 2px; font-size: .85em; line-height: 1.45; opacity: .8; }
.rand-il .rand-il__desc:empty { display: none; }

/* Numbered list (CSS counters) */
.rand-il--numbered .rand-il__list { counter-reset: rand-il; }
.rand-il--numbered .rand-il__item { counter-increment: rand-il; }
.rand-il .rand-il__num { width: 1em; height: 1em; }
.rand-il .rand-il__num::before { content: counter(rand-il); font-size: .62em; font-weight: 700; line-height: 1; font-family: inherit; }
.rand-il--zero .rand-il__num::before { content: counter(rand-il, decimal-leading-zero); }
.rand-il--default .rand-il__num::before { font-size: .8em; }

/* Hover effects */
.rand-il--fx-slide .rand-il__item:hover { transform: translateX(6px); }
.rand-il--fx-lift .rand-il__item:hover { transform: translateY(-3px); }
.rand-il--fx-icon-grow .rand-il__item:hover .rand-il__icon { transform: scale(1.2); }
.rand-il--fx-icon-spin .rand-il__item:hover .rand-il__icon { transform: rotate(360deg); }
.rand-il--fx-icon-slide .rand-il__item:hover .rand-il__icon { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.rand-il .rand-il__item, .rand-il .rand-il__icon { transition: none; }
	.rand-il .rand-il__item:hover, .rand-il .rand-il__item:hover .rand-il__icon { transform: none; }
}
