/* 20/11/2026 – bản ĐIỆN THOẠI theo GPT chấm lại (chủ trung tâm: "làm nốt luôn").
   Chỉ bố cục, độ dễ đọc, vùng chạm, che khuất – không đổi nội dung chữ. MỌI luật nằm trong @media ≤ 760px, máy tính giữ nguyên.
   Nạp CUỐI trên index.html, about.html, adaptive-learning.html, orientation.html. :not(#_dt) để thắng các tệp nạp trước. */

@media (max-width: 760px) {
  /* ===== TRANG CHỦ ===== */
  /* thẻ kỹ năng: mỗi thẻ ~340px thay vì 457px (hơn nửa màn hình) */
  html body main .skills.skills.skills.skills.skills.skills .card-row > .skill-card:not(#_dt),
  html body main .skills.skills.skills.skills.skills.skills .card-row > .skill-card:not(#_dt):is(:hover, :focus-visible) { padding-bottom: 190px !important; min-height: 0 !important; background-position: center bottom !important; }
  html body main .skills.skills .card-row:not(#_dt) { gap: 14px !important; }
  /* tên + mô tả ghép thành một khối gọn để chữ không đè linh vật khi thẻ thấp hơn */
  html body main .skills.skills.skills.skills.skills.skills .card-row > .skill-card:not(#_dt) { padding-top: 12px !important; }
  html body main .skills.skills.skills.skills.skills.skills .card-row > .skill-card:not(#_dt) .sk-icon { width: 38px !important; height: 38px !important; }
  html body main .skills.skills.skills.skills.skills.skills .card-row > .skill-card:not(#_dt) h3 { margin-top: 8px !important; padding-top: 8px !important; padding-bottom: 2px !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
  html body main .skills.skills.skills.skills.skills.skills .card-row > .skill-card:not(#_dt) p { margin-top: 0 !important; padding-top: 2px !important; padding-bottom: 9px !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; line-height: 1.4 !important; }

  /* E-learning: lưới 2×2 lối vào lên ngay sau nút "Vào Góc học tập", minh hoạ xuống dưới */
  html body main .el-banner:not(#_dt) { grid-template-areas: "main" "tabs" "art" !important; }

  /* dải lợi ích chân hero: lưới 2×2 đọc trọn câu (bỏ lớp mờ hai mép) */
  html body main .hero.hero.hero .hero-strip:not(#_dt) { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4px 10px !important; padding: 10px 12px !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
  html body main .hero.hero.hero .hero-strip:not(#_dt) li { display: flex !important; align-items: center !important; gap: 8px !important; min-width: 0 !important; padding: 6px 2px !important; border: 0 !important; white-space: normal !important; font-size: 13px !important; line-height: 1.3 !important; animation: none !important; }
  html body main .hero.hero.hero .hero-strip:not(#_dt) .hs-ic { flex: 0 0 30px !important; width: 30px !important; height: 30px !important; }
  html body main .hero.hero.hero .hero-strip:not(#_dt) .hs-ic svg { width: 17px !important; height: 17px !important; }

  /* dòng bảo mật cuối form: ổ khoá và chữ cùng màu đậm */
  html body main .duo-form .form-note:not(#_dt), html body main .duo-form .form-note:not(#_dt) svg { color: #24324A !important; stroke: #24324A !important; }
  html body main .duo-form .form-note:not(#_dt) { stroke: none !important; }
  /* ===== GIỚI THIỆU ===== */
  /* thẻ học viên: chữ viết tắt nhỏ lại, thẻ nằm gọn giữa hai mép cong (không bị cắt góc / cắt thanh tên) */
  html body.about-page .mw .hv-chay .hv-bang.hv-bang:not(#_dt) { padding: 70px 0 !important; }
  html body.about-page .mw .hv .chu-tat:not(#_dt) { font-size: 52px !important; }
  html body.about-page .mw .hv-chay .hv .thong:not(#_dt) { bottom: 14px !important; }
  /* thanh 4 bước của bài mẫu: 4 cột bằng nhau, vòng số cùng cỡ cùng hàng, nhãn cao cố định 2 dòng */
  html body.about-page .mw .lb-buoc:not(#_dt) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; align-items: start !important; }
  html body.about-page .mw .lb-buoc:not(#_dt) button { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; gap: 6px !important; min-height: 84px !important; padding: 6px 2px !important; margin: 0 !important; font-size: 12.5px !important; line-height: 1.25 !important; border-radius: 12px !important; transform: none !important; }
  html body.about-page .mw .lb-buoc:not(#_dt) button .lb-so { width: 36px !important; height: 36px !important; margin: 0 !important; transform: none !important; }
  html body.about-page .mw .lb-buoc:not(#_dt)::before { top: 24px !important; }
  /* bài mẫu: bốn bảng xếp nối nhau theo chiều dọc – trước đây bảng sau dính và trượt đè lên bảng trước (che lựa chọn D của Vocabulary) */
  html body.about-page .mw .lb-chong:not(#_dt) .lb-khung { position: static !important; top: auto !important; }
  html body.about-page .mw .lb-chong:not(#_dt) .lb-khung + .lb-khung { margin-top: 20px !important; }
  html body.about-page .mw .lb-chong:not(#_dt) .gt-bai-vung { transform: none !important; opacity: 1 !important; filter: none !important; }
  /* ===== ADAPTIVE LEARNING ===== */
  /* vệt vàng tô theo từng dòng chữ (trước kéo hết chiều ngang dù dòng cuối chỉ có một chữ) */
  html body.al-page .al-slogan:not(#_dt) { background: none !important; text-wrap: pretty; }
  html body.al-page .al-slogan:not(#_dt) > span { background: linear-gradient(transparent 58%, rgba(239, 194, 120, .85) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 3px; margin: 0 -3px; }
  /* 12 dạng Reading: mỗi dạng một hàng (số · tên Anh · tên Việt), chạm để mở mô tả – hàng cao ≥ 48px */
  html body.al-page .al-dangs:not(#_dt) { gap: 8px !important; }
  html body.al-page .al-dang:not(#_dt) { display: grid !important; grid-template-columns: auto minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; row-gap: 0; min-height: 52px; padding: 8px 12px !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  html body.al-page .al-dang:not(#_dt) .al-so { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; align-self: center; }
  html body.al-page .al-dang:not(#_dt) b { grid-column: 2; grid-row: 1; font-size: 15.5px !important; }
  html body.al-page .al-dang:not(#_dt) em { grid-column: 2; grid-row: 2; font-size: 13.5px !important; }
  html body.al-page .al-dang:not(#_dt)::after { content: ""; grid-column: 3; grid-row: 1 / span 2; justify-self: center; width: 9px; height: 9px; border-right: 2.5px solid #121212; border-bottom: 2.5px solid #121212; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  html body.al-page .al-dang.mo:not(#_dt)::after { transform: translateY(2px) rotate(-135deg); }
  html body.al-page .al-dang:not(#_dt) p { grid-column: 1 / -1; grid-row: 3; display: none; margin: 8px 0 4px !important; }
  html body.al-page .al-dang.mo:not(#_dt) p { display: block; }
  html body.al-page .al-dang:not(#_dt):focus-visible { outline: 3px solid #2F4A62; outline-offset: 2px; }
  /* ===== ĐỊNH HƯỚNG ===== */
  /* đầu trang: tiêu đề + nút trước, linh vật nhỏ lại (132px) phía sau; chỉ "Xem lộ trình" là nút đặc */
  html body.v3-orientation .sp-hero:not(#_dt) .sp-copy { order: 1 !important; }
  html body.v3-orientation .sp-hero:not(#_dt) .sp-mascot { order: 2 !important; justify-content: center !important; padding: 0 0 14px !important; margin: -4px 0 0 !important; min-height: 0 !important; height: auto !important; }
  html body.v3-orientation .sp-hero:not(#_dt) .sp-mascot img { width: 132px !important; height: 132px !important; max-width: none !important; object-fit: contain !important; }
  html body.v3-orientation .sp-hero:not(#_dt) .sp-btn.primary { background: #2F4A62 !important; color: #FFFFFF !important; border-color: #2F4A62 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body.v3-orientation .sp-hero:not(#_dt) .sp-btn.primary svg { stroke: #FFFFFF !important; }
  html body.v3-orientation .sp-hero:not(#_dt) .sp-btn:not(.primary) { background: transparent !important; color: #17202A !important; border: 1.5px solid rgba(23, 32, 42, .55) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  /* ô Ước tính nhanh: mỗi ý là một đoạn liền, chữ đậm nằm trong dòng (trước bị tách thành ba cột) */
  html body.v3-orientation .time .thumb:not(#_dt) p { display: block !important; line-height: 1.5 !important; }
  html body.v3-orientation .time .thumb:not(#_dt) p b { display: inline !important; }
  /* bảng ước tính: mỗi mốc điểm gom vào MỘT thẻ (điểm hiện tại → mục tiêu, số buổi, thời gian, ghi chú) */
  html body.v3-orientation #timeRows:not(#_dt) .trow { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px 14px !important; padding: 14px 16px !important; margin: 0 0 12px !important; background: #FFFDF8 !important; border: 2px solid #121212 !important; border-radius: 12px !important; box-shadow: 3px 3px 0 rgba(24, 38, 65, .28) !important; }
  html body.v3-orientation #timeRows:not(#_dt) .trow > i { display: none !important; }
  html body.v3-orientation #timeRows:not(#_dt) .trow .cell { display: block !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; text-align: left !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body.v3-orientation #timeRows:not(#_dt) .trow .cell[data-l]::before { display: block !important; margin: 0 0 2px !important; text-align: left !important; }
  html body.v3-orientation #timeRows:not(#_dt) .trow .cell svg { vertical-align: -3px; margin-right: 4px; }
  html body.v3-orientation #timeRows:not(#_dt) .trow .cell.note { grid-column: 1 / -1 !important; padding-top: 10px !important; border-top: 1px dashed rgba(23, 32, 42, .3) !important; font-size: 14px !important; line-height: 1.5 !important; }
  /* thẻ "Hàng trăm câu chuyện thành công": chữ sáng trên nền xanh đậm (≥ 4.5:1), chấm bi nhạt hơn, nút nền đặc */
  html body.v3-orientation .club-art:not(#_dt) .card { background: #29465A radial-gradient(circle, rgba(255, 255, 255, .09) 1.4px, transparent 1.6px) 0 0 / 18px 18px !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html:not(#_d1) body.v3-orientation:not(#_dt) .club .club-art:not(#_d2) .card :is(b, small) { color: #F8FAFC !important; text-shadow: none !important; -webkit-text-stroke: 0 !important; opacity: 1 !important; }
  html body.v3-orientation .club-art:not(#_dt) .card a { background: #F4D58D !important; color: #17202A !important; border-color: #F4D58D !important; min-height: 44px; display: inline-flex !important; align-items: center; }
  /* nút về đầu trang ẩn khi một nút hành động của lộ trình nằm ở dải đáy màn hình (trước đè lên "Tăng tốc bứt phá") */
  html.dt-che-nut .to-top:not(#_dt) { opacity: 0 !important; pointer-events: none !important; }
}
