/*
Theme Name: Alchemists Child
Theme URI: https://risingstars.kr
Description: Child theme of Alchemists for Rising Stars — safe place for custom CSS/PHP without touching the parent.
Author: Rising Stars
Template: alchemists
Version: 1.2.0
Text Domain: alchemists-child
*/

/* =========================================================
   Rising Stars – TournaMatch archives (Alchemists-like)
   ========================================================= */
.rs-trn-archive {
	--rs-gold: #d4af37;
	--rs-panel: #141a22;
	--rs-line: rgba(255, 255, 255, 0.08);
	--rs-muted: #9aa3b2;
	--rs-link: #c5cdd9;
	max-width: 1180px;
	margin: 0 auto 3rem;
	padding: 0 1rem 2rem;
}

.rs-trn-archive__header {
	margin: 1.25rem 0 1.25rem;
}

.rs-trn-archive__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.rs-trn-archive__title {
	margin: 0;
	color: #f5f7fb;
	font-size: clamp(1.6rem, 2.2vw, 2.1rem);
	font-weight: 700;
	letter-spacing: 0.01em;
}

.rs-trn-archive__intro {
	margin: 0.55rem 0 0;
	max-width: 40rem;
	color: var(--rs-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.rs-trn-archive__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	border: 1px solid rgba(212, 175, 55, 0.45);
	background: transparent;
	color: var(--rs-gold) !important;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rs-trn-archive__cta:hover {
	background: rgba(212, 175, 55, 0.1);
	border-color: var(--rs-gold);
	color: #f0e0a8 !important;
}

.rs-trn-archive__panel {
	padding: 1rem 1.05rem 1.2rem;
	border: 1px solid var(--rs-line);
	border-radius: 10px;
	background: var(--rs-panel);
}

.rs-trn-archive .trn-table,
.rs-trn-archive table.dataTable {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0;
	color: #e8edf5;
}

.rs-trn-archive .trn-table thead th,
.rs-trn-archive table.dataTable thead th {
	background: transparent;
	color: #aeb6c4;
	border-bottom: 1px solid var(--rs-line) !important;
	padding: 0.8rem 0.7rem !important;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

.rs-trn-archive .trn-table tbody td,
.rs-trn-archive table.dataTable tbody td {
	padding: 0.8rem 0.7rem !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	vertical-align: middle;
}

.rs-trn-archive .trn-table tbody tr:hover td,
.rs-trn-archive table.dataTable tbody tr:hover td {
	background: rgba(255, 255, 255, 0.03);
}

.rs-trn-archive .trn-table a,
.rs-trn-archive table.dataTable a {
	color: var(--rs-link);
	font-weight: 600;
	text-decoration: none;
}

.rs-trn-archive .trn-table a:hover,
.rs-trn-archive table.dataTable a:hover {
	color: var(--rs-gold);
}

.rs-trn-archive img.rs-region-flag {
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* Live profile uses .mlk-* (inline in single-trn-player.php). */
body.single-trn-player ul.trn-nav.trn-mt-md {
	display: none !important;
}

body.single-trn-player .trn-tab-content,
body.single-trn-player .trn-tabs-content {
	display: block !important;
}

@media (max-width: 768px) {
	.rs-trn-archive__cta {
		width: 100%;
	}
}
