/* CSS riêng loại trang «de-le» (công tắc TRANG_MOI.deLe: trang một đề · một câu của đề · một câu của bài học) — chỉ lính DE-B ghi vào đây. Mọi luật bắt đầu bằng `.gdm ` (không rò sang trang cũ); dùng màu / chữ / nút của LUAT-THIET-KE, không thêm màu ngoài luật. */
/* DE-B 18/11/2026 — phần dùng lại từ ki-thi.css / bai.css (mẫu, chỉ đọc) được chép vào đây vì trang đề không nạp hai tệp đó. */

/* ───── nút «vào thi» là <button> của NutVaoThi / NutLamDe → bọc .cta-w (mang data-nut + cỡ), nút trắng lấp đầy */
.gdm .cta-w{margin-top:16px}
.gdm .cta-w>.cta{margin-top:0;width:100%;border-top:0;border-left:0;border-right:0;cursor:pointer;-webkit-appearance:none;appearance:none}
.gdm .nutf{display:flex;align-items:center;justify-content:center;gap:6px}
.gdm button.nutf{width:100%;color:var(--chu);cursor:pointer}
.gdm button.nutp{border-top:0;border-left:0;border-right:0;cursor:pointer;font-family:inherit}
.gdm .hang-nut{display:grid;gap:8px}
.gdm .hang-nut .nutf{margin-top:0}

/* ───── bố cục: thứ tự điện thoại (hero → In đề → khoá → thân) + cột phải dính ở máy tính */
.gdm .cot2.de-le .in-de{order:-2}
.gdm .cot2.de-le .goi-y-cho{order:-1}
.gdm .cot2.de-le .goi-y-cho:empty{display:none}
.gdm .dinh-phai{display:contents}
.gdm .ds-cau,.gdm .de-khac,.gdm .goi-y{display:grid;gap:14px;min-width:0}
.gdm .goi-y{gap:10px}
.gdm .ds-cau .dau,.gdm .de-khac .dau,.gdm .goi-y .dau{margin:0 2px}
.gdm .ds-cau .caus{gap:12px}
.gdm .gt.luat b{font-weight:800;color:#334155}
.gdm .gt.luat{font-size:13px}

/* ───── thẻ «In đề» (tờ đề thật + nút In + Giao bài) */
.gdm .in-de{padding:14px;display:grid;gap:12px}
.gdm .in-de-dau{display:flex;gap:12px;align-items:flex-start}
.gdm .in-de .to{flex:none;width:76px;border:2px solid var(--vien);border-radius:10px;overflow:hidden;background:#fff}
.gdm .in-de .to img{display:block;width:100%;height:auto}
.gdm .in-de .g{min-width:0}
.gdm .in-de h2{font-size:16px;font-weight:900;line-height:1.3}
.gdm .in-de p{font-size:12.5px;color:var(--phu);line-height:1.45;margin-top:4px}

/* ───── lưới số các đề cùng kì (đề đang xem = ô xanh, không phải link) */
.gdm .so8 span.nay{width:44px;height:44px;border-radius:14px;border:2px solid var(--xv);border-bottom-width:4px;display:grid;place-items:center;font-weight:900;background:var(--xn);color:var(--xd);font-family:var(--gdm-f9)}
.gdm .so8 a{font-size:14.5px;color:var(--chu)}

/* ───── thẻ câu hỏi (chép từ ki-thi.css): ruột lựa chọn có thể lồng <span> (MathText) → không thành ô */
.gdm .cau .loai{text-transform:uppercase}
.gdm .lc span span,.gdm .noi span span{display:inline;border:0;padding:0;min-height:0;gap:0;font-size:inherit;font-weight:inherit;line-height:inherit}
.gdm .lc span img,.gdm .noi span img{width:44px;height:44px;object-fit:contain;flex:none;border-radius:8px}
.gdm .cau .dau2 h3 span{font-size:inherit;font-weight:inherit}
/* vòng 2: công thức MathJax dài (vd. /lop-4/toan/de-13: 358 px không xuống dòng) làm tràn ngang 390 → đề bài co theo cột, công thức dài cuộn TRONG thẻ */
.gdm .cau .dau2 h3{flex:1;min-width:0}
.gdm .cau mjx-container[jax="CHTML"]:not([display="true"]){display:inline-block;max-width:100%;overflow-x:auto;overflow-y:hidden;vertical-align:middle}
.gdm .cau mjx-container[display="true"]{max-width:100%;overflow-x:auto;overflow-y:hidden}
.gdm .cau .dg p,.gdm .lc span{min-width:0;max-width:100%}
.gdm .cau .dg p span{display:inline}
/* vòng 3: ô «Đ / S» cạnh từng ý của câu Đúng / Sai (ĐỀ BÀI — trang cũ vẽ «Đ / S» bên phải mỗi mệnh đề) */
.gdm .cau .dg p.ds-hang{display:flex;align-items:center;gap:8px;border:2px solid var(--vien);border-radius:12px;padding:6px 10px;min-height:40px}
.gdm .cau .dg p.ds-hang>b{flex:none;font-weight:900;color:var(--phu)}
.gdm .cau .dg p.ds-hang>span{flex:1;min-width:0}
.gdm .cau .dg p.ds-hang>.ds{flex:none;font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.1em;color:var(--phu)}
/* vòng 3: dòng «Phiếu bài tập … theo tuần» + «Phiếu tuần N · Tuần N+1 →» ngay dưới đề trước / sau */
.gdm .phieu-the{display:grid;gap:8px}
.gdm .phieu-the .pl a{min-height:44px;display:inline-flex;align-items:center}
.gdm .goi-y .khoa .o{font-size:25px}
.gdm .cau .da span{display:inline}
.gdm .cau details p span{display:inline}
.gdm .hinh-cau{margin-top:10px;max-width:260px}
.gdm .hinh-cau.nhieu,.gdm .hinh-cau.rong{max-width:none}
.gdm .hinh-cau img{max-width:100%;height:auto}
.gdm .hinh-cau img.nho{max-height:160px;width:auto}
.gdm .hinh-cau svg{max-width:100%;height:auto}
.gdm .the-chu{display:inline-block;margin-top:10px;background:var(--xn);border:2px solid var(--xv);border-radius:12px;padding:6px 14px;font-size:22px;font-weight:900;color:var(--xd)}
.gdm .doan-c{margin-top:10px;background:var(--xn);border:2px solid var(--xv);border-radius:12px;padding:10px 12px;font-size:13.5px;line-height:1.55;color:#334155}
.gdm .doan-c .ten-doan{display:block;text-align:center;font-weight:900;margin-bottom:4px}
.gdm .gt-c{margin-top:8px;font-size:12.5px;font-weight:600;color:var(--phu)}
.gdm .vis-c{margin-top:10px;font-size:24px;line-height:1.5;letter-spacing:.06em;white-space:pre-line;word-break:break-word}
.gdm .manh{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.gdm .manh>span{border:2px solid var(--vien);border-radius:10px;padding:5px 10px;font-size:13.5px;font-weight:700}
.gdm .van>div{margin-top:12px}
.gdm .loi-bang{margin-top:8px}
.gdm .loi-bang p{margin-top:4px}
.gdm .cau details .loi-giai{font-size:13.5px;line-height:1.55;color:#334155;margin-top:8px}
.gdm .cau details .dap-dg{margin-top:8px}

/* ───── phạm vi / bài đọc / phần in */
.gdm .van h3{font-size:14.5px;font-weight:900;margin-top:14px;color:var(--chu)}
.gdm .van h3:first-child{margin-top:0}
.gdm .cau .n.n-cau{padding:0 10px;white-space:nowrap}
.gdm .van .tg{text-align:right;font-style:italic;color:var(--phu);font-size:13px}
.gdm .van.bai-doc .nho2{margin-top:0}
.gdm .van.bai-doc h3{margin-top:4px;font-size:16px}
.gdm .van.phan-in{padding:14px}
.gdm .van.phan-in>b{font-size:14px;font-weight:900;color:var(--chu)}
.gdm .van.phan-in p{margin-top:6px}
.gdm .van.phan-in .nutf{margin-top:10px}
.gdm .tlv{margin-top:-4px}

/* ───── thẻ câu của trang «một câu»: đề bài to, lựa chọn bấm được, kết quả, đáp án gập */
.gdm .cau-tl{padding:16px}
.gdm .cau-tl .de-bai{flex:1;min-width:0;font-size:16px;font-weight:700;line-height:1.5;padding-top:2px;overflow-wrap:anywhere;font-family:var(--gdm-f);color:var(--chu)}
.gdm .cau-tl .de-bai p+p{margin-top:6px}
.gdm .cau-tl .de-bai b,.gdm .cau-tl .de-bai strong{font-weight:900}
.gdm .cau-tl .nghe-hang{margin-top:12px}
.gdm button.nutf.nghe-co{width:auto;display:inline-flex;margin-top:10px;padding:4px 18px}
.gdm .lc.bam{grid-template-columns:1fr;gap:8px;margin-top:14px}
.gdm .lc.bam.tranh{grid-template-columns:1fr 1fr}
.gdm .lc.bam button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;text-align:left;background:#fff;border:2px solid var(--vien);border-bottom-width:4px;border-radius:14px;padding:8px 12px;font-size:14.5px;font-weight:700;line-height:1.4;color:var(--chu);font-family:var(--gdm-f);cursor:pointer;-webkit-appearance:none;appearance:none}
.gdm .lc.bam button:disabled{cursor:default}
.gdm .lc.bam button>b{flex:none;width:26px;height:26px;border-radius:8px;background:#f1f5f9;color:#475569;font-size:12.5px;font-weight:900;display:grid;place-items:center;font-family:var(--gdm-f9)}
.gdm .lc.bam button>span{display:block;border:0;padding:0;min-height:0;gap:0;font-size:inherit;font-weight:inherit;background:none;border-radius:0}
.gdm .lc.bam button>.ch-chu{flex:1;min-width:0;overflow-wrap:anywhere}
.gdm .lc.bam button>.tr{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.gdm .lc.bam button>.tr img{width:84px;height:84px;object-fit:contain}
.gdm .lc.bam button>.loa{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:var(--xn);margin-left:auto;font-size:18px}
.gdm .lc.bam button.dung{border-color:var(--xv);background:var(--xn);color:var(--xd)}
.gdm .lc.bam button.dung>b{background:var(--x);color:#fff}
.gdm .lc.bam button.sai{border-color:#fecdd3;background:#fff1f2;color:#9f1239}
.gdm .lc.bam button.sai>b{background:#e11d48;color:#fff}
.gdm .lc.bam button.mo{opacity:.55}
.gdm .ket{margin-top:12px;border-radius:14px;padding:10px 12px;font-size:13.5px;font-weight:800;line-height:1.4}
.gdm .ket.dung{background:var(--xn);color:var(--xd);border:2px solid var(--xv)}
.gdm .ket.sai{background:#fff1f2;color:#9f1239;border:2px solid #fecdd3}

/* ───── «Câu trước / Câu sau» + thẻ mời làm cả đề / chơi cả bài */
.gdm .lien{display:grid;gap:10px}
.gdm .khoa .g small.nh{font-weight:800;letter-spacing:.07em;font-size:10.5px;text-transform:uppercase}
.gdm .chao.giua{text-align:center}
.gdm .chao.giua>b{font-size:17px}
.gdm .chao.giua .nutp{margin:12px auto 0}
.gdm .the-cd .nho-xanh{display:block;font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#3d5a26;margin:0}
.gdm .the-cd>b{margin-top:6px}

@media (min-width:1024px){
.gdm .cta-w{width:380px;margin-top:24px}
.gdm .cta-w>.cta{width:100%;margin-top:0}
.gdm .cot2.de-le>.phai{align-self:stretch}
.gdm .dinh-phai{display:grid;gap:14px;align-content:start;align-self:start;position:sticky;top:84px;max-height:calc(100vh - 100px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.gdm .cau-tl{padding:22px}
.gdm .cau-tl .de-bai{font-size:18.5px}
.gdm .lc.bam button{font-size:15.5px;min-height:52px}
.gdm .lc.bam.tranh{grid-template-columns:1fr 1fr}
.gdm .lien.hai{grid-template-columns:1fr 1fr}
.gdm .lien{gap:12px}
.gdm .in-de .to{width:92px}
.gdm .cau-le .the-cd{padding:22px}
}
