/*
Theme Name:        Ngày Đẹp
Theme URI:         https://example.com/ngay-dep-theme
Author:            Ngày Đẹp
Author URI:        https://example.com
Description:       Theme WordPress chuyên dụng cho website Lịch Âm Việt Nam — Lịch hôm nay, Lịch ngày, Lịch tuần, Lịch năm. Sử dụng thiết kế giấy cũ với màu vermilion đỏ son và vàng kim truyền thống. Hỗ trợ font Be Vietnam Pro + Alegreya, lịch âm Hồ Ngọc Đức (TZ +7), giờ hoàng đạo + sao đánh giá, ngày tốt xấu, can chi, ngũ hành nạp âm.
Version:           1.0.0
Tested up to:      6.5
Requires PHP:      7.4
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       ngay-dep
Tags:              custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, full-width-template, rtl-language-support, blog, news
*/

/* Font dự phòng cùng khổ với web font (đo 13/11/2026): trong lúc Alegreya / Be Vietnam Pro chưa tải xong,
   chữ hiện bằng Times New Roman / Arial đã chỉnh kích thước, nên khi đổi font chữ không xuống dòng khác → giảm CLS.
   Liberation Serif/Sans, Tinos/Arimo cùng số đo với Times New Roman/Arial (máy Linux, Lighthouse). */
@font-face {
	font-family: 'Alegreya Fallback';
	font-weight: 100 599;
	src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('Tinos');
	size-adjust: 93.4%;
	ascent-override: 109.2%;
	descent-override: 37.5%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'Alegreya Fallback';
	font-weight: 600 900;
	src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Liberation Serif Bold'), local('Tinos Bold');
	size-adjust: 89.2%;
	ascent-override: 114.3%;
	descent-override: 39.2%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'Be Vietnam Pro Fallback';
	font-weight: 100 599;
	src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
	size-adjust: 102.4%;
	ascent-override: 97.7%;
	descent-override: 26.4%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'Be Vietnam Pro Fallback';
	font-weight: 600 900;
	src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold');
	size-adjust: 100.5%;
	ascent-override: 99.5%;
	descent-override: 26.9%;
	line-gap-override: 0%;
}

/* style.css là required by WP, nhưng theme thực sự dùng CSS riêng cho từng trang.
   File này chứa CSS reset/normalize + base styles cho các trang non-lịch (home page, blog, archive). */

/* === DESIGN TOKENS — "Tờ lịch bloc" ===
   Nguồn chân lý duy nhất cho màu / chữ / khoảng cách / bo góc / bóng / lớp / chuyển động.
   Plugin NDLA dùng cùng tên biến (--paper, --vermilion, --gold...) nên token ở đây
   là mặc định; admin settings của plugin vẫn ghi đè được 4 màu chính. */
:root {
	/* Màu nền — giấy điều */
	--paper:          #F2E8CE;
	--paper-deep:     #E8DAB4;
	--paper-light:    #FAF4E0;
	--paper-card:     #FBF5E1;
	/* Mực */
	--ink:            #1B130E;
	--ink-soft:       #4A3528;
	--ink-mute:       #6B5440;   /* 5.8:1 trên --paper (cũ #7A6249 = 4.7:1) */
	/* Son — hành động, ngày lễ, hiện tại */
	--vermilion:      #A52521;
	--vermilion-deep: #7A1612;
	/* Kim — chỉ để trang trí (viền, sao). Chữ màu kim dùng --gold-text */
	--gold:           #B5933A;
	--gold-light:     #D8B863;
	--gold-text:      #6E5617;   /* 5.7:1 — thay cho chữ #B5933A (2.4:1) / #C8941A (2.5:1) */
	/* Ngữ nghĩa cát / hung */
	--jade:           #2D5F45;   /* tốt — 6.8:1 */
	--hac:            #3C2A20;   /* xấu */
	--line:           rgba(181, 147, 58, 0.35);

	/* Chữ */
	--font-display: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	--font-body:    'Be Vietnam Pro', 'Be Vietnam Pro Fallback', system-ui, -apple-system, sans-serif;
	--fs-xs:   12px;  /* sàn cho nhãn — không dùng nhỏ hơn, trừ số âm lịch trong ô lịch (11px) */
	--fs-sm:   13px;
	--fs-base: 16px;
	--fs-md:   18px;
	--fs-lg:   22px;
	--fs-xl:   28px;
	--fs-2xl:  clamp(28px, 3.5vw, 36px);
	--fs-3xl:  clamp(30px, 5vw, 56px);

	/* Khoảng cách (lưới 4pt) */
	--sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
	--sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;

	/* Bo góc — giấy thì vuông; chỉ chip/pill mới tròn */
	--r-paper: 2px;
	--r-card:  6px;
	--r-pill:  999px;

	/* Bóng */
	--shadow-1: 0 1px 2px rgba(27, 19, 14, 0.08);
	--shadow-2: 0 8px 24px -14px rgba(27, 19, 14, 0.25);
	--shadow-3: 0 4px 60px -12px rgba(27, 19, 14, 0.28);

	/* Lớp */
	--z-base: 1; --z-sticky: 50; --z-overlay: 80; --z-skip: 100000;

	/* Chuyển động */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--dur-fast: 150ms;
	--dur: 220ms;

	--focus-ring: 0 0 0 2px var(--paper-light), 0 0 0 4px var(--vermilion);
	--tap: 44px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
	margin: 0;
	font-family: 'Be Vietnam Pro', 'Be Vietnam Pro Fallback', system-ui, -apple-system, sans-serif;
	/* Alegreya mặc định dùng chữ số kiểu cổ (thụt lên xuống) → bật chữ số cùng chiều cao cho lịch */
	font-variant-numeric: lining-nums;
	font-size: 16px;
	line-height: 1.55;
	color: #1B130E;
	background: #F2E8CE;
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(165, 37, 33, 0.06), transparent 60%),
		radial-gradient(ellipse 60% 40% at 100% 30%, rgba(181, 147, 58, 0.08), transparent 60%),
		radial-gradient(ellipse 60% 40% at 0% 70%, rgba(45, 95, 69, 0.05), transparent 60%);
	background-attachment: fixed;
	min-height: 100vh;
}

a { color: #A52521; text-decoration: none; }
a:hover { color: #7A1612; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, sans-serif;
	font-weight: 700;
	color: #1B130E;
	line-height: 1.2;
	margin: 0 0 0.5em;
}
h1 em, h2 em, h3 em {
	font-family: 'Be Vietnam Pro', 'Be Vietnam Pro Fallback', sans-serif;
	font-style: italic;
	font-weight: 500;
	color: #7A1612;
}

p { margin: 0 0 1em; }

/* === SHARED HEADER (global theme) === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(242, 232, 206, 0.88);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid rgba(181, 147, 58, 0.3);
	box-shadow: 0 1px 0 rgba(255, 248, 220, 0.6) inset, 0 8px 24px -16px rgba(27, 19, 14, 0.12);
}
.site-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
}
.site-brand-logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
	filter: drop-shadow(1px 2px 6px rgba(27, 19, 14, 0.35));
}
.site-brand-mark {
	width: 44px; height: 44px;
	background: #A52521;
	color: #FAF4E0;
	display: grid;
	place-items: center;
	border-radius: 2px;
	transform: rotate(-3deg);
	box-shadow: 2px 2px 0 #B5933A, 4px 4px 8px rgba(27, 19, 14, 0.12);
	position: relative;
}
.site-brand-mark::after {
	content: "";
	position: absolute; inset: 3px;
	border: 1px solid rgba(255, 244, 224, 0.5);
	border-radius: 1px;
}
.site-brand-text { line-height: 1.1; }
.site-brand-text .t1 {
	font-family: 'Alegreya', 'Alegreya Fallback', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #7A1612;
	letter-spacing: 0.02em;
}
.site-brand-text .t2 {
	font-size: 12.5px;
	letter-spacing: 0.01em;
	color: #5E5048;
	margin-top: 2px;
}
.site-nav {
	display: flex;
	gap: 4px;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-nav li { list-style: none; }
.site-nav a {
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #4A3528;
	border-radius: 2px;
	transition: color .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: #7A1612;
}
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	position: relative;
}
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 2px;
	background: #A52521;
}

.menu-toggle {
	display: none;
	width: var(--tap);
	height: var(--tap);
	flex-shrink: 0;
	place-items: center;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--r-paper);
	cursor: pointer;
	color: #7A1612;
	transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.menu-toggle:hover { background: rgba(165, 37, 33, 0.06); border-color: var(--line); }
.menu-toggle svg { display: block; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* === SHARED FOOTER — "Sơn mài" ===
   Nền sơn son thẫm, chỉ vàng thếp đôi ở mép trên, tờ lịch "Hôm nay" thu nhỏ,
   lưới 12 ấn triện con giáp. Tự chứa style (footer có ở cả trang không phải lịch).
   Tương phản: kem #F6E7C1 / nền #3A0B08 ≈ 12:1 · kem nhạt #E2CDA3 ≈ 9:1 · vàng #F0C873 ≈ 10:1 */
.site-footer {
	--ft-bg:      #3A0B08;
	--ft-bg-2:    #250605;
	--ft-cream:   #F6E7C1;
	--ft-cream-2: #E2CDA3;
	--ft-gold:    #F0C873;
	--ft-line:    rgba(240, 200, 115, 0.22);
	position: relative;
	margin-top: 60px;
	padding: 0;
	color: var(--ft-cream-2);
	/* Chỉ vàng thếp đôi ở mép trên (2px + 1px) nằm trong lớp nền */
	background:
		linear-gradient(90deg, transparent, var(--ft-gold) 15%, var(--ft-gold) 85%, transparent) 0 0 / 100% 2px no-repeat,
		linear-gradient(90deg, transparent, rgba(240, 200, 115, 0.5) 15%, rgba(240, 200, 115, 0.5) 85%, transparent) 0 6px / 100% 1px no-repeat,
		radial-gradient(ellipse 50% 70% at 100% 0%, rgba(240, 200, 115, 0.08), transparent 60%),
		linear-gradient(170deg, var(--ft-bg) 0%, var(--ft-bg-2) 100%);
	/* Màu nền đặc để công cụ đo tương phản (Lighthouse) đọc được — gradient không được tính */
	background-color: var(--ft-bg-2);
	font-size: 15px;
}
.ft-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 0; }
.site-footer a { color: var(--ft-cream); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--ft-gold); }

/* Ấn triện trong footer (không phụ thuộc CSS plugin) */
.site-footer .ndla-seal {
	display: inline-grid;
	place-items: center;
	width: 1.4em; height: 1.4em;
	font-family: 'Noto Emoji', 'Segoe UI Symbol', sans-serif;
	font-weight: 500;
	line-height: 1;
	color: var(--ft-bg);
	background: var(--ft-gold);
	border-radius: 0.14em;
	box-shadow: inset 0 0 0 0.07em rgba(58, 11, 8, 0.25);
}

/* Hàng trên: thương hiệu + tờ lịch hôm nay */
.ft-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--ft-line);
}
.ft-brand { max-width: 520px; }
.ft-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ft-logo-img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.ft-logo .ndla-seal { font-size: 30px; }
.ft-logo-name {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	color: #FFF6E0;
	line-height: 1.2;
}
.ft-about { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ft-cream-2); }

.ft-today {
	display: flex;
	align-items: stretch;
	flex-shrink: 0;
	min-width: 300px;
	border-radius: 6px;
	overflow: hidden;
	background: #FFFDF8;
	color: #1F1714;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
	transition: transform .2s;
}
.site-footer a.ft-today { color: #1F1714; }
.site-footer a.ft-today:hover { color: #1F1714; transform: translateY(-2px); }
.ft-today-num {
	display: grid;
	place-items: center;
	min-width: 84px;
	padding: 0 14px;
	background: #B42318;
	color: #FFF6E0;
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
}
.ft-today-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 18px; font-size: 14px; color: #5E5048; }
.ft-today-text strong { font-size: 16px; color: #1F1714; }
.ft-today-label { font-size: 12px; font-weight: 700; color: #B42318; }
.ft-today-status { margin-top: 4px; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ft-today-status.is-hd  { background: #E3F1EA; color: #14513C; }
.ft-today-status.is-hac { background: #EFE9DE; color: #5E5048; }

/* Lưới cột */
.ft-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr 1.1fr 1.1fr 1fr;
	gap: 32px 32px;
	padding: 40px 0;
}
.ft-h {
	margin: 0 0 14px;
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--ft-gold);
	letter-spacing: 0;
}
.site-footer .ft-h a { color: var(--ft-gold); }
.site-footer .ft-h a:hover { color: #FFF6E0; }
.ft-col ul { list-style: none; margin: 0; padding: 0; }
.ft-col li { margin: 0 0 10px; }
.ft-col li a { color: var(--ft-cream-2); font-size: 15px; }
.ft-col li a:hover { color: var(--ft-gold); }

.ft-col .ft-zodiac {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.ft-zodiac li { margin: 0; }
.site-footer .ft-zodiac a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid var(--ft-line);
	border-radius: 6px;
	color: var(--ft-cream);
	font-size: 14px;
	transition: background-color .15s, border-color .15s;
}
.site-footer .ft-zodiac a:hover { background: rgba(240, 200, 115, 0.1); border-color: var(--ft-gold); color: #FFF6E0; }
.ft-zodiac .ndla-seal { font-size: 18px; flex-shrink: 0; }

/* Hàng dưới */
.ft-bot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--ft-line);
	font-size: 13px;
	color: var(--ft-cream-2);
}
.ft-bot p { margin: 0; }
.ft-totop { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }

@media (max-width: 1024px) {
	.ft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ft-col-zodiac { grid-column: 1 / -1; order: -1; }
	.ft-col .ft-zodiac { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.ft-top { flex-direction: column; align-items: stretch; }
	.ft-today { min-width: 0; }
}
@media (max-width: 560px) {
	.ft-wrap { width: calc(100% - 32px); padding-top: 44px; }
	.ft-col .ft-zodiac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ft-grid { gap: 28px 20px; padding: 32px 0; }
	.ft-bot { flex-direction: column; align-items: flex-start; gap: 4px; }
	.ft-logo-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.ft-today { transition: none; }
}

/* === DEFAULT PAGE (home + non-calendar) === */
.site-main { min-height: 60vh; }
.wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}
.entry-content { padding: 40px 0; }
.entry-title {
	font-family: 'Alegreya', 'Alegreya Fallback', sans-serif;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	margin-bottom: 16px;
}

/* === HOMEPAGE HERO (default for non-lich pages) === */
.home-hero {
	padding: 60px 24px;
	text-align: center;
}
.home-hero h1 {
	font-size: clamp(40px, 6vw, 72px);
	margin-bottom: 16px;
}
.home-hero p {
	font-size: 18px;
	color: #4A3528;
	max-width: 720px;
	margin: 0 auto 32px;
}
.home-hero-cta {
	display: inline-flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}
.btn {
	display: inline-block;
	padding: 13px 24px;
	min-height: var(--tap);
	background: #A52521;
	color: #FAF4E0;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background .15s;
	border: 1px solid #A52521;
}
.btn:hover { background: #7A1612; color: #FAF4E0; }
.btn.btn-outline {
	background: transparent;
	color: #A52521;
}
.btn.btn-outline:hover { background: #A52521; color: #FAF4E0; }

.home-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	padding: 40px 0;
}
.home-feature {
	background: #FBF5E1;
	border: 1px solid rgba(181, 147, 58, 0.35);
	border-radius: 4px;
	padding: 24px;
	text-align: center;
	transition: transform .15s, box-shadow .2s;
}
.home-feature:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -10px rgba(27, 19, 14, 0.2);
}
.home-feature-icon {
	font-size: 36px;
	margin-bottom: 8px;
}
.home-feature h3 {
	font-size: 18px;
	margin-bottom: 8px;
}
.home-feature p {
	font-size: 13px;
	color: #7A6249;
	margin-bottom: 16px;
}

/* === WP CONTENT (blog posts, pages) === */
.entry-content > * {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }

.entry-content a { color: #A52521; }
.entry-content a:hover { color: #7A1612; }

.entry-content blockquote {
	border-left: 4px solid #B5933A;
	padding: 12px 20px;
	background: rgba(181, 147, 58, 0.06);
	font-style: italic;
	margin: 20px 0;
}

.entry-content code {
	background: rgba(60, 42, 32, 0.08);
	padding: 2px 6px;
	border-radius: 2px;
	font-size: 14px;
	font-family: ui-monospace, monospace;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.entry-content table th, .entry-content table td {
	padding: 8px 12px;
	border-bottom: 1px solid rgba(181, 147, 58, 0.2);
	text-align: left;
}
.entry-content table th {
	background: rgba(181, 147, 58, 0.08);
	font-weight: 600;
}

/* === COMMENTS === */
.comments-area {
	max-width: 760px;
	margin: 40px auto;
}
.comment-list { list-style: none; padding: 0; }
.comment { border-bottom: 1px dashed rgba(181, 147, 58, 0.3); padding: 16px 0; }
.comment-form input, .comment-form textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid rgba(181, 147, 58, 0.4);
	border-radius: 2px;
	background: #FBF5E1;
	font-family: inherit;
	font-size: 14px;
}

/* === MOBILE === */
@media (max-width: 768px) {
	.site-nav { display: none; }
	.menu-toggle { display: grid; }
	.site-header-inner { padding: 10px 16px; gap: 12px; }
	.site-brand { min-width: 0; }
	.site-brand-text { min-width: 0; }
	/* Tên site dài: 1 dòng, cắt gọn; khẩu hiệu ẩn để header không cao 2–3 dòng */
	.site-brand-text .t1 {
		font-size: 19px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.site-brand-text .t2 { display: none; }
	.site-nav.open a { display: flex; align-items: center; min-height: var(--tap); }
	.site-nav.open {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #F2E8CE;
		padding: 12px;
		flex-direction: column;
		gap: 0;
		border-bottom: 1px solid rgba(181, 147, 58, 0.3);
		box-shadow: 0 8px 16px -8px rgba(27, 19, 14, 0.2);
	}
	.site-nav.open a {
		padding: 12px 16px;
		border-bottom: 1px solid rgba(181, 147, 58, 0.15);
	}
}
@media (max-width: 480px) {
	.home-hero { padding: 40px 16px; }
}
@media (max-width: 360px) {
	.site-header-inner { padding: 10px 12px; gap: 8px; }
	.site-brand-mark { width: 36px; height: 36px; }
	.site-brand-text .t1 { font-size: 20px; }
	.site-brand-text .t2 { font-size: 9px; letter-spacing: 0.2em; }
}

/* ========================================================
   CALENDAR PAGES — BOXED LAYOUT
   ======================================================== */
body.ngaydep-lich {
    background: #C4A26A;
    background-image:
        radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(165, 37, 33, 0.18), transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 50%, rgba(181, 147, 58, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0%   80%, rgba(45,  95, 69, 0.12), transparent 55%);
    background-attachment: fixed;
}

/* Hộp nội dung: căn giữa, bóng đổ, viền trang trí trên cùng */
.ndla-page {
    max-width: 1240px;
    margin: 28px auto 0;
    background-color: #F2E8CE;
    background-image: linear-gradient(90deg, #A52521 0%, #B5933A 50%, #A52521 100%);
    background-size: 100% 5px;
    background-repeat: no-repeat;
    background-position: 0 0;
    box-shadow:
        0 4px 60px -12px rgba(27, 19, 14, 0.28),
        0 0 0 1px rgba(181, 147, 58, 0.22);
    padding: 28px 36px 72px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 6px;
    padding: 0 0 12px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #7A6249;
    border-bottom: 1px dashed rgba(181, 147, 58, 0.35);
}
.breadcrumb a { color: #7A6249; transition: color .15s; }
.breadcrumb a:hover { color: #A52521; }
.breadcrumb .sep { color: rgba(181, 147, 58, 0.55); }
.breadcrumb .cur { color: #A52521; font-weight: 500; }

@media (max-width: 900px) { .ndla-page { padding: 24px 24px 60px; } }
@media (max-width: 768px) { .ndla-page { padding: 20px 16px 48px; margin-top: 0; } }
@media (max-width: 480px) { .ndla-page { padding: 16px 12px 40px; } }

/* === SCREEN READER === */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
}
.screen-reader-text:focus {
	clip: auto !important;
	display: block;
	position: absolute;
	top: 5px;
	left: 5px;
	z-index: 100000;
	padding: 15px 23px;
	background: #FAF4E0;
	color: #A52521;
}

/* ========================================================
   NỀN TẢNG TRUY CẬP (áp dụng toàn site)
   ======================================================== */
/* Viền focus rõ cho bàn phím — trước đây gần như không có :focus nào */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--vermilion);
	outline-offset: 2px;
	border-radius: var(--r-paper);
}
.site-footer :where(a, button):focus-visible { outline-color: var(--gold-light); }

/* Mọi thứ bấm được đều có con trỏ tay */
:where(button, [role="button"], select, summary, label[for]) { cursor: pointer; }

/* Người dùng bật "giảm chuyển động" → tắt fadeUp, chuyển màu dài */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Chống tràn ngang trên mobile do họa tiết trang trí đặt lệch ra ngoài */
.ndla-page { overflow-x: clip; }

/* ========================================================
   ĐIỆN THOẠI (≤768px) — tối ưu chạm & đọc
   Nguyên tắc: vùng chạm ≥44px, cách nhau ≥8px; điều hướng chính trong
   vùng ngón cái (tab bar đáy); chữ ô nhập 16px để iOS không tự phóng to;
   phản hồi chạm tức thì thay cho hover.
   ======================================================== */
.m-tabbar { display: none; }

@media (max-width: 768px) {
	/* Thanh điều hướng đáy */
	.m-tabbar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 60;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		padding: 0 4px env(safe-area-inset-bottom);
		background: rgba(255, 253, 248, 0.97);
		-webkit-backdrop-filter: blur(12px) saturate(140%);
		backdrop-filter: blur(12px) saturate(140%);
		border-top: 1px solid #E7DCC8;
		box-shadow: 0 -8px 24px -16px rgba(31, 23, 20, 0.35);
	}
	.m-tabbar a {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: 58px;
		color: #5E5048;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.1;
		text-decoration: none;
		border-radius: 10px;
	}
	.m-tabbar a svg { width: 24px; height: 24px; }
	.m-tabbar a.is-active { color: #B42318; }
	.m-tabbar a.is-active::before {
		content: "";
		position: absolute;
		top: 0; left: 50%;
		width: 28px; height: 3px;
		margin-left: -14px;
		border-radius: 0 0 3px 3px;
		background: #B42318;
	}
	.m-tabbar a:active { background: rgba(180, 35, 24, 0.08); }
	/* Chừa chỗ để thanh đáy không che nội dung cuối trang */
	body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	body.kb-open { padding-bottom: 0; }
	body.kb-open .m-tabbar { display: none; }

	/* Header gọn: 65px → 56px */
	.site-header-inner { padding: 6px 12px 6px 16px; min-height: 56px; }
	.site-brand { min-height: 44px; }
	.site-brand-logo { width: 32px; height: 32px; }
	.site-brand-text .t1 { font-size: 18px; }
	.site-nav.open { max-height: calc(100vh - 56px); overflow-y: auto; }

	/* iOS tự phóng to khi chạm ô nhập có chữ < 16px — bắt buộc 16px.
	   !important vì CSS các trang đặt cỡ chữ ô chọn bằng class (13–14px). */
	input, select, textarea { font-size: 16px !important; }

	/* Phản hồi chạm tức thì (điện thoại không có hover) */
	html { -webkit-tap-highlight-color: rgba(180, 35, 24, 0.14); }
	:where(a, button, [role="button"], [onclick], summary, label):active { opacity: 0.72; }

	/* Footer: mỗi link là một hàng chạm 44px */
	.ft-col li { margin: 0; }
	.ft-col li a { display: flex; align-items: center; min-height: 44px; }
	.site-footer .ft-zodiac a { min-height: 44px; }
	.ft-totop { min-height: 44px; }
	.ft-logo { min-height: 44px; }
}
@media (max-width: 768px) {
	.site-footer .ft-h a { display: inline-flex; align-items: center; min-height: 44px; }
	.ft-col-zodiac .ft-h { margin-bottom: 6px; }
}

/* ========================================================
   KHỐI HƯỚNG DẪN (server-render cho SEO) — .seo-guide
   Văn bản dài: dòng tối đa ~72 ký tự, chữ 16–17px, giãn dòng 1.75
   ======================================================== */
.seo-guide {
	max-width: 820px;
	color: #3F332D;
	font-size: 16.5px;
	line-height: 1.75;
}
.seo-guide h2 {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	line-height: 1.2;
	color: #1F1714;
	margin: 0 0 14px;
}
.seo-guide h3 {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	font-size: 21px;
	font-weight: 700;
	color: #1F1714;
	margin: 28px 0 8px;
}
.seo-guide p { margin: 0 0 14px; max-width: 72ch; }
.seo-guide ul, .seo-guide ol { margin: 0 0 16px; padding-left: 22px; max-width: 72ch; }
.seo-guide li { margin-bottom: 6px; }
.seo-guide strong { color: #1F1714; }
.seo-guide a { color: #B42318; text-decoration: underline; text-underline-offset: 3px; }
.seo-guide a:hover { color: #8E1B12; }
.seo-guide .sg-note { font-size: 14px; color: #5E5048; }
.seo-guide .sg-faq { margin: 22px 0 18px; max-width: 72ch; }
.seo-guide .sg-faq details { border-bottom: 1px solid #E7DCC8; }
.seo-guide .sg-faq summary { cursor: pointer; padding: 12px 28px 12px 0; font-weight: 600; color: #1F1714; list-style: none; position: relative; }
.seo-guide .sg-faq summary::-webkit-details-marker { display: none; }
.seo-guide .sg-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 20px; color: #B42318; }
.seo-guide .sg-faq details[open] summary::after { content: "–"; }
.seo-guide .sg-faq summary:focus-visible { outline: 2px solid #B42318; outline-offset: 2px; }
.seo-guide .sg-faq details p { margin: 0 0 14px; }
.sg-table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid #E7DCC8; border-radius: 8px; background: #fff; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sg-table th, .sg-table td { padding: 12px 14px; border-bottom: 1px solid #F0E8DA; text-align: left; vertical-align: top; }
.sg-table thead th { background: #F6F1E7; font-size: 13px; font-weight: 700; color: #5E5048; }
.sg-table tbody tr:last-child th, .sg-table tbody tr:last-child td { border-bottom: 0; }
.sg-table tbody th { font-weight: 700; color: #1F1714; }
.sg-table tbody th span { display: block; font-weight: 400; font-size: 13.5px; color: #5E5048; margin-top: 2px; }
.sg-table td:last-child { white-space: nowrap; font-weight: 600; color: #1F1714; }
.sg-zodiac td:last-child { white-space: normal; font-weight: 400; color: #3F332D; }
.sg-table tbody th a { color: #B42318; text-decoration: none; }
.sg-table tbody th a:hover { text-decoration: underline; }
@media (max-width: 640px) {
	.seo-guide { font-size: 16px; }
	.sg-table th, .sg-table td { padding: 10px; }
	.sg-table td:last-child { white-space: normal; }
}

/* ========================================================
   BÀI VIẾT (single.php) — "Sơn mài"
   ======================================================== */
.post-head {
	position: relative;
	padding: 28px 0 40px;
	color: #F6E7C1;
	background:
		radial-gradient(ellipse 50% 120% at 90% 0%, rgba(240, 200, 115, 0.10), transparent 60%),
		linear-gradient(160deg, #7A1B14 0%, #5E130F 60%, #4A0E0B 100%);
}
.post-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, transparent, #F0C873 20%, #F0C873 80%, transparent); opacity: .7;
}
.post-head-in, .post-body { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.post-head .breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; border: 0; font-size: 14px; color: #E9D3A8; }
.post-head .breadcrumb a { color: #E9D3A8; }
.post-head .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.post-head .breadcrumb .sep { color: rgba(240, 200, 115, .6); }
.post-title {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif;
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: #FFF6E0;
	margin: 0 0 14px;
	text-wrap: balance;
}
.post-lead { font-size: 18px; line-height: 1.6; color: #E9D3A8; margin: 0 0 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #E9D3A8; }
.post-meta a { color: #F0C873; }

.post-body { padding: 0 0 64px; }
.post-thumb { margin: 32px 0 8px; }
.post-thumb img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 40px -24px rgba(31, 23, 20, .5); }

/* Nội dung: cột đọc, chữ 17px, giãn dòng 1.75 */
.post-content { padding: 24px 0 8px; font-size: 17px; line-height: 1.75; color: #2E2420; }
.post-content > * { max-width: none; margin-left: 0; margin-right: 0; }
.post-content p { margin: 0 0 18px; }
.post-content h2 {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-size: clamp(25px, 3vw, 31px); font-weight: 800; line-height: 1.2;
	color: #1F1714; margin: 44px 0 14px; scroll-margin-top: 90px;
}
.post-content h3 { font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-size: 21px; font-weight: 700; color: #1F1714; margin: 30px 0 10px; }
.post-content ul, .post-content ol { margin: 0 0 20px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content li::marker { color: #B42318; font-weight: 700; }
.post-content strong { color: #1F1714; }
.post-content a { color: #B42318; text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: #8E1B12; }
.post-content figure { margin: 26px 0; }
.post-content figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #E7DCC8; }
.post-content figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #5E5048; text-align: center; }
/* Ảnh chèn kiểu Classic Editor: [caption] tự gắn style="width:1024px" → ép theo cột chữ */
.post-content .wp-caption, .entry-content .wp-caption { width: auto !important; max-width: 100%; margin: 26px auto; }
.post-content .wp-caption img, .entry-content .wp-caption img { display: block; width: 100%; height: auto; margin: 0 auto; }
.post-content .wp-caption-text, .entry-content .wp-caption-text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #5E5048; text-align: center; }
.post-content img.aligncenter, .entry-content img.aligncenter, .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-content p > img.aligncenter { width: 100%; height: auto; border-radius: 10px; border: 1px solid #E7DCC8; }
.alignleft { float: left; margin: 6px 22px 12px 0; max-width: 50%; }
.alignright { float: right; margin: 6px 0 12px 22px; max-width: 50%; }
.post-content blockquote {
	margin: 22px 0; padding: 16px 20px; border: 1px solid #E8D6AE;
	background: #FBF6EC; border-radius: 10px; font-style: normal;
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-size: 20px; line-height: 1.6; color: #3F332D;
}
.post-content blockquote p { margin: 0; }
.post-content table {
	width: 100%; margin: 20px 0 26px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5;
	background: #fff; border: 1px solid #E7DCC8; border-radius: 8px; overflow: hidden; display: table;
}
.post-content th, .post-content td { padding: 11px 14px; border-bottom: 1px solid #F0E8DA; text-align: left; vertical-align: top; }
.post-content thead th { background: #F6F1E7; font-size: 13.5px; font-weight: 700; color: #5E5048; }
.post-content tbody tr:last-child td { border-bottom: 0; }
.post-content em { color: #5E5048; }

/* Khối công cụ */
.post-tools { margin: 36px 0 28px; padding: 22px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E7DCC8; }
.post-tools h2 { font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-size: 22px; margin: 0 0 14px; color: #1F1714; }
.post-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.post-tools-grid a {
	display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 44px;
	border-radius: 8px; background: #FDF1EF; color: #1F1714; text-decoration: none;
	transition: background-color .15s;
}
.post-tools-grid a:hover { background: #F9E1DD; color: #1F1714; }
.post-tools-grid strong { color: #B42318; font-size: 16px; }
.post-tools-grid span { font-size: 13.5px; line-height: 1.45; color: #5E5048; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #5E5048; margin-bottom: 28px; }
.post-tags a { padding: 5px 12px; border-radius: 999px; background: #F6F1E7; border: 1px solid #E7DCC8; color: #3F332D; text-decoration: none; }
.post-tags a:hover { border-color: #B42318; color: #B42318; }

.post-related h2 { font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-size: 24px; margin: 0 0 14px; color: #1F1714; }
.post-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #E7DCC8; text-decoration: none; transition: border-color .15s; }
.post-card:hover { border-color: #B42318; }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card strong { display: block; padding: 12px 14px 14px; font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-size: 18px; line-height: 1.3; color: #1F1714; }

@media (max-width: 640px) {
	.post-head { padding: 20px 0 30px; }
	.post-head-in, .post-body { width: calc(100% - 32px); }
	.post-lead { font-size: 16px; }
	.post-content { font-size: 16.5px; }
	.post-content table { font-size: 14px; display: block; overflow-x: auto; }
	.post-tools-grid, .post-related-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
 * LƯU TRỮ — chuyên mục / thẻ (archive.php): "mục lục lịch vạn niên"
 * Dải sơn son như đầu bài viết; bài dẫn có tờ lịch ngày âm; lưới không đóng khung.
 * ===================================================================== */
.arc-head {
	position: relative; padding: 30px 0 44px; color: #F6E7C1;
	background:
		radial-gradient(ellipse 50% 120% at 90% 0%, rgba(240, 200, 115, 0.10), transparent 60%),
		linear-gradient(160deg, #7A1B14 0%, #5E130F 60%, #4A0E0B 100%);
}
.arc-head-in, .arc-body { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.arc-head .breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; border: 0; font-size: 14px; color: #E9D3A8; }
.arc-head .breadcrumb a { color: #E9D3A8; }
.arc-head .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.arc-head .breadcrumb .sep { color: rgba(240, 200, 115, .6); }
.arc-title {
	font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-weight: 800; letter-spacing: -0.01em;
	font-size: clamp(34px, 5vw, 56px); line-height: 1.05; color: #FFF6E0; margin: 0 0 14px;
}
.arc-desc { max-width: 60ch; font-size: 18px; line-height: 1.6; color: #E9D3A8; }
.arc-desc p { margin: 0; }
.arc-topics { max-width: 80ch; margin: 18px 0 0; font-size: 15px; line-height: 1.8; color: #E9D3A8; }
.arc-topics span { color: #F0C873; font-weight: 600; margin-right: 4px; }
.arc-topics a { color: #FFF6E0; text-decoration: underline; text-decoration-color: rgba(240, 200, 115, .5); text-underline-offset: 3px; }
.arc-topics a:hover { text-decoration-color: #F0C873; }

.arc-body { padding: 44px 0 72px; }
.arc-body a:focus-visible { outline: 3px solid #B42318; outline-offset: 3px; border-radius: 6px; }

/* Bài dẫn */
.arc-lead { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid #E7DCC8; }
.arc-lead-media { position: relative; display: block; }
.arc-lead-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid #E7DCC8; }
.arc-sheet {
	display: inline-block; width: 96px; margin: 0 0 20px; text-align: center;
	background: #FFFDF8; border-radius: 8px; overflow: hidden; border: 1px solid #E7DCC8;
	box-shadow: 0 4px 0 #E9DFCC;
	transform: rotate(-2deg);
}
.arc-sheet-top { display: block; padding: 6px 4px; background: #B42318; color: #FFF6E0; font-size: 12px; font-weight: 600; font-variant-numeric: lining-nums; }
.arc-sheet-day { display: block; font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-weight: 800; font-size: 52px; line-height: 1; color: #7A1B14; padding-top: 8px; }
.arc-sheet-month { display: block; padding: 2px 4px 10px; font-size: 13px; color: #5E5048; }
.arc-lead-title { font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.arc-lead-title a, .arc-item-title a { color: #1F1714; text-decoration: none; }
.arc-lead-title a:hover, .arc-item-title a:hover { color: #B42318; }
.arc-lead .arc-excerpt { font-size: 17px; -webkit-line-clamp: 4; }

/* Lưới bài */
.arc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.arc-item-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid #E7DCC8; }
.arc-item-title { font-family: 'Alegreya', 'Alegreya Fallback', Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.25; margin: 16px 0 8px; text-wrap: balance; }
.arc-excerpt {
	margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; color: #3F332D;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.arc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13.5px; color: #5E5048; font-variant-numeric: lining-nums; }

/* Phân trang */
.arc-pages { margin-top: 56px; }
.arc-pages .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.arc-pages .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; border: 1px solid #E7DCC8; background: #FFFDF8; color: #3F332D;
	font-weight: 600; text-decoration: none; font-variant-numeric: lining-nums;
}
.arc-pages a.page-numbers:hover { border-color: #B42318; color: #B42318; }
.arc-pages .page-numbers.current { background: #7A1B14; border-color: #7A1B14; color: #FFF6E0; }
.arc-pages .page-numbers.dots { border: 0; background: none; }

.arc-empty { max-width: 60ch; font-size: 17px; }

@media (max-width: 900px) {
	.arc-lead { grid-template-columns: 1fr; gap: 34px; }
	.arc-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
}
@media (max-width: 600px) {
	.arc-head { padding: 22px 0 32px; }
	.arc-head-in, .arc-body { width: calc(100% - 32px); }
	.arc-desc { font-size: 16px; }
	.arc-body { padding-top: 28px; }
	.arc-lead { padding-bottom: 32px; margin-bottom: 32px; }
	.arc-sheet { width: 96px; margin-bottom: 14px; }
	.arc-sheet-day { font-size: 40px; }
	.arc-grid { grid-template-columns: 1fr; gap: 32px; }
	.arc-item-title { font-size: 20px; }
}

/* =====================================================================
 * MENU ĐIỆN THOẠI — tấm sơn son thả xuống, mỗi mục một con dấu chữ Hán
 * ===================================================================== */
.site-nav .nav-extra { display: none; }
@media (max-width: 768px) {
	.site-nav.open {
		display: flex; flex-direction: column; align-items: stretch; gap: 2px;
		position: absolute; top: 100%; left: 0; right: 0;
		padding: 10px 12px 14px; margin: 0;
		background:
			radial-gradient(ellipse 60% 80% at 100% 0%, rgba(240, 200, 115, 0.12), transparent 60%),
			linear-gradient(165deg, #7A1B14 0%, #5E130F 70%, #4A0E0B 100%);
		border: 0; border-radius: 0 0 18px 18px;
		box-shadow: 0 0 0 100vmax rgba(31, 23, 20, 0.45), 0 18px 30px -12px rgba(31, 23, 20, 0.6);
		max-height: calc(100vh - 56px - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
		animation: navDrop .22s ease-out;
	}
	@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	.site-nav.open li { list-style: none; }
	.site-nav.open a {
		display: flex; align-items: center; gap: 14px; min-height: 56px;
		padding: 8px 10px; border: 0; border-radius: 12px;
		font-size: 17px; font-weight: 600; color: #FFF6E0; text-align: left;
	}
	.site-nav.open a:hover, .site-nav.open a:focus-visible { background: rgba(255, 246, 224, 0.08); color: #fff; }
	.site-nav.open a:focus-visible { outline: 2px solid #F0C873; outline-offset: -2px; }
	/* icon đầu dòng (cùng bộ với thanh điều hướng dưới đáy) — ô vàng, nét đỏ */
	.site-nav.open a::before {
		content: ""; flex: none; width: 40px; height: 40px; border-radius: 10px;
		background: #F0C873 center / 22px 22px no-repeat;
	}
	.site-nav.open a::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237A1B14'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2014.5A8%208%200%201%201%209.5%204a6.5%206.5%200%200%200%2010.5%2010.5z'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/lich-ngay"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237A1B14'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%203v4M16%203v4M3%2010h18'%2F%3E%3Crect%20x%3D'7'%20y%3D'13'%20width%3D'4'%20height%3D'4'%20rx%3D'.5'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/lich-tuan"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237A1B14'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%203v4M16%203v4M3%2010h18M7%2015.5h10'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/lich-nam"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237A1B14'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'3'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'13'%20y%3D'3'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'3'%20y%3D'13'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'13'%20y%3D'13'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/tu-vi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237A1B14'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%203l2.7%205.6%206.1.9-4.4%204.3%201%206.1L12%2017l-5.4%202.9%201-6.1L3.2%209.5l6.1-.9z'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .nav-kien-thuc a::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237A1B14'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%205.5c2.7-1.6%205.7-1.6%209%20.6%203.3-2.2%206.3-2.2%209-.6V19c-2.7-1.6-5.7-1.6-9%20.6-3.3-2.2-6.3-2.2-9-.6z'%2F%3E%3Cpath%20d%3D'M12%206.1v13.5'%2F%3E%3C%2Fsvg%3E"); }
	/* mục đang xem: ô đỏ, nét vàng */
	.site-nav.open .current-menu-item > a::before, .site-nav.open .current_page_item > a::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23F0C873'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2014.5A8%208%200%201%201%209.5%204a6.5%206.5%200%200%200%2010.5%2010.5z'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/lich-ngay"]::before, .site-nav.open .current_page_item > a[href*="/lich-ngay"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23F0C873'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%203v4M16%203v4M3%2010h18'%2F%3E%3Crect%20x%3D'7'%20y%3D'13'%20width%3D'4'%20height%3D'4'%20rx%3D'.5'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/lich-tuan"]::before, .site-nav.open .current_page_item > a[href*="/lich-tuan"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23F0C873'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%203v4M16%203v4M3%2010h18M7%2015.5h10'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/lich-nam"]::before, .site-nav.open .current_page_item > a[href*="/lich-nam"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23F0C873'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'3'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'13'%20y%3D'3'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'3'%20y%3D'13'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'13'%20y%3D'13'%20width%3D'8'%20height%3D'8'%20rx%3D'1.5'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/tu-vi"]::before, .site-nav.open .current_page_item > a[href*="/tu-vi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23F0C873'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%203l2.7%205.6%206.1.9-4.4%204.3%201%206.1L12%2017l-5.4%202.9%201-6.1L3.2%209.5l6.1-.9z'%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .nav-kien-thuc.current-menu-item > a::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23F0C873'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%205.5c2.7-1.6%205.7-1.6%209%20.6%203.3-2.2%206.3-2.2%209-.6V19c-2.7-1.6-5.7-1.6-9%20.6-3.3-2.2-6.3-2.2-9-.6z'%2F%3E%3Cpath%20d%3D'M12%206.1v13.5'%2F%3E%3C%2Fsvg%3E"); }
	/* mũi tên cuối dòng (thay gạch chân của bản máy tính) */
	.site-nav.open a::after,
	.site-nav.open .current-menu-item > a::after,
	.site-nav.open .current_page_item > a::after {
		content: ""; position: static; transform: rotate(45deg); margin-left: auto; flex: none;
		width: 8px; height: 8px; background: none;
		border-top: 2px solid rgba(240, 200, 115, 0.7); border-right: 2px solid rgba(240, 200, 115, 0.7);
	}
	/* mục đang xem */
	.site-nav.open .current-menu-item > a,
	.site-nav.open .current_page_item > a { background: rgba(255, 246, 224, 0.1); color: #F0C873; }
	.site-nav.open .current-menu-item > a::before,
	.site-nav.open .current_page_item > a::before { background-color: #B42318; box-shadow: inset 0 0 0 1.5px #F0C873; }
	/* phần thêm */
	.site-nav.open .nav-extra { display: block; }
	.site-nav.open .nav-kien-thuc { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(240, 200, 115, 0.22); }
	.site-nav.open .nav-today {
		display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 12px 10px 4px;
		border-top: 1px solid rgba(240, 200, 115, 0.22); font-size: 14px; line-height: 1.5; color: #E9D3A8;
	}
	.site-nav.open .nav-today-d { color: #FFF6E0; font-weight: 600; }
	.site-nav.open .nav-today b { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(240, 200, 115, 0.18); color: #F0C873; font-weight: 600; font-size: 12.5px; }
	/* nút mở/đóng khi menu đang mở */
	.menu-toggle[aria-expanded="true"] { background: #7A1B14; color: #F0C873; border-color: #7A1B14; }
}
@media (prefers-reduced-motion: reduce) {
	.site-nav.open { animation: none; }
}

/* Ấn icon SVG trong footer (logo tờ lịch) */
.site-footer .ndla-seal-ico svg { width: .8em; height: .8em; }

/* Màu nền đặc cho khối nền gradient tối — để Lighthouse đo đúng tương phản (gradient không được tính) */
.post-head, .arc-head { background-color: #5E130F; }
.site-nav.open { background-color: #5E130F; }

/* =====================================================================
 * MENU CON "Tiện ích" — thả xuống trên máy tính, mở sẵn trong menu điện thoại
 * ===================================================================== */
@media (min-width: 769px) {
	.site-nav .menu-item-has-children { position: relative; }
	.site-nav .menu-item-has-children > a { padding-right: 28px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1612%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%209l6%206%206-6%27%2F%3E%3C%2Fsvg%3E") no-repeat right 10px center / 12px; }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; right: 0; z-index: 60; min-width: 250px; margin: 0; padding: 8px; list-style: none; background: #FFFDF8; border: 1px solid #E7DCC8; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(31, 23, 20, 0.4); }
	.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.site-nav .sub-menu a { display: block; padding: 10px 12px; white-space: nowrap; border-radius: 6px; }
	.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible { background: #F6EFE2; }
	.site-nav .sub-menu .current-menu-item > a::after, .site-nav .sub-menu .current_page_item > a::after { display: none; }
}
@media (max-width: 768px) {
	.site-nav.open .menu-item-has-children > a { pointer-events: none; min-height: 0; padding: 14px 10px 4px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(240, 200, 115, 0.85); }
	.site-nav.open .menu-item-has-children > a::before, .site-nav.open .menu-item-has-children > a::after { display: none; }
	.site-nav.open .sub-menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
	.site-nav.open a[href*="/la-so-tu-vi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M3%209h18M3%2015h18M9%203v18M15%203v18%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/la-so-tu-vi"]::before, .site-nav.open .current_page_item > a[href*="/la-so-tu-vi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M3%209h18M3%2015h18M9%203v18M15%203v18%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href$="/xem-ngay-tot/"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3%2010h18%27%2F%3E%3Cpath%20d%3D%27M8.5%2015.5l2.2%202.2%204.8-4.8%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href$="/xem-ngay-tot/"]::before, .site-nav.open .current_page_item > a[href$="/xem-ngay-tot/"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3%2010h18%27%2F%3E%3Cpath%20d%3D%27M8.5%2015.5l2.2%202.2%204.8-4.8%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/xem-tuoi-lam-nha"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2011l9-7%209%207%27%2F%3E%3Cpath%20d%3D%27M5%2010v10h14V10%27%2F%3E%3Cpath%20d%3D%27M10%2020v-6h4v6%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/xem-tuoi-lam-nha"]::before, .site-nav.open .current_page_item > a[href*="/xem-tuoi-lam-nha"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2011l9-7%209%207%27%2F%3E%3Cpath%20d%3D%27M5%2010v10h14V10%27%2F%3E%3Cpath%20d%3D%27M10%2020v-6h4v6%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/dem-nguoc-tet"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2713%27%20r%3D%278%27%2F%3E%3Cpath%20d%3D%27M12%209v4l2.5%202.5M9%202h6%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/dem-nguoc-tet"]::before, .site-nav.open .current_page_item > a[href*="/dem-nguoc-tet"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2713%27%20r%3D%278%27%2F%3E%3Cpath%20d%3D%27M12%209v4l2.5%202.5M9%202h6%27%2F%3E%3C%2Fsvg%3E"); }
}

/* Máy tính bảng / laptop nhỏ: menu ngang không xuống dòng */
.site-nav a { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1100px) {
	.site-brand-text .t2 { display: none; }
	.site-nav { gap: 0; }
	.site-nav a { padding: 8px 8px; font-size: 13.5px; }
	.site-nav .menu-item-has-children > a { padding-right: 22px; background-position: right 6px center; }
}
@media (max-width: 768px) {
	.site-nav.open a[href*="/doi-lich-am-duong"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%207h11l-3-3M17%2017H6l3%203%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/doi-lich-am-duong"]::before, .site-nav.open .current_page_item > a[href*="/doi-lich-am-duong"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%207h11l-3-3M17%2017H6l3%203%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/xem-tuoi-vo-chong"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2712%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2712%27%20r%3D%275%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/xem-tuoi-vo-chong"]::before, .site-nav.open .current_page_item > a[href*="/xem-tuoi-vo-chong"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2712%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2712%27%20r%3D%275%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/xem-huong-nha-hop-tuoi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%237A1B14%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M15.5%208.5l-2%205-5%202%202-5z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/xem-huong-nha-hop-tuoi"]::before, .site-nav.open .current_page_item > a[href*="/xem-huong-nha-hop-tuoi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23F0C873%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M15.5%208.5l-2%205-5%202%202-5z%27%2F%3E%3C%2Fsvg%3E"); }
}

/* =====================================================================
 * MENU: Tiện ích 2 cột trên máy tính; icon điện thoại cho các trang mới (11/2026)
 * ===================================================================== */
@media (min-width: 769px) {
	.site-nav .menu-item-has-children:hover > .sub-menu:has(> li:nth-child(9)), .site-nav .menu-item-has-children:focus-within > .sub-menu:has(> li:nth-child(9)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; min-width: 470px; }
}
@media (max-width: 768px) {
	.site-nav.open a[href*="/ngay-tot-theo-viec"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3%2010h18%27%2F%3E%3Cpath%20d%3D%27M12%2012.5l1.2%202.4%202.6.4-1.9%201.8.5%202.6-2.4-1.3-2.4%201.3.5-2.6-1.9-1.8%202.6-.4z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/ngay-tot-theo-viec"]::before, .site-nav.open .current_page_item > a[href*="/ngay-tot-theo-viec"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3%2010h18%27%2F%3E%3Cpath%20d%3D%27M12%2012.5l1.2%202.4%202.6.4-1.9%201.8.5%202.6-2.4-1.3-2.4%201.3.5-2.6-1.9-1.8%202.6-.4z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/van-khan"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M5%204h11a3%203%200%200%201%203%203v13H8a3%203%200%200%201-3-3z%27%2F%3E%3Cpath%20d%3D%27M9%209h6M9%2013h6%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/van-khan"]::before, .site-nav.open .current_page_item > a[href*="/van-khan"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M5%204h11a3%203%200%200%201%203%203v13H8a3%203%200%200%201-3-3z%27%2F%3E%3Cpath%20d%3D%27M9%209h6M9%2013h6%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/xuat-hanh-tet-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M15.5%208.5l-2%205-5%202%202-5z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/xuat-hanh-tet-"]::before, .site-nav.open .current_page_item > a[href*="/xuat-hanh-tet-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M15.5%208.5l-2%205-5%202%202-5z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/xem-tuoi-xong-dat-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M6%2021V4h9v17M15%205l3%201.5V21M4%2021h16%27%2F%3E%3Cpath%20d%3D%27M12%2012v1.5%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/xem-tuoi-xong-dat-"]::before, .site-nav.open .current_page_item > a[href*="/xem-tuoi-xong-dat-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M6%2021V4h9v17M15%205l3%201.5V21M4%2021h16%27%2F%3E%3Cpath%20d%3D%27M12%2012v1.5%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/cung-sao-giai-han-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M12%203l2.6%205.6%206.1.7-4.5%204.2%201.2%206L12%2016.5%206.6%2019.5l1.2-6-4.5-4.2%206.1-.7z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/cung-sao-giai-han-"]::before, .site-nav.open .current_page_item > a[href*="/cung-sao-giai-han-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M12%203l2.6%205.6%206.1.7-4.5%204.2%201.2%206L12%2016.5%206.6%2019.5l1.2-6-4.5-4.2%206.1-.7z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/tinh-ngay-gio-am-lich"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M12%203c1.5%202%202.5%203.2%202.5%204.6A2.5%202.5%200%200%201%2012%2010a2.5%202.5%200%200%201-2.5-2.4C9.5%206.2%2010.5%205%2012%203z%27%2F%3E%3Cpath%20d%3D%27M9%2012h6v9H9zM6%2021h12%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/tinh-ngay-gio-am-lich"]::before, .site-nav.open .current_page_item > a[href*="/tinh-ngay-gio-am-lich"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M12%203c1.5%202%202.5%203.2%202.5%204.6A2.5%202.5%200%200%201%2012%2010a2.5%202.5%200%200%201-2.5-2.4C9.5%206.2%2010.5%205%2012%203z%27%2F%3E%3Cpath%20d%3D%27M9%2012h6v9H9zM6%2021h12%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/them-lich-am-vao-dien-thoai"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%277%27%20y%3D%272.5%27%20width%3D%2710%27%20height%3D%2719%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M11%2018h2%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/them-lich-am-vao-dien-thoai"]::before, .site-nav.open .current_page_item > a[href*="/them-lich-am-vao-dien-thoai"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%277%27%20y%3D%272.5%27%20width%3D%2710%27%20height%3D%2719%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M11%2018h2%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/sinh-con-nam-nao-hop-tuoi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M12%2020s-7-4.3-7-10a4%204%200%200%201%207-2.6A4%204%200%200%201%2019%2010c0%205.7-7%2010-7%2010z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/sinh-con-nam-nao-hop-tuoi"]::before, .site-nav.open .current_page_item > a[href*="/sinh-con-nam-nao-hop-tuoi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M12%2020s-7-4.3-7-10a4%204%200%200%201%207-2.6A4%204%200%200%201%2019%2010c0%205.7-7%2010-7%2010z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/doi-gio-sinh-tinh-tuoi-mu"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/doi-gio-sinh-tinh-tuoi-mu"]::before, .site-nav.open .current_page_item > a[href*="/doi-gio-sinh-tinh-tuoi-mu"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E"); }
}

/* Icon menu điện thoại: trang năm sinh, tiết khí, lễ âm lịch, nghỉ lễ */
@media (max-width: 768px) {
	.site-nav.open a[href*="/tra-cuu-nam-sinh"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M4%2021c1.5-4%204.5-6%208-6s6.5%202%208%206%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/tra-cuu-nam-sinh"]::before, .site-nav.open .current_page_item > a[href*="/tra-cuu-nam-sinh"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M4%2021c1.5-4%204.5-6%208-6s6.5%202%208%206%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/tiet-khi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M12%202v2M12%2020v2M2%2012h2M20%2012h2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/tiet-khi"]::before, .site-nav.open .current_page_item > a[href*="/tiet-khi"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M12%202v2M12%2020v2M2%2012h2M20%2012h2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/le-am-lich"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M20%2014A8%208%200%201%201%2010%204a6%206%200%200%200%2010%2010z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/le-am-lich"]::before, .site-nav.open .current_page_item > a[href*="/le-am-lich"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M20%2014A8%208%200%201%201%2010%204a6%206%200%200%200%2010%2010z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/lich-nghi-le-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3%2010h18M8%2015h3%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/lich-nghi-le-"]::before, .site-nav.open .current_page_item > a[href*="/lich-nghi-le-"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3%2010h18M8%2015h3%27%2F%3E%3C%2Fsvg%3E"); }
}

@media (max-width: 768px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
/* Footer: ô con giáp 3 cột cho thoáng trên máy tính */
@media (min-width: 1025px) {
	.ft-col .ft-zodiac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Header máy tính bảng: tên site một dòng, menu gọn hơn */
@media (min-width: 769px) and (max-width: 1100px) {
	.site-brand-text .t1 { white-space: nowrap; font-size: 19px; }
}
@media (min-width: 769px) and (max-width: 960px) {
	.site-nav a { padding: 8px 6px; font-size: 13px; }
	.site-nav .menu-item-has-children > a { padding-right: 18px; background-position: right 4px center; background-size: 10px; }
}
@media (min-width: 769px) and (max-width: 900px) {
	.site-brand-text { display: none; }
}

/* Icon menu điện thoại: gieo quẻ, Tarot, bài tây */
@media (max-width: 768px) {
	.site-nav.open a[href*="/gieo-que-kinh-dich"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M5%205h14M5%209.5h5M14%209.5h5M5%2014h14M5%2018.5h5M14%2018.5h5%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/gieo-que-kinh-dich"]::before, .site-nav.open .current_page_item > a[href*="/gieo-que-kinh-dich"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%27M5%205h14M5%209.5h5M14%209.5h5M5%2014h14M5%2018.5h5M14%2018.5h5%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/boi-bai-tarot"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M12%208l1.2%202.6%202.8.3-2.1%201.9.6%202.7L12%2014.1l-2.5%201.4.6-2.7-2.1-1.9%202.8-.3z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/boi-bai-tarot"]::before, .site-nav.open .current_page_item > a[href*="/boi-bai-tarot"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M12%208l1.2%202.6%202.8.3-2.1%201.9.6%202.7L12%2014.1l-2.5%201.4.6-2.7-2.1-1.9%202.8-.3z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open a[href*="/boi-bai-tay"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%237A1B14%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M12%208c2%202%203.5%203.3%203.5%205a1.8%201.8%200%200%201-3.2%201.1L13%2017h-2l.7-2.9A1.8%201.8%200%200%201%208.5%2013c0-1.7%201.5-3%203.5-5z%27%2F%3E%3C%2Fsvg%3E"); }
	.site-nav.open .current-menu-item > a[href*="/boi-bai-tay"]::before, .site-nav.open .current_page_item > a[href*="/boi-bai-tay"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23F0C873%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%2714%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M12%208c2%202%203.5%203.3%203.5%205a1.8%201.8%200%200%201-3.2%201.1L13%2017h-2l.7-2.9A1.8%201.8%200%200%201%208.5%2013c0-1.7%201.5-3%203.5-5z%27%2F%3E%3C%2Fsvg%3E"); }
}
/* Menu có 3 mục thả xuống: thu gọn thêm ở máy tính bảng */
@media (min-width: 769px) and (max-width: 1100px) {
	.site-nav a { padding: 8px 6px; font-size: 13px; }
	.site-nav .menu-item-has-children > a { padding-right: 17px; background-position: right 3px center; background-size: 10px; }
}
@media (min-width: 769px) and (max-width: 860px) {
	.site-nav a { padding: 8px 4px; font-size: 12.5px; }
	.site-nav .menu-item-has-children > a { padding-right: 14px; background-position: right 1px center; }
}

/* Hộp biên soạn + nguồn tham khảo cuối bài kiến thức (plugin seo-fixes.php) */
.entry-content > .ndla-byline { margin-top: 40px; padding: 20px 22px; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-card); font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.ndla-byline-meta { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--ink-mute); }
.ndla-byline-meta strong { color: var(--ink); }
.ndla-byline h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: var(--fs-md); color: var(--vermilion-deep); }
.ndla-byline .ndla-sources { margin: 0 0 12px; padding-left: 1.2em; }
.ndla-byline .ndla-sources li { margin-bottom: 6px; }
.ndla-byline p:last-child { margin-bottom: 0; }
