/*
 * Site Night Desk - kieu dang chung.
 *
 * Nen toi suot ca trang. Anh san pham cua Amazon gan nhu deu nen trang, nen
 * khung anh duoc dat mot lop nen sang (--tile): de anh trang lot thom tren nen
 * toi trong nhu hong, con dat co chu y thi thanh mot "o trung bay".
 */

:root {
	--bg: #0b0e14;
	--surface: #141922;
	--surface-2: #1b2230;
	--tile: #eceff5;
	--ink: #e8ecf3;
	--muted: #8b94a3;
	--line: #222a36;
	--line-2: #2e3848;
	--accent: #4f8cff;
	--accent-ink: #0b0e14;
	--good: #56d6a0;
	--warn: #ff8f7a;
	--wrap: 1280px;
	--read: 720px;
	--radius: 12px;
	--display: Gabarito, "Trebuchet MS", system-ui, sans-serif;
	--body: "Albert Sans", 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(--body);
	font-size: 16px;
	line-height: 1.62;
	overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.16; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.nd-skip {
	position: absolute; left: -9999px; top: 0; z-index: 60;
	background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 700;
}
.nd-skip:focus { left: 8px; top: 8px; color: var(--accent-ink); }

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

/* ---------------------------------------------------------------- */
/* Dau trang                                                         */
/* ---------------------------------------------------------------- */

.nd-head {
	position: sticky; top: 0; z-index: 40;
	background: rgba(11, 14, 20, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(140%) blur(8px);
}
.nd-head-in {
	max-width: var(--wrap); margin: 0 auto; padding: 12px 20px;
	display: flex; align-items: center; gap: 16px;
}
.nd-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nd-brand:hover { color: var(--ink); }
.nd-brand-t { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }

.nd-find { position: relative; }
.nd-find > summary {
	list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
	border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
}
.nd-find > summary::-webkit-details-marker { display: none; }
.nd-find > summary:hover { color: var(--ink); border-color: var(--accent); }
.nd-find[open] > summary { color: var(--accent); border-color: var(--accent); }
.nd-find-box {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 5;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
	padding: 12px; width: min(340px, calc(100vw - 40px));
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.nd-search { display: flex; gap: 8px; }
.nd-search input {
	flex: 1 1 auto; min-width: 0; background: var(--bg); color: var(--ink);
	border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px;
	font: inherit; font-size: 14px;
}
.nd-search input::placeholder { color: var(--muted); }
.nd-search button {
	background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
	padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.nd-search button:hover { background: #7aa8ff; }

.nd-nav { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.nd-nav::-webkit-scrollbar { display: none; }
.nd-nav ul {
	max-width: var(--wrap); margin: 0 auto; padding: 0 20px; list-style: none;
	display: flex; gap: 20px; white-space: nowrap;
}
.nd-nav a {
	display: block; padding: 10px 0; font-size: 13.5px; font-weight: 600; color: var(--muted);
	border-bottom: 2px solid transparent;
}
.nd-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- */
/* The bai                                                           */
/* ---------------------------------------------------------------- */

.nd-grid {
	display: grid; gap: 26px 20px;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.nd-card { display: flex; flex-direction: column; min-width: 0; }
.nd-card-media { display: block; }
.nd-shot {
	display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
	background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 8px;
}
.nd-shot img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.nd-card-media:hover .nd-shot { border-color: var(--accent); }

.nd-card-body { padding-top: 10px; }
.nd-kicker {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
	text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.nd-card-t { font-size: 15.5px; line-height: 1.3; margin: 0 0 6px; }
.nd-card-lead .nd-card-t { font-size: 27px; letter-spacing: -0.02em; }
.nd-card-x { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.nd-card-meta { color: var(--muted); font-size: 12.5px; margin: 0; }
.nd-dot { color: var(--line-2); }

.nd-card-row { flex-direction: row; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nd-card-row .nd-card-media { flex: none; width: 104px; }
.nd-card-row .nd-shot { border-radius: 8px; padding: 5px; }
.nd-card-row .nd-card-body { padding-top: 0; min-width: 0; }
.nd-card-row .nd-card-t { font-size: 15px; }
.nd-card-row .nd-kicker { margin-bottom: 3px; }
.nd-rows .nd-card-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------------------------------------------------------------- */
/* Trang chu                                                         */
/* ---------------------------------------------------------------- */

.nd-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; }
.nd-hero-side { border-left: 1px solid var(--line); padding-left: 26px; }
.nd-hero-k {
	font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 14px;
}
.nd-rows { display: grid; gap: 14px; }

.nd-sect { margin-top: 46px; }
.nd-bt {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px;
}
.nd-bt h2 { font-size: 21px; }
.nd-bt a { font-size: 13px; font-weight: 600; color: var(--accent); }
.nd-sect-note { color: var(--muted); font-size: 13px; margin: -10px 0 18px; }

.nd-deal { position: relative; }
.nd-deal-tag {
	position: absolute; z-index: 2; top: 8px; left: 8px; margin: 0;
	background: var(--accent); color: var(--accent-ink);
	font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em;
	padding: 3px 9px; border-radius: 999px;
}

.nd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.nd-chips a {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px;
	font-size: 13.5px; font-weight: 600; background: var(--surface);
}
.nd-chips a:hover { border-color: var(--accent); }
.nd-chip-n { color: var(--muted); font-size: 12px; font-weight: 500; }

.nd-stats ul {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px;
}
.nd-stats li { display: grid; gap: 2px; }
.nd-stat-n { font-family: var(--display); font-size: 27px; font-weight: 800; }
.nd-stats li span:last-child { color: var(--muted); font-size: 13px; }
.nd-stats .nd-sect-note { margin: 12px 0 0; }

/* ---------------------------------------------------------------- */
/* Dau cac trang danh sach                                           */
/* ---------------------------------------------------------------- */

.nd-page-head { margin-bottom: 26px; }
.nd-page-h1 { font-size: 34px; letter-spacing: -0.025em; margin: 6px 0 0; }
.nd-page-sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.nd-page-desc { color: var(--muted); max-width: 70ch; margin-top: 10px; }
.nd-page-find { margin-top: 16px; max-width: 420px; }
.nd-empty { color: var(--muted); }

.nd-crumbs { font-size: 12.5px; color: var(--muted); }
.nd-crumbs a:hover { color: var(--accent); }

.nd-404-code {
	font-family: var(--display); font-size: 68px; font-weight: 900; line-height: 1;
	color: var(--surface-2); margin: 0;
}

.nd-pager { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.nd-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nd-pager a, .nd-pager .current, .nd-pager .dots {
	display: block; min-width: 38px; text-align: center;
	border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font-size: 14px;
}
.nd-pager .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.nd-pager a:hover { border-color: var(--accent); }
.nd-pager .dots { border-color: transparent; color: var(--muted); }

/* ---------------------------------------------------------------- */
/* Chan trang                                                        */
/* ---------------------------------------------------------------- */

.nd-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.nd-foot-in {
	max-width: var(--wrap); margin: 0 auto; padding: 30px 20px 14px;
	display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start;
}
.nd-foot-name { font-family: var(--display); font-weight: 800; font-size: 17px; margin: 0; }
.nd-foot-line { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.nd-foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nd-foot-nav a { color: var(--muted); font-size: 13.5px; }
.nd-foot-nav a:hover { color: var(--accent); }
.nd-disclosure {
	max-width: var(--wrap); margin: 0 auto; padding: 0 20px 28px;
	color: var(--muted); font-size: 12.5px;
}

/* ---------------------------------------------------------------- */
/* Be ngang hep                                                      */
/* ---------------------------------------------------------------- */

@media (max-width: 860px) {
	.nd-hero { grid-template-columns: 1fr; gap: 26px; }
	.nd-hero-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
	.nd-card-lead .nd-card-t { font-size: 23px; }
	.nd-page-h1 { font-size: 27px; }
}

@media (max-width: 560px) {
	.nd-wrap { padding: 20px 16px 44px; }
	.nd-head-in { padding: 10px 16px; }
	.nd-nav ul { padding: 0 16px; gap: 16px; }
	.nd-grid { gap: 22px 16px; grid-template-columns: 1fr; }
	.nd-card-row { gap: 10px; }
	.nd-foot-in, .nd-disclosure { padding-left: 16px; padding-right: 16px; }
}


/* === 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.                                */
/* ------------------------------------------------------------------ */
.nd-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;
}
.nd-foot-pages a {
	color: inherit;
	text-decoration: none;
	opacity: .82;
}
.nd-foot-pages a:hover,
.nd-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. */
.nd-lg { white-space: nowrap; }
.nd-lg__mark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; margin-right: 0.36em; }
.nd-lg__tld { font-weight: 400; opacity: .5; }

/* --- Lien ket chan trang --------------------------------------------- */
/* Viet .nd-mang .nd-mang__h chu khong phai .nd-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. */
.nd-mang { margin: 22px 0 0; }
.nd-mang .nd-mang__h { margin: 0 0 8px; font-size: max(11px, .8em); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nd-mang .nd-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; }
.nd-mang .nd-mang__list li { margin: 0; padding: 0; flex: 0 0 auto; width: auto; max-width: 100%; }
.nd-mang .nd-mang__list li::before { content: none; }
.nd-mang .nd-mang__list a { text-decoration: none; }
.nd-mang .nd-mang__list a:hover,
.nd-mang .nd-mang__list a:focus { text-decoration: underline; }
