/* Colours follow the Avada global palette (Avada → Global Options → Colors); override any --nuliga-* in your own CSS. */
.nuliga {
	--nuliga-accent: var(--primary_color, var(--awb-color5, #90b727));
	--nuliga-fg: var(--awb-color8, #333);
	--nuliga-muted: var(--awb-color6, #606060);
	--nuliga-line: var(--awb-color3, #eaeaea);
	--nuliga-head: var(--awb-color2, #f9f9f9);
	--nuliga-win: #2e7d32;
	--nuliga-loss: #c62828;
	--nuliga-draw: var(--awb-color7, #f99100);
	--nuliga-me: color-mix(in srgb, var(--nuliga-accent) 16%, #fff);
	--nuliga-next: color-mix(in srgb, var(--nuliga-accent) 8%, #fff);
	container: nuliga / inline-size;
	color: var(--nuliga-fg);
	font: inherit;
	margin: 0 0 1.5em;
}
.nuliga-title { font-weight: 700; margin: 0 0 .5em; }
.nuliga-scroll { overflow-x: auto; }
.nuliga-t { border-collapse: collapse; width: 100%; margin: 0; }
.nuliga-t th, .nuliga-t td { padding: .5em .65em; border: 0; border-bottom: 1px solid var(--nuliga-line); white-space: nowrap; background: none; }
.nuliga-t th { background: var(--nuliga-head); color: var(--nuliga-muted); font-size: .8em; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--nuliga-accent); }
.nuliga-t td.nuliga-tm { white-space: normal; min-width: 6em; }
.nuliga-l { text-align: left; } .nuliga-c { text-align: center; }
.nuliga-t tbody tr:hover td { background: var(--nuliga-head); }
.nuliga-t tr.nuliga-me td { background: var(--nuliga-me); font-weight: 700; }
.nuliga-t tr.nuliga-me td:first-child { box-shadow: inset 4px 0 var(--nuliga-accent); }
.nuliga-t tr.nuliga-next td { background: var(--nuliga-next); }
.nuliga-b { font-weight: 700; }
.nuliga-w { color: var(--nuliga-win); font-weight: 700; }
.nuliga-lo { color: var(--nuliga-loss); font-weight: 700; }
.nuliga-d { color: var(--nuliga-draw); font-weight: 700; }
.nuliga-rep { text-decoration: none; color: inherit; }
.nuliga-rep:hover { text-decoration: underline; }
.nuliga-ht { color: var(--nuliga-muted); font-size: .8em; margin-left: .35em; }
.nuliga-moved { color: var(--nuliga-draw); cursor: help; }
.nuliga-error, .nuliga-note { color: var(--nuliga-loss); font-size: .9em; }
.nuliga-note { color: var(--nuliga-muted); margin-top: .5em; }
@container nuliga (max-width: 560px) {
	.nuliga-opt { display: none; }
	.nuliga-t { font-size: .9em; }
	.nuliga-t th, .nuliga-t td { padding: .45em .4em; }
}
/* Game lists switch to stacked rows when the column is narrow (phones, narrow Avada columns). */
@container nuliga (max-width: 780px) {
	.nuliga-games .nuliga-opt { display: none; }
	.nuliga-games .nuliga-t thead { display: none; }
	.nuliga-games .nuliga-t, .nuliga-games .nuliga-t tbody { display: block; }
	.nuliga-games .nuliga-t tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; border-bottom: 1px solid var(--nuliga-line); padding: .4em 0; }
	.nuliga-games .nuliga-t td { border: 0; padding: .1em .4em; background: none; }
	.nuliga-games .nuliga-t tr.nuliga-next { background: var(--nuliga-next); }
	.nuliga-games .nuliga-t tr:hover td { background: none; }
	.nuliga-games .c-date, .nuliga-games .c-time { grid-row: 1; color: var(--nuliga-muted); font-size: .85em; }
	.nuliga-games .c-home { grid-column: 1 / 3; grid-row: 2; }
	.nuliga-games .c-away { grid-column: 1 / 3; grid-row: 3; }
	.nuliga-games .c-score { grid-column: 3; grid-row: 1 / 4; font-size: 1.1em; }
	.nuliga-games .nuliga-ht { display: block; margin: 0; }
}
