/*
 * Gleiche Farb-Konvention wie pickem.css / translator-engine: Dunkel ist
 * Default, Light-Mode über dieselbe sitewide Selektor-Liste erzwungen.
 */
.frp-ranking {
	--frp-accent: #34d399;
	--frp-bg: #0b0f14;
	--frp-bg-alt: #10161d;
	--frp-border: #1f2b36;
	--frp-text: #e6edf3;
	--frp-text-dim: #8b98a5;

	--frp-radius-lg: 18px;
	--frp-radius-md: 12px;

	font-family: inherit;
	color: var(--frp-text);
	background: var(--frp-bg);
	border: 1px solid var(--frp-border);
	border-radius: var(--frp-radius-lg);
	padding: 1.25em;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.frp-ranking * {
	box-sizing: border-box;
}

:is(html[data-theme="light"],body[data-theme="light"],html.light-mode,body.light-mode,html.is-light,body.is-light,html.rb-light-mode,body.rb-light-mode,html.tsnfi-force-light,body.tsnfi-force-light) .frp-ranking {
	--frp-accent: #059669 !important;
	--frp-bg: #ffffff !important;
	--frp-bg-alt: #f3f5f7 !important;
	--frp-border: #dde3e8 !important;
	--frp-text: #10161d !important;
	--frp-text-dim: #5b6572 !important;
}

.frp-ranking__title {
	margin: 0 0 0.75em;
	font-size: 1.2em;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
}

.frp-ranking__empty {
	color: var(--frp-text-dim);
	font-size: 0.9em;
	margin: 0;
}

.frp-ranking__table-wrap {
	overflow-x: auto;
}

.frp-ranking__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.frp-ranking__table th,
.frp-ranking__table td {
	padding: 0.55em 0.7em;
	text-align: right;
	white-space: nowrap;
	border-bottom: 1px solid var(--frp-border);
}

.frp-ranking__table th {
	color: var(--frp-text-dim);
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 700;
}

.frp-ranking__col-rank,
.frp-ranking__col-user {
	text-align: left;
}

.frp-ranking__col-rank {
	color: var(--frp-text-dim);
	width: 2.5em;
}

.frp-ranking__table tbody tr:nth-child(1) .frp-ranking__col-rank {
	color: var(--frp-accent);
	font-weight: 800;
}

.frp-ranking__table tbody tr:last-child td {
	border-bottom: none;
}

.frp-ranking__table tbody tr:hover td {
	background: var(--frp-bg-alt);
}

@media (max-width: 480px) {
	.frp-ranking__table {
		font-size: 0.8em;
	}

	.frp-ranking__table th,
	.frp-ranking__table td {
		padding: 0.45em 0.4em;
	}
}
