/* Bloomia by Vyhoala, phần nền dùng chung cho bản A và bản B.
   Font tự phục vụ (lấy từ Google Fonts, bộ latin và vietnamese), reset, ẩn hiện, chuyển động.
   Màu, bố cục từng bản nằm ở giao-dien.css của bản đó. Không dùng lớp js-* ở đây. */
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(font/hanken-grotesk-vietnamese.woff2?v=decbe7b9) format("woff2");
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(font/hanken-grotesk-latin.woff2?v=271d5973) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Serif Display";font-style:normal;font-weight:300 400;font-display:swap;
  src:url(font/noto-serif-display-vietnamese.woff2?v=eb2429ca) format("woff2");
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Noto Serif Display";font-style:normal;font-weight:300 400;font-display:swap;
  src:url(font/noto-serif-display-latin.woff2?v=81995244) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Font dự phòng đã chỉnh số đo cho khớp bề rộng chữ của font web (V3-HN-01): lúc font web chưa về, chữ dựng bằng
   Times New Roman, Arial phóng theo size-adjust nên xuống dòng gần như y hệt, đổi font không làm nhảy bố cục.
   Số đo bằng canvas measureText trên 4 câu mẫu tiếng Việt và Latin (vòng sửa 3). Máy không có Times, Arial
   (phần lớn Android) thì bỏ qua mặt này, dùng font kế tiếp trong danh sách như trước. */
@font-face{font-family:"Serif du phong";font-weight:300;src:local("Times New Roman"),local("TimesNewRomanPSMT");
  size-adjust:111.9%;ascent-override:95.6%;descent-override:25.9%;line-gap-override:0%}
@font-face{font-family:"Serif du phong";font-weight:400;src:local("Times New Roman"),local("TimesNewRomanPSMT");
  size-adjust:115.4%;ascent-override:92.7%;descent-override:25.1%;line-gap-override:0%}
@font-face{font-family:"Sans du phong";font-weight:400 500;src:local("Arial"),local("ArialMT");
  size-adjust:98.7%;ascent-override:101.3%;descent-override:30.4%;line-gap-override:0%}
@font-face{font-family:"Sans du phong";font-weight:600 700;src:local("Arial Bold"),local("Arial-BoldMT");
  size-adjust:93.5%;ascent-override:107%;descent-override:32.1%;line-gap-override:0%}

/* Chỉ giao diện sáng, kể cả khi máy hay app ép tối tự động (V2-T-05) */
:root{
  color-scheme:only light;
  --serif:"Noto Serif Display","Serif du phong","Iowan Old Style","Palatino Linotype","Times New Roman",serif;
  --sans:"Hanken Grotesk","Sans du phong","Helvetica Neue",Arial,system-ui,sans-serif;
  --em:cubic-bezier(.2,.6,.2,1);
  --cao-noi:56px;
  --mui:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16.5M12.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;
  padding-bottom:calc(var(--cao-noi) + env(safe-area-inset-bottom))}
img{display:block;max-width:100%;height:auto;color:transparent}
picture{display:contents}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
ul,ol{list-style:none}
h1,h2,h3,h4{font-weight:inherit;font-size:inherit;text-wrap:balance}
p,li,dd{text-wrap:pretty}
[hidden]{display:none!important}
.an-chu{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.giu{white-space:nowrap}
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
dialog{border:0;padding:0;max-width:none;max-height:none;color:inherit}
/* Dialog chưa mở luôn ẩn, kể cả trình duyệt không biết thẻ dialog (Safari, WebView iOS trước 15.4): khi đó mọi dialog
   ẩn hẳn (lớp co-dialog gắn ở đầu trang chỉ khi có showModal), thẻ mẫu mở trang riêng của mẫu (V3-CD-02) */
dialog:not([open]){display:none}
html:not(.co-dialog) dialog{display:none!important}
/* Thẻ mẫu ngoài nhóm hiện đầu: có JS thì ẩn ngay từ HTML để ảnh lười không bị tải trước (V3-HN-02).
   Tắt JS hoặc trang.js lỗi (lớp js bị gỡ) thì vẫn hiện đủ. */
.js .the--sau{display:none!important}

/* Mũi tên nét mảnh màu theo chữ (thay ký tự → ←, font web không có glyph) */
.mui{display:inline-block;width:18px;height:10px;flex:none;background:currentColor;-webkit-mask:var(--mui) no-repeat center/contain;mask:var(--mui) no-repeat center/contain;vertical-align:middle}
.mui--trai{transform:scaleX(-1)}

/* Ảnh lỗi: ô giữ khung, hiện mã to giữa ô (11b T19) */
.anh-o{position:relative}
.anh-o::before{content:attr(data-ma);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:300;font-size:28px;letter-spacing:.04em;opacity:.55}
.anh-o img{position:relative}
.anh-loi img{visibility:hidden}

/* Thanh liên hệ nổi: ẩn khi khung chi tiết mở hoặc khi chân trang vào màn (11b mục 5.3) */
.dang-mo-khung .thanh-noi,.chan-trong-man .thanh-noi{opacity:0;visibility:hidden;transform:translateY(8px)}
.thanh-noi{transition:opacity .24s var(--em),transform .24s var(--em),visibility .24s}
html.khoa-cuon{overflow:hidden}
/* Điện thoại: bộ nút mở đầu (trang chủ, khóa học) còn trên màn thì ẩn thanh nổi, màn đầu không lặp nút (vòng sửa 1) */
@media (max-width:999px){
  .nut-dau-trong-man .thanh-noi{opacity:0;visibility:hidden;transform:translateY(8px)}
}
/* Chạm có phản hồi trên điện thoại (GD-15) */
a,button,summary{-webkit-tap-highlight-color:rgba(80,48,32,.14)}
@media (hover:none){
  .nut:active,.lh:active,.chip:active,.lien-chu:active,.re__o:active{opacity:.72}
}

@media (min-width:1000px){
  body{padding-bottom:0}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  html{scroll-behavior:auto}
}

/* ---------- Vòng sửa 4 ---------- */
/* Lời dặn dán dưới nút nhắn (V4-UX-01, 02): chỉ đúng khi JS chép được mã, tắt JS thì ẩn */
html:not(.js) .dan-ma{display:none}
/* Trang có bộ nút ở màn đầu: thanh nổi ẩn sẵn từ HTML tới khi JS xét xong, không hiện rồi rút dưới ngón tay (V4-UX-08) */
@media (max-width:999px){
  .js .co-nut-dau:not(.noi-da-xet) .thanh-noi{opacity:0;visibility:hidden;transform:translateY(8px)}
}
/* Chữ mồ côi ở câu hỏi, tên khóa, tên mẫu liên quan, câu chân trang (V4-GD-07) */
summary,.lien-quan__ten,.khoa__ten,.chan__cau{text-wrap:balance}
/* Hàng lọc có sẵn trong HTML để không chèn muộn làm lưới nhảy; tắt JS (lọc không chạy) thì ẩn */
html:not(.js) .loc{display:none}
