/* setup.phachebonphuong.vn. Hai thế giới: Trước quầy (khối màu, ảnh thật) và Sau quầy (giấy kẻ ô tối, số liệu). */
:root {
  --do: #b3262e; --do-tham: #7b1e26; --la: #1d6b43; --la-nhat: #e3f1e8; --vang: #f6c453; --vang-dam: #e2a92c;
  --kem: #fdf5e4; --giay: #fffdf8; --hong: #f8d3ca; --muc: #231a17; --muc2: #5f544e; --vien: #e4d7c0;
  --den: #141a17; --den2: #1c2420; --den3: #232d28; --ke: #33413a; --chu: #ece6d8; --mo: #a5b1a8;
  --c1: #2fa58a; --c2: #e0655a; --c3: #5b8fe8; --c4: #b98a1e;
  --tieu-de: 'Fraunces', 'Playfair Display', Georgia, serif;
  --than: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  --so: 'IBM Plex Mono', Consolas, monospace;
  --le: clamp(20px, 5vw, 72px);
  --rong: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--than); font-size: 17px; line-height: 1.6; color: var(--muc); background: var(--kem); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--tieu-de); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--vang-dam); outline-offset: 2px; border-radius: 3px; }
.sau :focus-visible { outline-color: var(--vang); }
.khung { max-width: var(--rong); margin-inline: auto; padding-inline: var(--le); }
.bo-qua { position: absolute; left: -9999px; }
.bo-qua:focus { left: 12px; top: 12px; z-index: 100; background: var(--vang); color: var(--muc); padding: 10px 16px; }
.nhan { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.so { font-family: var(--so); font-variant-numeric: tabular-nums; }

/* Đầu trang */
.dau-trang { position: sticky; top: 0; z-index: 30; background: var(--giay); border-bottom: 1px solid var(--vien); }
.sau .dau-trang { background: rgba(20, 26, 23, .96); border-color: var(--ke); color: var(--chu); }
.dau-trang .khung { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nhan-hieu { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; font-weight: 600; line-height: 1.2; }
.nhan-hieu img { height: 42px; width: auto; }
.nhan-hieu span { font-family: var(--tieu-de); font-weight: 700; font-size: 1.08rem; }
.nhan-hieu small { display: block; font-family: var(--than); font-weight: 500; font-size: .72rem; color: var(--muc2); letter-spacing: .02em; }
.sau .nhan-hieu small { color: var(--mo); }
.dieu-huong { display: flex; align-items: center; gap: 24px; }
.dieu-huong a { text-decoration: none; font-weight: 500; font-size: .96rem; padding: 10px 2px; }
.dieu-huong a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.dieu-huong a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nut-goi { background: var(--do); color: #fff; padding: 10px 18px !important; border-radius: 999px; font-weight: 600 !important; white-space: nowrap; }
.nut-goi:hover { background: var(--do-tham); text-decoration: none !important; }
.sau .nut-goi { background: var(--vang); color: var(--muc); }
.sau .nut-goi:hover { background: #ffd777; }
.mo-menu { display: none; background: none; border: 1px solid currentColor; border-radius: 8px; color: inherit; font: inherit; font-weight: 600; min-height: 44px; padding: 0 14px; cursor: pointer; }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.nut:hover { transform: translateY(-2px); }
.nut-vang { background: var(--vang); color: var(--muc); }
.nut-vang:hover { background: #ffd777; }
.nut-vien { border-color: currentColor; background: transparent; color: inherit; }
.nut-do { background: var(--do); color: #fff; }
.nut-do:hover { background: var(--do-tham); }

/* Khối nội dung chung */
.khoi { padding-block: clamp(60px, 9vw, 120px); }
.khoi h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); font-weight: 900; }
.dan { font-size: clamp(1.06rem, 1.5vw, 1.24rem); max-width: 38em; }

/* Trình diễn */
.trinh-dien { background: var(--hong); }
.td-dau { max-width: 780px; margin-bottom: 36px; }
.td-dau h2 { margin-bottom: 16px; }
.td-luoi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px rgba(90, 30, 20, .2); }
.td-tay { background: var(--giay); padding: clamp(24px, 3.5vw, 44px); }
.td-may { background-color: var(--den); color: var(--chu); padding: clamp(24px, 3.5vw, 44px); background-image: linear-gradient(rgba(236,230,216,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(236,230,216,.045) 1px, transparent 1px); background-size: 24px 24px; }
.td-tay h3, .td-may h3 { font-size: 1.5rem; margin-bottom: 18px; }
.keo { margin-bottom: 20px; }
.keo label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; margin-bottom: 4px; }
.keo output { font-family: var(--so); font-weight: 600; white-space: nowrap; }
.keo input[type=range] { width: 100%; height: 32px; accent-color: var(--do); cursor: pointer; margin: 0; }
.td-chu { font-size: .86rem; color: var(--muc2); }
.ket-lon { font-family: var(--tieu-de); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--vang); margin-bottom: 6px; }
.thanh-ly { display: flex; gap: 2px; height: 34px; margin: 22px 0 10px; }
.thanh-ly span { display: block; height: 100%; min-width: 2px; transition: width .2s ease; }
.thanh-ly span:first-child { border-radius: 4px 0 0 4px; }
.thanh-ly span:last-child { border-radius: 0 4px 4px 0; }
.chu-giai { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; margin: 0 0 16px; }
.chu-giai li { display: flex; align-items: center; gap: 7px; }
.chu-giai i { width: 11px; height: 11px; flex: none; display: inline-block; border-radius: 2px; }
.td-kl { border-top: 1px solid var(--ke); padding-top: 16px; margin: 0; }
.td-menu { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px rgba(90, 30, 20, .2); }
.td-menu .td-may { order: 0; }
.td-vai { background: var(--la); color: var(--kem); padding: clamp(24px, 3.5vw, 44px); }
.td-vai h3 { font-size: 1.6rem; margin-bottom: 16px; }
.td-vai dl { margin: 0; }
.td-vai dt { font-family: var(--tieu-de); font-weight: 700; font-size: 1.14rem; margin-top: 14px; color: var(--vang); }
.td-vai dd { margin: 0; font-size: .95rem; }
.td-vai .nut { margin-top: 24px; }

/* Biểu đồ */
.bd { width: 100%; height: auto; display: block; overflow: visible; }
.bd text { font-family: var(--than); fill: var(--chu); font-size: 12px; }
.bd .t-mo { fill: var(--mo); }
.bd .t-so { font-family: var(--so); font-weight: 600; }
.bd .t-goc { font-family: var(--tieu-de); font-weight: 700; font-size: 15px; fill: var(--mo); }
.bd .luoi { stroke: var(--ke); stroke-width: 1; }
.bd .cat { stroke: var(--mo); stroke-width: 1; stroke-dasharray: 4 4; }
.bd .goc { stroke: var(--chu); stroke-width: 1.5; }
.bd [data-tip] { cursor: default; }
.bd [data-tip]:hover .diem, .bd [data-tip]:focus .diem { stroke: var(--chu); stroke-width: 2; }
.bd .hit { fill: transparent; }
.bd g[tabindex]:focus { outline: none; }
.bd g[tabindex]:focus .diem { stroke: var(--vang); stroke-width: 3; }
.goi-y { position: fixed; z-index: 60; max-width: 260px; background: var(--muc); color: #fff; padding: 8px 12px; border-radius: 6px; font-size: .84rem; line-height: 1.4; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); white-space: pre-line; }
.goi-y[hidden] { display: none; }

/* Gói */
.cac-goi { background: var(--giay); }
.bang-cuon { overflow-x: auto; }
table.goi { border-collapse: collapse; width: 100%; min-width: 980px; font-size: .92rem; line-height: 1.42; }
table.goi th, table.goi td { padding: 14px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--vien); }
table.goi thead th { border-top: 0; vertical-align: bottom; padding-bottom: 18px; font-weight: 400; }
table.goi thead strong { display: block; font-family: var(--tieu-de); font-size: 1.4rem; font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
table.goi .gia { font-family: var(--so); font-weight: 600; font-size: 1.04rem; display: block; }
table.goi tbody th { font-weight: 600; width: 13%; }
table.goi col.sang { background: var(--sang, #fff3cf); }
table.goi .khong { color: #8b8078; }
.goi-the { display: none; }
.goi-nho { font-size: .9rem; color: var(--muc2); margin-top: 22px; max-width: 62em; }
.goi-nho p { margin-bottom: .5em; }
.goi-kl { font-family: var(--tieu-de); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 500; line-height: 1.3; margin-top: 28px; max-width: 40em; }

/* Form */
.lien-he { background: var(--la); color: var(--kem); }
.lh-luoi { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.lien-he h2 { margin-bottom: 18px; }
.lh-goi { margin-top: 22px; }
.lh-goi a { font-family: var(--so); font-weight: 600; font-size: 1.3rem; color: var(--vang); padding-block: 6px; display: inline-block; }
form.mau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.o { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.o-rong { grid-column: 1 / -1; }
.o label { font-weight: 500; font-size: .94rem; }
.o input, .o select, .o textarea { font: inherit; color: var(--muc); background: var(--giay); border: 1.5px solid transparent; border-radius: 6px; padding: 11px 12px; min-height: 46px; width: 100%; }
.o textarea { min-height: 88px; resize: vertical; }
.o [aria-invalid=true] { border-color: var(--vang); box-shadow: 0 0 0 2px var(--vang); }
.mau-gui { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mau-bao { font-weight: 500; min-height: 1.5em; margin: 0; }
.mau-nho { grid-column: 1 / -1; font-size: .86rem; margin: 0; opacity: .9; }
.dinh-kem { grid-column: 1 / -1; background: rgba(0,0,0,.14); padding: 14px 16px; border-radius: 6px; font-size: .92rem; }
.dinh-kem label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.dinh-kem input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--vang); }
.dinh-kem pre { font-family: var(--so); font-size: .82rem; white-space: pre-wrap; margin: 10px 0 0; line-height: 1.5; }
.mat { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Chân trang */
.chan { background: var(--muc); color: #e9e0d2; padding-block: 48px 36px; font-size: .94rem; }
.sau .chan { border-top: 1px solid var(--ke); background: var(--den); }
.chan-luoi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px; }
.chan h2 { font-size: 1.3rem; margin-bottom: 8px; color: #fff; }
.chan h3 { font-family: var(--than); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b8ac9e; margin-bottom: 8px; }
.chan a { display: inline-block; padding-block: 5px; }
.chan-nho { font-size: .82rem; color: #b8ac9e; margin: 28px 0 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }

/* ===== Sau quầy ===== */
body.sau { background-color: var(--den); color: var(--chu); background-image: linear-gradient(rgba(236,230,216,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(236,230,216,.035) 1px, transparent 1px); background-size: 24px 24px; }
.st-dau { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.st-dau .nhan { color: var(--vang); display: block; margin-bottom: 12px; }
.st-dau h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 900; margin-bottom: 14px; }
.st-dau p { max-width: 42em; margin: 0; color: var(--chu); font-size: 1.06rem; }

.bt { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 72px; }
.bt-danh { position: sticky; top: 84px; }
.bt-danh ol { display: flex; flex-direction: column; }
.bt-danh a { display: flex; gap: 10px; padding: 11px 10px; text-decoration: none; border-top: 1px solid var(--ke); font-size: .95rem; line-height: 1.3; min-height: 44px; align-items: baseline; }
.bt-danh a .so { color: var(--mo); font-size: .8rem; }
.bt-danh a:hover { background: var(--den2); }
.bt-danh a[aria-current=true] { background: var(--vang); color: var(--muc); font-weight: 600; border-top-color: var(--vang); }
.bt-danh a[aria-current=true] .so { color: var(--muc); }
.hs-nho { margin-top: 18px; font-size: .86rem; color: var(--mo); border-top: 1px solid var(--ke); padding: 12px 10px 0; line-height: 1.45; }
.nut-nho { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--chu); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.bt-man h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 900; margin-bottom: 8px; }
.bt-cau { color: var(--chu); margin-bottom: 22px; max-width: 44em; font-size: 1.04rem; }
.bt-hai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: var(--den2); border: 1px solid var(--ke); border-radius: 8px; overflow: hidden; }
.bt-nhap { padding: 22px; border-right: 1px solid var(--ke); display: flex; flex-direction: column; gap: 16px; }
.bt-ket { padding: 24px; min-width: 0; background: var(--den); }
.tr { display: flex; flex-direction: column; gap: 4px; }
.tr-dong { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tr label { font-size: .92rem; font-weight: 500; line-height: 1.3; }
.nguon { font-size: .7rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; padding: 2px 7px; border-radius: 999px; flex: none; }
.nguon-vd { color: var(--mo); border: 1px solid var(--ke); }
.nguon-kh { color: var(--muc); background: var(--vang); border: 1px solid var(--vang); }
.tr-o { display: flex; align-items: center; background: var(--den); border: 1.5px solid var(--ke); border-radius: 6px; }
.tr-o:focus-within { border-color: var(--vang); }
.tr-o input { flex: 1; min-width: 0; background: none; border: 0; color: var(--chu); font-family: var(--so); font-size: 1.04rem; font-weight: 500; padding: 10px 12px; min-height: 44px; }
.tr-o input:focus { outline: none; }
.tr-o span { color: var(--mo); font-size: .84rem; padding-right: 12px; white-space: nowrap; }
.tr small { color: var(--mo); font-size: .82rem; line-height: 1.35; }
.bt-tong { font-size: .84rem; color: var(--mo); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ke); }
.bt-tong b { color: var(--chu); font-weight: 600; }
.bt-loi { background: rgba(224, 101, 90, .14); border: 1px solid var(--c2); padding: 12px 14px; border-radius: 6px; }
.ket-so { font-family: var(--tieu-de); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--vang); }
.ket-nhan { margin: 4px 0 18px; font-size: 1.02rem; }
.bo-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 22px; margin: 0 0 20px; }
.bo-so div { min-width: 0; }
.bo-so dt { font-size: .82rem; color: var(--mo); line-height: 1.3; margin-bottom: 2px; }
.bo-so dd { margin: 0; font-family: var(--so); font-weight: 600; font-size: 1.14rem; }
.xep-ket { margin-bottom: 14px; font-weight: 500; }
.bt-bang { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 16px; }
.bt-bang th, .bt-bang td { padding: 9px 8px; text-align: right; border-top: 1px solid var(--ke); font-family: var(--so); font-variant-numeric: tabular-nums; }
.bt-bang th { font-family: var(--than); font-weight: 500; color: var(--mo); font-size: .82rem; }
.bt-bang th:first-child, .bt-bang td:first-child { text-align: left; font-family: var(--than); }
.bang-cuon-toi { overflow-x: auto; }
.bt-cuoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; margin-top: 26px; }
.bt-cuoi h3 { font-family: var(--than); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mo); margin-bottom: 8px; }
.bt-cuoi li { padding: 8px 0; border-top: 1px solid var(--ke); font-size: .95rem; line-height: 1.42; }
.bt-cuoi a { text-underline-offset: 3px; }
details.ct { margin-top: 18px; border-top: 1px solid var(--ke); font-size: .94rem; }
details.ct summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details.ct p { color: var(--chu); margin-bottom: .6em; }
details.ct code { font-family: var(--so); font-size: .88rem; }
.bt-mien { font-size: .84rem; color: var(--mo); margin-top: 22px; max-width: 60em; }
.bt-mien p { margin-bottom: .4em; }
.bt-tiep { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.nut-vang-nho { background: var(--vang); color: var(--muc); }

.cau-ss { display: flex; flex-direction: column; gap: 8px; padding-block: 14px; border-top: 1px solid var(--ke); }
.cau-ss:first-child { border-top: 0; padding-top: 0; }
.cau-ss p { margin: 0; font-size: .95rem; line-height: 1.42; font-weight: 500; }
.cau-chon { display: flex; gap: 8px; }
.cau-chon label { flex: 1; cursor: pointer; }
.cau-chon input { position: absolute; opacity: 0; }
.cau-chon span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--ke); border-radius: 6px; font-size: .9rem; text-align: center; padding: 4px 8px; }
.cau-chon input:checked + span { background: var(--vang); color: var(--muc); border-color: var(--vang); font-weight: 600; }
.cau-chon input:focus-visible + span { outline: 3px solid var(--vang); outline-offset: 2px; }

.mn-bang { display: flex; flex-direction: column; gap: 10px; }
.mn-dong { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 32px; gap: 6px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--ke); }
.mn-dong input.ten-mon { grid-column: 1 / -1; }
.mn-dong.dau span:first-child { display: none; }
.mn-dong.dau { border-bottom: 0; padding-bottom: 0; }
.mn-dong.dau { font-size: .74rem; color: var(--mo); line-height: 1.2; }
.mn-dong input { width: 100%; min-width: 0; background: var(--den); border: 1.5px solid var(--ke); color: var(--chu); border-radius: 6px; padding: 8px 8px; min-height: 44px; font: inherit; font-size: .88rem; }
.mn-dong input:focus { outline: none; border-color: var(--vang); }
.mn-dong input.so { font-family: var(--so); text-align: right; font-size: .84rem; padding-inline: 6px; }
.mn-xoa { background: none; border: 0; color: var(--mo); font-size: 1.2rem; cursor: pointer; min-height: 44px; min-width: 32px; }
.mn-xoa:hover { color: var(--c2); }
.mn-lenh { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.nhom-mon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 18px; }
.nhom-mon h3 { font-family: var(--than); font-size: 1rem; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.nhom-mon .ten { font-weight: 500; font-size: .92rem; margin-bottom: 2px; }
.nhom-mon p { font-size: .86rem; color: var(--mo); margin: 0; line-height: 1.4; }
.dm-chon { display: flex; flex-direction: column; gap: 4px; }
.dm-chon legend { font-size: .92rem; font-weight: 500; padding: 0; margin-bottom: 6px; }
.dm-chon fieldset, fieldset.dm-chon { border: 0; padding: 0; margin: 0; }
.dm-chon label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: .92rem; cursor: pointer; line-height: 1.3; }
.dm-chon input { width: 20px; height: 20px; accent-color: var(--vang); flex: none; }
.bd-hop { font-size: .72rem; }

/* Thư viện bài học */
.tv-nhom { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(28px, 5vw, 72px); padding-block: 38px; border-top: 1px solid var(--ke); scroll-margin-top: 80px; }
.tv-nhom h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; color: var(--vang); margin-bottom: 10px; }
.tv-nhom p { margin: 0; color: var(--mo); font-size: .96rem; }
.tv-bai a { display: block; padding-block: 15px; border-top: 1px solid var(--ke); text-decoration: none; }
.tv-bai li:first-child a { border-top: 0; padding-top: 0; }
.tv-bai strong { display: block; font-family: var(--tieu-de); font-size: 1.28rem; line-height: 1.2; font-weight: 500; margin-bottom: 4px; }
.tv-bai a:hover strong { color: var(--vang); }
.tv-bai span { color: var(--mo); font-size: .94rem; line-height: 1.42; display: block; }
.tv-nguon { padding-block: 38px 72px; border-top: 1px solid var(--ke); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(28px, 5vw, 72px); font-size: .95rem; }
.tv-nguon h2 { font-size: 1.5rem; }
.tv-nguon li { padding: 10px 0; border-top: 1px solid var(--ke); }
.tv-nguon li:first-child { border-top: 0; padding-top: 0; }
.tv-nguon a { font-weight: 600; }
.tv-nguon span { color: var(--mo); display: block; }

.bai { max-width: 760px; padding-bottom: 72px; }
.bai-nhom { color: var(--vang); text-decoration: none; display: inline-block; padding-block: 6px; margin-bottom: 8px; }
.bai h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 900; margin-bottom: 20px; }
.bai-tom { font-family: var(--tieu-de); font-size: clamp(1.25rem, 2.2vw, 1.62rem); line-height: 1.32; font-weight: 500; color: var(--vang); margin-bottom: 28px; }
.bai-than p { font-size: 1.08rem; line-height: 1.72; }
.bai h2 { font-family: var(--than); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mo); margin: 36px 0 10px; }
.bai-vd { background: var(--den2); border: 1px solid var(--ke); border-radius: 8px; padding: 20px 22px; margin-top: 30px; }
.bai-vd h2 { margin: 0 0 4px; color: var(--vang); }
.bai-vd > p { font-size: .95rem; margin-bottom: 12px; }
.bai-vd table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.bai-vd th, .bai-vd td { padding: 10px 0; border-top: 1px solid var(--ke); text-align: left; font-weight: 400; vertical-align: top; }
.bai-vd td { font-family: var(--so); font-weight: 600; text-align: right; padding-left: 16px; }
.bai-vd td.chu-thuong { font-family: var(--than); font-weight: 500; }
.bai-ds li { padding: 11px 0; border-top: 1px solid var(--ke); line-height: 1.5; }
.bai-tinh { margin-top: 36px; padding: 24px; background: var(--vang); color: var(--muc); border-radius: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.bai-tinh p { margin: 0; font-family: var(--tieu-de); font-size: 1.28rem; font-weight: 700; line-height: 1.2; max-width: 22em; }
.bai-tinh .nut { background: var(--muc); color: var(--kem); }
.bai-nguon { font-size: .88rem; color: var(--mo); margin-top: 22px; }
.bai-lien a { display: block; padding-block: 11px; border-top: 1px solid var(--ke); text-underline-offset: 3px; }

/* Di động */
@media (max-width: 1000px) {
  .bt { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bt-danh { position: sticky; top: 68px; z-index: 12; background: var(--den); margin-inline: calc(var(--le) * -1); padding-inline: var(--le); padding-block: 8px; border-bottom: 1px solid var(--ke); }
  .bt-danh ol { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .bt-danh ol::-webkit-scrollbar { display: none; }
  .bt-danh a { border: 1px solid var(--ke); border-radius: 999px; white-space: nowrap; padding: 8px 14px; align-items: center; }
  .bt-danh a .so { display: none; }
  .hs-nho { display: none; }
  .chan-luoi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chan-luoi > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .mo-menu { display: inline-flex; align-items: center; }
  .dieu-huong { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--giay); border-bottom: 1px solid var(--vien); padding: 8px var(--le) 18px; flex-direction: column; align-items: stretch; gap: 0; }
  .sau .dieu-huong { background: var(--den); border-color: var(--ke); }
  .dieu-huong.mo { display: flex; }
  .dieu-huong a { padding: 12px 2px; }
  .nut-goi { text-align: center; margin-top: 8px; }
  .td-luoi, .td-menu, .lh-luoi, .tv-nhom, .tv-nguon, .bt-hai { grid-template-columns: minmax(0, 1fr); }
  form.mau { grid-template-columns: minmax(0, 1fr); }
  .bt-nhap { border-right: 0; border-bottom: 1px solid var(--ke); }
  .bt-cuoi { grid-template-columns: minmax(0, 1fr); }
  .nhom-mon { grid-template-columns: minmax(0, 1fr); }
  .bang-cuon { display: none; }
  .goi-the { display: grid; gap: 14px; }
  .the-goi { border: 1.5px solid var(--vien); border-radius: 8px; padding: 18px; background: var(--kem); }
  .the-goi.sang { border-color: var(--la); background: var(--la-nhat); }
  .the-goi h3 { font-size: 1.5rem; margin-bottom: 6px; }
  .the-goi .gia { font-family: var(--so); font-weight: 600; display: block; margin-bottom: 10px; }
  .the-goi dl { margin: 0; font-size: .92rem; line-height: 1.42; }
  .the-goi dt { font-weight: 600; margin-top: 10px; }
  .the-goi dd { margin: 0; }
  .chan-luoi { grid-template-columns: minmax(0, 1fr); }
  .bt-bang { font-size: .78rem; }
  .bt-bang th, .bt-bang td { padding: 8px 4px; }
  .bt-bang th { font-size: .72rem; }
}
@media (max-width: 420px) {
  .nhan-hieu small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .dau-trang, .bt-danh, .lien-he, .chan { display: none; }
  body.sau { background: #fff; color: #000; }
}

/* Bàn tính: bảng 2 cột, chưa biết, phiếu kết quả */
.mn-dong.mn-hai { grid-template-columns: minmax(0, 1fr) 32px; }
.mn-dong.mn-hai .ten-mon { grid-column: 1 / -1; }
.mn-dong input.so-le { font-family: var(--so); text-align: right; font-size: .84rem; padding-inline: 6px; }
.bt-ghi { display: block; color: var(--mo); font-size: .82rem; margin-bottom: 18px; }
.bt-dung { margin: 10px 0 0; font-size: .92rem; color: var(--mo); }
.bt-chua { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--vang); background: var(--den2); }
.bt-chua h3 { font-family: var(--than); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mo); margin-bottom: 6px; }
.bt-chua p { margin: 0; }
.bt-phieu { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.bt-phieu label { flex: 1 0 100%; font-size: .86rem; color: var(--mo); }
.bt-phieu input { flex: 1 1 220px; min-height: 46px; font: inherit; color: var(--chu); background: var(--den2); border: 1px solid var(--ke); border-radius: 6px; padding: 10px 12px; }
.bt-khung-in { position: fixed; width: 0; height: 0; border: 0; left: -9999px; }
/* Trang cách tính */
.ct-ds { display: flex; flex-direction: column; gap: 34px; margin-bottom: 30px; }
.ct-muc { border-top: 1px solid var(--ke); padding-top: 22px; scroll-margin-top: 90px; }
.ct-muc h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 14px; }
.ct-ba { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 20px 32px; margin-bottom: 10px; }
.ct-ba h3 { font-family: var(--than); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mo); margin-bottom: 8px; }
.ct-ba ul { list-style: none; padding: 0; margin: 0; }
.ct-ba li { padding: 7px 0; border-top: 1px solid var(--ke); font-size: .95rem; line-height: 1.45; }
.ct-ba code { font-family: var(--so); font-size: .88rem; white-space: normal; }
.ct-mien { color: var(--mo); font-size: .86rem; max-width: 60em; margin-bottom: 40px; }
@media (max-width: 860px) { .ct-ba { grid-template-columns: 1fr; } }

/* Trang chủ: ít chữ, nhiều ảnh */
.tc-hero { position: relative; min-height: min(calc(100svh - 68px), 900px); display: flex; align-items: flex-end; background: var(--den); color: #fff; overflow: hidden; }
.tc-hero-anh, .tc-hero-anh picture { position: absolute; inset: 0; }
.tc-hero-anh img { width: 100%; height: 100%; object-fit: cover; }
.tc-hero-anh picture:nth-child(2), .tc-hero-anh picture:nth-child(3) { opacity: 0; }
.tc-hero-anh picture:nth-child(2) { animation: tc-anh-2 18s infinite; }
.tc-hero-anh picture:nth-child(3) { animation: tc-anh-3 18s infinite; }
@keyframes tc-anh-2 { 0%, 28% { opacity: 0; } 33%, 61% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes tc-anh-3 { 0%, 61% { opacity: 0; } 66%, 94% { opacity: 1; } 100% { opacity: 0; } }
.tc-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .86) 0%, rgba(20, 14, 10, .62) 45%, rgba(20, 14, 10, .12) 78%), linear-gradient(0deg, rgba(20, 14, 10, .55) 0%, transparent 40%); }
.tc-hero-chu { position: relative; z-index: 1; width: 100%; padding-block: clamp(72px, 12vh, 140px) clamp(64px, 10vh, 112px); }
.tc-hero .nhan { color: var(--vang); display: block; margin-bottom: 18px; }
.tc-hero h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); font-weight: 900; line-height: 1.02; max-width: 12.5em; margin-bottom: 20px; }
.tc-hero h1 em { font-style: italic; color: var(--vang); font-weight: 700; }
.tc-hero-chu p { font-size: clamp(1.08rem, 1.6vw, 1.3rem); margin-bottom: 28px; }
.tc-hero-nut { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-hero-tem { position: absolute; z-index: 1; right: var(--le); bottom: 14px; margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .86); }

.tc-quan { background: var(--den); color: var(--chu); padding-block: clamp(56px, 8vw, 104px); }
.tc-quan h2, .tc-buoc h2, .tc-quay h2, .tc-visao h2, .tc-sau h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 900; }
.tc-quan h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.tc-da { margin-bottom: clamp(32px, 4vw, 48px); }
.tc-da-ten { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 14px; }
.tc-da-ten h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--vang); }
.tc-da-ten span { color: var(--mo); font-size: .92rem; }
.tc-da-ten a { font-size: .9rem; font-weight: 600; padding-block: 6px; }
.tc-da-anh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tc-da-anh img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tc-quan-them { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.tc-quan-them ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.tc-quan-them a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; font-size: .94rem; text-decoration: none; }
.tc-quan-them a:hover { color: var(--vang); }
.tc-quan-them img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tc-quan-them p { margin: 0; color: var(--mo); font-size: .92rem; }

.tc-buoc { background: var(--vang); padding-block: clamp(56px, 8vw, 104px); }
.tc-buoc h2 { max-width: 15em; margin-bottom: clamp(28px, 4vw, 48px); }
.tc-buoc ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tc-buoc li { position: relative; }
.tc-buoc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
.tc-so { position: absolute; left: 10px; top: 10px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--do); color: #fff; border-radius: 50%; font-family: var(--tieu-de); font-weight: 900; font-size: 1.5rem; }
.tc-buoc h3 { font-size: clamp(1.14rem, 1.6vw, 1.36rem); margin-bottom: 6px; }
.tc-buoc p { margin: 0; font-size: .94rem; line-height: 1.42; }

.tc-quay { background: var(--giay); padding-block: clamp(56px, 8vw, 104px); }
.tc-quay h2 { max-width: 15em; margin-bottom: clamp(28px, 4vw, 44px); }
.tc-quay-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(170px, 19vw, 280px)); gap: 8px; }
.tc-quay-luoi figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.tc-quay-luoi img { width: 100%; height: 100%; object-fit: cover; }
.tc-quay-luoi .q1 { grid-column: span 2; grid-row: span 2; }
.tc-quay-luoi .q2 { grid-row: span 2; }
.tc-quay-luoi figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(20, 14, 10, .78); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 4px; }

.tc-mo { margin-top: 28px; }
.tc-mo > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tc-mo[open] > summary { margin-bottom: 18px; }
.td-tay .nut { margin-top: 4px; }
.td-menu { margin-top: 0; }

.tc-visao { background: var(--do-tham); color: var(--kem); padding-block: clamp(56px, 8vw, 104px); }
.tc-visao h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.tc-visao ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tc-visao li { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 4.4; background: var(--den); }
.tc-visao img { width: 100%; height: 100%; object-fit: cover; }
.tc-visao li div { position: absolute; inset: auto 0 0 0; padding: 60px 14px 14px; color: #fff; background: linear-gradient(0deg, rgba(20, 14, 10, .94) 45%, transparent 100%); }
.tc-visao h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin-bottom: 6px; color: var(--vang); }
.tc-visao p { margin: 0; font-size: .88rem; line-height: 1.38; }

.tc-nguoi { background: var(--la); color: var(--kem); }
.tc-nguoi-anh { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4px; }
.tc-nguoi-anh img { width: 100%; height: clamp(190px, 25vw, 400px); object-fit: cover; }
.tc-nguoi-chu { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 18px 48px; align-items: center; padding-block: clamp(36px, 5vw, 64px); }
.tc-nguoi-chu h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; }
.tc-nguoi-chu p { margin: 0; }

.cac-goi h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.tc-goi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tc-goi button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 18px; text-align: left; background: var(--kem); border: 2px solid var(--vien); border-radius: 10px; font: inherit; color: var(--muc); cursor: pointer; }
.tc-goi button:hover { border-color: var(--muc); }
.tc-goi button[aria-pressed=true] { background: var(--la); border-color: var(--la); color: #fff; }
.tc-goi strong { font-family: var(--tieu-de); font-size: 1.36rem; line-height: 1.12; }
.tc-goi .so { font-weight: 600; font-size: 1.14rem; margin-top: 6px; }
.tc-goi small { font-size: .84rem; opacity: .82; margin-bottom: 8px; }
.tc-goi span:last-child { font-size: .94rem; line-height: 1.36; }
.tc-goi-vat { margin: 14px 0 0; font-size: .9rem; color: var(--muc2); }
.cac-goi .goi-kl { margin-block: 18px 22px; }

.tc-sau { background: var(--den); color: var(--chu); padding-bottom: clamp(56px, 8vw, 104px); }
.tc-sau-anh { width: 100%; height: clamp(220px, 34vw, 480px); object-fit: cover; object-position: center 35%; margin-bottom: clamp(32px, 5vw, 56px); }
.tc-sau h2 { margin-bottom: 28px; }
.tc-sau h2 em { color: var(--vang); font-style: italic; font-weight: 700; }
.tc-ds-tinh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 28px; }
.tc-ds-tinh a { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding-block: 10px; border-top: 1px solid var(--ke); font-weight: 500; text-decoration: none; }
.tc-ds-tinh a:hover { color: var(--vang); }
.tc-ds-tinh .so { color: var(--mo); font-size: .84rem; }
.tc-sau-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.tc-sau-cv { margin: 0; max-width: 46em; color: var(--mo); }

@media (max-width: 1000px) {
  .tc-buoc ol, .tc-da-anh, .tc-visao ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tc-buoc ol::-webkit-scrollbar, .tc-da-anh::-webkit-scrollbar, .tc-visao ul::-webkit-scrollbar { display: none; }
  .tc-buoc li { flex: 0 0 min(62vw, 260px); scroll-snap-align: start; }
  .tc-da-anh img { flex: none; width: min(78vw, 420px); scroll-snap-align: start; }
  .tc-visao li { flex: none; width: min(74vw, 300px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .tc-goi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-ds-tinh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tc-hero { min-height: min(calc(100svh - 68px), 760px); }
  .tc-hero::after { background: linear-gradient(0deg, rgba(20, 14, 10, .92) 0%, rgba(20, 14, 10, .72) 48%, rgba(20, 14, 10, .1) 82%); }
  .tc-hero-chu { padding-block: 120px 56px; }
  .tc-hero-nut .nut { flex: 1 1 100%; }
  .tc-hero-tem { left: var(--le); right: auto; }
  .tc-quay-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .tc-quay-luoi .q1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .tc-quay-luoi .q2 { grid-row: span 2; }
  .tc-quay-luoi .q3, .tc-quay-luoi .q4 { aspect-ratio: 1; }
  .tc-nguoi-anh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-nguoi-anh img:first-child { grid-column: 1 / -1; height: 56vw; }
  .tc-nguoi-anh img { height: 34vw; }
  .tc-nguoi-anh img:last-child { grid-column: 1 / -1; height: 44vw; }
  .tc-nguoi-chu { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tc-goi, .tc-ds-tinh { grid-template-columns: minmax(0, 1fr); }
}

/* Khu Chuyên Viên trên trang chủ và nút Zalo nổi (06/11) */
.tc-cv { background: var(--vang); color: var(--muc); padding-block: clamp(56px, 8vw, 104px); }
.tc-cv-luoi { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.tc-cv-khoa { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; background: var(--muc); color: var(--vang); font-size: .9rem; font-weight: 600; }
.tc-cv-khoa svg { flex: none; }
.tc-cv h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 900; margin-bottom: 20px; }
.tc-cv h2 em { display: block; color: var(--do-tham); font-style: italic; font-weight: 700; }
.tc-cv-dan { font-size: 1.1rem; max-width: 34em; margin-bottom: 26px; }
.tc-cv-ma { margin: 16px 0 0; font-size: .88rem; }
.tc-cv-ma a { display: inline-block; padding-block: 6px; color: var(--muc); }
.tc-cv-goi-y { margin: 0 0 10px; font-size: .9rem; font-weight: 600; }
.tc-cv-muc { background: var(--giay); border-radius: 8px; margin-bottom: 10px; box-shadow: 0 2px 0 var(--vang-dam); }
.tc-cv-muc summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 12px 18px; font-family: var(--tieu-de); font-size: 1.18rem; font-weight: 700; line-height: 1.25; cursor: pointer; list-style: none; }
.tc-cv-muc summary::-webkit-details-marker { display: none; }
.tc-cv-muc summary::after { content: "+"; flex: none; font-family: var(--than); font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--do); }
.tc-cv-muc[open] summary::after { content: "\2212"; }
.tc-cv-muc p { margin: 0; padding: 0 18px 16px; font-size: .95rem; line-height: 1.5; color: var(--muc2); }
.nut-tu-van { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 20px 10px 16px; border-radius: 999px; background: #0068ff; color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 40, 110, .38); transition: background-color .15s ease; }
.nut-tu-van:hover { background: #0052cc; color: #fff; }
.nut-tu-van svg { flex: none; }
.hop-zalo { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 14px; color: inherit; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.hop-zalo::backdrop { background: rgba(0, 0, 0, .5); }
.hop-zalo h2 { margin: 0 0 8px; font-size: 1.25rem; }
.hop-zalo p { margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.hop-zalo .hop-zalo-so { margin: 0 0 10px; font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; color: #0068ff; }
.hop-zalo-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.hop-zalo-dong { margin-left: auto; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.chan { padding-bottom: 76px; }
.tc-nguoi-anh img[src*="ng-nhan-su"] { object-position: 50% 5%; }
@media (max-width: 820px) {
  .tc-cv-luoi { grid-template-columns: minmax(0, 1fr); }
  .tc-cv .nut { width: 100%; }
  .tc-cv-khoa { font-size: .8rem; padding-inline: 12px; }
  .nut-tu-van.khi-form { display: none; }
  .nut-tu-van { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 46px; padding: 8px 16px 8px 12px; font-size: .92rem; }
}
@media print { .nut-tu-van { display: none; } }

/* Nut Quan tam Zalo OA Pha che Bon Phuong 16/11/2026 */
.bp-oa{position:fixed;z-index:91;right:max(16px, env(safe-area-inset-right));bottom:calc(max(16px, env(safe-area-inset-bottom)) + 62px);display:inline-flex;align-items:center;gap:7px;padding:7px 15px 7px 9px;border:2px solid #0068ff;border-radius:999px;background:#fff;color:#0068ff;font-family:inherit;font-size:14px;font-weight:800;line-height:1.1;text-decoration:none;white-space:nowrap;box-shadow:0 8px 22px -8px rgba(0,0,0,.45)}
.bp-oa:hover,.bp-oa:focus-visible{background:#0068ff;color:#fff}
.bp-oa svg{width:24px;height:24px;flex:none;fill:currentColor}
@media (max-width: 820px){.bp-oa{right:max(12px, env(safe-area-inset-right));bottom:calc(max(12px, env(safe-area-inset-bottom)) + 56px);font-size:13px}.nut-tu-van.khi-form ~ .bp-oa{display:none}}
