/* Static SEO content layer — lives outside #root so React never clears it.
   Uses the same design tokens as index-CkHEUPWz.css. */

.sft-content {
  max-width: var(--container-width, 1280px);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--foreground, #0f172a);
}

.sft-content__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sft-card {
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #f1f5f9);
  border-radius: var(--radius-lg, 24px);
  padding: 2rem;
}

.sft-content h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--foreground, #0f172a);
}

.sft-content h3 {
  font-family: Outfit, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.75rem 0 0.625rem;
  color: var(--foreground, #0f172a);
}

.sft-content p {
  color: var(--muted, #64748b);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.sft-content p:last-child { margin-bottom: 0; }

.sft-content strong { color: var(--foreground, #0f172a); font-weight: 700; }

.sft-content ul, .sft-content ol {
  color: var(--muted, #64748b);
  line-height: 1.75;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.sft-content li { margin-bottom: 0.5rem; }

/* Formula block */
.sft-formula {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md, 16px);
  padding: 1.5rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

.sft-formula code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #6366f1);
  white-space: nowrap;
}

.sft-formula dl {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.sft-formula dt {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--foreground, #0f172a);
}

.sft-formula dd { color: var(--muted, #64748b); }

/* Worked example table */
.sft-table-wrap { overflow-x: auto; margin: 1.25rem 0; }

.sft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.sft-table th,
.sft-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border, #f1f5f9);
}

.sft-table th {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #64748b);
}

.sft-table td { color: var(--muted, #64748b); }
.sft-table td:last-child { font-weight: 700; color: var(--foreground, #0f172a); }
.sft-table tr:last-child td { border-bottom: none; }

/* FAQ — <details> works with no JS and Google parses it */
.sft-faq { display: flex; flex-direction: column; gap: 0.75rem; }

.sft-faq details {
  border: 1px solid var(--card-border, #f1f5f9);
  border-radius: var(--radius-md, 16px);
  background: var(--card, #fff);
  overflow: hidden;
}

.sft-faq summary {
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--foreground, #0f172a);
  transition: color 0.2s ease;
}

.sft-faq summary::-webkit-details-marker { display: none; }
.sft-faq summary:hover { color: var(--primary, #6366f1); }

.sft-faq summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--primary, #6366f1);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
}

.sft-faq details[open] summary::after { transform: rotate(45deg); }

.sft-faq details > div {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted, #64748b);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* Related tools */
.sft-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.sft-related a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--card-border, #f1f5f9);
  background: var(--card, #fff);
  color: var(--foreground, #0f172a);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.sft-related a:hover {
  border-color: var(--primary, #6366f1);
  color: var(--primary, #6366f1);
  transform: translateY(-2px);
}

/* Disclaimer */
.sft-note {
  font-size: 0.8125rem;
  color: var(--muted, #64748b);
  border-left: 3px solid var(--primary, #6366f1);
  padding-left: 1rem;
  line-height: 1.7;
}

/* Dark mode — .dark sits on <html>, so these apply to content outside #root too */
.dark .sft-formula {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08));
  border-color: rgba(99, 102, 241, 0.28);
}

.dark .sft-content h2,
.dark .sft-content h3,
.dark .sft-content strong,
.dark .sft-faq summary,
.dark .sft-table td:last-child,
.dark .sft-formula dt { color: var(--foreground, #f8fafc); }

@media (max-width: 767px) {
  .sft-content { padding: 2rem 1rem 3rem; }
  .sft-card { padding: 1.5rem; }
  .sft-content h2 { font-size: 1.375rem; }

  /* index-CkHEUPWz.css forces `table { display:block; white-space:nowrap }`
     on mobile — the wrapper already handles scrolling, so opt back out. */
  .sft-table { display: table; white-space: normal; }
}
