:root {
  --tc-primary: #5B8A3A;
  --tc-primary-hover: #4C7530;
  --tc-primary-light: #F0FDF4;
  --tc-primary-border: #BBF7D0;
  --tc-bg: #FFFFFF;
  --tc-bg-alt: #F8FAFC;
  --tc-text: #0F172A;
  --tc-text-muted: #64748B;
  --tc-border: #E2E8F0;
  --tc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--tc-primary);
  outline-offset: 2px;
}

body.tc-body {
  margin: 0;
  font-family: var(--tc-font);
  background-color: var(--tc-bg);
  color: var(--tc-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.tc-header {
  border-bottom: 1px solid var(--tc-border);
  background: #FFF;
  position: sticky;
  top: 0;
  z-index: 50;
}
.tc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.tc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tc-text);
  font-weight: 700;
  font-size: 19px;
}
.tc-logo-icon {
  color: var(--tc-primary);
}
.tc-nav {
  display: flex;
  gap: 20px;
}
.tc-nav-link {
  text-decoration: none;
  color: var(--tc-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.tc-nav-link:hover {
  color: var(--tc-primary);
}

/* Hero */
.tc-hero, .tc-tool-hero, .tc-page-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  text-align: center;
}
.tc-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #DCFCE7;
  color: #166534;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tc-hero-title, .tc-tool-title, .tc-page-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--tc-text);
}
.tc-hero-sub, .tc-tool-desc, .tc-page-desc {
  font-size: 18px;
  color: var(--tc-text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.tc-breadcrumbs {
  font-size: 13px;
  color: var(--tc-text-muted);
  margin-bottom: 12px;
}
.tc-breadcrumbs a {
  color: var(--tc-primary);
  text-decoration: none;
}
.tc-article-meta {
  font-size: 13px;
  color: var(--tc-text-muted);
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Tool Wrapper */
.tc-tool-wrapper {
  margin: 24px auto 48px;
}

/* Content Section & Prose */
.tc-content-section {
  padding: 32px 20px;
}
.tc-prose {
  max-width: 820px;
  margin: 0 auto;
}
.tc-prose h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--tc-text);
  border-bottom: 1px solid var(--tc-border);
  padding-bottom: 8px;
}
.tc-prose h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.tc-prose p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}
.tc-prose ul, .tc-prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
  color: #334155;
}
.tc-prose li {
  margin-bottom: 8px;
}
.tc-prose a {
  color: var(--tc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tc-prose a:hover {
  color: var(--tc-primary-hover);
}
.tc-prose code {
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #0F172A;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.tc-prose pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
}
.tc-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.tc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.tc-prose th, .tc-prose td {
  padding: 12px 14px;
  border: 1px solid var(--tc-border);
  text-align: left;
}
.tc-prose th {
  background: #F8FAFC;
  font-weight: 600;
}

/* FAQ Section */
.tc-faq-section {
  background: var(--tc-bg-alt);
  padding: 48px 0;
  border-top: 1px solid var(--tc-border);
  margin-top: 48px;
}
.tc-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
}
.tc-faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tc-faq-item {
  background: #FFF;
  border: 1px solid var(--tc-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.tc-faq-item[open] {
  border-color: var(--tc-primary-border);
}
.tc-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.tc-faq-a {
  padding: 0 20px 16px;
  color: var(--tc-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Footer */
.tc-footer {
  border-top: 1px solid var(--tc-border);
  background: #F8FAFC;
  padding: 56px 0 24px;
  margin-top: 64px;
}
.tc-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tc-footer-brand {
  max-width: 320px;
}
.tc-footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--tc-primary);
  margin-bottom: 8px;
}
.tc-footer-desc {
  font-size: 14px;
  color: var(--tc-text-muted);
  margin: 0;
}
.tc-footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.tc-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 4px;
}
.tc-footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--tc-text-muted);
  transition: color .2s;
}
.tc-footer-col a:hover {
  color: var(--tc-primary);
}
.tc-copyright {
  border-top: 1px solid var(--tc-border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--tc-text-muted);
}

/* Mobile Responsive Breakpoint */
@media (max-width: 640px) {
  .tc-hero-title, .tc-tool-title, .tc-page-title {
    font-size: 26px;
  }
  .tc-hero-sub, .tc-tool-desc, .tc-page-desc {
    font-size: 15px;
  }
  .tc-header-inner {
    height: 56px;
  }
  .tc-nav {
    gap: 12px;
  }
  .tc-nav-link {
    font-size: 13px;
  }
  .tc-footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .tc-footer-links {
    flex-direction: column;
    gap: 24px;
  }
  .tc-btn-primary, .tc-btn-secondary {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* Tool Facts Table & Index Grid Extension */
.tc-facts-card {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--tc-shadow-sm);
}
.tc-facts-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tc-facts-table th,
.tc-facts-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--tc-border);
  text-align: left;
}
.tc-facts-table th {
  background: var(--tc-bg);
  color: var(--tc-text-muted);
  font-weight: 600;
  width: 25%;
}
.tc-facts-table td {
  color: var(--tc-text);
}
.tc-facts-table tr:last-child th,
.tc-facts-table tr:last-child td {
  border-bottom: none;
}

/* Tools Directory Grid */
.tc-category-section {
  margin: 40px 0;
}
.tc-category-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tc-border);
}
.tc-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.tc-tool-card {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-md);
  padding: 20px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tc-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tc-shadow-md);
  border-color: var(--tc-primary);
}
.tc-tool-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.tc-tool-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tc-text);
  text-decoration: none;
}
.tc-tool-card-title:hover {
  color: var(--tc-primary);
}
.tc-badge-local {
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}
.tc-tool-card-desc {
  font-size: 13.5px;
  color: var(--tc-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.tc-tool-card-meta {
  font-size: 12px;
  color: var(--tc-text-muted);
  border-top: 1px solid var(--tc-border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}
.tc-tool-card-meta span {
  font-weight: 500;
}

