.tc-wrap{
  --gap:18px;
  --muted:#6b7280;
  --line:#cfd4da;
  --accent:#0ea5e9;
  --banner:#7a7a7a;
  margin:24px auto;
  max-width:1100px;
  padding:0 16px;
}

/* Scope màu trong khu vực Trouble Code để tránh ảnh hưởng site */
.tc-wrap h1,.tc-wrap h2,.tc-wrap h3,.tc-wrap h4,.tc-wrap h5,.tc-wrap h6,
.tc-wrap ul,.tc-wrap li,.tc-wrap p{color:#111}

.tc-top{margin-bottom:12px}

.tc-bc{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  font-size:13px;color:#0f172a;margin-bottom:6px
}
.tc-bc a{color:#0f172a;text-decoration:none}
.tc-bc a:hover{text-decoration:underline}
.tc-bc__sep{opacity:.5}
.tc-bc__current{color:#6b7280}

.tc-h1{
  font-size:clamp(22px,3.2vw,40px);
  line-height:1.25;margin:4px 0 8px;font-weight:800;color:#0f172a
}

.tc-meta{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:8px
}
.tc-date{font-weight:700;color:#374151}

.tc-share{display:flex;align-items:center;gap:10px}
.tc-share__btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:999px;background:#fff;
  border:1px solid var(--line);text-decoration:none;cursor:pointer;
  transition:transform .12s, background .12s, box-shadow .12s
}
.tc-share__btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.07)}
.tc-share__btn:focus{outline:2px solid var(--accent);outline-offset:2px}
.tc-share__fb{color:#1877f2;border-color:#cfe0ff;background:#f3f7ff}
.tc-share__wa{color:#25D366;border-color:#cbf1da;background:#f4fdf7}
@media (max-width:560px){.tc-meta{flex-direction:column;align-items:flex-start}}

.tc-banner{background:var(--banner);color:#fff;border-radius:3px}
.tc-banner__title{
  font-weight:800;letter-spacing:.02em;text-align:center;
  font-size:24px;padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.15)
}
.tc-banner__sub{padding:10px 12px;text-align:center;font-size:14px;opacity:.95}

.tc-ov-heading{margin:14px 0 8px;font-size:16px;color:#111}
.tc-table{
  border:1px solid #6e6e6e;border-radius:2px;overflow:hidden;background:#fff
}
.tc-table__row{display:grid;grid-template-columns:1fr 1.4fr 1.4fr}
.tc-table__row:not(.tc-table__row--head){min-height:120px}
.tc-table__cell{
  border-right:1px solid #6e6e6e;border-bottom:1px solid #6e6e6e;
  padding:10px 12px;font-size:14px;line-height:1.45
}
.tc-table__row .tc-table__cell:last-child{border-right:none}
.tc-table__row:last-child .tc-table__cell{border-bottom:none}
.tc-table__row--head .tc-table__cell{
  background:#b9b9b9;color:#111;font-weight:700;text-align:center;letter-spacing:.08em
}

@media (max-width:900px){
  .tc-table__row{grid-template-columns:1fr; grid-auto-rows:auto}
  .tc-table__row--head{display:none}
  .tc-table__cell{
    border-right:none;border-bottom:1px solid #d1d5db;display:block;
    min-height:auto /* bỏ min-height khi mobile */
  }
  .tc-table__cell::before{
    content:attr(data-label);
    display:block;
    font-weight:700;
    color:#6b7280;
    margin-bottom:6px;
    letter-spacing:.04em;
  }
  .tc-table__row:last-child .tc-table__cell:last-child{border-bottom:none}
}

.tc-figure{margin:24px 0;text-align:center}
.tc-figure img{
  max-width:100%;height:auto;border:1px solid var(--line);border-radius:4px
}
.tc-figcap{color:var(--muted);font-size:13px;margin-top:6px}

.tc-wpcontent{margin-top:8px}
.tc-extra{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}

.tc-related{margin-top:34px}
.tc-section-title{
  font-size:20px;font-weight:800;margin:8px 0 10px;color:#0f172a
}

.tc-rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.tc-rel-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.tc-rel-grid{grid-template-columns:1fr}}

.tc-card{
  display:flex;flex-direction:column;border:1px solid var(--line);
  border-radius:10px;overflow:hidden;background:#fff;text-decoration:none;color:inherit;
  transition:transform .15s,box-shadow .15s
}
.tc-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.07)}
.tc-card:focus{outline:2px solid var(--accent);outline-offset:2px}
.tc-card__media{
  aspect-ratio:16/9;background:#f3f4f6;display:flex;align-items:center;justify-content:center
}
.tc-card__media img{width:100%;height:100%;object-fit:cover}
.tc-card__ph{font-weight:700;color:var(--muted)}
.tc-card__body{padding:10px}
.tc-card__title{font-weight:700;margin-bottom:6px;line-height:1.25}
.tc-card__meta{font-size:13px;color:#6b7280}

.tc-term-header{margin-bottom:12px}
.tc-term-desc{color:#374151;margin:6px 0 8px}
.tc-term-children{
  display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:0;list-style:none
}
.tc-term-children a{
  display:inline-block;padding:6px 10px;border:1px solid var(--line);
  border-radius:999px;background:#fff;color:#0f172a;text-decoration:none;font-size:13px
}
.tc-term-children a:hover{background:#f9fafb}

.tc-extra li{margin-left:2em}

.tc-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.tc-archive-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.tc-archive-grid{grid-template-columns:1fr}}

.tc-pill{
  display:inline-block;margin:4px 0 6px;font-size:12px;font-weight:700;
  color:#0f172a;background:#eef2ff;border:1px solid #c7d2fe;padding:2px 8px;border-radius:999px
}

.tc-pagi{display:flex;justify-content:center;gap:8px;margin:22px 0}
.tc-pagi a,.tc-pagi span{
  display:inline-block;padding:6px 10px;border:1px solid var(--line);
  border-radius:6px;text-decoration:none;color:#111
}
.tc-pagi .current{background:#0ea5e9;color:#fff;border-color:#0ea5e9}
