/*
 * Typography for blog post bodies (.blog-content).
 *
 * The templates use Tailwind's "prose" classes, but the typography plugin isn't part of the
 * build, and Tailwind's base reset removes all default spacing from paragraphs, headings and
 * lists. This plain CSS file restores readable spacing without depending on the Tailwind build.
 */

.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1e2d28;
  overflow-wrap: break-word;
}

.blog-content > *:first-child { margin-top: 0; }
.blog-content > *:last-child { margin-bottom: 0; }

.blog-content p { margin: 0 0 1.35em; }

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: 'Playfair Display', serif;
  color: #08291f;
  font-weight: 800;
  line-height: 1.2;
}
.blog-content h2 { font-size: 1.85rem; margin: 2.2em 0 0.7em; }
.blog-content h3 { font-size: 1.4rem; margin: 1.9em 0 0.6em; }
.blog-content h4 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }

.blog-content a { color: #0b3b2d; text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: #5f7f4f; }

.blog-content strong { font-weight: 700; color: #08291f; }
.blog-content em { font-style: italic; }

.blog-content ul,
.blog-content ol { margin: 0 0 1.35em; padding-left: 1.6em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin: 0.4em 0; padding-left: 0.25em; }
.blog-content li > p { margin: 0.3em 0; }

.blog-content blockquote {
  margin: 1.8em 0;
  padding: 0.4em 0 0.4em 1.25em;
  border-left: 4px solid #a8bf7a;
  background: #f7f3e8;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #34433d;
}
.blog-content blockquote p { margin: 0.6em 0; }

.blog-content img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.8em 0; }
.blog-content figure { margin: 1.8em 0; }
.blog-content figcaption { font-size: 0.9rem; color: #5b6b64; margin-top: 0.5em; text-align: center; }

.blog-content hr { border: 0; border-top: 1px solid #e7dfd3; margin: 2.4em 0; }

.blog-content code {
  background: #f1ece0;
  border-radius: 0.3rem;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
}
.blog-content pre {
  background: #0f1a14;
  color: #e8eee9;
  border-radius: 0.75rem;
  padding: 1.1em 1.3em;
  overflow-x: auto;
  margin: 1.6em 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.blog-content pre code { background: none; padding: 0; color: inherit; }

.blog-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.98rem; }
.blog-content th,
.blog-content td { border: 1px solid #e7dfd3; padding: 0.65em 0.85em; text-align: left; }
.blog-content th { background: #f7f3e8; font-weight: 700; }

/* ---- "Short answer" summary box at the top of a post ---- */
.blog-content .post-summary {
  margin: 0 0 2.4em;
  padding: 1.5rem 1.75rem;
  background: #f7f3e8;
  border: 1px solid #e7dfd3;
  border-radius: 1.25rem;
}
.blog-content .post-summary::before {
  content: "The short answer";
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #476e48;
}
.blog-content .post-summary p { margin: 0; font-size: 1.12rem; line-height: 1.7; color: #1e2d28; }
.blog-content .post-summary p + p { margin-top: 0.8em; }

/* ---- FAQ section (wrapped automatically by the faq_sections filter) ---- */
.blog-content .blog-faq {
  margin: 3em 0 0;
  padding: 2.25rem 2rem 1.75rem;
  background: #f7f3e8;
  border: 1px solid #e7dfd3;
  border-radius: 1.5rem;
}
.blog-content .blog-faq > h2 { margin-top: 0; }
.blog-content .faq-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.blog-content .faq-item {
  background: #ffffff;
  border: 1px solid #e7dfd3;
  border-radius: 1rem;
  padding: 1.35rem 1.5rem 1.25rem 4.25rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(8, 41, 31, 0.05);
}
.blog-content .faq-item::before {
  content: "?";
  position: absolute;
  left: 1.35rem;
  top: 1.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #08291f;
  color: #a8bf7a;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 2rem;
  text-align: center;
}
.blog-content .faq-item h3 {
  margin: 0.15em 0 0.5em;
  font-size: 1.2rem;
  line-height: 1.35;
}
.blog-content .faq-item p { margin: 0 0 0.8em; color: #34433d; font-size: 1.05rem; line-height: 1.7; }
.blog-content .faq-item > *:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .blog-content { font-size: 1.05rem; }
  .blog-content h2 { font-size: 1.55rem; }
  .blog-content h3 { font-size: 1.25rem; }
  .blog-content .post-summary { padding: 1.25rem 1.1rem; }
  .blog-content .blog-faq { padding: 1.5rem 1rem 1.25rem; }
  .blog-content .faq-item { padding: 1.1rem 1.1rem 1.1rem 3.5rem; }
  .blog-content .faq-item::before { left: 0.9rem; top: 1.05rem; width: 1.75rem; height: 1.75rem; line-height: 1.75rem; font-size: 0.9rem; }
  .blog-content .faq-item h3 { font-size: 1.1rem; }
}
