/* Lục Hào theo luận sâu v02 (39 Xu), 17/11/2026. Trang miễn phí giữ nguyên bàn an quẻ cũ, thêm lời mời, thẻ 39 Xu, thanh dính đáy.
   Bài đã mở là 6 trang giấy A4 trên màn hình và khi in. Màu theo bảng quy chuẩn: nút chính #BB4218, tiêu đề #79200F, vàng đồng #C89B3C,
   chữ nhỏ #8A6620, nền thẻ #FDFBF6, nền trang #F8F4EC, thanh đáy #45140B, chữ chính #2B2118; nạp giáp tô theo ngũ hành. */
.lh-serif,.lh-gls h2,.lh-bai h2,.lh-to h3,.lh-tam h2{font-family:Spectral,Georgia,serif}
/* nút dùng chung */
.lh-nut,.lh-dam{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 22px;border:0;border-radius:999px;background:#BB4218;color:#fff!important;font-family:inherit;font-weight:700;font-size:14.5px;line-height:1.2;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px rgba(187,66,24,.28)}
.lh-nut:hover,.lh-dam:hover{background:#A63A14}
.lh-dam{min-height:52px;font-size:1.02rem}
.lh-dam:disabled{opacity:.6;cursor:wait}
.lh-dam s{opacity:.7;font-weight:400}
.lh-rong{display:flex;width:100%;box-sizing:border-box;margin-top:12px}
.lh-vien-sang{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 20px;border:1px solid #D9C59A;border-radius:999px;background:#FFFAF0;color:#5A4A36;font-family:inherit;font-weight:600;font-size:14px;line-height:1.2;text-decoration:none;cursor:pointer}
.lh-vien-sang:hover{border-color:#C89B3C}
.lh-nho{margin:8px 0 0;font-size:13.5px;line-height:1.55;color:#6D5D47}
.lh-kg{white-space:nowrap}

/* A4: lời mời ngay dưới thước điểm */
.lh-moi{margin:14px 0 4px;padding:14px 16px;border:1px solid #C89B3C;border-radius:12px;background:linear-gradient(180deg,#FDFBF6,#F8F4EC);text-align:center}
.lh-moi p{margin:0 0 4px;color:#79200F;font-weight:700;font-size:15px;line-height:1.45}
.lh-moi small{display:block;margin-bottom:10px;color:#8A6620;font-size:12.5px}
.lh-moi-xong{border:0;background:none;padding:6px 0}
.lh-da-mo{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:#2E7D4F;color:#fff!important;font-weight:700;font-size:14px;text-decoration:none}

/* A5: nhãn viên khi Hỗ và Biến cùng một quẻ */
.lh-gop{display:inline-block;margin-left:8px;padding:2px 10px;border:1px solid #C89B3C;border-radius:999px;color:#8A6620;font-family:inherit;font-weight:600;font-size:12px;line-height:1.5;vertical-align:middle}

/* mục gập: Lưu ý, giới thiệu */
.lh-gon{margin-top:22px}
.lh-gon>summary{cursor:pointer;list-style:none;min-height:44px;box-sizing:border-box;padding:12px 18px;border:1px solid #D9C59A;border-radius:12px;background:#FFFAF0;color:#79200F;font-weight:600;line-height:1.45}
.lh-gon>summary::-webkit-details-marker{display:none}
.lh-gon>summary::after{content:" ▾"}
.lh-gon[open]>summary::after{content:" ▴"}
.lh-hop{margin-top:12px;padding:14px 18px;border:1px solid #E3CF9F;border-radius:14px;background:#FDFBF6;color:#2B2118;font-size:.95rem;line-height:1.7}
.lh-hop p{margin:0 0 8px}
.lh-gt{margin:22px 0}
.lh-gt>summary{display:block}

/* A8: thẻ 39 Xu */
.lh-gls{position:relative;margin-top:22px;padding:22px 20px;border:1px solid #C89B3C;border-radius:14px;background:linear-gradient(#FDFBF6,#F8F4EC);color:#2B2118;text-align:left;box-shadow:0 10px 30px rgba(69,20,11,.25);scroll-margin-top:80px}
.lh-n{margin:0;font:700 12px/1.3 "Be Vietnam Pro",sans-serif;letter-spacing:.1em;color:#8A6620;text-transform:uppercase}
.lh-gls h2{margin:8px 0 8px;font-size:clamp(1.3rem,3vw,1.65rem);line-height:1.3;color:#79200F;text-shadow:none}
.lh-gls-mo{margin:0 0 10px;line-height:1.65}
.lh-hoi{margin:10px 0 6px;padding:8px 12px;border-left:3px solid #C89B3C;border-radius:6px;background:#F8F4EC;color:#2B2118;font-style:italic;font-size:14.5px;line-height:1.45}
.lh-hoi small{display:block;font-style:normal;font-size:11.5px;letter-spacing:.06em;color:#8A6620;font-weight:700;text-transform:uppercase}
.lh-hua{list-style:none;margin:0 0 14px;padding:0;font-size:.97rem}
.lh-hua li{padding:7px 0;border-top:1px dashed #E3CF9F;color:#5A4A36}
.lh-qua{margin:10px 0 0;text-align:center;font-size:13.5px;color:#2B2118}
.lh-qua a{color:#79200F;font-weight:700;text-decoration:underline}
.lh-qua b{color:#BB4218}
.lh-nho2{color:#8A6620;font-size:12.5px}

/* khối chia sẻ, dòng dịch vụ, lập quẻ mới */
.lh-chia{margin-top:8px}
.lh-lap-moi{margin:18px 0 6px;text-align:center}
.lh-lap-moi p{margin:0 0 8px;color:#EFE6D4;font-size:14px}
.lh-vien{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid #C89B3C;border-radius:999px;background:transparent;color:#E6C883!important;font-weight:600;text-decoration:none}
.lh-vien:hover{background:rgba(200,155,60,.15)}
.lh-neo{display:block;position:relative;top:-90px}

/* A9: thanh 39 Xu dính đáy màn hình */
.lh-day{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #C89B3C;background:#45140B;transform:translateY(110%);visibility:hidden;transition:transform .3s,visibility .3s}
.lh-day.hien{transform:none;visibility:visible}
.lh-day span{flex:1;max-width:420px;overflow:hidden;color:#F8F4EC;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.lh-day .lh-nut{min-height:40px;padding:0 16px;white-space:nowrap}
#chat-noi{transition:transform .3s}
body.lh-co-day #chat-noi{transform:translateY(-68px)}

.lh-hang{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.lh-hang>*{flex:1 1 0;white-space:nowrap}
.lh-tiep{margin:14px 0 0;padding:14px 16px;border:1px solid #C89B3C;border-radius:12px;background:#F8F4EC}
.lh-tiep p{margin:0 0 8px;font-size:14.5px;line-height:1.55}
.lh-nut-toi{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:#45140B;color:#E6C883!important;font-weight:700;font-size:13.5px;text-decoration:none}
.lh-chan{margin:12px 0 0;text-align:center;font-size:12.5px;color:#6D5D47}

/* ===== khung mở khoá (luận sâu v02 mục A) ===== */
.lh-tam{width:min(460px,calc(100vw - 24px));max-height:calc(100vh - 40px);box-sizing:border-box;padding:26px 24px 22px;border:1px solid #C89B3C;border-top:6px solid #79200F;border-radius:16px;background:#FDFBF6;color:#2B2118;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.lh-tam::backdrop{background:rgba(18,10,7,.72)}
.lh-tam h2{margin:4px 30px 12px 0;font-size:1.4rem;line-height:1.25;color:#79200F}
.lh-tam form:not(.lh-tam-dong){margin:0}
.lh-tam-dong{position:absolute;right:8px;top:8px;margin:0}
.lh-tam-dong button{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#79200F;font-size:26px;line-height:1;cursor:pointer}
.lh-tam-que{margin:4px 0}
.lh-tam-hoi{margin:6px 0;font-size:1rem;line-height:1.6;color:#5A4A36}
.lh-tam-ten{display:block;margin:14px 0 6px;font-size:.97rem}
.lh-tam input#lh-ten{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid #D9C59A;border-radius:10px;background:#fff;color:#2B2118;font:inherit;font-size:16px}
.lh-tam-gia{margin:14px 0 4px;padding:12px 14px;border:1px dashed #C89B3C;border-radius:10px;background:#F8F4EC;font-size:1rem}
.lh-tam-gia b{color:#79200F}
.lh-tam-gia s{color:#8A6620;font-size:.92rem}
.lh-goi-xu{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:12px 0 0;padding:0;border:0}
.lh-goi-xu label{position:relative;display:flex;flex-direction:column;gap:2px;padding:12px;border:1px solid #D9C59A;border-radius:10px;background:#fff;cursor:pointer}
.lh-goi-xu label:has(input:checked){border:2px solid #79200F;background:#FFF4E8}
.lh-goi-xu input{position:absolute;opacity:0}
.lh-goi-xu b{font-size:17px;color:#79200F}
.lh-goi-xu em{font-style:normal;font-size:13px;color:#2E7D4F}
.lh-goi-xu span{font-size:13px;color:#6D5D47}
.lh-goi-xu small{font-size:13px;font-weight:700;color:#79200F}
.lh-vua{box-shadow:0 0 0 2px rgba(200,155,60,.4)}
.lh-loi{margin:10px 0 0;padding:8px 12px;border-radius:8px;background:#FBEFEA;color:#8A2A12;font-size:14px}
.lh-qr{display:grid;place-items:center;margin:8px auto}
.lh-qr svg{width:220px;height:220px}
.lh-cho-tien span{color:#BB4218;animation:lh-nhap 1.2s ease-in-out infinite}
@keyframes lh-nhap{50%{opacity:.25}}
.lh-lat{display:flex;justify-content:center;align-items:center;gap:18px}
.lh-lat figure{margin:0;text-align:center}
.lh-lat figcaption{margin-top:6px;font-size:.88rem;color:#79200F}
.lh-lat-khung{padding:18px;border-radius:12px;background:#45140B}
.lh-lat-khung figcaption{color:#E6C883}
.lh-mini{display:flex;flex-direction:column}
.lh-mini i{display:block;width:56px;height:7px;margin:5px 0;border-radius:2px}
.lh-mini i.d{background:#C89B3C}
.lh-mini i.a{background:linear-gradient(90deg,#C89B3C 42%,transparent 42%,transparent 58%,#C89B3C 58%)}
.lh-mini i.dg{box-shadow:0 0 0 2px #BB4218}
.lh-tam .lh-mini i.d{background:#79200F}
.lh-tam .lh-mini i.a{background:linear-gradient(90deg,#79200F 42%,transparent 42%,transparent 58%,#79200F 58%)}
.lh-tam .lh-lat-khung .lh-mini i.d{background:#E6C883}
.lh-tam .lh-lat-khung .lh-mini i.a{background:linear-gradient(90deg,#E6C883 42%,transparent 42%,transparent 58%,#E6C883 58%)}
.lh-lat-khung .lh-mini i{animation:lh-hien .5s ease both}
.lh-lat-khung .lh-mini i:nth-child(6){animation-delay:.1s}
.lh-lat-khung .lh-mini i:nth-child(5){animation-delay:.25s}
.lh-lat-khung .lh-mini i:nth-child(4){animation-delay:.4s}
.lh-lat-khung .lh-mini i:nth-child(3){animation-delay:.55s}
.lh-lat-khung .lh-mini i:nth-child(2){animation-delay:.7s}
.lh-lat-khung .lh-mini i:nth-child(1){animation-delay:.85s}
@keyframes lh-hien{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){.lh-lat-khung .lh-mini i,.lh-cho-tien span,.lh-day{animation:none;transition:none}}

/* ===== bài luận sâu đã mở: sáu trang giấy ===== */
.lh-bai{margin-top:22px;color:#2B2118;text-align:left}
.lh-neo{display:block;height:0}
.lh-ml{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.lh-ml a{padding:6px 12px;border:1px solid #C89B3C;border-radius:999px;background:#FDFBF6;color:#79200F;font-size:13px;text-decoration:none}
.lh-ml a.on{background:#79200F;color:#FDFBF6}
.lh-to{position:relative;display:flex;flex-direction:column;margin:0 0 16px;padding:22px 22px 14px;border:1px solid #C89B3C;border-radius:14px;background:#FDFBF6;box-shadow:0 10px 30px rgba(69,20,11,.22);color:#2B2118}
.lh-to>.lh-ct{flex:1}
.lh-dau-t{display:flex;justify-content:space-between;gap:10px;margin:0 0 14px;padding:0 0 8px;border-bottom:1px solid #E3CF9F;font-size:12.5px;color:#8A6620;letter-spacing:.04em}
.lh-dau-t b{font-weight:600;color:#79200F}
.lh-chan-t{display:flex;justify-content:space-between;gap:10px;margin:14px 0 0;padding:8px 0 0;border-top:1px solid #E3CF9F;font-size:11.5px;color:#6D5D47}
.lh-so{margin:0;font:700 12px/1.3 "Be Vietnam Pro",sans-serif;letter-spacing:.12em;color:#8A6620;text-transform:uppercase}
.lh-to h3{margin:4px 0 10px;font-size:1.3rem;line-height:1.3;color:#79200F}
.lh-to p{margin:0 0 10px;font-size:15.5px;line-height:1.7}
.lh-to p.lh-can{font-size:13px;color:#6D5D47}
/* trang 1: bìa */
.lh-bia{background:linear-gradient(#FDFBF6,#F8F4EC);text-align:center}
.lh-bia .lh-ct{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px 0}
.lh-bia .lh-rieng{margin:0;font:700 12.5px/1.4 "Be Vietnam Pro",sans-serif;letter-spacing:.14em;color:#8A6620}
.lh-bia h2{margin:0;font-size:clamp(1.9rem,6vw,2.7rem);line-height:1.15;color:#79200F;font-style:normal}
.lh-bia .lh-hoi{max-width:34em;margin:0;font-size:1.1rem;font-style:italic;line-height:1.55;color:#45140B}
.lh-hx2{display:flex;align-items:center;justify-content:center;gap:22px;margin:6px 0}
.lh-hx2 figure{margin:0;text-align:center}
.lh-hx2 figcaption{margin-top:8px;font:600 14px/1.3 Spectral,Georgia,serif;color:#79200F}
.lh-hx{display:flex;flex-direction:column;gap:6px;width:92px;margin:0 auto}
.lh-hx i{position:relative;display:block;height:9px;border-radius:2px;background:#79200F}
.lh-hx i.a{background:linear-gradient(90deg,#79200F 42%,transparent 42%,transparent 58%,#79200F 58%)}
.lh-hx i b{position:absolute;right:-20px;top:-6px;font-size:15px;line-height:1;color:#BB4218}
.lh-mui{font-size:1.6rem;color:#C89B3C}
.lh-ye{max-width:32em;margin:0;font-size:1rem;color:#5A4A36;line-height:1.6}
.lh-3o{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin-top:6px}
.lh-3o div{padding:10px 8px;border:1px solid #E3CF9F;border-radius:10px;background:#fff}
.lh-3o small{display:block;font-size:11.5px;letter-spacing:.06em;color:#8A6620;text-transform:uppercase}
.lh-3o b{display:block;margin-top:2px;font-size:14px;color:#2B2118;line-height:1.4}
/* trang 2: đọc nhanh */
.lh-suc{margin:4px 0 14px;padding:14px 16px;border:1px solid #E3CF9F;border-radius:12px;background:#fff}
.lh-suc-t{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.lh-suc-t small{font:700 12px/1.3 "Be Vietnam Pro",sans-serif;letter-spacing:.1em;color:#8A6620;text-transform:uppercase}
.lh-suc-t b{font:700 1.25rem/1.2 Spectral,Georgia,serif;color:#79200F}
.lh-thanh{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:10px 0}
.lh-thanh i{height:12px;border-radius:3px;background:#EFE6D4}
.lh-thanh i.on{background:#C89B3C}
.lh-thanh.m4 i.on,.lh-thanh.m5 i.on{background:#2E7D4F}
.lh-thanh.m1 i.on,.lh-thanh.m2 i.on{background:#BB4218}
.lh-ld{margin:0;padding:0;list-style:none}
.lh-ld li{display:flex;gap:8px;margin:0 0 6px;font-size:14.5px;line-height:1.55}
.lh-ld li b{flex:none;width:20px;height:20px;border-radius:50%;background:#EEF5EC;color:#2E7D4F;text-align:center;font-size:14px;line-height:20px}
.lh-ld li.am b{background:#FBEFEA;color:#BB4218}
.lh-ld li.gu b{background:#F8F4EC;color:#8A6620}
.lh-tom{margin:14px 0;padding:12px 14px;border-left:3px solid #C89B3C;background:#F8F4EC;font-size:15px;line-height:1.7}
.lh-tom small{display:block;margin-bottom:4px;font:700 12px/1.3 "Be Vietnam Pro",sans-serif;letter-spacing:.1em;color:#8A6620;text-transform:uppercase}
.lh-xua{margin:12px 0;padding:12px 14px;border-radius:10px;background:#45140B;color:#EFE6D4}
.lh-xua small{display:block;margin-bottom:6px;font-size:12px;letter-spacing:.06em;color:#E6C883}
.lh-xua .han{margin:0 0 6px;font-size:1.15rem;line-height:1.6;color:#E6C883}
.lh-xua p{margin:0;color:#EFE6D4;font-size:15px}
/* trang 3: từng hào động */
.lh-hd{margin:0 0 10px;padding:12px 14px;border:1px solid #E3CF9F;border-left:4px solid #C89B3C;border-radius:10px;background:#fff}
.lh-hd.dung{border-left-color:#BB4218}
.lh-hd h4{margin:0 0 4px;font:700 1rem/1.35 Spectral,Georgia,serif;color:#79200F}
.lh-hd h4 span{font:400 .88rem "Be Vietnam Pro",sans-serif;color:#6D5D47}
.lh-hd p{margin:0 0 6px;font-size:14.5px;line-height:1.65}
.lh-hd .han{font-size:1.02rem;color:#79200F}
/* trang 4 */
.lh-nen,.lh-tranh{margin:0 0 10px;padding:10px 14px;border-radius:10px}
.lh-nen{background:#EEF5EC}.lh-tranh{background:#FBEFEA}
.lh-nen>b,.lh-tranh>b{display:block;margin-bottom:4px;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase}
.lh-nen>b{color:#2E7D4F}.lh-tranh>b{color:#8A2A12}
.lh-nen p,.lh-tranh p{margin:0 0 6px;font-size:15px}
.lh-nen em,.lh-tranh em{color:#6D5D47;font-size:13px}
.lh-mang{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.lh-mang small{flex:0 0 100%;font:700 12px/1.3 "Be Vietnam Pro",sans-serif;letter-spacing:.1em;color:#8A6620;text-transform:uppercase}
.lh-mang span{padding:7px 14px;border:1px solid #C89B3C;border-radius:999px;background:#FDFBF6;color:#79200F;font-weight:600;font-size:14px}
.lh-nhan{padding:14px 16px;border-radius:12px;background:#45140B;color:#EFE6D4}
.lh-nhan small{display:block;margin-bottom:6px;font:700 12px/1.3 "Be Vietnam Pro",sans-serif;letter-spacing:.1em;color:#E6C883;text-transform:uppercase}
.lh-nhan p{color:#EFE6D4}
.lh-nhan .lh-ky{margin:0;color:#E6C883;font-style:italic}
/* trang 5: bàn an quẻ */
.lh-ban-ghi{margin:0 0 8px;font-size:13.5px;color:#6D5D47}
.lh-cuon{overflow-x:auto;margin:0 0 12px}
.lh-bang{width:100%;min-width:640px;border-collapse:collapse;font-size:13.5px}
.lh-bang th{padding:6px 8px;background:#F8F4EC;color:#8A6620;font-weight:700;text-align:left;border-bottom:1px solid #E3CF9F;white-space:nowrap}
.lh-bang td{padding:7px 8px;border-bottom:1px solid #EFE6D4;vertical-align:top;line-height:1.45}
.lh-bang tr.dung td{background:#FFF8E8;border-top:1px solid #C89B3C;border-bottom:1px solid #C89B3C}
.lh-bang tr.dung td:first-child{box-shadow:inset 3px 0 0 #C89B3C}
.lh-bang .dg{color:#BB4218;font-weight:700}
.lh-bang small{display:inline-block;margin:0 3px 2px 0;padding:1px 6px;border-radius:999px;background:#F8F4EC;color:#6D5D47;font-size:11.5px}
.lh-hx-moc{color:#2E7D4F}.lh-hx-hoa{color:#BB4218}.lh-hx-tho{color:#8A6620}.lh-hx-kim{color:#5E6A74}.lh-hx-thuy{color:#2B5F8A}
.lh-hx-moc,.lh-hx-hoa,.lh-hx-tho,.lh-hx-kim,.lh-hx-thuy{font-weight:600}
.lh-tt{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 10px}
.lh-tt div{padding:7px 9px;border:1px solid #E3CF9F;border-radius:8px;background:#fff}
.lh-tt small{display:block;font-size:11px;letter-spacing:.06em;color:#8A6620;text-transform:uppercase}
.lh-tt b{font-size:13.5px}
.lh-4t{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 12px}
.lh-4t div{padding:8px 9px;border-radius:8px;background:#F8F4EC}
.lh-4t small{display:block;font-size:11px;letter-spacing:.06em;color:#8A6620}
.lh-4t b{font-size:14px;color:#79200F}
.lh-2hx{display:flex;justify-content:center;gap:34px;margin:6px 0 8px}
.lh-2hx .lh-hx{width:70px}
.lh-2hx .lh-hx i{height:7px}
.lh-ghi-ban{margin:6px 0 0;font-size:12.5px;color:#6D5D47;text-align:center}
/* trang 6: đi tiếp */
.lh-3c{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 14px}
.lh-c{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 10px;border:1px solid #E3CF9F;border-radius:12px;background:#fff;text-align:center}
.lh-c b{font:700 1rem/1.3 Spectral,Georgia,serif;color:#79200F}
.lh-c span{font-size:13px;line-height:1.5;color:#5A4A36}
.lh-c small{font-size:11.5px;color:#6D5D47;word-break:break-all}
.lh-c a{color:#79200F}
.lh-qr-svg{width:104px;height:104px;display:block}
.lh-dv{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #C89B3C;border-radius:12px;background:#F8F4EC}
.lh-dv>div{flex:1}
.lh-dv h4{margin:0 0 4px;font:700 1.1rem/1.3 Spectral,Georgia,serif;color:#79200F}
.lh-dv p{margin:0 0 4px;font-size:14.5px;color:#3B2D20}.lh-dv small{color:#6D5D47}
.lh-cc{margin:14px 0 0;text-align:center;font:italic 1rem/1.5 Spectral,Georgia,serif;color:#45140B}
.lh-ghi-may{margin:6px 0 0;padding:12px 14px;border:1px dashed #C89B3C;border-radius:10px;background:#FDFBF6;color:#5A4A36;font-size:13.5px;line-height:1.6}
.lh-ghi-may p{margin:4px 0 0}
.lh-chan{margin:12px 0 0;text-align:center;font-size:12.5px;color:#EFE6D4}
.lh-tiep{margin:14px 0 0;padding:14px 16px;border:1px solid #C89B3C;border-radius:12px;background:#F8F4EC;color:#2B2118}
.lh-moi-dv{margin:14px 0 0}
@media (max-width:640px){
  .lh-to{padding:18px 14px 12px}
  .lh-3o,.lh-tt,.lh-4t{grid-template-columns:repeat(2,1fr)}
  .lh-3c{grid-template-columns:1fr}
  .lh-dv{flex-direction:column;text-align:center}
  .lh-hx2{gap:14px}
  .lh-hx{width:72px}
}
/* in: mỗi trang một tờ A4, bỏ khung web */
@media print{
  @page{size:A4 portrait;margin:0}
  .lh-bai{margin:0}
  .lh-ml,.lh-ghi-may,.lh-hang,.lh-tiep,.lh-chan{display:none!important}
  .lh-to{width:210mm;height:297mm;box-sizing:border-box;margin:0;padding:16mm 15mm 10mm;border:0;border-radius:0;box-shadow:none;page-break-after:always;break-after:page;overflow:hidden}
  .lh-to:last-of-type{page-break-after:auto;break-after:auto}
  .lh-cuon{overflow:visible}
  .lh-bang{min-width:0}
}

/* Bảng sửa câu ghi nguồn v01 (18/11/2026), phương án A: câu chốt cuối bài luận, dùng chung Lục Hào, Gieo Kinh Dịch, Mai Hoa */
.lh-ghi-may.ghi-chot,.ghi-chot{border:1px solid #E3CF9F!important;background:#FDFBF6!important;border-radius:14px!important;padding:16px!important;color:#2B2118!important;font-size:15px!important;line-height:1.7!important}
.ghi-chot p{margin:0!important}
.ghi-chot a{color:#8A6620;text-decoration:underline}

/* v03 (18/11/2026) A1: bỏ nền cam đào và hai hình dê quanh khung kết quả; chữ trên nền đêm */
.ml-ttri.lh{background:transparent!important;background-image:none!important;padding-top:24px!important}
.ml-ttri.lh::before,.ml-ttri.lh::after{display:none!important}
.ml-ttri.lh>p.small,.ml-ttri.lh>p.muted,.ml-ttri.lh .lh-dv-dong,.ml-ttri.lh .lh-dv-dong *,.ml-ttri.lh .dx-ghi-cuoi{color:#EAD9BD!important}
.ml-ttri.lh .lh-dv-dong a,.ml-ttri.lh .dx-ghi-cuoi a{color:#C89B3C!important}
.ml-ttri.lh .gq-sau>p,.ml-ttri.lh .gq-sau>.small,.ml-ttri.lh .gq-sau>.muted{color:#EAD9BD!important}
/* A4: mã QR và dòng đường dẫn chỉ hiện trong bản in / PDF */
@media screen{.lh-bai .lh-qr-svg,.lh-an-web{display:none!important}}
/* B: Sáu lần gieo gọn một dòng sau khi gieo xong; nút ẩn thật khi có hidden */
.lh-gieo-nut [hidden],.gq-nut [hidden]{display:none!important}
.lh-gieo>summary{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;padding-right:22px;cursor:pointer;list-style:none}
.lh-gieo>summary::-webkit-details-marker{display:none}
.lh-gieo>summary h3{margin:0}
.lh-gieo>summary::after{content:"▾";position:absolute;right:0;top:50%;margin-top:-.6em;color:#8A6620;transition:transform .2s}
.lh-gieo[open]>summary::after{transform:rotate(180deg)}
.lh-gieo-tom{font-size:14.5px;color:#5A4A36;letter-spacing:.02em}
.lh-gieo-tom b{color:#8B1E12}
.lh-gieo-tom small{white-space:nowrap;margin-left:8px;color:#8C7B63;font-size:12.5px}
.lh-gieo[open] .lh-gieo-tom{display:none}
.lh-gieo-nut{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:12px 0 18px}
.lh-ranh{display:inline-block;margin:0 0 8px;padding:3px 12px;border:1px solid #E3CF9F;border-radius:999px;background:#FBF3E2;color:#8A6620;font-size:12.5px;font-weight:600;letter-spacing:.02em}
