/* =========================================================================
   Site Tastemaker - trang bai viet
   ========================================================================= */

.tm-art { padding-bottom: 10px; }

/* ---- Dau bai ---------------------------------------------------------- */

.tm-arthead { text-align: center; padding: 26px 0 30px; }
.tm-eyebrow--art { margin-bottom: 14px; }

.tm-arthead__title {
	font-size: clamp(30px, 4.6vw, 50px);
	line-height: 1.1;
}
.tm-arthead__dek {
	margin: 18px auto 0;
	max-width: 620px;
	font-size: 17px;
	color: var(--ink-2);
	line-height: 1.6;
}

.tm-arthead__by {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	margin: 26px auto 0; padding: 16px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	text-align: left;
	max-width: 420px;
}
.tm-arthead__name { margin: 0; font-size: 14px; font-weight: 600; }
.tm-arthead__name a { text-decoration: none; }
.tm-arthead__name a:hover { color: var(--wine); }
.tm-arthead__meta { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; }

/* ---- Anh mo bai ------------------------------------------------------- */

.tm-arthero { margin: 0 0 34px; }
.tm-arthero figcaption {
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--ink-3);
	display: flex; flex-wrap: wrap; gap: 4px 10px;
	justify-content: space-between;
}
.tm-arthero__credit { letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }

/* ---- Muc luc ---------------------------------------------------------- */

.tm-toc {
	border: 1px solid var(--line-2);
	background: var(--cream);
	padding: 20px 22px;
	margin: 0 0 36px;
}
.tm-toc__head {
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--ink-3); margin: 0 0 12px;
}
.tm-toc ol {
	margin: 0; padding: 0; list-style: none;
	columns: 2; column-gap: 28px;
}
.tm-toc li { margin: 0 0 7px; break-inside: avoid; font-size: 13.5px; line-height: 1.4; }
.tm-toc a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.tm-toc a:hover { color: var(--wine); border-bottom-color: var(--wine); }

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

.tm-prose { font-size: 18px; line-height: 1.75; }
.tm-prose > p { margin: 0 0 1.15em; }

.tm-prose h2 {
	font-size: clamp(23px, 2.8vw, 30px);
	line-height: 1.2;
	margin: 2em 0 0.6em;
	scroll-margin-top: 70px;
}
.tm-prose h3 {
	font-size: 20px;
	margin: 1.6em 0 0.5em;
}

.tm-prose a { color: var(--wine); text-decoration: none; border-bottom: 1px solid rgba(124, 31, 51, 0.35); }
.tm-prose a:hover { border-bottom-color: var(--wine); }

.tm-prose ul, .tm-prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.tm-prose ul > li, .tm-prose ol > li { position: relative; padding-left: 22px; margin-bottom: 0.5em; }
.tm-prose ul > li::before {
	content: '';
	position: absolute; left: 3px; top: 0.72em;
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--wine);
}
.tm-prose ol { counter-reset: tmol; }
.tm-prose ol > li { counter-increment: tmol; }
.tm-prose ol > li::before {
	content: counter(tmol) '.';
	position: absolute; left: 0; top: 0;
	font-family: var(--serif); color: var(--wine); font-weight: 600;
}

.tm-prose blockquote {
	margin: 1.6em 0; padding: 0 0 0 22px;
	border-left: 3px solid var(--wine);
	font-family: var(--serif); font-size: 21px; line-height: 1.45;
}

.tm-prose figure { margin: 1.8em 0; }
.tm-prose figure img { margin-inline: auto; border: 1px solid var(--line); background: #fff; }
.tm-prose figcaption { margin-top: 9px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.tm-table-scroll { overflow-x: auto; margin: 1.6em 0; }
.tm-prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.tm-prose th, .tm-prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tm-prose thead th { background: var(--cream); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; }

/* ---- Phieu thong so (thay cho muc "at a Glance") ---------------------- */

.tm-spec {
	border: 1px solid var(--ink);
	background: #fff;
	margin: 2.2em 0;
}
.tm-spec__head { text-align: center; padding: 20px 22px 16px; }
.tm-spec__kicker {
	font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--wine); margin: 0 0 6px; font-weight: 600;
}
.tm-spec__title {
	font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin: 0;
	scroll-margin-top: 70px;
}

.tm-spec__stats {
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
	background: var(--cream);
}
.tm-spec__stat { padding: 13px 10px; text-align: center; }
.tm-spec__stat + .tm-spec__stat { border-left: 1px solid var(--line); }
.tm-spec__statk { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tm-spec__statv { display: block; margin-top: 4px; font-family: var(--serif); font-size: 19px; font-weight: 600; }

.tm-spec__list { margin: 0; padding: 6px 22px 4px; }
.tm-spec__row {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14.5px;
}
.tm-spec__row:last-child { border-bottom: 0; }
.tm-spec__list dt { color: var(--ink-3); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.tm-spec__list dd { margin: 0; font-weight: 500; }

.tm-spec__note {
	margin: 0; padding: 12px 22px 16px;
	font-size: 11.5px; color: var(--ink-3); text-align: center;
}

/* ---- Uu va nhuoc ------------------------------------------------------ */

.tm-pc {
	display: grid; grid-template-columns: 1fr 1fr;
	background: var(--cream);
	border-top: 3px solid var(--wine);
	margin: 1.8em 0;
}
.tm-pc__col { padding: 22px 24px 20px; }
.tm-pc__col + .tm-pc__col { border-left: 1px solid var(--line-2); }
.tm-prose .tm-pc__col h3 {
	margin: 0 0 12px;
	font-family: var(--sans);
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	font-weight: 700;
}
.tm-pc__col--yes h3 { color: var(--wine); }
.tm-pc__col--no h3 { color: var(--ink-3); }
.tm-prose .tm-pc__col ul { margin: 0; padding: 0; list-style: none; }
.tm-prose .tm-pc__col li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15px; line-height: 1.5; }

/* Quy tac chung cua than bai la `.tm-prose ul > li::before` = (0,1,3). Do uu
   tien dem SO LUONG CLASS truoc, nen `.tm-pc__col--yes li::before` = (0,1,2)
   se THUA. Phai viet du hai class va xoa lai cac thuoc tinh quy tac kia dat. */
.tm-prose .tm-pc__col--yes li::before,
.tm-prose .tm-pc__col--no li::before {
	background: none;
	width: auto; height: auto; border-radius: 0;
	left: 0; top: 0;
	font-family: var(--sans);
	font-size: 15px; font-weight: 700; line-height: 1.5;
}
.tm-prose .tm-pc__col--yes li::before { content: '+'; color: var(--wine); }
.tm-prose .tm-pc__col--no li::before  { content: '\2013'; color: var(--ink-3); }

/* ---- Ai nen mua ------------------------------------------------------- */

.tm-who { margin: 2em 0; padding-left: 22px; border-left: 3px solid var(--accent); }
.tm-prose .tm-who h2 { margin-top: 0; }
.tm-who__body { font-size: 18.5px; color: var(--ink-2); }
.tm-who__body p:last-child { margin-bottom: 0; }

/* ---- Ket luan --------------------------------------------------------- */

.tm-verdict {
	margin: 2.2em 0;
	background: var(--cream);
	border: 1px solid var(--line-2);
	padding: 26px 26px 22px;
	text-align: center;
}
.tm-prose .tm-verdict h2 { margin: 0; }
.tm-verdict__score {
	display: flex; flex-wrap: wrap; gap: 6px 12px;
	align-items: baseline; justify-content: center;
	margin: 14px 0 0;
}
.tm-verdict__num { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.tm-verdict__src { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tm-verdict__body { margin-top: 16px; text-align: left; }
.tm-verdict__body p:last-child { margin-bottom: 0; }

/* ---- FAQ -------------------------------------------------------------- */

.tm-faq { margin: 1.2em 0 0; border-top: 1px solid var(--line-2); }

.tm-faq__item { border-bottom: 1px solid var(--line); }
.tm-faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: flex-start; gap: 14px;
	padding: 16px 0;
	font-family: var(--serif);
	font-size: 18px; line-height: 1.35; font-weight: 500;
}
.tm-faq__item summary::-webkit-details-marker { display: none; }
.tm-faq__item summary span { flex: 1; }
.tm-faq__item summary::after {
	content: '+';
	font-family: var(--sans); font-size: 20px; font-weight: 400;
	line-height: 1; color: var(--wine); flex: none;
	margin-top: 4px;
}
.tm-faq__item[open] summary::after { content: '\2212'; }
.tm-faq__item[open] summary { padding-bottom: 8px; }
.tm-faq__answer { padding: 0 34px 18px 0; font-size: 16px; color: var(--ink-2); }
.tm-faq__answer p:last-child { margin-bottom: 0; }

/* ---- Nut mua, the, tieu su ------------------------------------------- */

.tm-artbuy { margin: 36px 0 0; text-align: center; }
.tm-artbuy__note { display: block; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }

.tm-arttags {
	margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tm-arttags > span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.tm-arttags a {
	display: inline-block; padding: 5px 12px;
	border: 1px solid var(--line-2); font-size: 12.5px; text-decoration: none;
}
.tm-arttags a:hover { border-color: var(--wine); color: var(--wine); }

.tm-bio {
	display: flex; gap: 18px; align-items: flex-start;
	margin: 34px 0 0; padding: 24px;
	background: var(--cream); border: 1px solid var(--line);
}
.tm-bio__kicker { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.tm-bio__name { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.tm-bio__name a { text-decoration: none; }
.tm-bio__desc { font-size: 14.5px; color: var(--ink-2); margin: 0 0 8px; }
.tm-bio__more { margin: 0; font-size: 12.5px; }
.tm-bio__more a { color: var(--wine); text-decoration: none; }

/* ---- Bai truoc / bai sau --------------------------------------------- */

.tm-nextprev { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.tm-nextprev--one { grid-template-columns: 1fr; }
.tm-nextprev__item {
	display: block; padding: 18px 20px;
	border: 1px solid var(--line); text-decoration: none;
}
.tm-nextprev__item:hover { border-color: var(--ink); }
.tm-nextprev__item--next { text-align: right; }
.tm-nextprev__dir { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wine); margin-bottom: 7px; }
.tm-nextprev__title { display: block; font-family: var(--serif); font-size: 16.5px; line-height: 1.3; }

/* ---- Hop san pham cua plugin ACMS ------------------------------------ */
/* Khong sua ma nguon plugin (ban cap nhat se ghi de); chi phu mau va chu. */

.tm-prose .acms-list { margin: 1.8em 0; font-family: var(--sans); }
.tm-prose .acms-list__item {
	border: 1px solid var(--line-2) !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
}
.tm-prose .acms-list__title,
.tm-prose .acms-list__title a {
	font-family: var(--serif) !important;
	font-weight: 500 !important;
	border-bottom: 0;
}
.tm-prose .acms-btn,
.tm-prose .acms-btn--amazon {
	background: var(--wine) !important;
	border-color: var(--wine) !important;
	color: #fff !important;
	border-radius: 0 !important;
	font-family: var(--sans) !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 12px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}
.tm-prose .acms-btn:hover { background: var(--wine-dark) !important; }
.tm-prose .acms-list__price-current { font-family: var(--serif) !important; color: var(--wine) !important; }
.tm-prose .acms-list__rank {
	background: var(--ink) !important;
	color: #fff !important;
	font-family: var(--serif) !important;
}
.tm-prose .acms-badge {
	border-radius: 0 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 9.5px !important;
	font-weight: 700 !important;
}
.tm-prose .acms-badge--danger { background: var(--cream-2) !important; color: var(--wine) !important; border-color: var(--cream-2) !important; }

/* Diem "ACMS Score" cua plugin nam trong khoang 90-99 o hau het san pham nen
   khong phan biet duoc gi; de canh diem sao that cua nguoi mua chi lam nguoi
   doc tuong day la danh gia cua toa soan. An di. */
.tm-prose .acms-list__score-wrapper { display: none !important; }

/* ---- Thich ung -------------------------------------------------------- */

@media (max-width: 700px) {
	.tm-prose { font-size: 17px; }
	.tm-toc ol { columns: 1; }
	.tm-pc { grid-template-columns: 1fr; }
	.tm-pc__col + .tm-pc__col { border-left: 0; border-top: 1px solid var(--line-2); }
	.tm-spec__stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
	.tm-spec__stat + .tm-spec__stat { border-left: 0; }
	.tm-spec__stat:nth-child(even) { border-left: 1px solid var(--line); }
	.tm-spec__stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.tm-spec__row { grid-template-columns: 1fr; gap: 3px; }
	.tm-nextprev { grid-template-columns: 1fr; }
	.tm-nextprev__item--next { text-align: left; }
	.tm-bio { flex-direction: column; }
	.tm-arthero figcaption { justify-content: flex-start; }
}
