.fm-design-v1 {
	--fm-home-graphite: #10141c;
	--fm-home-lime: #b9f52b;
	--fm-home-background: #f3f5f7;
	--fm-home-link: #426713;
	--fm-home-line: #d8dde3;
	--fm-home-diagonals: linear-gradient(125deg, transparent 84%, #b9f52b20 84% 90%, #b9f52b42 90% 93%, transparent 93%);
}

body.fm-home.fm-design-v1 { background: var(--fm-home-background); }
.fm-design-v1 .fm-site-header,
.fm-home .fm-home-search,
.fm-home .fm-social:is(.fm-social--3, .fm-social--4),
.fm-home .fm-tournaments__heading,
.fm-home .fm-tournaments__players h3 {
	background: var(--fm-home-diagonals), var(--fm-home-graphite);
	color: #fff;
}

.fm-design-v1 .fm-site-header__inner { justify-content: space-between; }
.fm-site-header .fm-social--1,
.fm-site-header .fm-social--2 { margin: 0; }
.fm-site-header .fm-social--1 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-inline-start: auto;
}
.fm-site-header .fm-social__heading {
	display: grid;
	margin: 0;
	line-height: 1.25;
	font-size: 12px;
}
.fm-site-header .fm-social__heading strong { color: var(--fm-home-lime); }
.fm-site-header .fm-social--2 { display: none; }
.fm-site-header .fm-social__links,
.fm-home .fm-social--3 .fm-social__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fm-site-header .fm-social a,
.fm-home .fm-social--3 .fm-social__links a {
	display: grid;
	justify-items: center;
	align-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 12px;
}
.fm-site-header .fm-social img,
.fm-home .fm-social--3 img {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
}
.fm-site-header .fm-social a:has(img) span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

@media (min-width: 992px) {
	.fm-design-v1 .fm-site-header .fm-header-tools { display: none; }
}
@media (max-width: 991px) {
	.fm-site-header .fm-social--1 { display: none; }
	.fm-site-header .fm-social--2 { display: block; }
	.fm-design-v1 .fm-site-header .fm-header-tools { margin-inline: 0; }
}

.fm-home .fm-home-columns {
	display: grid;
	gap: 24px;
	margin-block-end: 20px;
}
.fm-home-primary, .fm-home-side { min-width: 0; }
.fm-home .fm-home-side,
.fm-home .fm-home-side #sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.fm-home .fm-home-side #sidebar {
	float: none;
	width: 100%;
	padding: 0;
	margin: 0;
}
.fm-home .fm-home-side #sidebar > * { min-width: 0; max-width: 100%; margin: 0; }
.fm-home .fm-home-side #sidebar > .widget_fm_tournament_sidebar { order: -1; }
.fm-home .fm-home-side #sidebar > .widget iframe { max-width: 100%; }
@media (min-width: 992px) {
	.fm-home .fm-home-columns { grid-template-columns: minmax(0, var(--fm-main-column, 1456px)) var(--fm-sidebar, 360px); }
}

.fm-home-search {
	padding: 20px;
	border-radius: 8px;
}
.fm-home-search h2 {
	margin: 0 0 12px;
	color: inherit;
	font-size: 18px;
	line-height: 1.25;
}
.fm-home-search__form {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	border-radius: 9px;
	background: #fff;
	color: var(--fm-home-graphite);
}
.fm-home .fm-home-search__form :is(input, button) {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}
.fm-home-search__form input { padding: 0 10px 0 0; font-size: 14px; }
.fm-home-search__form input::placeholder { color: #697787; opacity: 1; }
.fm-home .fm-home-search__form button { display: grid; place-items: center; padding: 0; }
.fm-home-search__form button:hover { color: var(--fm-home-link); }
.fm-home-search p { margin: 12px 0 2px; font-size: 12px; }
.fm-home-search ul { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; list-style: none; }
.fm-home-search li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: #fff;
	font-size: 12px;
	text-decoration: none;
}
.fm-home-search li a span { background: #303744; border-radius: 20px; padding: 4px 9px; }
.fm-home-search li a:hover span { background: #4a5464; }

.fm-home :is(.fm-home-news__archive, .fm-board-center-link, .fm-home-tournaments a, .fm-section__head > a):any-link {
	color: var(--fm-home-link);
	font-size: 14px;
	font-weight: 600;
}
.fm-home :is(.fm-home-news__archive, .fm-board-center-link, .fm-home-tournaments a, .fm-section__head > a):hover {
	color: #2e4a0a;
	text-decoration: underline;
}
.fm-home :is(.fm-home-search, .fm-social, [aria-labelledby="fm-home-analytics"]) :focus-visible,
.fm-site-header .fm-social :focus-visible { outline: 2px solid var(--fm-home-lime); outline-offset: 2px; }

body.fm-home #fm-scoreboard { margin: 0 0 16px; padding: 12px; background: #fff; border-radius: 8px; }
body.fm-home #fm-scoreboard .fm-board-header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
body.fm-home #fm-scoreboard .fm-board-header h2 { margin: 0; font-size: 20px; }
body.fm-home #fm-scoreboard .fm-board-center-link { margin-inline-start: auto; }
body.fm-home #fm-scoreboard .fm-board-group h3 { background: var(--fm-home-background); padding: 6px 8px; }
body.fm-home #fm-scoreboard .fm-board-matches {
	grid-auto-columns: max(132px, calc((100% - 24px) / 4));
	padding: 4px 2px;
}
body.fm-home #fm-scoreboard .fm-board-match {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	text-align: center;
	padding: 8px 5px;
	height: 100%;
}
body.fm-home #fm-scoreboard .fm-board-status { grid-column: 1 / -1; font-size: 12px; }
body.fm-home #fm-scoreboard .fm-board-team {
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}
body.fm-home #fm-scoreboard .fm-board-team img { width: 32px; height: 32px; object-fit: contain; }
body.fm-home #fm-scoreboard .fm-board-score { font-size: 20px; font-weight: 700; align-self: start; white-space: nowrap; }

.fm-home .fm-home-news {
	padding: 16px;
	background: #fff;
	border-radius: 8px;
}
.fm-home .fm-home-story__link { position: relative; }
.fm-home .fm-home-story:has(.fm-home-story__image) .fm-home-story__category,
.fm-home .fm-analytics-card__rubric {
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
	margin: 0;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--fm-home-lime);
	color: var(--fm-home-graphite);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.fm-home .fm-home-story--overlay .fm-home-story__body { position: static; }
.fm-home .fm-home-story--feed .fm-home-story__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: start;
}
.fm-home .fm-home-story--feed .fm-home-story__image { grid-column: 2; grid-row: 1; }
.fm-home .fm-home-story--feed .fm-home-story__image img {
	display: block;
	width: 72px;
	height: 54px;
	border-radius: 4px;
	object-fit: cover;
}
.fm-home .fm-home-story--feed .fm-home-story__body { grid-area: 1 / 1; padding: 0; }
.fm-home .fm-home-story--feed .fm-home-story__title {
	color: var(--fm-home-graphite);
	font-size: 14px;
	font-weight: 700;
	word-break: normal;
	overflow-wrap: normal;
}
.fm-home .fm-home-story--feed .fm-home-story__link:hover .fm-home-story__title { color: var(--fm-home-link); text-decoration: underline; }
.fm-home .fm-home-story--feed .fm-home-story__date { color: #697787; font-size: 12px; }

.fm-home [aria-labelledby="fm-home-analytics"] { padding: 16px; background: var(--fm-home-graphite); border-radius: 8px; }
body.fm-home [aria-labelledby="fm-home-analytics"] .fm-section__head > a:any-link { color: var(--fm-home-lime); }
body.fm-home [aria-labelledby="fm-home-analytics"] .fm-section__head > a:hover { color: #fff; }
.fm-home [aria-labelledby="fm-home-analytics"] .fm-analytics-grid--home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fm-home .fm-analytics-grid--home .fm-analytics-card {
	position: relative;
	align-self: start;
	grid-column: auto;
	grid-row: auto;
	overflow: hidden;
}
.fm-home .fm-analytics-grid--home .fm-analytics-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fm-home .fm-analytics-grid--home .fm-analytics-card:not(:has(> img)) { padding-top: 42px; }
.fm-home .fm-analytics-grid--home .fm-analytics-card:not(:first-child) .fm-analytics-card-body > p:nth-of-type(2) { display: none; }

@media (min-width: 680px) {
	body.fm-home [aria-labelledby="fm-home-analytics"] .fm-analytics-grid--home:has(> :nth-child(2)) {
		grid-template-columns: minmax(0, 53fr) minmax(0, 23.5fr) minmax(0, 23.5fr);
		align-items: start;
	}
	.fm-home .fm-analytics-grid--home .fm-analytics-card:first-child { grid-row: 1 / span 2; }
	.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(2),
	.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(3):last-child { grid-column: 2 / -1; }
}
.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(2):has(> img) {
	display: grid;
	background: var(--fm-home-graphite);
}
.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(2) > img,
.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(2):has(> img) .fm-analytics-card-body { grid-area: 1 / 1; }
.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(2):has(> img) .fm-analytics-card-body {
	z-index: 0;
	align-self: end;
	padding-top: 24px;
	background: linear-gradient(transparent, #10141cf7 36%);
}
.fm-home .fm-analytics-grid--home .fm-analytics-card:nth-child(2):has(> img) .fm-analytics-card-body :is(a, p) { color: #fff; }

.fm-home .fm-social:is(.fm-social--3, .fm-social--4) { border: 0; border-radius: 8px; padding: 20px; }
.fm-home .fm-social--3 { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.fm-home .fm-social--3 .fm-social__heading { flex: 1 1 16rem; }
.fm-home .fm-social--3 .fm-social__heading h2 { font-size: clamp(24px, 2vw, 28px); font-style: italic; }
.fm-home .fm-social:is(.fm-social--3, .fm-social--4) .fm-social__heading :is(h2, p) { margin: 0 0 4px; color: #fff; }
.fm-home .fm-social--3 .fm-social__heading p { font-size: 14px; }
.fm-home .fm-social--3 .fm-social__links { gap: 16px; }
.fm-home .fm-social--3 img { width: 40px; height: 40px; }
.fm-home .fm-social--4 .fm-social__links { margin: 8px 0 0; }

.fm-home .fm-tournaments { background: var(--fm-home-background); border: 0; }
.fm-home .fm-tournaments__heading, .fm-home .fm-tournaments__players h3 {
	padding: 12px;
	border-radius: 6px;
}
.fm-home .fm-tournaments__heading h2, .fm-home .fm-tournaments__players h3 { color: #fff; font-size: 18px; }
.fm-home .fm-tournaments__heading select { color: var(--fm-home-graphite); background: #fff; max-width: 100%; min-height: 44px; }
.fm-home .fm-tournaments__players { margin-block: 16px; border-radius: 6px; background: #fff; }
.fm-home .fm-tournaments :is(summary, table) { color: var(--fm-home-graphite); }
.fm-home .fm-tournaments table { font-size: 13px; background: #fff; }
.fm-home .fm-tournaments tr:nth-child(even) { background: var(--fm-home-background); }
.fm-home .fm-tournaments td:last-child { text-align: right; }
.fm-home .fm-tournaments summary::before, .fm-home .fm-tournaments summary::after { background: none; }
.fm-home .fm-tournaments__more:any-link {
	display: table;
	margin: 8px 0 8px auto;
	padding: 8px 10px;
	border-radius: 4px;
	background: var(--fm-home-lime);
	color: var(--fm-home-graphite);
	font-size: 13px;
	font-weight: 700;
}
.fm-home .fm-tournaments__metrics button[aria-pressed="true"] { background: var(--fm-home-lime); color: var(--fm-home-graphite); }

body.fm-design-v1 :is(.pagination, .fm-pagination) { text-align: start; }
body.fm-design-v1 :is(.pagination, .fm-pagination) .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
body.fm-design-v1 :is(.pagination, .fm-pagination) .page-numbers:is(a, span) {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid var(--fm-home-line);
	border-radius: 4px;
	background: #fff;
	color: var(--fm-home-graphite);
	font-size: 14px;
	font-weight: 600;
	transform: none;
}
body.fm-design-v1 :is(.pagination, .fm-pagination) .page-numbers:is(a, span)::before,
body.fm-design-v1 :is(.pagination, .fm-pagination) .page-numbers:is(a, span)::after { content: none; }
body.fm-design-v1 :is(.pagination, .fm-pagination) .page-numbers.current { background: var(--fm-home-lime); }
body.fm-design-v1 :is(.pagination, .fm-pagination) a.page-numbers:hover { border-color: var(--fm-home-link); text-decoration: underline; }

.fm-home .fm-tournaments__heading {
	grid-template-columns: minmax(0, 1fr) auto;
	border: 0;
}
.fm-home .fm-tournaments__heading h2 { grid-column: 1 / -1; }
.fm-home .fm-tournaments__heading [data-fm-tournament-season] {
	font-size: 12px;
	font-weight: 600;
}
.fm-home .fm-tournaments__standings summary {
	width: fit-content;
	min-height: 44px;
	border-radius: 4px;
	margin: 6px 0;
}
.fm-home .fm-tournaments__standings[open] summary { background: var(--fm-home-lime); }
.fm-home .fm-tournaments__players h3 { margin: 0; }
.fm-home .fm-home-story--feed .fm-home-story__link:focus-visible,
.fm-home .fm-tournaments :is(summary, select, button, a):focus-visible {
	outline: 2px solid var(--fm-home-link);
	outline-offset: 2px;
}
