/* Skulltag — data-table component (0.6.0).
 * Shares the visual language of .ref-table; adds sort affordances,
 * filter chips and horizontal-scroll containment. */

.st-table-wrap { overflow-x: auto; margin: 18px 0 26px; }

.st-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.st-table th, .st-table td {
	text-align: left;
	padding: 9px 12px;
	border-bottom: 1px solid var(--line-soft);
	vertical-align: top;
}
.st-table thead th {
	font-family: var(--font-m);
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-3);
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.st-table th[data-sort] { cursor: pointer; user-select: none; }
.st-table th[data-sort]::after { content: " \2195"; opacity: .45; }
.st-table th[aria-sort="ascending"]::after { content: " \2191"; opacity: 1; color: var(--rust); }
.st-table th[aria-sort="descending"]::after { content: " \2193"; opacity: 1; color: var(--rust); }
.st-table tbody tr:hover { background: oklch(0.19 0.012 54 / .5); }
.st-table td .muted, .st-table td.na { color: var(--ink-3); }
.st-table a { color: var(--ink); border-bottom: 1px solid var(--line); }
.st-table a:hover { color: var(--rust-hi); border-color: var(--rust); }

/* filter chips */
.st-chips { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 4px; align-items: center; }
.st-chip-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-chip-label {
	font-family: var(--font-m);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin-right: 2px;
}
.st-chip {
	font-family: var(--font-m);
	font-size: 12px;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}
.st-chip:hover { border-color: var(--rust); color: var(--ink); }
.st-chip.on { background: var(--panel); border-color: var(--rust); color: var(--ink); }

@media (max-width: 720px) {
	.st-table { font-size: 13px; }
	.st-table th, .st-table td { padding: 7px 8px; }
}

/* games-in-order explorer */
.go-explorer { margin: 4px 0 10px; }
.go-fn a { color: var(--rust); border: 0; font-size: 11px; }
.go-notes {
	font-family: var(--font-m);
	font-size: 12.5px;
	color: var(--ink-3);
	margin: 4px 0 20px;
	padding-left: 20px;
}
.go-notes li { padding: 2px 0; }

/* port matrix */
.port-matrix { margin: 10px 0 26px; }
.mx-reco {
	font-family: var(--font-m);
	font-size: 13.5px;
	color: var(--ink-2);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 10px 0 2px;
}
.mx-reco a { color: var(--rust-hi); border-bottom: 1px solid var(--rust); }

/* enemies database (0.7.0) */
.st-enemies .st-notes { margin: -14px 0 22px; }
.st-enemies .st-notes .qhint { margin: 4px 0; }
.enemies-table td:nth-child(4),
.enemies-table td:nth-child(8) { min-width: 200px; }
.st-sprite {
	display: block;
	height: auto;
	max-height: 64px;
	width: auto;
	max-width: 72px;
	image-rendering: pixelated;
}

/* port picker (0.7.0) */
.port-picker {
	margin: 10px 0 30px;
	padding: 18px 20px 20px;
	border: 1px solid var(--line);
	background: var(--panel);
}
.pp-q { font-family: var(--font-m); font-size: 14.5px; color: var(--ink); margin: 12px 0 10px; }
.pp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-opt {
	font-family: var(--font-m);
	font-size: 13px;
	padding: 9px 16px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.pp-opt:hover { border-color: var(--rust); color: var(--ink); }
.pp-back {
	font-family: var(--font-m);
	font-size: 12px;
	margin-top: 14px;
	padding: 4px 10px;
	border: 0;
	background: transparent;
	color: var(--ink-3);
	cursor: pointer;
}
.pp-back:hover { color: var(--rust-hi); }
.pp-card { border: 1px solid var(--line-soft); padding: 12px 16px; margin: 10px 0; }
.pp-card.pp-top { border-color: var(--rust); }
.pp-pick {
	font-family: var(--font-m);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin: 0 0 4px;
}
.pp-top .pp-pick { color: var(--rust-hi); }
.pp-title { font-family: var(--font-h); font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.pp-title:hover { color: var(--rust-hi); border-color: var(--rust); }
.pp-why { margin: 8px 0 2px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.pp-why li { padding: 1px 0; }
.pp-why .muted { color: var(--ink-3); }
.pp-none, .pp-note { font-family: var(--font-m); font-size: 12.5px; color: var(--ink-3); margin: 10px 0 4px; }
.pp-matrix-link {
	display: inline-block;
	font-family: var(--font-m);
	font-size: 12.5px;
	margin: 10px 0 0 16px;
	color: var(--ink-2);
	border-bottom: 1px solid var(--line);
}
.pp-matrix-link:hover { color: var(--rust-hi); border-color: var(--rust); }

/* scoped copy button (.console-cmds only) */
.code-copy {
	font-family: var(--font-m);
	font-size: 10.5px;
	letter-spacing: .04em;
	margin-left: 7px;
	padding: 2px 8px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: transparent;
	color: var(--ink-3);
	cursor: pointer;
	vertical-align: middle;
}
.code-copy:hover { border-color: var(--rust); color: var(--ink); }
.code-copy.done { border-color: var(--green, #6cb86c); color: var(--green, #6cb86c); }
