/*
 * Site Workshop - kieu dang rieng cho trang bai.
 *
 * Chi nap o trang bai. Cac lop o day deu do bo loc trong inc/article.php dung
 * ra, tru phan bia bai va thanh nhay muc do single.php in.
 */

/* ------------------------------------------------------------------ */
/* Bia bai: anh phu het khung, chu de len anh qua lop mo dan           */
/* ------------------------------------------------------------------ */

.article-head {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(72vh, 460px);
	padding: 96px 0 30px;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	background: #0f1114;
}
.article-shot {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover;
	/* Anh Amazon phan lon la anh nen trang; ha sang xuong de chu trang doc duoc. */
	filter: grayscale(.25) brightness(.62) contrast(1.05);
}
.article-head::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to top,
		rgba(10, 11, 13, .98) 0%,
		rgba(10, 11, 13, .93) 34%,
		rgba(10, 11, 13, .62) 70%,
		rgba(10, 11, 13, .38) 100%);
}
.article-head-in { position: relative; z-index: 2; width: 100%; }

.article-head.no-shot { min-height: 0; padding: 40px 0 16px; }
.article-head.no-shot::after { display: none; }

.article-head h1 {
	margin: 0;
	font-family: var(--display); font-weight: 400; text-transform: uppercase;
	font-size: clamp(28px, 8.2vw, 56px); line-height: .96; letter-spacing: .01em;
	text-wrap: balance;
}
.article-meta {
	margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px;
	font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted);
}
.article-meta span { position: relative; }
.article-meta span + span::before {
	content: ""; position: absolute; left: -10px; top: 50%;
	width: 3px; height: 3px; background: var(--accent); transform: translateY(-50%);
}

/* ------------------------------------------------------------------ */
/* Thanh nhay muc                                                      */
/* ------------------------------------------------------------------ */

.jump { margin: 28px 0 0; border-left: 5px solid var(--accent); padding: 2px 0 2px 16px; }
.jump-head { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.jump li { font-size: 13px; }
.jump a { color: var(--muted); }
.jump a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Than bai                                                            */
/* ------------------------------------------------------------------ */

.article-body { padding-top: 26px; }
.article-body > p:first-child, .article-body > p:nth-child(2) { font-size: 18.5px; color: #dfe2e6; }

/* Vach vang ngan phia tren moi muc h2 - dau nhan cua giao dien nay. */
.article-body .sec-h2 { position: relative; margin-top: 52px; padding-top: 18px; }
.article-body .sec-h2::before {
	content: ""; position: absolute; left: 0; top: 0; width: 52px; height: 5px; background: var(--accent);
}
.article-body .model-name { color: var(--ink); }

.article-body blockquote {
	margin: 24px 0; padding: 4px 0 4px 18px; border-left: 5px solid var(--accent);
	color: #dfe2e6; font-size: 18px;
}

/* ------------------------------------------------------------------ */
/* Dai so lieu dau bai                                                 */
/* ------------------------------------------------------------------ */

.article-body .statband { margin: 30px 0 8px; }

/* ------------------------------------------------------------------ */
/* Bang so sanh dau bai                                                */
/* ------------------------------------------------------------------ */

.tablewrap {
	margin: 22px 0;
	overflow-x: auto;
	border: 1px solid var(--line);
	-webkit-overflow-scrolling: touch;
}
table.lineup {
	width: 100%; min-width: 640px; border-collapse: collapse;
	font-size: 13.5px; line-height: 1.45;
}
table.lineup th, table.lineup td {
	border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
	padding: 11px 12px; text-align: left; vertical-align: top;
}
table.lineup th:last-child, table.lineup td:last-child { border-right: 0; }
table.lineup thead th {
	background: var(--accent); color: #101114;
	font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	position: sticky; top: 0;
}
table.lineup tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
table.lineup tbody td:first-child { font-weight: 700; color: var(--ink); min-width: 190px; }

/* ------------------------------------------------------------------ */
/* Khoi san pham trong muc "The Models in Detail"                      */
/* ------------------------------------------------------------------ */

.models { margin: 8px 0 0; }
.model {
	position: relative;
	border-top: 1px solid var(--line);
	padding: 26px 0 8px;
}
.model:first-child { border-top: 0; }
.model-no {
	margin: 0 0 2px;
	font-family: var(--display); font-size: 40px; line-height: .9; color: var(--accent);
}
.model .model-name, .model h3 { margin: 0 0 14px; font-size: clamp(21px, 5.4vw, 28px); }

/* "Best for:" va hai chu "Pros" / "Cons" la cac doan chi co mot the strong -
   bien chung thanh nhan nho thay vi de nguyen mot dong van. */
.model-body > p > strong:only-child {
	display: inline-block; margin-bottom: 2px;
	font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent);
}
.model-body > p:has(> strong:first-child:not(:only-child)) {
	margin-bottom: 10px; color: #dfe2e6;
}
.model-body ul {
	list-style: none; padding: 0; margin: 0 0 18px;
	display: grid; gap: 4px;
}
.model-body ul li { position: relative; padding-left: 20px; font-size: 15px; }
.model-body ul li::before {
	content: ""; position: absolute; left: 4px; top: .62em;
	width: 7px; height: 2px; background: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Bien ten san pham (tu the <figure> co san trong bai)                */
/* ------------------------------------------------------------------ */

.plate {
	margin: 0 0 22px;
	border: 1px solid var(--line);
	background: var(--surface);
	display: grid; grid-template-columns: 1fr;
}
.plate-shot { background: #ffffff; }
.plate-shot img {
	width: 100%; height: 100%; max-height: 260px;
	object-fit: contain; padding: 14px; background: #ffffff;
}
.plate-body { padding: 16px; }
.plate-name {
	margin: 0 0 12px;
	font-family: var(--display); font-weight: 400; text-transform: uppercase;
	font-size: 19px; line-height: 1.08; letter-spacing: .01em;
}
.plate-chips { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: flex-start; }
.plate-chips:empty { display: none; }
.plate-buy { margin: 0; }

@media (min-width: 620px) {
	.plate { grid-template-columns: 240px 1fr; }
	.plate-shot img { max-height: none; min-height: 190px; }
}

/* ------------------------------------------------------------------ */
/* Danh sach "chon cai nao"                                            */
/* ------------------------------------------------------------------ */

.picks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; }
.picks li {
	position: relative; margin: 0; padding: 14px 0 14px 34px;
	border-top: 1px solid var(--line); font-size: 16px;
}
.picks li:first-child { border-top: 0; }
.picks li::before {
	content: "\2192"; position: absolute; left: 4px; top: 13px;
	color: var(--accent); font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* FAQ gap lai                                                         */
/* ------------------------------------------------------------------ */

.faq { margin: 18px 0 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
	list-style: none; cursor: pointer; padding: 15px 34px 15px 0; position: relative;
	font-weight: 700; font-size: 16.5px; line-height: 1.4;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
	content: "+"; position: absolute; right: 4px; top: 12px;
	font-family: var(--display); font-size: 24px; line-height: 1; color: var(--accent);
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item > summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 16px; color: #cfd3d8; font-size: 16px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Cuoi bai                                                            */
/* ------------------------------------------------------------------ */

.article-note {
	margin: 34px 0 0; padding: 14px 16px;
	border: 1px solid var(--line); background: var(--surface);
	color: var(--muted); font-size: 12.5px; line-height: 1.6;
}
.article-tags { margin: 20px 0 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
	border: 1px solid var(--line); padding: 6px 12px;
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

/*
 * Chu trong nut mua.
 *
 * Luat `.article-body a` co do uu tien 0,1,1, cao hon luat `.buy` (0,1,0),
 * nen neu khong co dong nay thi chu nut lay mau nhan - dung bang mau
 * nen cua chinh no, va nut thanh mot khoi mau dac khong doc duoc chu.
 * Do duoc truoc khi sua: tuong phan 1,00.
 */
.article-body a.buy { color: #101114; }
