/* =====================================================================
   Các giao diện chọn được ở myadmin → Giao diện website.
   Gắn bằng <html data-chude="...">, đặt SAU theme-homecheck.css.
   'homecheck' (mặc định) không cần khối nào ở đây.
   ===================================================================== */

/* ---------- Phần dùng chung cho mọi chủ đề khác mặc định ---------- */
html[data-chude]:not([data-chude="homecheck"]) .btn-primary,
html[data-chude]:not([data-chude="homecheck"]) .nut-vang,
html[data-chude]:not([data-chude="homecheck"]) .bamtracuu,
html[data-chude]:not([data-chude="homecheck"]) .back-to-top,
html[data-chude]:not([data-chude="homecheck"]) .nut-len-dau { border-color: var(--vien-nut) !important; }
html[data-chude]:not([data-chude="homecheck"]) .mxh a:hover,
html[data-chude]:not([data-chude="homecheck"]) .chan-mxh a:hover .mxh-ic { border-color: var(--vien-nut); }
html[data-chude]:not([data-chude="homecheck"]) .bg-primary { background: var(--vang-khoi) !important; color: var(--on-gold); }
html[data-chude]:not([data-chude="homecheck"]) .chan-cot .nhan-muc { color: var(--gold-chu); }
html[data-chude]:not([data-chude="homecheck"]) .btn:focus,
html[data-chude]:not([data-chude="homecheck"]) .btn:active { box-shadow: 0 0 0 .2rem var(--vong-focus) !important; }
html[data-chude]:not([data-chude="homecheck"]) .form-control:focus,
html[data-chude]:not([data-chude="homecheck"]) .form-select:focus { box-shadow: 0 0 0 .2rem var(--vong-focus); }
html[data-chude]:not([data-chude="homecheck"]) .table { --bs-table-striped-bg: var(--nen-soc); --bs-table-hover-bg: var(--nen-soc); }
html[data-chude]:not([data-chude="homecheck"]) h1,
html[data-chude]:not([data-chude="homecheck"]) h2,
html[data-chude]:not([data-chude="homecheck"]) h3,
html[data-chude]:not([data-chude="homecheck"]) .cc-ten,
html[data-chude]:not([data-chude="homecheck"]) .logo-trang .ten { letter-spacing: 0; }


/* =====================================================================
   1. CUNG ĐÌNH TRUNG HOA: đỏ son, vàng kim, giấy ngà vân mây
   ===================================================================== */
html[data-chude="trunghoa"] {
  --bg: #FBF3E4; --surface: #FFFBF3; --sunk: #F8ECD6; --lua: #F4E2C2;
  --line: #E6CFA6; --gold-line: rgba(176,124,40,.5);
  --gold: #B8862B; --gold-chu: #A3201A; --gold-bright: #E8C268; --gold-soft: #FBEBD2;
  --on-gold: #FFF1C9; --son: #B3221B; --deep: #2B130E; --text: #4B2D24;
  --muted: #7C5C4D; --faint: #BFA58E; --brand-brown: #9A1A14;
  --vang-anh-kim: linear-gradient(90deg,#8E1510,#C9A043,#F3D98B,#C9A043,#8E1510);
  --vang-khoi: linear-gradient(180deg,#C42A21,#9A1612);
  --chu-vang-sang: linear-gradient(180deg,#C42A21,#8E1510);
  --hv-tram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%23A3201A' stroke-opacity='.075' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M10 30c-5 0-7-6-3-8 3-2 6 0 6 2 0-6 6-9 10-6 4 2 3 8-1 8-3 0-3-4 0-4'/%3E%3Cpath d='M54 74c-5 0-7-6-3-8 3-2 6 0 6 2 0-6 6-9 10-6 4 2 3 8-1 8-3 0-3-4 0-4'/%3E%3Cpath d='M64 20h10M69 15v10M20 64h10M25 59v10' stroke-opacity='.05'/%3E%3C/g%3E%3C/svg%3E");
  --hv-hoi-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13H24M4 13V1H20V10H9V5H15' fill='none' stroke='%23A3201A' stroke-width='1.2'/%3E%3C/svg%3E");
  --nen-cung: radial-gradient(1100px 500px at 10% -10%, rgba(196,42,33,.07), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(201,160,67,.10), transparent 60%),
              var(--hv-tram), linear-gradient(180deg,#FCF6EA,#F8EDD8);
  --nen-lua: radial-gradient(900px 400px at 50% 0%, rgba(201,160,67,.16), transparent 70%), var(--hv-tram), #F4E2C2;
  --shadow: 0 1px 2px rgba(90,20,10,.06), 0 12px 32px rgba(120,40,20,.10);
  --shadow-lon: 0 2px 6px rgba(90,20,10,.10), 0 30px 80px rgba(120,40,20,.22);
  --shadow-gold: 0 6px 18px rgba(154,22,18,.28);
  --font-tieude: "Noto Serif", "Playfair Display", Georgia, serif;
  --vien-nut: #7E100C; --vong-focus: rgba(196,42,33,.25); --nen-soc: rgba(196,42,33,.05);
  --bs-primary: #A3201A; --bs-primary-rgb: 163,32,26; --primary: #A3201A; --bs-body-bg: #FBF3E4; --bs-body-color: #4B2D24;
}
/* Đầu trang đỏ thắm, hoa văn song cửa vàng */
html[data-chude="trunghoa"] .thanh-tren { background: #5C0A07; }
html[data-chude="trunghoa"] .dau-trang,
html[data-chude="trunghoa"] body.myadmin .dau-trang {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M0 14H8V6H20V14H28M14 0V6M14 20V28M8 14V22H20V14' fill='none' stroke='%23F3D98B' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#9E1913,#7A100C);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-chude="trunghoa"] .dau-trang::after { height: 3px; opacity: 1; background: linear-gradient(90deg,#8E6A17,#E8C268,#FBE7A9,#E8C268,#8E6A17); }
html[data-chude="trunghoa"] .logo-trang,
html[data-chude="trunghoa"] .logo-trang:hover,
html[data-chude="trunghoa"] .logo-trang .ten { color: #F6D98A; }
html[data-chude="trunghoa"] .logo-trang .phu { color: #E9C37A; }
html[data-chude="trunghoa"] .menu-rong > li > a,
html[data-chude="trunghoa"] .menu-rong > li > button,
html[data-chude="trunghoa"] .qt-menu > li > a { color: #F7E2B0; }
html[data-chude="trunghoa"] .menu-rong > li > a:hover,
html[data-chude="trunghoa"] .menu-rong > li > button:hover,
html[data-chude="trunghoa"] .menu-rong > li:focus-within > button,
html[data-chude="trunghoa"] .qt-menu > li > a:hover,
html[data-chude="trunghoa"] .qt-menu > li > a.dang-o { background: rgba(255,226,160,.13); color: #FFF6DA; }
html[data-chude="trunghoa"] .menu-rong > li > a.dang-o,
html[data-chude="trunghoa"] .menu-rong > li > button.dang-o { color: #FFE7A6; }
html[data-chude="trunghoa"] .menu-rong > li > a.dang-o::after,
html[data-chude="trunghoa"] .menu-rong > li > button.dang-o::after { background: #F3D98B; }
html[data-chude="trunghoa"] .qt-menu > li > a i, html[data-chude="trunghoa"] .qt-menu .dropdown-toggle::after { color: #F3D98B; border-top-color: #F3D98B; }
html[data-chude="trunghoa"] .qt-nhan { background: rgba(255,226,160,.12); border-color: rgba(243,217,139,.45); color: #F6D98A; }
html[data-chude="trunghoa"] .dau-trang .nut-vang {
  background: linear-gradient(180deg,#FBE7A9,#E2BA5A 55%,#C99A35) !important; color: #5A0E0A !important;
  border-color: #FBE7A9 !important; box-shadow: 0 4px 14px rgba(40,0,0,.35);
}
html[data-chude="trunghoa"] .dau-trang .nut-vien,
html[data-chude="trunghoa"] .dau-trang .nut-nho,
html[data-chude="trunghoa"] .dau-trang .nut-tk,
html[data-chude="trunghoa"] .dau-trang .nut-dn-hep { color: #F7E2B0 !important; border-color: rgba(243,217,139,.5) !important; background: transparent; }
html[data-chude="trunghoa"] .dau-trang .nut-vien:hover,
html[data-chude="trunghoa"] .dau-trang .nut-nho:hover,
html[data-chude="trunghoa"] .dau-trang .nut-tk:hover { background: rgba(255,226,160,.13) !important; color: #FFF6DA !important; }
html[data-chude="trunghoa"] .menu-hep > summary,
html[data-chude="trunghoa"] .qt-nut-menu { background: rgba(255,255,255,.06) !important; border-color: rgba(243,217,139,.5) !important; color: #F6D98A !important; }
/* Thẻ: khung viền kép như tranh lồng khung */
html[data-chude="trunghoa"] .the,
html[data-chude="trunghoa"] body.myadmin .noi-dung-qt > .container-xxl {
  border-color: #D9B66E;
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(184,134,43,.32), var(--shadow);
}
html[data-chude="trunghoa"] .cc-o { border-color: #E3C795; }
html[data-chude="trunghoa"] a.cc-o:hover, html[data-chude="trunghoa"] .cc-o-qt:hover { border-color: #C9A043; }
html[data-chude="trunghoa"] .cc-o-icon,
html[data-chude="trunghoa"] .menu-con .bieu-tuong { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #FFF3DC, #F6DFB5); border-color: #D9B66E; }
html[data-chude="trunghoa"] .cc-dau { border-bottom-color: rgba(184,134,43,.4); }
html[data-chude="trunghoa"] .duong-vang { opacity: .9; }
/* Chân trang: dải hồi văn đỏ ở mép trên */
html[data-chude="trunghoa"] .chan-trang { border-top: 3px solid #9A1612; box-shadow: inset 0 4px 0 #E8C268; }
html[data-chude="trunghoa"] .chan-trang::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 14px; opacity: .35; background: var(--hv-hoi-van) repeat-x left center;
}


/* =====================================================================
   2. SỨ THANH HOA: trắng sứ, xanh cobalt
   ===================================================================== */
html[data-chude="thanhhoa"] {
  --bg: #F7F9FC; --surface: #FFFFFF; --sunk: #EEF3FA; --lua: #E6EEF8;
  --line: #D3DEEC; --gold-line: rgba(31,74,140,.32);
  --gold: #2A5CA8; --gold-chu: #1D4A8C; --gold-bright: #6E9BE0; --gold-soft: #EAF1FB;
  --on-gold: #FFFFFF; --son: #B3261E; --deep: #0F2140; --text: #2E3B52;
  --muted: #5D6B82; --faint: #A3AFC2; --brand-brown: #173E7A;
  --vang-anh-kim: linear-gradient(90deg,#173E7A,#5B8BD6,#C3D6F3,#5B8BD6,#173E7A);
  --vang-khoi: linear-gradient(180deg,#3069BA,#1D4A8C);
  --chu-vang-sang: linear-gradient(180deg,#2F64B3,#173E7A);
  --hv-tram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%231D4A8C' stroke-opacity='.075' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12 34c-6 0-8-7-3-9 3-2 7 0 7 3 0-7 7-10 11-7 5 3 3 9-1 9-3 0-3-4 0-4'/%3E%3Cpath d='M60 82c-6 0-8-7-3-9 3-2 7 0 7 3 0-7 7-10 11-7 5 3 3 9-1 9-3 0-3-4 0-4'/%3E%3Ccircle cx='74' cy='24' r='5'/%3E%3Ccircle cx='74' cy='24' r='1.6'/%3E%3Ccircle cx='24' cy='72' r='5'/%3E%3Ccircle cx='24' cy='72' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --hv-hoi-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13H24M4 13V1H20V10H9V5H15' fill='none' stroke='%231D4A8C' stroke-width='1.2'/%3E%3C/svg%3E");
  --nen-cung: radial-gradient(1100px 500px at 10% -10%, rgba(47,100,179,.08), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(91,139,214,.07), transparent 60%),
              var(--hv-tram), linear-gradient(180deg,#FAFCFF,#EFF4FB);
  --nen-lua: radial-gradient(900px 400px at 50% 0%, rgba(91,139,214,.14), transparent 70%), var(--hv-tram), #E6EEF8;
  --shadow: 0 1px 2px rgba(15,33,64,.05), 0 12px 32px rgba(29,74,140,.09);
  --shadow-lon: 0 2px 6px rgba(15,33,64,.08), 0 30px 80px rgba(29,74,140,.20);
  --shadow-gold: 0 6px 18px rgba(29,74,140,.26);
  --font-tieude: "Noto Serif", "Playfair Display", Georgia, serif;
  --vien-nut: #173E7A; --vong-focus: rgba(47,100,179,.22); --nen-soc: rgba(47,100,179,.05);
  --bs-primary: #1D4A8C; --bs-primary-rgb: 29,74,140; --primary: #1D4A8C; --bs-body-bg: #F7F9FC; --bs-body-color: #2E3B52;
}
html[data-chude="thanhhoa"] .thanh-tren { background: #0F2140; }
html[data-chude="thanhhoa"] .dau-trang,
html[data-chude="thanhhoa"] body.myadmin .dau-trang { background: rgba(255,255,255,.92); }
html[data-chude="thanhhoa"] .dau-trang::after { height: 2px; opacity: .8; }
html[data-chude="thanhhoa"] .the,
html[data-chude="thanhhoa"] body.myadmin .noi-dung-qt > .container-xxl {
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(29,74,140,.16), var(--shadow);
}
html[data-chude="thanhhoa"] .cc-o-icon,
html[data-chude="thanhhoa"] .menu-con .bieu-tuong { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #FFFFFF, #E3ECF9); }
html[data-chude="thanhhoa"] .chan-trang { border-top: 3px solid #1D4A8C; }
html[data-chude="thanhhoa"] .chan-trang::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 14px; opacity: .3; background: var(--hv-hoi-van) repeat-x left center;
}


/* =====================================================================
   3. THỦY MẶC: giấy xuyến chỉ, mực tàu, dấu triện đỏ
   ===================================================================== */
html[data-chude="thuymac"] {
  --bg: #F6F3EC; --surface: #FDFCF8; --sunk: #EFEBE1; --lua: #ECE6D9;
  --line: #DAD3C4; --gold-line: rgba(40,36,30,.26);
  --gold: #3A352E; --gold-chu: #A8261D; --gold-bright: #8A8378; --gold-soft: #F1EDE3;
  --on-gold: #F7F3EA; --son: #B0281F; --deep: #141210; --text: #38342E;
  --muted: #6E685E; --faint: #ADA697; --brand-brown: #141210;
  --vang-anh-kim: linear-gradient(90deg,rgba(43,39,34,0),rgba(43,39,34,.85) 18%,rgba(43,39,34,.85) 82%,rgba(43,39,34,0));
  --vang-khoi: linear-gradient(180deg,#3A352E,#16130F);
  --chu-vang-sang: linear-gradient(180deg,#3A352E,#0E0C0A);
  --hv-tram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='140'%3E%3Cpath d='M0 120 Q40 70 70 96 T130 82 Q160 50 190 88 T260 70 Q300 40 360 100' fill='none' stroke='%23141210' stroke-opacity='.045' stroke-width='14' stroke-linecap='round'/%3E%3Cpath d='M20 132 Q70 100 110 120 T210 112 Q260 96 340 126' fill='none' stroke='%23141210' stroke-opacity='.03' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E");
  --hv-hoi-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13H24M4 13V1H20V10H9V5H15' fill='none' stroke='%23141210' stroke-width='1.1'/%3E%3C/svg%3E");
  --nen-cung: radial-gradient(1000px 520px at 85% -10%, rgba(20,18,16,.05), transparent 65%),
              var(--hv-tram), linear-gradient(180deg,#F8F6F0,#F0ECE2);
  --nen-lua: var(--hv-tram), #ECE6D9;
  --shadow: 0 1px 2px rgba(20,18,16,.05), 0 10px 28px rgba(20,18,16,.07);
  --shadow-lon: 0 2px 6px rgba(20,18,16,.08), 0 30px 80px rgba(20,18,16,.18);
  --shadow-gold: 0 6px 16px rgba(20,18,16,.22);
  --font-tieude: "Noto Serif", "Playfair Display", Georgia, serif;
  --vien-nut: #0E0C0A; --vong-focus: rgba(20,18,16,.18); --nen-soc: rgba(20,18,16,.035);
  --bs-primary: #2B2722; --bs-primary-rgb: 43,39,34; --primary: #2B2722; --bs-body-bg: #F6F3EC; --bs-body-color: #38342E;
}
html[data-chude="thuymac"] .thanh-tren { background: #141210; color: #D9D2C3; }
html[data-chude="thuymac"] .thanh-tren a, html[data-chude="thuymac"] .thanh-tren i { color: #E8E1D2; }
html[data-chude="thuymac"] .dau-trang,
html[data-chude="thuymac"] body.myadmin .dau-trang { background: rgba(251,250,246,.92); }
html[data-chude="thuymac"] .dau-trang::after { opacity: .5; }
html[data-chude="thuymac"] .menu-rong > li > a.dang-o::after,
html[data-chude="thuymac"] .menu-rong > li > button.dang-o::after { background: var(--son); }
html[data-chude="thuymac"] .the, html[data-chude="thuymac"] .cc-o, html[data-chude="thuymac"] .cc-the { border-radius: 6px; }
html[data-chude="thuymac"] body.myadmin .noi-dung-qt > .container-xxl { border-radius: 8px; }
/* Biểu tượng như dấu triện đỏ */
html[data-chude="thuymac"] .cc-o-icon,
html[data-chude="thuymac"] .menu-con .bieu-tuong { border-radius: 6px; background: #FFFDF8; color: var(--son); border: 1.5px solid rgba(176,40,31,.75); }
html[data-chude="thuymac"] .menu-hep .the-menu .cc-svg { color: var(--son); }
html[data-chude="thuymac"] .dau-trang .nut-vang,
html[data-chude="thuymac"] .btn-primary { border-radius: 6px; }
html[data-chude="thuymac"] .chan-trang { border-top: 1px solid rgba(20,18,16,.35); }


/* =====================================================================
   4. NGỌC BÍCH: xanh ngọc phối vàng kim
   ===================================================================== */
html[data-chude="ngocbich"] {
  --bg: #F4F8F5; --surface: #FFFFFF; --sunk: #EAF2EC; --lua: #E2EEE5;
  --line: #CFE0D4; --gold-line: rgba(184,144,47,.45);
  --gold: #B8902F; --gold-chu: #1F6B4E; --gold-bright: #D9B44A; --gold-soft: #E7F3EC;
  --on-gold: #FFFFFF; --son: #A8321F; --deep: #0F2A20; --text: #2F4038;
  --muted: #5E7268; --faint: #A6B8AE; --brand-brown: #17573F;
  --vang-anh-kim: linear-gradient(90deg,#17573F,#D9B44A,#F3D98B,#D9B44A,#17573F);
  --vang-khoi: linear-gradient(180deg,#2A8463,#17573F);
  --chu-vang-sang: linear-gradient(180deg,#2A8463,#124A35);
  --hv-tram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 3L37 20L20 37L3 20Z' fill='none' stroke='%231F6B4E' stroke-opacity='.08'/%3E%3Ccircle cx='20' cy='20' r='3' fill='none' stroke='%23B8902F' stroke-opacity='.12'/%3E%3C/svg%3E");
  --hv-hoi-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13H24M4 13V1H20V10H9V5H15' fill='none' stroke='%231F6B4E' stroke-width='1.2'/%3E%3C/svg%3E");
  --nen-cung: radial-gradient(1100px 500px at 10% -10%, rgba(42,132,99,.09), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(217,180,74,.08), transparent 60%),
              var(--hv-tram), linear-gradient(180deg,#F8FBF9,#EDF4EF);
  --nen-lua: radial-gradient(900px 400px at 50% 0%, rgba(217,180,74,.13), transparent 70%), var(--hv-tram), #E2EEE5;
  --shadow: 0 1px 2px rgba(15,42,32,.05), 0 12px 32px rgba(23,87,63,.09);
  --shadow-lon: 0 2px 6px rgba(15,42,32,.08), 0 30px 80px rgba(23,87,63,.20);
  --shadow-gold: 0 6px 18px rgba(23,87,63,.26);
  --font-tieude: "Noto Serif", "Playfair Display", Georgia, serif;
  --vien-nut: #124A35; --vong-focus: rgba(42,132,99,.22); --nen-soc: rgba(42,132,99,.05);
  --bs-primary: #1F6B4E; --bs-primary-rgb: 31,107,78; --primary: #1F6B4E; --bs-body-bg: #F4F8F5; --bs-body-color: #2F4038;
}
html[data-chude="ngocbich"] .thanh-tren { background: #0F2A20; }
html[data-chude="ngocbich"] .dau-trang,
html[data-chude="ngocbich"] body.myadmin .dau-trang { background: rgba(255,255,255,.92); }
html[data-chude="ngocbich"] .the,
html[data-chude="ngocbich"] body.myadmin .noi-dung-qt > .container-xxl {
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px rgba(184,144,47,.25), var(--shadow);
}
html[data-chude="ngocbich"] .cc-o-icon,
html[data-chude="ngocbich"] .menu-con .bieu-tuong { border-radius: 50%; background: radial-gradient(circle at 50% 35%, #FFFFFF, #DCEFE4); }
html[data-chude="ngocbich"] .chan-trang { border-top: 3px solid #17573F; box-shadow: inset 0 4px 0 #D9B44A; }


/* =====================================================================
   5. SƠN THỦY THANH MẶC: giấy ngà, núi sương thủy mặc, mực lục thẫm,
      chữ son đỏ (ảnh: static/img/chu-de/sonthuy/*.webp). Trang chủ có bố cục
      riêng (templates/home.html, chu_de.bo_cuc == 'son_thuy').
   ===================================================================== */
html[data-chude="sonthuy"] {
  --bg: #FAF5EB; --surface: #FDFAF3; --sunk: #F4ECDC; --lua: #F1E7D2;
  --line: #DCCBA6; --gold-line: rgba(201,174,114,.6);
  --gold: #1F4A3D; --gold-chu: #7B1E1E; --gold-bright: #C9AE72; --gold-soft: #EEF5EA;
  --on-gold: #FBF7EE; --son: #9B2C2C; --deep: #1F3A30; --text: #3E372B;
  --muted: #5A5142; --faint: #A89E8A; --brand-brown: #1F3A30;
  --vang-anh-kim: linear-gradient(90deg,rgba(201,174,114,0),#C9AE72 18%,#B48A35 50%,#C9AE72 82%,rgba(201,174,114,0));
  --vang-khoi: linear-gradient(180deg,#26584A,#1F4A3D);
  --chu-vang-sang: linear-gradient(180deg,#26584A,#1F3A30);
  --hv-tram: none;
  --hv-hoi-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13H24M4 13V1H20V10H9V5H15' fill='none' stroke='%23B48A35' stroke-width='1.2'/%3E%3C/svg%3E");
  --nen-cung: url("/static/img/chu-de/sonthuy/nen.webp") center / cover no-repeat, #FAF5EB;
  --nen-lua: linear-gradient(180deg, rgba(241,231,210,.92), rgba(234,223,198,.96));
  --shadow: 0 1px 2px rgba(74,58,28,.05), 0 6px 22px rgba(74,58,28,.10);
  --shadow-lon: 0 2px 6px rgba(74,58,28,.08), 0 24px 60px rgba(74,58,28,.18);
  --shadow-gold: 0 6px 16px rgba(31,74,61,.24);
  --font-tieude: "Noto Serif", "Playfair Display", Georgia, serif;
  --vien-nut: #173A30; --vong-focus: rgba(31,74,61,.18); --nen-soc: rgba(31,74,61,.045);
  --bs-primary: #1F4A3D; --bs-primary-rgb: 31,74,61; --primary: #1F4A3D; --bs-body-bg: #FAF5EB; --bs-body-color: #3E372B;
}
html[data-chude="sonthuy"] body { background-attachment: fixed; }
html[data-chude="sonthuy"] .thanh-tren { background: #1F3A30; color: #E9E0CB; }
html[data-chude="sonthuy"] .thanh-tren a { color: #F1E3BE; }
html[data-chude="sonthuy"] .thanh-tren i, html[data-chude="sonthuy"] .thanh-tren .ngay span + span::before { color: #C9AE72; }
html[data-chude="sonthuy"] .dau-trang,
html[data-chude="sonthuy"] body.myadmin .dau-trang { background: rgba(250,245,235,.88); }
html[data-chude="sonthuy"] .dau-trang::after { height: 1px; opacity: 1; background: rgba(201,174,114,.6); }
html[data-chude="sonthuy"] .logo-trang .ten { color: #1F3A30; }
html[data-chude="sonthuy"] .logo-trang .phu { color: #7C7262; letter-spacing: .08em; }
html[data-chude="sonthuy"] .menu-rong > li > a,
html[data-chude="sonthuy"] .menu-rong > li > button { color: #3A3A30; }
html[data-chude="sonthuy"] .menu-rong > li > a:hover,
html[data-chude="sonthuy"] .menu-rong > li > button:hover,
html[data-chude="sonthuy"] .menu-rong > li:focus-within > button { background: rgba(31,74,61,.07); color: #7B1E1E; }
html[data-chude="sonthuy"] .menu-rong > li > a.dang-o,
html[data-chude="sonthuy"] .menu-rong > li > button.dang-o { color: #1F4A3D; }
html[data-chude="sonthuy"] .menu-rong > li > a.dang-o::after,
html[data-chude="sonthuy"] .menu-rong > li > button.dang-o::after { background: #7B1E1E; }
/* Nhãn nhỏ kiểu "LỊCH VIỆT · CHỌN NGÀY LÀNH": chữ son, giãn chữ, phông có chân */
html[data-chude="sonthuy"] .nhan-muc { color: #7B1E1E; font-family: var(--font-tieude); font-weight: 700; letter-spacing: .2em; }
html[data-chude="sonthuy"] h1, html[data-chude="sonthuy"] h2, html[data-chude="sonthuy"] h3 { color: #1F3A30; font-weight: 700; }
/* Thẻ giấy mờ trên nền tranh */
html[data-chude="sonthuy"] .the,
html[data-chude="sonthuy"] body.myadmin .noi-dung-qt > .container-xxl {
  background: rgba(253,250,243,.93); border-color: #DCCBA6; border-radius: 16px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
html[data-chude="sonthuy"] .cc-o { background: rgba(255,253,248,.95); border-color: #DCCBA6; border-radius: 12px; }
html[data-chude="sonthuy"] a.cc-o:hover,
html[data-chude="sonthuy"] .cc-o-qt:hover { border-color: #1F4A3D; background: #F4F8F1; box-shadow: 0 0 0 3px rgba(31,74,61,.10); }
html[data-chude="sonthuy"] .cc-o-icon,
html[data-chude="sonthuy"] .menu-con .bieu-tuong { background: #FFFDF8; border-color: #DCCBA6; color: #7A3F00; border-radius: 10px; }
html[data-chude="sonthuy"] .menu-hep .the-menu .cc-svg, html[data-chude="sonthuy"] .menu-tk a i, html[data-chude="sonthuy"] .menu-hep .the-menu i { color: #7A3F00; }
html[data-chude="sonthuy"] .menu-con, html[data-chude="sonthuy"] .menu-tk, html[data-chude="sonthuy"] .dropdown-menu,
html[data-chude="sonthuy"] .menu-hep .the-menu { background: #FDFAF3; border-color: #DCCBA6; }
/* Nút: lục thẫm đặc, chữ ngà */
html[data-chude="sonthuy"] .btn-primary,
html[data-chude="sonthuy"] .nut-vang,
html[data-chude="sonthuy"] .bamtracuu:not(.tracuu2 .bamtracuu),
html[data-chude="sonthuy"] .back-to-top { border-radius: 10px; }
html[data-chude="sonthuy"] .btn-primary:hover, html[data-chude="sonthuy"] .nut-vang:hover { background: #173A30 !important; filter: none; }
html[data-chude="sonthuy"] .btn-outline-primary, html[data-chude="sonthuy"] .nut-vien { border-color: #DCCBA6 !important; color: #1F3A30 !important; }
html[data-chude="sonthuy"] .btn-outline-primary:hover, html[data-chude="sonthuy"] .nut-vien:hover { border-color: #1F4A3D !important; background: #EEF5EA !important; }
html[data-chude="sonthuy"] .menu-hep > summary { border-color: #D9CBAA; background: #FBF7EE; color: #6B5A35; border-radius: 50%; }
html[data-chude="sonthuy"] .form-control, html[data-chude="sonthuy"] .form-select { border-color: #DCCBA6; background-color: #FFFDF8; }
html[data-chude="sonthuy"] .form-control:focus, html[data-chude="sonthuy"] .form-select:focus { border-color: #1F4A3D; }
html[data-chude="sonthuy"] .table > thead { background: #F1E7D2; }
/* Chân trang */
html[data-chude="sonthuy"] .chan-trang { border-top: 1px solid rgba(201,174,114,.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html[data-chude="sonthuy"] .chan-dau .khau-hieu { color: #1F3A30; }

/* Dòng tiêu đề công cụ: chữ có chân lớn, dải trúc mờ bên phải */
html[data-chude="sonthuy"] body:not(.myadmin) .cc-dau { position: relative; isolation: isolate; border-bottom-color: rgba(201,174,114,.6); }
html[data-chude="sonthuy"] body:not(.myadmin) .cc-dau::after {
  content: ""; position: absolute; top: -10px; right: 0; bottom: 0; width: min(46%, 420px); z-index: -1; pointer-events: none;
  background: url("/static/img/chu-de/sonthuy/dai-truc.webp") right center / auto 140% no-repeat; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-composite: intersect;
}
html[data-chude="sonthuy"] .cc-dau-ten { font-family: var(--font-tieude); font-weight: 700; color: #1F3A30; font-size: clamp(22px, 2.4vw, 28px); }
html[data-chude="sonthuy"] .cc-dau-icon { background: #FFFDF8; border-color: #DCCBA6; color: #7A3F00; }
/* Thẻ nội dung: dải núi sương ở chân thẻ */
html[data-chude="sonthuy"] body:not(.myadmin) .the { position: relative; isolation: isolate; padding-bottom: 84px; }
html[data-chude="sonthuy"] body:not(.myadmin) .the::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  border-radius: 0 0 16px 16px; background: url("/static/img/chu-de/sonthuy/dai-nui.webp") right bottom / cover no-repeat;
  mix-blend-mode: multiply; opacity: .9; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%); mask-image: linear-gradient(to bottom, transparent, #000 60%);
}
/* Chân trang: dải núi bên phải */
html[data-chude="sonthuy"] .chan-trang { isolation: isolate; }
html[data-chude="sonthuy"] .chan-trang::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: min(60%, 640px); height: 200px; z-index: -1; pointer-events: none;
  background: url("/static/img/chu-de/sonthuy/dai-nui.webp") right bottom / cover no-repeat; mix-blend-mode: multiply; opacity: .85;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%), linear-gradient(to bottom, transparent, #000 45%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 40%), linear-gradient(to bottom, transparent, #000 45%); mask-composite: intersect;
}

/* ---------- Trang chủ: khối mở đầu ---------- */
.st-hero { position: relative; overflow: hidden; }
.st-hero-anh { position: absolute; inset: 0; }
.st-hero-anh img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.st-hero-mo { position: absolute; inset: 0; background: rgba(250,245,235,.74); }
.st-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to top, #FAF5EB, rgba(250,245,235,0)); pointer-events: none; }
@media (min-width: 768px) {
  .st-hero-anh { left: 30%; }
  .st-hero-anh img { object-position: right bottom; }
  .st-hero-mo { background: linear-gradient(to right, rgba(250,245,235,.95) 0%, rgba(250,245,235,.9) 30%, rgba(250,245,235,.5) 48%, rgba(250,245,235,0) 66%); }
}
.st-hero-trong { position: relative; z-index: 1; padding-top: 24px; }
@media (min-width: 768px) { .st-hero-trong { padding-top: 32px; } }
.st-duong-dan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #5A5142; }
.st-duong-dan a { color: #5A5142; } .st-duong-dan a:hover { color: #7B1E1E; text-decoration: underline; }
.st-nhan { margin: 20px 0 0; font-family: "Noto Serif", Georgia, serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: #7B1E1E; }
html[data-chude] .st-tieu-de { margin: 4px 0 0; max-width: 48rem; font-family: "Noto Serif", Georgia, serif; font-weight: 700; font-size: clamp(38px, 5.2vw, 54px); line-height: 1.08; color: #1F3A30; letter-spacing: -.005em; }
.st-phu { margin: 8px 0 0; font-family: "Noto Serif", Georgia, serif; font-size: clamp(18px, 2vw, 22px); color: #3E372B; }
.st-mota { margin: 12px 0 0; max-width: 540px; font-size: 15px; line-height: 1.7; color: #3E372B; }
.st-tab { display: flex; gap: 4px; overflow-x: auto; margin-top: 30px; border-bottom: 1px solid rgba(201,174,114,.6); scrollbar-width: none; }
.st-tab a { flex-shrink: 0; padding: 10px 20px; border-radius: 8px 8px 0 0; font-family: "Noto Serif", Georgia, serif; font-size: 15px; font-weight: 600; color: #1F3A30; }
.st-tab a:hover { background: rgba(31,74,61,.1); color: #1F3A30; }
.st-tab a.dang-o { background: #1F4A3D; color: #FBF7EE; font-weight: 700; }
@media (max-width: 575.98px) { .st-tab a { padding: 9px 13px; font-size: 14px; } }

/* ---------- Trang chủ: khung công cụ có hoa sen ---------- */
.st-khung {
  position: relative; overflow: hidden; margin-top: 22px; padding: 24px; border-radius: 16px;
  border: 1px solid #DCCBA6; background: rgba(253,250,243,.92); box-shadow: 0 6px 22px rgba(74,58,28,.10);
}
.st-sen { position: absolute; right: -24px; top: -16px; height: 118%; width: auto; mix-blend-mode: multiply; pointer-events: none; display: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%); }
html[data-chude] .st-khung-tieu-de { position: relative; margin: 0 0 16px; font-family: "Noto Serif", Georgia, serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); color: #1F3A30; }
.st-khung .loi-moi, .st-luoi { position: relative; }
@media (min-width: 1200px) { .st-sen { display: block; } .st-khung .loi-moi, .st-luoi { margin-right: 176px; } }
@media (max-width: 575.98px) { .st-khung { padding: 16px 12px; } }
/* Ô công cụ dạng ô vuông như ô chọn việc: icon trên, tên dưới */
.st-luoi .cc-o {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 104px; padding: 14px 8px 12px; text-align: center;
  background: #FFFDF8; border: 1px solid #DCCBA6; border-radius: 12px; box-shadow: none; color: #1F3A30;
}
.st-luoi a.cc-o:hover { border-color: #1F4A3D; background: #EEF5EA; box-shadow: 0 0 0 3px rgba(31,74,61,.12); transform: none; color: #1F4A3D; }
.st-luoi .cc-o-icon { width: auto; height: auto; background: none !important; border: 0 !important; border-radius: 0; color: #7A3F00; font-size: 32px; }
.st-luoi .cc-o-ten { font-family: "Noto Serif", Georgia, serif; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.st-luoi .cc-o.bi-khoa { padding: 14px 8px 12px; }
.st-luoi .cc-o.bi-khoa .cc-o-icon { color: #A08A63; }
.st-luoi .cc-o.bi-khoa .cc-o-ten { color: #3E372B; }
@media (min-width: 992px) { .st-luoi .row-cols-md-4 > * { flex: 0 0 auto; width: 20%; } }
@media (max-width: 575.98px) { .st-luoi .cc-o { min-height: 92px; } .st-luoi .cc-o-icon { font-size: 28px; } }
