/* =========================================================
 * SPORTIFYVN ASIAD — Bảng tổng sắp huy chương
 * Màu theo theme SportifyVN: navy #0B1C2C, lime #C8F000.
 * Không emoji. Icon SVG.
 * ========================================================= */

.sfa-wrap {
	--sfa-navy: #0B1C2C;
	--sfa-lime: #C8F000;
	--sfa-gold: #f5b301;
	--sfa-silver: #9aa4b2;
	--sfa-bronze: #c47a3a;
	--sfa-line: #e7ecf1;
	--sfa-ink: #0f1b2a;
	font-family: inherit;
	margin: 0 auto;
	max-width: 1000px;
}

/* ---------- Head ---------- */
.sfa-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.sfa-head-left { display: flex; align-items: center; gap: 14px; }

.sfa-head-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: 14px;
	background: var(--sfa-navy);
	color: var(--sfa-lime);
	flex: 0 0 auto;
}

.sfa-head-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--sfa-ink); }
.sfa-head-sub   { margin: 2px 0 0; font-size: 13px; color: #6b7a8d; }

.sfa-updated {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #6b7a8d;
	background: #f4f7fa;
	border: 1px solid var(--sfa-line);
	border-radius: 999px;
	padding: 6px 14px;
}
.sfa-updated svg { width: 15px; height: 15px; }

/* ---------- Table ---------- */
.sfa-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--sfa-line);
	border-radius: 16px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.sfa-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 640px;
}

.sfa-table thead th {
	position: sticky;
	top: 0;
	background: var(--sfa-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 14px 12px;
	text-align: left;
	white-space: nowrap;
	z-index: 2;
}

.sfa-table thead th.sfa-col-medal,
.sfa-table thead th.sfa-col-total { text-align: center; }

.sfa-table thead th .sfa-dot {
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	margin-right: 5px;
	vertical-align: middle;
}
.sfa-dot-gold   { background: var(--sfa-gold); }
.sfa-dot-silver { background: var(--sfa-silver); }
.sfa-dot-bronze { background: var(--sfa-bronze); }

.sfa-table tbody td {
	padding: 13px 12px;
	border-top: 1px solid var(--sfa-line);
	color: var(--sfa-ink);
	vertical-align: middle;
}

.sfa-row:nth-child(even) td { background: #fafbfc; }
.sfa-row:hover td { background: #f2f7fb; }

/* Hàng có vàng: tô nhẹ */
.sfa-row.has-gold td { background: #fffdf3; }
.sfa-row.has-gold:nth-child(even) td { background: #fffceb; }

/* Chủ nhà */
.sfa-row.is-host { box-shadow: inset 3px 0 0 var(--sfa-lime); }

/* ---------- Rank ---------- */
.sfa-col-rank { width: 78px; text-align: center; }
.sfa-rank {
	font-weight: 800;
	font-size: 15px;
	color: #4a5768;
	font-variant-numeric: tabular-nums;
}

/* ---------- Country ---------- */
.sfa-country-in { display: flex; align-items: center; gap: 10px; }

.sfa-flag {
	width: 30px; height: 20px;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid rgba(0,0,0,.08);
	flex: 0 0 auto;
}
.sfa-flag-emoji { font-size: 20px; line-height: 1; }

.sfa-code {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .04em;
	color: var(--sfa-navy);
	background: #eef3f8;
	border-radius: 5px;
	padding: 2px 7px;
	flex: 0 0 auto;
}

.sfa-name { font-weight: 600; }

.sfa-host-badge {
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--sfa-navy);
	background: var(--sfa-lime);
	border-radius: 999px;
	padding: 2px 9px;
	flex: 0 0 auto;
}

/* ---------- Medals ---------- */
.sfa-col-medal { width: 92px; text-align: center; }

.sfa-medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 32px;
	border-radius: 9px;
	font-weight: 800;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.sfa-medal-gold   { background: #fff5d6; color: #a97b00; }
.sfa-medal-silver { background: #f0f2f5; color: #5c6672; }
.sfa-medal-bronze { background: #fbeee1; color: #9a5a24; }

.sfa-col-total { width: 80px; text-align: center; }
.sfa-col-total strong { font-size: 16px; font-weight: 800; color: var(--sfa-navy); }

/* ---------- Note ---------- */
.sfa-note {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	font-size: 13px;
	color: #6b7a8d;
	margin: 14px 2px 0;
	line-height: 1.6;
}
.sfa-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.sfa-note strong { color: var(--sfa-ink); }

/* ---------- Empty ---------- */
.sfa-empty {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 26px 22px;
	border: 1px dashed #cfd8e3;
	border-radius: 14px;
	color: #6b7a8d;
	background: #fafbfc;
}
.sfa-empty svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sfa-empty strong { color: var(--sfa-ink); }

/* =========================================================
 * TRANG RIÊNG
 * ========================================================= */
.sfa-page { background: #f6f8fb; }

.sfa-container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.sfa-page-hero {
	padding: 54px 0 34px;
	background: linear-gradient(120deg, #0B1C2C 0%, #143250 55%, #0B1C2C 100%);
	color: #fff;
}
.sfa-crumb { font-size: 13px; color: #9fb2c6; margin-bottom: 16px; }
.sfa-crumb a { color: #cfe0f0; text-decoration: none; }
.sfa-crumb a:hover { color: var(--sfa-lime); }
.sfa-crumb span { margin: 0 7px; }

.sfa-page-h1 {
	font-size: clamp(28px, 4.6vw, 46px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.6px;
	margin: 0 0 14px;
	max-width: 18ch;
}
.sfa-page-h1 span { color: var(--sfa-lime); }

.sfa-page-lead { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 620px; margin: 0; }

.sfa-page-body { padding: 40px 22px 64px; }

.sfa-page-body .sfa-wrap {
	background: #fff;
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 10px 40px rgba(11,28,44,.06);
}

/* =========================================================
 * KHỐI CONTENT SEO
 * ========================================================= */
.sfa-content {
	margin-top: 30px;
	background: #fff;
	border-radius: 18px;
	padding: 30px 30px 34px;
	box-shadow: 0 10px 40px rgba(11,28,44,.06);
}

.sfa-content-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--sfa-ink, #0f1b2a);
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--sfa-line, #e7ecf1);
}

.sfa-content-body { font-size: 16px; line-height: 1.8; color: #22303f; }
.sfa-content-body h2 { font-size: 21px; font-weight: 800; color: var(--sfa-ink, #0f1b2a); margin: 28px 0 12px; }
.sfa-content-body h3 { font-size: 18px; font-weight: 700; color: var(--sfa-ink, #0f1b2a); margin: 22px 0 10px; }
.sfa-content-body p  { margin: 0 0 14px; }
.sfa-content-body ul, .sfa-content-body ol { margin: 0 0 16px; padding-left: 22px; }
.sfa-content-body li { margin-bottom: 7px; }
.sfa-content-body strong { color: var(--sfa-ink, #0f1b2a); }
.sfa-content-body a { color: #1e6fb8; text-decoration: underline; }
.sfa-content-body a:hover { color: var(--sfa-navy, #0B1C2C); }
.sfa-content-body img { max-width: 100%; height: auto; border-radius: 10px; }
.sfa-content-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.sfa-content-body th, .sfa-content-body td { border: 1px solid var(--sfa-line, #e7ecf1); padding: 9px 12px; text-align: left; }
.sfa-content-body th { background: #f4f7fa; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.sfa-head-title { font-size: 19px; }
	.sfa-table { min-width: 560px; font-size: 14px; }
	.sfa-table thead th { padding: 11px 8px; }
	.sfa-table tbody td { padding: 11px 8px; }
	.sfa-col-medal { width: 70px; }
	.sfa-medal { min-width: 34px; height: 28px; font-size: 14px; }
	.sfa-page-body .sfa-wrap { padding: 16px; }
	.sfa-content { padding: 22px 18px; }
	.sfa-code { display: none; }
}
