html {
  scroll-behavior: smooth;
}

.breadcrumb-item {
  color: var(--app-color);
  text-decoration: none;
}

.tc-header {
  background: var(--bg-light);
}

.tc-h1 {
  font-size: var(--fs-h1);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--font-heading);
}

.tc-h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: 16px;
}

.tc-h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

.tc-text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
}

.tc-small-text {
  font-size: 14px;
  color: #777;
}

.tc-section-number {
  display: block;
  color: var(--app-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.tc-updated {
  color: #777;
}

.tc-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tc-sidebar {
  top: 120px;
  background: var(--bg-white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tc-toc-title {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--app-color);
  text-transform: uppercase;
  font-weight: 700;
}

.tc-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: #666;
  font-size: 16px;
}

.tc-toc-link.active {
  color: var(--app-color);
  font-weight: 600;
}

.tc-icon {
  color: var(--app-color);
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.tc-btn {
  background: var(--btn-bg);
  border: none;
  padding: var(--btn-padding);
  font-size: var(--btn-font-size);
  color: var(--btn-text);
  border-radius: 6px;
  font-weight: 600;
}

.tc-btn:hover {
  background: var(--btn-bg-hover);
}

.mobile-toc .btn-outline-secondary {
  color: var(--app-color);
  border-color: var(--app-color);
}

.mobile-toc .btn-outline-secondary:hover {
  background-color: var(--app-color);
  color: white;
}
@media (max-width: 768px) {
  .row.gy-5 {
    --bs-gutter-y: 0.5rem; /* overrides Bootstrap's gy-5 (3rem) on mobile */
  }
  .breadcrumb {
    margin-left: 18px;
  }
  .tc-updated {
    margin-left: 18px;
  }
  .tc-header {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .tc-h1 {
    font-size: var(--fs-h1-mobile);
    margin-bottom: 12px;
    margin-left: 18px;
  }

  .tc-h2 {
    font-size: var(--fs-h2-mobile);
  }

  .tc-h3 {
    font-size: var(--fs-h3-mobile);
  }

  .tc-text {
    font-size: var(--fs-body-mobile);
  }
  .tc-updated {
    margin-top: 6px;
  }

  .tc-card {
    padding: 24px 20px !important;
  }

  article {
    margin-bottom: 40px !important;
    padding-bottom: 40px !important;
  }
}
