/* Blog article body: rich HTML from admin, emoji + images supported.
   Width follows .container (see style-base --container-width), not a narrow ch column. */
.blog-content {
    font-family: var(--font-body), system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-secondary);
    max-width: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-content p {
    margin: 0.65rem 0;
}

.blog-content > p:first-child {
    margin-top: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.75rem 0;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    font-family: var(--font-heading), sans-serif;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-content ul,
.blog-content ol {
    margin: 0.5rem 0 1rem 1.25rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--color-primary-start);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #475569;
}

.blog-content pre,
.blog-content code {
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.9em;
}

.blog-content pre {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
    table-layout: auto;
}

.blog-content thead th {
    text-align: left;
}

.blog-content th,
.blog-content td {
    border: 1px solid #cbd5e1;
    padding: 0.45rem 0.65rem;
    vertical-align: top;
}

.blog-content th {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}

.blog-content tbody tr:nth-child(even) {
    background: #f8fafc;
}

.blog-comment-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-comment-thread {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid #e2e8f0;
}

.blog-comment-item {
    margin-bottom: 1rem;
}

.blog-comment-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}
