/* VSW-TC-03 · Chính sách nhà tài trợ (bảng kiểu template + popup) */
.ttcs { background: var(--vs-trang); min-width: 0; }
.ttcs .vs-khung, .ttcs-phan { min-width: 0; }
.ttcs-dau { max-width: 760px; margin: 0 auto var(--vs-k5); text-align: center; }
.ttcs-nhan {
  display: inline-flex; align-items: center; gap: var(--vs-k2);
  padding: var(--vs-k1) var(--vs-k3); border-radius: 999px;
  border: 1px solid var(--vs-line); background: var(--vs-trang);
  font: 700 var(--vs-co-nhan)/var(--vs-dong-nhan) var(--vs-font-nhan);
  text-transform: uppercase; letter-spacing: var(--vs-gian-nhan); color: var(--vs-blue);
}
.ttcs-nhan-cham { width: 6px; height: 6px; border-radius: 50%; background: var(--vs-success); }
.ttcs-tieu-de {
  margin-top: var(--vs-k3); text-align: center; font-size: var(--vs-co-h2);
  color: var(--vs-ink); overflow-wrap: anywhere;
}
.ttcs-tieu-de-nhan { color: var(--vs-action); }
.ttcs-mo-ta {
  margin-top: var(--vs-k3); text-align: center; color: var(--vs-muted);
  font: 400 var(--vs-co-noi-dung)/var(--vs-dong-noi-dung) var(--vs-font-noi-dung);
}
.ttcs-phan { margin-top: var(--vs-k5); }
.ttcs-sub { margin-bottom: var(--vs-k4); }
.ttcs-goi-y-keo {
  margin-bottom: var(--vs-k3);
  font: 600 var(--vs-co-nhan)/var(--vs-dong-nhan) var(--vs-font-nhan); color: var(--vs-muted);
}
.ttcs-goi-y-keo span { margin-left: var(--vs-k2); }
.ttcs-bang-cuon {
  width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  background: var(--vs-trang); border: 1px solid var(--vs-line);
  border-radius: calc(var(--vs-bo-the) * 2); box-shadow: var(--vs-bong-nhe);
}
.ttcs-cmp, .ttcs-hm {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  color: var(--vs-ink); line-height: 1.5;
}
.ttcs-cmp { min-width: 720px; font-family: var(--vs-font-noi-dung); font-size: var(--vs-co-nho); }
.ttcs-cmp th, .ttcs-cmp td { vertical-align: middle; overflow-wrap: anywhere; }
.ttcs-cmp thead th { padding: var(--vs-k3) var(--vs-k4); border-bottom: 1px solid var(--vs-line); }
.ttcs-cmp-goc { width: 180px; font-weight: 500; font-size: var(--vs-co-nho); color: var(--vs-muted); }
.ttcs-cmp-goi { text-align: center; font-weight: 700; font-size: var(--vs-co-nho); }
.ttcs-cmp-goc, .ttcs-cmp-ten {
  position: sticky; left: 0; z-index: 1; text-align: left; background: var(--vs-trang);
}
.ttcs-cmp-nhom-ten {
  text-align: left; background: var(--vs-ice); color: var(--vs-action);
  font-size: var(--vs-co-nhan); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: var(--vs-k3) var(--vs-k4); border-top: 1px solid var(--vs-line);
}
.ttcs-cmp-nhom-chu { position: sticky; left: var(--vs-k4); display: inline-block; max-width: calc(100vw - 100px); }
.ttcs-cmp-ten { padding: var(--vs-k3) var(--vs-k4); border-top: 1px solid var(--vs-line); font-weight: 500; }
.ttcs-cmp-o {
  position: relative;
  text-align: center; padding: var(--vs-k3) var(--vs-k2); border-top: 1px solid var(--vs-line);
  font-size: var(--vs-co-nho); font-weight: 500; color: var(--vs-ink);
}
.ttcs-cmp-o--gia { font-weight: 700; font-size: var(--vs-co-nho); overflow-wrap: normal; }
.ttcs-icon { display: inline-block; vertical-align: middle; }
.ttcs-cmp-o--co .ttcs-icon {
  width: 14px; height: 8px; border-left: 2px solid var(--vs-success);
  border-bottom: 2px solid var(--vs-success); transform: translateY(-2px) rotate(-45deg);
}
.ttcs-cmp-o--khong .ttcs-icon { width: 12px; height: 2px; background: var(--vs-muted); }
.ttcs-cmp-o--co .ttcs-cmp-chu, .ttcs-cmp-o--khong .ttcs-cmp-chu {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: clip; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ttcs-cmp-o--chu .ttcs-icon { display: none; }
.ttcs-hang--kim_cuong { background: var(--vs-hang-kim-cuong-nen); }
.ttcs-hang--bach_kim { background: var(--vs-hang-bach-kim-nen); }
.ttcs-hang--vang { background: var(--vs-hang-vang-nen); }
.ttcs-hang--bac { background: var(--vs-hang-bac-nen); }
.ttcs-cmp-goi.ttcs-hang--kim_cuong { color: var(--vs-hang-kim-cuong-chu); }
.ttcs-cmp-goi.ttcs-hang--bach_kim { color: var(--vs-hang-bach-kim-chu); }
.ttcs-cmp-goi.ttcs-hang--vang { color: var(--vs-hang-vang-chu); }
.ttcs-cmp-goi.ttcs-hang--bac { color: var(--vs-hang-bac-chu); }
.ttcs-mo-rong { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--vs-k3); margin-top: var(--vs-k6); }
.ttcs-mo-muc { position: relative; width: 100%; }
.ttcs-mo-popup { width: 100%; padding-right: var(--vs-k7); }
.ttcs-mo-icon {
  position: absolute; right: var(--vs-k4); top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: none; stroke: var(--vs-action); stroke-width: 2; pointer-events: none;
}
.ttcs [hidden], .ttcs-mo-popup[hidden] + .ttcs-mo-icon { display: none; }
.ttcs-popup {
  border: 0; padding: 0; width: min(1080px, calc(100% - 32px));
  max-height: calc(100dvh - 48px); border-radius: calc(var(--vs-bo-the) * 2);
  box-shadow: var(--vs-bong-nhe); background: var(--vs-trang); color: var(--vs-ink);
  position: fixed; inset: 0; margin: auto; overflow: clip;
}
.ttcs-popup[open] { display: flex; flex-direction: column; }
.ttcs--js .ttcs-popup:not([open]) { display: none; }
.ttcs-popup--rong { width: min(1240px, calc(100% - 32px)); }
.ttcs-popup::backdrop { background: var(--vs-man-che); }
.ttcs-popup-dau {
  display: flex; justify-content: space-between; align-items: center; gap: var(--vs-k4);
  padding: var(--vs-k4) var(--vs-k5); border-bottom: 1px solid var(--vs-line);
  position: sticky; top: 0; z-index: 2; background: var(--vs-trang); flex-shrink: 0;
}
.ttcs-popup-tieu-de { min-width: 0; overflow-wrap: anywhere; }
.ttcs-popup-dong {
  width: 44px; height: 44px; flex-shrink: 0; border: 0; padding: 0;
  background: none; font-size: 28px; color: var(--vs-ink); cursor: pointer;
}
.ttcs-popup-dong:focus-visible { outline: 3px solid var(--vs-action); outline-offset: 3px; }
.ttcs-popup-than { padding: var(--vs-k4); overflow: auto; min-height: 0; overscroll-behavior: contain; }
.ttcs:not(.ttcs--js) .ttcs-popup {
  display: block; position: static; width: auto; max-height: none; box-shadow: none; margin: var(--vs-k6) 0 0;
}
.ttcs:not(.ttcs--js) .ttcs-mo-rong { display: none; }
html:has(.ttcs-popup[open]) { overflow: clip; }
.ttcs-hm { min-width: 1080px; font-size: var(--vs-co-nho); }
.ttcs-hm th, .ttcs-hm td {
  padding: var(--vs-k2) var(--vs-k3); border-right: 1px solid var(--vs-line);
  border-bottom: 1px solid var(--vs-line); vertical-align: middle; word-break: normal; overflow-wrap: anywhere;
}
.ttcs-hm th:first-child { border-left: 1px solid var(--vs-line); }
.ttcs-hm thead { background: var(--vs-ice); }
.ttcs-hm thead th { border-top: 1px solid var(--vs-line); }
.ttcs-hm-goc, .ttcs-hm-ten {
  position: sticky; left: 0; z-index: 1; background: var(--vs-trang); text-align: left; font-weight: 600;
}
.ttcs-hm .ttcs-hm-goc { background: var(--vs-ice); }
.ttcs-hm-goc { width: 140px; }
.ttcs-hm thead th {
  font-family: var(--vs-font-nhan); font-size: var(--vs-co-nhan); font-weight: 600; color: var(--vs-muted); text-align: left;
}
.ttcs-ghi-chu, .ttcs-ghi-chu-ds {
  font-size: var(--vs-co-nho);
  color: var(--vs-muted);
}
.ttcs-ghi-chu { margin-top: var(--vs-k4); font-style: italic; }
.ttcs .ttcs-ghi-chu-ds { margin-top: var(--vs-k2); }
.ttcs-ghi-chu-ds li + li { margin-top: var(--vs-k1); }
.ttcs-hm .ttcs-hm-nhom-ten {
  background: var(--vs-teal-chu);
  color: var(--vs-trang);
  font: 600 var(--vs-co-nho)/1.5 var(--vs-font-tieu-de);
  text-align: left;
}
.ttcs-hm-ten { font-size: var(--vs-co-nho); }
.ttcs-hm-phi { font-weight: 600; }
.ttcs-lien-he-btc { color: var(--vs-muted); font-style: italic; }
.ttcs-moc-ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--vs-k4); }
.ttcs-moc {
  position: relative;
  min-width: 0;
  padding: var(--vs-k4);
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-bo-the);
  background: var(--vs-trang);
}
.ttcs-moc-ngay {
  font: 700 var(--vs-co-noi-dung)/1.5 var(--vs-font-noi-dung);
  color: var(--vs-blue);
}
.ttcs-moc-ngay time { display: inline-block; }
.ttcs-moc-noi-dung { margin-top: var(--vs-k2); font-size: var(--vs-co-noi-dung); }
.ttcs-moc--truoc_ngay .ttcs-moc-nhan--tu_ngay,
.ttcs-moc--tu_ngay .ttcs-moc-nhan--truoc_ngay { display: none; }
.ttcs-so-do { max-width: 900px; margin-inline: auto; }
.ttcs-so-do-lien-ket { display: block; cursor: zoom-in; text-decoration: none; }
.ttcs-so-do-anh {
  width: 100%;
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-bo-the);
  transition: border-color var(--vs-t-nhanh), box-shadow var(--vs-t-nhanh), filter var(--vs-t-nhanh);
}
.ttcs-so-do-lien-ket:hover .ttcs-so-do-anh,
.ttcs-so-do-lien-ket:focus-visible .ttcs-so-do-anh {
  border-color: var(--vs-vien-hover);
  box-shadow: var(--vs-bong-nhe);
  filter: brightness(1.02);
}
.ttcs-so-do-mo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--vs-cham-toi-thieu);
  padding-block: var(--vs-k2);
  font: 600 var(--vs-co-nhan)/var(--vs-dong-nhan) var(--vs-font-nhan);
  color: var(--vs-action);
  text-align: center;
  text-decoration: underline;
}
.ttcs-cta {
  position: relative; overflow: clip; padding: var(--vs-k5);
  background: var(--vs-trang); border: 1px solid var(--vs-ice); border-radius: var(--vs-bo-the);
}
.ttcs-cta > :not(.ttcs-cta-nen) { position: relative; z-index: 1; }
/* Ảnh nền khung đăng ký (Q20): điện thoại là dải dưới đáy khung, từ 768px phủ kín khung. */
.ttcs-cta-nen {
  position: absolute; inset: auto 0 0 0; z-index: 0; width: 100%; height: 220px;
  object-fit: cover; object-position: 80% bottom;
}
.ttcs-cta-nen ~ .ttcs-lien-he { margin-bottom: 240px; }
.ttcs-cta-hanh-dong {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--vs-k4);
  margin-block: var(--vs-k5) var(--vs-k6);
}
.ttcs-cta-nut { width: 100%; }
.ttcs-cta-email {
  min-width: 0;
  font: 600 var(--vs-co-nho)/1.5 var(--vs-font-noi-dung);
  color: var(--vs-ink);
  user-select: text;
  overflow-wrap: anywhere;
}
.ttcs-lien-he { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--vs-k4); }
.ttcs-lien-he-the { min-width: 0; padding: var(--vs-k4); border-radius: var(--vs-bo-the); background: var(--vs-trang); }
.ttcs-lh-ten { font: 700 var(--vs-co-noi-dung)/1.5 var(--vs-font-noi-dung); color: var(--vs-ink); }
.ttcs-lh-vai-tro { margin-top: var(--vs-k1); font-size: var(--vs-co-nho); color: var(--vs-muted); }
.ttcs-lh-email a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: var(--vs-cham-toi-thieu);
  padding-block: var(--vs-k2);
  font-size: var(--vs-co-nho);
  font-weight: 600;
  color: var(--vs-action);
  overflow-wrap: anywhere;
}
.ttcs-lh-email a:hover { color: var(--vs-blue); }
@media (min-width: 768px) {
  .ttcs-cta-nen { inset: 0; height: 100%; object-position: right center; }
  .ttcs-cta-nen ~ .ttcs-lien-he { margin-bottom: 0; }
  .ttcs-phan { margin-top: var(--vs-k6); }
  .ttcs-moc-ds, .ttcs-lien-he { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ttcs-cta { padding: var(--vs-k6); }
  .ttcs-cta-hanh-dong { flex-direction: row; align-items: center; }
  .ttcs-cta-nut { width: auto; flex-shrink: 0; }
}
@media (min-width: 1024px) {
  .ttcs-phan { margin-top: var(--vs-k7); }
  .ttcs-goi-y-keo { display: none; }
  .ttcs-hm-goc { width: 170px; }
  .ttcs-moc-ds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ttcs-moc + .ttcs-moc::before {
    content: "";
    position: absolute;
    top: var(--vs-k6);
    right: 100%;
    width: calc(var(--vs-k4) + 2px);
    height: 1px;
    background: var(--vs-line);
  }
}
@media (min-width: 1160px) {
  .ttcs-hm { min-width: 0; }
  .ttcs-hm-goc { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .ttcs-so-do-anh { transition: none; }
}
@media (min-width: 768px) {
  .ttcs-mo-muc { width: auto; }
}
@media (min-width: 1024px) {
  .ttcs-dau { margin-bottom: var(--vs-k6); }
  .ttcs-cmp { min-width: 0; }
  .ttcs-cmp-goc { width: 40%; }
  .ttcs-cmp-goc, .ttcs-cmp-ten, .ttcs-cmp-nhom-chu { position: static; }
  .ttcs-popup-than { padding: var(--vs-k5); }
}
@media (prefers-reduced-motion: reduce) {
  .ttcs *, .ttcs *::before, .ttcs *::after { animation: none; transition: none; }
}
