/*
 * Site Scorecard - kieu dang chung.
 *
 * Khong khi phong kiem dinh: nen xam rat nhat, the trang noi len bang VIEN
 * mong chu khong bang bong do, chu san sat, mau dung tiet kiem. Moi con so
 * hien ra deu co mot dong nho noi no tu dau ma co.
 */

:root {
	--bg: #f6f7f9;
	--surface: #ffffff;
	--ink: #12181f;
	--muted: #5b6672;
	--line: #d9dee4;
	--accent: #00809d;

	/*
	 * Mau nut mua dam hon mau nhan mot chut. Ly do la con so: chu trang tren
	 * #00809d chi duoc 4.59 lan tuong phan - vua du chuan va khong con cho de
	 * sai. Tren #00708a la 5.70 lan.
	 */
	--accent-deep: #00708a;
	--accent-soft: #e8f3f6;

	--wrap: 1120px;
	--read: 760px;

	--font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
	margin: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* ------------------------------------------------------------------ dau trang */

.site-head {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.site-head__bar {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.015em;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.site-head__spacer {
	flex: 1 1 auto;
}

.site-head__note {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.01em;
}

/* Thanh chuyen muc: mot dai rieng, chu nho, deu nhau nhu muc luc. */

.site-nav {
	border-top: 1px solid var(--line);
	background: var(--surface);
}

/*
 * `position: relative` dat cung ly do nhu o .sc-matrix__scroll: mot vung cuon
 * ngang chi cat duoc phan tu absolute khi chinh no la khoi chua. Cho nay chua
 * co phan tu absolute nao nen chua hong, nhung them mot nhan an cho trinh doc
 * man hinh vao dai chuyen muc la dinh ngay - chan truoc.
 */
.site-nav__inner {
	position: relative;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 22px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 22px;
	white-space: nowrap;
}

.site-nav a {
	display: block;
	padding: 11px 0;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------ o tim kiem */

.search-form {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--line);
	background: var(--surface);
	min-width: 0;
}

.search-form input[type='search'] {
	border: 0;
	background: transparent;
	padding: 7px 10px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--ink);
	min-width: 0;
	width: 100%;
}

.search-form input[type='search']:focus {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.search-form button {
	border: 0;
	border-left: 1px solid var(--line);
	background: #eef1f4;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0 12px;
	cursor: pointer;
}

.site-head .search-form {
	width: 232px;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------ dai bo loc */

.sc-rail {
	background: var(--surface);
	border: 1px solid var(--line);
	margin: 22px 0;
}

.sc-rail__row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
}

.sc-rail__row:last-child {
	border-bottom: 0;
}

.sc-rail__label {
	flex: 0 0 84px;
	padding-top: 4px;
	font-family: var(--font-display);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.sc-rail__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}

.sc-chip {
	display: inline-block;
	padding: 4px 9px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 13px;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}

.sc-chip:hover,
.sc-chip:focus {
	border-color: var(--accent);
	color: var(--accent);
}

.sc-chip.is-on {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-deep);
	font-weight: 600;
}

/* Chu thuyet minh cho o "sap xep": noi ro dang sap theo gi, khong gia vo. */
.sc-rail__static {
	display: inline-block;
	padding: 4px 9px;
	border: 1px dashed var(--line);
	font-size: 13px;
	color: var(--muted);
}

/* ------------------------------------------------------------------ dai so lieu */

.sc-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	margin: 22px 0;
}

.sc-stats div {
	flex: 1 1 140px;
	padding: 12px 14px;
	border-right: 1px solid var(--line);
	min-width: 0;
}

.sc-stats div:last-child {
	border-right: 0;
}

.sc-stats b {
	display: block;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.sc-stats span {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ------------------------------------------------------------------ tieu de khoi */

.sc-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 7px;
	margin: 34px 0 16px;
}

.sc-head h2,
.sc-head h1 {
	font-size: 19px;
	letter-spacing: -0.015em;
}

.sc-head p {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

.page-title {
	font-size: 28px;
	margin: 18px 0 6px;
}

.page-sub {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 14px;
}

.archive-intro {
	max-width: var(--read);
	color: var(--muted);
	font-size: 15px;
}

/* ------------------------------------------------------------------ luoi the */

.sc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sc-grid--one {
	grid-template-columns: minmax(0, 1fr);
}

.sc-card {
	display: flex;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 14px;
	min-width: 0;
}

.sc-card:hover {
	border-color: #b9c2cc;
}

.sc-card__shot {
	flex: 0 0 122px;
	width: 122px;
	height: 122px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	background: #fbfcfd;
	padding: 6px;
}

.sc-card__shot img {
	max-height: 108px;
	width: auto;
	object-fit: contain;
}

.sc-card__body {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.sc-kicker {
	font-family: var(--font-display);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-deep);
	text-decoration: none;
}

.sc-card__title {
	font-size: 16px;
	line-height: 1.3;
	margin: 5px 0 6px;
}

.sc-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.sc-card__title a:hover,
.sc-card__title a:focus {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sc-card__dek {
	margin: 0 0 9px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted);
}

.sc-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	border-top: 1px solid var(--line);
	padding-top: 8px;
}

/* ------------------------------------------------------------------ o diem */

.sc-score {
	display: flex;
	align-items: baseline;
	gap: 5px;
	white-space: nowrap;
}

.sc-score b {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.sc-score i {
	font-style: normal;
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.02em;
}

/* Vach nho duoi diem - doc nhanh hon con so, va van la chinh con so do. */
.sc-bar {
	display: block;
	width: 62px;
	height: 4px;
	background: #e7ebef;
	margin-top: 3px;
}

.sc-bar span {
	display: block;
	height: 4px;
	background: var(--accent);
}

.sc-price {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.sc-price s {
	font-weight: 400;
	color: var(--muted);
	margin-left: 5px;
}

.sc-off {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #8a3a12;
	background: #fdf0e6;
	border: 1px solid #f0d3bd;
	padding: 1px 5px;
}

.sc-meta {
	font-size: 12px;
	color: var(--muted);
}

/* ------------------------------------------------------------------ nut mua */

.sc-buy {
	display: inline-block;
	padding: 8px 14px;
	background: var(--accent-deep);
	border: 1px solid var(--accent-deep);
	color: #fff;
	font-family: var(--font-display);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	white-space: nowrap;
}

/*
 * Vi sao co rieng dong nay: luat chung ".sc-body a" co do uu tien 0,1,1, cao
 * hon ".sc-buy" (0,1,0), nen trong than bai chu nut se bi keo ve mau nhan -
 * trung dung mau nen cua chinh no. Da co site tra gia cho cho nay.
 */
.sc-body a.sc-buy,
.sc-card a.sc-buy,
.sc-row a.sc-buy,
.sc-matrix a.sc-buy {
	color: #fff;
}

.sc-row .sc-buy {
	padding: 5px 10px;
	font-size: 11.5px;
	margin-left: 9px;
}

.sc-buy:hover,
.sc-buy:focus,
.sc-body a.sc-buy:hover,
.sc-body a.sc-buy:focus {
	background: #005b70;
	border-color: #005b70;
	color: #fff;
}

/* ------------------------------------------------------------------ bang hang */

.sc-rows {
	background: var(--surface);
	border: 1px solid var(--line);
}

.sc-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	min-width: 0;
}

.sc-row:last-child {
	border-bottom: 0;
}

.sc-row__rank {
	flex: 0 0 26px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.sc-row__shot {
	flex: 0 0 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	background: #fbfcfd;
}

.sc-row__shot img {
	max-height: 38px;
	width: auto;
}

.sc-row__main {
	flex: 1 1 auto;
	min-width: 0;
}

.sc-row__main a {
	color: var(--ink);
	text-decoration: none;
	font-size: 14.5px;
	line-height: 1.35;
	display: block;
}

.sc-row__main a:hover {
	text-decoration: underline;
}

.sc-row__side {
	flex: 0 0 auto;
	text-align: right;
}

/* ------------------------------------------------------------------ duong dan */

.crumbs {
	font-size: 12px;
	color: var(--muted);
	padding: 14px 0 0;
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ phan trang */

.pager {
	margin: 26px 0 8px;
}

.pager ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.pager a,
.pager span {
	display: block;
	padding: 6px 11px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 13px;
	text-decoration: none;
	color: var(--ink);
}

.pager .current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ------------------------------------------------------------------ chan trang */

.site-foot {
	margin-top: 46px;
	border-top: 1px solid var(--line);
	background: var(--surface);
}

.site-foot__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 22px 20px 34px;
}

.site-foot__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.site-foot h3 {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}

.site-foot ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	max-width: 620px;
}

.site-foot a {
	font-size: 13.5px;
	color: var(--ink);
	text-decoration: none;
}

.site-foot a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.site-foot p {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--muted);
	max-width: 760px;
	line-height: 1.6;
}

.disclosure {
	font-size: 11.5px;
}

/* ------------------------------------------------------------------ 375px */

@media (max-width: 860px) {
	.sc-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.site-head__bar {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px 16px;
	}

	.site-head__note {
		display: none;
	}

	.site-head .search-form {
		width: 100%;
		order: 3;
	}

	.site-head__spacer {
		display: none;
	}

	.site-nav__inner {
		padding: 0 16px;
	}

	.wrap {
		padding: 0 16px;
	}

	.sc-rail__row {
		flex-direction: column;
		gap: 7px;
		padding: 10px 12px;
	}

	.sc-rail__label {
		flex: none;
		padding-top: 0;
	}

	.sc-stats div {
		flex: 1 1 50%;
		border-bottom: 1px solid var(--line);
	}

	.sc-card__shot {
		flex-basis: 84px;
		width: 84px;
		height: 84px;
	}

	.sc-card__shot img {
		max-height: 70px;
	}

	.page-title {
		font-size: 23px;
	}

	.sc-row__shot {
		display: none;
	}
}


/* === de mau chu huy hieu plugin === */
/*
 * Huy hieu cua plugin dat chu cung mau voi nen (nen la chinh mau do pha 10%
 * do duc), nen tuong phan chi 2.5-4.1 - duoi chuan AA 4.5, rieng nhan
 * 'Prime' gan nhu khong doc duoc.
 *
 * Chi doi MAU CHU, giu nguyen nen cua plugin. Dung hai lop cung ten de co do
 * uu tien cao hon luat goc ma khong phai dung !important.
 *
 * Khong sua tep CSS cua plugin: ban cap nhat sau nay se ghi de len.
 */
.acms-badge.acms-badge--prime   { color: #01607f; }
.acms-badge.acms-badge--danger  { color: #a81b1b; }
.acms-badge.acms-badge--success { color: #10693a; }
.acms-badge.acms-badge--warning { color: #8a5a06; }
.acms-badge.acms-badge--info    { color: #0b5e86; }


/* === mau chu phu cua plugin === */
/*
 * Plugin lay mau chu phu tu `var(--color-text-muted, #9ca3af)`. Khong theme
 * nao dat bien do nen no roi ve #9ca3af - tren nen trang chi duoc 2.54, duoi
 * chuan. Do bang Chrome that: nhan "/10", "ACMS Score" va dong "Updated: ..."
 * deu dinh.
 *
 * #6b7280 duoc 4.83, va chinh plugin cung dung mau nay o cho khac.
 */
:root { --color-text-muted: #6b7280; }

/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Day lien ket trang tinh o chan trang.                                */
/* Mau chu ke thua cua chan trang: chu chan trang da qua vong do tuong  */
/* phan, con mau nhan cua site thi chua.                                */
/* ------------------------------------------------------------------ */
.sc-foot-pages {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13px;
	line-height: 1.6;
}
.sc-foot-pages a {
	color: inherit;
	text-decoration: none;
	opacity: .82;
}
.sc-foot-pages a:hover,
.sc-foot-pages a:focus {
	opacity: 1;
	text-decoration: underline;
}

/* --- Logo thuong hieu ------------------------------------------------ */
/* Dau hieu do bang em nen no lon nho theo chinh co chu cua ten site. */
.sc-lg { white-space: nowrap; }
.sc-lg__mark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; margin-right: 0.36em; }
.sc-lg__tld { font-weight: 400; opacity: .5; }

/* --- Lien ket chan trang --------------------------------------------- */
/* Viet .sc-mang .sc-mang__h chu khong phai .sc-mang__h: luat cua theme
   kieu .xx-foot__disclosure p co do uu tien (0,1,1), cao hon (0,1,0), nen ban
   ngan gon bi de mat. Da do that moi biet.

   Khong dung opacity de lam mo: no keo do tuong phan xuong duoi nguong doc
   duoc o phan lon theme. Phan cap bang co chu la du, va co san toi thieu 11px
   vi co theme dat khoi cong bo chi 12px. */
.sc-mang { margin: 22px 0 0; }
.sc-mang .sc-mang__h { margin: 0 0 8px; font-size: max(11px, .8em); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sc-mang .sc-mang__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: max(11px, .8em); line-height: 1.6; }
.sc-mang .sc-mang__list li { margin: 0; padding: 0; flex: 0 0 auto; width: auto; max-width: 100%; }
.sc-mang .sc-mang__list li::before { content: none; }
.sc-mang .sc-mang__list a { text-decoration: none; }
.sc-mang .sc-mang__list a:hover,
.sc-mang .sc-mang__list a:focus { text-decoration: underline; }
