/*
Theme Name: Tài Sản Số
Theme URI: https://example.com/
Author: Tài Sản Số
Description: Theme tin tức tài sản mã hóa cho thị trường Việt Nam. Tối ưu cho E-E-A-T (YMYL), tốc độ, đọc trên điện thoại và hiển thị trạng thái pháp lý của tổ chức/sàn.
Version: 1.0.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: taisanso
Tags: news, magazine, finance, two-columns, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   1. TOKEN
   Bảng màu chọn theo định vị "quyền uy pháp lý": navy + xanh lá
   cho trạng thái đã cấp phép. Tránh neon/vàng kiểu sàn crypto.
   ============================================================ */

:root {
	--bg:            #ffffff;
	--surface:       #f5f7fa;
	--surface-2:     #eceff4;
	--text:          #111820;
	--text-muted:    #57626f;
	--border:        #e1e7ee;
	--brand:         #0f3d6e;
	--brand-ink:     #0b2c50;
	--brand-soft:    #e8f0f8;
	--ok:            #12734a;
	--ok-soft:       #e0f2e9;
	--warn:          #8a5d06;
	--warn-soft:     #fdf1d8;
	--danger:        #a52222;
	--danger-soft:   #fae4e4;
	--link:          #0f5fa8;

	--radius:        10px;
	--radius-sm:     6px;
	--shadow:        0 1px 2px rgba(17, 24, 32, .06), 0 4px 14px rgba(17, 24, 32, .05);
	--maxw:          1180px;
	--gutter:        16px;

	--font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg:          #0d1218;
		--surface:     #141c25;
		--surface-2:   #1c2631;
		--text:        #e7edf4;
		--text-muted:  #97a4b3;
		--border:      #253140;
		--brand:       #6ea8dc;
		--brand-ink:   #9cc6ea;
		--brand-soft:  #16293c;
		--ok:          #5fc894;
		--ok-soft:     #14301f;
		--warn:        #e0b155;
		--warn-soft:   #322612;
		--danger:      #ef8b8b;
		--danger-soft: #331a1a;
		--link:        #79b4e8;
		--shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
	}
}

:root[data-theme="dark"] {
	--bg:          #0d1218;
	--surface:     #141c25;
	--surface-2:   #1c2631;
	--text:        #e7edf4;
	--text-muted:  #97a4b3;
	--border:      #253140;
	--brand:       #6ea8dc;
	--brand-ink:   #9cc6ea;
	--brand-soft:  #16293c;
	--ok:          #5fc894;
	--ok-soft:     #14301f;
	--warn:        #e0b155;
	--warn-soft:   #322612;
	--danger:      #ef8b8b;
	--danger-soft: #331a1a;
	--link:        #79b4e8;
	--shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
}

/* ============================================================
   2. NỀN TẢNG
   ============================================================ */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.012em;
	color: var(--text);
}

h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

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

.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999;
	width: auto; height: auto; clip: auto;
	background: var(--brand); color: #fff;
	padding: 10px 16px; border-radius: var(--radius-sm);
}

:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

/* ============================================================
   3. HEADER
   ============================================================ */

.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	position: sticky; top: 0; z-index: 500;
	/*
	 * isolation: isolate ep phan tu nay luon tao ngu canh xep lop rieng,
	 * KHONG phu thuoc vao cach engine trinh duyet xu ly z-index cho
	 * position:sticky khi con o trang thai "chua dinh" (truoc nguong
	 * cuon) — mot diem yeu thuc te da biet cua sticky, khac voi fixed.
	 * Menu con (.sub-menu, z-index:9999) nam trong day nen luon duoc ve
	 * de trung len tren .legal-strip va moi noi dung tinh phia sau.
	 */
	isolation: isolate;
}

.header-top {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 0;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 800;
	font-size: 1.16rem;
	letter-spacing: -.02em;
	color: var(--text);
	text-decoration: none;
	flex: 0 0 auto;
}

.site-brand:hover { text-decoration: none; }

.site-brand__mark {
	width: 30px; height: 30px;
	border-radius: 7px;
	background: var(--brand);
	color: #fff;
	display: grid; place-items: center;
	font-size: .92rem; font-weight: 800;
}

:root[data-theme="dark"] .site-brand__mark,
.site-brand__mark { color: #fff; }

.site-tagline {
	font-size: .74rem;
	font-weight: 500;
	color: var(--text-muted);
	letter-spacing: .01em;
	margin-left: 2px;
}

.header-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.icon-btn {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	cursor: pointer;
}

.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }

/*
 * Nut hamburger va drawer di dong: an mac dinh o moi kich thuoc man hinh,
 * chi mo lai (display:block) trong @media man hinh hep o muc 11. Thieu
 * dong nay thi tren PC drawer khong co quy tac an nao ca — no se rot
 * thang vao luong tai lieu binh thuong nhu mot khoi <div> to binh thuong.
 */
.menu-toggle { display: none; }
.mobile-drawer,
.drawer-backdrop { display: none; }

/* Điều hướng */

/* Top-level menu: danh sách ngang */
.main-nav > ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	/*
	 * KHÔNG dùng overflow-x: auto ở đây. Khai overflow-x mà không khai
	 * overflow-y, trình duyệt buộc tính overflow-y thành auto theo cùng
	 * (quy tắc CSS Overflow spec) — tạo vùng cắt khiến .sub-menu
	 * (position: absolute, trồi ra dưới) bị ẩn mất dù :hover vẫn đúng.
	 * Dùng flex-wrap để mục thừa tự xuống dòng thay vì cuộn ngang.
	 */
}


.main-nav > ul::-webkit-scrollbar { display: none; }

.main-nav > ul > li {
	flex: 0 0 auto;
	position: relative;
}

.main-nav > ul > li > a {
	display: block;
	padding: 10px 13px;
	font-size: .93rem;
	font-weight: 600;
	color: var(--text-muted);
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > .current-menu-item > a {
	color: var(--text);
	border-bottom-color: var(--brand);
	text-decoration: none;
}

/* Caret cho menu item có children */
.main-nav > ul > .menu-item-has-children > a::after {
	content: " \25BE";
	font-size: .85em;
	margin-left: 3px;
	opacity: .65;
}

/* Sub-menu: ẩn mặc định, hiện khi hover parent */
.main-nav .sub-menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 6px 0 !important;
	display: none !important;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	min-width: 220px !important;
	background: var(--bg) !important;
	border: 1px solid var(--border) !important;
	border-radius: 6px !important;
	box-shadow: 0 6px 20px rgba(0,0,0,.08) !important;
	z-index: 9999 !important;
	overflow: visible !important;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu,
.main-nav .menu-item-has-children:focus > .sub-menu,
.main-nav .menu-item-has-children.is-open > .sub-menu {
	display: block !important;
}


.main-nav .sub-menu li {
	display: block;
	width: 100%;
}

.main-nav .sub-menu a {
	display: block;
	padding: 9px 16px;
	font-size: .9rem;
	font-weight: 500;
	color: var(--text-muted);
	white-space: nowrap;
	border-bottom: none;
	transition: background .15s, color .15s;
}

.main-nav .sub-menu a:hover {
	color: var(--text);
	background: var(--surface);
	border-bottom: none;
	text-decoration: none;
}

.nav-row { border-top: 1px solid var(--border); }

/* ============================================================
   4. DẢI TRẠNG THÁI PHÁP LÝ
   Đây là khối khác biệt của site — đặt ngay dưới header.
   ============================================================ */

.legal-strip {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 11px 0;
	font-size: .85rem;
}

.legal-strip__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.legal-strip__label {
	font-weight: 700;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 7px;
}

.legal-strip__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 3px var(--ok-soft);
}

.legal-strip__items {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.legal-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg);
	border: 1px solid var(--border);
	font-weight: 600;
	font-size: .8rem;
	color: var(--text);
}

.legal-chip__state {
	font-weight: 500;
	font-size: .74rem;
	color: var(--text-muted);
}

.legal-chip--licensed,
.legal-chip--active { border-color: var(--ok); }
.legal-chip--licensed .legal-chip__state,
.legal-chip--active .legal-chip__state { color: var(--ok); }

.legal-chip--applicant,
.legal-chip--announced { border-color: var(--warn); }
.legal-chip--applicant .legal-chip__state,
.legal-chip--announced .legal-chip__state { color: var(--warn); }

.legal-strip__link {
	margin-left: auto;
	font-weight: 600;
	font-size: .82rem;
	white-space: nowrap;
}

/* Dải giá — chứa widget của plugin giá crypto */

.ticker-bar {
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
	padding: 8px 0;
	font-size: .85rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.ticker-bar::-webkit-scrollbar { display: none; }

.ticker-bar .wrap { display: flex; gap: 18px; align-items: center; }

.ticker-widget { flex: 0 0 auto; white-space: nowrap; }

/* ============================================================
   5. BỐ CỤC
   ============================================================ */

.site-main { padding: 26px 0 50px; }

.layout {
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}

.section { margin-bottom: 40px; }

.section__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--text);
}

.section__title {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.section__more {
	margin-left: auto;
	font-size: .85rem;
	font-weight: 600;
}

/* ============================================================
   6. THẺ BÀI VIẾT
   ============================================================ */

.card {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.card__thumb {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-2);
	aspect-ratio: 16 / 9;
}

.card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.card:hover .card__thumb img { transform: scale(1.035); }

.card__title {
	margin: 0;
	font-size: 1.04rem;
	line-height: 1.38;
	font-weight: 700;
}

.card__title a { color: var(--text); }
.card__title a:hover { color: var(--link); text-decoration: none; }

.card__excerpt {
	margin: 0;
	font-size: .92rem;
	color: var(--text-muted);
	line-height: 1.55;
}

.card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .78rem;
	color: var(--text-muted);
	flex-wrap: wrap;
}

.eyebrow {
	display: inline-block;
	font-size: .71rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--brand);
}

.eyebrow a { color: inherit; }

/* Thẻ ngang cho danh sách */

.card--row {
	flex-direction: row;
	gap: 14px;
	align-items: flex-start;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.card--row .card__thumb { flex: 0 0 116px; aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: .97rem; }

/* Thẻ nổi bật */

.card--lead .card__title { font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2rem); line-height: 1.22; }
.card--lead .card__excerpt { font-size: 1rem; }

/* Lưới */

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.hero {
	display: grid;
	gap: 26px;
	margin-bottom: 40px;
}

@media (min-width: 860px) {
	.hero { grid-template-columns: 1.55fr 1fr; align-items: start; }
	.hero__side { display: flex; flex-direction: column; gap: 16px; }
}

/* ============================================================
   7. BÀI VIẾT
   ============================================================ */

.entry-header { margin-bottom: 22px; }

.entry-title { margin-bottom: 14px; }

.entry-lead {
	font-size: 1.13rem;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 18px;
}

.entry-meta {
	display: flex;
	align-items: center;
	gap: 11px;
	flex-wrap: wrap;
	font-size: .87rem;
	color: var(--text-muted);
	padding: 13px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.entry-meta__author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--text);
}

.entry-meta__author img { border-radius: 50%; }

.entry-meta__sep { color: var(--border); }

/* Ngày kiểm chứng — tín hiệu E-E-A-T, hiện rõ chứ không giấu */
.verified-note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--ok-soft);
	color: var(--ok);
	font-weight: 600;
	font-size: .78rem;
}

.entry-content { font-size: 1.05rem; }

.entry-content > * + h2 { margin-top: 1.8em; }
.entry-content > * + h3 { margin-top: 1.5em; }

.entry-content h2, .entry-content h3 { scroll-margin-top: 84px; }

.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--brand);
	color: var(--text-muted);
	font-size: 1.06rem;
}

.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }

.entry-content figure { margin: 1.6em 0; }

.entry-content figcaption {
	font-size: .83rem;
	color: var(--text-muted);
	text-align: center;
	margin-top: 8px;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: .95rem;
}

.entry-content th, .entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.entry-content th { background: var(--surface); font-weight: 700; }

/* Mục lục */

.toc {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 20px;
	margin: 0 0 28px;
}

.toc__title {
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-muted);
	margin-bottom: 9px;
}

.toc ol { margin: 0; padding-left: 1.2em; font-size: .94rem; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--text); }

/* Hộp nguồn tham khảo — bắt buộc với bài pháp lý */

.sources-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--brand);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 34px 0;
	font-size: .92rem;
}

.sources-box__title {
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-muted);
	margin-bottom: 10px;
}

.sources-box ol { margin: 0; padding-left: 1.2em; }
.sources-box li { margin-bottom: 7px; }

/* Miễn trừ trách nhiệm */

.disclaimer {
	background: var(--warn-soft);
	border: 1px solid var(--warn);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin: 30px 0;
	font-size: .88rem;
	line-height: 1.55;
	color: var(--text);
}

.disclaimer strong { color: var(--warn); }

/* Hộp tác giả */

.author-box {
	display: flex;
	gap: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin: 36px 0;
}

.author-box__avatar { flex: 0 0 auto; }
.author-box__avatar img { border-radius: 50%; }

.author-box__name { font-size: 1.02rem; font-weight: 700; margin-bottom: 3px; }

.author-box__role {
	font-size: .8rem;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.author-box__bio { font-size: .9rem; margin: 0; color: var(--text-muted); }

/* Breadcrumb */

.breadcrumb {
	font-size: .82rem;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span + span::before { content: "›"; margin: 0 7px; opacity: .55; }

/* Bài liên quan */

.related { margin-top: 44px; }

/* ============================================================
   8. SIDEBAR
   ============================================================ */

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.widget__title {
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-muted);
	margin-bottom: 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--border);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }

/* Ô quảng cáo */

.ad-slot {
	background: var(--surface-2);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	min-height: 250px;
	display: grid; place-items: center;
	color: var(--text-muted);
	font-size: .8rem;
}

/* Đăng ký nhận tin */

.newsletter {
	background: var(--brand);
	color: #fff;
	border-radius: var(--radius);
	padding: 26px;
}

.newsletter h3 { color: #fff; margin-bottom: 7px; }
.newsletter p { color: rgba(255, 255, 255, .84); font-size: .9rem; margin-bottom: 14px; }

.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }

.newsletter input[type="email"] {
	flex: 1 1 190px;
	padding: 11px 13px;
	border: 0;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: .93rem;
}

.newsletter button {
	padding: 11px 20px;
	border: 0;
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--brand-ink);
	font-family: inherit;
	font-weight: 700;
	font-size: .93rem;
	cursor: pointer;
}

.newsletter button:hover { background: var(--surface-2); }

/* ============================================================
   9. FOOTER
   ============================================================ */

.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 40px 0 26px;
	margin-top: 40px;
	font-size: .9rem;
}

.footer-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin-bottom: 28px;
}

.footer-col h4 {
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-muted);
	margin-bottom: 11px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--text); }

.footer-legal {
	border-top: 1px solid var(--border);
	padding-top: 20px;
	color: var(--text-muted);
	font-size: .84rem;
	line-height: 1.6;
}

.footer-legal p { margin-bottom: .7em; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ============================================================
   10. PHÂN TRANG + PHỤ
   ============================================================ */

.pagination {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 34px;
}

.pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 40px; height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	font-size: .92rem;
}

.pagination .page-numbers:hover { background: var(--surface); text-decoration: none; }

.pagination .page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.archive-header { margin-bottom: 26px; }
.archive-header p { color: var(--text-muted); margin: 0; }

.search-form { display: flex; gap: 8px; }

.search-form input[type="search"] {
	flex: 1;
	padding: 10px 13px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
}

.search-form button {
	padding: 10px 18px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--brand);
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
}

.notice-404 { text-align: center; padding: 60px 0; }

/* ============================================================
   11. ĐIỆN THOẠI
   ============================================================ */

@media (max-width: 860px) {
	body { font-size: 16px; }
	.legal-strip__link { margin-left: 0; width: 100%; }
	.author-box { flex-direction: column; }
	.card--row .card__thumb { flex-basis: 96px; }

	/*
	 * Man hinh hep: bo thanh menu ngang trong header, thay bang nut
	 * hamburger mo drawer truot tu trai (kieu VnExpress) — tranh viec
	 * menu con xo doc chiem het khong gian trang.
	 */
	.menu-toggle { display: inline-flex; }
	.nav-row { display: none; }

	.drawer-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(10, 15, 20, .5);
		z-index: 2000;
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s ease;
	}
	.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

	.mobile-drawer {
		display: block;
		position: fixed;
		top: 0; left: 0; bottom: 0;
		width: min(82vw, 320px);
		background: var(--bg);
		z-index: 2001;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-100%);
		transition: transform .25s ease;
		box-shadow: 4px 0 24px rgba(0,0,0,.15);
	}
	.mobile-drawer.is-open { transform: translateX(0); }

	.mobile-drawer__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--border);
	}
	.mobile-drawer__search {
		display: flex;
		align-items: center;
		gap: 8px;
		color: var(--text-muted);
		text-decoration: none;
		font-weight: 600;
		font-size: .95rem;
	}
	.mobile-drawer__search svg { width: 18px; height: 18px; flex: 0 0 auto; }

	.mobile-nav__home {
		display: block;
		padding: 14px 16px;
		font-weight: 700;
		font-size: 1rem;
		color: var(--text);
		text-decoration: none;
		border-bottom: 1px solid var(--border);
	}

	.mobile-nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mobile-nav .menu-item {
		position: relative;
		border-bottom: 1px solid var(--border);
	}

	.mobile-nav .menu-item > a {
		display: block;
		padding: 14px 44px 14px 16px;
		font-weight: 600;
		font-size: .96rem;
		color: var(--text);
		text-decoration: none;
	}

	.mobile-nav .drawer-caret {
		position: absolute;
		top: 0; right: 0;
		width: 48px; height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		background: none;
		border: 0;
		color: var(--text-muted);
		cursor: pointer;
		transition: transform .2s ease;
	}
	.mobile-nav .drawer-caret svg { width: 18px; height: 18px; }
	.mobile-nav .menu-item.is-open > .drawer-caret { transform: rotate(180deg); color: var(--brand); }

	.mobile-nav .sub-menu {
		max-height: 0;
		overflow: hidden;
		background: var(--surface);
		transition: max-height .25s ease;
	}
	.mobile-nav .menu-item.is-open > .sub-menu { max-height: 1000px; }

	.mobile-nav .sub-menu a {
		display: block;
		padding: 11px 16px 11px 28px;
		font-size: .92rem;
		font-weight: 500;
		color: var(--text-muted);
		text-decoration: none;
	}

	body.drawer-open { overflow: hidden; }
}


@media (max-width: 640px) {
	.hero { gap: 20px; }
	.section { margin-bottom: 32px; }
}

@media print {
	.site-header, .site-footer, .sidebar, .ad-slot, .newsletter { display: none; }
}

/* ============================================================
   12. ẢNH THU NHỎ & DANH SÁCH DẠNG HÀNG
   Mọi thẻ bài viết đều có hình, kể cả khi chưa đặt ảnh đại diện —
   giữ bố cục ổn định và cho người đọc điểm neo thị giác.
   ============================================================ */

.card__thumb svg,
.card__ph {
	width: 100%;
	height: 100%;
	display: block;
}

.card__thumb--ph { background: var(--surface-2); }

/* Danh sách dạng hàng: ảnh bên trái, tiêu đề bên phải */

.card-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.card-list .card--row {
	gap: 18px;
	padding-bottom: 18px;
}

.card-list .card--row:last-child { border-bottom: 0; padding-bottom: 0; }

.card-list .card--row .card__thumb {
	flex: 0 0 168px;
	aspect-ratio: 16 / 10;
}

.card-list .card--row .card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.card-list .card--row .card__title {
	font-size: 1.08rem;
	line-height: 1.36;
}

.card-list .card--row .card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

/* Cột bên hẹp thì thu ảnh lại */
.hero__side .card--row .card__thumb { flex-basis: 116px; }

@media (max-width: 600px) {
	.card-list .card--row { gap: 13px; }
	.card-list .card--row .card__thumb { flex-basis: 108px; }
	.card-list .card--row .card__title { font-size: .98rem; }
	.card-list .card--row .card__excerpt { display: none; }
}

/* ============================================================
   13. LOGO
   ============================================================ */

.site-brand--logo {
	padding: 4px 0;
	flex: 0 1 auto;
	min-width: 0;
}

.site-logo {
	display: block;
	width: auto;
	height: 52px;
	max-width: 100%;
	object-fit: contain;
}

/*
 * Chữ trong logo màu xanh lá đậm — trên nền tối gần như không đọc được.
 * Tăng sáng và giảm bão hòa một chút để chữ nổi lên mà không đổi sắc thái.
 * Đây là giải pháp tạm; bản logo nền sáng do người thiết kế làm vẫn tốt hơn.
 */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-logo {
		filter: brightness(1.75) saturate(1.15);
	}
}

:root[data-theme="dark"] .site-logo {
	filter: brightness(1.75) saturate(1.15);
}

@media (max-width: 860px) {
	.site-logo { height: 44px; }
}

@media (max-width: 520px) {
	.site-logo { height: 38px; }
}
