.blog-hero,
.blog-section,
.blog-layout,
.blog-article {
    --blog-article-width: 720px;
    --blog-list-width: 860px;
    --blog-muted: #6b7280;
    --blog-muted-strong: #4b5563;
    width: var(--container);
    margin: 0 auto;
}

.site-content-shell--with-blog .blog-hero,
.site-content-shell--with-blog .blog-section,
.site-content-shell--with-blog .blog-layout,
.site-content-shell--with-blog .blog-article {
    width: 100%;
}

.site-content-shell--with-blog {
    --blog-muted: #6b7280;
    --blog-muted-strong: #4b5563;
}

.site-content-shell--with-blog .blog-sidepanel {
    overflow: hidden;
    border: 0;
    border-right: 1px solid rgba(0, 219, 233, 0.18);
    border-radius: 0;
    background: rgba(15, 27, 46, 0.62);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.site-content-shell--with-blog .blog-sidepanel__inner {
    gap: 1rem;
    padding: 1.4rem 0;
}

.site-content-shell--with-blog .blog-sidepanel__title,
.site-content-shell--with-blog .blog-sidepanel__subtitle,
.site-content-shell--with-blog .blog-sidepanel__category {
    padding-inline: 1.25rem;
}

.site-content-shell--with-blog .blog-sidepanel__title,
.site-content-shell--with-blog .blog-sidepanel__category {
    color: var(--color-kicker);
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-content-shell--with-blog .blog-sidepanel__subtitle {
    color: var(--blog-muted, var(--color-subtext));
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.site-content-shell--with-blog .blog-sidepanel__group {
    gap: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 219, 233, 0.12);
}

.site-content-shell--with-blog .blog-sidepanel__link {
    padding: 0.72rem 1.25rem;
    border-left: 4px solid transparent;
    border-radius: 0;
    color: var(--blog-muted, var(--color-subtext));
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.site-content-shell--with-blog .blog-sidepanel__link:hover,
.site-content-shell--with-blog .blog-sidepanel__link:focus-visible,
.site-content-shell--with-blog .blog-sidepanel__link.is-active {
    border-left-color: #00dbe9;
    background: rgba(0, 219, 233, 0.1);
    color: #67e8f9;
}

.blog-hero {
    display: grid;
    gap: 1rem;
    max-width: var(--blog-list-width);
    padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.blog-hero h1 {
    max-width: 860px;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: 0;
    color: var(--color-text);
}

.blog-hero .lead,
.blog-article__header .lead {
    max-width: 760px;
    color: var(--blog-muted);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.blog-section,
.blog-layout {
    padding: 0 0 clamp(2.4rem, 6vw, 4.2rem);
}

.blog-section__head {
    margin-bottom: 1rem;
}

.blog-section__head h2,
.blog-categories h2 {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    letter-spacing: 0;
    color: var(--color-text);
}

.blog-layout {
    display: grid;
    gap: 1.3rem;
    align-items: start;
}

.blog-list {
    min-width: 0;
}

.blog-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--color-border-soft);
}

.blog-grid--featured {
    border-top: 0;
}

.blog-post-row {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border-soft);
}

.blog-post-row__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(0, 219, 233, 0.14);
    border-radius: 8px;
    background: var(--color-surface-soft);
}

.blog-post-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-row__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.62rem;
    align-content: start;
}

.blog-post-row__meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
    color: var(--blog-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-post-row__meta a {
    color: var(--color-kicker);
}

.blog-post-row h3 {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.18rem, 1.8vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: 0;
    color: var(--color-text);
}

.blog-post-row p {
    display: block;
    max-width: 68ch;
    color: var(--blog-muted);
    line-height: 1.65;
}

.blog-post-row__read {
    color: var(--color-link);
    font-size: 0.88rem;
    font-weight: 800;
}

.blog-categories,
.blog-empty {
    padding: 1rem;
}

.blog-categories {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding-top: 0.35rem;
    border-top: 2px solid rgba(0, 219, 233, 0.22);
}

.blog-categories a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--color-border-soft);
    color: var(--blog-muted);
    font-weight: 700;
}

.blog-categories small {
    min-width: 2rem;
    border-radius: 999px;
    background: var(--nav-hover-bg);
    color: var(--nav-hover-color);
    text-align: center;
    font-weight: 800;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    color: var(--color-subtext);
    font-weight: 700;
}

.blog-article-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 80;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left center;
}

.blog-article-canvas {
    --blog-article-width: 720px;
    --blog-muted: #6b7280;
    --blog-muted-strong: #4b5563;
    --article-accent: #00dbe9;
    --article-violet: #8e59ff;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 3rem 0 4rem;
    display: grid;
    gap: 2rem;
    align-items: start;
}

.blog-article {
    width: 100%;
    max-width: var(--blog-article-width);
    padding: 0;
}

.blog-article__header {
    display: grid;
    gap: 1.35rem;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--blog-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-article__category {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.78rem;
    border: 1px solid rgba(0, 219, 233, 0.22);
    border-radius: var(--radius-pill);
    background: rgba(0, 219, 233, 0.1);
    color: var(--nav-hover-color);
}

.blog-article__header h1 {
    display: block;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 3.2rem;
    line-height: 1.12;
    letter-spacing: 0;
    color: var(--color-text);
    overflow-wrap: break-word;
    text-wrap: balance;
}

.blog-article__header .lead {
    display: block;
    grid-column: 1 / -1;
    max-width: 66ch;
    color: var(--blog-muted);
    font-size: 1.14rem;
    line-height: 1.75;
}

.blog-article__cover {
    position: relative;
    margin: 2.2rem 0 0;
    overflow: hidden;
    border: 1px solid rgba(0, 219, 233, 0.18);
    border-radius: 12px;
    background: var(--color-surface-soft);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.blog-article__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-article__cover-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 42%, rgba(5, 20, 36, 0.62));
}

.blog-article__content {
    margin-top: 2.35rem;
    color: var(--color-text);
    font-size: 1.08rem;
    line-height: 1.82;
}

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

.blog-article__content p br {
    display: none;
}

.blog-article__content > p,
.blog-article__content > ul,
.blog-article__content > ol,
.blog-article__content > blockquote,
.blog-article__content > pre,
.blog-article__content > table,
.blog-article__content > div {
    margin-top: 1.35rem;
}

.blog-article__content p {
    color: var(--color-text);
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
    max-width: 24ch;
    margin-top: 3rem;
    font-family: "Sora", "Manrope", sans-serif;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--article-accent);
    scroll-margin-top: 110px;
}

.blog-article__content h2 {
    font-size: 2.35rem;
}

.blog-article__content h3 {
    font-size: 1.65rem;
    color: var(--color-text);
}

.blog-article__content h4 {
    font-size: 1.1rem;
}

.blog-article__content ul,
.blog-article__content ol {
    padding-left: 1.35rem;
}

.blog-article__content li + li {
    margin-top: 0.45rem;
}

.blog-article__content blockquote {
    padding: 0.25rem 0 0.25rem 1.4rem;
    border-left: 4px solid var(--article-accent);
    color: var(--color-subtext);
    font-size: 1.18rem;
    font-style: italic;
}

.blog-article__content code {
    padding: 0.16rem 0.38rem;
    border: 1px solid rgba(0, 219, 233, 0.2);
    border-radius: 6px;
    background: var(--color-surface-muted);
    color: var(--article-accent);
    font-size: 0.92em;
}

.blog-article__content pre {
    overflow-x: auto;
    margin: 0;
    padding: 1.25rem;
    border: 0;
    border-radius: 0;
    background: rgba(1, 15, 31, 0.94);
    color: var(--article-accent);
}

.blog-article__content pre code {
    padding: 0;
    border: 0;
    background: transparent;
}

.blog-codeblock {
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid rgba(0, 219, 233, 0.16);
    border-radius: 10px;
    background: rgba(1, 15, 31, 0.94);
}

.blog-codeblock__bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid rgba(0, 219, 233, 0.12);
    background: rgba(28, 43, 60, 0.52);
}

.blog-codeblock__dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: rgba(255, 180, 171, 0.45);
}

.blog-codeblock__dot:nth-child(2) {
    background: rgba(0, 238, 252, 0.42);
}

.blog-codeblock__dot:nth-child(3) {
    background: rgba(209, 188, 255, 0.45);
}

.blog-codeblock__label {
    margin-left: 0.7rem;
    color: #8ea5be;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
}

.blog-codeblock pre {
    margin-top: 0;
    border: 0;
}

.blog-article__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-article__content th,
.blog-article__content td {
    padding: 0.75rem;
    border: 1px solid var(--color-border-soft);
    text-align: left;
}

.blog-article__content th {
    background: var(--color-surface-muted);
    font-weight: 800;
}

.blog-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-article__content a {
    color: var(--color-link);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
}

.blog-article__content a:hover,
.blog-article__content a:focus-visible {
    color: var(--color-kicker);
}

.blog-article__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 219, 233, 0.16);
}

.blog-article__actions,
.blog-article__author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.blog-article__actions a {
    color: var(--color-subtext);
    font-size: 0.86rem;
    font-weight: 800;
}

.blog-article__actions a:hover,
.blog-article__actions a:focus-visible {
    color: var(--article-accent);
}

.blog-article__author {
    min-width: 0;
    color: var(--color-text);
}

.blog-article__author-mark {
    display: inline-grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 219, 233, 0.14);
    color: var(--article-accent);
    font-weight: 900;
}

.blog-article__author strong,
.blog-article__author small {
    display: block;
}

.blog-article__author small {
    color: var(--color-subtext);
}

.blog-article-aside {
    display: grid;
    gap: 1rem;
}

.blog-article-aside__panel {
    padding: 0.2rem 0 0.2rem 1rem;
    border-left: 2px solid rgba(0, 219, 233, 0.22);
}

.blog-article-aside__panel h2 {
    margin-bottom: 1rem;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 0.82rem;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--article-accent);
    text-transform: uppercase;
}

.blog-article-aside__facts {
    display: grid;
    gap: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-article-aside__facts li {
    display: grid;
    gap: 0.18rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(0, 219, 233, 0.22);
}

.blog-article-aside__facts span {
    color: var(--color-subtext);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-article-aside__facts a,
.blog-article-aside__facts strong,
.blog-article-aside__facts time {
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.blog-article-aside__panel--accent {
    border-left-color: rgba(142, 89, 255, 0.36);
}

.blog-article-aside__panel--accent p {
    color: var(--blog-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.blog-article-aside__panel--accent a {
    display: inline-flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: var(--article-accent);
    color: #002022;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-related {
    max-width: 1060px;
    margin: 0 auto;
    padding-top: 0;
}

.blog-preview-note {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.12);
    color: var(--color-kicker);
    font-weight: 800;
}

@media (min-width: 980px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    }

    .blog-post-row--with-media {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
        align-items: start;
    }
}

@media (min-width: 1180px) {
    .blog-article-canvas {
        grid-template-columns: minmax(0, var(--blog-article-width)) minmax(220px, 260px);
    }

    .blog-article-aside {
        position: sticky;
        top: 104px;
    }
}

@media (max-width: 767px) {
    .blog-article-canvas {
        padding: 2rem 0 3rem;
    }

    .blog-article__header h1 {
        max-width: 100%;
        font-size: 2.2rem;
    }

    .blog-article__header .lead,
    .blog-article__content {
        font-size: 1rem;
    }

    .blog-article__content h2 {
        font-size: 1.55rem;
    }

    .blog-article__content h3 {
        font-size: 1.28rem;
    }

    .blog-article__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-article__cover {
        border-radius: 10px;
    }
}

@media (prefers-color-scheme: dark) {
    .blog-hero,
    .blog-section,
    .blog-layout,
    .site-content-shell--with-blog,
    .blog-article-canvas,
    .blog-article {
        --blog-muted: #c7c6cd;
        --blog-muted-strong: #d4d4da;
    }
}
