/* League Fantasy (2.61.0): the fantasy page ([fh_fantasy], .lf) and the account page's Fantasy view (inside .fha).
   The theme's root font size is 20px, so sizes here are in pixels. */

.lf {
	max-width: 1000px;
	margin: 0 auto;
	color: #1a2a3a;
}
.lf-card {
	margin: 0 0 18px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
}
.lf-card h2 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.25;
}
.lf-card p,
.lf-card li {
	font-size: 16px;
	line-height: 1.5;
}
.lf-muted {
	color: #475569;
	font-size: 15px;
}

/* The tabs */
.lf-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.lf-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #94a3b8;
	border-radius: 22px;
	color: #1a2a3a;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.lf-tabs a[aria-current="page"] {
	background: #1a2a3a;
	border-color: #1a2a3a;
	color: #fff;
}

/* Buttons */
.lf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	background: #1a2a3a;
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.lf-btn:hover,
.lf-btn:focus {
	background: #0f1b27;
	color: #fff;
}
/* The theme colors and underlines links inside a page's content: a button keeps white words. */
.lf a.lf-btn,
.lf a.lf-btn:visited,
.lf a.lf-btn:hover,
.lf a.lf-btn:focus {
	color: #fff !important;
	text-decoration: none !important;
}
.lf-phone {
	display: none;
}
.lf-btn--small {
	min-height: 44px;
	padding: 0 14px;
	font-size: 15px;
}

/* Tables */
.lf-table {
	width: 100%;
	margin: 0 0 12px;
	border-collapse: collapse;
	font-size: 15px;
}
.lf-table caption {
	padding: 0 0 6px;
	font-weight: 700;
	text-align: left;
}
.lf-table th,
.lf-table td {
	padding: 8px 8px;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
	vertical-align: middle;
}
.lf-table thead th {
	border-bottom: 2px solid #94a3b8;
	font-size: 14px;
}
.lf-table .lf-num {
	text-align: right;
	white-space: nowrap;
}
.lf-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

/* Filters */
.lf-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 14px;
	margin: 0 0 12px;
}
.lf-filters label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
}
.lf-filters select,
.lf-filters input {
	min-height: 44px;
	min-width: 140px;
	padding: 6px 10px;
	border: 1px solid #64748b;
	border-radius: 8px;
	background: #fff;
	color: #1a2a3a;
	font-size: 16px;
}
.lf-players tr[hidden] {
	display: none;
}

/* The account page's lineup */
.lf-lineup .lf-pickcell {
	width: 100%;
}
.fha .lf-lineup .fha-input {
	max-width: none;
	margin: 0;
}
.lf-held {
	display: block;
	font-weight: 700;
}
.lf-lock {
	display: block;
	color: #475569;
	font-size: 14px;
}
.lf-cap {
	width: 56px;
	text-align: center !important;
}
.lf-caplabel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
}
.lf-caplabel input {
	width: 22px;
	height: 22px;
	margin: 0 4px 0 0;
}
.lf-caplabel input:disabled + .screen-reader-text + span {
	opacity: .45;
}
.lf-budget {
	font-size: 16px;
	font-weight: 700;
}
.lf-budget.is-over {
	color: #991b1b;
}
.lf-links {
	font-size: 15px;
}
.lf :is(a, button, input, select):focus-visible,
.fha .lf-lineup :is(select, input):focus-visible {
	outline: 3px solid #1a2a3a;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

/* The Rules tab (2.63.0, Rob: "easier to read, and more designed"): a band with the field,
   six steps in cards, questions and answers, points marked plus or minus. The colors are the
   site's own Dark and Accent, in their readable forms (inc/theme-colors.php). */
.lf .lf-howto {
	padding: 0;
	overflow: hidden;
}
.lf-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 24px 24px 10px;
	background: linear-gradient(180deg, #eef2f7 0%, #ffffff 100%);
}
.lf .lf-hero h2 {
	margin: 0 0 10px;
	font-size: 32px;
	color: var(--fh-navy-text, var(--color-navy, #1a2a3a));
}
.lf .lf-lead {
	margin: 0 0 14px;
	font-size: 19px;
	line-height: 1.5;
}
.lf-field {
	margin: 0;
	text-align: center;
}
.lf-field svg {
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
	margin: 0 auto;
}
.lf-field figcaption {
	margin-top: 4px;
	color: #475569;
	font-size: 14px;
}
.lf-f-grass { fill: #2f7d32; }
.lf-f-grass2 { fill: #3b8c3e; }
.lf-f-dirt { fill: #c98d55; }
.lf-f-base { fill: #ffffff; }
.lf-f-pen { fill: #2e6b31; }
.lf-f text {
	font: 700 13px/1 sans-serif;
	text-anchor: middle;
	dominant-baseline: central;
}
.lf-f .lf-f-small {
	font-size: 10px;
	fill: #ffffff;
}
.lf-f-hit circle {
	fill: var(--fh-navy-ink, var(--color-navy, #1a2a3a));
	stroke: #ffffff;
	stroke-width: 2;
}
.lf-f-hit text { fill: #ffffff; }
.lf-f-pit circle {
	fill: #ffffff;
	stroke: var(--fh-accent-text, var(--color-orange, #bf6010));
	stroke-width: 3;
}
.lf-f-pit text { fill: var(--fh-accent-text, var(--color-orange, #bf6010)); }
/* ".lf ol" outranks the page's own ".article-content ol" margin and padding. */
.lf ol.lf-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 16px 24px 24px;
	list-style: none;
}
.lf .lf-step {
	margin: 0;
	padding: 16px 16px 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-top: 4px solid var(--fh-accent-text, var(--color-orange, #bf6010));
	border-radius: 12px;
}
.lf-step-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--fh-navy-ink, var(--color-navy, #1a2a3a));
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
}
.lf .lf-step-t {
	margin: 10px 0 4px;
	font-size: 20px;
	line-height: 1.25;
}
.lf .lf-step-big {
	margin: 0 0 6px;
	color: var(--fh-accent-text, var(--color-orange, #bf6010));
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
}
.lf .lf-step p {
	margin-bottom: 0;
	font-size: 16px;
	line-height: 1.5;
}
.lf .lf-step .lf-step-big {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.1;
}
.lf-qa {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}
.lf-qa-item {
	padding: 12px 14px;
	background: #f8fafc;
	border-left: 4px solid var(--fh-navy-ink, var(--color-navy, #1a2a3a));
	border-radius: 8px;
}
.lf .lf-qa-item h3 {
	margin: 0 0 4px;
	font-size: 18px;
}
.lf .lf-qa-item p {
	margin: 0;
	line-height: 1.5;
}
.lf-pts-table caption {
	font-size: 18px;
}
.lf-pts-table tbody tr:nth-child(even) {
	background: #f8fafc;
}
.lf-v {
	display: inline-block;
	min-width: 48px;
	padding: 2px 10px;
	border-radius: 14px;
	font-weight: 700;
	text-align: center;
}
.lf-v--plus {
	background: #dcfce7;
	color: #14532d;
}
.lf-v--minus {
	background: #fee2e2;
	color: #7f1d1d;
}
@media (max-width: 900px) {
	.lf ol.lf-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.lf-card {
		padding: 14px 12px;
	}
	.lf-table th,
	.lf-table td {
		padding: 8px 4px;
	}
	.lf-table .lf-wide {
		display: none;
	}
	.lf-filters label {
		flex: 1 1 140px;
	}
	.lf-hero {
		grid-template-columns: 1fr;
		padding: 18px 14px 6px;
	}
	.lf .lf-hero h2 {
		font-size: 27px;
	}
	.lf ol.lf-steps {
		grid-template-columns: 1fr;
		padding: 12px 12px 16px;
	}
	.lf-qa {
		grid-template-columns: 1fr;
	}
	.lf-filters select,
	.lf-filters input {
		min-width: 0;
		width: 100%;
	}
	.lf-phone {
		display: block;
		color: #475569;
		font-size: 13px;
	}
	.lf-num .lf-phone {
		display: inline;
	}
	/* The lineup on a phone: the position, the points and the captain on one line, the player's choice under them, full width. */
	.lf-lineup thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.lf-lineup tbody tr {
		display: grid;
		grid-template-columns: 1fr auto auto;
		grid-template-areas: "pos pts cap" "pick pick pick";
		align-items: center;
		column-gap: 8px;
		padding: 6px 0 10px;
		border-bottom: 1px solid #e2e8f0;
	}
	.lf-lineup tbody th,
	.lf-lineup tbody td {
		border: 0;
		padding: 2px 0;
	}
	.lf-lineup tbody th[scope="row"] {
		grid-area: pos;
		font-size: 16px;
	}
	.lf-lineup .lf-pickcell {
		grid-area: pick;
		width: auto;
	}
	.lf-lineup .lf-pts {
		grid-area: pts;
	}
	.lf-lineup .lf-cap {
		grid-area: cap;
		width: auto;
	}
	.lf-lineup select {
		width: 100%;
		min-width: 0;
		font-size: 16px;
	}
}
