/* ==========================================================================
   Leeds Roses Fixtures & Results
   All spacing is controlled by the variables below — change them here.
   ========================================================================== */

.lrf {
	--lrf-yellow: var(--e-global-color-5486da2, #f5c518);
	--lrf-dark: var(--e-global-color-4f99fd1, #17181a);

	--lrf-emblem-size: 65px;
	--lrf-arrow-size: 49px;        /* month arrows, scales with the emblems */
	--lrf-arrow-border: 8px;
	--lrf-arrow-icon: 10px;
	--lrf-gap-name: 40px;          /* team name to emblem */
	--lrf-gap-divider: 30px;       /* emblem to central divider, each side */
	--lrf-divider-overhang: 20px;  /* divider runs past the content */
	--lrf-score-gap: 15px;         /* emblem to score */
	--lrf-heading-gap: 75px;       /* month heading to date/venue line */
	--lrf-meta-gap: 25px;          /* date/venue line to top of central divider */
	--lrf-fixture-gap: 50px;       /* bottom of central divider to fixture rule */
	--lrf-fixture-space: 50px;     /* fixture rule to the next fixture */

	width: 100%;
	box-sizing: border-box;
}

.lrf *,
.lrf *::before,
.lrf *::after {
	box-sizing: border-box;
}

.lrf.is-loading {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Month navigation
   Elementor's kit styles every <button> on the page, so the arrow rules are
   written at a higher specificity with !important on the properties Elementor
   sets. Remove the !important flags if you ever drop Elementor.
   -------------------------------------------------------------------------- */

.lrf .lrf-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
}

.lrf .lrf-month-wrap {
	position: relative;
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

.lrf .lrf-month {
	display: inline-block;
	margin: 0;
	padding: 0;
	border-bottom: 8px solid;
	border-color: var(--lrf-yellow) !important;
	font-family: var(--e-global-typography-db2b5bb-font-family), Sans-serif;
	font-size: var(--e-global-typography-db2b5bb-font-size);
	font-weight: var(--e-global-typography-db2b5bb-font-weight);
	text-transform: var(--e-global-typography-db2b5bb-text-transform);
	line-height: var(--e-global-typography-db2b5bb-line-height);
	letter-spacing: var(--e-global-typography-db2b5bb-letter-spacing);
	color: var(--e-global-color-4f99fd1);
}

/* Month picker ------------------------------------------------------------ */

.lrf button.lrf-month-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font: inherit !important;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.lrf .lrf-month-caret {
	display: block;
	width: var(--lrf-arrow-icon);
	height: var(--lrf-arrow-icon);
	flex: 0 0 auto;
	background-color: var(--lrf-dark);
	-webkit-mask-image: var(--lrf-arrow-svg);
	mask-image: var(--lrf-arrow-svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transform: rotate(90deg);
	transition: transform 0.3s ease;
}

.lrf .lrf-month-toggle[aria-expanded="true"] .lrf-month-caret {
	transform: rotate(-90deg);
}

.lrf .lrf-month-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 16px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	min-width: 220px;
	max-width: 90vw;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	background-color: #fff;
	border: 1px solid var(--lrf-dark);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.lrf .lrf-month-menu[hidden] {
	display: none;
}

.lrf button.lrf-month-option {
	display: block !important;
	width: 100%;
	margin: 0 !important;
	padding: 10px 14px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease;
	font-family: var(--e-global-typography-7793a9e-font-family), Sans-serif;
	font-size: var(--e-global-typography-7793a9e-font-size);
	font-weight: var(--e-global-typography-7793a9e-font-weight);
	line-height: var(--e-global-typography-7793a9e-line-height);
	letter-spacing: var(--e-global-typography-7793a9e-letter-spacing);
	color: var(--e-global-color-4f99fd1) !important;
}

.lrf button.lrf-month-option:hover,
.lrf button.lrf-month-option:focus-visible,
.lrf button.lrf-month-option.is-current {
	background-color: var(--lrf-yellow) !important;
}

.lrf button.lrf-arrow,
.lrf .lrf-arrow {
	flex: 0 0 var(--lrf-arrow-size) !important;
	width: var(--lrf-arrow-size) !important;
	height: var(--lrf-arrow-size) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: var(--lrf-arrow-border) solid var(--lrf-yellow) !important;
	border-radius: 50% !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	transition: background-color 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.lrf button.lrf-arrow:hover,
.lrf button.lrf-arrow:focus,
.lrf button.lrf-arrow:focus-visible,
.lrf .lrf-arrow:hover,
.lrf .lrf-arrow:focus-visible {
	background-color: var(--lrf-yellow) !important;
	border-color: var(--lrf-yellow) !important;
}

.lrf .lrf-arrow:focus-visible {
	outline: 2px solid var(--lrf-dark) !important;
	outline-offset: 3px;
}

.lrf .lrf-arrow.is-disabled,
.lrf .lrf-arrow[disabled] {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.lrf .lrf-arrow-icon {
	display: block;
	width: var(--lrf-arrow-icon);
	height: var(--lrf-arrow-icon);
	flex: 0 0 auto;
	background-color: var(--lrf-dark);
	-webkit-mask-image: var(--lrf-arrow-svg);
	mask-image: var(--lrf-arrow-svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: background-color 0.3s ease;
}

.lrf .lrf-arrow--prev .lrf-arrow-icon {
	transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Fixture list
   -------------------------------------------------------------------------- */

.lrf .lrf-list {
	padding-top: var(--lrf-heading-gap);
}

.lrf .lrf-empty {
	margin: 0;
	text-align: center;
	font-family: var(--e-global-typography-7793a9e-font-family), Sans-serif;
	font-size: var(--e-global-typography-7793a9e-font-size);
	font-weight: var(--e-global-typography-7793a9e-font-weight);
	line-height: var(--e-global-typography-7793a9e-line-height);
	letter-spacing: var(--e-global-typography-7793a9e-letter-spacing);
	word-spacing: var(--e-global-typography-7793a9e-word-spacing);
	color: var(--e-global-color-4f99fd1);
}

.lrf .lrf-fixture {
	padding-bottom: calc(var(--lrf-divider-overhang) + var(--lrf-fixture-gap));
	border-bottom: 1px solid var(--lrf-dark);
}

.lrf .lrf-fixture + .lrf-fixture {
	padding-top: var(--lrf-fixture-space);
}

/* Date, venue, postponed flag and ticket link ----------------------------- */

.lrf .lrf-meta {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 20px;
	width: 100%;
}

.lrf .lrf-datetime {
	grid-column: 2;
	margin: 0;
	text-align: center;
	font-family: var(--e-global-typography-7793a9e-font-family), Sans-serif;
	font-size: var(--e-global-typography-7793a9e-font-size);
	font-weight: var(--e-global-typography-7793a9e-font-weight);
	line-height: var(--e-global-typography-7793a9e-line-height);
	letter-spacing: var(--e-global-typography-7793a9e-letter-spacing);
	word-spacing: var(--e-global-typography-7793a9e-word-spacing);
	color: var(--e-global-color-4f99fd1);
}

.lrf .lrf-venue {
	text-transform: uppercase;
}

.lrf .lrf-fixture.is-postponed .lrf-datetime {
	text-decoration: line-through;
}

.lrf .lrf-meta-right {
	grid-column: 3;
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	line-height: 1;
}

.lrf .lrf-postponed {
	font-family: var(--e-global-typography-7793a9e-font-family), Sans-serif;
	font-size: var(--e-global-typography-7793a9e-font-size);
	font-weight: var(--e-global-typography-7793a9e-font-weight);
	line-height: var(--e-global-typography-7793a9e-line-height);
	letter-spacing: var(--e-global-typography-7793a9e-letter-spacing);
	word-spacing: var(--e-global-typography-7793a9e-word-spacing);
	color: var(--e-global-color-4f99fd1);
	text-transform: uppercase;
}

.lrf a.lrf-link,
.lrf button.lrf-link,
.lrf .lrf-link {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	text-decoration: none !important;
	transition: all 0.5s ease;
	font-family: var(--e-global-typography-80e2252-font-family), Sans-serif;
	font-size: var(--e-global-typography-80e2252-font-size);
	font-weight: var(--e-global-typography-80e2252-font-weight);
	line-height: var(--e-global-typography-80e2252-line-height);
	letter-spacing: var(--e-global-typography-80e2252-letter-spacing);
	word-spacing: var(--e-global-typography-80e2252-word-spacing);
	fill: var(--e-global-color-4f99fd1);
	color: var(--e-global-color-4f99fd1) !important;
}

.lrf a.lrf-link:hover,
.lrf a.lrf-link:focus,
.lrf button.lrf-link:hover,
.lrf button.lrf-link:focus {
	color: var(--e-global-color-4f99fd1) !important;
	gap: 11px;
}

.lrf .lrf-link-icon {
	display: block;
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	background-color: var(--lrf-dark);
	-webkit-mask-image: var(--lrf-arrow-svg);
	mask-image: var(--lrf-arrow-svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: all 0.5s ease;
}

.lrf .lrf-link:hover .lrf-link-icon,
.lrf .lrf-link:focus .lrf-link-icon {
	width: 11px;
	height: 11px;
}

.lrf .lrf-link-icon--flip {
	transform: scaleX(-1);
}

/* Previous / Next month, under the last fixture --------------------------- */

.lrf .lrf-footer-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: var(--lrf-fixture-space);
}

.lrf .lrf-footer-nav .lrf-link--next-month {
	margin-left: auto;
}

.lrf button.lrf-link {
	margin: 0 !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* --------------------------------------------------------------------------
   Match: two equal halves split by the central divider.
   The divider is pinned to the exact centre of the module, so it stays put
   however long the team names are.
   -------------------------------------------------------------------------- */

.lrf .lrf-match {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	width: 100%;
	/* The divider starts above the team row, so offset by its overhang. */
	margin-top: calc(var(--lrf-meta-gap) + var(--lrf-divider-overhang));
}

.lrf .lrf-divider {
	position: absolute;
	left: 50%;
	top: calc(var(--lrf-divider-overhang) * -1);
	bottom: calc(var(--lrf-divider-overhang) * -1);
	width: 1px;
	transform: translateX(-50%);
	background-color: var(--e-global-color-4f99fd1);
}

.lrf .lrf-side {
	display: grid;
	align-items: center;
	column-gap: var(--lrf-gap-name);
	row-gap: var(--lrf-score-gap);
	min-width: 0;
}

.lrf .lrf-side--home {
	grid-template-columns: minmax(0, 1fr) auto;
	padding-right: var(--lrf-gap-divider);
}

.lrf .lrf-side--away {
	grid-template-columns: auto minmax(0, 1fr);
	padding-left: var(--lrf-gap-divider);
}

.lrf .lrf-side--home .lrf-team-name {
	grid-column: 1;
	grid-row: 1;
	text-align: right;
}

.lrf .lrf-side--home .lrf-emblem {
	grid-column: 2;
	grid-row: 1;
}

.lrf .lrf-side--home .lrf-score {
	grid-column: 2;
	grid-row: 2;
}

.lrf .lrf-side--away .lrf-emblem {
	grid-column: 1;
	grid-row: 1;
}

.lrf .lrf-side--away .lrf-team-name {
	grid-column: 2;
	grid-row: 1;
	text-align: left;
}

.lrf .lrf-side--away .lrf-score {
	grid-column: 1;
	grid-row: 2;
}

.lrf .lrf-team-name {
	font-family: var(--e-global-typography-735686b-font-family), Sans-serif;
	font-size: var(--e-global-typography-735686b-font-size);
	font-weight: var(--e-global-typography-735686b-font-weight);
	line-height: var(--e-global-typography-735686b-line-height);
	letter-spacing: var(--e-global-typography-735686b-letter-spacing);
	color: var(--e-global-color-4f99fd1);
}

.lrf .lrf-emblem {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--lrf-emblem-size);
	height: var(--lrf-emblem-size);
}

.lrf .lrf-emblem .lrf-emblem-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lrf .lrf-score {
	justify-self: center;
	font-family: var(--e-global-typography-735686b-font-family), Sans-serif;
	font-size: var(--e-global-typography-735686b-font-size);
	font-weight: var(--e-global-typography-735686b-font-weight);
	line-height: var(--e-global-typography-735686b-line-height);
	letter-spacing: var(--e-global-typography-735686b-letter-spacing);
	color: var(--e-global-color-4f99fd1);
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.lrf {
		--lrf-heading-gap: 50px;
		--lrf-emblem-size: 55px;
		--lrf-arrow-size: 42px;
		--lrf-arrow-border: 6px;
		--lrf-arrow-icon: 9px;
		--lrf-gap-name: 24px;
		--lrf-gap-divider: 24px;
	}

	/* Team names and scores drop to the date/venue size. */
	.lrf .lrf-team-name,
	.lrf .lrf-score {
		font-size: var(--e-global-typography-7793a9e-font-size);
	}

	/* Ticket link and postponed flag sit below the date line. */
	.lrf .lrf-meta {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 10px;
		justify-items: center;
	}

	.lrf .lrf-datetime {
		grid-column: 1;
	}

	.lrf .lrf-meta-right {
		grid-column: 1;
		justify-self: center;
		align-items: center;
	}
}

/* --------------------------------------------------------------------------
   Mobile — emblem above the team name on each side, divider still central
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.lrf {
		--lrf-emblem-size: 45px;
		--lrf-arrow-size: 36px;
		--lrf-arrow-border: 4px;
		--lrf-arrow-icon: 8px;
		--lrf-gap-divider: 20px;
	}

	.lrf .lrf-nav {
		gap: 12px;
	}

	/* Matches the site-wide h2 treatment on mobile. */
	.lrf .lrf-month {
		border-bottom: 5px solid;
		border-color: var(--lrf-yellow) !important;
		padding-bottom: 10px;
	}

	.lrf .lrf-side--home,
	.lrf .lrf-side--away {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		row-gap: 12px;
	}

	.lrf .lrf-side--home .lrf-emblem,
	.lrf .lrf-side--away .lrf-emblem {
		grid-column: 1;
		grid-row: 1;
	}

	.lrf .lrf-side--home .lrf-team-name,
	.lrf .lrf-side--away .lrf-team-name {
		grid-column: 1;
		grid-row: 2;
		text-align: center;
	}

	.lrf .lrf-side--home .lrf-score,
	.lrf .lrf-side--away .lrf-score {
		grid-column: 1;
		grid-row: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lrf * {
		transition: none !important;
	}
}
