/**
 * Báo Chí News – layout-nt.css
 *
 * TOÀN BỘ bố cục của giao diện "nt" (Nhật Trình). File này CHỈ được nạp khi
 * skin đang dùng có layout = nt, tức 4 skin 15–18. Thứ tự nạp:
 *
 *     base.css  →  layout-nt.css  →  skins/skin-15..18.css
 *
 * Vì sao tách làm ba tầng: base.css lo mấy trang phụ dùng template cũ (archive,
 * search, page, 404) nên vẫn phải giữ; layout-nt.css chồng lên để dựng hình cho
 * bố cục mới; skin-NN.css chỉ còn việc đặt ba biến màu. Nhờ vậy thêm một bảng
 * màu thứ năm chỉ tốn một file ~10 dòng, không phải chép lại 1000 dòng bố cục.
 *
 * Quy ước:
 * - Viết mobile-first: mặc định = mobile (≤767px), rồi @media (min-width:768px)
 *   = tablet, @media (min-width:1080px) = desktop. Ba mốc này khớp giao kèo.
 * - Nhóm biến MÀU NHẤN (--nt-brand, --nt-brand-dark, --nt-headfont) do
 *   skin-15..18.css đặt. File này không khai chúng, nhưng mọi chỗ dùng đều có
 *   giá trị dự phòng trong var() để lỡ thiếu file skin trang vẫn đọc được.
 * - Mọi số đo lấy nguyên từ bản đặc tả thiết kế gốc, không làm tròn lại.
 * - Không đụng tới .bth-* (trừ .bth-shell và ba class banner nằm trong .nt-ad),
 *   không đụng base.css, không @import.
 */

/* ========================================================================== */
/* 1. Biến                                                                     */
/* ========================================================================== */

/**
 * Đặt biến trên body chứ không phải :root — để layout-nt.css chỉ ảnh hưởng đúng
 * trang đang chạy skin nt, không rò sang chỗ khác nếu sau này có ai nạp nhầm.
 */
body.nt-layout {
	/* Màu cố định — skin được phép ghi đè nhưng thường không cần. */
	--nt-ink: #1a1a1a;
	--nt-ink2: #141414;
	--nt-text: #222;
	--nt-muted: #666;
	--nt-dim: #8b8b8b;
	--nt-faint: #9a9691;
	--nt-line: #e5e5e5;
	--nt-line-soft: #eee;
	--nt-line-soft2: #f2f2f2;
	--nt-bg: #fff;
	--nt-bg-soft: #fbfafa;
	--nt-bg-soft2: #fafafa;
	--nt-ph1: #e7e5e2;
	--nt-ph2: #f0eeeb;
	--nt-ad-bd: #ededed;
	--nt-ad-bg: #f7f7f7;

	/* Số đo — đây là bộ MOBILE, hai media query bên dưới ghi đè. */
	--nt-max: 1200px;
	--nt-pad: 16px;
	--nt-hero: 1fr;
	--nt-three: 1fr;
	--nt-main: 1fr;
	--nt-sec: 1fr;
	--nt-thumb: 112px;
	/*
	 * Font dùng cho chữ thường và CHỮ SỐ. Tách thành biến để đổi một chỗ là cả
	 * bố cục theo — trước đây Arial và Georgia nằm rải rác 23 chỗ.
	 */
	--nt-font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--nt-h1: 32px;
	--nt-heroh: 26px;
	--nt-leadh: 21px;
	--nt-artw: 100%;
	--nt-sapo: 18px;
	--nt-bodyf: 17px;
	--nt-vd: none;
	--nt-vdp: 0;
	--nt-fcols: repeat(2, minmax(0, 1fr));
	--nt-mobbar: 64px;

	/* Thanh tab đáy che mất phần chân trang nếu không chừa chỗ sẵn. */
	padding-bottom: var(--nt-mobbar);
	background: var(--nt-bg);
	color: var(--nt-text);
}

/* ========================================================================== */
/* 2. Khung                                                                    */
/* ========================================================================== */

/**
 * .bth-shell giữ nguyên tên vì inc/bg-ad.php bám vào đúng selector này để bó
 * cột khi bật quảng cáo nền. Ở đây chỉ cho nó cái nền trắng, TUYỆT ĐỐI không
 * đặt max-width/margin — bg-ad.php mới là chỗ quyết định hai thứ đó.
 */
.nt-layout .bth-shell { position: relative; background: var(--nt-bg); }

.nt {
	background: var(--nt-bg);
	color: var(--nt-text);
	font-family: var(--nt-font);
	font-size: 15px;
	line-height: 1.5;
}

/* Gỡ mấy nếp của base.css để số đo trong file này là số đo cuối cùng. */
.nt h1, .nt h2, .nt h3, .nt h4, .nt h5, .nt h6 { margin: 0; font-weight: 700; line-height: 1.3; color: var(--nt-ink); }
.nt p { margin: 0; }
.nt ul, .nt ol { margin: 0; padding: 0; list-style: none; }
.nt a { color: inherit; text-decoration: none; }
.nt img { max-width: 100%; display: block; }
.nt figure { margin: 0; }

/* Panel đóng/mở bằng thuộc tính hidden (JS hỏng thì vẫn là HTML thường). */
.nt [hidden] { display: none !important; }

/* Khối canh giữa. Bốn class "-inner" dùng chung công thức với .nt-wrap. */
.nt-wrap,
.nt-topline-inner,
.nt-nav-inner,
.nt-hot-inner,
.nt-footer-inner {
	width: 100%;
	max-width: var(--nt-max);
	margin: 0 auto;
	padding: 0 var(--nt-pad);
}

/**
 * Mỗi khối trên trang chủ cách nhau bằng một đường kẻ mảnh — đây là "nhịp" của
 * cả giao diện, nên gom vào một class thay vì lặp ở từng section.
 */
/*
 * KHÔNG đặt padding ngang ở đây: bên trong mỗi section đã có .nt-wrap lo phần
 * thụt lề. Đặt cả hai chỗ thì nội dung bị thụt HAI lần (mobile 32px thay vì
 * 16px) trong khi các ô quảng cáo — vốn nằm trong .nt-wrap trần — chỉ thụt một
 * lần, thành ra banner thò ra rộng hơn bài viết 16px mỗi bên.
 * Đường kẻ trên vẫn chạy hết bề ngang khung 1200px, đúng như bản thiết kế.
 */
.nt-section {
	width: 100%;
	max-width: var(--nt-max);
	margin: 22px auto 0;
	padding: 26px 0 0;
	border-top: 1px solid var(--nt-line);
}
.nt-section--first { margin-top: 0; padding-top: 24px; border-top: 0; }

/*
 * Trang bài viết và trang chuyên mục không đi qua .nt-section nên không thừa
 * hưởng khoảng thở phía trên như trang chủ: breadcrumb và ô quảng cáo cột bên
 * đứng SÁT KHÍT banner đầu trang (đo được đúng 0px), nhìn như hai banner dính
 * vào nhau. Bản thiết kế gốc để 22px ở đây.
 */
.nt-single,
.nt-cat { padding-top: 22px; }

/* Sọc chéo giữ chỗ khi bài chưa có ảnh — dùng lại ở mọi khối. */
.nt-card__ph,
.nt-row__ph,
.nt-list__ph,
.nt-side-row__ph,
.nt-mini__ph,
.nt-figure__ph,
.nt-opinion__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(135deg, var(--nt-ph1) 0 7px, var(--nt-ph2) 7px 14px);
}

/* Ảnh hero nhấp nháy rất nhẹ lúc chờ — báo cho người đọc biết chỗ này sẽ có ảnh. */
@keyframes nt-ph { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.nt-card--hero .nt-card__ph { animation: nt-ph 3.4s ease-in-out infinite; }

/**
 * Bàn phím: mọi thứ bấm được phải thấy rõ viền focus. Dùng :focus-visible nên
 * người bấm chuột không bị viền nhảy ra.
 */
.nt a:focus-visible,
.nt button:focus-visible,
.nt input:focus-visible,
.nt textarea:focus-visible,
.nt [tabindex]:focus-visible,
.nt-footer a:focus-visible,
.nt-tabbar__item:focus-visible {
	outline: 2px solid var(--nt-brand, #9b1c43);
	outline-offset: 2px;
}

/* Thanh cuộn ngang trên mobile: cuộn được nhưng không hiện thanh xám xấu. */
.nt-nav-inner,
.nt-hot-inner,
.nt-secthead,
.nt-cathead {
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	white-space: nowrap;
}
.nt-nav-inner::-webkit-scrollbar,
.nt-hot-inner::-webkit-scrollbar,
.nt-secthead::-webkit-scrollbar,
.nt-cathead::-webkit-scrollbar { display: none; }

/* ========================================================================== */
/* 3. Header                                                                   */
/* ========================================================================== */

.nt-header { background: var(--nt-bg); }

/* --- Dải trên cùng: mobile không có chỗ cho nó, ẩn đi. --- */
.nt-topline { display: none; border-bottom: 1px solid var(--nt-line); }
.nt-topline-inner { height: 44px; display: flex; align-items: center; gap: 14px; }

.nt-brandmark { display: flex; align-items: baseline; gap: 2px; flex: 0 0 auto; }
.nt-brandmark__name {
	font: 700 22px/1 var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	letter-spacing: -.015em;
	color: var(--nt-brand, #9b1c43);
}
.nt-brandmark__tld { font: 700 11px/1 var(--nt-font); color: var(--nt-faint); }
/* Có logo tuỳ chỉnh thì logo tự lo phần nhận diện, chữ không chen vào nữa. */
.nt-brandmark .custom-logo { max-height: 30px; width: auto; }

.nt-topline__sep { width: 1px; height: 18px; background: var(--nt-line); flex: 0 0 auto; }
.nt-topline__date { font-size: 13px; color: #757575; flex: 0 0 auto; }
.nt-topline__spacer { flex: 1; }

.nt-regions { display: flex; align-items: center; gap: 14px; }
.nt-regions__item { font-size: 13px; color: #757575; white-space: nowrap; }
.nt-regions__item:hover { color: var(--nt-brand, #9b1c43); }

.nt-iconbtn {
	width: 28px; height: 28px; flex: 0 0 auto;
	border: 1px solid var(--nt-line); border-radius: 50%; background: transparent;
	display: flex; align-items: center; justify-content: center;
	font: 15px/1 var(--nt-font); color: var(--nt-muted);
	cursor: pointer; padding: 0;
	position: relative;
}
/*
 * Vòng tròn vẽ ra 28px cho đúng mẫu, nhưng ngón tay cần 44px. Nới vùng bấm
 * bằng lớp phủ trong suốt thay vì phóng to nút — giữ nguyên hình, thêm chỗ chạm.
 */
.nt-iconbtn::after { content: ""; position: absolute; inset: -8px; }
.nt-iconbtn:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }

.nt-login { font-size: 13px; font-weight: 700; color: var(--nt-text); white-space: nowrap; }
.nt-login:hover { color: var(--nt-brand, #9b1c43); }

/* --- Header rút gọn cho mobile --- */
.nt-mobhead { display: block; border-bottom: 1px solid var(--nt-line); }
.nt-mobhead-inner { height: 52px; padding: 0 var(--nt-pad); display: flex; align-items: center; gap: 14px; }

/*
 * Ba gạch vẫn rộng 22px như mẫu, nhưng padding + margin âm nới vùng chạm ra
 * 44x44 mà không đẩy lệch hàng — nút này là lối vào duy nhất của mục lục trên
 * điện thoại, bấm hụt là bạn đọc tưởng báo hỏng.
 */
.nt-burger {
	display: flex; flex-direction: column; justify-content: center; gap: 4px;
	width: 22px; height: 14px; flex: 0 0 auto;
	box-sizing: content-box;
	padding: 15px 11px; margin: -15px -11px;
	border: 0; background: transparent; cursor: pointer;
}
.nt-burger__bar { height: 2px; background: var(--nt-text); }

.nt-mobhead__brand { flex: 1; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.nt-mobhead__brand .nt-brandmark__name { font-size: 20px; letter-spacing: 0; }
.nt-mobhead .nt-iconbtn { border: 0; font-size: 17px; color: #444; }

/* --- Panel xổ xuống (dùng chung cho menu và tìm kiếm) --- */
.nt-panel { border-bottom: 1px solid var(--nt-line); background: var(--nt-bg-soft2); }
.nt-panel--menu { padding: 14px var(--nt-pad); }
.nt-panel--search { padding: 16px var(--nt-pad); }
.nt-panel[hidden] { display: none; }

.nt-panel__label {
	font: 700 11px/1 var(--nt-font);
	letter-spacing: .1em; color: var(--nt-dim);
	margin-bottom: 10px;
}
/* Trong panel tìm kiếm nhãn chỉ là chữ dẫn "Gợi ý:", không phải tiêu đề khối. */
.nt-panel--search .nt-panel__label {
	font: 12px/1 var(--nt-font);
	letter-spacing: 0; margin-bottom: 0;
}

.nt-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e9e7e4; }
.nt-panel__cat {
	background: var(--nt-bg); padding: 13px 12px;
	font-size: 14px; font-weight: 700; color: #333;
	min-height: 44px; display: flex; align-items: center;
}
.nt-panel__cat:hover { color: var(--nt-brand, #9b1c43); }

.nt-panel__foot {
	margin-top: 14px; padding-top: 12px;
	border-top: 1px solid var(--nt-line);
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.nt-panel__chip {
	font-size: 12.5px; color: var(--nt-muted);
	border: 1px solid var(--nt-line); background: var(--nt-bg);
	padding: 7px 11px;
}
.nt-panel__chip:hover { color: var(--nt-brand, #9b1c43); border-color: var(--nt-brand, #9b1c43); }
.nt-panel__foot .nt-login { margin-left: auto; font-size: 12.5px; color: var(--nt-brand, #9b1c43); }
.nt-panel__foot .nt-topline__date { font-size: 12px; color: var(--nt-faint); flex-basis: 100%; }

.nt-searchform { display: flex; gap: 8px; width: 100%; max-width: var(--nt-max); margin: 0 auto; }
.nt-searchform__input {
	flex: 1; min-width: 0; height: 40px; padding: 0 12px;
	border: 1px solid #d8d5d1; border-radius: 2px;
	font-size: 15px; color: var(--nt-text); background: var(--nt-bg);
}
.nt-searchform__input:focus { outline: 2px solid var(--nt-brand, #9b1c43); outline-offset: -1px; }
.nt-searchform__btn {
	height: 40px; padding: 0 18px;
	border: 0; border-radius: 2px;
	background: var(--nt-brand, #9b1c43); color: #fff;
	font: 700 14px/1 var(--nt-font); cursor: pointer;
}
.nt-searchform__btn:hover { background: var(--nt-brand-dark, #78142f); }

.nt-suggest {
	width: 100%; max-width: var(--nt-max); margin: 12px auto 0;
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.nt-suggest__item {
	font-size: 13px; color: #444;
	border: 1px solid var(--nt-line); background: var(--nt-bg);
	padding: 5px 10px;
}
.nt-suggest__item:hover { color: var(--nt-brand, #9b1c43); border-color: var(--nt-brand, #9b1c43); }

/* --- Thanh menu chuyên mục --- */
.nt-nav {
	position: sticky; top: 0; z-index: 60;
	background: var(--nt-bg);
	border-bottom: 1px solid var(--nt-line);
}
/**
 * Trạng thái dính do JS gắn. Phải là position:fixed (không phải sticky) thì
 * inc/bg-ad.php mới bó được thanh menu vào đúng bề ngang cột nội dung khi bật
 * quảng cáo nền — nó canh bằng left:50% + transform trên chính selector này.
 */
.nt-nav.is-fixed {
	position: fixed; top: 0; left: 0; right: 0; width: 100%;
	z-index: 1000;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
.admin-bar .nt-nav.is-fixed { top: 32px; }

/*
 * `safe center` chứ không phải `center`: khi báo có nhiều chuyên mục, hàng menu
 * dài hơn khung thì trình duyệt tự trả về căn trái để mục đầu tiên không bị
 * đẩy ra ngoài vùng cuộn — canh giữa cứng sẽ nuốt mất mấy mục đầu.
 */
.nt-nav-inner { height: 46px; display: flex; align-items: stretch; justify-content: safe center; }
/*
 * <li> phải là flex thì thẻ <a> bên trong mới cao bằng cả thanh menu. Để <li>
 * là block thì <a> chỉ cao đúng dòng chữ (20px) — bấm hụt vào khoảng trên dưới
 * là chuyện thường gặp trên điện thoại.
 */
.nt-nav-inner > li { display: flex; align-items: stretch; flex: 0 0 auto; list-style: none; }
.nt-nav__item {
	flex: 1 0 auto;
	display: flex; align-items: center;
	padding: 0 11px;
	font-size: 13.5px; font-weight: 700; letter-spacing: .005em;
	color: #2b2b2b;
	box-shadow: inset 0 -3px 0 transparent;
}
.nt-nav__item:hover { color: var(--nt-brand, #9b1c43); }
.nt-nav__item.is-active {
	color: var(--nt-brand, #9b1c43);
	box-shadow: inset 0 -3px 0 var(--nt-brand, #9b1c43);
}

/* Menu con: mobile để nằm thẳng trong luồng, desktop mới xổ ra khi rê chuột. */
.nt-nav__sub { display: none; }

/* --- Dải "NÓNG" --- */
.nt-hot { background: var(--nt-bg-soft); border-bottom: 1px solid var(--nt-line); }
.nt-hot-inner { height: 38px; display: flex; align-items: center; gap: 16px; }
.nt-hot__label {
	flex: 0 0 auto;
	font: 700 11px/1 var(--nt-font);
	letter-spacing: .12em;
	color: var(--nt-brand, #9b1c43);
}
.nt-hot__item { flex: 0 0 auto; font-size: 13px; color: #555; }
.nt-hot__item:hover { color: var(--nt-brand, #9b1c43); }

/* ========================================================================== */
/* 4. Quảng cáo                                                                */
/* ========================================================================== */

/**
 * .nt-ad chỉ là cái khung đặt chỗ; ruột bên trong do baochi_ads_banner() in ra
 * (.bth-banner / .bth-ad-inline / .bth-banner--empty). base.css đã tạo kiểu cho
 * ba class đó theo gu skin cũ (viền đứt, sọc chéo 45°) nên ở đây phải ghi đè
 * bằng selector con của .nt-ad để về đúng gu Nhật Trình: ô phẳng, viền mảnh.
 */
.nt-ad { width: 100%; }
.nt-ad--head { margin-top: 18px; }
.nt-ad--mid { margin-top: 26px; }
.nt-ad--side { margin-top: 26px; }
/* Banner đầu cột bên nằm sát mép trên khối, không cần đẩy xuống. */
.nt-aside > .nt-ad--side:first-child { margin-top: 0; }

/**
 * Ảnh quảng cáo: THU cho vừa cột nhưng KHÔNG PHÓNG quá cỡ thật.
 *
 * Trước đây dùng width:100%, ảnh nào cũng bị kéo cho bằng cột — một ảnh
 * 818×491 treo ở ô đầu trang bị kéo thành 1160×696: mờ hẳn và nuốt gần 700px
 * đỉnh mỗi trang. Nhà quảng cáo gửi ảnh cỡ nào thì hiện đúng cỡ đó, nhỏ hơn cột
 * thì nằm giữa; lớn hơn thì thu lại vừa cột. Muốn banner trải kín cột thì tải
 * ảnh đúng bề ngang cột (1160px) — trang Quảng cáo ghi sẵn số này.
 */
.nt-ad .bth-banner { margin: 0; text-align: center; }
.nt-ad .bth-banner img,
.nt-ad .bth-ad-inline img {
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.nt-ad .bth-ad-inline { line-height: 0; text-align: center; }
.nt-ad .bth-ad-inline a { display: block; max-width: 100%; }

/**
 * width:100% là bắt buộc, không phải thừa: ô này có aspect-ratio kèm min-height,
 * mà bề rộng chưa xác định thì trình duyệt suy ngược bề rộng TỪ min-height
 * (64px × 970/120 = 517px) — trên điện thoại là tràn ngang cả trang.
 */
.nt-ad .bth-banner--empty {
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 4px;
	width: 100%;
	border: 1px solid var(--nt-ad-bd);
	background: var(--nt-ad-bg);
	min-height: 64px;
}
.nt-ad .bth-banner--empty span {
	font: 11px/1 ui-monospace, Menlo, Consolas, monospace;
	font-weight: 400;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #aaa;
	text-align: center;
}

/**
 * Tỉ lệ khung chỉ áp cho ô GIỮ CHỖ. Banner thật là ảnh, ép tỉ lệ vào ảnh sẽ
 * méo hoặc cắt mất chữ của nhà quảng cáo.
 */
.nt-ad--head .bth-banner--empty { aspect-ratio: 970 / 250; max-height: 250px; min-height: 74px; gap: 5px; }
.nt-ad--mid .bth-banner--empty { aspect-ratio: 970 / 120; min-height: 64px; }
.nt-ad--side .bth-banner--empty { aspect-ratio: 300 / 250; min-height: 0; }

/* ========================================================================== */
/* 5. Thẻ bài viết dùng lại nhiều nơi                                          */
/* ========================================================================== */

/**
 * Mọi khung ảnh đều là thẻ <a>, mà <a> mặc định là inline — trên phần tử inline
 * thì aspect-ratio KHÔNG có tác dụng: khung sập lại, ảnh giữ nguyên tỉ lệ gốc
 * (860×484) thay vì bị cắt về 16:9, hero cao vống lên gần 600px.
 * Ba khung dưới thoát nạn nhờ là ô của grid (grid tự blockify con), riêng
 * .nt-card__media nằm trong khối thường nên phải nói rõ. Khai chung cho cả bốn
 * để lần sau đổi bố cục không dẫm lại.
 */
.nt-card__media,
.nt-row__media,
.nt-list__media,
.nt-side-row__media { display: block; width: 100%; }

/* --- Thẻ dọc: ảnh trên, chữ dưới --- */
.nt-card { min-width: 0; }
.nt-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nt-ph2); }
.nt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-card__body { padding-top: 14px; }
.nt-card__cat {
	display: block;
	font: 700 12px/1 var(--nt-font);
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--nt-brand, #9b1c43);
}
.nt-card__cat--dim { color: var(--nt-dim); }
.nt-card__cat:hover { color: var(--nt-brand-dark, #78142f); }
.nt-card__title {
	margin: 8px 0 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 18px; font-weight: 700; line-height: 1.28;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-card__title a:hover, .nt-card:hover .nt-card__title { color: var(--nt-brand, #9b1c43); }
.nt-card__desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--nt-muted); text-wrap: pretty; }
.nt-card__time { margin-top: 8px; font-size: 12px; color: var(--nt-dim); }

/* Bài hero: chữ to hơn, sapo dài hơn. */
.nt-card--hero .nt-card__title { font-size: var(--nt-heroh); line-height: 1.2; }
.nt-card--hero .nt-card__desc { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #555; }
.nt-card--hero .nt-card__time { margin-top: 9px; font-size: 12.5px; }

/* Hàng 3 bài: gạch đen dày phía trên là dấu nhận biết của khối này. */
.nt-card--top { border-top: 3px solid var(--nt-ink); padding-top: 13px; }
.nt-card--top .nt-card__body { padding-top: 0; }
.nt-card--top .nt-card__cat { margin-top: 11px; font-size: 11.5px; }
.nt-card--top .nt-card__title { margin-top: 7px; font-size: 18px; line-height: 1.28; }

/* Bài chủ của một khối chuyên mục. */
.nt-card--lead .nt-card__body { padding-top: 0; }
.nt-card--lead .nt-card__title { margin-top: 13px; font-size: var(--nt-leadh); line-height: 1.24; }
.nt-card--lead .nt-card__desc { margin-top: 9px; font-size: 15px; line-height: 1.55; color: #555; }

/* Thẻ trong lưới 6 bài: nhãn chuyên mục xám cho đỡ rối mắt vì có tới 6 cái. */
.nt-card--grid .nt-card__body { padding-top: 0; }
.nt-card--grid .nt-card__cat { margin-top: 10px; font-size: 11px; }
.nt-card--grid .nt-card__title { margin-top: 7px; font-size: 16.5px; line-height: 1.3; }
.nt-card--grid .nt-card__time { margin-top: 7px; }

/* --- Hàng tin ngang nhỏ: chữ trái, ảnh phải (cột bên của hero) --- */
.nt-row {
	display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid var(--nt-line);
}
.nt-row__body { min-width: 0; }
.nt-row__title {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 15.5px; font-weight: 700; line-height: 1.32;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-row__title a:hover, .nt-row:hover .nt-row__title { color: var(--nt-brand, #9b1c43); }
.nt-row__meta { margin-top: 6px; font-size: 12px; color: var(--nt-dim); }
.nt-row__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--nt-ph2); }
.nt-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Danh sách tin ngang: ảnh trái, chữ phải --- */
.nt-list { display: block; }
.nt-list__item {
	display: grid; grid-template-columns: var(--nt-thumb) minmax(0, 1fr); gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--nt-line-soft);
}
.nt-list__media { aspect-ratio: 240 / 145; overflow: hidden; background: var(--nt-ph2); }
.nt-list__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-list__body { min-width: 0; }
.nt-list__cat {
	display: block;
	font: 700 11px/1 var(--nt-font);
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--nt-brand, #9b1c43);
}
.nt-list__title {
	margin: 7px 0 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 17.5px; font-weight: 700; line-height: 1.3;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-list__title a:hover, .nt-list__item:hover .nt-list__title { color: var(--nt-brand, #9b1c43); }
.nt-list__desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--nt-muted); text-wrap: pretty; }
.nt-list__time { margin-top: 8px; font-size: 12px; color: var(--nt-dim); }

/* --- Danh sách chỉ có tiêu đề --- */
.nt-mini { display: block; }
.nt-mini__item {
	padding: 0 0 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--nt-line-soft);
}
.nt-mini__item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.nt-mini__title {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 15.5px; font-weight: 700; line-height: 1.34;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-mini__title a:hover, .nt-mini__item:hover .nt-mini__title { color: var(--nt-brand, #9b1c43); }
.nt-mini__time { margin-top: 5px; font-size: 12px; color: var(--nt-dim); }

/* --- Hàng ảnh nhỏ bên trái + tiêu đề (cột phụ khối A/C) --- */
.nt-side-row {
	display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px;
	padding: 0 0 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--nt-line-soft);
}
.nt-side-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.nt-side-row__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--nt-ph2); }
.nt-side-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-side-row__body { min-width: 0; }
.nt-side-row__title {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 15px; font-weight: 700; line-height: 1.32;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-side-row__title a:hover, .nt-side-row:hover .nt-side-row__title { color: var(--nt-brand, #9b1c43); }
.nt-side-row__time { margin-top: 6px; font-size: 12px; color: var(--nt-dim); }

/* ========================================================================== */
/* 6. Trang chủ                                                                */
/* ========================================================================== */

.nt-hero { display: grid; grid-template-columns: var(--nt-hero); gap: 26px; }
.nt-hero__side { min-width: 0; display: flex; flex-direction: column; }
/* Hàng cuối cột bên hero không cần kẻ vì đã có kẻ của khối tiếp theo. */
.nt-hero__side .nt-row:last-child { border-bottom: 0; }

.nt-toprow { display: grid; grid-template-columns: var(--nt-three); gap: 26px; }

/* --- Đầu khối chuyên mục --- */
.nt-secthead {
	display: flex; align-items: flex-end; gap: 18px;
	border-bottom: 1px solid var(--nt-line);
	margin-bottom: 20px;
}
.nt-secthead__title {
	flex: 0 0 auto;
	margin: 0 0 -1px;
	padding-bottom: 9px;
	border-bottom: 3px solid var(--nt-brand, #9b1c43);
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 23px; font-weight: 700;
	color: var(--nt-ink);
}
.nt-secthead__title a:hover { color: var(--nt-brand, #9b1c43); }
.nt-secthead__sub { flex: 0 0 auto; padding-bottom: 12px; font-size: 13.5px; color: var(--nt-muted); }
.nt-secthead__sub:hover { color: var(--nt-brand, #9b1c43); }
.nt-secthead__note { flex: 0 0 auto; padding-bottom: 12px; font-size: 13px; color: var(--nt-dim); }

/* --- Khối 2 cột / 3 cột --- */
.nt-sect2 { display: grid; grid-template-columns: var(--nt-sec); gap: 26px; }
.nt-sect3 { display: grid; grid-template-columns: var(--nt-three); gap: 24px; }
.nt-sect3 .nt-card--lead .nt-card__title { margin-top: 12px; font-size: 19px; line-height: 1.26; }
.nt-sect3 .nt-card--lead .nt-card__desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--nt-muted); }

/**
 * Kẻ dọc giữa các cột chỉ có ý nghĩa khi cột nằm cạnh nhau. Mobile xếp chồng
 * nên --nt-vd = none, kẻ tự biến mất, không cần viết thêm media query.
 */
.nt-col { min-width: 0; border-left: var(--nt-vd); padding-left: var(--nt-vdp); }
/* Thẻ đứng trong cột phụ (cột 3 của khối B) nhỏ hơn thẻ thường. */
.nt-col .nt-card { margin-bottom: 16px; }
.nt-col .nt-card:last-child { margin-bottom: 0; }
.nt-col .nt-card .nt-card__body { padding-top: 0; }
.nt-col .nt-card .nt-card__title { margin-top: 10px; font-size: 15.5px; line-height: 1.32; }
.nt-col .nt-card .nt-card__time { margin-top: 6px; }

.nt-grid6 { display: grid; grid-template-columns: var(--nt-three); gap: 24px 26px; }

/* --- Góc nhìn --- */
.nt-opinion {
	min-width: 0;
	display: flex; gap: 14px;
	border-left: var(--nt-vd); padding-left: var(--nt-vdp);
}
.nt-opinion__avatar {
	flex: 0 0 52px; width: 52px; height: 52px;
	border-radius: 50%; overflow: hidden;
	background: repeating-linear-gradient(135deg, var(--nt-ph1) 0 5px, var(--nt-ph2) 5px 10px);
}
.nt-opinion__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.nt-opinion__body { min-width: 0; }
.nt-opinion__title {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 16.5px; font-weight: 700; font-style: italic; line-height: 1.3;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-opinion__title a:hover, .nt-opinion:hover .nt-opinion__title { color: var(--nt-brand, #9b1c43); }
.nt-opinion__desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--nt-muted); }
.nt-opinion__author { margin-top: 8px; font: 700 12.5px/1 var(--nt-font); color: var(--nt-text); }

/* --- Thân trang + cột bên --- */
.nt-main { display: grid; grid-template-columns: var(--nt-main); gap: 34px; }
.nt-main > * { min-width: 0; }
/* Đầu khối "Mới nhất" nằm sát danh sách hơn vì hàng tin đã có padding trên. */
.nt-main .nt-secthead { margin-bottom: 6px; }

.nt-more {
	display: block;
	margin-top: 18px;
	text-align: center;
	border: 1px solid var(--nt-line);
	padding: 12px;
	font: 700 13.5px/1.4 var(--nt-font);
	color: #444;
	background: transparent;
	width: 100%;
	cursor: pointer;
}
.nt-more:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }

/* ========================================================================== */
/* 7. Cột bên                                                                  */
/* ========================================================================== */

.nt-aside { min-width: 0; }
.nt-box { border-top: 3px solid var(--nt-ink); padding-top: 12px; }
.nt-box + .nt-box { margin-top: 26px; }
.nt-box__title {
	margin: 0 0 4px;
	font: 700 13px/1 var(--nt-font);
	letter-spacing: .1em;
	color: var(--nt-ink);
}

.nt-rank { display: block; }
.nt-rank__item {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 13px 0;
	border-bottom: 1px solid var(--nt-line-soft);
}
.nt-rank__item:last-child { border-bottom: 0; }
.nt-rank__num { flex: 0 0 auto; font: 700 20px/1 var(--nt-font); color: #d8d4d0; }
.nt-rank__title {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 14.5px; font-weight: 700; line-height: 1.34;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-rank__title a:hover, .nt-rank__item:hover .nt-rank__title { color: var(--nt-brand, #9b1c43); }

.nt-util { margin-top: 6px; border: 1px solid var(--nt-line-soft); }
.nt-util__row {
	display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
	padding: 11px 12px;
	border-bottom: 1px solid var(--nt-line-soft2);
}
.nt-util__row:last-child { border-bottom: 0; }
.nt-util__label { font-size: 13px; color: var(--nt-muted); }
.nt-util__value { font: 700 14px/1 var(--nt-font); color: var(--nt-text); text-align: right; }
/**
 * sidebar-nt.php đánh dấu chiều tăng/giảm bằng data-nt-trend (đọc mũi tên cuối
 * dòng) thay vì đẻ thêm tên class. Hai màu dưới đây là quy ước quen của bảng
 * giá: đỏ tăng, xanh giảm.
 */
.nt-util__value[data-nt-trend="up"] { color: #c0392b; }
.nt-util__value[data-nt-trend="down"] { color: #1e7a4f; }

/* ========================================================================== */
/* 8. Trang chuyên mục                                                         */
/* ========================================================================== */

.nt-crumb { font-size: 12.5px; color: var(--nt-dim); }
.nt-crumb a:hover { color: var(--nt-brand, #9b1c43); }
.nt-crumb .sep { margin: 0 6px; }

.nt-cathead {
	display: flex; align-items: flex-end; gap: 20px;
	border-bottom: 2px solid var(--nt-ink);
	margin-top: 10px;
}
.nt-cathead__title {
	flex: 0 0 auto;
	margin: 0;
	padding-bottom: 10px;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 30px; font-weight: 700; letter-spacing: -.01em;
	color: var(--nt-brand, #9b1c43);
}
.nt-cathead__sub { flex: 0 0 auto; padding-bottom: 14px; font-size: 13.5px; color: var(--nt-muted); }
.nt-cathead__sub:hover { color: var(--nt-brand, #9b1c43); }

.nt-catlead {
	display: grid; grid-template-columns: var(--nt-sec); gap: 24px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--nt-line);
}
/* Bài chủ chuyên mục to bằng hero trang chủ — đây là "mặt tiền" của chuyên mục. */
.nt-catlead .nt-card__body { padding-top: 0; }
.nt-catlead .nt-card__title { margin-top: 13px; font-size: var(--nt-heroh); line-height: 1.2; }
.nt-catlead .nt-card__desc { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: #555; }
.nt-catlead .nt-card__time { margin-top: 8px; }

.nt-pagination { margin-top: 28px; }
.nt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-pagination .page-numbers {
	display: inline-block;
	padding: 9px 14px;
	border: 1px solid var(--nt-line);
	font-size: 13.5px; font-weight: 700;
	color: #444;
}
.nt-pagination a.page-numbers:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }
.nt-pagination .page-numbers.current {
	background: var(--nt-brand, #9b1c43);
	border-color: var(--nt-brand, #9b1c43);
	color: #fff;
}
.nt-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ========================================================================== */
/* 9. Trang bài viết                                                           */
/* ========================================================================== */

.nt-article { min-width: 0; max-width: var(--nt-artw); }
.nt-article__title {
	margin: 12px 0 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: var(--nt-h1); font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
	color: var(--nt-ink2);
	text-wrap: pretty;
}
.nt-article__meta {
	margin-top: 14px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	font-size: 12.5px; color: var(--nt-dim);
}
.nt-article__meta .sep { color: #ddd; }
.nt-article__sapo {
	margin: 18px 0 0;
	font-size: var(--nt-sapo); font-weight: 600; line-height: 1.5;
	color: #333;
	text-wrap: pretty;
}

.nt-share {
	margin: 18px 0;
	padding: 12px 0;
	border-top: 1px solid var(--nt-line-soft);
	border-bottom: 1px solid var(--nt-line-soft);
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.nt-share__btn {
	width: 34px; height: 34px; flex: 0 0 auto;
	border-radius: 50%;
	border: 1px solid #e0ddd9;
	background: var(--nt-bg);
	color: #555;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; cursor: pointer; padding: 0;
	position: relative;
}
/* Cùng lý do với .nt-iconbtn: vòng tròn 34px cho đúng mẫu, vùng chạm nới ra 44px. */
.nt-share__btn::after { content: ""; position: absolute; inset: -5px; }
.nt-share__btn:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }
/* Đẩy sang phải bằng margin thay vì thẻ spacer để PHP khỏi phải in thẻ rỗng. */
.nt-share__note { margin-left: auto; font-size: 12.5px; color: var(--nt-dim); }

.nt-figure { margin: 0 0 6px; }
.nt-figure > img,
.nt-figure .nt-figure__ph { width: 100%; height: auto; display: block; }
.nt-figure .nt-figure__ph { aspect-ratio: 16 / 9; }
.nt-figure__cap { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: #777; }

.nt-quote {
	margin: 26px 0 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--nt-brand, #9b1c43);
}
.nt-quote p {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 19px; font-style: italic; line-height: 1.55;
	color: var(--nt-ink);
}
.nt-quote footer, .nt-quote cite {
	display: block;
	margin-top: 9px;
	font: 700 12.5px/1 var(--nt-font); font-style: normal;
	color: var(--nt-dim);
}

.nt-related {
	margin: 26px 0 0;
	border: 1px solid var(--nt-line);
	padding: 16px 18px;
	background: var(--nt-bg-soft);
}
.nt-related__label {
	font: 700 12px/1 var(--nt-font);
	letter-spacing: .1em;
	color: var(--nt-brand, #9b1c43);
	margin-bottom: 12px;
}
.nt-related__item {
	display: block;
	padding: 9px 0;
	border-top: 1px solid var(--nt-line-soft);
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 15.5px; font-weight: 700; line-height: 1.34;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-related__item:hover { color: var(--nt-brand, #9b1c43); }

.nt-suggest-grid { display: grid; grid-template-columns: var(--nt-three); gap: 22px; }
.nt-suggest-grid .nt-card__body { padding-top: 0; }
.nt-suggest-grid .nt-card__title { margin-top: 10px; font-size: 15.5px; line-height: 1.32; }
.nt-suggest-grid .nt-card__time { margin-top: 6px; }

.nt-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-tags a {
	font-size: 12.5px;
	border: 1px solid var(--nt-line);
	background: var(--nt-bg);
	padding: 6px 11px;
	color: var(--nt-muted);
}
.nt-tags a:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }

/* --- Bình luận: WordPress in ra, mình chỉ chỉnh lại cho hợp gu --- */
.nt-comments { margin: 30px 0 0; padding-top: 4px; }
.nt-comments .comments-title, .nt-comments .comment-reply-title {
	margin: 0 0 16px;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 20px; font-weight: 700;
	color: var(--nt-ink);
	padding-bottom: 9px;
	border-bottom: 3px solid var(--nt-brand, #9b1c43);
	display: inline-block;
}
.nt-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.nt-comments .comment-list .children { list-style: none; margin: 0; padding-left: 34px; }
.nt-comments .comment-list .comment { padding: 16px 0; border-top: 1px solid var(--nt-line-soft); }
.nt-comments .comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.nt-comments .comment-author .fn { font: 700 13.5px/1.4 var(--nt-font); font-style: normal; color: var(--nt-text); }
.nt-comments .comment-metadata { font-size: 12px; color: var(--nt-faint); }
.nt-comments .comment-content { font-size: 15px; line-height: 1.6; color: #333; }
.nt-comments .comment-content p { margin: 6px 0 0; }
.nt-comments .reply { font-size: 12.5px; color: var(--nt-dim); }
.nt-comments .reply a:hover { color: var(--nt-brand, #9b1c43); }
.nt-comments .comment-form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.nt-comments .comment-form input[type="text"],
.nt-comments .comment-form input[type="email"],
.nt-comments .comment-form input[type="url"],
.nt-comments .comment-form textarea {
	width: 100%;
	border: 1px solid #d8d5d1; border-radius: 2px;
	padding: 11px 12px; margin-bottom: 12px;
	font-size: 15px; line-height: 1.6; color: var(--nt-text);
	background: var(--nt-bg);
}
.nt-comments .comment-form textarea { min-height: 92px; resize: vertical; }
.nt-comments .comment-form .submit {
	border: 0; border-radius: 2px;
	background: var(--nt-brand, #9b1c43); color: #fff;
	font: 700 13.5px/1 var(--nt-font);
	padding: 12px 20px; cursor: pointer;
}
.nt-comments .comment-form .submit:hover { background: var(--nt-brand-dark, #78142f); }
.nt-comments .comment-notes, .nt-comments .form-submit + p { font-size: 12.5px; color: var(--nt-dim); }

/* ========================================================================== */
/* 10. Nội dung bài do WordPress sinh (.nt-article__body)                       */
/* ========================================================================== */

/**
 * Soạn thảo WordPress in ra thẻ gì thì phải tạo kiểu cho thẻ đó — biên tập viên
 * không biết class, họ chỉ bấm nút "đậm", "trích dẫn", "chèn ảnh".
 */
.nt-article__body { font-size: var(--nt-bodyf); line-height: 1.75; color: var(--nt-text); }
.nt-article__body p { margin: 20px 0 0; font-size: var(--nt-bodyf); line-height: 1.75; color: var(--nt-text); text-wrap: pretty; }
.nt-article__body > *:first-child { margin-top: 0; }

.nt-article__body h2, .nt-article__body h3, .nt-article__body h4 {
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-weight: 700;
	color: var(--nt-ink2);
	text-wrap: pretty;
}
.nt-article__body h2 { margin: 30px 0 0; font-size: 24px; line-height: 1.25; }
.nt-article__body h3 { margin: 26px 0 0; font-size: 20px; line-height: 1.3; }
.nt-article__body h4 { margin: 22px 0 0; font-size: 17.5px; line-height: 1.35; }

.nt-article__body ul, .nt-article__body ol { margin: 18px 0 0; padding-left: 24px; }
.nt-article__body ul { list-style: disc; }
.nt-article__body ol { list-style: decimal; }
.nt-article__body li { margin-top: 8px; font-size: var(--nt-bodyf); line-height: 1.75; }
.nt-article__body li::marker { color: var(--nt-brand, #9b1c43); }

.nt-article__body blockquote {
	margin: 26px 0 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--nt-brand, #9b1c43);
	background: transparent;
}
.nt-article__body blockquote p {
	margin: 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 19px; font-style: italic; line-height: 1.55;
	color: var(--nt-ink);
}
.nt-article__body blockquote p + p { margin-top: 10px; }
.nt-article__body blockquote cite {
	display: block; margin-top: 9px;
	font: 700 12.5px/1 var(--nt-font); font-style: normal;
	color: var(--nt-dim);
}

.nt-article__body img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.nt-article__body figure, .nt-article__body .wp-block-image { margin: 24px 0 0; }
.nt-article__body figcaption, .nt-article__body .wp-caption-text {
	margin-top: 8px;
	font-size: 13.5px; line-height: 1.5; color: #777;
	text-align: center;
}
.nt-article__body .wp-caption { max-width: 100%; margin: 24px auto 0; }
.nt-article__body .wp-caption img { margin: 0 auto; }

/* Ảnh canh trái/phải: mobile bỏ float vì màn hẹp, chữ bị bóp còn 2–3 từ/dòng. */
.nt-article__body .alignleft,
.nt-article__body .alignright { float: none; margin: 24px auto 0; }
.nt-article__body .aligncenter { margin-left: auto; margin-right: auto; }
.nt-article__body .alignwide, .nt-article__body .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }

.nt-article__body a { color: var(--nt-brand, #9b1c43); text-decoration: underline; text-underline-offset: 2px; }
.nt-article__body a:hover { color: var(--nt-brand-dark, #78142f); }
.nt-article__body strong, .nt-article__body b { font-weight: 700; color: var(--nt-ink2); }
.nt-article__body em, .nt-article__body i { font-style: italic; }

/* Bảng rộng hơn cột thì cho cuộn ngang, đừng để nó xé vỡ cả trang. */
.nt-article__body table {
	width: 100%;
	margin: 24px 0 0;
	border-collapse: collapse;
	font-size: 14.5px;
	display: block;
	overflow-x: auto;
}
.nt-article__body table th, .nt-article__body table td {
	border: 1px solid var(--nt-line);
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
}
.nt-article__body table th { background: var(--nt-bg-soft); font-weight: 700; color: var(--nt-ink); }

/* Video nhúng: ép 16/9 để không bị iframe cao 150px mặc định. */
.nt-article__body iframe,
.nt-article__body .wp-block-embed iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	margin: 24px 0 0;
}
.nt-article__body .wp-block-embed { margin: 24px 0 0; }

.nt-article__body hr { margin: 28px 0 0; border: 0; border-top: 1px solid var(--nt-line); }
.nt-article__body pre {
	margin: 24px 0 0; padding: 14px 16px;
	background: var(--nt-bg-soft); border: 1px solid var(--nt-line);
	font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace;
	overflow-x: auto;
}
.nt-article__body code { font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace; }

/* Bài nhiều trang (<!--nextpage-->). */
.nt-article__body .page-links { margin-top: 24px; font-size: 13.5px; font-weight: 700; color: var(--nt-muted); }
.nt-article__body .page-links a { border: 1px solid var(--nt-line); padding: 6px 11px; margin-left: 6px; text-decoration: none; }
.nt-article__body .page-links a:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }

/* ========================================================================== */
/* 11. Footer + thanh tab đáy                                                  */
/* ========================================================================== */

.nt-footer {
	margin-top: 40px;
	border-top: 4px solid var(--nt-brand, #9b1c43);
	background: var(--nt-bg-soft);
}
.nt-footer-inner { padding: 28px var(--nt-pad); }
.nt-footer__cols { display: grid; grid-template-columns: var(--nt-fcols); gap: 24px 26px; }
.nt-footer__col { min-width: 0; }
.nt-footer__head {
	font: 700 12px/1 var(--nt-font);
	letter-spacing: .1em;
	color: var(--nt-ink);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--nt-line);
}
.nt-footer__link { display: block; padding: 8px 0; font-size: 13.5px; color: var(--nt-muted); }
.nt-footer__link:hover { color: var(--nt-brand, #9b1c43); }

.nt-footer__bottom {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--nt-line);
	display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start;
}
/* Khối chữ chiếm chỗ còn lại nhưng được phép xuống dòng khi màn hình hẹp. */
.nt-footer__bottom > .nt-footer__col { flex: 1 1 220px; min-width: 0; }
/**
 * KHÔNG đặt min-width ở đây: .nt-footer__info còn nằm trong cột thứ 4 của lưới
 * .nt-footer__cols, mà trên điện thoại lưới chỉ có 2 cột ~166px — một min-width
 * 220px là lưới không co được nữa và cả chân trang tràn ngang màn hình.
 * Bề rộng tối thiểu thuộc về hàng dưới, nên đặt ở .nt-footer__bottom bên dưới.
 */
.nt-footer__info { min-width: 0; font-size: 12.5px; line-height: 1.7; color: #757575; }
.nt-footer__info .nt-brandmark { margin-bottom: 10px; }
.nt-footer__info .nt-brandmark__name { font-size: 20px; letter-spacing: 0; }
.nt-footer__info .nt-brandmark__tld { font-size: 10px; }
.nt-footer__copy { margin-top: 12px; font-size: 12px; color: var(--nt-faint); }

.nt-socials { display: flex; gap: 8px; }
.nt-socials__item {
	width: 32px; height: 32px;
	border: 1px solid #e0ddd9; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font: 700 13px/1 var(--nt-font);
	color: var(--nt-muted);
}
.nt-socials__item:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }

/**
 * Thanh tab đáy: dùng position:fixed (không phải sticky) để nó luôn nằm trên
 * mọi nội dung; phần chỗ trống bị che đã được body padding-bottom bù lại.
 */
.nt-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	display: flex;
	background: var(--nt-bg);
	border-top: 1px solid var(--nt-line);
	box-shadow: 0 -2px 8px rgba(0, 0, 0, .05);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nt-tabbar__item {
	flex: 1;
	min-height: 56px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	border: 0; background: transparent;
	color: var(--nt-dim);
	cursor: pointer;
	padding: 0;
}
.nt-tabbar__icon { font-size: 17px; line-height: 1; }
.nt-tabbar__label { font: 700 10px/1 var(--nt-font); letter-spacing: .02em; }
.nt-tabbar__item.is-active { color: var(--nt-brand, #9b1c43); }
.nt-tabbar__item:hover { color: var(--nt-brand, #9b1c43); }

/* ========================================================================== */
/* 12. Trang phụ dùng template cũ (archive / search / page / 404)              */
/* ========================================================================== */

/**
 * Mấy trang này vẫn chạy archive.php, search.php, page.php, 404.php với class
 * cũ của theme. Không viết lại template (ngoài phạm vi), chỉ ánh xạ class cũ về
 * bộ biến --nt-* để chúng cùng nhịp với các trang đã dựng mới. Tiền tố
 * .nt-layout để thắng specificity của base.css mà không phải dùng !important.
 */
.nt-layout .container,
.nt-layout .site-main {
	width: 100%;
	max-width: var(--nt-max);
	margin: 0 auto;
	padding: 0 var(--nt-pad);
}
.nt-layout .site-main { padding-top: 22px; padding-bottom: 40px; }

.nt-layout .archive-layout {
	display: grid;
	grid-template-columns: var(--nt-main);
	gap: 34px;
	margin-top: 16px;
}
.nt-layout .archive-layout > * { min-width: 0; }
.nt-layout .archive-content { min-width: 0; }

.nt-layout .breadcrumb { font-size: 12.5px; color: var(--nt-dim); margin-bottom: 10px; }
.nt-layout .breadcrumb a:hover { color: var(--nt-brand, #9b1c43); }
.nt-layout .breadcrumb .sep { margin: 0 6px; }

.nt-layout .archive-header { border-bottom: 2px solid var(--nt-ink); margin-bottom: 0; }
.nt-layout .archive-title {
	margin: 0;
	padding-bottom: 10px;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 30px; font-weight: 700; letter-spacing: -.01em;
	text-transform: none;
	color: var(--nt-brand, #9b1c43);
}
.nt-layout .archive-description { font-size: 14px; color: var(--nt-muted); padding: 10px 0 0; }

.nt-layout .archive-list, .nt-layout .category-posts { display: block; }

/* .card-archive (archive.php) và .story (bố cục cũ) cùng quy về .nt-list__item. */
.nt-layout .card-archive,
.nt-layout .story {
	display: grid;
	grid-template-columns: var(--nt-thumb) minmax(0, 1fr);
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--nt-line-soft);
	float: none;
}
.nt-layout .story::after { content: none; }
.nt-layout .card .post-thumb,
.nt-layout .story__thumb {
	display: block;
	width: auto; float: none; margin: 0;
	aspect-ratio: 240 / 145;
	overflow: hidden;
	border-radius: 0;
	background: var(--nt-ph2);
	position: static;
}
.nt-layout .story__thumb::before { content: none; }
.nt-layout .story__thumb a { position: static; display: block; height: 100%; }
.nt-layout .card .post-thumb img,
.nt-layout .story__thumb img,
.nt-layout .thumb-placeholder {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	position: static;
	transform: none;
}
.nt-layout .card:hover .post-thumb img { transform: none; }
.nt-layout .thumb-placeholder {
	background: repeating-linear-gradient(135deg, var(--nt-ph1) 0 7px, var(--nt-ph2) 7px 14px);
}

.nt-layout .card-body,
.nt-layout .story__body { min-width: 0; margin-top: 0; padding: 0; overflow: visible; }

.nt-layout .cat-badge,
.nt-layout .story .cate {
	display: inline-block;
	font: 700 11px/1 var(--nt-font);
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--nt-brand, #9b1c43);
	background: transparent;
	padding: 0; border-radius: 0;
}
.nt-layout a.cat-badge:hover, .nt-layout .story .cate:hover { color: var(--nt-brand-dark, #78142f); text-decoration: none; }

.nt-layout .card-title,
.nt-layout .story__heading {
	margin: 7px 0 0;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 17.5px; font-weight: 700; line-height: 1.3;
	color: var(--nt-ink);
	text-wrap: pretty;
}
.nt-layout .card-title a:hover, .nt-layout .story__heading a:hover { color: var(--nt-brand, #9b1c43); }

.nt-layout .card-excerpt,
.nt-layout .story__summary { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--nt-muted); }

.nt-layout .post-meta,
.nt-layout .story time { margin-top: 8px; font-size: 12px; color: var(--nt-dim); display: flex; gap: 10px; }
.nt-layout .story time { display: block; }

.nt-layout .site-sidebar { min-width: 0; }
.nt-layout .no-results {
	margin: 24px 0;
	padding: 22px;
	border: 1px solid var(--nt-line);
	background: var(--nt-bg-soft);
	font-size: 15px; color: var(--nt-muted);
	text-align: center;
}

.nt-layout .entry-title {
	margin: 6px 0 10px;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: var(--nt-h1); font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
	color: var(--nt-ink2);
	text-wrap: pretty;
}
.nt-layout .entry-meta {
	margin-bottom: 14px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	font-size: 12.5px; color: var(--nt-dim);
}
.nt-layout .entry-content { font-size: var(--nt-bodyf); line-height: 1.75; color: var(--nt-text); }
.nt-layout .entry-content > * + * { margin-top: 20px; }
.nt-layout .entry-content img { border-radius: 0; margin: 0 auto; }
.nt-layout .entry-content a { color: var(--nt-brand, #9b1c43); text-decoration: underline; text-underline-offset: 2px; }
.nt-layout .entry-content a:hover { color: var(--nt-brand-dark, #78142f); }
.nt-layout .entry-content blockquote {
	margin: 26px 0 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--nt-brand, #9b1c43);
	background: transparent;
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	font-size: 19px; font-style: italic; line-height: 1.55;
	color: var(--nt-ink);
}
.nt-layout .entry-content h2, .nt-layout .entry-content h3, .nt-layout .entry-content h4 {
	font-family: var(--nt-headfont, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif);
	color: var(--nt-ink2);
}
.nt-layout .entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.nt-layout .entry-content table th, .nt-layout .entry-content table td { border: 1px solid var(--nt-line); padding: 9px 12px; text-align: left; }

.nt-layout .page-links { margin-top: 24px; font-size: 13.5px; font-weight: 700; color: var(--nt-muted); }
.nt-layout .page-links a { border: 1px solid var(--nt-line); padding: 6px 11px; margin-left: 6px; }
.nt-layout .page-links a:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }

/* Phân trang của template cũ (.pagination) dùng chung gu với .nt-pagination. */
.nt-layout .pagination { margin-top: 28px; }
.nt-layout .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-layout .pagination .page-numbers {
	display: inline-block;
	padding: 9px 14px;
	border: 1px solid var(--nt-line); border-radius: 0;
	font-size: 13.5px; font-weight: 700; color: #444;
}
.nt-layout .pagination a.page-numbers:hover { border-color: var(--nt-brand, #9b1c43); color: var(--nt-brand, #9b1c43); }
.nt-layout .pagination .page-numbers.current {
	background: var(--nt-brand, #9b1c43);
	border-color: var(--nt-brand, #9b1c43);
	color: #fff;
}

/* Trợ năng: giữ nguyên hành vi của base.css, chỉ đổi màu cho hợp bảng màu nt. */
.nt-layout .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}
.nt-layout .skip-link:focus,
.nt-layout .screen-reader-text:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto; clip-path: none;
	z-index: 2000;
	padding: 10px 16px;
	background: var(--nt-brand, #9b1c43); color: #fff;
	font: 700 13.5px/1 var(--nt-font);
}

/* ========================================================================== */
/* 13. Tablet — từ 768px                                                       */
/* ========================================================================== */

@media (min-width: 768px) {

	body.nt-layout {
		--nt-max: 1200px;
		--nt-pad: 20px;
		--nt-hero: minmax(0, 1.35fr) minmax(0, 1fr);
		--nt-three: repeat(2, minmax(0, 1fr));
		--nt-main: 1fr;
		--nt-sec: minmax(0, 1.45fr) minmax(0, 1fr);
		--nt-thumb: 190px;
		--nt-h1: 37px;
		--nt-heroh: 29px;
		--nt-leadh: 23px;
		--nt-artw: 100%;
		--nt-sapo: 20px;
		--nt-bodyf: 18px;
		--nt-vd: 1px solid var(--nt-line);
		--nt-vdp: 20px;
		--nt-fcols: repeat(2, minmax(0, 1fr));
		--nt-mobbar: 0;
	}

	/* Từ đây màn đủ rộng cho dải trên cùng; header rút gọn nghỉ. */
	.nt-topline { display: block; }
	.nt-mobhead { display: none; }

	/* Thanh tab đáy chỉ dành cho mobile — có menu đầy đủ rồi thì không cần. */
	.nt-tabbar { display: none; }

	/* Panel menu mở bằng nút 3 gạch, mà nút đó đã ẩn → panel cũng thôi. */
	.nt-panel--menu { display: none; }

	/* Ảnh canh trái/phải trong bài: đủ chỗ cho chữ chảy quanh ảnh. */
	.nt-article__body .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
	.nt-article__body .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
	.nt-layout .entry-content .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
	.nt-layout .entry-content .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
	.nt-article__body::after, .nt-layout .entry-content::after { content: ""; display: block; clear: both; }

	/* Bảng vừa cột rồi thì trả về display:table cho cột co giãn đều. */
	.nt-article__body table, .nt-layout .entry-content table { display: table; }

	/**
	 * Menu con xổ khi rê chuột. Chỉ bật từ tablet trở lên vì trên cảm ứng
	 * "hover" là cú chạm đầu tiên — người dùng sẽ mất một lần chạm vô ích.
	 */
	/*
	 * Neo vào <li> chứ không vào <a>: header-nt.php dựng menu con là thẻ ANH EM
	 * của <a class="nt-nav__item"> (đó là dạng duy nhất wp_nav_menu sinh ra),
	 * nên ".nt-nav__item > .nt-nav__sub" không bao giờ khớp.
	 */
	.nt-nav-inner > li { position: relative; }
	.nt-nav__sub {
		display: block;
		position: absolute; top: 100%; left: 0; z-index: 61;
		min-width: 190px;
		background: var(--nt-bg);
		border: 1px solid var(--nt-line);
		box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
		padding: 6px 0;
		white-space: normal;
		visibility: hidden; opacity: 0;
	}
	.nt-nav-inner > li:hover > .nt-nav__sub,
	.nt-nav-inner > li:focus-within > .nt-nav__sub { visibility: visible; opacity: 1; }
	.nt-nav__sub a {
		display: block;
		padding: 9px 14px;
		font-size: 13px; font-weight: 400;
		color: var(--nt-text);
	}
	.nt-nav__sub a:hover { color: var(--nt-brand, #9b1c43); background: var(--nt-bg-soft); }

	/* Bốn cột chân trang chưa đủ chỗ, nhưng hàng cuối đã tách được hai khối. */
	.nt-footer__bottom { flex-wrap: nowrap; align-items: center; }

	/* Khối bình luận rộng ra thì lùi vào cho dễ đọc. */
	.nt-comments .comment-list .children { padding-left: 42px; }
}

/* ========================================================================== */
/* 14. Desktop — từ 1080px                                                     */
/* ========================================================================== */

@media (min-width: 1080px) {

	body.nt-layout {
		--nt-max: 1200px;
		--nt-pad: 20px;
		--nt-hero: minmax(0, 1.9fr) minmax(0, 1fr);
		--nt-three: repeat(3, minmax(0, 1fr));
		--nt-main: minmax(0, 1fr) 300px;
		--nt-sec: minmax(0, 1.45fr) minmax(0, 1fr);
		--nt-thumb: 240px;
		--nt-h1: 43px;
		--nt-heroh: 32px;
		--nt-leadh: 23px;
		--nt-artw: 760px;
		--nt-sapo: 20px;
		--nt-bodyf: 18px;
		--nt-vd: 1px solid var(--nt-line);
		--nt-vdp: 20px;
		--nt-fcols: repeat(4, minmax(0, 1fr));
		--nt-mobbar: 0;
	}

	/* Cột bên 300px cố định — vừa đúng banner 300×250, không phải co ảnh. */
	.nt-aside { width: 300px; }

	/* Trang bài viết: khoảng thở giữa bài và cột bên rộng hơn trang chủ. */
	.nt-article + .nt-aside, .nt-main--article { gap: 40px; }

	/* Hàng cuối cột bên hero có kẻ trở lại vì cột đã dài bằng ảnh hero. */
	.nt-hero__side .nt-row:last-child { border-bottom: 1px solid var(--nt-line); }
}

/* ========================================================================== */
/* 15. In giấy                                                                 */
/* ========================================================================== */

/**
 * Bạn đọc in bài ra giấy thì chỉ cần chữ. Bỏ hết menu, quảng cáo, cột bên,
 * thanh tab — vừa đỡ tốn mực vừa không in ra mấy ô "QUẢNG CÁO" trống.
 */
@media print {
	.nt-nav, .nt-hot, .nt-ad, .nt-tabbar, .nt-aside, .nt-panel,
	.nt-mobhead, .nt-share, .nt-socials, .nt-more, .nt-regions,
	.nt-iconbtn, .nt-login, .nt-footer__cols, .nt-pagination,
	.nt-layout .site-sidebar, .nt-layout .pagination { display: none !important; }

	body.nt-layout { padding-bottom: 0; background: #fff; }
	.nt-layout .bth-shell { box-shadow: none; max-width: none; margin: 0; }

	.nt-main, .nt-layout .archive-layout { display: block; }
	.nt-article { max-width: none; }
	.nt-article__body, .nt-layout .entry-content { font-size: 12pt; line-height: 1.6; }
	.nt-article__body a, .nt-layout .entry-content a { color: #000; text-decoration: underline; }

	.nt-footer { margin-top: 20px; border-top-width: 2px; background: #fff; }
	.nt-section { border-top: 0; margin-top: 12px; padding-top: 0; }
}

/* ========================================================================== */
/* 16. Tôn trọng thiết lập giảm chuyển động                                    */
/* ========================================================================== */

/**
 * Có người bị chóng mặt vì hiệu ứng động. Hệ điều hành cho họ bật "giảm chuyển
 * động", mình phải nghe theo — tắt hẳn, không chỉ làm chậm lại.
 */
@media (prefers-reduced-motion: reduce) {
	.nt *, .nt *::before, .nt *::after,
	.nt-footer *, .nt-tabbar * {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.nt-card--hero .nt-card__ph { animation: none; }
}
