/* Route tile. One tile per widget; the row layout (gap, wrap, equal widths)
   is the parent Flexbox's or Grid's job. Every tone keeps Deep Green text,
   so all four pass WCAG AA (Yellow 8.6:1, Lime 8.0:1, Sky 5.4:1, white 13:1). */
.rsd-route-tile {
	--rsd-tile-bg: var(--rsd-yellow, #ffcc00);
	--rsd-tile-fg: var(--rsd-deep-green, #09373b);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 260px;
	min-width: 0;
	min-height: 230px;
	box-sizing: border-box;
	padding: 36px 32px 32px;
	border-radius: 32px;
	background: var(--rsd-tile-bg);
	color: var(--rsd-tile-fg);
	font-family: inherit;
	text-decoration: none;
}
.rsd-route-tile--lime  { --rsd-tile-bg: var(--rsd-lime, #c7d540); }
.rsd-route-tile--sky   { --rsd-tile-bg: var(--rsd-sky-blue, #2cb8cb); }
.rsd-route-tile--white,
.elementor a.rsd-route-tile--white {
	--rsd-tile-bg: var(--rsd-white, #ffffff);
	box-shadow: inset 0 0 0 2px var(--rsd-deep-green, #09373b);
}

/* Icon: Deep Green circle, glyph in the tile's colour. */
.rsd-route-tile__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--rsd-tile-fg);
	color: var(--rsd-tile-bg);
}
.rsd-route-tile--white .rsd-route-tile__icon {
	color: var(--rsd-yellow, #ffcc00);
}
.rsd-route-tile__icon svg {
	width: 28px;
	height: 28px;
}

.rsd-route-tile__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.rsd-route-tile__title {
	margin: 0;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.1;
	color: inherit;
}
.rsd-route-tile__text {
	margin: 0;
	font-size: 1.25rem; /* body size, as feature rows and stats */
	line-height: 1.5;
	color: inherit;
}

/* Linked tile: the whole block is the target; hover underlines the title
   only, focus gets the site ring. No motion. */
a.rsd-route-tile:hover .rsd-route-tile__title {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}
a.rsd-route-tile:focus-visible {
	outline: 3px solid var(--rsd-deep-green, #09373b);
	outline-offset: 3px;
}
.band-dark a.rsd-route-tile:focus-visible,
.band-devon a.rsd-route-tile:focus-visible {
	outline-color: var(--rsd-yellow, #ffcc00);
}

/* Phones: icon beside the text instead of above it. */
@media (max-width: 599px) {
	.rsd-route-tile {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		min-height: 0;
		padding: 22px 20px;
		border-radius: 24px;
	}
	.rsd-route-tile__icon {
		width: 48px;
		height: 48px;
	}
	.rsd-route-tile__icon svg {
		width: 24px;
		height: 24px;
	}
	.rsd-route-tile__body {
		gap: 4px;
	}
	.rsd-route-tile__title {
		font-size: 25px;
	}
	.rsd-route-tile__text {
		font-size: 17px;
		line-height: 1.45;
	}
}

/* The tile is a link, so the kit's `a { color }` rule (.elementor-kit-N a)
   would recolour it; outrank that with .elementor + the element selector. */
.elementor a.rsd-route-tile,
.elementor a.rsd-route-tile:hover,
.elementor a.rsd-route-tile:focus {
	color: var(--rsd-tile-fg);
}
