:where(.wwrl-resource-links) {
	--wwrl-accent: var(--sfl-scout-section-colour, var(--sfl-hero-bg, #003982));
	--wwrl-circle-bg: #f2f2f2;
	--wwrl-focus: var(--sfl-finder-button, #ffe627);
	box-sizing: border-box;
	font-family: inherit;
	padding: clamp(2rem, 5vw, 4.5rem) 0;
}

:where(.wwrl-resource-links) *,
:where(.wwrl-resource-links) *::before,
:where(.wwrl-resource-links) *::after {
	box-sizing: inherit;
}

:where(.wwrl-resource-links__inner:not(.sfl-layout)) {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/*
 * The plugin now emits the same structural classes used by the Skills for Life
 * Running Scouts component: sfl-running, sfl-section-heading and
 * sfl-running__grid. The low-specificity declarations below are fallbacks only;
 * the theme's own component rules win whenever they are present.
 */
:where(.wwrl-resource-links__header) {
	margin: 0 0 clamp(1.75rem, 3.5vw, 3rem);
	text-align: center;
}

/*
 * The Skills for Life heading component can use a multi-column layout in some
 * contexts. Keep this shortcode's heading and supporting text as one centred
 * block so it matches the built-in Running Scouts presentation.
 */
.sfl-running.wwrl-resource-links
.sfl-section-heading.wwrl-resource-links__header {
	display: block;
	width: 100%;
	text-align: center;
}

.sfl-running.wwrl-resource-links
.sfl-section-heading.wwrl-resource-links__header > p {
	width: 100%;
	max-width: none;
	margin: 0.7rem 0 0;
	text-align: center;
}

:where(.wwrl-resource-links__header) h2 {
	margin: 0;
	font: inherit;
	font-family: inherit;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

:where(.wwrl-resource-links__header) p {
	max-width: 50rem;
	margin: 0.7rem auto 0;
	font: inherit;
	font-family: inherit;
	font-size: clamp(1rem, 1.8vw, 1.35rem);
	line-height: 1.45;
}

:where(.wwrl-resource-links__grid) {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.75rem);
	align-items: start;
	margin: 0;
	padding: 0;
}

.wwrl-resource-links__grid--custom-columns {
	grid-template-columns: repeat(var(--wwrl-columns, 6), minmax(0, 1fr));
}

:where(.wwrl-resource-links__link) {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	color: var(--wwrl-accent);
	font: inherit;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
}

:where(.wwrl-resource-links__link:hover),
:where(.wwrl-resource-links__link:focus-visible) {
	color: var(--wwrl-accent);
	text-decoration: none;
}

.wwrl-resource-links__link:focus-visible {
	outline: 3px solid var(--wwrl-focus);
	outline-offset: 5px;
	border-radius: 0.25rem;
}

:where(.wwrl-resource-links__link.is-disabled) {
	cursor: default;
	opacity: 0.55;
}

:where(.wwrl-resource-links__icon) {
	display: inline-flex;
	width: clamp(7.5rem, 12vw, 11rem);
	aspect-ratio: 1;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wwrl-circle-bg);
}

:where(.wwrl-resource-links__icon) .fa {
	font-size: clamp(2.8rem, 5vw, 4.6rem);
	line-height: 1;
}

:where(.wwrl-resource-links__label) {
	display: block;
	max-width: 12rem;
	margin: 0;
	font: inherit;
	font-family: inherit;
	font-size: clamp(1.05rem, 1.7vw, 1.42rem);
	font-weight: 700;
	line-height: 1.15;
	text-wrap: balance;
}

:where(.wwrl-resource-links__description) {
	display: block;
	max-width: 14rem;
	margin: -0.35rem 0 0;
	color: inherit;
	font: inherit;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.35;
}

.wwrl-admin-hint {
	padding: 0.75rem 1rem;
	border-left: 4px solid #dba617;
	background: #fff8e5;
}

@media (max-width: 1100px) {
	.wwrl-resource-links__grid--custom-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	:where(.wwrl-resource-links) {
		padding-block: 2.25rem;
	}

	.wwrl-resource-links__grid--custom-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 1rem;
	}
}
