/* 7.94 · Phần dùng chung cho mọi trang công khai: biến màu, link bỏ qua, thanh điều hướng, chữ Hán. Xem design-system/MASTER.md. */
:root{--hcq-primary:#4a6337;--hcq-primary-dark:#3a5027;--hcq-on-primary:#ffffff;--hcq-accent:#a92717;--hcq-on-accent:#ffe6a0;--hcq-surface:#fffdf7;--hcq-background:#fdf8ec;--hcq-ink:#292822;--hcq-muted:#5f5849;--hcq-border:#d9cdb0;--hcq-gold:#b39154;--hcq-focus:#4a6337;--hcq-danger:#a02c26;--hcq-dur-fast:150ms;--hcq-dur-base:220ms;--hcq-ease-out:cubic-bezier(.2,.7,.3,1)}
.skip-link{position:absolute;left:8px;top:-80px;z-index:1000;background:var(--hcq-primary);color:var(--hcq-on-primary)!important;padding:12px 18px;border-radius:6px;font:700 16px/1.3 Arial,system-ui,sans-serif;text-decoration:none}
.skip-link:focus{top:8px;outline:3px solid var(--ds-brand,#4a6337);outline-offset:2px}
.site-nav{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;font:500 14px/1.3 Arial,system-ui,sans-serif}
.site-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:6px;color:var(--hcq-primary);text-decoration:none;transition:background-color var(--hcq-dur-fast) ease-out,color var(--hcq-dur-fast) ease-out}
.site-nav a:hover{background:#4a633714}
.site-nav a[aria-current=page]{background:var(--hcq-primary);color:var(--hcq-on-primary)}
.site-nav a:focus-visible{outline:3px solid var(--ds-brand,#4a6337);outline-offset:2px}
.site-nav-bar{max-width:820px;margin:0 auto;padding:6px 12px;border-bottom:1px solid var(--hcq-border);background:var(--hcq-surface)}
/* Chữ Hán: ưu tiên nét phồn thể có sẵn trên máy, không tải thêm phông. */
[lang^=zh]{font-family:"Noto Serif TC","Noto Serif CJK TC","Source Han Serif TC","PingFang TC","Microsoft JhengHei","Noto Sans CJK TC",serif}
.pw-wrap{display:flex;gap:6px;align-items:stretch}.pw-wrap input{flex:1;min-width:0}
.pw-toggle{min-height:44px;min-width:64px;padding:0 12px;border:1px solid var(--hcq-border);border-radius:6px;background:var(--hcq-surface);color:var(--hcq-ink);font:14px Arial,system-ui,sans-serif;cursor:pointer}
@media (prefers-reduced-motion:reduce){.site-nav a{transition:none}}
/* Trang quẻ, 64 quẻ, trang phụ: vùng bấm đủ 44px, dòng chữ không quá dài. */
nav.dd a,.lien a{display:inline-flex;align-items:center;min-height:44px}
.teacher-main p,.teacher-main li,.method-guide p,.method-guide li,.about p{max-width:75ch}
/* 7.97 · Mã màu lặp từ 2 lần trở lên trong 7 file CSS công cụ, đặt thành biến (giá trị giữ nguyên). */
:root{--hcq-c07131f:#07131f;--hcq-cdfc78a:#dfc78a;--hcq-c87d0ba:#aac097;--hcq-cffb6a5:#ffb6a5;--hcq-ca99d6c:#a99d6c;--hcq-c292d27:#292d27;--hcq-cfffef9:#fffef9;--hcq-cfaf6e8:#faf6e8;--hcq-c245442:#4a6337;--hcq-cd7decc:#d7decc;--hcq-ccbd6c3:#cbd6c3;--hcq-c32725a:#516440;--hcq-c586b54:#5f6659;--hcq-cb5c8b2:#bdc3b7;--hcq-c243c31:#303729;--hcq-cb79c5e:#b79c5e;--hcq-cfff9e8:#fff9e8;--hcq-c174e37:#314223;--hcq-c205542:#46602f;--hcq-cfffaf0:#fffaf0;--hcq-ce6eee1:#e6eee1;--hcq-cfffefa:#fffefa;--hcq-c779c7e:#89947f;--hcq-c245b40:#3e4f30;--hcq-cd3deca:#d3deca}
/* 8.10 · Phông chữ: nạp Be Vietnam Pro (chữ thường) và Noto Serif (tiêu đề, có chân) từ Google Fonts, đủ dấu tiếng Việt.
   Trước đây giao diện gọi tên hai phông này nhưng không trang nào nạp, máy Windows phải ghép Georgia với Cambria nên dấu chữ lệch nhau. */
:root{--hcq-sans:"Inter","Be Vietnam Pro","Segoe UI",system-ui,-apple-system,Arial,sans-serif;--hcq-serif:"Noto Serif","HCQ Viet",Georgia,"Times New Roman",serif;--hcq-tieu-de:"Playfair Display","Noto Serif","HCQ Viet",Georgia,serif}
body{font-family:var(--hcq-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
h1,h2{font-family:var(--hcq-tieu-de)}
[lang^=zh]{font-family:"Noto Serif TC","Noto Serif CJK TC","Source Han Serif TC","PingFang TC","Microsoft JhengHei",serif}

/* 10.28 · Bảng bài viết không tràn khung (chữ to trên điện thoại vẫn xuống dòng trong ô). */
main table.bang:not(.nam):not(.tong){table-layout:fixed;max-width:100%}main table.bang td,main table.bang th{overflow-wrap:anywhere}
