/* ==========================================================================
   Blog — CSS trang chi tiết bài viết (single.php).

   VIẾT TAY. Nạp SAU blog.css và dùng lại toàn bộ nền chữ của nó, nên ở đây chỉ
   có phần riêng của trang chi tiết. Mọi selector bọc trong `.tbtc-blog-single`.

   Cỡ chữ / dòng / đậm lấy từ tokens.css và phải nằm trong ĐÚNG bộ cặp mà trang
   chủ đang dùng — trang chủ là chuẩn chữ của site (xem CLAUDE.md mục 12.7).
   Thân bài vì thế là 16/24 chứ không phải 16/28.
   ========================================================================== */

.tbtc-blog-single {
  --tbtc-verified: #00944a;         /* dòng "Đã kiểm duyệt nội dung" */
  --tbtc-share: #625d63;            /* viền + icon nút chia sẻ */
  --tbtc-hairline: #e0e0e0;
  --tbtc-soft-bg: #fcf7fc;          /* nền hộp bài liên quan ở sidebar */
}

/* --------------------------------------------------------------------------
   Khung nội dung — cùng khung với header/footer/trang chủ (xem blog.css)
   -------------------------------------------------------------------------- */

/* Phải viết kèm `.row`: Flatsome in max-width của lưới bằng CSS inline ở <head>
   (theo cấu hình bề rộng site), nạp SAU file này — cùng độ ưu tiên là nó thắng. */
.tbtc-blog-single .row.post-detail,
.tbtc-blog-single .tbtc-single-related > .row.row-small {
  max-width: calc(var(--container-w) + 2 * var(--tbtc-col-pad));
}

/* --------------------------------------------------------------------------
   Mục lục (cột trái, dính khi cuộn)
   -------------------------------------------------------------------------- */

.tbtc-blog-single .tbtc-toc__title {
  width: 100%;
  margin-bottom: var(--sp-4);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--c-blue);
  color: var(--c-blue);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .tbtc-toc__list,
.tbtc-blog-single .tbtc-toc__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tbtc-blog-single .tbtc-toc__list {
  counter-reset: tbtc-toc;
}

.tbtc-blog-single .tbtc-toc__list > .tbtc-toc__item {
  counter-increment: tbtc-toc;
}

.tbtc-blog-single .tbtc-toc__sub {
  counter-reset: tbtc-toc-sub;
}

.tbtc-blog-single .tbtc-toc__sub > .tbtc-toc__item {
  counter-increment: tbtc-toc-sub;
}

.tbtc-blog-single .tbtc-toc__item {
  position: relative;
  margin: 0;
  list-style: none;
}

.tbtc-blog-single .tbtc-toc__link {
  display: block;
  padding: 5px 0;
  color: var(--c-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
}

/* Chừa chỗ cho nút thu/mở ở mép phải. */
.tbtc-blog-single .tbtc-toc__item--has-sub > .tbtc-toc__link {
  padding-right: 24px;
}

/* Số thứ tự chỉ hiện ở mục con — đúng thiết kế (mục chính không đánh số). */
.tbtc-blog-single .tbtc-toc__sub .tbtc-toc__link::before {
  content: counter(tbtc-toc) "." counter(tbtc-toc-sub);
  float: left;
  margin-right: var(--sp-2);
  margin-left: var(--sp-2);
  color: var(--c-desc);
}

.tbtc-blog-single .tbtc-toc__text {
  display: block;
  overflow: hidden;
}

.tbtc-blog-single .tbtc-toc__link:hover {
  color: var(--c-blue);
}

.tbtc-blog-single .tbtc-toc__link.is-active {
  color: var(--c-blue);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .tbtc-toc__toggle {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 0;
  width: 20px;
  height: 20px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("../../icons/chevron-down.svg") no-repeat center / 14px 14px;
  box-shadow: none !important;
  transition: transform var(--dur) var(--ease);
}

.tbtc-blog-single .tbtc-toc__item.is-collapsed > .tbtc-toc__sub {
  display: none;
}

.tbtc-blog-single .tbtc-toc__item:not(.is-collapsed) > .tbtc-toc__toggle {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Đầu bài: tiêu đề + khối tác giả
   -------------------------------------------------------------------------- */

.tbtc-blog-single .entry-header-text {
  padding-top: 0;
  padding-bottom: 0;
}

.tbtc-blog-single .entry-title {
  width: 100%;
  margin-bottom: var(--sp-4);
  color: var(--c-text);
  font-size: var(--fs-display-2);
  line-height: var(--lh-display-2);
  font-weight: var(--fw-bold);
  text-align: left;
}

/* Thiết kế không dùng gạch ngăn dưới tiêu đề. */
.tbtc-blog-single .entry-divider {
  display: none;
}

.tbtc-blog-single .author-meta-block .author-info {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.tbtc-blog-single .author-meta-block .author-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tbtc-blog-single .author-meta-block .author-avatar a,
.tbtc-blog-single .author-meta-block .author-avatar img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.tbtc-blog-single .author-meta-block .author-name > a {
  color: var(--c-text);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .author-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--tbtc-verified);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.tbtc-blog-single .author-verified svg {
  width: 16px;
  height: 16px;
  fill: var(--tbtc-verified);
}

.tbtc-blog-single .author-meta-block .post-meta-info {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  margin-bottom: 0;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid #eee;
  color: var(--c-meta);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.tbtc-blog-single .author-meta-block .post-meta-info span {
  color: var(--c-desc);
}

/* --------------------------------------------------------------------------
   Hàng chia sẻ + đánh giá
   -------------------------------------------------------------------------- */

.tbtc-blog-single .ux-post-share-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
}

.tbtc-blog-single .ux-post-share-left {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.tbtc-blog-single ul.ux-post-sharing {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tbtc-blog-single ul.ux-post-sharing li {
  margin: 0;
  list-style: none;
}

.tbtc-blog-single ul.ux-post-sharing a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--tbtc-share);
  border-radius: var(--r-pill);
  background-color: transparent;
  color: var(--tbtc-share);
}

.tbtc-blog-single ul.ux-post-sharing a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.tbtc-blog-single ul.ux-post-sharing a:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.tbtc-blog-single .tbtc-follow.button.primary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: fit-content;
  max-height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r-pill);
  background-color: #ececec;
  box-shadow: none;
  color: var(--tbtc-share);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: normal;
}

.tbtc-blog-single .tbtc-follow.button.primary:hover {
  background-color: var(--c-blue-100);
  box-shadow: none;
  color: var(--c-blue);
}

/* ---- Đánh giá sao ------------------------------------------------------- */

.tbtc-blog-single .ux-post-share-right {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  column-gap: var(--sp-2);
  width: fit-content;
  min-height: 32px;
  max-height: 32px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--tbtc-hairline);
  border-radius: 24px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.tbtc-blog-single .tbtc-rating,
.tbtc-blog-single .tbtc-rating__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-meta);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  /* Viên thuốc chỉ cao 32px: chữ mà xuống dòng là vỡ cả khối. */
  white-space: nowrap;
}

/* 3 lớp chồng nhau: sao rỗng, sao đầy bị cắt theo điểm, và các nút bấm trong suốt. */
.tbtc-blog-single .tbtc-rating__stars {
  position: relative;
  flex-shrink: 0;
}

.tbtc-blog-single .tbtc-rating__layer {
  display: flex;
  gap: 2px;
}

.tbtc-blog-single .tbtc-rating__layer--fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

.tbtc-blog-single .tbtc-rating__layer svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: var(--tbtc-hairline);
}

.tbtc-blog-single .tbtc-rating__layer--fill svg {
  fill: var(--c-orange);
}

.tbtc-blog-single .tbtc-rating__hits {
  display: flex;
  gap: 2px;
  position: absolute;
  inset: 0;
}

.tbtc-blog-single .tbtc-rating__hit {
  width: 16px;
  height: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none !important;
  cursor: pointer;
}

.tbtc-blog-single .tbtc-rating.is-voted .tbtc-rating__hit {
  cursor: default;
}

/* ---- Widget của plugin kk Star Ratings đặt trong viên thuốc --------------
   Plugin in style inline (kích thước sao, bề rộng lớp sao sáng, cỡ chữ chú
   thích) nên phần ghi đè ở đây buộc phải dùng !important. Cỡ sao thì KHÔNG
   ghi đè bằng CSS mà khai qua attr `size` của shortcode — plugin dùng chính
   số đó để tính bề rộng lớp sao sáng, sửa bằng CSS sẽ lệch tỉ lệ điểm. */

.tbtc-blog-single .ux-post-share-right .kk-star-ratings {
  display: flex;
  align-items: center;
  margin: 0;
}

.tbtc-blog-single .ux-post-share-right .kksr-legend {
  margin-left: var(--sp-2) !important;
  margin-right: 0 !important;
  color: var(--c-meta);
  font-size: var(--fs-body-sm) !important;
  line-height: var(--lh-body-sm);
  white-space: nowrap;
}

.tbtc-blog-single .ux-post-share-right .kksr-stars {
  flex-shrink: 0;
}

.tbtc-blog-single .tbtc-rating__legend {
  white-space: nowrap;
  color: var(--c-meta);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}

/* --------------------------------------------------------------------------
   Thân bài
   -------------------------------------------------------------------------- */

.tbtc-blog-single .entry-content.single-page {
  margin-top: var(--sp-8);
  padding-top: 0;
  padding-bottom: 0;
  color: var(--c-text);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.tbtc-blog-single .entry-content p {
  margin-bottom: var(--sp-4);
}

/* Đoạn mở đầu thành khối dẫn nhập nền xanh nhạt. */
.tbtc-blog-single .entry-content.single-page > p:first-of-type {
  padding: var(--sp-3) var(--sp-5);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--r-md);
  background: var(--c-blue-50);
  color: var(--c-meta);
}

.tbtc-blog-single .entry-content h2,
.tbtc-blog-single .entry-content h3,
.tbtc-blog-single .entry-content h4 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--c-text);
}

.tbtc-blog-single .entry-content h2 {
  position: relative;
  z-index: 2;
  padding-left: var(--sp-2);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-semibold);
}

/* Vệt nền chuyển màu sau tiêu đề mục. */
.tbtc-blog-single .entry-content h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  border-left: 3px solid var(--c-blue);
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--c-blue-100) 100%);
}

.tbtc-blog-single .entry-content h3 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .entry-content h4 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .entry-content a {
  color: var(--c-blue);
}

.tbtc-blog-single .entry-content a:hover {
  text-decoration: underline;
}

.tbtc-blog-single .entry-content ul,
.tbtc-blog-single .entry-content ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-5);
}

.tbtc-blog-single .entry-content ul {
  list-style: disc;
}

.tbtc-blog-single .entry-content ol {
  list-style: decimal;
}

.tbtc-blog-single .entry-content li {
  margin-bottom: var(--sp-2);
  margin-left: 0;
}

.tbtc-blog-single .entry-content blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--c-orange);
  background: var(--c-orange-50);
}

/* ---- Ảnh trong bài ------------------------------------------------------ */

.tbtc-blog-single .entry-content figure {
  width: 100% !important;
  max-width: 100%;
  margin: var(--sp-6) 0;
}

.tbtc-blog-single .entry-content figure img {
  width: 100%;
  border: 1px solid var(--c-blue);
  border-radius: var(--r-sm);
}

.tbtc-blog-single .entry-content .wp-caption-text {
  margin-top: -2px;
  padding: var(--sp-2);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--c-blue-50);
  color: var(--c-meta);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-style: italic;
  text-align: center;
}

/* ---- Khối "Định nghĩa" dùng trong nội dung ------------------------------- */

.tbtc-blog-single .entry-content .definition-box {
  position: relative;
  margin: var(--sp-6) 0;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-left: 5px solid var(--c-blue);
  border-radius: var(--r-lg);
  background: var(--c-blue-50);
  overflow: hidden;
}

.tbtc-blog-single .entry-content .definition-title {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-4);
  color: var(--c-navy);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .entry-content .definition-title::before {
  content: "💡";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-right: 14px;
  border-radius: var(--r-pill);
  background: var(--c-blue-100);
  font-size: var(--fs-h2);
}

.tbtc-blog-single .entry-content .definition-content {
  color: var(--c-meta);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

/* ---- Bảng --------------------------------------------------------------- */

.tbtc-blog-single .entry-content table {
  width: 100%;
  margin-bottom: var(--sp-6);
  border-collapse: collapse;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.tbtc-blog-single .entry-content th,
.tbtc-blog-single .entry-content td {
  padding: var(--sp-3);
  border: 1px solid var(--c-border-2);
  text-align: left;
}

.tbtc-blog-single .entry-content th {
  background: var(--c-blue-50);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   "Mọi người cùng xem"
   -------------------------------------------------------------------------- */

.tbtc-blog-single .ux-related-posts {
  margin-top: var(--sp-6);
  padding: 4px;
  border-radius: var(--r-md);
  background-color: var(--c-blue-50);
}

.tbtc-blog-single .ux-related-posts-box {
  padding: var(--sp-2);
}

.tbtc-blog-single .ux-related-posts h3 {
  margin: 0 0 10px;
  padding-top: 0;
  color: var(--c-text);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .ux-related-posts ul {
  margin: 0;
  padding-left: var(--sp-6);
  list-style: disc;
}

.tbtc-blog-single .ux-related-posts li {
  margin-bottom: var(--sp-2);
}

.tbtc-blog-single .ux-related-posts a {
  color: var(--c-text);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.tbtc-blog-single .ux-related-posts a:hover {
  color: var(--c-blue);
}

/* --------------------------------------------------------------------------
   Hộp giới thiệu tác giả (cuối bài)
   -------------------------------------------------------------------------- */

.tbtc-blog-single .author-meta-block-bottom {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding: var(--sp-4);
  border: 1px solid var(--c-blue);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 4px var(--c-blue-100);
}

.tbtc-blog-single .author-meta-block-bottom .author-info {
  margin-bottom: var(--sp-3);
}

.tbtc-blog-single .author-role {
  margin: 0;
  color: var(--c-blue);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.tbtc-blog-single .author-role span {
  color: #444;
}

.tbtc-blog-single .author-meta-content {
  width: 100%;
  color: var(--c-meta);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

/* --------------------------------------------------------------------------
   Sidebar phải: bài viết liên quan
   -------------------------------------------------------------------------- */

.tbtc-blog-single .related-posts {
  padding: 15px 15px 3px;
  border-radius: var(--r-lg);
  background-color: var(--tbtc-soft-bg);
}

.tbtc-blog-single .related-posts h3 {
  margin-bottom: var(--sp-3);
  color: var(--c-text);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .related-posts .box {
  margin-bottom: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background-color: var(--c-white);
  overflow: hidden;
}

.tbtc-blog-single .related-posts .box h4 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: #252228;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-medium);
}

.tbtc-blog-single .related-posts a:hover h4 {
  color: var(--c-blue);
}

.tbtc-blog-single .related-posts .box-vertical .box-text {
  padding: 0 0 0 15px;
}

.tbtc-blog-single .related-posts .box-image img {
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Thẻ nổi "Đọc bài viết tiếp theo"
   -------------------------------------------------------------------------- */

.tbtc-blog-single #ux-next-post-bar {
  display: none;
  position: fixed;
  z-index: 999;
  bottom: var(--sp-8);
  min-width: 212px;
  max-width: 212px;
}

.tbtc-blog-single #ux-next-post-bar.show {
  display: block;
}

.tbtc-blog-single .ux-next-post-content {
  padding: var(--sp-2);
  border: 1px solid rgba(192, 192, 194, 0.2);
  border-radius: var(--r-lg);
  background-color: var(--c-white);
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.08);
}

.tbtc-blog-single .ux-next-post-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.tbtc-blog-single .ux-next-post-top span {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px var(--sp-3);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-blue-100) 3.25%, var(--c-blue-50) 100%);
  color: var(--c-blue);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-regular);
  white-space: nowrap;
}

.tbtc-blog-single .ux-next-post-top span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-blue);
}

.tbtc-blog-single .ux-next-post-top button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: #e8e8e8;
  box-shadow: none !important;
  color: #252228;
  font-size: var(--fs-body);
  line-height: 1;
}

.tbtc-blog-single .ux-next-post-text a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--c-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-medium);
}

.tbtc-blog-single .ux-next-post-content .post-meta-info {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-2);
  padding-bottom: 0;
  border-bottom: 0;
  color: #8a858a;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}

/* --------------------------------------------------------------------------
   Bình luận
   -------------------------------------------------------------------------- */

.tbtc-blog-single .tbtc-comments {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--tbtc-hairline);
}

/* Khối bình luận là markup của Flatsome, cỡ chữ tính theo em nên ra số lẻ
   (19,2px tiêu đề · 14,4px label · 11,52px link nhỏ). Kéo hết về thang chung. */
/* Flatsome khoá cỡ tiêu đề trả lời bằng selector có ID
   (`#comments .comment-respond .comment-reply-title{font-size:1.2em}`) — ID luôn
   thắng class, nên phải nhắm lại bằng chính ID đó, không phải bằng !important. */
.tbtc-blog-single #comments .comment-respond .comment-reply-title,
.tbtc-blog-single .tbtc-comments h3,
.tbtc-blog-single .tbtc-comments h4,
.tbtc-blog-single .tbtc-comments .comment-reply-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .tbtc-comments label {
  margin-bottom: var(--sp-1);
  color: var(--c-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-semibold);
}

.tbtc-blog-single .tbtc-comments p,
.tbtc-blog-single .tbtc-comments li,
.tbtc-blog-single .tbtc-comments a,
.tbtc-blog-single .tbtc-comments small,
.tbtc-blog-single .tbtc-comments .comment-notes,
.tbtc-blog-single .tbtc-comments input,
.tbtc-blog-single .tbtc-comments textarea {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}

.tbtc-blog-single .tbtc-comments .comment-reply-title small,
.tbtc-blog-single .tbtc-comments .comment-reply-title small a {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
}

.tbtc-blog-single .tbtc-comments .form-submit input[type="submit"] {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   Lưới "Các bài viết liên quan" cuối trang
   -------------------------------------------------------------------------- */

.tbtc-blog-single .tbtc-single-related {
  margin-bottom: var(--sp-12);
}

/* Tiêu đề đi trong chính hệ lưới (row > col) để rộng đúng bằng hàng thẻ bên
   dưới và bằng hàng nội dung phía trên — không đặt max-width bằng số cứng. */
.tbtc-blog-single .tbtc-single-related__head {
  padding-bottom: 0;
}

.tbtc-blog-single .tbtc-single-related .title h2 {
  margin-bottom: 56px;
  font-size: var(--fs-display-1);
  line-height: var(--lh-display-1);
  font-weight: var(--fw-bold);
}

/* --------------------------------------------------------------------------
   Mobile — 767px trở xuống
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 48em) {
  .tbtc-blog-single .post-detail,
  .tbtc-blog-single .tbtc-single-related {
    padding-inline: calc(var(--gutter) - var(--tbtc-col-pad));
  }

  /* Mục lục chiếm hết màn hình ở khổ nhỏ nên thiết kế bỏ hẳn cột trái. */
  .tbtc-blog-single .post-detail__toc {
    display: none !important;
  }

  .tbtc-blog-single .entry-title {
    margin-bottom: var(--sp-6);
    font-size: var(--fs-display-4);
    line-height: var(--lh-display-4);
  }

  .tbtc-blog-single .ux-post-share-rating {
    display: block;
  }

  .tbtc-blog-single .ux-post-share-left {
    margin-bottom: var(--sp-2);
  }

  .tbtc-blog-single .post-detail > .large-7 {
    padding-bottom: 0;
  }

  .tbtc-blog-single .tbtc-comments {
    margin-bottom: 0;
  }

  /* Lưới bài liên quan cuối trang thành danh sách một cột, bỏ ảnh. */
  .tbtc-blog-single .rowRelated .box-image {
    display: none;
  }

  .tbtc-blog-single .rowRelated > .col {
    margin-bottom: 0;
    padding-bottom: var(--sp-3);
    border-bottom: 1px dashed var(--tbtc-hairline);
  }

  .tbtc-blog-single .tbtc-single-related .title h2 {
    margin-bottom: var(--sp-8);
    font-size: var(--fs-display-4);
    line-height: var(--lh-display-4);
  }
}
