/* ============================================================
   Thước ngày trên trang gốc (10/11/2026)
   Thanh mảnh nằm TRÊN header, bảy ô T2 → CN dẫn tới 7 mẫu trong /mau-tuan/. Từ 11/11/2026 thanh DÍNH ở mép trên khi cuộn
   (js/thuoc-ngay.js bật class thuoc-ghim trên <html> và đặt --thuoc-h = chiều cao thanh lúc dính; chỗ cũ giữ nguyên nên trang không giật).
   Dùng biến màu của tông đang chọn (xanh/vàng) nên tự đổi theo nút đổi tông. js/thuoc-ngay.js đánh dấu hôm nay.
   ============================================================ */
.thuoc-bar{ background:var(--nen-chim,#0A100B); border-bottom:1px solid var(--vien-toi,rgba(255,255,255,.14)); }
.thuoc-khung{ max-width:1440px; margin:0 auto; padding:6px 20px; display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.thuoc-nhan{ margin:0; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--chu-nhat-mo,#AFC2AC); }
.thuoc-o{ display:flex; margin:0; padding:0; list-style:none; overflow:hidden; border:1px solid var(--vien-toi,rgba(255,255,255,.14)); border-radius:999px; }
.thuoc-o li{ display:flex; }
.thuoc-o li + li{ border-left:1px solid var(--vien-toi,rgba(255,255,255,.14)); }
.thuoc-o a{
  display:flex; align-items:center; justify-content:center; min-width:48px; min-height:44px; padding:0 8px;
  font-size:13px; font-weight:700; color:var(--chu-nhat,#EAF2E7); text-decoration:none; border-bottom:0;
}
.thuoc-o a:hover{ background:rgba(255,255,255,.1); }
.thuoc-o a.hom-nay{ color:var(--den-ho-phach-nhat,#9ED696); box-shadow:inset 0 -3px 0 var(--den-ho-phach-nhat,#9ED696); }
.thuoc-o a:focus-visible{ outline:2px solid var(--den-ho-phach-nhat,#9ED696); outline-offset:-3px; }
@media (max-width:640px){
  .thuoc-khung{ flex-wrap:wrap; justify-content:flex-start; gap:2px; padding:4px 12px 6px; }
  .thuoc-nhan{ flex:1 1 100%; font-size:11px; }
  .thuoc-o{ width:100%; }
  .thuoc-o li{ flex:1 1 0; }
  .thuoc-o a{ min-width:0; width:100%; }
}

/* ---- Dính khi cuộn (11/11/2026) ---- */
html{ scroll-padding-top:56px; }
html.thuoc-ghim .thuoc-khung{
  position:fixed; top:0; left:0; right:0; z-index:70; max-width:none; margin:0;
  padding-left:max(20px, calc((100vw - 1440px) / 2 + 20px)); padding-right:max(20px, calc((100vw - 1440px) / 2 + 20px));
  background:var(--nen-chim,#0A100B); border-bottom:1px solid var(--vien-toi,rgba(255,255,255,.14));
  box-shadow:0 2px 10px rgba(0,0,0,.35);
}
/* Header và các thanh dính khác lùi xuống dưới thanh thước */
html.thuoc-ghim header.site{ top:var(--thuoc-h,0px); }
html.thuoc-ghim .lk-chuyen{ top:calc(64px + var(--thuoc-h,0px)); }
html.thuoc-ghim .loai-tabs{ top:calc(70px + var(--thuoc-h,0px)); }
@media (max-width:640px){
  html.thuoc-ghim .thuoc-khung{ padding:4px 12px; }
  html.thuoc-ghim .thuoc-nhan{ display:none; }   /* khi dính trên điện thoại chỉ giữ hàng T2–CN cho gọn */
}
