.blog-shell {
    border-bottom: var(--border);
    max-width: 1260px;
}
.blog-page-header {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 180px;
    gap: 28px;
    align-items: start;
    padding: 22px 32px;
    background: var(--white);
    border-bottom: var(--border);
}
.blog-page-label {
    min-height: 44px;
    padding-top: 6px;
    border-right: var(--border);
    font-weight: 700;
}
.blog-page-summary {
    max-width: 640px;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--black);
}
.blog-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: var(--border);
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    transition: var(--transition-fast);
}
.blog-nav-link:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
}

.blog-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 15px;
    flex: 0 0 auto;
}

.blog-nav-icon img {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
    transition: var(--transition-fast);
}

.blog-nav-link:hover .blog-nav-icon img {
    filter: invert(1);
}
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--border);
}
.blog-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    color: var(--black);
    text-decoration: none;
    border-right: var(--border);
    background: var(--white);
    transition: var(--transition-fast);
}
.blog-card:nth-child(3n) { border-right: none; }
.blog-card:nth-last-child(n+4) { border-bottom: var(--border); }
.blog-card:hover {
    background: #FAFAFA;
    color: var(--black);
}
.blog-card a {
    color: var(--black);
    text-decoration: none;
}
.blog-card-media {
    display: block;
    padding: 10px 10px 0;
    overflow: hidden;
    background: var(--white);
}
.blog-card-media picture {
    display: contents;
}
.blog-card-media img {
    width: 100%;
    aspect-ratio: 40 / 21;
    height: 100%;
    object-fit: contain;
    display: block;
}
.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 176px;
    padding: 14px;
}
.blog-card-title {
    font-size: 1.08rem;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}
.blog-card-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.blog-card-body p {
    font-size: 0.9rem;
    line-height: 1.25;
}
.blog-card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.blog-tags,
.article-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.blog-tag {
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
}
.blog-tag:hover {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blog-tag-separator {
    color: var(--gray-dark);
}
.blog-meta-dot {
    color: var(--gray-dark);
}
.blog-card-read {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
}
.blog-card-read:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 24px;
    border-bottom: var(--border);
    background: var(--white);
}
.blog-pagination a,
.blog-pagination span {
    color: var(--black);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}
.blog-pagination a {
    padding: 7px 8px;
    transition: var(--transition-fast);
}
.blog-pagination a:hover {
    background: var(--bg-color);
}
.blog-pagination .is-current {
    padding: 7px 9px;
    background: var(--black);
    color: var(--white);
}
.blog-pagination-next {
    font-weight: 700;
}
.blog-shell .footer-cta {
    padding: 40px 32px;
}
.blog-shell .footer-cta .btn-giant {
    max-width: 520px;
    margin: 0 auto;
    padding: 26px 28px;
    font-size: 1.25rem;
}
.article-shell {
    padding: 0;
    border-bottom: var(--border);
    background: var(--white);
}
.article-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 28px;
    padding: 36px 32px;
    border-bottom: var(--border);
}
.article-hero .blog-nav-link {
    align-self: start;
}
.article-hero-main { max-width: 900px; }
.article-hero h1 {
    margin-top: 16px;
    font-size: 2.8rem;
    line-height: 0.95;
    letter-spacing: -0.02em;
}
.article-hero p {
    max-width: 760px;
    margin-top: 18px;
    color: var(--black);
}
.article-cover {
    padding: 32px 40px;
    border-bottom: var(--border);
    background: var(--bg-color);
}
.article-cover img {
    width: 100%;
    max-width: 1120px;
    height: auto;
    border-width: var(--article-image-border-width, 3px);
    border-style: var(--article-image-border-style, solid);
    border-color: var(--article-image-border-color, #EAEAEA);
    border-radius: var(--article-image-radius, 10px);
    display: block;
    margin: 0 auto;
}
.article-cover.has-no-border img {
    border: 0;
}
.article-content {
    padding: 48px 32px 72px;
}
.article-block {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.article-block + .article-block { margin-top: 34px; }
.article-content h2,
.article-content h3 {
    margin: 1.6em 0 0.5em;
    letter-spacing: 0;
}
.article-content h2 { font-size: 2rem; line-height: 1; }
.article-content h3 { font-size: 1.35rem; line-height: 1.1; }
.article-content p,
.article-content li {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--gray-dark);
}
.article-content p + p { margin-top: 1em; }
.article-content ul,
.article-content ol {
    margin: 1.2em 0 1.2em 1.2em;
}
.article-content a {
    color: var(--brand-red);
    text-decoration-thickness: 2px;
}
.article-image-block {
    max-width: 880px;
}
.article-image-block.is-full {
    max-width: 1120px;
}
.article-image-block img {
    width: 100%;
    height: auto;
    border-width: var(--article-image-border-width, 3px);
    border-style: var(--article-image-border-style, solid);
    border-color: var(--article-image-border-color, #EAEAEA);
    border-radius: var(--article-image-radius, 10px);
    display: block;
}
.article-cover picture,
.article-image-block picture,
.article-inline-picture {
    display: block;
}
.article-text-block img {
    display: block;
    max-width: 100%;
    height: auto;
}
.article-image-block.has-no-border img {
    border: 0;
}
.article-cover img,
.article-image-block img,
.article-text-block img {
    cursor: zoom-in;
}
.article-cover img:focus-visible,
.article-image-block img:focus-visible,
.article-text-block img:focus-visible {
    outline: 3px solid var(--brand-red);
    outline-offset: 4px;
}
.image-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 56px 24px 24px;
    border: 0;
    background: rgba(13, 13, 13, 0.96);
    color: var(--white);
    overflow: hidden;
}
.image-lightbox::backdrop {
    background: rgba(13, 13, 13, 0.96);
}
.image-lightbox[open] {
    display: grid;
    place-items: center;
}
.image-lightbox img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    object-fit: contain;
}
.image-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--white);
    background: var(--black);
    color: var(--white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}
.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    border-color: var(--brand-red);
    background: var(--brand-red);
    outline: none;
}
.article-video-block {
    max-width: 880px;
}
.article-video-block.is-full {
    max-width: 1120px;
}
.article-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #D8D8D8;
    border-radius: 10px;
    background: var(--white);
    display: block;
    overflow: hidden;
}
.article-video-frame iframe {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    margin: -1px;
    border: 0;
    display: block;
}
.article-image-caption,
.article-video-caption,
.article-code-caption {
    margin-top: 10px;
    color: var(--gray-dark);
    font-size: 0.9rem;
}
.article-code-block {
    border: var(--border);
    background: var(--black);
    color: var(--white);
}
.article-code-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.copy-code-button {
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    padding: 8px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}
.copy-code-button:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}
.article-code-block pre {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
}
.article-code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--white);
}
.article-quote-block {
    padding: 28px 0 28px 28px;
    border-left: var(--border-thick);
}
.article-quote-block blockquote {
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
}
.article-quote-author {
    margin-top: 12px;
}
.article-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gray-dark);
}
.article-divider::before,
.article-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--black);
}
.article-divider span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.article-download-block {
    max-width: 880px;
    padding: 28px;
    border: var(--border);
    background: var(--gray-light);
}
.article-download-meta {
    margin-bottom: 18px;
    color: var(--gray-dark);
    font-size: 0.76rem;
    text-transform: uppercase;
}
.article-content .article-download-title {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.05;
}
.article-content .article-download-description {
    max-width: 700px;
    margin: 14px 0 0;
}
.article-content .article-download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
    padding: 16px 18px;
    border: var(--border);
    background: var(--white);
    color: var(--black);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-fast);
}
.article-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 18px;
    flex: 0 0 auto;
    transition: var(--transition-fast);
}
.article-download-icon img {
    display: block;
    width: 32px;
    height: auto;
    transition: filter var(--transition-fast);
}
.article-content .article-download-link:hover,
.article-content .article-download-link:focus-visible {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: var(--white);
    outline: none;
}
.article-content .article-download-link:hover .article-download-icon,
.article-content .article-download-link:focus-visible .article-download-icon {
    transform: translateX(6px);
}
.article-content .article-download-link:hover .article-download-icon img,
.article-content .article-download-link:focus-visible .article-download-icon img {
    filter: invert(1);
}
.empty-blog {
    grid-column: 1 / -1;
    padding: 48px 40px;
    border-bottom: var(--border);
}
.empty-blog-kicker {
    margin-bottom: 20px;
}
.empty-blog-copy {
    margin-top: 20px;
}
@media (max-width: 1024px) {
    .blog-page-header,
    .article-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blog-page-label {
        min-height: auto;
        border-right: none;
    }
    .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-card:nth-child(3n) { border-right: var(--border); }
    .blog-card:nth-child(even) { border-right: none; }
    .blog-card:nth-last-child(n+4) { border-bottom: none; }
    .blog-card:nth-last-child(n+3) { border-bottom: var(--border); }
}
@media (max-width: 768px) {
    .blog-page-header,
    .article-hero,
    .article-cover {
        padding: 22px;
    }
    .blog-nav-link { max-width: 100%; }
    .blog-list { grid-template-columns: 1fr; }
    .blog-card,
    .blog-card:nth-child(3n),
    .blog-card:nth-child(even) { border-right: none; }
    .blog-card:nth-last-child(n+3) { border-bottom: none; }
    .blog-card:nth-last-child(n+2) { border-bottom: var(--border); }
    .blog-card-body { min-height: 0; }
    .article-hero h1 { font-size: 2.25rem; }
    .article-content { padding: 36px 22px 56px; }
    .blog-shell .footer-cta {
        padding: 36px 22px;
    }
    .blog-shell .footer-cta .btn-giant {
        padding: 22px 18px;
        font-size: 1.05rem;
    }
    .article-code-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .article-download-block {
        padding: 22px;
    }
    .article-content .article-download-title {
        font-size: 1.4rem;
    }
    .article-content .article-download-link {
        padding: 14px;
    }
}
