*,
*::before,
*::after {
	box-sizing: border-box;
}

body.tl-league-body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	background: #f4f6f8;
	color: #1a1a1a;
	line-height: 1.45;
}

/* One column: purple bar and league content share the same width */
.tl-league-frame {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.75rem 1rem 2rem;
}

/* Match main site Maximenu: purple #7100E2, active/hover lime #8BB805, height 54px */
.tl-league-auth {
	background: #7100e2;
	color: #fff;
	min-height: 54px;
	height: 54px;
	box-sizing: border-box;
	border-radius: 0.5rem 0.5rem 0 0;
}

.tl-league-auth-inner {
	height: 100%;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}

.tl-league-auth-user {
	font-size: 0.95rem;
	line-height: 1.2;
	color: #fff;
}

.tl-league-auth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	padding: 0 15px;
	border-radius: 0;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 21px;
	border: 0;
}

.tl-league-auth-btn:hover,
.tl-league-auth-btn:focus,
.tl-league-auth-btn:active,
.tl-league-auth-btn.is-active,
.tl-league-auth-btn-primary:hover,
.tl-league-auth-btn-primary:focus,
.tl-league-auth-btn-primary:active {
	background: #8bb805;
	color: #fff;
}

.tl-league-auth-btn-primary {
	background: transparent;
	color: #fff;
}

.tl-league-shell {
	padding: 0;
}

/* Sit flush under the auth bar so bar + card read as one block */
.tl-league-shell .tl-league {
	border-radius: 0 0 0.5rem 0.5rem;
}

/* Scorecard / squad pages: purple bar matches content width (860px) */
.tl-league-body--scorecard .tl-league-frame,
.tl-league-body--squad .tl-league-frame {
	max-width: 860px;
}

.tl-league-body--scorecard .tl-scorecard,
.tl-league-body--squad .tl-squad {
	max-width: none;
	margin: 0;
	border-radius: 0 0 0.5rem 0.5rem;
	box-shadow: none;
}

/* Rules tab: purple bar matches rules article width (52rem) */
.tl-league-body--rules .tl-league-frame {
	max-width: 52rem;
}

.tl-league-body--rules .tl-about {
	max-width: none;
	margin: 0;
}

@media (min-width: 768px) {
	.tl-league-frame {
		padding: 1rem 2rem 3rem;
	}

	.tl-league-auth-inner {
		padding: 0 1.25rem;
	}
}
