/* ===== PAGE: POLYMARKET ===== */

/* Compact page head (15px lead is shared in app.css): badges, h1, lead, so the table is above the fold on phones */
.page-head .hero-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }

/* Ranking: the rank cell stays a bare <td> (tests match "<tr><td>N</td>"), so it is styled by position */
.table-ranking tbody td:first-child { width: 48px; min-width: 48px; max-width: 48px; padding-right: var(--sp-2); text-align: right; color: var(--text-3); }
.table-ranking th.col-rank { width: 48px; min-width: 48px; max-width: 48px; padding-right: var(--sp-2); }

/* Rank and wallet stay pinned whenever the numbers scroll inside the wrap */
.table-ranking tbody td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.table-ranking th.col-rank { position: sticky; left: 0; z-index: 3; background: var(--surface-2); }
.table-ranking .col-name.col-pin { position: sticky; left: 48px; z-index: 1; border-right: 1px solid var(--border-strong); }
.table-ranking td.col-name.col-pin { background: var(--surface); }
.table-ranking th.col-name.col-pin { z-index: 3; background: var(--surface-2); }
/* Phones: a shorter wallet name leaves room for score and copy return beside the pinned columns (220px from 600px, as in app.css) */
.table-ranking .col-name > a, .table-ranking .col-name > span { max-width: 120px; }
.table-ranking .col-name.col-pin { padding-right: var(--sp-2); }
@media (min-width: 600px) {
	.table-ranking .col-name > a, .table-ranking .col-name > span { max-width: 220px; }
	.table-ranking .col-name.col-pin { padding-right: var(--sp-3); }
}
@media (pointer: fine) {
	.table-ranking tbody tr:hover td:first-child,
	.table-ranking tbody tr:hover td.col-pin { background: var(--surface-3); }
}

/* Copy trading: the button column stays narrow, the order status reuses the callout with the semantic left border */
.table-signals .col-copy { width: 1%; white-space: nowrap; }
#copy-trade [data-copy-status][data-tone="success"] { border-left-color: var(--gain); }
#copy-trade [data-copy-status][data-tone="warning"] { border-left-color: var(--warning); }
#copy-trade [data-copy-status][data-tone="error"] { border-left-color: var(--loss); }
