/* Tables on parchment: blue stone header row, ink rows, outfit heads. */
.twrap { margin: 6px 24px 0; }
.tt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tt th {
  padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 2px solid var(--night);
  background: var(--window) var(--tex-stone) 0 0 / 96px 96px; background-blend-mode: soft-light;
  color: #fff; font: 700 12.5px var(--font-game); text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.tt th:first-child { border-top-left-radius: 3px; }
.tt th:last-child { border-top-right-radius: 3px; }
.tt td { padding: 6px 10px; border-bottom: 1px solid #b08a5544; color: var(--ink); vertical-align: middle; }
.tt tr:nth-child(even) td { background: #d9b97a33; }
.tt tbody tr:hover td { background: #ffffff55; }
.tt .num { text-align: right; font-weight: 800; }
.tt .rk { width: 42px; text-align: center; font: 900 15px var(--font-display); color: var(--ink-soft); }
.tt .rk.top { color: #c98612; }
.tt a { color: var(--link); font-weight: 800; text-decoration: none; }
.tt a:hover { text-decoration: underline; }
.tt img.hd { width: 46px; height: 46px; margin: -10px 0 -8px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
.tt .who { display: flex; align-items: center; gap: 8px; }
.tt small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.tt .on { color: #1f7a2e; font-weight: 800; }
.tt .off { color: #9a3b2a; font-weight: 800; }
.pager { display: flex; justify-content: center; gap: 12px; padding: 14px 24px 0; }

@media (max-width: 640px) {
  .twrap { margin: 6px 12px 0; overflow-x: auto; }
  .tt { font-size: 13.5px; }
}

/* sortable headers (online list): links stay readable on the blue stone */
.tt th a { color: #fff; font-weight: 700; text-decoration: none; }
.tt th a:hover { color: var(--gold-light); text-decoration: none; }
.table-sort { color: inherit; font: inherit; font-weight: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.table-sort:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
th[aria-sort="ascending"] .table-sort, th[aria-sort="descending"] .table-sort { text-decoration: underline; }
