/* ==========================================================================
   ProMax — TÀI LIỆU TOÁN (chồng lên skin.css của theme tailieutoan-hoc-duong)
   Mọi luật bắt đầu bằng body.pm → tắt plugin là hết tác dụng.

   Ngôn ngữ thiết kế:
   - Phóng khoáng: khung tới 1440px, lề co giãn, lưới tự chia cột theo bề rộng thật.
   - Góc gọn (8 / 12 / 16 / 22px), bỏ "viên thuốc" và viền be dày 2px.
   - Nhiều lớp có chiều sâu: nền chuyển sắc → mặt giấy → thẻ nổi (viền tóc + bóng nhiều tầng) → lớp kính (đầu trang).
   - Chữ lớn hơn cho học sinh lớp 1–9: tên thẻ ≥ 15,6px, dòng phụ ≥ 13px.
   - Màu vẫn bám logo: xanh #1560BD, navy #132A4F, cam #F7931E (chữ trên cam luôn navy).
   ========================================================================== */

body.pm {
  --mlib-container: var(--pm-khung);
  --mlib-radius: var(--pm-goc-l);
  --mlib-border: rgba(19, 42, 79, 0.1);
  --gt-line: rgba(19, 42, 79, 0.09);
  --gt-line-2: rgba(19, 42, 79, 0.16);
  --gt-soft: #f4efe6;
  /* Lớp nền: bỏ giấy chấm bi; thay bằng hai quầng sáng màu logo rất nhạt ở đầu trang (cố định theo trang, không lặp) */
  background-color: #fffcf7;
  background-image:
    radial-gradient(900px 520px at 8% -80px, rgba(21, 96, 189, 0.09), transparent 70%),
    radial-gradient(820px 480px at 96% 40px, rgba(247, 147, 30, 0.1), transparent 68%);
  background-size: auto;
  background-repeat: no-repeat;
}
body.pm .site,
body.pm .site-content,
body.pm.separate-containers .inside-article,
body.pm.separate-containers .site-main > * { background-color: transparent; }
body.pm .site-content { max-width: none; }

/* ---------- Khung trang: rộng, lề co giãn ---------- */
body.pm .mlib-header__inner,
body.pm .mlib-home,
body.pm .mlib-catalog,
body.pm .gt-hero__inner,
body.pm .gt-hero__trust,
body.pm .mlib-footer__inner {
  max-width: var(--pm-khung);
  padding-left: var(--pm-le);
  padding-right: var(--pm-le);
}
body.pm .site.grid-container,
body.pm .grid-container { max-width: none; }

/* ---------- Đầu trang: lớp kính nổi trên nội dung ---------- */
body.pm .mlib-header {
  view-transition-name: pm-dau;
  background: var(--pm-kinh);
  -webkit-backdrop-filter: var(--pm-kinh-mo);
  backdrop-filter: var(--pm-kinh-mo);
  box-shadow: 0 1px 0 var(--pm-toc);
  transition: box-shadow var(--pm-vua) ease, background-color var(--pm-vua) ease;
}
body.pm .mlib-header::after { height: 3px; }
html.pm-cuon body.pm .mlib-header { background: rgba(255, 252, 247, 0.9); box-shadow: 0 1px 0 var(--pm-toc), 0 14px 30px -18px rgba(19, 42, 79, 0.35); }
body.pm .mlib-header__inner { min-height: 68px; }
body.pm .mlib-menu__link { border-radius: var(--pm-goc); font-size: 0.9688rem; transition: background-color var(--pm-nhanh) ease, color var(--pm-nhanh) ease; }
@media (min-width: 961px) {
  /* Bảng menu xổ: lớp nổi tầng 3, bung ra kiểu lò xo */
  body.pm .mlib-menu__panel {
    border: 0;
    border-radius: var(--pm-goc-l);
    padding: 8px;
    background: #fff;
    box-shadow: var(--pm-tang-3);
  }
  @supports (transition-behavior: allow-discrete) {
    body.pm .mlib-menu__panel {
      opacity: 0;
      translate: 0 -8px;
      scale: 0.97;
      transform-origin: 20% 0;
      transition: opacity 160ms ease, translate 360ms var(--pm-nay), scale 360ms var(--pm-nay), display 160ms allow-discrete;
    }
    body.pm .mlib-menu__item:hover > .mlib-menu__panel,
    body.pm .mlib-menu__item:focus-within > .mlib-menu__panel,
    body.pm .mlib-menu__item.is-open > .mlib-menu__panel { opacity: 1; translate: none; scale: none; }
    @starting-style {
      body.pm .mlib-menu__item:hover > .mlib-menu__panel,
      body.pm .mlib-menu__item:focus-within > .mlib-menu__panel,
      body.pm .mlib-menu__item.is-open > .mlib-menu__panel { opacity: 0; translate: 0 -8px; scale: 0.97; }
    }
  }
}
body.pm .mlib-menu__item--cta > .mlib-menu__link,
body.pm .mlib-login,
body.pm .mlib-login:visited { border-radius: var(--pm-goc); }
body.pm .mlib-login,
body.pm .mlib-login:visited { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 26, 51, 0.4), 0 10px 18px -10px rgba(19, 42, 79, 0.7); }

/* ---------- Nút: góc 12px, mặt có ánh sáng, bóng màu; nhấc khi rê, lún khi bấm ---------- */
body.pm .mlib-btn,
body.pm .mlib-btn-primary,
body.pm .gt-btn,
body.pm .mlib-home__more,
body.pm .mlib-promo__btn,
body.pm .gt-hero__search button {
  border-radius: var(--pm-goc);
  transition: translate var(--pm-vua) var(--pm-nay), box-shadow var(--pm-vua) ease, background-color var(--pm-nhanh) ease, border-color var(--pm-nhanh) ease;
}
body.pm .mlib-btn { border: 0; box-shadow: var(--pm-tang-1); }
body.pm .mlib-btn:hover { box-shadow: var(--pm-tang-2); }
body.pm .mlib-btn--get,
body.pm .mlib-btn--get:visited { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(154, 74, 11, 0.5), 0 12px 22px -12px rgba(247, 147, 30, 0.95); }
body.pm .mlib-btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 26, 51, 0.4), 0 12px 20px -12px rgba(19, 42, 79, 0.8); }
body.pm .gt-btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(15, 76, 153, 0.6), 0 14px 24px -12px rgba(21, 96, 189, 0.9); }
@media (hover: hover) {
  body.pm .mlib-btn:hover,
  body.pm .mlib-btn-primary:hover,
  body.pm .gt-btn:hover,
  body.pm .mlib-home__more:hover { translate: 0 -2px; }
}
body.pm .mlib-btn:active,
body.pm .mlib-btn-primary:active,
body.pm .gt-btn:active,
body.pm .mlib-home__more:active { translate: 0 1px; transition-duration: 60ms; }
body.pm .mlib-home__more {
  min-height: 48px;
  padding: 0 26px;
  margin-top: var(--pm-tho-nho);
  border: 0;
  background: #fff;
  font-size: 0.9688rem;
  box-shadow: var(--pm-tang-1);
}
body.pm .mlib-home__more:hover { box-shadow: var(--pm-tang-2); }
body.pm .mlib-home__more .mlib-icon { transition: translate var(--pm-vua) var(--pm-nay); }
body.pm .mlib-home__more:hover .mlib-icon { translate: 4px 0; }

/* ---------- Nhãn / chip: chữ nhật góc 8px ---------- */
body.pm .mlib-tag { border-radius: var(--pm-goc-s); padding: 3px 9px; font-size: 0.78rem; letter-spacing: 0.005em; }
body.pm .mlib-filter-list__count,
body.pm .mlib-chips__count { border-radius: 7px; }

/* ---------- Tiêu đề mục: lớn, có khoảng thở ---------- */
body.pm .mlib-home__heading {
  margin-bottom: var(--pm-tho-nho);
  gap: 14px;
  font-size: var(--pm-chu-m);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
body.pm .mlib-home__heading::before {
  width: 12px;
  height: 1.15em;
  border-radius: 4px;
  transform: none;
  box-shadow: none;
  background: linear-gradient(180deg, var(--mlib-accent), #ffb65c);
}
body.pm .mlib-home__block + .mlib-home__block .mlib-home__heading::before,
body.pm .mlib-doc-section + .mlib-doc-section .mlib-home__heading::before { background: linear-gradient(180deg, #1560bd, #4a94ea); }
body.pm .mlib-doc-section + .mlib-doc-section + .mlib-doc-section .mlib-home__heading::before { background: linear-gradient(180deg, #15803d, #3fb36a); }
body.pm .mlib-home__block { margin-bottom: var(--pm-tho); }
body.pm .mlib-home { padding-top: clamp(32px, 4vw, 56px); padding-bottom: var(--pm-tho); }

/* ---------- Trang chủ: bố cục rộng ---------- */
@media (min-width: 960px) {
  body.pm .mlib-home__layout { grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 380px); gap: clamp(28px, 3.4vw, 56px); }
}
body.pm.home .mlib-tiles { gap: clamp(12px, 1.6vw, 24px); margin-bottom: var(--pm-tho); }
body.pm .mlib-tiles .mlib-tile {
  border: 0;
  border-radius: var(--pm-goc-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 4px rgba(19, 42, 79, 0.12), 0 20px 34px -18px var(--tile-bg, rgba(19, 42, 79, 0.6));
  transition: translate 420ms var(--pm-nay), rotate 420ms var(--pm-nay), box-shadow var(--pm-vua) ease, background-size 0.3s ease;
}
@media (hover: hover) {
  body.pm .mlib-tiles .mlib-tile:hover {
    transform: none;
    translate: 0 -8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 8px rgba(19, 42, 79, 0.14), 0 34px 44px -20px var(--tile-bg, rgba(19, 42, 79, 0.7));
  }
  body.pm .mlib-tiles .mlib-tile:nth-child(odd):hover { rotate: -1.2deg; }
  body.pm .mlib-tiles .mlib-tile:nth-child(even):hover { rotate: 1.2deg; }
}
body.pm .mlib-tiles .mlib-tile__label { font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem); }

/* ---------- Thẻ tài liệu: mặt trắng nổi (viền tóc + bóng tầng), lưới tự chia cột ---------- */
body.pm .mlib-doc-grid { gap: clamp(14px, 1.6vw, 24px); }
@media (min-width: 640px) {
  body.pm .mlib-home__main .mlib-doc-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
}
body.pm .mlib-doc-grid .mlib-doc-card,
body.pm .mlib-doc-card--slide,
body.pm .mlib-list-grid .mlib-doc-card,
body.pm .mlib-post-card,
body.pm .mlib-post-row {
  border: 0;
  border-radius: var(--pm-goc-l);
  background: #fff;
  box-shadow: var(--pm-tang-1);
  transition: translate 420ms var(--pm-nay), box-shadow var(--pm-vua) ease;
}
@media (hover: hover) {
  body.pm .mlib-doc-grid .mlib-doc-card:hover,
  body.pm .mlib-doc-card--slide:hover,
  body.pm .mlib-list-grid .mlib-doc-card:hover,
  body.pm .mlib-post-card:hover,
  body.pm .mlib-post-row:hover {
    transform: none;
    translate: 0 -6px;
    box-shadow: var(--pm-re-the, var(--pm-tang-2));
  }
}
body.pm .mlib-doc-grid .mlib-doc-card { padding: 10px 10px 14px; }
body.pm .mlib-doc-card__thumb,
body.pm .mlib-list-card__thumb,
body.pm .mlib-post-row__thumb,
body.pm .mlib-post-card__thumb { border-radius: var(--pm-goc); }
body.pm .mlib-doc-grid .mlib-doc-card__title { font-size: var(--pm-chu-the); line-height: 1.42; margin-bottom: 10px; padding: 0 4px; }
body.pm .mlib-doc-grid .mlib-doc-card__meta { font-size: var(--pm-chu-phu); padding: 0 4px; color: #475569; }
body.pm .mlib-doc-card__meta,
body.pm .mlib-list-card__meta,
body.pm .mlib-rank-item__meta { font-size: var(--pm-chu-phu); color: #475569; }
/* Tờ giấy trên bìa: nghiêng và nhấc lên khi rê vào thẻ (lớp thứ hai chuyển động lệch nhịp → có chiều sâu) */
body.pm .mlib-cover-tile__sheet { transition: translate 480ms var(--pm-nay), rotate 480ms var(--pm-nay), box-shadow var(--pm-vua) ease; }
@media (hover: hover) {
  body.pm .mlib-doc-card:hover .mlib-cover-tile__sheet,
  body.pm .mlib-rank-item:hover .mlib-cover-tile__sheet { transform: none; translate: 0 -5px; rotate: -2.5deg; }
}

/* Danh sách (trang lớp / tìm kiếm) */
body.pm .mlib-list-grid { gap: clamp(14px, 1.5vw, 22px); }
body.pm .mlib-list-grid .mlib-doc-card__title { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem); line-height: 1.4; }

/* Tin tức dạng hàng */
body.pm .mlib-post-list { display: grid; gap: clamp(12px, 1.3vw, 18px); }
body.pm .mlib-post-row { padding: 12px; margin: 0; }
body.pm .mlib-post-row__title { font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.4; }
body.pm .mlib-post-row__excerpt { font-size: 0.9063rem; line-height: 1.6; }

/* ---------- Cột phụ: khối nổi, không viền dày ---------- */
body.pm .mlib-side-box,
body.pm .mlib-side-card,
body.pm .mlib-course-box {
  border: 0;
  border-radius: var(--pm-goc-l);
  background: #fff;
  box-shadow: var(--pm-tang-1);
  margin-bottom: clamp(16px, 1.8vw, 26px);
  overflow: hidden;
}
body.pm .mlib-side-box__title { font-size: 1.2rem; padding: 14px 18px; }
body.pm .mlib-rank-item { border-radius: var(--pm-goc); transition: background-color var(--pm-nhanh) ease, translate var(--pm-vua) var(--pm-nay); }
@media (hover: hover) { body.pm .mlib-rank-item:hover { translate: 4px 0; } }
body.pm .mlib-rank-item__title { font-size: 0.9375rem; line-height: 1.42; }
body.pm .mlib-promo { border: 0; border-radius: var(--pm-goc-xl); box-shadow: var(--pm-tang-2); transition: translate 420ms var(--pm-nay), box-shadow var(--pm-vua) ease; }
@media (hover: hover) { body.pm .mlib-promo:hover { translate: 0 -6px; box-shadow: var(--pm-tang-3); } }
body.pm .mlib-chips a,
body.pm .mlib-chips__item { border-radius: var(--pm-goc); }

/* ---------- Banner trang chủ: thoáng hơn, chữ lớn hơn, hình trang trí trôi theo chuột ---------- */
body.pm .gt-hero__inner { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(36px, 4vw, 64px); gap: clamp(32px, 5vw, 88px); }
body.pm .gt-hero h1 { font-size: var(--pm-chu-xl); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
body.pm .gt-hero__lead { font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem); line-height: 1.65; max-width: 52ch; }
body.pm .gt-hero__search { border-radius: var(--pm-goc-l); }
body.pm .gt-hero__search button { border-radius: var(--pm-goc); }
body.pm .gt-hero__quick a { border-radius: var(--pm-goc); transition: translate var(--pm-vua) var(--pm-nay), background-color var(--pm-nhanh) ease, border-color var(--pm-nhanh) ease, color var(--pm-nhanh) ease; }
@media (hover: hover) { body.pm .gt-hero__quick a:hover { translate: 0 -3px; } }
body.pm .gt-hero__stats dd { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.75rem); }
body.pm .gt-hero__eyebrow,
body.pm .gt-chip { border-radius: var(--pm-goc-s); }
body.pm .gt-doccard { border-radius: var(--pm-goc-xl); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18), 0 44px 70px -28px rgba(0, 0, 0, 0.7); }
body.pm .gt-icon-btn { border-radius: var(--pm-goc); }
body.pm .gt-hero__deco,
body.pm .gt-hero__formula { transition: translate 900ms var(--pm-em); }
body.pm .gt-hero__deco { translate: calc(var(--pm-px, 0) * -26px) calc(var(--pm-py, 0) * -20px); }
body.pm .gt-hero__formula { translate: calc(var(--pm-px, 0) * 18px) calc(var(--pm-py, 0) * 14px); }
body.pm .gt-stage { transition: translate 900ms var(--pm-em); translate: calc(var(--pm-px, 0) * 14px) calc(var(--pm-py, 0) * 10px); }
/* Vào trang: các khối banner nhô lên lần lượt (tiêu đề không mờ → không chậm LCP) */
body.pm .gt-hero__text > * { animation: pm-len-mo 820ms var(--pm-nay) both; }
body.pm .gt-hero__text > h1 { animation-name: pm-len; }
body.pm .gt-hero__text > :nth-child(2) { animation-delay: 70ms; }
body.pm .gt-hero__text > :nth-child(3) { animation-delay: 140ms; }
body.pm .gt-hero__text > :nth-child(4) { animation-delay: 210ms; }
body.pm .gt-hero__text > :nth-child(5) { animation-delay: 280ms; }
body.pm .gt-hero__text > :nth-child(n + 6) { animation-delay: 350ms; }
body.pm .gt-shelf { animation: pm-len-mo 900ms var(--pm-nay) 160ms both; }

/* ---------- Đường dẫn: dòng chữ thoáng, không đóng hộp viên thuốc ---------- */
body.pm .mlib-breadcrumb--bar {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: clamp(14px, 1.8vw, 26px);
}

/* ---------- Trang danh mục / tìm kiếm ---------- */
body.pm .mlib-catalog { padding-top: clamp(20px, 2.6vw, 40px); padding-bottom: var(--pm-tho); }
body.pm .mlib-catalog__title { font-size: var(--pm-chu-l); line-height: 1.2; letter-spacing: -0.012em; text-wrap: balance; }
body.pm .mlib-side-card__title { font-size: 1.2rem; }
body.pm .mlib-filter-list a { border-radius: var(--pm-goc); min-height: 44px; font-size: 0.9375rem; background: transparent; transition: background-color var(--pm-nhanh) ease, color var(--pm-nhanh) ease, translate var(--pm-vua) var(--pm-nay); }
body.pm .mlib-filter-list a:hover { background: var(--gt-blue-bg); }
body.pm .mlib-filter-list a.is-active { background: var(--gt-navy); box-shadow: 0 10px 18px -10px rgba(19, 42, 79, 0.75); }
body.pm .mlib-filter-list a:not(.is-active) .mlib-filter-list__count { background: var(--gt-soft); }
@media (hover: hover) { body.pm .mlib-filter-list a:not(.is-active):hover { translate: 3px 0; } }
/* Thanh sắp xếp: lớp kính dính dưới đầu trang khi cuộn danh sách dài */
body.pm .mlib-list-toolbar { border-radius: var(--pm-goc-l); background: rgba(244, 239, 230, 0.86); -webkit-backdrop-filter: var(--pm-kinh-mo); backdrop-filter: var(--pm-kinh-mo); }
body.pm .mlib-list-sort a,
body.pm .mlib-list-toolbar a,
body.pm .mlib-list-toolbar button { border-radius: var(--pm-goc); }
body.pm .mlib-pagination .page-numbers { min-width: 44px; height: 44px; border-radius: var(--pm-goc); box-shadow: none; transition: translate var(--pm-vua) var(--pm-nay), background-color var(--pm-nhanh) ease; }
body.pm .mlib-pagination .page-numbers.current { box-shadow: 0 10px 18px -10px rgba(21, 96, 189, 0.9); }
@media (hover: hover) { body.pm .mlib-pagination a.page-numbers:hover { translate: 0 -3px; } }

/* ---------- Trang chi tiết tài liệu ---------- */
body.pm .mlib-doc__title { font-size: var(--pm-chu-l); line-height: 1.22; letter-spacing: -0.012em; text-wrap: balance; }
body.pm .mlib-viewer,
body.pm .mlib-files,
body.pm .mlib-key-facts,
body.pm .mlib-doc-promo,
body.pm .mlib-tabs,
body.pm .mlib-reviews__card {
  border: 0;
  border-radius: var(--pm-goc-xl);
  box-shadow: var(--pm-tang-1);
}
body.pm .mlib-viewer { box-shadow: var(--pm-tang-2); }
body.pm .mlib-doc-section { margin-bottom: var(--pm-tho); }
body.pm .mlib-mini-doc { border-radius: var(--pm-goc); transition: background-color var(--pm-nhanh) ease, translate var(--pm-vua) var(--pm-nay); }
@media (hover: hover) { body.pm .mlib-mini-doc:hover { translate: 4px 0; } }
body.pm .mlib-doc-card--slide .mlib-doc-card__meta { color: #475569; font-size: var(--pm-chu-phu); }
body.pm .mlib-doc-card--slide .mlib-doc-card__title { font-size: 0.9375rem; }
body.pm .mlib-ftabs__tab,
body.pm .mlib-tabs__tab { border-radius: var(--pm-goc); }

/* ---------- Chân trang: lớp nền đậm có quầng sáng, rộng theo khung mới ---------- */
body.pm .mlib-footer { background: radial-gradient(900px 380px at 14% 100%, rgba(21, 96, 189, 0.35), transparent 70%), var(--gt-navy); } /* quầng sáng ở ĐÁY: mép trên đúng màu răng cưa, nối liền mạch (12/11) */
body.pm .mlib-footer { font-size: 0.9375rem; }

/* ---------- Ô nhập ---------- */
body.pm .mlib-side-search input,
body.pm .mlib-catalog input[type="search"],
body.pm .mlib-catalog input[type="text"],
body.pm .mlib-catalog select { border-radius: var(--pm-goc); }

/* ---------- Xóa nốt "viên thuốc" và "hộp lồng hộp" còn sót ---------- */
@media (min-width: 960px) {
  /* Menu: bỏ khung viên thuốc bao quanh; mục đang xem là phiến navy góc 12px */
  body.pm .mlib-menu { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 2px; }
  body.pm .mlib-menu > .mlib-menu__item > .mlib-menu__link[aria-current="page"] { box-shadow: 0 10px 18px -10px rgba(19, 42, 79, 0.75); }
}
body.pm .mlib-menu__panel { border-top: 0; }
/* Trang chủ: bỏ lưới ô ly sau nội dung (đã có quầng sáng nền) */
body.pm.home .mlib-home::before { display: none; }
/* Trang danh mục: phần kết quả không đóng khung nữa — nội dung nằm thẳng trên nền, chỉ thẻ mới nổi */
body.pm .mlib-list-main { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
@media (min-width: 960px) {
  body.pm .mlib-list-layout { grid-template-columns: clamp(250px, 21vw, 300px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
}
@media (min-width: 768px) {
  body.pm .mlib-list-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
}
body.pm .mlib-list-sort a,
body.pm .mlib-list-perpage a,
body.pm .mlib-list-chips a,
body.pm .mlib-list-card__btn { border-radius: var(--pm-goc); }
body.pm .mlib-list-sort a.is-active,
body.pm .mlib-list-perpage a.is-active,
body.pm .mlib-list-sort a.is-active:hover,
body.pm .mlib-list-perpage a.is-active:hover { box-shadow: 0 10px 18px -10px rgba(19, 42, 79, 0.75); }
body.pm .mlib-list-card__btn {
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(154, 74, 11, 0.5), 0 12px 20px -12px rgba(247, 147, 30, 0.95);
  transition: translate var(--pm-vua) var(--pm-nay), background-color var(--pm-nhanh) ease;
}
@media (hover: hover) { body.pm .mlib-list-card__btn:hover { translate: 0 -2px; } }
body.pm .mlib-list-card__btn:active { translate: 0 1px; }
body.pm .mlib-list-head { margin-bottom: clamp(12px, 1.6vw, 22px); }
body.pm .mlib-catalog__desc { font-size: 1rem; line-height: 1.65; max-width: 78ch; }

/* ---------- Điện thoại ---------- */
@media (max-width: 639px) {
  body.pm .mlib-doc-grid .mlib-doc-card__title { font-size: 0.9375rem; }
  body.pm .mlib-home__block { margin-bottom: 44px; }
  body.pm .mlib-header__inner { min-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  body.pm .gt-hero__text > *,
  body.pm .gt-shelf { animation: none !important; }
  body.pm .gt-hero__deco,
  body.pm .gt-hero__formula,
  body.pm .gt-stage { translate: none; transition: none; }
  body.pm .mlib-tiles .mlib-tile:hover,
  body.pm .mlib-doc-card:hover,
  body.pm .mlib-post-row:hover,
  body.pm .mlib-post-card:hover,
  body.pm .mlib-promo:hover,
  body.pm .mlib-btn:hover,
  body.pm .gt-btn:hover,
  body.pm .mlib-home__more:hover,
  body.pm .mlib-rank-item:hover,
  body.pm .mlib-mini-doc:hover,
  body.pm .mlib-filter-list a:hover,
  body.pm .mlib-pagination a.page-numbers:hover,
  body.pm .mlib-doc-card:hover .mlib-cover-tile__sheet { translate: none !important; rotate: none !important; }
  body.pm .mlib-menu__panel { transition: none; }
}

/* ---------- Đồng bộ góc cho các thành phần còn lại (tab, nút phụ, nhãn giá, điều hướng tài khoản…) ---------- */
body.pm .mlib-chips a,
body.pm .mlib-tabs__list [role="tab"],
body.pm .mlib-viewer .mlib-viewer__zoom,
body.pm .mlib-viewer .mlib-viewer__read,
body.pm .mlib-pill-list a,
body.pm .gt-social__btn,
body.pm .gt-dash__nav a,
body.pm .mlib-legal__contact-list a,
body.pm .mlib-footer__help .mlib-footer__contact a,
body.pm .tlt-aff__nav,
body.pm .tlt-aff__nav ul,
body.pm .tlt-aff__nav a,
body.pm .gt-hero__quick a { border-radius: var(--pm-goc); }
body.pm .gt-pill,
body.pm .gt-pay__timer,
body.pm .gt-plans__eyebrow,
body.pm .gt-plan__flag,
body.pm .gt-plan__benefits em,
body.pm .mlib-doc-card__price.mlib-price,
body.pm .mlib-doc__badge--price .mlib-price,
body.pm .mlib-buy__off,
body.pm .mlib-coins,
body.pm .mlib-topic-suggest__kind,
body.pm .mlib-filter-more__badge,
body.pm .mlib-tiles .mlib-tile__count,
body.pm .gt-hero__eyebrow,
body.pm .gt-chip { border-radius: var(--pm-goc-s); }
/* Trang chi tiết: dải chọn tệp và nút Đọc / Tải theo ngôn ngữ tầng */
body.pm .mlib-ftabs { border: 0; border-radius: var(--pm-goc-l); background: var(--gt-soft); }
body.pm .mlib-ftabs__tab.is-active,
body.pm .mlib-ftabs__tab[aria-selected="true"] { box-shadow: var(--pm-tang-1); }
body.pm .mlib-files .mlib-btn,
body.pm .mlib-files a[class*="btn"],
body.pm .mlib-files button { border-radius: var(--pm-goc); }
body.pm .mlib-catalog__title { font-weight: 800; }
body.pm .gt-hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.5rem); text-wrap: balance; }

/* ---------- Các khối còn lại (tài khoản, gói, thanh toán, giới thiệu, liên hệ, pháp lý, bài viết):
   giữ nguyên độ dày viền (không xê dịch bố cục), viền trong suốt, nổi bằng bóng tầng ---------- */
body.pm .gt-auth,
body.pm .gt-dash__side,
body.pm .gt-panel,
body.pm .gt-stat,
body.pm .gt-plan-status,
body.pm .gt-pay__qrbox,
body.pm .gt-plan article,
body.pm .gt-plans__trust li,
body.pm .gt-user__panel,
body.pm .gt-coins__balance,
body.pm .gt-task,
body.pm .mlib-article,
body.pm .mlib-legal,
body.pm .mlib-legal__head,
body.pm .mlib-legal__toc details,
body.pm .mlib-share__menu,
body.pm .mlib-about__hero,
body.pm .mlib-about__stats li,
body.pm .mlib-about__card,
body.pm .mlib-about__who li,
body.pm .mlib-about__story,
body.pm .mlib-contact__card,
body.pm .mlib-topic-req,
body.pm .mlib-topic-group,
body.pm .mlib-doc-video__card,
body.pm .mlib-topic-suggest {
  border-color: transparent;
  border-radius: var(--pm-goc-l);
  background-clip: padding-box;
  box-shadow: var(--pm-tang-1);
}
body.pm .gt-auth,
body.pm .gt-user__panel,
body.pm .mlib-share__menu { box-shadow: var(--pm-tang-2); }
body.pm .gt-input input,
body.pm .gt-input select,
body.pm .gt-input textarea,
body.pm .gt-copy,
body.pm .mlib-side-search,
body.pm .mlib-search input[type="search"],
body.pm .mlib-filter select,
body.pm .mlib-slider .mlib-slider__nav,
body.pm .mlib-carousel__nav button,
body.pm .mlib-doc-video__list button { border-radius: var(--pm-goc); }

/* Nhãn định dạng (PDF / Word) trên thẻ: tối thiểu 12px */
body.pm .mlib-list-card__format,
body.pm .mlib-doc-card__format,
body.pm [class*="mlib-format--"] { font-size: 0.75rem; }
body.pm .mlib-files__fmt { font-size: 0.75rem; }

/* ---------- Rà lần 2: bỏ hết "mép dày" còn sót ---------- */
body.pm .mlib-menu__item--cta > .mlib-menu__link,
body.pm .mlib-menu__item--cta > .mlib-menu__link:hover,
body.pm .mlib-menu__item--cta > .mlib-menu__link[aria-current="page"],
body.pm .mlib-search button,
body.pm .mlib-promo__btn,
body.pm .mlib-to-top,
body.pm .mlib-btn--get:hover,
body.pm .mlib-btn--get:focus,
body.pm .mlib-doc-video__disc,
body.pm .rd-cta { box-shadow: var(--pm-b-cam); }
body.pm .mlib-to-top { border-radius: var(--pm-goc); }
body.pm .gt-hero__search button { box-shadow: var(--pm-b-cam); }
body.pm .mlib-btn--secondary,
body.pm .mlib-btn--secondary:visited,
body.pm .mlib-btn--preview,
body.pm .gt-social__btn { border-color: transparent; box-shadow: var(--pm-tang-1); }
body.pm .mlib-btn--secondary:hover,
body.pm .mlib-btn--preview:hover,
body.pm .mlib-btn--preview:focus,
body.pm .gt-social__btn:hover { border-color: transparent; box-shadow: 0 2px 4px rgba(19, 42, 79, 0.06), 0 16px 28px -12px rgba(247, 147, 30, 0.55); }
body.pm .mlib-about__step-no,
body.pm .mlib-rank-item--top.is-medal .mlib-rank-item__rank { box-shadow: 0 6px 12px -6px rgba(19, 42, 79, 0.45); }
body.pm .mlib-hero { box-shadow: var(--pm-tang-3); border-radius: var(--pm-goc-xl); }
/* Nút "Tìm kiếm tài liệu" lắc nhắc: giữ nhịp cũ, đổi bóng trong khung hình */
@keyframes mlib-cta-alert {
  0%, 86%, 100% { transform: none; box-shadow: var(--pm-b-cam), 0 0 0 0 rgba(247, 147, 30, 0); }
  88% { transform: rotate(-5deg) scale(1.06); box-shadow: var(--pm-b-cam), 0 0 0 0 rgba(247, 147, 30, 0.55); }
  90% { transform: rotate(5deg) scale(1.06); }
  92% { transform: rotate(-4deg) scale(1.05); }
  94% { transform: rotate(3deg) scale(1.04); }
  96% { transform: rotate(-1.5deg) scale(1.02); box-shadow: var(--pm-b-cam), 0 0 0 10px rgba(247, 147, 30, 0); }
  98% { transform: none; }
}

/* ==========================================================================
   BẢN GỌN CHUYỂN ĐỘNG (12/11, chủ repo: "giảm bớt animation ở các thẻ, thừa, nặng máy")
   Thẻ KHÔNG còn bay / nảy / nghiêng / hiện dần. Rê vào thẻ: chỉ đổi viền + bóng trong 160ms.
   Giữ: nút lún khi bấm, menu xổ, đầu trang kính, đổi trang mượt.
   ========================================================================== */
body.pm .mlib-doc-grid .mlib-doc-card,
body.pm .mlib-doc-card--slide,
body.pm .mlib-list-grid .mlib-doc-card,
body.pm .mlib-post-card,
body.pm .mlib-post-row,
body.pm .mlib-promo,
body.pm .mlib-tiles .mlib-tile { transition: box-shadow 160ms ease; }
@media (hover: hover) {
  body.pm .mlib-doc-grid .mlib-doc-card:hover,
  body.pm .mlib-doc-card--slide:hover,
  body.pm .mlib-list-grid .mlib-doc-card:hover,
  body.pm .mlib-post-card:hover,
  body.pm .mlib-post-row:hover,
  body.pm .mlib-promo:hover,
  body.pm .mlib-tiles .mlib-tile:hover,
  body.pm .mlib-tiles .mlib-tile:nth-child(odd):hover,
  body.pm .mlib-tiles .mlib-tile:nth-child(even):hover,
  body.pm .mlib-rank-item:hover,
  body.pm .mlib-mini-doc:hover,
  body.pm .mlib-filter-list a:not(.is-active):hover,
  body.pm .mlib-pagination a.page-numbers:hover,
  body.pm .gt-hero__quick a:hover { transform: none; translate: none; rotate: none; }
  body.pm .mlib-doc-card:hover .mlib-cover-tile__sheet,
  body.pm .mlib-rank-item:hover .mlib-cover-tile__sheet { transform: none; translate: none; rotate: none; } /* KHÔNG đụng box-shadow: tờ giấy giữ nguyên bóng của nó khi rê (12/11: từng ghi none làm mất bóng) */
}
body.pm .mlib-cover-tile__sheet,
body.pm .mlib-rank-item,
body.pm .mlib-mini-doc,
body.pm .mlib-filter-list a,
body.pm .gt-hero__deco,
body.pm .gt-hero__formula,
body.pm .gt-stage { transition: none; translate: none; }
body.pm .mlib-rank-item,
body.pm .mlib-mini-doc,
body.pm .mlib-filter-list a { transition: background-color 140ms ease, color 140ms ease; }
/* Vào trang: không còn nhô lên lần lượt */
body.pm .gt-hero__text > *,
body.pm .gt-shelf { animation: none; }
/* Vòng lặp vô hạn của giao diện cũ (cúp lắc + pháo hoa, nút lắc 5 giây một lần): tắt */
body.pm .mlib-hot-cup,
body.pm .mlib-hot-cup-fx::before,
body.pm .mlib-hot-cup-fx::after,
body.pm .mlib-menu__item--cta > .mlib-menu__link { animation: none; }
/* Kính mờ chỉ giữ ở đầu trang (thanh sắp xếp dùng nền đặc → nhẹ máy hơn) */
body.pm .mlib-list-toolbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f4efe6; }

/* Đường dẫn: KHÔNG biểu tượng ngôi nhà, luôn bắt đầu bằng chữ "Trang chủ" (chủ repo 12/11) — kể cả trên điện thoại */
body.pm .mlib-breadcrumb__icon { display: none; }
body.pm .mlib-breadcrumb--bar .mlib-breadcrumb__home .mlib-breadcrumb__label {
  position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip: auto; clip-path: none; white-space: nowrap;
}
body.pm .mlib-breadcrumb.mlib-breadcrumb--bar .mlib-breadcrumb__home a { min-width: 0; min-height: 44px; padding: 0; justify-content: flex-start; }

/* Đầu trang theo quy cách chung (--pm-dau-*) */
body.pm .mlib-menu > .mlib-menu__item > .mlib-menu__link { display: inline-flex; align-items: center; min-height: var(--pm-dau-nut-cao); padding-top: 0; padding-bottom: 0; font-size: var(--pm-dau-nut-chu); font-weight: var(--pm-dau-menu-dam); }
body.pm .mlib-menu__item--cta > .mlib-menu__link,
body.pm .mlib-login,
body.pm .mlib-login:visited { min-height: var(--pm-dau-nut-cao); font-size: var(--pm-dau-nut-chu); font-weight: var(--pm-dau-nut-dam); }
body.pm .mlib-menu__item--cta > .mlib-menu__link { color: var(--gt-navy); }
@media (min-width: 960px) {
  body.pm .mlib-header__inner { min-height: var(--pm-dau-cao); }
  body.pm .mlib-menu__item--cta > .mlib-menu__link,
  body.pm .mlib-login { padding-left: var(--pm-dau-nut-le); padding-right: var(--pm-dau-nut-le); }
}

body.pm .mlib-menu > .mlib-menu__item--cta > .mlib-menu__link { font-weight: var(--pm-dau-nut-dam); }
body.pm .mlib-brand { flex: none; }
body.pm .mlib-menu-toggle { border-radius: var(--pm-goc); }
@media (min-width: 960px) {
  /* Máy tính: mũi tên mục con đang ẩn → bỏ khoảng chừa 32px để các mục cách đều như bên Luyện thi */
  body.pm .mlib-menu > .mlib-menu__item.has-children > .mlib-menu__link { padding-right: var(--pm-dau-menu-le); }
  body.pm .mlib-menu > .mlib-menu__item > .mlib-menu__link { padding-left: var(--pm-dau-menu-le); }
}
@media (min-width: 960px) and (max-width: 1199px) {
  /* Màn vừa (iPad ngang, laptop nhỏ): thu lề để logo không bị ép */
  body.pm .mlib-menu > .mlib-menu__item > .mlib-menu__link,
  body.pm .mlib-menu > .mlib-menu__item.has-children > .mlib-menu__link { padding-left: 9px; padding-right: 9px; }
  body.pm .mlib-menu__item--cta > .mlib-menu__link,
  body.pm .mlib-login { padding-left: 12px; padding-right: 12px; }
  body.pm .mlib-header__inner { gap: 10px; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  /* iPad ngang / laptop nhỏ: logo thấp hơn, ẩn mục "Trang chủ" (logo đã là lối về trang chủ) → vừa một hàng, không tràn */
  body.pm .mlib-brand__logo--wide { height: 42px; width: auto; }
  body.pm .mlib-menu > .mlib-menu__item:first-child { display: none; }
}

/* Điện thoại hẹp (đo 320px: đầu trang tràn 40px sau khi nút Đăng nhập to lên): cho logo co lại, nút gọn hơn */
@media (max-width: 959px) {
  body.pm .mlib-brand { flex: 0 1 auto; min-width: 0; }
  body.pm .mlib-brand__logo--wide { max-width: 100%; height: auto; max-height: 46px; }
}
@media (max-width: 399px) {
  body.pm .mlib-login, body.pm .mlib-login:visited { padding-left: 12px; padding-right: 12px; font-size: 0.875rem; }
  body.pm .mlib-header__inner { gap: 8px; }
}

/* ==========================================================================
   TÀI LIỆU HOT — BẢN GỌN (chủ repo 12/11: "nhìn AI, giả tạo… thiết kế lại thành 1 đề, thông tin đơn giản";
   "tờ đề và gộp cả thông tin bên cạnh, không rối loạn").
   MỘT thẻ trắng: tờ đề THẬT (ảnh trang 1 xem thử) bên trái + thông tin bên phải. Không kính mờ, không quầng sáng,
   không nhãn bay, không tờ lót nghiêng. HTML bản gọn do theme in khi bộ lọc gt_hero_shelf_gon bật (inc/thu-vien.php).
   ========================================================================== */
/* "Nhiều khung quá" (chủ repo 12/11): KHÔNG thẻ bao ngoài — khung duy nhất là chính tờ đề; chữ trắng nằm thẳng trên nền banner. */
body.pm .gt-shelf--gon { align-self: center; position: relative; z-index: 2; } /* compa trang trí đi phía SAU tờ đề, không đè lên */
/* Nhãn "Cập nhật dd/mm" trên tiêu đề: bỏ (chủ repo 12/11) */
body.pm .gt-hero__eyebrow { display: none; }
body.pm .gt-hero__eyebrow + .gt-hero__title { margin-top: 0; }

body.pm .gt-shelf--gon .gt-hot {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  align-items: stretch; /* cột thông tin cao bằng tờ đề: chữ ngang mép trên, nút ngang mép dưới (chủ repo 12/11) */
  gap: clamp(16px, 2vw, 28px);
  height: auto;
  margin-top: 16px;
}
body.pm .gt-shelf--gon .gt-hot[hidden] { display: none; }
body.pm .gt-hot__trang {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 210 / 297;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 30px 50px -24px rgba(0, 0, 0, 0.7);
}
body.pm .gt-hot__trang img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Tờ đề phẳng (khi chưa có ảnh xem thử): lấp đầy khung, không bóng riêng, không nghiêng */
body.pm .gt-hot__trang .gt-page { width: 100%; height: 100%; aspect-ratio: auto; gap: 9px; padding: 8% 9%; border-radius: 0; box-shadow: none; }
body.pm .gt-hot__trang .gt-page__q { gap: 5px; }
body.pm .gt-hot__tt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 2px 0; }
body.pm .gt-hot__tt > .gt-btn { margin-top: auto; }
body.pm .gt-hot__loai { margin: 0 0 10px; }
body.pm .gt-hot__loai .mlib-tag { margin: 0; }
body.pm .gt-hot__ten {
  margin: 0 0 10px;
  font: 800 clamp(1.15rem, 1rem + 0.5vw, 1.375rem)/1.3 var(--gt-head);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.pm .gt-hot__ten a { color: #fff; text-decoration: none; }
body.pm .gt-hot__ten a:hover { color: #ffd166; }
body.pm .gt-hot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 20px; font-size: 0.875rem; color: #cbd5e1; }
body.pm .gt-hot__meta > * + *::before { content: "·"; margin: 0 8px; color: #64748b; font-weight: 400; }
body.pm .gt-hot__gia { font-weight: 700; color: #86efac; }
body.pm .gt-hot__gia.mlib-price--price { color: #fdba74; }
body.pm .gt-hot__gia.mlib-price--unlocked { color: #93c5fd; }
/* RUY BĂNG (chủ repo 12/11): dải cam MỘT màu ôm ngang tờ đề, hai đầu nhọn chữ V, KHÔNG nơ ("bỏ cái của nợ này").
   Chữ trên dải là nút mở tài liệu. Bấm (pm.js): dải rơi, tờ đề nhấc ra — 420ms rồi mở; giảm chuyển động → mở ngay. */
body.pm .gt-hot__goi { position: relative; --bang-y: 86%; } /* dải ngang chân tờ đề */
/* Dải ruy băng = NÚT: chữ "Xem tài liệu" nằm trên dải (chủ repo 12/11: "ruy băng nhọn và dài ra", không nhãn trắng lơ lửng).
   Dải trước dài quá mép tờ; dải sau (tối hơn, thấp 8px) thò ra 2 đầu, cắt nhọn chữ V; tam giác gập nối hai lớp → kiểu băng rôn ruy băng. */
/* Dải luồn từ SAU tờ đề ra bên phải (chủ repo 12/11: "luồn từ sau, dài ra bên phải, không che tài liệu"):
   đầu trái giấu sau mép phải tờ đề, phần thò ra mang chữ, đuôi phải cắt nhọn chữ V. Nằm ngang chân tờ đề. */
body.pm .gt-hot__goi { align-self: start; }
body.pm .gt-hot__trang { position: relative; z-index: 2; }
body.pm .gt-hot__bang { display: none; }
body.pm .gt-hot__no,
body.pm .gt-hot__no:visited {
  position: absolute;
  z-index: 1;
  top: var(--bang-y);
  left: calc(100% - 16px); /* 16px giấu sau tờ đề */
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: -24px;
  padding: 0 40px 0 34px;
  background: #f7931e; /* MỘT màu cam của hệ thống, phẳng */
  color: var(--gt-navy);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  transition: translate 420ms cubic-bezier(0.4, 0, 1, 1), opacity 320ms ease;
}
body.pm .gt-hot__nhan { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.9375rem; white-space: nowrap; }
body.pm .gt-hot__nhan .mlib-icon { width: 16px; height: 16px; }
@media (hover: hover) { body.pm .gt-hot__no:hover { background: #ffa53a; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { body.pm .gt-hot__no:hover .gt-hot__nhan .mlib-icon { translate: 3px 0; transition: translate 160ms ease; } }
body.pm .gt-hot__no:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Chữ bên phải không bao giờ chạm dải: chừa chỗ ở chân cột */
body.pm .gt-hot__tt { padding-bottom: 64px; }
/* Bấm: gỡ gói */
body.pm .gt-hot__trang { transition: translate 420ms cubic-bezier(0.22, 1, 0.36, 1) 120ms, rotate 420ms cubic-bezier(0.22, 1, 0.36, 1) 120ms, box-shadow 420ms ease 120ms; }
body.pm .gt-hot.is-go .gt-hot__no { translate: -100% 0; opacity: 0; } /* dải rút vào sau tờ */
body.pm .gt-hot.is-go .gt-hot__bang { translate: 0 70px; opacity: 0; }
body.pm .gt-hot.is-go .gt-hot__trang { translate: 0 -12px; rotate: -2deg; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 40px 60px -24px rgba(0, 0, 0, 0.8); }
/* Đổi tài liệu: chỉ mờ dần, không bay */
body.pm .gt-shelf--gon .gt-hot.is-leaving { display: none; }
body.pm .gt-shelf--gon .gt-hot.is-entering { animation: pm-hot-vao 260ms ease both; }
@keyframes pm-hot-vao { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.pm .gt-shelf--gon .gt-hot.is-entering { animation: none; } }
@media (max-width: 1100px) {
  body.pm .gt-shelf--gon { max-width: 640px; }
}
@media (max-width: 640px) {
  body.pm .gt-shelf--gon .gt-hot { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
  body.pm .gt-hot__ten { -webkit-line-clamp: 3; font-size: 1.05rem; }
  body.pm .gt-hot__meta { margin-bottom: 12px; font-size: 0.8125rem; }
  body.pm .gt-hot__loai { margin-bottom: 6px; }
  body.pm .gt-shelf--gon .gt-hot { grid-template-columns: 150px minmax(0, 1fr); }
  body.pm .gt-hot__no { height: 44px; margin-top: -22px; padding: 0 30px 0 28px; }
  body.pm .gt-hot__tt { padding-bottom: 56px; }
    body.pm .gt-hot__nhan { font-size: 0.8125rem; }
}

/* Khoảng cách dọc của banner: bằng banner Luyện thi (chủ repo 12/11 "cân đối khoảng cách như bên luyện thi").
   Đo ở 1440px: trên 56 · tiêu đề→dẫn 12 · dẫn→tìm 22 · tìm→lối tắt 18 · lối tắt→số 22 · số→dải cam kết 32. */
body.pm .gt-hero__inner { padding-top: clamp(28px, 3.9vw, 56px); padding-bottom: clamp(24px, 2.2vw, 32px); }
body.pm .gt-hero__title { margin: 0 0 12px; }
body.pm .gt-hero__lead { margin-bottom: 22px; }
body.pm .gt-hero__quick { margin-top: 18px; }
body.pm .gt-hero__stats { margin-top: 22px; }
/* Điện thoại hẹp (≤ 399px: 320, Android 360, iPhone SE 375, iPhone 14 390): tờ đề nhỏ lại để tên đề không bị cắt chữ */
@media (max-width: 399px) {
  body.pm .gt-shelf--gon .gt-hot { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  body.pm .gt-hot__goi { --bang-y: 100%; } /* dải ngang mép dưới tờ đề: chữ 3 dòng bên cạnh không chạm dải */
  body.pm .gt-hot__ten { -webkit-line-clamp: 4; font-size: 1rem; }
}
/* Bỏ cặp nút trước/sau + số "1/5" (chủ repo 12/11: "ngứa mắt"). Vẫn chuyển được: tự chạy, bấm các vạch, phím mũi tên trên vạch. */
body.pm .gt-shelf--gon .gt-shelf__nav { display: none; }
body.pm .gt-shelf--gon .gt-shelf__tabs { margin-left: auto; }
@media (pointer: coarse) {
  body.pm .gt-hero .gt-shelf--gon .gt-shelf__tab { width: 44px; }
  body.pm .gt-hero .gt-shelf--gon .gt-shelf__tab[aria-selected="true"] { width: 60px; }
}

/* BỐ CỤC GỌN (chủ repo 12/11: "bố cục lại cho chuyên nghiệp, gọn chuẩn pro"):
   tờ đề cố định 208px bên trái, mép trên ngang hàng tiêu đề; hàng "Tài liệu HOT + vạch chuyển" nằm ĐẦU cột thông tin,
   thẳng mép trái với tên đề → cả khối là một lưới 2 cột gọn, không còn tiêu đề trôi riêng một hàng. */
@media (min-width: 641px) {
  body.pm .gt-shelf--gon { --hot-to: 208px; --hot-gap: clamp(20px, 2.4vw, 32px); position: relative; }
  body.pm .gt-shelf--gon .gt-shelf__bar { position: absolute; z-index: 3; top: 0; left: calc(var(--hot-to) + var(--hot-gap)); right: 0; min-height: 44px; }
  body.pm .gt-shelf--gon .gt-hot { grid-template-columns: var(--hot-to) minmax(0, 1fr); gap: var(--hot-gap); margin-top: 0; }
  body.pm .gt-shelf--gon .gt-hot__tt { padding-top: 60px; padding-bottom: 64px; }
  body.pm .gt-hot__ten { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); -webkit-line-clamp: 3; }
  body.pm .gt-hot__loai { margin-bottom: 12px; }
}
@media (min-width: 641px) and (max-width: 1100px) { body.pm .gt-shelf--gon { max-width: 640px; } }
/* Điện thoại: tiêu đề + vạch chuyển chung một hàng (vạch canh phải), không tách thành hàng riêng */
@media (max-width: 640px) {
  body.pm .gt-shelf--gon .gt-shelf__bar { flex-wrap: nowrap; }
  body.pm .gt-shelf--gon .gt-shelf__tabs { order: 0; width: auto; margin-left: auto; }
}
/* Điện thoại: dòng thông tin gọn một hàng (bỏ lượt xem) — tránh dấu "·" rơi ra đầu dòng mới */
@media (max-width: 640px) { body.pm .gt-hot__m-xem { display: none; } }
@media (max-width: 359px) { body.pm .gt-hot__m-dang { display: none; } }

/* Dải cam kết dưới banner: biểu tượng trong Ô MÀU viền trắng, giống dải các bước bên Luyện thi (chủ repo 12/11 "cần màu mè như bên luyện thi").
   4 màu trong bộ 7 màu thương hiệu; trên ô cam dùng nét xanh đậm (không nét trắng trên cam). Không chuyển động. */
body.pm .gt-hero__trust .gt-ico {
  --o: #1560bd;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: var(--o);
  color: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
body.pm .gt-hero__trust li:nth-child(2) .gt-ico { --o: #f7931e; color: var(--gt-navy); rotate: 5deg; }
body.pm .gt-hero__trust li:nth-child(3) .gt-ico { --o: #15803d; rotate: -4deg; }
body.pm .gt-hero__trust li:nth-child(4) .gt-ico { --o: #be185d; rotate: 3deg; }
body.pm .gt-hero__trust .gt-ico .dim { opacity: 0.6; }
body.pm .gt-hero__trust .gt-ico .bg { fill: var(--o); }
body.pm .gt-hero__trust .gt-ico .soft { fill: rgba(255, 255, 255, 0.18); }
body.pm .gt-hero__trust .gt-ico text.num { fill: currentColor; }
body.pm .gt-hero__trust li:nth-child(2) .gt-ico .a { stroke: #fff; }
body.pm .gt-hero__trust li:nth-child(2) .gt-ico .af { fill: #fff; }
@media (max-width: 640px) {
  body.pm .gt-hero__trust .gt-ico { width: 38px; height: 38px; padding: 3px; border-radius: 10px; }
}
