.s2h-ridelogic-categories {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	padding: 0;
	margin: 1rem 0 2rem;
	list-style: none;
}

.s2h-ridelogic-categories a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #dfe4e9;
	border-radius: 0.375rem;
	overflow: hidden;
}

.s2h-ridelogic-categories a:hover,
.s2h-ridelogic-categories a:focus-visible {
	border-color: currentColor;
}

.s2h-ridelogic-categories img {
	display: block;
	width: 100%;
	height: auto;
}

.s2h-ridelogic-categories span {
	display: block;
	padding: 0.85rem;
	font-weight: 600;
}

.s2h-ridelogic-path ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.5em;
	list-style: none;
	padding: 0;
	margin: 0 0 0.85em;
	font-size: 0.95em;
}

.s2h-ridelogic-path li + li::before {
	content: '→';
	margin-inline-end: 0.5em;
}

.s2h-ridelogic-path a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 850px) {
	.s2h-ridelogic-categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 360px) {
	.s2h-ridelogic-categories {
		grid-template-columns: 1fr;
	}
}
