/* Staking Compare — inherits the theme's font and colors where it can. */
.sc-wrap {
	--sc-border: rgba(127, 127, 127, 0.25);
	--sc-stripe: rgba(127, 127, 127, 0.06);
	--sc-hover: rgba(127, 127, 127, 0.12);
	--sc-accent: #1a7f5a;
	--sc-muted: rgba(127, 127, 127, 0.9);
	margin: 1.5em 0;
	font-size: 0.95em;
}
@media (prefers-color-scheme: dark) {
	.sc-wrap { --sc-accent: #4cc38a; }
}
.sc-title { margin: 0 0 0.6em; }

.sc-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
}
.sc-controls .sc-search { flex: 1 1 220px; min-width: 0; }
.sc-controls input,
.sc-controls select {
	padding: 6px 10px;
	border: 1px solid var(--sc-border);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	max-width: 100%;
}
.sc-count { margin-left: auto; color: var(--sc-muted); font-size: 0.9em; white-space: nowrap; }

.sc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--sc-border); border-radius: 8px; }

.sc-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.sc-table th,
.sc-table td {
	padding: 9px 12px;
	border: 0;
	border-bottom: 1px solid var(--sc-border);
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}
.sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-table tbody tr.sc-alt td { background: var(--sc-stripe); }
.sc-table tbody tr:hover td { background: var(--sc-hover); }
.sc-table .sc-num { text-align: right; font-variant-numeric: tabular-nums; }

.sc-table thead th { position: sticky; top: 0; background: inherit; z-index: 1; padding: 0; }
.sc-table thead th button {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding: 10px 12px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9em;
	user-select: none;
}
.sc-table thead th.sc-num button { justify-content: flex-end; }
.sc-table thead th button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.sc-arrow { display: inline-block; width: 0.8em; opacity: 0.35; }
.sc-arrow::after { content: "↕"; }
th[aria-sort="ascending"] .sc-arrow { opacity: 1; }
th[aria-sort="ascending"] .sc-arrow::after { content: "▲"; font-size: 0.7em; }
th[aria-sort="descending"] .sc-arrow { opacity: 1; }
th[aria-sort="descending"] .sc-arrow::after { content: "▼"; font-size: 0.7em; }

.sc-platform { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sc-platform img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; margin: 0; }
.sc-logo-fallback {
	width: 22px; height: 22px; border-radius: 50%; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--sc-hover); font-size: 0.75em;
}
.sc-platform a { text-decoration: none; }
.sc-platform a:hover { text-decoration: underline; }
.sc-note { display: block; margin-left: 30px; font-size: 0.8em; color: var(--sc-muted); white-space: normal; }

.sc-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--sc-hover);
	font-size: 0.8em;
}
.sc-apy { font-weight: 700; color: var(--sc-accent); }

.sc-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.sc-pager button {
	padding: 5px 12px;
	border: 1px solid var(--sc-border);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.sc-pager button:disabled { opacity: 0.4; cursor: default; }

.sc-footer { margin-top: 8px; font-size: 0.8em; color: var(--sc-muted); }
.sc-empty { padding: 1em; border: 1px dashed var(--sc-border); border-radius: 8px; }

@media (max-width: 600px) {
	.sc-table th, .sc-table td { padding: 8px; }
	.sc-count { margin-left: 0; width: 100%; }
}
