/* Trang /bang-chu-cai-than-so-hoc/ (nạp qua cssThem). JS: /assets/ten-so-hoc.js. Lớp riêng tsh-*, dùng token màu của site.css.
   Không tràn ở 390px: lưới dùng minmax(0,1fr), chữ dài xuống dòng bằng overflow-wrap:anywhere, ô chữ cái tự xuống hàng. */
.tsh-wrap{ padding-top:10px; }
.tsh-card{ background:var(--white); border:1.5px solid var(--ink); border-left:5px solid var(--sol); border-radius:4px; padding:14px 16px; margin-bottom:18px; min-width:0; }
.tsh-form{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.tsh-form label{ display:flex; flex-direction:column; gap:5px; min-width:0; font-size:13px; font-weight:600; color:var(--ink); }
.tsh-form .tsh-dong-ten{ grid-column:1 / -1; }
.tsh-form input, .tsh-form select{ width:100%; min-width:0; box-sizing:border-box; font:inherit; font-size:16px; padding:10px 8px; border:1.5px solid var(--ink); border-radius:4px; background:var(--white); color:var(--ink); }
.tsh-form input:focus, .tsh-form select:focus{ outline:2px solid var(--sol); outline-offset:1px; }
#tsh-tinh, .tsh-nut{ display:block; width:100%; font:inherit; font-size:16px; font-weight:700; padding:12px 16px; border:0; border-radius:4px; background:var(--sol); color:var(--white); cursor:pointer; }
#tsh-tinh:hover, .tsh-nut:hover{ background:var(--sol-h); }
#tsh-tinh:focus-visible, .tsh-nut:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.tsh-note{ font-size:13px !important; color:var(--ink2) !important; line-height:1.6 !important; margin:8px 0 0 !important; }
#tsh-ketqua{ margin-top:14px; min-width:0; overflow-wrap:anywhere; }
#tsh-ketqua:empty{ margin-top:0; }
#tsh-ketqua p{ margin:0 0 10px; }
.tsh-ten-kq{ font-family:var(--mono); font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink2); }
.tsh-luoi{ display:flex; flex-wrap:wrap; gap:8px 14px; margin:0 0 6px; min-width:0; }
.tsh-tu{ display:flex; flex-wrap:wrap; gap:2px; min-width:0; }
.tsh-o{ display:grid; grid-template-rows:repeat(3,auto); justify-items:center; min-width:24px; padding:2px 3px; border:1px solid var(--ink2); border-radius:3px; background:var(--white); font-family:var(--mono); line-height:1.25; }
.tsh-o-na{ border-color:var(--sol); background:var(--paper); }
.tsh-na, .tsh-pa{ font-size:12px; min-height:15px; color:var(--sol); font-weight:700; }
.tsh-pa{ color:var(--ink); }
.tsh-c{ font-size:17px; font-weight:800; color:var(--ink); }
.tsh-chu-thich{ font-size:13px; color:var(--ink2); }
.tsh-kq{ border-top:1px solid var(--ink2); padding-top:10px; margin-top:10px; min-width:0; }
.tsh-so{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; }
.tsh-so-chu{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink2); }
.tsh-so-gt{ font-size:34px; font-weight:800; line-height:1.1; color:var(--sol); }
.tsh-so-khong{ font-size:18px; color:var(--ink2); }
.tsh-buoc{ font-family:var(--mono); font-size:14px; color:var(--ink); line-height:1.6; }
.tsh-y{ background:var(--paper); border-left:4px solid var(--sol); padding:10px 12px; font-size:15px; line-height:1.7; color:#34383C; }
.tsh-lk a, .tsh-khop a, .tsh-ngay-kq a{ color:var(--sol); border-bottom:1px solid currentColor; }
.tsh-ngay-kq{ font-weight:600; color:var(--ink); }
.tsh-khop{ font-size:14px; color:var(--ink2); }
.tsh-loi{ color:#B3261E; font-weight:600; }
#tsh-bang-chu{ table-layout:fixed; width:100%; }
#tsh-bang-chu th, #tsh-bang-chu td{ text-align:center; padding-left:2px; padding-right:2px; overflow-wrap:anywhere; }
#tsh-bang-cach td[data-cach]{ font-family:var(--mono); font-weight:700; color:var(--sol); overflow-wrap:anywhere; }
#tsh-bang-cach td[data-cach]:empty::before{ content:"\00B7"; color:var(--ink2); font-weight:400; }
@media(max-width:420px){
  .tsh-card{ padding:12px; }
  .tsh-form{ gap:8px; }
  .tsh-form select{ padding:10px 4px; }
  .tsh-so-gt{ font-size:30px; }
  .tsh-c{ font-size:15px; }
  .tsh-o{ min-width:20px; padding:2px; }
}
