/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "responsive.css";

/* ======================
   EDITORIAL TYPOGRAPHY
   ====================== */

/* Serif text for editorial/guide prose — signals human editorial judgment, not SaaS UI */
.editorial-text,
.editorial-text p,
.editorial-text li {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  color: #374151; /* gray-700 */
}

.editorial-text strong {
  font-family: Georgia, 'Times New Roman', serif;
  color: #111827; /* gray-900 */
}

/* Key Insight callout — left-bordered callout for data highlights */
.key-insight {
  border-left: 4px solid #059669; /* emerald-600 */
  background-color: #f0fdf4; /* emerald-50 */
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.key-insight .key-insight-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #065f46; /* emerald-900 */
  margin-bottom: 0.25rem;
}

.key-insight .key-insight-body {
  font-size: 0.9375rem;
  color: #064e3b; /* emerald-950 */
  line-height: 1.6;
}

/* Formula/code boxes — dark bg, monospaced emerald for methodology sections */
.formula-box {
  background-color: #111827; /* gray-900 */
  border-radius: 0.5rem;
  padding: 1.25rem;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.875rem;
}

.formula-box .formula-label {
  color: #34d399; /* emerald-400 */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.formula-box .formula-line {
  color: #d1d5db; /* gray-300 */
  margin-left: 1rem;
}

/* ======================
   BLOG ARTICLE PROSE
   ======================
   Tailwind prose plugin is NOT installed, so we style blog content manually.
   These styles target .blog-prose which wraps sanitized blog post HTML. */

.blog-prose {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151; /* gray-700 */
}

.blog-prose p {
  margin-bottom: 1.5rem;
}

.blog-prose h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827; /* gray-900 */
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.blog-prose h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-prose h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-prose strong {
  color: #111827;
  font-weight: 700;
}

.blog-prose em {
  font-style: italic;
}

.blog-prose a {
  color: #059669; /* emerald-600 */
  text-decoration: none;
}

.blog-prose a:hover {
  text-decoration: underline;
}

.blog-prose ul, .blog-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.blog-prose ul {
  list-style-type: disc;
}

.blog-prose ol {
  list-style-type: decimal;
}

.blog-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-prose li::marker {
  color: #059669;
}

.blog-prose blockquote {
  border-left: 4px solid #6ee7b7; /* emerald-300 */
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background-color: #f9fafb; /* gray-50 */
  font-style: italic;
  color: #4b5563; /* gray-600 */
}

/* Tables — the most important fix, these were invisible before */
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
}

.blog-prose thead {
  border-bottom: 2px solid #d1d5db; /* gray-300 */
}

.blog-prose th {
  background-color: #f9fafb; /* gray-50 */
  font-weight: 600;
  color: #374151;
  text-align: left;
  padding: 0.75rem 1rem;
}

.blog-prose td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  color: #374151;
}

.blog-prose tbody tr:hover {
  background-color: #f9fafb;
}

/* First paragraph after h2 — slightly larger for editorial feel */
.blog-prose h2 + p {
  font-size: 1.15rem;
}
