/* /chung/dau-trang — đầu trang dùng chung kiểu D (chốt 31/10/2026 12:02): gradient theo màu app, hoa văn chìm mạch điện + điểm hàn + 2 bánh răng dồn nửa phải, viền dưới vàng 3px, logo ~70px, vạch đứng, tên in hoa.
   Áp lên khung tg2 (.tg2-hd). Cao lấy biến --dau-cao (mọi phần dính dưới đầu trang đọc biến này). Đợt này chỉ gắn vào Văn phòng số. */
@media (min-width:768px){:root{--dau-cao:104px}}
.tg2-hd{height:var(--dau-cao);min-height:var(--dau-cao);box-sizing:border-box;background:linear-gradient(90deg,var(--m-hd1,#0F56A8) 0%,var(--m-hd2,#1767BE) 45%,var(--m-hd3,#1E7FD6) 100%);box-shadow:0 2px 10px rgba(10,40,90,.25);border-bottom:3px solid #F2C230}
.tg2-hd::before{content:"";position:absolute;inset:0;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%221600%22%20height%3D%22104%22%20viewBox%3D%220%200%201600%20104%22%3E%3Cpath%20d%3D%22M560%2020%20H700%20L720%2040%20H860%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.12%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M600%2084%20H760%20L780%2064%20H900%20L920%2044%20H1000%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.12%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M880%2010%20V30%20L900%2050%20H980%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.12%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M1080%2096%20H1180%20L1200%2076%20H1280%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.12%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M1300%2014%20H1360%20L1380%2034%20H1470%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.12%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M1490%2070%20H1600%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.12%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%22560%22%20cy%3D%2220%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%22860%22%20cy%3D%2240%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%22600%22%20cy%3D%2284%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%221000%22%20cy%3D%2244%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%22880%22%20cy%3D%2210%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%22980%22%20cy%3D%2250%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%221080%22%20cy%3D%2296%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%221280%22%20cy%3D%2276%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%221300%22%20cy%3D%2214%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%221470%22%20cy%3D%2234%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Ccircle%20cx%3D%221490%22%20cy%3D%2270%22%20r%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%221.5%22/%3E%3Cpolygon%20points%3D%221220.0%2C52.0%201219.7%2C57.2%201212.5%2C60.7%201211.0%2C64.9%201214.6%2C72.0%201211.7%2C76.4%201203.8%2C75.8%201200.5%2C78.7%201200.0%2C86.6%201195.3%2C89.0%201188.7%2C84.5%201184.4%2C85.3%201180.0%2C92.0%201174.8%2C91.7%201171.3%2C84.5%201167.1%2C83.0%201160.0%2C86.6%201155.6%2C83.7%201156.2%2C75.8%201153.3%2C72.5%201145.4%2C72.0%201143.0%2C67.3%201147.5%2C60.7%201146.7%2C56.4%201140.0%2C52.0%201140.3%2C46.8%201147.5%2C43.3%201149.0%2C39.1%201145.4%2C32.0%201148.3%2C27.6%201156.2%2C28.2%201159.5%2C25.3%201160.0%2C17.4%201164.7%2C15.0%201171.3%2C19.5%201175.6%2C18.7%201180.0%2C12.0%201185.2%2C12.3%201188.7%2C19.5%201192.9%2C21.0%201200.0%2C17.4%201204.4%2C20.3%201203.8%2C28.2%201206.7%2C31.5%201214.6%2C32.0%201217.0%2C36.7%201212.5%2C43.3%201213.3%2C47.6%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.6%22/%3E%3Ccircle%20cx%3D%221180%22%20cy%3D%2252%22%20r%3D%2216.8%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%221.6%22/%3E%3Ccircle%20cx%3D%221180%22%20cy%3D%2252%22%20r%3D%224.8%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.1%22/%3E%3Cpolygon%20points%3D%221447.0%2C82.0%201446.7%2C87.8%201437.6%2C91.7%201436.2%2C96.4%201441.9%2C104.6%201439.0%2C109.7%201429.2%2C109.2%201425.9%2C112.9%201427.4%2C122.7%201422.7%2C126.0%201414.0%2C121.4%201409.4%2C123.2%201406.6%2C132.7%201400.8%2C133.7%201395.0%2C125.7%201390.1%2C125.4%201383.4%2C132.7%201377.8%2C131.1%201376.0%2C121.4%201371.8%2C119.0%201362.6%2C122.7%201358.2%2C118.8%201360.8%2C109.2%201358.0%2C105.2%201348.1%2C104.6%201345.9%2C99.2%201352.4%2C91.7%201351.6%2C86.9%201343.0%2C82.0%201343.3%2C76.2%201352.4%2C72.3%201353.8%2C67.6%201348.1%2C59.4%201351.0%2C54.3%201360.8%2C54.8%201364.1%2C51.1%201362.6%2C41.3%201367.3%2C38.0%201376.0%2C42.6%201380.6%2C40.8%201383.4%2C31.3%201389.2%2C30.3%201395.0%2C38.3%201399.9%2C38.6%201406.6%2C31.3%201412.2%2C32.9%201414.0%2C42.6%201418.2%2C45.0%201427.4%2C41.3%201431.8%2C45.2%201429.2%2C54.8%201432.0%2C58.8%201441.9%2C59.4%201444.1%2C64.8%201437.6%2C72.3%201438.4%2C77.1%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.08%22%20stroke-width%3D%221.6%22/%3E%3Ccircle%20cx%3D%221395%22%20cy%3D%2282%22%20r%3D%2221.8%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.08%22%20stroke-width%3D%221.6%22/%3E%3Ccircle%20cx%3D%221395%22%20cy%3D%2282%22%20r%3D%226.2%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.08%22/%3E%3C/svg%3E") right center/1600px 104px no-repeat}
.tg2-hd>*{position:relative;z-index:1}
@media (min-width:768px){
  .tg2-hd{gap:18px;padding:0 22px}
  .tg2-hd .tg2-logo-truong{width:70px;height:70px;margin-left:0;box-shadow:0 0 0 4px rgba(255,255,255,.25)}
  .tg2-hd .tg2-logo-truong img{width:66px;height:66px}
  .tg2-hd .tg2-nd.tg2-nd-chu{margin:0 8px 0 0;border-left:2px solid rgba(255,255,255,.35);padding-left:16px}
  .tg2-hd .tg2-nd-chu small{font-size:15px;letter-spacing:1.4px;font-weight:700;opacity:.96;text-transform:uppercase;margin-bottom:4px;white-space:nowrap}
  .tg2-hd .tg2-nd.tg2-nd-chu b{font-size:30px;letter-spacing:2px;font-weight:800;line-height:1.15;text-transform:uppercase;text-shadow:0 1px 2px rgba(0,0,0,.18);display:block}
  .tg2-hd .tg2-hst{color:var(--m-pd,#155AA6);background:#fff;border:0;box-shadow:0 2px 6px rgba(0,0,0,.18)}
  .tg2-hd .tg2-hst:hover{background:#F3F8FE}
  .tg2-hd .tg2-s{width:auto;flex:1 1 300px;max-width:520px;background:rgba(255,255,255,.18);border-radius:6px;padding:11px 14px;color:#fff}
  .tg2-hd .tg2-s input::placeholder{color:rgba(255,255,255,.92)}
  .tg2-hd .tg2-bell{width:44px;height:44px;background:rgba(255,255,255,.18);border-radius:6px}
  .tg2-me{background:rgba(255,255,255,.18);border-radius:6px;padding:6px 12px 6px 6px}
  .tg2-me>i{width:34px;height:34px;border-radius:4px}
}
/* iPad và màn hẹp: chữ, logo co theo chỗ còn lại; ô tìm không lấn chữ */
@media (min-width:768px) and (max-width:1279px){
  .tg2-hd{gap:12px;padding:0 14px}
  .tg2-hd .tg2-hst{padding:0 10px 0 5px;font-size:12.5px}
  .tg2-hd .tg2-nd-chu small{font-size:13px;letter-spacing:.8px}
  .tg2-hd .tg2-nd.tg2-nd-chu b{font-size:26px;letter-spacing:1.5px}
  .tg2-hd .tg2-s{flex:1 1 140px;min-width:120px}
  .tg2-me>span{display:none}
}
@media (min-width:768px) and (max-width:1023px){
  .tg2-hd .tg2-hst-mt{display:none}.tg2-hd .tg2-hst{padding:0 5px}
  .tg2-hd .tg2-logo-truong{width:60px;height:60px}.tg2-hd .tg2-logo-truong img{width:56px;height:56px}
  .tg2-hd .tg2-nd-chu small{font-size:12px;letter-spacing:.4px}.tg2-hd .tg2-nd.tg2-nd-chu b{font-size:22px;letter-spacing:1px}
}
/* Điện thoại: một hàng gọn, vẫn in hoa */
@media (max-width:767px){
  .tg2-hd{gap:4px;padding:0 6px;height:auto;min-height:var(--dau-cao)}
  .tg2-hd .tg2-nd-chu b{text-transform:uppercase;letter-spacing:.3px;font-size:15px}
  .tg2-hd .tg2-nd-chu small::before{content:"TRƯỜNG TCN THÁI NGUYÊN"!important}
}
@media (max-width:374px){.tg2-hd .tg2-nd-chu small::before{content:"TCN THÁI NGUYÊN"!important}.tg2-hd .tg2-nd-chu b{font-size:14px}}
/* BS1: hai dòng chữ căn giữa với nhau trong một khối rộng bằng dòng dài hơn (tên app dài hơn tên trường vẫn cân) */
.tg2-hd .tg2-nd.tg2-nd-chu>span{display:inline-block;width:fit-content;max-width:100%;text-align:center}
.tg2-hd .tg2-nd-chu small,.tg2-hd .tg2-nd-chu b{display:block;text-align:center}
