/* =====================================================================
   Hệ tủ sách + Danh mục (DAC-TA-WEB §7.14, §7.15) · PA2
   Lớp tsh- (tủ sách), tc- (thẻ tủ K18), tmn- (thanh điều hướng), dm- (danh mục).
   Màu chỉ từ token --mz-* có sẵn (public_magazine.css / mz_theme.css): sáng, tối, quốc tang tự theo.
   Không bóng, không chuyển màu: dải son là dải đã có, kệ là đường kẻ. Dải tràn lề vẽ bằng border-image
   (tô đặc một màu ra hai bên, không làm trang cuộn ngang).
   Điểm ngắt: điện thoại < 600 · 600–1199 · ≥ 1200 (bản mẫu 1440). Menu thả xuống ≥ 1025.
   ===================================================================== */
/* Token màu đặt ở body (nơi mz_theme.css gán giá trị chế độ tối/quốc tang), không ở :root */
body { --tsh-muc: var(--mz-ink); --tsh-gutter: var(--app-shell-gutter, 32px); }
html[data-mz-theme="dark"] body { --tsh-muc: var(--mz-field); }
html body.theme-quoc-tang { --tsh-muc: var(--mz-band); }

.tsh-ico { display: block; flex: 0 0 auto; fill: currentColor; }
.tsh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tsh-scope { font-family: var(--mz-serif); color: var(--mz-ink); }
.tsh-scope a { color: inherit; text-decoration: none; }
.tsh-scope :focus-visible { outline: 2px solid var(--mz-focus); outline-offset: 3px; }
.tsh-scope button { font: inherit; }
.tsh-bleed { border-image: linear-gradient(var(--tsh-bleed, var(--mz-band)) 0 0) fill 0 / 0 / 0 100vw; }

/* Breadcrumb theo cây (5.13): dùng _breadcrumb.html sẵn có; điện thoại một liên kết quay lại */
.book-list-page.tsh-scope, .book-list-page.dm-scope { display: block; padding-bottom: 64px; }
.book-list-page.tsh-scope > .public-content-start-shell, .book-list-page.dm-scope > .public-content-start-shell { margin: 0; }
.tsh-crumb--m { display: none; margin: 0; }
.tsh-crumb--m a { display: inline-flex; align-items: flex-start; gap: 4px; min-height: 44px; padding-top: 12px; font: 700 14px/20px var(--mz-condensed); letter-spacing: .02em; color: var(--mz-red); }
.tsh-crumb--m.is-upper a { text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 599px) {
  body.page-public-content-start-lock .book-list-page-shell:has(> .tsh-scope) { padding-left: 0; padding-right: 0; }
  .tsh-scope .site-breadcrumb { display: none; }
  .tsh-crumb--m { display: block; }
}

/* Bìa: ô 2:3, ảnh không cắt, căn đáy giữa, viền trong 1px */
/* Khung giữ đúng 2:3 không phụ thuộc ảnh: ảnh tuyệt đối trong khung nên không chống được chiều cao (WebKit coi min-height:auto của flex item theo ảnh, làm khung cao hơn 2:3 với bìa hẹp). */
.tsh-cv, .dm-cv { position: relative; display: block; min-width: 0; min-height: 0; aspect-ratio: 2 / 3; }
.tsh-cv img, .dm-cv img { position: absolute; left: 0; right: 0; bottom: 0; display: block; margin: 0 auto; max-width: 100%; max-height: 100%; width: auto; height: auto; outline: 1px solid var(--mz-rule); outline-offset: -1px; }
.tsh-plank { height: 7px; box-sizing: border-box; border-top: 3px solid var(--mz-gold); border-bottom: 1px solid var(--mz-rule-strong); }
.tsh-sh__c { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-end; gap: 0 var(--g, 10px); height: var(--h, 132px); overflow: hidden; }
.tsh-sh__c .tsh-cv { height: var(--h, 132px); width: calc(var(--h, 132px) * 2 / 3); flex: 0 0 auto; }
body.theme-quoc-tang .tsh-cv img, body.theme-quoc-tang .dm-cv img { filter: grayscale(1); }
body.theme-quoc-tang a:hover .tsh-cv img, body.theme-quoc-tang a:focus-visible .tsh-cv img,
body.theme-quoc-tang a:hover .dm-cv img, body.theme-quoc-tang a:focus-visible .dm-cv img { filter: none; }

/* Chữ dùng chung */
.tsh-kick, .dm-k { margin: 0 0 6px; font: 700 13px/18px var(--mz-condensed); letter-spacing: .16em; text-transform: uppercase; color: var(--mz-red); }
.tsh-pm, .dm-meta { margin: 14px 0 0; font: 700 13px/18px var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-muted); }
.dm-meta b { color: var(--mz-ink); font-weight: 700; }
.tsh-more, .dm-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 14px/1 var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-red); white-space: nowrap; }
.tsh-more:hover, .dm-more:hover { text-decoration: underline 1px; text-underline-offset: 4px; }
.tsh-btn, .dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; box-sizing: border-box; padding: 0 22px; border: 1px solid var(--mz-red); background: none; color: var(--mz-red); font: 700 14px/1 var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.tsh-btn--n, .dm-btn--n { border-color: var(--mz-ink); color: var(--mz-ink); }
.tsh-btn:hover, .dm-btn:hover { background: var(--mz-red-fill); border-color: var(--mz-red-fill); color: var(--mz-on-red); }
.tsh-btn[aria-busy="true"], .dm-btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Đầu trang (mục lục /tu-sach, /danh-muc, thể loại): kẻ son 4, kicker, h1 52 */
.tsh-phead, .dm-head { position: relative; margin-top: 22px; padding-top: 22px; border-top: 4px solid var(--mz-red); }
.tsh-phead h1, .dm-head h1, .dm-head .dm-h1 { margin: 6px 0 0; font: 900 52px/1.1 var(--mz-serif); letter-spacing: -.015em; color: var(--mz-ink); text-wrap: balance; }
.tsh-phead__l, .dm-head__d { max-width: 760px; margin: 14px 0 0; font: italic 400 18px/1.65 var(--mz-serif); color: var(--mz-muted); }
@media (max-width: 599px) {
  .tsh-phead, .dm-head { margin-top: 10px; }
  .tsh-phead h1, .dm-head h1, .dm-head .dm-h1 { font-size: 34px; line-height: 1.15; }
  .dm-head h1, .dm-head .dm-h1 { font-size: 32px; }
  .tsh-phead__l, .dm-head__d { font-size: 16px; line-height: 1.6; }
}

/* Tiêu đề mục (kẻ son 3 + kẻ 1) */
.tsh-head, .dm-sh { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 32px; padding-top: 18px; border-top: 3px solid var(--mz-red); }
.tsh-head::before, .dm-sh::before { content: ""; position: absolute; inset-inline: 0; top: 3px; height: 1px; background: var(--mz-rule-strong); }
.tsh-sec__t, .dm-sh h2 { margin: 0; font: 900 28px/1.2 var(--mz-serif); letter-spacing: -.01em; color: var(--mz-ink); text-wrap: balance; }
.tsh-sec__t a:hover { color: var(--mz-red); }
@media (max-width: 599px) {
  .tsh-head, .dm-sh { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 14px; }
  .tsh-sec__t, .dm-sh h2 { font-size: 22px; }
  .tsh-kick, .dm-k { font-size: 12px; }
  .tsh-more, .dm-more { font-size: 13px; }
}

/* =====================================================================
   7.14.7 Thanh điều hướng công khai: TỦ SÁCH ▾ · DANH MỤC ▾
   ===================================================================== */
.tmn-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--mz-ink); font: 700 14px/1.2 var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.tmn-btn__m { font-size: 11px; letter-spacing: 0; transition: transform 160ms ease; }
.tmn-btn:hover, .tmn-btn[aria-expanded="true"], .tmn-btn.is-here { color: var(--mz-red); }
.tmn-btn.is-here { border-bottom-color: var(--mz-red); }
.tmn-btn[aria-expanded="true"] .tmn-btn__m { transform: rotate(180deg); }
.tmn-btn:focus-visible { outline: 2px solid var(--mz-focus); outline-offset: 3px; }
@media (min-width: 1025px) {
  html body .shared-header .topbar-nav-item-library[data-tmn-public] { display: none; }
}
@media (max-width: 1024px) {
  .tmn-panels { display: none; }
}
.shared-header.topbar { position: relative; }
.tmn-panels { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; }
.tmn-panel[hidden] { display: none !important; }
.tmn-panel { max-height: 70vh; overflow: auto; overscroll-behavior: contain; border-bottom: 2px solid var(--mz-ink); font-family: var(--mz-serif); text-align: left; }
.tmn-panel a { text-decoration: none; }
.tmn-panel :focus-visible { outline: 2px solid var(--mz-focus); outline-offset: 2px; }
/* Nút nổi Trợ lý (book_qa_module.css, z 260) nằm dưới lớp menu khi menu hoặc menu toàn màn đang mở: chỉ hạ z-index,
   không ẩn, không inert, nên tiêu điểm bàn phím của Trợ lý không đổi. */
html.tmn-menu-open .book-qa-messenger, html body.topbar-mobile-nav-open .book-qa-messenger { z-index: 190; }
.tmn-empty { padding: 14px 0; font: italic 400 15px/1.5 var(--mz-serif); color: var(--mz-muted); }

/* Bảng Tủ sách: khung Sân khấu trên dải son */
.tmn-panel--tu-sach { padding: 32px var(--app-shell-rail-inset, 40px) 36px; background: var(--mz-band); color: var(--mz-band-text); }
.tmn-panel--tu-sach .tmn-empty { color: var(--mz-band-text); }
.tmn-panel--tu-sach :focus-visible { outline-color: var(--mz-band-accent); }

/* Sân khấu dùng chung (K18 stage + menu) */
.tsh-h2__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; }
@media (min-width: 1200px) { .tsh-h2__body { grid-template-columns: 480px minmax(0, 1fr); column-gap: 48px; } }
.tsh-h2__toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--mz-band-accent) 45%, transparent); }
.tsh-h2__it { display: grid; grid-template-columns: 26px 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 4px 10px 12px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid color-mix(in srgb, var(--mz-band-accent) 45%, transparent); background: none; color: var(--mz-band-text); text-align: left; cursor: pointer; transition: border-color 160ms ease; }
.tsh-h2__it i { font: 700 13px/20px var(--mz-condensed); font-style: normal; letter-spacing: .08em; color: var(--mz-band-accent); }
.tsh-h2__it .tsh-ico { width: 28px; height: 28px; margin-top: -4px; color: var(--mz-band-accent); }
.tsh-h2__it span { font: 400 15.5px/20px var(--mz-serif); }
.tsh-h2__it small { font: 700 13px/20px var(--mz-condensed); color: var(--mz-band-accent); font-variant-numeric: tabular-nums; }
.tsh-h2__it:hover span { text-decoration: underline; text-decoration-color: var(--mz-band-accent); text-underline-offset: 4px; }
.tsh-h2__it[aria-selected="true"], .tsh-h2__it[aria-current="true"] { border-left-color: var(--mz-band-accent); }
.tsh-h2__it[aria-selected="true"] span, .tsh-h2__it[aria-current="true"] span { font-weight: 900; }
.tsh-h2__it.is-empty .tsh-ico { color: color-mix(in srgb, var(--mz-band-accent) 60%, transparent); }
.tmn-toc .tsh-h2__it { min-height: 40px; }
.tsh-h2__more { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 10px; font: 700 14px/1 var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-band-accent); }
.tsh-h2__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.tsh-h2__stage[hidden] { display: none; }
.tsh-h2__top { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 32px; align-items: start; color: var(--mz-band-accent); }
.tsh-h2__top > .tsh-ico { width: 120px; height: 120px; }
.tmn-panel .tsh-h2__top { grid-template-columns: 112px minmax(0, 1fr); }
.tmn-panel .tsh-h2__top > .tsh-ico { width: 112px; height: 112px; }
.tsh-h2__k { margin: 0; font: 700 13px/18px var(--mz-condensed); letter-spacing: .16em; text-transform: uppercase; color: var(--mz-band-accent); }
.tsh-h2__t { margin: 8px 0 0; font: 900 32px/1.2 var(--mz-serif); color: var(--mz-band-text); text-wrap: balance; }
.tmn-panel .tsh-h2__t { font-size: 28px; }
.tsh-h2__t a { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.tsh-h2__t a:hover { text-decoration: underline; text-decoration-color: var(--mz-band-accent); text-underline-offset: 5px; }
.tsh-h2__l { margin: 12px 0 0; font: italic 400 17px/1.6 var(--mz-serif); color: var(--mz-band-text); }
.tsh-h2__m { margin: 12px 0 0; font: 700 13px/18px var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-band-accent); }
.tsh-h2__kids { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 10px 0 0; padding: 0; }
.tsh-h2__kids li { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding-top: 10px; box-sizing: border-box; }
.tsh-h2__kids a { font: 700 15px/1.4 var(--mz-serif); color: var(--mz-band-text); text-decoration: underline; text-decoration-color: var(--mz-band-accent); text-underline-offset: 5px; }
.tsh-h2__kids small { font: 700 13px/1 var(--mz-condensed); color: var(--mz-band-accent); }
.tsh-band-shelf { margin-top: 28px; }
.tsh-band-shelf .tsh-cv img { outline-color: color-mix(in srgb, var(--mz-band-text) 30%, transparent); }
.tsh-band-plank { position: relative; height: 13px; border-top: 10px solid var(--mz-band-accent); box-sizing: border-box; }
.tsh-band-plank::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: var(--mz-band-accent); opacity: .55; }
.tsh-h2__wait { display: flex; align-items: flex-end; min-height: 120px; margin: 28px 0 0; padding-bottom: 12px; font: italic 400 16px/1.6 var(--mz-serif); color: var(--mz-band-text); }
a.tsh-btn--band, .tsh-btn--band { margin-top: 24px; border-color: var(--mz-band-accent); color: var(--mz-band-text); }
a.tsh-btn--band:hover, .tsh-btn--band:hover { background: var(--mz-band-accent); border-color: var(--mz-band-accent); color: var(--mz-band); }

/* Bảng Danh mục: nền giấy */
.dm-menu { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 56px; padding: 30px var(--app-shell-rail-inset, 40px) 34px; background: var(--mz-paper); color: var(--mz-ink); }
@media (max-width: 1299px) { .dm-menu { grid-template-columns: 260px minmax(0, 1fr); column-gap: 48px; } }
.dm-menu__t { margin: 0; font: 900 26px/1.22 var(--mz-serif); letter-spacing: -.01em; color: var(--mz-ink); }
.dm-menu__l { margin: 10px 0 0; font: italic 400 15px/1.6 var(--mz-serif); color: var(--mz-muted); }
.dm-menu .dm-meta { font-size: 12.5px; }
.dm-menu .dm-more { margin-top: 10px; }
.dm-cols { columns: 3; column-gap: 48px; column-rule: 1px solid var(--mz-rule); list-style: none; margin: 0; padding: 0; }
.dm-cols > li { break-inside: avoid; }
.dm-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; min-height: 44px; padding: 11px 0; box-sizing: border-box; border-top: 1px solid var(--mz-rule); }
.dm-it span { font: 700 16px/1.35 var(--mz-serif); color: var(--mz-ink); }
.dm-it small { font: 700 13px/1 var(--mz-condensed); letter-spacing: .04em; color: var(--mz-muted); font-variant-numeric: tabular-nums; }
.dm-it:hover span { color: var(--mz-red); }
.dm-it[aria-current] span { color: var(--mz-red); font-weight: 900; }
.dm-it[aria-current] small { color: var(--mz-red); }

/* Menu toàn màn (≤ 1024): nhóm Tủ sách, Danh mục */
.tmn-m__list, .tmn-m__cats, .tmn-m__sub { list-style: none; margin: 0; padding: 0; }
.tmn-m__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px; column-gap: 12px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--mz-rule); }
.tmn-m__row > .tsh-ico { width: 28px; height: 28px; color: var(--mz-red); }
.tmn-m__row.is-empty > .tsh-ico { color: var(--mz-muted); }
.tmn-m__a { padding: 10px 0; font: 700 16px/1.35 var(--mz-serif); color: var(--mz-ink); text-decoration: none; }
.tmn-m__a[aria-current] { color: var(--mz-red); }
.tmn-m__x { grid-column: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--mz-ink); font: 400 22px/1 var(--mz-condensed); cursor: pointer; }
.tmn-m__x[hidden] { display: none; }
.tmn-m__x[aria-expanded="true"] span { display: inline-block; transform: rotate(45deg); }
.tmn-m__sub { padding: 4px 0 8px 40px; border-bottom: 1px solid var(--mz-rule); }
.tmn-m__sub[hidden] { display: none; }
.tmn-m__sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font: 400 15px/1.35 var(--mz-serif); color: var(--mz-ink); text-decoration: none; }
.tmn-m__sub .tmn-m__sub { border-bottom: 0; padding: 0 0 0 20px; }
.tmn-m__sub a small, .tmn-m__cat small { font: 700 13px/1 var(--mz-condensed); color: var(--mz-muted); font-variant-numeric: tabular-nums; }
.tmn-m__cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; min-height: 48px; padding: 8px 0; box-sizing: border-box; border-bottom: 1px solid var(--mz-rule); text-decoration: none; }
.tmn-m__cat span { font: 700 16px/1.35 var(--mz-serif); color: var(--mz-ink); }
.tmn-m__cat[aria-current] span, .tmn-m__cat[aria-current] small { color: var(--mz-red); }
.tmn-m__more { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font: 700 14px/1 var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-red); text-decoration: none; }
.tmn-m__empty { padding: 12px 0; font: italic 400 15px/1.5 var(--mz-serif); color: var(--mz-muted); }
.tmn-m + .topbar-mobile-group, .tmn-m + .tmn-m { margin-top: 8px; }

/* =====================================================================
   7.14.4 Trang một tủ: banner dải son, thanh ngăn, mục theo ngăn
   ===================================================================== */
.tsh-ban { margin-top: 20px; padding: 44px 0 30px; background: var(--mz-band); color: var(--mz-band-text); }
.tsh-ban__in { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; column-gap: 44px; align-items: end; }
.tsh-ban__ico { width: 160px; height: 160px; color: var(--mz-band-accent); margin-bottom: -33.3px; }
.tsh-ban__txt { padding-bottom: 28px; max-width: 640px; }
.tsh-ban__kick { margin: 0 0 12px; font: 700 13px/18px var(--mz-condensed); letter-spacing: .16em; text-transform: uppercase; color: var(--mz-band-accent); }
.tsh-ban__t { margin: 0; font: 900 38px/1.18 var(--mz-serif); letter-spacing: -.012em; color: var(--mz-band-text); text-wrap: balance; }
.tsh-ban__lead { margin: 14px 0 0; font: italic 400 17px/1.65 var(--mz-serif); color: var(--mz-band-text); }
.tsh-ban__meta { margin: 16px 0 0; font: 700 13px/18px var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-band-accent); }
.tsh-ban__covers { display: flex; align-items: flex-end; justify-content: flex-end; gap: 18px; height: 204px; }
.tsh-ban__covers .tsh-cv { height: 196px; width: 131px; }
.tsh-ban__covers .tsh-cv img { outline-color: rgba(0, 0, 0, .25); }
.tsh-ban__plank { height: 10px; background: var(--mz-band-accent); }
.tsh-ban__plank + i { display: block; height: 3px; margin-top: 7px; background: var(--mz-band-accent); opacity: .55; }
.tsh-ban--sub { padding-top: 32px; }
.tsh-ban--sub .tsh-ban__in { grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: 36px; }
.tsh-ban--sub .tsh-ban__ico { width: 96px; height: 96px; margin-bottom: -20px; }
.tsh-ban--sub .tsh-ban__t { font-size: 32px; }
.tsh-ban--sub .tsh-ban__covers { height: 160px; }
.tsh-ban--sub .tsh-ban__covers .tsh-cv { height: 152px; width: 101px; }
.tsh-ban--sub .tsh-ban__txt { padding-bottom: 22px; }
.tsh-ban--sub .tsh-ban__plank { height: 6px; }
.tsh-ban--sub .tsh-ban__plank + i { height: 2px; margin-top: 4px; }
@media (max-width: 1199px) and (min-width: 600px) {
  .tsh-ban__in, .tsh-ban--sub .tsh-ban__in { grid-template-columns: 120px minmax(0, 1fr) auto; column-gap: 32px; }
  .tsh-ban__ico { width: 120px; height: 120px; margin-bottom: -25px; }
  .tsh-ban--sub .tsh-ban__ico { width: 96px; height: 96px; margin-bottom: -20px; }
  .tsh-ban__covers, .tsh-ban--sub .tsh-ban__covers { gap: 12px; height: 158px; }
  .tsh-ban__covers .tsh-cv, .tsh-ban--sub .tsh-ban__covers .tsh-cv { height: 150px; width: 100px; }
  .tsh-ban__covers, .tsh-ban--sub .tsh-ban__covers { width: 212px; flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; overflow: hidden; box-sizing: border-box; padding-top: 8px; }
  .tsh-ban__t { font-size: 32px; }
}
@media (max-width: 599px) {
  .tsh-ban { margin-top: 12px; padding: 28px 0 22px; }
  .tsh-ban__in { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; row-gap: 0; }
  .tsh-ban__txt { grid-column: 1 / -1; grid-row: 1; padding-bottom: 22px; }
  .tsh-ban__ico { grid-row: 2; width: 88px; height: 88px; margin-bottom: -18.3px; }
  .tsh-ban__covers { grid-row: 2; height: 108px; gap: 10px; }
  .tsh-ban__covers .tsh-cv { height: 104px; width: 69px; }
  .tsh-ban__covers { flex-wrap: wrap; align-content: flex-start; overflow: hidden; box-sizing: border-box; padding-top: 4px; }
  .tsh-ban__t { font-size: 25px; line-height: 1.24; }
  .tsh-ban__lead { font-size: 15.5px; line-height: 1.6; }
  .tsh-ban__kick { font-size: 12px; margin-bottom: 10px; }
  .tsh-ban__plank { height: 5px; }
  .tsh-ban__plank + i { height: 2px; margin-top: 4px; }
  .tsh-ban--sub .tsh-ban__in { grid-template-columns: 64px minmax(0, 1fr); }
  .tsh-ban--sub .tsh-ban__ico { width: 64px; height: 64px; margin-bottom: -13.3px; }
  .tsh-ban--sub .tsh-ban__covers { height: 92px; }
  .tsh-ban--sub .tsh-ban__covers .tsh-cv { height: 88px; width: 59px; }
  .tsh-ban--sub .tsh-ban__t { font-size: 23px; }
}
body.theme-quoc-tang .tsh-ban__ico { color: var(--mz-band-accent); }

/* Thanh ngăn */
.tsh-tabs { display: flex; gap: 0 32px; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--mz-rule); overflow-x: auto; scrollbar-width: none; }
.tsh-tabs::-webkit-scrollbar { display: none; }
.tsh-tab { display: inline-flex; align-items: baseline; gap: 8px; min-height: 52px; box-sizing: border-box; padding: 16px 0 12px; border-bottom: 3px solid transparent; margin-bottom: -1px; font: 700 15px/20px var(--mz-serif); color: var(--mz-muted); white-space: nowrap; }
.tsh-tab small { font: 700 13px/1 var(--mz-condensed); letter-spacing: .04em; color: var(--mz-muted); font-variant-numeric: tabular-nums; }
.tsh-tab[aria-current] { color: var(--mz-ink); border-bottom-color: var(--mz-red); }
.tsh-tab[aria-current] small { color: var(--mz-red); }
.tsh-tab:hover { color: var(--mz-red); }
.tsh-tab--up { color: var(--mz-red); font: 700 13px/20px var(--mz-condensed); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 599px) {
  .tsh-tabs { margin-inline: calc(-1 * var(--tsh-gutter)); padding-inline: var(--tsh-gutter); gap: 0 24px; }
  .tsh-tab { font-size: 14.5px; min-height: 48px; padding: 14px 0 10px; }
}

/* Mục theo ngăn */
.tsh-sec { margin-top: 52px; }
.tsh-rack { margin-top: 28px; }
.tsh-rack__c, .tsh-rack__t { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 32px; }
.tsh-rack__c > a, .tsh-rack__t > a { display: block; min-width: 0; }
.tsh-rack__t { margin-top: 14px; }
.tsh-cap { display: block; }
.tsh-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 14.5px/1.4 var(--mz-serif); color: var(--mz-ink); }
.tsh-cap small { display: block; margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 12px/16px var(--mz-condensed); letter-spacing: .08em; text-transform: uppercase; color: var(--mz-red); }
.tsh-rack a:hover .tsh-cap b { color: var(--mz-red); text-decoration: underline 1px; text-underline-offset: 3px; }
.tsh-wait { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; font: italic 400 15px/1.6 var(--mz-serif); color: var(--mz-muted); }
.tsh-wait b { white-space: nowrap; font: 700 12px/16px var(--mz-condensed); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--mz-muted); }
.tsh-loading { min-height: 1px; }
@media (max-width: 1199px) and (min-width: 600px) {
  .tsh-rack__c, .tsh-rack__t { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tsh-rack__c > a:nth-child(n + 5), .tsh-rack__t > a:nth-child(n + 5) { display: none; }
}
@media (max-width: 599px) {
  .tsh-sec { margin-top: 40px; }
  .tsh-rack { display: flex; overflow-x: auto; margin: 20px calc(-1 * var(--tsh-gutter)) 0; padding: 0 var(--tsh-gutter); scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--tsh-gutter); }
  .tsh-rack::-webkit-scrollbar { display: none; }
  .tsh-rack__m { flex: 0 0 128px; width: 128px; scroll-snap-align: start; }
  .tsh-rack__m:last-child { flex-basis: 112px; width: 112px; }
  .tsh-rack__m .tsh-cv { width: 112px; }
  .tsh-rack__m .tsh-plank { margin-right: -16px; }
  .tsh-rack__m:last-child .tsh-plank { margin-right: 0; }
  .tsh-rack__m .tsh-cap { display: block; padding: 12px 16px 0 0; }
  .tsh-rack__m:last-child .tsh-cap { padding-right: 0; }
  .tsh-rack__m .tsh-cap b { font-size: 13.5px; }
  .tsh-rack__m .tsh-cap small { font-size: 11.5px; }
}
@media (min-width: 600px) { .tsh-rack__m { display: none; } }
@media (max-width: 599px) { .tsh-rack__c, .tsh-rack__t, .tsh-rack > .tsh-plank { display: none; } }

/* Khối trạng thái (7.9) */
.tsh-st { display: flex; gap: 20px; align-items: flex-start; max-width: 720px; margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--mz-ink); }
.tsh-st__ico { flex: 0 0 auto; width: 28px; height: 28px; color: var(--mz-red); }
.tsh-st h2 { margin: 0; font: 900 22px/1.3 var(--mz-serif); color: var(--mz-ink); }
.tsh-st p { margin: 8px 0 0; font: 400 16px/1.6 var(--mz-serif); color: var(--mz-ink); }
.tsh-st .tsh-btn { margin-top: 18px; }

/* Trang tủ: chỗ cho page_banner và hỏi đáp giữ nguyên khoảng cách */
.tsh-page .public-banner-shell, .tsh-page .page-banner { margin-top: 28px; }
.tsh-page #brs { margin-top: 56px; }

/* =====================================================================
   7.14.3 Mục lục /tu-sach
   ===================================================================== */
.tsh-erow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; margin: 36px 0 0; padding: 0; list-style: none; }
.tsh-erow a { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 8px; color: var(--mz-red); }
.tsh-erow .tsh-ico { width: 56px; height: 56px; }
.tsh-erow a > span { display: grid; gap: 4px; padding-top: 4px; }
.tsh-erow a i { font: 700 12px/1 var(--mz-condensed); font-style: normal; letter-spacing: .1em; color: var(--mz-muted); }
.tsh-erow a small { font: 700 13px/17px var(--mz-condensed); letter-spacing: .02em; color: var(--mz-ink); }
.tsh-erow a:hover small { color: var(--mz-red); }
.tsh-erow a.is-empty { color: var(--mz-muted); }
.tsh-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin: 48px 0 0; padding: 0; list-style: none; }
.tsh-ent { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr); column-gap: 18px; padding: 24px 0 28px; border-top: 1px solid var(--mz-rule-strong); scroll-margin-top: 90px; }
.tsh-ent__no { font: 900 30px/1 var(--mz-serif); letter-spacing: -.03em; color: var(--mz-red); font-variant-numeric: lining-nums; }
.tsh-ent__ico { width: 72px; height: 72px; color: var(--mz-red); }
.tsh-ent.is-empty .tsh-ent__ico { color: var(--mz-muted); }
.tsh-ent h2 { margin: 0; font: 900 21px/1.3 var(--mz-serif); color: var(--mz-ink); text-wrap: balance; }
.tsh-ent h2 a:hover { color: var(--mz-red); }
.tsh-ent__l { margin: 8px 0 0; font: italic 400 15px/1.6 var(--mz-serif); color: var(--mz-muted); }
.tsh-ent .tsh-pm { margin-top: 10px; }
.tsh-tree { list-style: none; margin: 12px 0 0; padding: 0; }
.tsh-tree li { position: relative; padding-left: 22px; }
.tsh-tree li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1px solid var(--mz-rule-strong); }
.tsh-tree li:last-child::before { bottom: auto; height: 22px; }
.tsh-tree li::after { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; border-top: 1px solid var(--mz-rule-strong); }
.tsh-tree a { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 700 15px/1.35 var(--mz-serif); color: var(--mz-ink); }
.tsh-tree a small { font: 700 13px/1 var(--mz-condensed); letter-spacing: .04em; color: var(--mz-muted); white-space: nowrap; }
.tsh-tree a:hover { color: var(--mz-red); }
.tsh-tree .tsh-tree { margin: 0; }
.tsh-tree .tsh-tree a { font-weight: 400; font-size: 14.5px; }
.tsh-ent__shelf { max-width: 300px; margin-top: 16px; }
.tsh-ent__shelf:empty { min-height: 1px; margin-top: 0; }
@media (max-width: 1199px) { .tsh-erow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .tsh-erow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 28px; }
  .tsh-erow li:first-child { grid-column: 1 / -1; }
  .tsh-erow .tsh-ico { width: 48px; height: 48px; }
  .tsh-toc { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .tsh-ent { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 20px 0 22px; }
  .tsh-ent__no { display: none; }
  .tsh-ent__ico { width: 56px; height: 56px; }
  .tsh-ent h2 { font-size: 18px; }
  .tsh-ent__shelf { display: none; }
}

/* =====================================================================
   7.14.2a Khối K18 Kệ tủ sách (trang chủ): cards · stage · wall · rows
   ===================================================================== */
html body .home-section.tsh-k18, html body .home-section.dm-home { position: relative; display: block; grid-column: 1 / -1; min-width: 0; }
.tc-vp { width: 100%; }
.tsh-k18 .mz-section-head { margin-bottom: 0; }
/* Thẻ tủ */
.tc-hr { display: flex; align-items: center; gap: 24px; }
.tc-ctl { display: flex; align-items: center; gap: 8px; }
.tc-b { width: 44px; height: 44px; border-radius: 0; display: grid; place-items: center; border: 1px solid var(--mz-rule-strong); background: none; color: var(--mz-ink); cursor: pointer; font: 400 20px/1 var(--mz-serif); transition: border-color 160ms ease, color 160ms ease; }
.tc-b:hover:not(:disabled) { border-color: var(--mz-red); color: var(--mz-red); }
.tc-b:disabled { color: var(--mz-rule-strong); cursor: default; }
.tc-n { min-width: 52px; text-align: center; font: 700 14px/1 var(--mz-condensed); letter-spacing: .1em; color: var(--mz-ink); font-variant-numeric: tabular-nums; }
.tc-vp { display: flex; margin-top: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.tc-vp::-webkit-scrollbar { display: none; }
.tc-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; scroll-snap-align: start; scroll-snap-stop: always; }
.tc-page + .tc-page { margin-left: 32px; }
.tc { --tc-day: var(--mz-paper-deep); --tc-hinh: var(--mz-red); --tc-dai: var(--mz-band); --nen-day: var(--tc-day); --nen-hinh: var(--tc-hinh);
  position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--tc-day); color: var(--mz-band-text); }
.tc--son { --tc-day: var(--mz-band); --tc-hinh: var(--mz-band-accent); --tc-dai: var(--tsh-muc); }
.tc--chan-dung { --tc-day: #f6efe2; --tc-hinh: #6e0f15; }
.tc--dai-muc { --tc-dai: var(--tsh-muc); }
.tc--dai-son { --tc-dai: var(--mz-band); }
body.theme-quoc-tang .tc--son { --tc-day: var(--mz-paper-deep); --tc-hinh: var(--mz-red); }
body.theme-quoc-tang .tc--chan-dung { --tc-day: #f2f2f2; --tc-hinh: #1f1f1f; }
.tc-nen, .tc-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tc-img { object-fit: cover; object-position: center top; }
body.theme-quoc-tang .tc-img { filter: grayscale(1); }
body.theme-quoc-tang .tc:hover .tc-img { filter: none; }
.tc-band { position: absolute; left: 0; right: 0; bottom: 0; min-height: 39%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px 20px 18px; background: var(--tc-dai); }
.tc-k { display: flex; align-items: center; gap: 8px; font: 700 12px/16px var(--mz-condensed); letter-spacing: .14em; text-transform: uppercase; color: var(--mz-band-accent); }
.tc-k .tsh-ico { width: 28px; height: 28px; color: var(--mz-band-accent); }
.tc-t { display: block; font: 900 20px/1.28 var(--mz-serif); color: var(--mz-band-text); text-wrap: balance; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
.tc-m { font: 700 12.5px/16px var(--mz-condensed); letter-spacing: .1em; text-transform: uppercase; color: var(--mz-band-accent); }
.tc-br { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font: italic 400 13.5px/1.45 var(--mz-serif); color: var(--mz-band-text); }
.tc:hover .tc-t, .tc:focus-visible .tc-t { text-decoration-color: var(--mz-band-accent); }
.tsh-scope a.tc:focus-visible { outline: 2px solid var(--mz-focus); outline-offset: 3px; }
.tc-empty { display: block; aspect-ratio: 5 / 6; }
@media (max-width: 1199px) and (min-width: 600px) { .tc-t { font-size: 18px; } .tc-band { padding: 14px 16px 16px; } .tc-br { display: none; } }
@media (max-width: 599px) {
  .tsh-k18 .mz-section-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .tc-hr { justify-content: space-between; }
  .tc-vp { margin: 18px calc(-1 * var(--tsh-gutter)) 0; padding: 0 var(--tsh-gutter); scroll-padding-inline: var(--tsh-gutter); }
  .tc-page { display: contents; }
  .tc-page + .tc-page { margin-left: 0; }
  .tc-vp > .tc-page > .tc { flex: 0 0 280px; width: 280px; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .tc-vp > .tc-page > .tc + .tc, .tc-vp > .tc-page + .tc-page > .tc:first-child { margin-left: 14px; }
  .tc-vp > .tc-page > .tc-empty { display: none; }
  .tc-t { font-size: 18px; }
  .tc-band { padding: 14px 16px 16px; }
  .tc-br { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tc-vp, .tsh-h3__sc { scroll-behavior: auto; } }

/* Sân khấu (K18 stage): dải son tràn lề */
.tsh-h2 { padding: 44px 0 52px; background: var(--mz-band); color: var(--mz-band-text); }
.tsh-h2__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 3px solid var(--mz-band-accent); }
.tsh-h2__head::before { content: ""; position: absolute; inset-inline: 0; top: 3px; height: 1px; background: var(--mz-band-accent); opacity: .55; }
.tsh-h2__head h2 { margin: 4px 0 0; font: 900 34px/1.15 var(--mz-serif); color: var(--mz-band-text); }
.tsh-h2__head .tsh-h2__more { margin-top: 0; }
.tsh-h2 .tsh-h2__body { margin-top: 28px; }
.tsh-h2 :focus-visible { outline-color: var(--mz-band-accent); }
.tsh-h2__mtoc { display: none; }
html body[data-page-kind="home"] .home-section.mz-home-section.mz-home-section.tsh-h2 { padding: 44px 0 52px; margin: 0 0 72px; border-image: linear-gradient(var(--mz-band) 0 0) fill 0 / 0 / 0 100vw; }
@media (max-width: 599px) { html body[data-page-kind="home"] .home-section.mz-home-section.mz-home-section.tsh-h2 { padding: 30px 0 36px; margin-bottom: 48px; } }
@media (max-width: 599px) {
  .tsh-h2 { padding: 30px 0 36px; }
  .tsh-h2__head h2 { font-size: 26px; }
  .tsh-h2 .tsh-h2__body { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .tsh-h2 .tsh-h2__toc { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--tsh-gutter)); padding: 0 10px; border-top: 0; border-bottom: 1px solid color-mix(in srgb, var(--mz-band-accent) 45%, transparent); scrollbar-width: none; }
  .tsh-h2 .tsh-h2__toc::-webkit-scrollbar { display: none; }
  .tsh-h2 .tsh-h2__toc li { flex: 0 0 auto; }
  .tsh-h2 .tsh-h2__it { display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content; min-width: 88px; max-width: 168px; min-height: 0; padding: 4px 4px 10px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; text-align: center; }
  .tsh-h2 .tsh-h2__it i, .tsh-h2 .tsh-h2__it small { display: none; }
  .tsh-h2 .tsh-h2__it .tsh-ico { width: 40px; height: 40px; margin: 0; }
  .tsh-h2 .tsh-h2__it span { font: 700 12px/15px var(--mz-condensed); letter-spacing: .02em; min-height: 30px; }
  .tsh-h2 .tsh-h2__it[aria-selected="true"] { border-bottom-color: var(--mz-band-accent); }
  .tsh-h2 .tsh-h2__toc + .tsh-h2__more { display: none; }
  .tsh-h2__stage { margin-top: 22px; }
  .tsh-h2__top { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
  .tsh-h2__top > .tsh-ico { width: 72px; height: 72px; margin-bottom: 10px; }
  .tsh-h2__top > div { grid-column: 1 / -1; }
  .tsh-h2__t { font-size: 22px; }
  .tsh-h2__l { font-size: 15px; }
  .tsh-h2__kids { gap: 0 20px; }
  .tsh-h2 .tsh-band-shelf { --h: 112px !important; overflow-x: auto; margin-inline: calc(-1 * var(--tsh-gutter)); padding-inline: var(--tsh-gutter); scrollbar-width: none; }
  .tsh-h2 .tsh-band-shelf::-webkit-scrollbar { display: none; }
  .tsh-h2 .tsh-band-shelf .tsh-sh__c { overflow: visible; width: max-content; }
  .tsh-h2 .tsh-band-shelf .tsh-band-plank { width: max(100%, var(--shelf-w, 100%)); }
  .tsh-h2 a.tsh-btn--band { width: 100%; }
  .tsh-h2__wait { min-height: 96px; font-size: 15px; }
}
/* Sân khấu ≥ 600: bìa đứng một hàng, mỗi bìa từ 72 px (cao 108 trong bề rộng 2:3) tới đúng cỡ kệ; chật thì thu nhỏ đều (căn đáy,
   không cắt), hết chỗ thì cuốn nằm hàng dưới bị che — không để cuốn cuối bị cắt dở. Menu Tủ sách (cùng lớp kệ) giữ nguyên. */
@media (min-width: 600px) {
  .tsh-k18--stage .tsh-band-shelf .tsh-sh__c .tsh-cv { flex: 1 1 72px; width: auto; max-width: calc(var(--h, 144px) * 2 / 3); }
  /* Bức tường: 5 bìa của ô tiêu điểm (rộng 2 cột) cũng thu đều để đủ 5 cuốn ở 768 – 1199. */
  .tsh-k18--wall .tsh-t--spot .tsh-sh__c .tsh-cv { flex: 1 1 80px; width: auto; max-width: calc(var(--h, 180px) * 2 / 3); }
}

/* Bức tường */
.tsh-wall__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; row-gap: 44px; margin: 32px -16px 0; padding: 0; list-style: none; }
.tsh-t { display: flex; flex-direction: column; min-width: 0; padding: 20px 16px 0; color: var(--mz-ink); }
.tsh-t::before { content: ""; display: block; margin: -20px 0 18px; border-top: 1px solid var(--mz-rule-strong); }
.tsh-t__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--mz-red); }
.tsh-t__top .tsh-ico { width: 64px; height: 64px; }
.tsh-t__no { font: 900 26px/1 var(--mz-serif); letter-spacing: -.03em; color: var(--mz-red); }
.tsh-t h3 { margin: 14px 0 0; font: 900 18px/1.32 var(--mz-serif); color: var(--mz-ink); text-wrap: balance; }
.tsh-t h3 a:hover { color: var(--mz-red); }
.tsh-t .tsh-pm { margin-top: 8px; }
.tsh-t__kids { list-style: none; margin: 8px 0 0; padding: 0; }
.tsh-t__kids a { display: block; padding: 3px 0; font: 400 13.5px/1.45 var(--mz-serif); color: var(--mz-muted); }
.tsh-t__kids a:hover { color: var(--mz-red); }
.tsh-t > .tsh-sh { margin-top: auto; padding-top: 20px; }
.tsh-t.is-empty .tsh-t__top, .tsh-t.is-empty .tsh-t__no { color: var(--mz-muted); }
.tsh-sh--empty p { display: flex; align-items: flex-end; height: 132px; margin: 0; padding-bottom: 10px; font: italic 400 14px/1.5 var(--mz-serif); color: var(--mz-muted); }
.tsh-t--spot { grid-column: span 2; grid-row: span 2; }
.tsh-t__sp { display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 28px; align-items: start; color: var(--mz-red); }
.tsh-t__sp > .tsh-ico { width: 136px; height: 136px; }
.tsh-t--spot h3 { margin-top: 0; font-size: 30px; line-height: 1.2; }
.tsh-t--spot .tsh-btn { margin-top: 20px; align-self: flex-start; }
.tsh-t--spot .tsh-t__l { margin: 10px 0 0; font: italic 400 16px/1.6 var(--mz-serif); color: var(--mz-muted); }
.tsh-t--spot > .tsh-sh { padding-top: 28px; }
.tsh-t--toc { justify-content: flex-end; gap: 12px; }
.tsh-t--toc b { font: 900 18px/1.3 var(--mz-serif); color: var(--mz-ink); }
.tsh-t--toc:hover b { color: var(--mz-red); }
.tsh-t__mini { display: grid; grid-template-columns: repeat(6, 32px); gap: 10px 12px; color: var(--mz-red); }
.tsh-t__mini .tsh-ico { width: 32px; height: 32px; }
@media (max-width: 1199px) and (min-width: 600px) { .tsh-wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .tsh-wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; margin: 22px -8px 0; }
  .tsh-t { padding: 16px 8px 0; }
  .tsh-t::before { margin: -16px 0 14px; }
  .tsh-t__top .tsh-ico { width: 48px; height: 48px; }
  .tsh-t h3 { margin-top: 10px; font-size: 14.5px; }
  .tsh-t__no { font-size: 20px; }
  .tsh-t > .tsh-sh { padding-top: 14px; }
  .tsh-t--spot { grid-column: 1 / -1; grid-row: auto; }
  .tsh-t__sp { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .tsh-t--spot > .tsh-sh { --h: 132px !important; }
  .tsh-t__sp > .tsh-ico { width: 72px; height: 72px; }
  .tsh-t--spot h3 { margin-top: 14px; font-size: 22px; }
  .tsh-t--spot .tsh-btn { width: 100%; }
  .tsh-t--toc { grid-column: 1 / -1; }
  .tsh-t__mini { grid-template-columns: repeat(6, 28px); gap: 8px 20px; }
  .tsh-t__mini .tsh-ico { width: 28px; height: 28px; }
  .tsh-sh--empty p { height: 84px; font-size: 13px; }
  .tsh-t--spot .tsh-sh { overflow-x: auto; scrollbar-width: none; }
}

/* Kệ nối tiếp */
.tsh-h3__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 40px; padding: 32px 0 36px; border-bottom: 1px solid var(--mz-rule-strong); }
.tsh-h3__txt { color: var(--mz-red); }
.tsh-h3__txt > .tsh-ico { width: 96px; height: 96px; }
.tsh-h3__txt .tsh-kick { margin-top: 16px; }
.tsh-h3__txt h3 { margin: 0; font: 900 22px/1.3 var(--mz-serif); color: var(--mz-ink); text-wrap: balance; }
.tsh-h3__txt .tsh-pm { margin-top: 8px; }
.tsh-h3__kids { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--mz-rule); }
.tsh-h3__kids a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--mz-rule); font: 700 14px/1.35 var(--mz-serif); color: var(--mz-ink); }
.tsh-h3__kids small { font: 700 12.5px/1 var(--mz-condensed); color: var(--mz-muted); white-space: nowrap; }
.tsh-h3__txt .tsh-more { margin-top: 8px; }
.tsh-h3__shelf { position: relative; min-width: 0; align-self: end; }
.tsh-h3__ctl { position: absolute; right: 0; top: -2px; display: flex; gap: 8px; transform: translateY(-100%); }
.tsh-h3__sc { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-behavior: smooth; }
.tsh-h3__sc::-webkit-scrollbar { display: none; }
.tsh-h3__tr { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.tsh-h3__b { flex: 0 0 auto; width: 168px; padding-right: 28px; box-sizing: border-box; scroll-snap-align: start; }
.tsh-h3__b:last-child { width: 140px; padding-right: 0; }
.tsh-h3__b .tsh-cv { height: 210px; width: 140px; }
.tsh-h3__b .tsh-plank { margin-right: -28px; }
.tsh-h3__b:last-child .tsh-plank { margin-right: 0; }
.tsh-h3__b .tsh-cap { margin-top: 12px; }
.tsh-h3__rest { padding-top: 28px; }
.tsh-h3__icons { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tsh-h3__icons a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--mz-red); padding-bottom: 6px; }
.tsh-h3__icons .tsh-ico { width: 56px; height: 56px; }
.tsh-h3__icons b { font: 700 12.5px/15px var(--mz-condensed); letter-spacing: .02em; color: var(--mz-ink); }
.tsh-h3__icons small { font: italic 400 12.5px/1.3 var(--mz-serif); color: var(--mz-muted); }
.tsh-h3__icons a.is-empty { color: var(--mz-muted); }
.tsh-h3__icons a:hover b { color: var(--mz-red); }
/* Kệ nối tiếp 600–1023: mỗi tủ xếp chồng (chữ trên một hàng đủ rộng, kệ bìa bên dưới) để tên tủ không rớt nhiều dòng trong cột 3/12;
   nút Lùi / Tiếp nằm phía trên kệ nên chừa 56 px. Từ 1024 trở lên giữ bố cục hai cột. */
@media (min-width: 600px) and (max-width: 1023px) {
  .tsh-h3__row { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .tsh-h3__txt { max-width: 640px; }
  .tsh-h3__shelf { margin-top: 56px; }
}
@media (max-width: 1199px) and (min-width: 600px) { .tsh-h3__icons { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 16px; } }
@media (max-width: 599px) {
  .tsh-h3__row { grid-template-columns: minmax(0, 1fr); padding: 24px 0 28px; }
  .tsh-h3__txt h3 { font-size: 19px; }
  .tsh-h3__txt > .tsh-ico { width: 64px; height: 64px; }
  .tsh-h3__ctl { display: none; }
  .tsh-h3__shelf { margin: 18px calc(-1 * var(--tsh-gutter)) 0; }
  .tsh-h3__sc { padding: 0 var(--tsh-gutter); scroll-padding-inline: var(--tsh-gutter); }
  .tsh-h3__b { width: 124px; padding-right: 16px; }
  .tsh-h3__b:last-child { width: 108px; }
  .tsh-h3__b .tsh-cv { height: 162px; width: 108px; }
  .tsh-h3__b .tsh-plank { margin-right: -16px; }
  .tsh-h3__b .tsh-cap b { font-size: 13.5px; }
  .tsh-h3__icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
}

/* =====================================================================
   7.15 Danh mục: trang thể loại, mục lục /danh-muc, K13
   ===================================================================== */
.dm-scope { font-family: var(--mz-serif); color: var(--mz-ink); }
.dm-scope a { color: inherit; text-decoration: none; }
.dm-scope :focus-visible { outline: 2px solid var(--mz-focus); outline-offset: 3px; }
.dm-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-top: 36px; border-bottom: 1px solid var(--mz-rule); }
.dm-bar--sort-only { justify-content: flex-end; }
.dm-tabs { display: flex; gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.dm-tab { display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; box-sizing: border-box; padding: 15px 0 10px; border-bottom: 3px solid transparent; margin-bottom: -1px; font: 700 14px/1 var(--mz-condensed); letter-spacing: .12em; text-transform: uppercase; color: var(--mz-muted); white-space: nowrap; }
.dm-tab small { font: 700 12px/1 var(--mz-condensed); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dm-tab:hover { color: var(--mz-red); }
.dm-tab[aria-current] { color: var(--mz-red); border-bottom-color: var(--mz-red); }
.dm-sort { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; margin: 0; }
.dm-sort label { white-space: nowrap; font: 700 12px/1 var(--mz-condensed); letter-spacing: .14em; text-transform: uppercase; color: var(--mz-muted); }
.dm-sel { height: 40px; min-width: 176px; box-sizing: border-box; padding: 0 8px 0 12px; border: 1px solid var(--mz-rule-strong); border-radius: 0; background: var(--mz-field); font: 400 15px/1 var(--mz-serif); color: var(--mz-ink); }
.dm-sort__go { height: 40px; }
.dm-kids { margin-top: 28px; }
.dm-gridw { overflow-x: clip; margin-top: 36px; }
.dm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 44px; margin: 0 -16px; list-style: none; padding: 0; }
.dm-card { display: block; padding: 0 16px; }
.dm-plank { height: 7px; box-sizing: border-box; border-top: 3px solid var(--mz-gold); border-bottom: 1px solid var(--mz-rule-strong); }
.dm-card .dm-plank { margin: 0 -16px; }
.dm-grid > li:last-child .dm-plank { margin-right: -3000px; }
.dm-card__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 14px 0 0; font: 700 16px/1.4 var(--mz-serif); color: var(--mz-ink); }
.dm-card__a { margin: 6px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 12.5px/1.3 var(--mz-condensed); letter-spacing: .08em; text-transform: uppercase; color: var(--mz-muted); }
.dm-card .dm-plank, .dm-card__a, .dm-card__f { display: block; }
.dm-card__f { margin: 4px 0 0; font: 400 13px/1.3 var(--mz-condensed); color: var(--mz-muted); }
.dm-card:hover .dm-card__t, .dm-card:focus-visible .dm-card__t { color: var(--mz-red); text-decoration: underline 1px; text-underline-offset: 3px; }
.dm-loadmore { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 44px; }
.dm-loadmore p { margin: 0; font: italic 400 14px/1.5 var(--mz-serif); color: var(--mz-muted); }
.dm-loadmore__err { color: var(--mz-red) !important; font-style: normal !important; }
.dm-sec { margin-top: 64px; }
.dm-tus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; list-style: none; margin: 22px 0 0; padding: 0; }
.dm-tu { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px 0 20px; border-top: 1px solid var(--mz-rule); }
.dm-tu > .tsh-ico { width: 48px; height: 48px; color: var(--mz-red); }
.dm-tu p { margin: 0; }
.dm-tu .dm-k { margin-bottom: 4px; }
.dm-tu b { display: block; font: 700 16px/1.4 var(--mz-serif); color: var(--mz-ink); }
.dm-tu i { display: block; margin-top: 4px; font: italic 400 13.5px/1.5 var(--mz-serif); color: var(--mz-muted); }
.dm-tu:hover b { color: var(--mz-red); }
.dm-state { max-width: 640px; margin-top: 40px; padding: 22px 0 26px; border-top: 1px solid var(--mz-rule); border-bottom: 1px solid var(--mz-rule); }
.dm-state > .tsh-ico { width: 28px; height: 28px; color: var(--mz-muted); }
.dm-state h2 { margin: 10px 0 0; font: 900 22px/28px var(--mz-serif); color: var(--mz-ink); }
.dm-state p { margin: 8px 0 0; font: 400 16px/27px var(--mz-serif); color: var(--mz-ink); }
.dm-state .dm-btn { margin-top: 20px; }
@media (max-width: 1199px) and (min-width: 600px) { .dm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .dm-bar { display: block; margin-top: 28px; border-bottom: 0; }
  .dm-tabs { overflow-x: auto; margin: 0 calc(-1 * var(--tsh-gutter)); padding: 0 var(--tsh-gutter); gap: 0 22px; border-bottom: 1px solid var(--mz-rule); scrollbar-width: none; }
  .dm-tabs::-webkit-scrollbar { display: none; }
  .dm-tab { font-size: 12.5px; }
  .dm-sort { justify-content: space-between; padding: 12px 0 0; }
  .dm-sel { min-width: 0; flex: 0 1 200px; }
  .dm-gridw { margin-top: 24px; }
  .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -8px; row-gap: 32px; }
  .dm-card { padding: 0 8px; }
  .dm-card .dm-plank { margin: 0 -8px; }
  .dm-card__t { margin-top: 12px; font-size: 14.5px; }
  .dm-card__a { font-size: 11.5px; }
  .dm-card__f { font-size: 12.5px; }
  .dm-loadmore .dm-btn { width: 100%; }
  .dm-sec { margin-top: 48px; }
  .dm-tus { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .dm-tu { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 14px 0 16px; }
  .dm-tu > .tsh-ico { width: 40px; height: 40px; }
  .dm-state { margin-top: 28px; }
}

/* Mục lục /danh-muc */
.dm-idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; list-style: none; margin: 40px 0 0; padding: 0; }
.dm-e { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: end; height: 100%; box-sizing: border-box; padding: 22px 0 24px; border-top: 1px solid var(--mz-rule-strong); }
.dm-e h2, .dm-e h3 { margin: 0; font: 900 22px/1.25 var(--mz-serif); letter-spacing: -.005em; }
.dm-e h2 a:hover, .dm-e h3 a:hover { color: var(--mz-red); text-decoration: underline 1px; text-underline-offset: 4px; }
.dm-e .dm-meta { margin-top: 8px; }
.dm-e__d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; font: italic 400 15px/1.6 var(--mz-serif); color: var(--mz-muted); }
.dm-e__txt { align-self: start; }
.dm-e__kids { list-style: none; margin: 10px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--mz-rule-strong); }
.dm-e__kids a { display: flex; gap: 10px; align-items: center; min-height: 40px; font: 400 15px/1.35 var(--mz-serif); }
.dm-e__kids a:hover { color: var(--mz-red); }
.dm-e__kids small { font: 700 13px/1 var(--mz-condensed); color: var(--mz-muted); }
.dm-shelf { display: block; }
.dm-shelf__c { display: flex; align-items: flex-end; gap: var(--g, 10px); height: var(--h, 96px); }
.dm-shelf__c .dm-cv { height: var(--h, 96px); width: calc(var(--h, 96px) * 2 / 3); flex: 0 0 auto; }
.dm-wait { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--mz-rule-strong); }
.dm-wait .dm-k { color: var(--mz-muted); }
.dm-wait > p:not(.dm-k) { margin: 4px 0 0; font: italic 400 15px/1.6 var(--mz-serif); color: var(--mz-muted); }
.dm-wait ul { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 6px 0 0; padding: 0; }
.dm-wait li a { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1.35 var(--mz-serif); color: var(--mz-ink); }
.dm-wait li a:hover { color: var(--mz-red); }
.dm-cross { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--mz-rule); font: italic 400 15px/1.6 var(--mz-serif); color: var(--mz-muted); }
.dm-grp { margin-top: 52px; }
.dm-grp .dm-sh .dm-meta { margin: 0 0 4px; }
@media (max-width: 599px) {
  .dm-idx { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .dm-e { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding: 18px 0 20px; }
  .dm-e h2, .dm-e h3 { font-size: 19px; }
  .dm-e .dm-shelf { --h: 84px !important; }
  .dm-e .dm-shelf__c .dm-cv:nth-child(n + 4) { display: none; }
  .dm-wait ul { gap: 0 20px; }
}

/* K13 Ô thể loại (bản xem lại 7.15.4) */
.dm-home .dm-sh { margin-bottom: 0; }
.dm-k13 { display: grid; grid-template-columns: repeat(var(--c, 4), minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 26px 0 0; padding: 0; }
.dm-k13[data-n="3"], .dm-k13[data-n="5"], .dm-k13[data-n="6"] { --c: 3; }
.dm-tile { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding-top: 16px; border-top: 3px solid var(--mz-red); }
.dm-tile b { font: 900 20px/1.25 var(--mz-serif); letter-spacing: -.005em; color: var(--mz-ink); }
.dm-tile i { margin-top: 6px; font: italic 400 13.5px/1.5 var(--mz-serif); color: var(--mz-muted); }
.dm-tile .dm-shelf { margin-top: auto; padding-top: 20px; }
.dm-tile:hover b { color: var(--mz-red); text-decoration: underline 1px; text-underline-offset: 4px; }
@media (max-width: 899px) { .dm-k13, .dm-k13[data-n] { --c: 3; } }
@media (max-width: 599px) {
  .dm-k13, .dm-k13[data-n] { --c: 2; gap: 28px 16px; margin-top: 18px; }
  .dm-tile b { font-size: 16px; }
  .dm-tile i { font-size: 12.5px; }
  .dm-tile .dm-shelf { --h: 84px !important; --g: 8px !important; padding-top: 14px; }
  .dm-tile .dm-shelf__c .dm-cv:nth-child(n + 3) { display: none; }
}

/* Góc vuông (DAC-TA-WEB §1.1): nút mắt hiện mật khẩu ở /register, /reset-password kế thừa `button` toàn cục bo 10 px. */
.password-toggle-btn { border-radius: 0; }
