/* OIT Rankedin Bridge — event list
   Deliberately low-specificity and colour-neutral so the active theme's
   typography and palette come through. Override in your theme if needed. */

.rin-heading {
	margin: 0 0 1rem;
}

.rin-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.rin-event {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
}

.rin-event__body {
	flex: 1 1 20rem;
	min-width: 0;
}

.rin-event__name {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.rin-event__name a {
	text-decoration: none;
}

.rin-event__name a:hover,
.rin-event__name a:focus-visible {
	text-decoration: underline;
}

.rin-event__meta {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.75;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
}

.rin-event__meta > * + *::before {
	content: "·";
	margin-right: 0.75rem;
	opacity: 0.6;
}

.rin-empty {
	opacity: 0.7;
	font-style: italic;
}

@media (max-width: 480px) {
	.rin-event {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --- Rankings --------------------------------------------------------- */

.rin-ranking {
	display: grid;
	gap: 1rem;
}

.rin-filters {
	display: grid;
	gap: 0.5rem;
}

.rin-filters__group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rin-chip {
	display: inline-block;
	padding: 0.35rem 0.8rem;
	font-size: 0.875rem;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
}

.rin-chip--sm {
	font-size: 0.8rem;
	padding: 0.25rem 0.65rem;
}

.rin-chip:hover,
.rin-chip:focus-visible {
	border-color: currentColor;
}

.rin-chip.is-active {
	border-color: currentColor;
	background: currentColor;
}

/* Invert the label against the filled active chip. */
.rin-chip.is-active {
	color: inherit;
	position: relative;
}

.rin-chip.is-active::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(0, 0, 0, 0.06);
}

.rin-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.rin-table__caption {
	caption-side: top;
	text-align: left;
	font-size: 0.85rem;
	opacity: 0.7;
	padding-bottom: 0.5rem;
}

.rin-table th,
.rin-table td {
	padding: 0.65rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.rin-table thead th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
}

.rin-col-pos {
	width: 3rem;
	font-variant-numeric: tabular-nums;
}

.rin-col-pts {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rin-table thead .rin-col-pts {
	text-align: right;
}

.rin-flag {
	margin-right: 0.4rem;
}

.rin-table td a {
	text-decoration: none;
}

.rin-table td a:hover,
.rin-table td a:focus-visible {
	text-decoration: underline;
}
