/* =====================================================================
 * Nâng cấp 22/11/2026 (UPGRADE_INSTRUCTION.md, Phase 3 & 7)
 * Design tokens: docs/upgrade/design-system.md
 * ===================================================================== */
:root {
	--lx-navy-900: #142c4c;
	--lx-navy-700: #214068;
	--lx-navy-50: #eef2f7;
	--lx-orange-700: #a85206;   /* nút, chữ nhấn: 5,6:1 trên trắng */
	--lx-orange-500: #dd8706;   /* chỉ trang trí, không dùng cho chữ nhỏ */
	--lx-zalo: #0068ff;
	--lx-ink: #1d2733;
	--lx-ink-soft: #4a5868;     /* 7,3:1 trên trắng */
	--lx-line: #d9e0e8;
	--lx-bg: #ffffff;
	--lx-bg-soft: #f6f8fb;
	--lx-ok: #1f7a3d;
	--lx-radius-sm: 8px;
	--lx-radius: 12px;
	--lx-radius-lg: 20px;
	--lx-shadow-1: 0 1px 2px rgba(20, 44, 76, .08), 0 2px 8px rgba(20, 44, 76, .06);
	--lx-shadow-2: 0 8px 24px rgba(20, 44, 76, .12);
	--lx-space-1: 4px; --lx-space-2: 8px; --lx-space-3: 12px; --lx-space-4: 16px;
	--lx-space-5: 24px; --lx-space-6: 32px; --lx-space-7: 48px; --lx-space-8: 64px;
	--lx-font-head: "Be Vietnam Pro", "Noto Sans", system-ui, sans-serif;
	--lx-font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--lx-tap: 48px;
}

/* --- Vùng nội dung chính & skip-link --- */
.lxtd-main { display: block; outline: none; }
.skip-link.screen-reader-text:focus {
	clip: auto !important; clip-path: none !important; width: auto; height: auto;
	position: fixed; top: 8px; left: 8px; z-index: 100000; padding: 12px 16px;
	background: #fff; color: var(--lx-navy-900); border-radius: var(--lx-radius-sm); box-shadow: var(--lx-shadow-2);
}

/* --- Tương phản (Lighthouse color-contrast) --- */
.lxtd-path__num { filter: brightness(.72); }
.blog-details figcaption, .wp-block-image figcaption, .wp-caption-text { color: var(--lx-ink-soft) !important; }

/* --- Bài viết: banner tiêu đề gọn, chữ thường, H1 --- */
body.lxtd-bai-viet .page-header { padding-top: 48px !important; padding-bottom: 40px !important; min-height: 0 !important; }
body.lxtd-bai-viet .page-header__title {
	text-transform: none !important; font-family: var(--lx-font-head); font-size: clamp(26px, 4.2vw, 42px) !important;
	line-height: 1.25 !important; letter-spacing: 0 !important; max-width: 900px; margin: 0 auto;
}
@media (max-width: 767px) {
	body.lxtd-bai-viet .page-header { padding-top: 28px !important; padding-bottom: 24px !important; }
}
.lxtd-capnhat { font-size: 15px; color: var(--lx-ink-soft); margin: 0 0 16px; }
.lxtd-capnhat strong { color: var(--lx-ink); }

/* --- Nhãn [CẦN XÁC MINH]: chỉ hiện với người quản trị đã đăng nhập --- */
.lxtd-verify { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; background: #fff3cd; color: #7a4b00; border: 1px dashed #c99700; vertical-align: middle; }

/* =====================================================================
 * Thanh CTA dính dưới màn hình (mobile): Nhắn Zalo · Gọi ngay · Đăng ký
 * ===================================================================== */
.lxtd-cta-bar { display: none; }
@media (max-width: 767px) {
	.lxtd-cta-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: #fff; box-shadow: 0 -6px 20px rgba(20, 32, 47, .15);
	}
	.lxtd-cta-bar a {
		display: flex; align-items: center; justify-content: center; gap: 6px;
		min-height: var(--lx-tap); border-radius: 10px; font: 700 15px/1.1 var(--lx-font-body);
		color: var(--lx-navy-900) !important; background: var(--lx-navy-50); text-decoration: none !important;
	}
	.lxtd-cta-bar a:focus-visible { outline: 3px solid var(--lx-orange-700); outline-offset: 2px; }
	.lxtd-cta-bar svg { width: 20px; height: 20px; flex: none; }
	.lxtd-cta-bar .is-zalo { background: var(--lx-zalo); color: #fff !important; }
	.lxtd-cta-bar .is-reg { background: var(--lx-orange-700); color: #fff !important; }
	body.lxtd-has-ctabar { padding-bottom: 76px; }
	body.lxtd-has-ctabar .gsb-buttons, body.lxtd-has-ctabar .lxtd-actionbar { display: none !important; }
	body.lxtd-has-ctabar .scroll-to-top { bottom: 92px !important; }
	body.lxtd-menu-open .lxtd-cta-bar { display: none; }
}

/* --- Toast "đã chép câu hỏi" khi mở Zalo --- */
.lxtd-toast {
	position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 9999;
	max-width: min(92vw, 420px); padding: 12px 16px; border-radius: var(--lx-radius-sm);
	background: var(--lx-navy-900); color: #fff; font: 500 15px/1.4 var(--lx-font-body); box-shadow: var(--lx-shadow-2);
}

/* =====================================================================
 * Popup nhẹ (desktop exit-intent) và slide-in (sau 50% cuộn)
 * ===================================================================== */
.lxtd-slidein {
	position: fixed; right: 20px; bottom: 20px; z-index: 9980; width: min(360px, calc(100vw - 32px));
	padding: 20px 20px 16px; border-radius: var(--lx-radius); background: #fff; box-shadow: var(--lx-shadow-2);
	border-top: 4px solid var(--lx-orange-700); font-family: var(--lx-font-body); color: var(--lx-ink);
}
.lxtd-slidein[hidden] { display: none; }
.lxtd-slidein h2 { font: 700 18px/1.35 var(--lx-font-head); margin: 0 28px 6px 0; color: var(--lx-navy-900); }
.lxtd-slidein p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--lx-ink-soft); }
.lxtd-slidein__close {
	position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none;
	font-size: 22px; line-height: 1; color: var(--lx-ink-soft); cursor: pointer; border-radius: 50%;
}
.lxtd-slidein__close:focus-visible { outline: 3px solid var(--lx-orange-700); }
.lxtd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--lx-tap);
	padding: 10px 18px; border-radius: 10px; font: 700 16px/1.2 var(--lx-font-body); text-decoration: none !important;
	background: var(--lx-orange-700); color: #fff !important; border: 0; cursor: pointer;
}
.lxtd-btn--zalo { background: var(--lx-zalo); }
.lxtd-btn--ghost { background: var(--lx-navy-50); color: var(--lx-navy-900) !important; }
.lxtd-btn:focus-visible { outline: 3px solid var(--lx-navy-900); outline-offset: 2px; }
@media (max-width: 767px) {
	/* Không popup toàn màn hình trên mobile: chỉ thẻ nhỏ phía trên thanh CTA */
	.lxtd-slidein { right: 8px; left: 8px; width: auto; bottom: 84px; padding: 14px 14px 12px; }
	.lxtd-slidein p { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.lxtd-slidein:not([hidden]) { animation: lxtd-up .25s ease-out; }
	@keyframes lxtd-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* =====================================================================
 * Trang mới: học phí, lịch thi, khu vực, giới thiệu bạn bè, landing
 * ===================================================================== */
.lxtd-page { font-family: var(--lx-font-body); color: var(--lx-ink); font-size: 16px; line-height: 1.65; }
.lxtd-page .lxtd-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.lxtd-page section { padding: 40px 0; }
.lxtd-page section + section { border-top: 1px solid var(--lx-line); }
.lxtd-page h1 { font: 700 clamp(28px, 4.5vw, 44px)/1.2 var(--lx-font-head); color: var(--lx-navy-900); margin: 0 0 12px; }
.lxtd-page h2 { font: 700 clamp(22px, 3vw, 30px)/1.3 var(--lx-font-head); color: var(--lx-navy-900); margin: 0 0 14px; }
.lxtd-page h3 { font: 700 19px/1.35 var(--lx-font-head); color: var(--lx-navy-700); margin: 18px 0 8px; }
.lxtd-page p { margin: 0 0 12px; }
.lxtd-page a:not(.lxtd-btn) { color: var(--lx-navy-700); text-decoration: underline; text-underline-offset: 3px; }
.lxtd-page .lxtd-lead { font-size: 18px; color: var(--lx-ink); max-width: 760px; }
.lxtd-page .lxtd-answer {
	background: var(--lx-bg-soft); border-left: 4px solid var(--lx-orange-700); padding: 14px 18px;
	border-radius: 0 var(--lx-radius-sm) var(--lx-radius-sm) 0; max-width: 820px;
}
.lxtd-page .lxtd-hero-band { background: linear-gradient(180deg, var(--lx-navy-50), #fff); padding-top: 32px; }
.lxtd-page .lxtd-crumbs { font-size: 14px; color: var(--lx-ink-soft); margin-bottom: 12px; }
.lxtd-page .lxtd-crumbs a { color: var(--lx-ink-soft); }
.lxtd-page .lxtd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.lxtd-page .lxtd-trustline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--lx-ink-soft); }
.lxtd-page .lxtd-trustline li::before { content: "✓ "; color: var(--lx-ok); font-weight: 700; }
.lxtd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; border: 1px solid var(--lx-line); border-radius: var(--lx-radius); }
.lxtd-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; background: #fff; }
.lxtd-table caption { text-align: left; padding: 10px 14px; font-weight: 700; color: var(--lx-navy-900); }
.lxtd-table th, .lxtd-table td { padding: 10px 14px; border-top: 1px solid var(--lx-line); text-align: left; vertical-align: top; }
.lxtd-table thead th { background: var(--lx-navy-700); color: #fff; border-top: 0; }
.lxtd-table tbody th { background: var(--lx-bg-soft); color: var(--lx-navy-900); }
.lxtd-table .is-price { font-weight: 700; color: var(--lx-orange-700); white-space: nowrap; }
.lxtd-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lxtd-card2 { border: 1px solid var(--lx-line); border-radius: var(--lx-radius); padding: 18px; background: #fff; box-shadow: var(--lx-shadow-1); }
.lxtd-card2 h3 { margin-top: 0; }
.lxtd-card2 .lxtd-price { font: 700 22px/1.2 var(--lx-font-head); color: var(--lx-orange-700); margin: 4px 0 8px; }
.lxtd-list { padding-left: 20px; margin: 0 0 12px; }
.lxtd-list li { margin-bottom: 6px; }
.lxtd-timeline { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lxtd-timeline li { position: relative; padding: 46px 14px 14px; border-radius: var(--lx-radius); background: var(--lx-bg-soft); border: 1px solid var(--lx-line); }
.lxtd-timeline li::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; left: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lx-navy-700); color: #fff; font-weight: 700; font-size: 15px; }
.lxtd-timeline strong { display: block; color: var(--lx-navy-900); margin-bottom: 4px; }
.lxtd-faq details { border: 1px solid var(--lx-line); border-radius: var(--lx-radius-sm); padding: 0 16px; margin-bottom: 10px; background: #fff; }
.lxtd-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--lx-navy-900); min-height: var(--lx-tap); list-style-position: outside; }
.lxtd-faq details[open] summary { border-bottom: 1px solid var(--lx-line); margin-bottom: 10px; }
.lxtd-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.lxtd-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--lx-navy-50); color: var(--lx-navy-900) !important; text-decoration: none !important; font-weight: 600; }
.lxtd-note { font-size: 14px; color: var(--lx-ink-soft); }
.lxtd-source { font-size: 14px; color: var(--lx-ink-soft); border-top: 1px dashed var(--lx-line); padding-top: 10px; margin-top: 16px; }

/* Form ngắn 3 ô */
.lxtd-quick { display: grid; gap: 12px; max-width: 560px; }
.lxtd-quick label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--lx-navy-900); }
.lxtd-quick input, .lxtd-quick select {
	width: 100%; min-height: var(--lx-tap); padding: 10px 12px; border: 1px solid #9aa8b8; border-radius: var(--lx-radius-sm);
	font: 16px var(--lx-font-body); background: #fff; color: var(--lx-ink);
}
.lxtd-quick input:focus-visible, .lxtd-quick select:focus-visible { outline: 3px solid var(--lx-orange-700); outline-offset: 1px; border-color: var(--lx-navy-700); }
.lxtd-quick .lxtd-radio { display: flex; gap: 16px; flex-wrap: wrap; }
.lxtd-quick .lxtd-radio label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; }
.lxtd-quick .lxtd-radio input { width: 20px; height: 20px; min-height: 0; }
.lxtd-quick__msg { padding: 12px 14px; border-radius: var(--lx-radius-sm); background: #e8f5ec; color: #14532d; }
.lxtd-quick__msg.is-error { background: #fdecec; color: #7f1d1d; }
.lxtd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Chuyên mục Tin tức: H1 gọn thay banner */
.lxtd-archive-title { font: 700 clamp(26px, 3.6vw, 38px)/1.25 var(--lx-font-head); color: var(--lx-navy-900); margin: 32px 0 8px; }
@media (max-width: 767px) { .lxtd-page .lxtd-actions .lxtd-btn { flex: 1 1 100%; } }

/* Trang chủ: dòng đơn vị gắn với sân tập/sân thi (Phase 7.1) */
.lxtd-hero__org { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--lx-radius-sm); background: var(--lx-navy-50); font-size: 15px; line-height: 1.5; color: var(--lx-navy-900); }
.lxtd-hero__org a { color: var(--lx-orange-700); font-weight: 700; }
/* Dải khu vực ở chân trang */
.lxtd-footer-areas { background: var(--lx-navy-900); color: #dfe6ee; font-size: 15px; padding: 18px 0; }
.lxtd-footer-areas .lxtd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.lxtd-footer-areas p { margin: 0; color: #fff; }
.lxtd-footer-areas ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.lxtd-footer-areas a { color: #dfe6ee !important; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
.lxtd-footer-areas p, .lxtd-footer-areas strong { color: #fff !important; }
.lxtd-inlink, .lxtd-page p a { text-decoration: underline !important; text-underline-offset: 3px; }
.wpcf7-form label small i, .wpcf7-form label small { color: #4a5868 !important; }

/* 22/11/2026: dòng slide theo hạng là link tới trang hạng */
.lxtd-hero__line a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lxtd-hero__line a:hover, .lxtd-hero__line a:focus-visible { text-decoration-thickness: 2px; }

/* 22/11/2026: 3 dòng dấu tích bên trái đổi theo slide */
.lxtd-hero__panel[hidden] { display: none; }
.lxtd-hero__panel.is-active { animation: lxtd-fade-in .6s ease; }
.lxtd-hero__panel strong { color: var(--lx-navy-900); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .lxtd-hero__panel.is-active { animation: none; } }
.lxtd-hero__checks { display: grid; }
.lxtd-hero__checks > .lxtd-hero__panel { grid-area: 1 / 1; margin-bottom: 0; }
.lxtd-hero__checks > .lxtd-hero__panel[hidden] { display: block !important; visibility: hidden; }
/* Dòng nổi bật của slide cũng xếp chồng → không đổi chiều cao khi chuyển slide */
.lxtd-hero__lines { display: grid; }
.lxtd-hero__lines > .lxtd-hero__line { grid-area: 1 / 1; }
.lxtd-hero__lines > .lxtd-hero__line[hidden] { display: block !important; visibility: hidden; }
