{% extends 'public_frontend/base.html' %}
{% block title %}{{ post.title }}{% endblock %}
{% block content %}
<article class="blog-article max-w-none bg-white rounded shadow p-6">
  <h1>{{ post.title }}</h1>
  <p class="meta">{{ post.published_at|date:'M j, Y' }}</p>
  {{ html|safe }}

</article>
<style>
/* Scoped styles for blog article content */
.blog-article { color: #111827; line-height: 1.75; }
.blog-article .meta { color:#6b7280; font-size: .875rem; margin-top:.25rem; margin-bottom:1.25rem }
.blog-article h1 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; margin: .25rem 0 1rem }
.blog-article h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin: 1.5rem 0 .75rem }
.blog-article h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; margin: 1.25rem 0 .5rem }
.blog-article h4 { font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; margin: 1rem 0 .5rem }
.blog-article p { margin: 1rem 0; }
.blog-article a { color:#1d4ed8; text-decoration: underline; }
.blog-article a:hover { color:#1e40af; }
.blog-article img { display:block; max-width:100%; height:auto; border-radius:.375rem; margin: 1.25rem auto; }
.blog-article ul, .blog-article ol { margin: .75rem 0 .75rem 1.25rem; }
.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }
.blog-article li { margin: .25rem 0; }
.blog-article blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 4px solid #e5e7eb; color:#374151; font-style: italic; }
.blog-article code { background:#f3f4f6; padding: .125rem .375rem; border-radius:.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:.875em }
.blog-article pre { background:#0f172a; color:#e5e7eb; padding: .875rem 1rem; overflow:auto; border-radius:.5rem; margin: 1rem 0; }
.blog-article pre code { background: transparent; padding: 0; color: inherit; }
.blog-article hr { border: 0; border-top: 1px solid #e5e7eb; margin: 2rem 0; }
.blog-article table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.blog-article th, .blog-article td { border: 1px solid #e5e7eb; padding: .5rem .75rem; text-align: left; }
.blog-article th { background:#f9fafb; font-weight:600; }
</style>
{% endblock %}
