/**
 * SIHF Statistics – table styles (scoped to .sihf-stats).
 */

.sihf-stats {
	margin: 0 0 2em;
}

.sihf-stats h4 {
	margin: 0 0 0.25em;
}

.sihf-stats__meta {
	margin: 0 0 0.25em;
	font-weight: 600;
}

.sihf-stats__date {
	margin: 0 0 0.75em;
	font-size: 0.85em;
	opacity: 0.75;
}

.sihf-stats__scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sihf-stats table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.sihf-stats thead tr {
	background-color: #000;
	color: #fff;
}

.sihf-stats th,
.sihf-stats td {
	padding: 0.45em 0.6em;
	text-align: left;
	white-space: nowrap;
}

.sihf-stats tbody tr:nth-child(even) {
	background-color: rgba(0, 0, 0, 0.04);
}

.sihf-stats tbody tr.is-club {
	font-weight: 700;
}

.sihf-stats tbody tr.is-upcoming {
	opacity: 0.8;
}

.sihf-stats tbody tr.is-live {
	color: #e4002b;
}

.sihf-stats__live {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.05em 0.4em;
	border-radius: 3px;
	background-color: #e4002b;
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	vertical-align: middle;
}

.sihf-stats tbody tr.is-separator td {
	border-bottom: 2px solid #000;
}

.sihf-stats th.is-num,
.sihf-stats td.is-num {
	text-align: right;
}

.sihf-stats td.is-rank {
	color: #e4002b;
	font-weight: 700;
}

.sihf-stats th abbr {
	text-decoration: none;
	cursor: help;
}

/* Streak (form) — colours mirror the official SIHF table. */
.sihf-stats__streak {
	display: inline-flex;
	gap: 3px;
	vertical-align: middle;
}

.sihf-stats__dot {
	display: inline-block;
	width: 10px;
	height: 6px;
	border-radius: 3px;
}

.sihf-stats__dot.is-w {
	background-color: #00b27a;
}

.sihf-stats__dot.is-ow {
	background-color: #7fdcbc;
}

.sihf-stats__dot.is-l {
	background-color: #f0313f;
}

.sihf-stats__dot.is-ol {
	background-color: #f9c4c9;
}

.sihf-stats-error {
	padding: 0.5em 0.75em;
	border-left: 4px solid #c62828;
	background: rgba(198, 40, 40, 0.08);
}
