/* Blog post body — rendered from Markdown/plain text in blog_posts/ */
.blog-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #b3b3b3;
    overflow-wrap: break-word;
}

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

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #ededed;
    font-weight: 700;
    line-height: 1.3;
    scroll-margin-top: 6rem;
}

.blog-content h1 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }
.blog-content h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.875rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #333333;
}
.blog-content h3 { font-size: 1.2rem; margin: 1.75rem 0 0.625rem; }
.blog-content h4,
.blog-content h5,
.blog-content h6 { font-size: 1.02rem; margin: 1.4rem 0 0.5rem; }

.blog-content p { margin: 1.1rem 0; }

.blog-content a {
    color: #4ade80;
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 222, 128, 0.35);
    transition: border-color 0.2s, color 0.2s;
}
.blog-content a:hover { color: #86efac; border-bottom-color: #86efac; }

.blog-content strong { color: #ededed; font-weight: 650; }
.blog-content em { color: #dcdfe2; }

.blog-content code {
    background: #242424;
    border: 1px solid #333333;
    padding: 0.15em 0.4em;
    border-radius: 5px;
    font-size: 0.86em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #ededed;
}

.blog-content pre {
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.blog-content pre code {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    color: #ededed;
}

.blog-content ul,
.blog-content ol { padding-left: 1.5rem; margin: 1.1rem 0; }
.blog-content li { margin: 0.4rem 0; }
.blog-content ul li { list-style-type: disc; }
.blog-content ol li { list-style-type: decimal; }
.blog-content li > ul,
.blog-content li > ol { margin: 0.4rem 0; }

.blog-content blockquote {
    border-left: 3px solid #4ade80;
    background: rgba(74, 222, 128, 0.04);
    padding: 0.6rem 1.15rem;
    border-radius: 0 8px 8px 0;
    color: #b3b3b3;
    margin: 1.5rem 0;
}
.blog-content blockquote p:first-child { margin-top: 0; }
.blog-content blockquote p:last-child { margin-bottom: 0; }

.blog-content img,
.blog-content video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #333333;
    margin: 1.5rem 0;
    display: block;
}

.blog-content figcaption {
    font-size: 0.82rem;
    color: #8c8c8c;
    text-align: center;
    margin-top: -0.75rem;
}

/* Tables scroll on their own rather than widening the page */
.blog-content table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}
.blog-content th,
.blog-content td {
    border: 1px solid #333333;
    padding: 0.55rem 0.85rem;
    text-align: left;
}
.blog-content th {
    background: #1e1e1e;
    color: #ededed;
    font-weight: 600;
}

.blog-content hr {
    border: none;
    border-top: 1px solid #333333;
    margin: 2.5rem 0;
}

.blog-content kbd {
    background: #242424;
    border: 1px solid #333333;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 0.1em 0.45em;
    font-size: 0.82em;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Sidebar post list */
.blog-nav-link {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.blog-nav-link:hover { background: #242424; border-color: #333333; }
.blog-nav-link.is-active {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.35);
}
.blog-nav-link.is-active .blog-nav-title { color: #4ade80; }

@media (max-width: 1023px) {
    .blog-content { font-size: 1rem; }
}
