/* =========================================================================
   Blog
   ========================================================================= */

.blog-post .breadcrumb {
    margin-bottom: 1.5rem;
}

.blog-post .breadcrumb-item.active {
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Inline code */
.post-body code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Fenced blocks: scroll internally so the page never scrolls sideways */
.post-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.post-body blockquote {
    border-left: 4px solid var(--bs-primary);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 0 0 1.5rem;
    color: var(--bs-secondary-color, #64748b);
}

.post-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.post-body th,
.post-body td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.post-body th {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .post-body {
        font-size: 1rem;
    }
}
