/* Article styles are loaded only on individual blog posts. */
.blog-article .navbar-affixed-top,
.blog-article .navbar-affixed-top.affix {
    position: sticky;
    top: 0;
}

.blog-article #content {
    padding-top: 24px;
}

.blog-article #content .content-container {
    max-width: 1280px;
}

@media (min-width: 1200px) {
    .blog-article #navbar > .container {
        width: calc(100% - 64px);
        max-width: 1280px;
    }
}

.blog-article .content-layout__toolbar {
    margin: 0 0 12px;
}

.post-header,
.post-featured,
.blog-article #post-content {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.post-header {
    margin-bottom: 24px;
}

.post-header__back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.post-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.5;
}

.post-header h1 {
    margin: 14px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-transform: none;
    overflow-wrap: break-word;
}

.post-header__description {
    margin: 20px 0 0;
    color: var(--ink-muted);
    font-size: 19px;
    line-height: 1.65;
}

.post-featured {
    margin-bottom: 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.post-featured__link {
    display: block;
    padding: 18px;
}

#blog-post .post-featured img {
    width: auto;
    max-width: 100%;
    max-height: 240px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 4px;
}

.post-featured figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.6;
}

.post-featured figcaption > span {
    flex: 1 1 220px;
}

.post-featured a:focus-visible {
    outline: 3px solid var(--primary-accent-dark);
    outline-offset: -3px;
}

.blog-article #post-content {
    color: #293e4b;
    font-size: 18px;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.blog-article #post-content p,
.blog-article #post-content ul,
.blog-article #post-content ol {
    margin-bottom: 1.25em;
}

.blog-article #post-content h1,
.blog-article #post-content h2,
.blog-article #post-content h3,
.blog-article #post-content h4 {
    line-height: 1.35;
    letter-spacing: -0.015em;
    text-transform: none;
    scroll-margin-top: 160px;
}

.blog-article #post-content h1,
.blog-article #post-content h2 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    font-size: 28px;
}

.blog-article #post-content h3 {
    font-size: 23px;
}

.blog-article #post-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 30px auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.blog-article #post-content .post-image-caption {
    display: block;
    margin: -16px 0 30px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.blog-article #post-content pre {
    overflow-x: auto;
    overflow-wrap: normal;
}

@media (max-width: 767px) {
    .blog-article #content {
        padding-top: 24px;
    }

    .post-header__back {
        margin-bottom: 18px;
    }

    .post-header__description {
        font-size: 17px;
    }

    .blog-article #post-content {
        font-size: 17px;
        line-height: 1.8;
    }

    .post-featured__link {
        padding: 12px;
    }

    #blog-post .post-featured img {
        max-height: 220px;
    }

    .blog-article #post-content h1,
    .blog-article #post-content h2 {
        font-size: 25px;
    }
}
