/*
 * Jersey Bulls FC — League table (SportsPress sp_league_table) restyle
 *
 * SportsPress computes + outputs the standings (.sp-league-table); we only re-skin it
 * to the Bulls dark editorial language (don't rebuild the table). Markup is SportsPress
 * core: .sp-league-table > thead/tbody, .data-rank/.data-name columns, .sp-highlight row.
 */

.sp-template-league-table { color: var(--t-fg); }
.sp-template-league-table .sp-table-caption,
.sp-template-league-table h4 {
	font-family: var(--ff-display);
	text-transform: uppercase;
	color: var(--t-fg);
}

.sp-league-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--t-canvas);
	color: var(--t-fg);
	font-family: var(--ff-sans);
}
.sp-league-table th,
.sp-league-table td {
	padding: var(--space-3) var(--space-4);
	text-align: center;
	border-bottom: 1px solid var(--t-border);
}
.sp-league-table thead th {
	background: var(--t-header);
	color: var(--t-fg);
	font-family: var(--ff-display);
	text-transform: uppercase;
	letter-spacing: var(--ls-snug);
	border-bottom: 2px solid var(--c-bulls-red);
}
/* Club column left-aligned; everything else centred. */
.sp-league-table td.data-name,
.sp-league-table th.data-name { text-align: left; }
.sp-league-table .data-name a {
	color: var(--t-fg);
	text-decoration: none;
	font-family: var(--ff-display);
	text-transform: uppercase;
	letter-spacing: var(--ls-snug);
}
.sp-league-table .data-name a:hover { color: var(--c-bulls-red-300); }

.sp-league-table tbody tr { background: var(--t-canvas); }
.sp-league-table tbody tr:nth-child(even) { background: var(--t-panel); }
.sp-league-table tbody tr:hover { background: var(--t-panel); }

/* Points column emphasised. */
.sp-league-table td.data-pts,
.sp-league-table th.data-pts { font-weight: var(--fw-bold); color: var(--t-fg); }

/* The Bulls' own row (SportsPress adds .sp-highlight). */
.sp-league-table tr.sp-highlight,
.sp-league-table tr.sp-highlight:nth-child(even) { background: var(--c-bulls-red-900); }
.sp-league-table tr.sp-highlight td,
.sp-league-table tr.sp-highlight .data-name a { color: var(--c-white); }

/* Pagination / nav links SportsPress prints under the table. */
.sp-template-league-table .dataTables_paginate a,
.sp-template-league-table .paginate_button { color: var(--t-fg-muted); }
.sp-template-league-table .dataTables_paginate a:hover,
.sp-template-league-table .paginate_button.current { color: var(--c-bulls-red-300); }

/* ============================================================
 * League table page shell (single-sp_table.php) — frames the Football Web Pages
 * official-standings embed inside the dark page. The embed itself is a third-party
 * iframe (its own light styling); we give it a clean plate + a branded header.
 * ============================================================ */
.bulls-league {
	max-width: var(--content-base);
	margin: 0 auto;
	padding: var(--space-12) var(--gutter) var(--space-16);
	color: var(--t-fg);
}
.bulls-league__head { margin-bottom: var(--space-8); }
.bulls-league__kicker {
	margin: 0 0 var(--space-2);
	font-family: var(--ff-mono);
	font-size: var(--fs-50);
	letter-spacing: var(--ls-wider);
	text-transform: uppercase;
	color: var(--c-bulls-red-300);
}
.bulls-league__title {
	margin: 0;
	font-family: var(--ff-display);
	font-size: clamp(var(--fs-700), 5vw, var(--fs-800));
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--t-fg);
}
.bulls-league__embed {
	background: var(--c-white);
	padding: var(--space-3);
}
.bulls-league__embed iframe,
.bulls-league .fwp-embed iframe { width: 100% !important; border: 0; display: block; }
.bulls-league__credit {
	margin-top: var(--space-5);
	font-family: var(--ff-mono);
	font-size: var(--fs-50);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--t-fg-muted);
}
