/**
 * Rich text from TinyMCE on blog posts.
 * Tailwind Preflight removes list styles and heading sizes; this restores readable HTML output.
 */
.blog-post-content {
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.blog-post-content > * + * {
    margin-top: 1rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-content h1 { font-size: 2rem; }
.blog-post-content h2 { font-size: 1.75rem; }
.blog-post-content h3 { font-size: 1.375rem; }
.blog-post-content h4 { font-size: 1.125rem; }

.blog-post-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

.blog-post-content ul {
    list-style-type: disc;
}

.blog-post-content ol {
    list-style-type: decimal;
}

.blog-post-content li {
    margin: 0.35rem 0;
    display: list-item;
}

.blog-post-content ul ul,
.blog-post-content ol ol,
.blog-post-content ul ol,
.blog-post-content ol ul {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.blog-post-content a {
    color: #063075;
    text-decoration: underline;
    word-break: break-word;
}

.blog-post-content a:hover {
    color: #031c6e;
}

.blog-post-content strong,
.blog-post-content b {
    font-weight: 700;
}

.blog-post-content em,
.blog-post-content i {
    font-style: italic;
}

.blog-post-content u {
    text-decoration: underline;
}

.blog-post-content blockquote {
    border-left: 4px solid #063075;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #4b5563;
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.blog-post-content th,
.blog-post-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.blog-post-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.blog-post-content hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.blog-post-content code {
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.blog-post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
}

.blog-post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
