/*
Theme Name:     Toán nâng cao 2.3
Template:       frontier
Version:        2.3.0
*/
/* Your modification goes here */

/* Center the container */
.can-chuyen-doi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

/* Style the label */
label {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: bold;
}

/* Style the input and textarea */
input[type="text"], textarea {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* Style the buttons */
button {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: #fff;
  margin-right: 0.5rem;
  cursor: pointer;
margin-bottom: 0.5rem;
}

button:hover {
  background-color: #0069d9;
}

/* Style the output textarea */
#output {
  height: 6rem;
}

/* Style the section headings */
h1 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Style the filter email section */
.loc-email {
  margin-top: 2rem;
}

#output-emails {
  height: 6rem;
}
/* css mục lục bài viết */
 .table-of-content ol > li {
    list-style-type: none;
}
span.table-of-content-title {
    font-weight: 600;
	font-size: 1rem;
}
 .table-of-content {
  max-height: calc(100vh - 30px); /* Chiều cao tối đa của mục lục */
  overflow-y: auto; /* Cuộn dọc nếu cần */
  background: #fff; /* Màu nền trắng */
  border: 1px solid #ddd; /* Đường viền mỏng */
  border-radius: 5px; /* Bo góc */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng */
  padding: 15px; /* Khoảng cách bên trong */
  z-index: 1000; /* Đảm bảo hiển thị trên các phần tử khác */
}
          .table-of-content .muc-luc {
            font-weight: bold;
          }
          .table-of-content #toc-list {
            list-style: none;
            padding-left: 0;
          }
          .table-of-content li {
            margin-bottom: 5px;
          }
          .table-of-content li a {
            text-decoration: none;
            color: #333;
			font-size: 0.95rem;
          }
          .table-of-content li a:hover {
            text-decoration: underline;
          }
          /* Lùi sang phải cho các cấp nhỏ hơn */
          .table-of-content li.level-3 {
            margin-left: 20px;
          }
          .table-of-content li.level-4 {
            margin-left: 40px;
          }
          .table-of-content li.level-5 {
            margin-left: 60px;
          }
          .table-of-content li.level-6 {
            margin-left: 80px;
          }

/* CSS cho mục lục trên thiết bị di động */
@media (max-width: 1224px) {
  .table-of-content {
    position: fixed; /* Đặt mục lục cố định để không di chuyển khi cuộn trang */
    bottom: 0; /* Đặt mục lục ở chân trang */
    left: 0; /* Đặt mục lục sát bên trái màn hình */
    width: 100%; /* Chiều rộng toàn bộ màn hình */
    max-height: 0; /* Chiều cao tối đa ban đầu là 0 để ẩn mục lục */
    overflow-y: hidden; /* Ẩn cuộn dọc khi chưa mở */
    background: #fff; /* Màu nền trắng */
    border: none; /* Loại bỏ đường viền */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng lên phía trên */
    padding: 0; /* Xóa padding khi ẩn */
    transition: max-height 0.3s ease, padding 0.3s ease; /* Hiệu ứng chuyển tiếp cho việc mở và thu hẹp */
    z-index: 1000; /* Đảm bảo hiển thị trên các phần tử khác */
    box-sizing: border-box; /* Bao gồm padding và border trong kích thước tổng thể */
  }

  .table-of-content.open {
    max-height: calc(100vh - 70px); /* Chiều cao tối đa khi mở */
    overflow-y: auto; /* Cho phép cuộn dọc khi cần */
    padding: 15px; /* Padding khi mở */
    border: 1px solid #ddd; /* Đặt viền khi mở */
  }

  .table-of-content-button {
    position: fixed; /* Đặt vị trí cố định để không di chuyển khi cuộn trang */
    bottom: 10px; /* Khoảng cách từ dưới cùng */
    left: 10px; /* Khoảng cách từ bên trái */
    width: 50px; /* Chiều rộng của nút */
    height: 50px; /* Chiều cao của nút */
    background-color: #007bff; /* Màu nền của nút */
    color: #fff; /* Màu chữ của nút */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Bo góc tròn */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng */
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    z-index: 1001; /* Đảm bảo nút nằm trên mục lục */
    transition: background-color 0.3s ease; /* Hiệu ứng chuyển màu nền khi nhấp */
  }

  .table-of-content-button.open {
    background-color: #ff5722; /* Màu nền khi mục lục đang mở */
  }

  .table-of-content-close {
    position: absolute; /* Đặt nút tắt ở góc trên cùng bên phải */
    top: 10px; /* Khoảng cách từ trên cùng */
    right: 10px; /* Khoảng cách từ bên phải */
    font-size: 2em; /* Kích thước chữ lớn để dễ nhấp vào */
    cursor: pointer;
    color: #007bff; /* Màu chữ của nút tắt */
  }
}
.related-posts-grid {
    background-color: #fff;
}
.related-posts-grid li{
    list-style: square !important;
}

/* =========================================================
   TOANNANGCAO 2.0 — Grade hubs and curriculum home
   ========================================================= */
:root {
  --tnc-ink: #172033;
  --tnc-muted: #607086;
  --tnc-line: #e3e8ef;
  --tnc-soft: #f6f8fb;
  --tnc-brand: #145aa3;
  --tnc-brand-dark: #0c427d;
  --tnc-accent: #d97706;
  --tnc-live: #18794e;
  --tnc-live-bg: #eaf8f0;
  --tnc-pending: #7a5b15;
  --tnc-pending-bg: #fff8df;
  --tnc-radius: 14px;
}

.tnc-grade-hub,
.tnc-home {
  width: 100%;
  float: none;
  box-sizing: border-box;
}

.tnc-grade-hub-page #main,
.tnc-new-home-page #main {
  display: block;
}

.tnc-grade-hub-page #content,
.tnc-new-home-page #content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.tnc-hub-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
  box-sizing: border-box;
}

.tnc-breadcrumbs {
  margin: 0 0 14px;
  color: var(--tnc-muted);
  font-size: 14px;
}
.tnc-breadcrumbs p { margin: 0; }

.tnc-hub-hero,
.tnc-home-hero {
  padding: 30px 32px;
  border: 1px solid var(--tnc-line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
  box-shadow: 0 8px 28px rgba(25, 57, 93, .06);
}

.tnc-hub-kicker {
  margin-bottom: 8px;
  color: var(--tnc-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tnc-hub-hero h1,
.tnc-home-hero h1 {
  margin: 0 0 12px;
  color: var(--tnc-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.tnc-hub-hero > p,
.tnc-home-hero > p {
  max-width: 880px;
  margin: 0;
  color: var(--tnc-muted);
  font-size: 17px;
  line-height: 1.75;
}

.tnc-hub-stats,
.tnc-grade-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tnc-hub-stats span,
.tnc-grade-card-stats span {
  padding: 7px 10px;
  border: 1px solid #d9e3ef;
  border-radius: 999px;
  background: #fff;
  color: #41546b;
  font-size: 13px;
}
.tnc-hub-stats strong { color: var(--tnc-brand-dark); }

.tnc-hub-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 42px;
}

.tnc-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid #d8e2ee;
  border-radius: var(--tnc-radius);
  background: #fff;
  color: var(--tnc-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(24, 54, 88, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tnc-choice-card:hover {
  transform: translateY(-2px);
  border-color: #aac5e3;
  box-shadow: 0 9px 24px rgba(24, 54, 88, .10);
}
.tnc-choice-icon { grid-row: 1 / span 2; font-size: 30px; }
.tnc-choice-copy { display: flex; flex-direction: column; gap: 4px; }
.tnc-choice-copy strong { font-size: 18px; line-height: 1.35; }
.tnc-choice-copy small { color: var(--tnc-muted); font-size: 13px; }
.tnc-choice-arrow { grid-column: 2; color: var(--tnc-brand); font-weight: 700; font-size: 14px; }
.tnc-choice-exam { border-color: #f0dfc4; }
.tnc-choice-exam .tnc-choice-arrow { color: #a85c00; }

.tnc-hub-section { scroll-margin-top: 20px; margin-top: 42px; }
.tnc-section-eyebrow {
  color: var(--tnc-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tnc-hub-section > h2,
.tnc-resource-section > h2,
.tnc-home-level-heading h2 {
  margin: 6px 0 10px;
  color: var(--tnc-ink);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}
.tnc-section-lead,
.tnc-resource-section > p {
  max-width: 920px;
  margin: 0 0 20px;
  color: var(--tnc-muted);
  line-height: 1.7;
}

.tnc-search-wrap {
  position: relative;
  margin: 20px 0 16px;
}
.tnc-search-wrap label {
  display: block;
  margin: 0 0 7px;
  color: var(--tnc-ink);
  font-size: 14px;
  font-weight: 700;
}
.tnc-search-wrap input[type="search"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 120px 11px 14px;
  border: 1px solid #cfd9e5;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  font-size: 15px;
  outline: none;
}
.tnc-search-wrap input[type="search"]:focus { border-color: var(--tnc-brand); box-shadow: 0 0 0 3px rgba(20,90,163,.10); }
.tnc-search-count { position: absolute; right: 13px; bottom: 14px; color: var(--tnc-muted); font-size: 13px; }

.tnc-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--tnc-line);
  border-radius: 12px;
  background: var(--tnc-soft);
}
.tnc-quick-nav a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  color: #314a65 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 650;
}
.tnc-quick-nav a:hover { background: #e8f1fb; color: var(--tnc-brand-dark) !important; }

.tnc-cluster-list { margin-top: 18px; }
.tnc-cluster {
  scroll-margin-top: 16px;
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--tnc-line);
  border-radius: var(--tnc-radius);
  background: #fff;
}
.tnc-cluster-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.tnc-cluster-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--tnc-brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.tnc-cluster-heading h3 {
  margin: 0 0 4px;
  color: var(--tnc-ink);
  font-size: 22px;
  line-height: 1.3;
}
.tnc-cluster-heading p { margin: 0; color: var(--tnc-muted); font-size: 13px; }

.tnc-lesson-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tnc-lesson-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid #edf0f4;
}
.tnc-lesson-item[hidden], .tnc-cluster[hidden] { display: none !important; }
.tnc-lesson-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef4fa;
  color: #42617e;
  font-size: 12px;
  font-weight: 800;
}
.tnc-lesson-main {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.tnc-lesson-title {
  color: #1b4772 !important;
  text-decoration: none !important;
  font-weight: 650;
  line-height: 1.55;
}
a.tnc-lesson-title:hover { color: var(--tnc-brand) !important; text-decoration: underline !important; }
.tnc-lesson-pending { color: #4f5d6c !important; }
.tnc-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.tnc-status-live { background: var(--tnc-live-bg); color: var(--tnc-live); }
.tnc-status-pending { background: var(--tnc-pending-bg); color: var(--tnc-pending); }
.tnc-back-top { display: inline-block; margin-top: 10px; color: var(--tnc-muted) !important; font-size: 12px; text-decoration: none !important; }

.tnc-exam-section {
  padding-top: 34px;
  border-top: 1px solid var(--tnc-line);
}
.tnc-exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tnc-exam-card {
  padding: 18px;
  border: 1px solid #eadfcf;
  border-radius: 12px;
  background: #fffdf8;
}
.tnc-exam-number { color: #a85c00; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tnc-exam-card h3 { margin: 7px 0 12px; color: var(--tnc-ink); font-size: 17px; line-height: 1.45; }
.tnc-exam-card h3 a { color: #6e480f !important; text-decoration: none !important; }
.tnc-exam-card h3 a:hover { text-decoration: underline !important; }

.tnc-resource-section {
  margin-top: 42px;
  padding: 22px;
  border: 1px solid var(--tnc-line);
  border-radius: 12px;
  background: var(--tnc-soft);
}
.tnc-resource-list { columns: 2; column-gap: 32px; margin: 0; padding-left: 20px; }
.tnc-resource-list li { break-inside: avoid; margin: 0 0 9px; line-height: 1.5; }
.tnc-resource-list a { color: #355a7b !important; }

.tnc-grade-pagination {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--tnc-line);
}
.tnc-grade-pagination a {
  padding: 10px 13px;
  border-radius: 9px;
  background: #eef4fa;
  color: var(--tnc-brand-dark) !important;
  text-decoration: none !important;
  font-weight: 700;
}

/* Home */
.tnc-home-hero { margin-bottom: 42px; }
.tnc-home-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tnc-home-jump a {
  padding: 8px 12px;
  border-radius: 9px;
  background: #eaf2fb;
  color: var(--tnc-brand-dark) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
}
.tnc-home-level { scroll-margin-top: 14px; margin: 0 0 48px; }
.tnc-home-level-heading { margin-bottom: 15px; }
.tnc-home-level-heading > span { color: var(--tnc-brand); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tnc-grade-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tnc-grade-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--tnc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(24,54,88,.045);
}
.tnc-grade-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tnc-grade-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--tnc-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.tnc-grade-level { color: var(--tnc-muted); font-size: 12px; font-weight: 700; }
.tnc-grade-card h3 { margin: 14px 0 8px; font-size: 22px; line-height: 1.3; }
.tnc-grade-card h3 a { color: var(--tnc-ink) !important; text-decoration: none !important; }
.tnc-grade-card > p { margin: 0; color: var(--tnc-muted); line-height: 1.65; font-size: 14px; }
.tnc-grade-card-stats { margin-top: 13px; }
.tnc-grade-cluster-preview { margin: 15px 0 18px; padding: 0; list-style: none; }
.tnc-grade-cluster-preview li { padding: 6px 0 6px 18px; border-top: 1px solid #eef1f4; position: relative; }
.tnc-grade-cluster-preview li:before { content: '›'; position: absolute; left: 3px; color: var(--tnc-brand); font-weight: 900; }
.tnc-grade-cluster-preview a { color: #355a7b !important; text-decoration: none !important; font-size: 14px; }
.tnc-grade-card-actions { display: flex; gap: 8px; margin-top: auto; }
.tnc-grade-card-actions a { padding: 9px 12px; border-radius: 8px; text-decoration: none !important; font-weight: 750; font-size: 13px; }
.tnc-card-primary { background: var(--tnc-brand); color: #fff !important; }
.tnc-card-secondary { background: #fff4df; color: #8a5208 !important; }

@media (max-width: 760px) {
  .tnc-hub-shell { width: min(100% - 20px, 1160px); padding-top: 12px; }
  .tnc-hub-hero, .tnc-home-hero { padding: 22px 18px; border-radius: 14px; }
  .tnc-hub-hero > p, .tnc-home-hero > p { font-size: 15px; line-height: 1.65; }
  .tnc-hub-choice-grid, .tnc-exam-grid, .tnc-grade-card-grid { grid-template-columns: 1fr; }
  .tnc-choice-card { padding: 16px; }
  .tnc-cluster { padding: 16px 13px; }
  .tnc-cluster-heading { gap: 10px; }
  .tnc-cluster-index { flex-basis: 36px; height: 36px; }
  .tnc-cluster-heading h3 { font-size: 19px; }
  .tnc-lesson-item { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; padding: 10px 0; }
  .tnc-lesson-number { width: 27px; height: 27px; }
  .tnc-lesson-main { display: block; }
  .tnc-lesson-title { display: block; font-size: 14px; }
  .tnc-status { margin-top: 5px; }
  .tnc-resource-list { columns: 1; }
  .tnc-grade-pagination { align-items: stretch; }
  .tnc-grade-pagination a { flex: 1; font-size: 12px; }
  .tnc-search-wrap input[type="search"] { padding-right: 90px; }
}


.tnc-extra-topic-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed #cfd9e5;
  border-radius: 12px;
  background: #fbfcfe;
}
.tnc-extra-topic-section h3 { margin: 0 0 6px; color: var(--tnc-ink); font-size: 19px; }
.tnc-extra-topic-section p { margin: 0 0 10px; color: var(--tnc-muted); font-size: 13px; }
.tnc-extra-topic-list { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.tnc-extra-topic-list li { break-inside: avoid; margin-bottom: 7px; }
.tnc-extra-topic-list a { color: #355a7b !important; }
@media (max-width: 760px) { .tnc-extra-topic-list { columns: 1; } }


/* v2.1 – trạng thái nội dung đã đồng bộ theo từng khối */
.tnc-cluster-heading p strong { color:#157347; }
.tnc-status-live { white-space:nowrap; }
@media (max-width: 680px) {
  .tnc-hub-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* v2.3 – taxonomy-driven grade → topic → lesson */
.tnc-topic-category-list { margin-top: 20px; }
.tnc-topic-category-card .tnc-cluster-heading { margin-bottom: 14px; }
.tnc-topic-heading-copy { min-width: 0; flex: 1; }
.tnc-topic-category-card h3 a { color: var(--tnc-ink) !important; text-decoration: none !important; }
.tnc-topic-category-card h3 a:hover { color: var(--tnc-brand) !important; text-decoration: underline !important; }
.tnc-topic-meta { margin-top: 7px; color: #51667c; font-size: 12px; }
.tnc-topic-meta a { color: var(--tnc-brand) !important; font-weight: 700; text-decoration: none !important; }
.tnc-topic-category-card .tnc-lesson-item {
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
}
.tnc-topic-category-card .tnc-lesson-item > a { color:#1b4772 !important; text-decoration:none !important; font-weight:650; line-height:1.5; }
.tnc-topic-category-card .tnc-lesson-item > a:hover { color:var(--tnc-brand) !important; text-decoration:underline !important; }
.tnc-lesson-no {
  display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center;
  border-radius:8px; background:#eef4fa; color:#42617e; font-size:12px; font-weight:800;
}
.tnc-card-link-list { margin: 10px 0 0; padding-left: 19px; }
.tnc-card-link-list li { margin: 0 0 7px; line-height: 1.45; }
.tnc-card-link-list a { color:#6e480f !important; text-decoration:none !important; }
.tnc-card-link-list a:hover { text-decoration:underline !important; }
.tnc-resource-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.tnc-resource-card { padding:17px; border:1px solid #dfe7ef; border-radius:11px; background:#fff; }
.tnc-resource-card h3 { margin:0 0 10px; font-size:18px; }
.tnc-resource-card h3 a { color:var(--tnc-ink) !important; text-decoration:none !important; }
.tnc-resource-card ul { margin:0; padding-left:19px; }
.tnc-resource-card li { margin:0 0 7px; }
.tnc-resource-card li a { color:#355a7b !important; }
.tnc-empty-state { padding:16px 18px; border:1px dashed #cfd9e5; border-radius:10px; background:#fbfcfe; color:#53677c; }

.tnc-topic-hero { padding:28px 30px; border:1px solid var(--tnc-line); border-radius:18px; background:linear-gradient(135deg,#fff 0%,#f3f7fc 100%); }
.tnc-topic-hero h1 { margin:0 0 10px; color:var(--tnc-ink); font-size:clamp(28px,4vw,40px); line-height:1.2; }
.tnc-topic-hero > p { max-width:900px; margin:0 0 16px; color:var(--tnc-muted); font-size:16px; line-height:1.7; }
.tnc-topic-parent-link { display:inline-flex; padding:8px 11px; border-radius:8px; background:#eaf2fb; color:var(--tnc-brand-dark) !important; text-decoration:none !important; font-weight:700; }
.tnc-sibling-nav { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 4px; padding:13px; border:1px solid var(--tnc-line); border-radius:12px; background:var(--tnc-soft); }
.tnc-sibling-nav a { padding:7px 10px; border-radius:8px; background:#fff; color:#355a7b !important; text-decoration:none !important; font-size:13px; font-weight:650; }
.tnc-sibling-nav a.is-current { background:var(--tnc-brand); color:#fff !important; }
.tnc-topic-post-list { margin:0; padding:0; list-style:none; }
.tnc-topic-post-list > li { display:grid; grid-template-columns:36px minmax(0,1fr); gap:12px; padding:16px 0; border-top:1px solid #e7edf3; }
.tnc-topic-post-list > li:first-child { border-top:0; }
.tnc-topic-post-list h3 { margin:0 0 5px; font-size:18px; line-height:1.45; }
.tnc-topic-post-list h3 a { color:#1b4772 !important; text-decoration:none !important; }
.tnc-topic-post-list h3 a:hover { text-decoration:underline !important; }
.tnc-topic-post-list p { margin:0; color:var(--tnc-muted); font-size:14px; line-height:1.55; }
.tnc-topic-bottom-link { margin-top:28px; }
.tnc-topic-bottom-link a { color:var(--tnc-brand-dark) !important; font-weight:700; text-decoration:none !important; }

@media (max-width:760px) {
  .tnc-topic-category-card .tnc-lesson-item { grid-template-columns:30px minmax(0,1fr); }
  .tnc-topic-category-card .tnc-status { grid-column:2; justify-self:start; margin-top:0; }
  .tnc-resource-cards { grid-template-columns:1fr; }
  .tnc-topic-hero { padding:22px 18px; border-radius:14px; }
  .tnc-topic-post-list > li { grid-template-columns:32px minmax(0,1fr); gap:8px; }
}

/* v2.3 – contextual link from a post back to its real child-topic archive. */
.tnc-related-topic-more{margin:14px 0 0;text-align:right;font-size:14px}
.tnc-related-topic-more a{font-weight:700;text-decoration:none}
.tnc-related-topic-more a:hover{text-decoration:underline}
