/* Giao diện chung kiểu app Ms.Ngọc Speak cho các trang con của thư viện (Founder yêu cầu 03/11/2026).
   Gắn vào cuối <head> của từng trang bằng cf/gan-giao-dien.mjs (chạy lại trước mỗi lần đưa web, xem dua-len.ps1).
   Chỉ đổi trình bày: phông chữ, màu, bo góc, bóng. Không đổi nội dung, liên kết hay mã của trang.
   Muốn bỏ: chạy  node cf/gan-giao-dien.mjs --go  (gỡ dòng gắn khỏi mọi trang). */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,500;1,600&display=swap");

/* ---------- mọi trang con: phông chữ chung ---------- */
body{font-family:"Be Vietnam Pro","Segoe UI",system-ui,sans-serif!important;font-variant-numeric:lining-nums;-webkit-font-smoothing:antialiased}
h1,h2{font-family:"Playfair Display",Georgia,serif!important;font-weight:600!important;letter-spacing:.005em}
.tk b,figure.sc .o b{font-family:"Playfair Display",Georgia,serif!important}

/* ---------- nhóm Lộ trình · Giáo án · Câu hỏi nói · Phiếu chấm… (khung đầu .top có ô chữ .mk) ---------- */
:root{
  --f-display:"Playfair Display",Georgia,serif; --f-body:"Be Vietnam Pro","Segoe UI",system-ui,sans-serif; --f-label:"Be Vietnam Pro","Segoe UI",system-ui,sans-serif;
  --bg:#f6f2ea; --ink:#13213f; --rail:#0b2a5b; --brass:#c9a24a; --card:#fff; --line:#e7dfd0; --muted:#f4eedf; --soft:#5f6680;
}
html:has(.top>.wrap>.mk) h3{font-family:"Playfair Display",Georgia,serif;font-weight:600}
html:has(.top>.wrap>.mk) a{color:#0b2a5b}
html:has(.top>.wrap>.mk) .top{background:radial-gradient(420px 200px at 0 0,#173a76 0,transparent 70%),linear-gradient(180deg,#0c2350,#071733);border-bottom:1px solid #c9a24a55;color:#fff}
html:has(.top>.wrap>.mk) .mk{background:#ffffff0d;border:1px solid #e6c779;border-radius:12px;color:#e6c779!important;font-weight:700}
html:has(.top>.wrap>.mk) .brand{color:#fff!important;font-family:"Playfair Display",Georgia,serif;font-weight:700}
html:has(.top>.wrap>.mk) .nav a{border:1px solid #ffffff2e;background:transparent;color:#cdd6ea!important;border-radius:30px;font-weight:500;padding:7px 15px;transition:.2s}
html:has(.top>.wrap>.mk) .nav a:hover{color:#fff!important;border-color:#e6c77999}
html:has(.top>.wrap>.mk) .nav a.on{background:linear-gradient(135deg,#e6c779,#c9a24a);color:#14112a!important;border-color:transparent;font-weight:600}
html:has(.top>.wrap>.mk) .eyebrow{color:#b8893b;letter-spacing:.2em}
html:has(.top>.wrap>.mk) .doc{border:1px solid var(--line);border-radius:24px;box-shadow:0 1px 2px #0b2a5b0d,0 10px 32px #0b2a5b14}
html:has(.top>.wrap>.mk) .doc h2{border-bottom:1px solid var(--line)}
html:has(.top>.wrap>.mk) .doc th{background:#f4eedf;color:#13213f}
html:has(.top>.wrap>.mk) .doc table{border-radius:12px;overflow:hidden}
html:has(.top>.wrap>.mk) .doc code{border-radius:6px}
html:has(.top>.wrap>.mk) .side{border:1px solid var(--line);border-radius:18px;box-shadow:0 1px 2px #0b2a5b0d,0 8px 24px #0b2a5b10}
html:has(.top>.wrap>.mk) .side a{border-radius:10px;font-weight:500;border-left-width:3px}
html:has(.top>.wrap>.mk) .side a.on{border-left-color:#c9a24a;background:#f7efd9}
html:has(.top>.wrap>.mk) .cards a{border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px #0b2a5b0d,0 6px 18px #0b2a5b10;font-weight:600;transition:.25s}
html:has(.top>.wrap>.mk) .cards a:hover{border-color:#c9a24a99;box-shadow:0 14px 30px #0b2a5b1f}
html:has(.top>.wrap>.mk) .gv{border:1px solid #7a182466;color:#7a1824!important;border-radius:20px;letter-spacing:.06em}
html:has(.top>.wrap>.mk) button,html:has(.top>.wrap>.mk) .btn{border-radius:30px}
/* khung nội dung khác của nhóm này (Teacher Book: kiểm tra đầu vào, học thử, báo cáo sau buổi, tài liệu chung) */
html:has(.top>.wrap>.mk) :is(.intro,.bai,.card,.ngon){border:1px solid var(--line)!important;border-radius:22px;box-shadow:0 1px 2px #0b2a5b0d,0 10px 32px #0b2a5b14;background:#fff}
html:has(.top>.wrap>.mk) :is(.tag,.dl,.chip){border:1px solid var(--line)!important;border-radius:20px;font-weight:600;background:#fff}
html:has(.top>.wrap>.mk) :is(.tag.link,.chip[aria-pressed=true]){background:#0a1f44!important;color:#fff!important;border-color:#0a1f44!important}
html:has(.top>.wrap>.mk) .box{border-width:1px;border-radius:14px}
html:has(.top>.wrap>.mk) .rep{border-radius:16px;background:linear-gradient(180deg,#0c2552,#071733)}
html:has(.top>.wrap>.mk) .rep h3{color:#e6c779}
html:has(.top>.wrap>.mk) :is(input,select,textarea){border-width:1px!important;border-color:#d9cfbd!important;border-radius:12px!important}
html:has(.top>.wrap>.mk) :is(input,select,textarea):focus{outline:2px solid #c9a24a66;border-color:#c9a24a!important}
html:has(.top>.wrap>.mk) .seg{border-width:1px;border-radius:30px;overflow:hidden}
html:has(.top>.wrap>.mk) .btn{border-width:1px}
html:has(.top>.wrap>.mk) .btn.dark{background:#0a1f44;border-color:#0a1f44}
html:has(.top>.wrap>.mk) :is(.kpi,.tip,.queue,.step){border-width:1px!important;border-radius:14px}
html:has(.top>.wrap>.mk) .card>h2 .so{border-radius:50%}
html:has(.top>.wrap>.mk) pre{border-width:1px;border-radius:12px}

/* ---------- Phim hội thoại (/video/): như Rạp phim của app ---------- */
html:has(body>.w>.tk) body{background:#f6f2ea;color:#13213f}
html:has(body>.w>.tk) a{color:#0b2a5b}
html:has(body>.w>.tk) .tk{background:radial-gradient(700px 300px at 85% -20%,#1b3f80 0,transparent 60%),linear-gradient(180deg,#0c2552,#071733);border-radius:20px;border:1px solid #c9a24a44;box-shadow:0 18px 50px #06102433;padding:18px 22px}
html:has(body>.w>.tk) .tk b{color:#e6c779}
html:has(body>.w>.tk) .tk .thanh i{background:linear-gradient(90deg,#c9a24a,#e6c779)}
html:has(body>.w>.tk) .nav{background:linear-gradient(#f6f2ea 85%,transparent);border-bottom:0;padding:12px 0}
html:has(body>.w>.tk) .nav a{border:1px solid #e7dfd0;font-weight:500;color:#13213f;transition:.2s}
html:has(body>.w>.tk) .nav a em{color:#8a6516;font-weight:600}
html:has(body>.w>.tk) .nav a:hover{background:#0a1f44;border-color:#0a1f44;color:#fff}
html:has(body>.w>.tk) .nav a:hover em{color:#e6c779}
html:has(body>.w>.tk) .dem{border:1px solid #e7dfd0;font-weight:600;font-family:"Be Vietnam Pro",sans-serif}
html:has(body>.w>.tk) .dem.ok{background:linear-gradient(135deg,#e6c779,#c9a24a);color:#14112a;border-color:transparent}
html:has(body>.w>.tk) figure{border:1px solid #e7dfd0;border-radius:18px;box-shadow:0 1px 2px #0b2a5b0d,0 8px 24px #0b2a5b14;transition:.25s}
html:has(body>.w>.tk) figure:hover{transform:translateY(-3px);border-color:#c9a24a88}
html:has(body>.w>.tk) figcaption{font-weight:600;padding:10px 14px}
html:has(body>.w>.tk) figure.sc{border:1px dashed #d9cfbd;box-shadow:none}
html:has(body>.w>.tk) figure.sc:hover{transform:none}

@media (max-width:760px){
  html:has(.top>.wrap>.mk) .nav{width:100%;margin-left:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  html:has(.top>.wrap>.mk) .nav::-webkit-scrollbar{display:none}
  html:has(.top>.wrap>.mk) .nav a{white-space:nowrap;padding:6px 12px;font-size:13px}
  html:has(.top>.wrap>.mk) .doc{border-radius:18px}
}
