/* Front Office League: site-wide header, footer and home page. */
:root {
	--fol-turf: #2e6b3f;
	--fol-turf-deep: #1f4d2c;
	--fol-turf-wash: #e4efe6;
	--fol-night: #13202e;
	--fol-night-2: #1d2d3e;
	--fol-flag: #e8b423;
	--fol-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
}

/* Remove the theme's spacing around our header and footer parts. */
header.wp-block-template-part:has(.fol-sh),
footer.wp-block-template-part:has(.fol-sf) { margin: 0 !important; padding: 0 !important; }
.wp-site-blocks > header:has(.fol-sh) + * { margin-block-start: 0; }

/* ---------- Header ---------- */
.fol-sh {
	background: var(--fol-night);
	color: #fff;
	position: relative;
}

.fol-sh-inner {
	box-sizing: border-box;
	max-width: 1152px;
	margin: 0 auto;
	padding: 0.9rem 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 2rem;
}
.fol-wordmark {
	font-family: var(--fol-display);
	font-weight: 700;
	font-size: 1.65rem;
	line-height: 1;
	letter-spacing: 0.01em;
	color: #fff !important;
	text-decoration: none !important;
}
.fol-sh-nav { display: flex; gap: 0.25rem 1.05rem; flex-wrap: wrap; flex: 1; }
.fol-sh-nav a, .fol-sh-account a {
	color: rgba(255, 255, 255, 0.82) !important;
	text-decoration: none !important;
	font-size: 0.95rem;
	padding: 0.3rem 0;
	border-bottom: 2px solid transparent;
}
.fol-sh-nav a:hover, .fol-sh-account a:hover { color: #fff !important; }
.fol-sh-nav a[aria-current="page"] { color: #fff !important; border-bottom-color: var(--fol-flag); }
.fol-sh-account { display: flex; gap: 1.1rem; align-items: center; }
.fol-sh-account .fol-sh-login {
	padding: 0.35rem 0.9rem;
	border-radius: 4px;
	background: var(--fol-turf);
	color: #fff !important;
	border-bottom: 0;
}
.fol-sh a:focus-visible, .fol-sf a:focus-visible { outline: 2px solid var(--fol-flag); outline-offset: 3px; }
@media (max-width: 720px) {
	.fol-sh-inner { gap: 0.6rem 1rem; }
	.fol-wordmark { font-size: 1.4rem; flex: 1; }
	.fol-sh-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
	.fol-sh-nav a { white-space: nowrap; }
}

/* ---------- Main area on league pages ---------- */
.fol-main { padding-block: 2.25rem 3.5rem; }

/* ---------- Footer ---------- */
.fol-sf { background: var(--fol-night); color: rgba(255, 255, 255, 0.78); margin-top: 3rem; }
.fol-sf-inner {
	box-sizing: border-box;
	max-width: 1152px;
	margin: 0 auto;
	padding: 2.5rem 16px 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}
.fol-sf-brand { max-width: 34rem; }
.fol-sf-brand p { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.55; }
.fol-sf-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem 2rem; align-content: start; }
.fol-sf-nav a { color: #fff !important; text-decoration: none !important; font-size: 0.95rem; }
.fol-sf-nav a:hover { text-decoration: underline !important; }
.fol-sf-small {
	box-sizing: border-box;
	max-width: 1152px;
	margin: 0 auto;
	padding: 1rem 16px 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.55);
}

/* ---------- Home ---------- */
.fol-hero { padding: 0.5rem 0 1.5rem; margin-bottom: 1rem; }
.fol-hero-season { margin: 0; font-family: var(--fol-display); font-weight: 600; font-size: 1.15rem; color: var(--fol-turf); }
.fol-hero-title {
	margin: 0.15rem 0 0.75rem;
	font-family: var(--fol-display);
	font-weight: 700;
	font-size: clamp(3rem, 9vw, 6rem);
	line-height: 0.88;
	letter-spacing: -0.015em;
	color: var(--fol-night);
}
.fol-hero-lede { margin: 0; max-width: 40rem; font-size: 1.1rem; line-height: 1.55; color: #3b4652; }
.fol-home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 860px) { .fol-home-grid { grid-template-columns: 1fr; } }
.fol-panel { margin-bottom: 2.25rem; }
.fol-panel-h { margin: 0 0 0.75rem; padding-top: 0.5rem; border-top: 3px solid var(--fol-night); font-family: var(--fol-display); font-weight: 700; font-size: 1.45rem; color: var(--fol-night); }
.fol-myteam-name { font-family: var(--fol-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--fol-night) !important; text-decoration: none !important; }
.fol-myteam-name:hover { color: var(--fol-turf) !important; }
.fol-myteam-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin: 0.75rem 0; }
.fol-mini { list-style: none; margin: 0; padding: 0; }
.fol-mini li { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(6rem, 1.4fr) 5.5rem; gap: 1rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid #d9dee3; }
.fol-mini a { font-size: 1.05rem; font-weight: 600; color: var(--fol-night) !important; text-decoration: none !important; }
.fol-mini a:hover { color: var(--fol-turf) !important; }
.fol-mini strong { text-align: right; font-family: var(--fol-display); font-size: 1.2rem; color: var(--fol-turf); font-variant-numeric: tabular-nums; }
.fol-more { margin: 0.6rem 0 0; font-size: 0.9rem; }
.fol-more a { color: var(--fol-turf) !important; }
.fol-button { display: inline-block; padding: 0.5rem 1.1rem; border-radius: 4px; background: var(--fol-turf); color: #fff !important; text-decoration: none !important; font-weight: 600; }
.fol-facts dl { margin: 0; }
.fol-facts dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid #d9dee3; font-size: 0.92rem; }
.fol-facts dt { font-weight: 600; }
.fol-facts dd { margin: 0; color: #3b4652; }
.fol-log.is-compact li { grid-template-columns: 5.5rem 1fr; }
.fol-log.is-compact time { grid-column: 1 / -1; font-size: 0.78rem; }
.fol-sh-nav .fol-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; margin-left: 0.15rem; padding: 0 0.3rem; border-radius: 999px; background: var(--fol-flag); color: var(--fol-night); font-size: 0.72rem; font-weight: 700; line-height: 1; vertical-align: 0.1em; }
.fol-cm-bar { background: var(--fol-flag); color: var(--fol-night); font-size: 0.9rem; }
.fol-cm-inner { max-width: 1152px; margin: 0 auto; padding: 0.45rem 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; }
.fol-cm-inner a { margin-left: auto; font-weight: 700; color: var(--fol-night) !important; text-decoration: underline; }
.fol-sh-account a.fol-sh-cm { opacity: 0.75; }
