/* ═══════════════════════════════════════
   DEVOPS ARG — Blog Styles
   Terminal aesthetic, dark theme
   ═══════════════════════════════════════ */

:root {
    --void: #0a0f1a;
    --void-light: #111827;
    --bio-green: #22c55e;
    --bio-cyan: #06b6d4;
    --bio-purple: #a855f7;
    --bio-rose: #f43f5e;
    --bio-amber: #f59e0b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #94a3b8;
    --border: #1e293b;
    --font-m: 'IBM Plex Mono', monospace;
    --font-h: 'Space Grotesk', sans-serif;
    --z-bg:       0;
    --z-content:  5;
    --z-overlay:  10;
    --z-ui:       20;
    --z-nav:      50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-m);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ═══════ BACKGROUND LAYERS (match main site) ═══════ */
.bio-grid {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.4;
}

.pulse-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(3, 7, 18, 0.8) 100%);
}

/* Main content wrapper — sits above background layers */
.blog-main {
    position: relative;
    z-index: var(--z-content);
}

a { color: var(--bio-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════ NAV (matches main site) ═══════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
    background: rgba(3, 7, 18, 0.92);
    border-bottom-color: var(--border);
}

.nav__brand {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bio-cyan);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav__link {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    padding: 0.3rem 0;
}

.nav__link:hover,
.nav__link--active {
    color: var(--bio-cyan);
}

.nav__cta {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--void);
    background: var(--bio-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.nav__cta:hover {
    background: #0ed7f5;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    text-decoration: none;
}

/* Burger — hidden on desktop */
.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav — drawer from the right */
@media (max-width: 768px) {
    .nav { padding: 0.7rem 1.2rem; }

    .nav__burger { display: flex; }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--border);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav__links.open { right: 0; }

    .nav__link {
        font-size: 0.85rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav__cta {
        margin-top: 1.5rem;
        text-align: center;
        width: 100%;
        display: block;
        padding: 0.8rem 1.2rem;
    }
}

/* ═══════ BLOG HERO ═══════ */
.blog-hero {
    padding: 120px 32px 48px;
    text-align: center;
    position: relative;
}
.blog-hero::after {
    content: '';
    position: absolute; bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bio-cyan), transparent);
}
.blog-hero h1 {
    font-family: var(--font-h);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--bio-cyan), var(--bio-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero p { color: var(--text-muted); margin-top: 12px; font-size: 14px; }
.blog-hero .terminal-prompt { color: var(--bio-green); font-size: 13px; margin-top: 8px; }
.blog-hero--small { padding: 110px 32px 32px; }
.back-link { color: var(--bio-green); font-size: 13px; display: inline-block; margin-top: 8px; }

/* ═══════ TAGS FILTER ═══════ */
.tags-bar {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    padding: 32px 32px 16px;
}
.tag-btn {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--text-muted);
    font-family: var(--font-m);
    font-size: 12px;
    padding: 10px 16px;
    min-height: 40px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    touch-action: manipulation;
}
.tag-btn:hover, .tag-btn.active {
    border-color: var(--bio-cyan);
    color: var(--bio-cyan);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

/* ═══════ POST GRID ═══════ */
.posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 24px;
}

/* ═══════ POST CARD ═══════ */
.post-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.post-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--bio-cyan), var(--bio-purple));
    opacity: 0; transition: opacity 0.3s;
}
.post-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
}
.post-card:hover::before { opacity: 1; }

.post-card__image-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
}
/* Default height so the card works even without an image-link wrapper */
.post-card__image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: rgba(6, 182, 212, 0.03);
}
/* When wrapped in image-link, image fills the link (200px) */
.post-card__image-link .post-card__image {
    height: 100%;
}
.post-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.4s ease;
    filter: brightness(0.9) saturate(1.05);
}
.post-card:hover .post-card__image img {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.2);
}
.post-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(168,85,247,0.1));
    color: var(--text-muted); font-size: 14px; letter-spacing: 2px;
}
.scanline {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(6,182,212,0.015) 2px, rgba(6,182,212,0.015) 4px);
    pointer-events: none;
}

.post-card__content { padding: 24px; }

.post-card__meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: var(--text-muted); margin-bottom: 10px;
}
.post-card__date { color: var(--bio-green); }

.post-card__title {
    font-family: var(--font-h); font-size: 19px; font-weight: 600;
    color: var(--text); line-height: 1.3; margin-bottom: 10px;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--bio-cyan); }

.post-card__excerpt {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 16px;
}

.post-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════ FEATURED POST ═══════ */
.post-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.post-card--featured .post-card__image-link,
.post-card--featured .post-card__image {
    height: 100%;
    min-height: 280px;
}
.post-card--featured .post-card__content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.post-card--featured .post-card__title { font-size: 26px; margin-bottom: 14px; line-height: 1.25; }
.post-card--featured .post-card__excerpt { font-size: 14.5px; margin-bottom: 18px; }

@media (max-width: 960px) {
    .post-card--featured { grid-template-columns: 1fr; }
    .post-card--featured .post-card__image,
    .post-card--featured .post-card__image-link { min-height: 220px; }
    .post-card--featured .post-card__content { padding: 24px; }
}

/* ═══════ TAG BADGES ═══════ */
.post-tag {
    font-size: 10px; padding: 3px 10px; border-radius: 12px;
    letter-spacing: 0.5px; text-decoration: none; display: inline-block;
}
.post-tag--cyan { background: rgba(6,182,212,0.1); color: var(--bio-cyan); border: 1px solid rgba(6,182,212,0.2); }
.post-tag--purple { background: rgba(168,85,247,0.1); color: var(--bio-purple); border: 1px solid rgba(168,85,247,0.2); }
.post-tag--green { background: rgba(34,197,94,0.1); color: var(--bio-green); border: 1px solid rgba(34,197,94,0.2); }
.post-tag--rose { background: rgba(244,63,94,0.1); color: var(--bio-rose); border: 1px solid rgba(244,63,94,0.2); }
.post-tag--amber { background: rgba(245,158,11,0.1); color: var(--bio-amber); border: 1px solid rgba(245,158,11,0.2); }

/* ═══════ BLOG POST LAYOUT (sidebar + article) ═══════ */
.blog-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    padding: 100px 32px 60px;
    align-items: start;
}

.blog-layout .article {
    max-width: 720px;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
}

/* ═══════ SIDEBAR ═══════ */
.blog-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding-right: 18px;
    padding-bottom: 20px;
    border-right: 1px solid rgba(6, 182, 212, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

.blog-sidebar::-webkit-scrollbar { width: 4px; }
.blog-sidebar::-webkit-scrollbar-track { background: transparent; }
.blog-sidebar::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.25);
    border-radius: 2px;
}
.blog-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(6, 182, 212, 0.5); }

.blog-sidebar__section {
    margin-bottom: 34px;
}

.blog-sidebar__section--links {
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(6, 182, 212, 0.08);
}

.blog-sidebar__heading {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--bio-green);
    margin-bottom: 14px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    user-select: none;
    min-height: 32px;
    padding: 4px 0;
}

.blog-sidebar__heading::-webkit-details-marker { display: none; }
.blog-sidebar__heading::marker { display: none; }

.blog-sidebar__chevron {
    transition: transform 0.25s ease;
    font-size: 9px;
    opacity: 0.7;
}

.blog-sidebar__details[open] .blog-sidebar__chevron {
    transform: rotate(-180deg);
}

.blog-sidebar__details:not([open]) .blog-sidebar__heading {
    margin-bottom: 0;
}

.blog-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__item {
    margin-bottom: 2px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
    border-radius: 0 4px 4px 0;
}

.blog-sidebar__item:hover {
    border-left-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.03);
}

.blog-sidebar__item--active {
    border-left-color: var(--bio-cyan);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: -2px 0 12px rgba(6, 182, 212, 0.12);
}

.blog-sidebar__link {
    display: block;
    padding: 11px 12px 12px;
    min-height: 44px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.blog-sidebar__item:hover .blog-sidebar__link {
    color: var(--text);
}

.blog-sidebar__item--active .blog-sidebar__link,
.blog-sidebar__item--active:hover .blog-sidebar__link {
    color: var(--bio-cyan);
}

.blog-sidebar__date {
    display: block;
    font-family: var(--font-m);
    font-size: 9.5px;
    color: var(--bio-green);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    opacity: 0.75;
    text-transform: uppercase;
}

.blog-sidebar__title {
    display: block;
    font-family: var(--font-h);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
}

.blog-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-sidebar__tag {
    font-family: var(--font-m);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.blog-sidebar__tag--cyan   { color: var(--bio-cyan);   border-color: rgba(6, 182, 212, 0.28); }
.blog-sidebar__tag--cyan:hover   { background: rgba(6, 182, 212, 0.12);   border-color: var(--bio-cyan); }
.blog-sidebar__tag--green  { color: var(--bio-green);  border-color: rgba(34, 197, 94, 0.28); }
.blog-sidebar__tag--green:hover  { background: rgba(34, 197, 94, 0.12);  border-color: var(--bio-green); }
.blog-sidebar__tag--purple { color: var(--bio-purple); border-color: rgba(168, 85, 247, 0.28); }
.blog-sidebar__tag--purple:hover { background: rgba(168, 85, 247, 0.12); border-color: var(--bio-purple); }
.blog-sidebar__tag--amber  { color: var(--bio-amber);  border-color: rgba(245, 158, 11, 0.28); }
.blog-sidebar__tag--amber:hover  { background: rgba(245, 158, 11, 0.12);  border-color: var(--bio-amber); }
.blog-sidebar__tag--rose   { color: var(--bio-rose);   border-color: rgba(244, 63, 94, 0.28); }
.blog-sidebar__tag--rose:hover   { background: rgba(244, 63, 94, 0.12);   border-color: var(--bio-rose); }

.blog-sidebar__back {
    display: block;
    font-family: var(--font-m);
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 0;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.blog-sidebar__back:hover {
    color: var(--bio-cyan);
    padding-left: 4px;
}

/* ═══════ ARTICLE PAGE ═══════ */
.article {
    max-width: 780px;
    margin: 0 auto;
    padding: 100px 32px 60px;
}
.article__header { margin-bottom: 40px; }
.article__tags { display: flex; gap: 8px; margin-bottom: 16px; }
.article__title {
    font-family: var(--font-h); font-size: clamp(28px, 4vw, 40px);
    font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 16px;
}
.article__meta {
    display: flex; gap: 16px; align-items: center;
    font-size: 12px; color: var(--text-muted);
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.article__author { color: var(--bio-cyan); }

.article__hero-img {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(6,182,212,0.15);
    margin: 0 0 40px;
    position: relative;
}
.article__hero-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ═══════ PROSE (Article body) ═══════ */
.prose {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.prose p { margin-bottom: 20px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }

.prose h2 {
    font-family: var(--font-h); font-size: 26px; font-weight: 600;
    color: var(--text); margin: 52px 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--bio-cyan);
    line-height: 1.25;
    scroll-margin-top: 90px;
}
.prose h3 {
    font-family: var(--font-h); font-size: 19px; font-weight: 600;
    color: var(--bio-cyan); margin: 36px 0 12px;
    line-height: 1.3;
    scroll-margin-top: 90px;
}

.prose ul, .prose ol {
    margin: 0 0 20px 24px;
}
.prose li { margin-bottom: 8px; }

.prose blockquote {
    border-left: 3px solid var(--bio-amber);
    padding: 16px 20px; margin: 24px 0;
    background: rgba(245,158,11,0.04);
    border-radius: 0 8px 8px 0;
}
.prose blockquote p { color: var(--text); margin: 0; font-style: italic; }

.prose code:not(pre code) {
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.15);
    padding: 2px 6px; border-radius: 4px;
    font-size: 0.88em; color: var(--bio-cyan);
    word-break: break-word;
}

.prose pre {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(6,182,212,0.15);
    border-radius: 8px; padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}
.prose pre::-webkit-scrollbar { height: 6px; }
.prose pre::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.3); border-radius: 3px; }
.prose pre code {
    font-family: var(--font-m); font-size: 13px;
    line-height: 1.65; color: var(--text);
    background: none; border: none; padding: 0;
    white-space: pre;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(6,182,212,0.15);
    margin: 24px 0;
}

.prose a { color: var(--bio-cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--bio-green); }

/* Tables — scrollable wrapper on narrow screens */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}
.prose table::-webkit-scrollbar { height: 6px; }
.prose table::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.3); border-radius: 3px; }

.prose thead {
    background: rgba(6, 182, 212, 0.06);
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}
.prose th {
    text-align: left;
    padding: 12px 16px;
    font-family: var(--font-h);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}
.prose td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.prose tbody tr:hover { background: rgba(6, 182, 212, 0.03); }
.prose tbody tr:last-child td { border-bottom: none; }

/* Syntax highlight overrides */
.prose pre .token.comment { color: #6b7280; }
.prose pre .token.keyword { color: var(--bio-purple); }
.prose pre .token.string { color: var(--bio-green); }
.prose pre .token.function { color: var(--bio-cyan); }
.prose pre .token.number { color: var(--bio-amber); }
.prose pre .token.operator { color: var(--bio-rose); }
.prose pre .token.punctuation { color: var(--text-muted); }
.prose pre .token.property { color: var(--bio-cyan); }
.prose pre .token.atrule { color: var(--bio-purple); }

/* ═══════ ARTICLE NAV (prev/next) ═══════ */
.article__nav {
    display: flex; gap: 16px; margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.article__nav-link {
    flex: 1; padding: 16px; border-radius: 8px;
    border: 1px solid rgba(6,182,212,0.12);
    text-decoration: none; transition: all 0.2s;
}
.article__nav-link:hover {
    border-color: var(--bio-cyan);
    background: rgba(6,182,212,0.04);
}
.article__nav-label {
    display: block; font-size: 10px; color: var(--bio-green);
    letter-spacing: 1px; margin-bottom: 4px;
}
.article__nav-link span:last-child {
    font-family: var(--font-h); font-size: 14px; color: var(--text);
}
.article__nav-link--next { text-align: right; }

/* ═══════ FOOTER ═══════ */
.blog-footer {
    text-align: center; padding: 40px 32px;
    font-size: 12px; color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.blog-footer p { margin-bottom: 4px; }
.blog-footer a { color: var(--bio-cyan); text-decoration: none; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 32px;
        padding: 100px 24px 50px;
    }
    .blog-layout .article { max-width: 680px; }
    .article__hero-img { max-width: 100%; }
}

@media (max-width: 860px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 84px 16px 40px;
    }
    .blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid rgba(6, 182, 212, 0.1);
        padding-right: 0;
        padding-bottom: 20px;
    }
    .blog-sidebar__list {
        max-height: 260px;
        overflow-y: auto;
    }
    /* Auto-collapse the big posts list on mobile */
    .blog-sidebar .blog-sidebar__details:first-of-type {
        /* keep open attribute but add indicator it's collapsible */
    }
    .blog-sidebar__section { margin-bottom: 18px; }
    .blog-sidebar__section--links {
        display: flex;
        gap: 20px;
        padding-top: 14px;
    }
    .blog-layout .article { max-width: none; }
}

@media (max-width: 768px) {
    .blog-hero { padding: 84px 16px 28px; }
    .blog-hero p { font-size: 13px; }
    .blog-hero--small { padding: 84px 16px 20px; }
    .posts-grid { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .post-card--featured { grid-template-columns: 1fr; }
    .post-card--featured .post-card__image { min-height: 200px; height: 200px; }
    .post-card--featured .post-card__title { font-size: 22px; }
    .post-card__content { padding: 18px; }
    .post-card__title { font-size: 17px; }
    .post-card__excerpt { font-size: 13.5px; }
    .article { padding: 84px 16px 40px; }
    .article__title { font-size: 26px; }
    .article__meta { flex-wrap: wrap; gap: 8px; font-size: 11px; }
    .article__nav { flex-direction: column; gap: 12px; }
    .article__nav-link--next { text-align: left; }
    .tags-bar { padding: 16px; gap: 8px; }
    .tag-btn { font-size: 11px; padding: 8px 14px; }
}

@media (max-width: 480px) {
    .blog-hero h1 { font-size: 28px; }
    .article__title { font-size: 22px; line-height: 1.25; }
    .prose { font-size: 15.5px; }
    .prose h2 { font-size: 20px; margin: 36px 0 14px; padding-left: 12px; }
    .prose h3 { font-size: 16px; margin: 24px 0 10px; }
    .prose pre { padding: 14px; font-size: 12px; margin: 16px -4px; border-radius: 6px; }
    .prose pre code { font-size: 12px; }
    .prose table { font-size: 13px; }
    .prose th, .prose td { padding: 9px 12px; }
    .article__hero-img { margin-bottom: 28px; border-radius: 6px; }
    .blog-layout { padding: 78px 14px 32px; }
}

/* ═══════ ACCESSIBILITY ═══════ */

/* Visible keyboard focus on all interactive elements */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--bio-cyan);
    outline-offset: 3px;
    border-radius: 3px;
}

.post-card:focus-within {
    border-color: var(--bio-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.4);
}

/* Skip link for screen readers / keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--bio-cyan);
    color: var(--void);
    padding: 12px 20px;
    font-family: var(--font-m);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    z-index: 100;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .post-card:hover { transform: none; }
    .post-card:hover .post-card__image img { transform: none; }
}

/* Smooth scroll only for non-reduced-motion users (set at :root level) */
html {
    scroll-behavior: smooth;
}

/* iOS tap highlight cleanup */
a, button, summary {
    -webkit-tap-highlight-color: rgba(6, 182, 212, 0.2);
    touch-action: manipulation;
}

/* ═══════════════════════════════════════════════════════════════
   TL;DR block — key takeaways at the top of a post
   AI citation bait + reader scanning
   ═══════════════════════════════════════════════════════════════ */
.article__tldr {
    margin: 2rem 0 2.5rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(13, 27, 62, 0.4) 100%);
    border-left: 3px solid #C9A227;
    border-radius: 6px;
    position: relative;
}

.article__tldr::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.article__tldr-title {
    margin: 0 0 1rem 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C9A227;
    position: relative;
}

.article__tldr-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: none;
    position: relative;
}

.article__tldr-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.55;
}

.article__tldr-list li::before {
    content: '▸';
    position: absolute;
    left: -1rem;
    color: #C9A227;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ section — collapsible Q&A with FAQPage schema
   ═══════════════════════════════════════════════════════════════ */
.article__section-title {
    margin: 3rem 0 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.article__faq {
    margin: 2.5rem 0;
}

.article__faq-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article__faq-item {
    background: rgba(13, 27, 62, 0.5);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.article__faq-item[open] {
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(13, 27, 62, 0.75);
}

.article__faq-q {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.95);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
}

.article__faq-q::-webkit-details-marker {
    display: none;
}

.article__faq-q::before {
    content: '+';
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    line-height: 1.1;
    text-align: center;
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 3px;
    color: #C9A227;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.article__faq-item[open] .article__faq-q::before {
    content: '−';
    transform: rotate(180deg);
}

.article__faq-a {
    padding: 0 1.25rem 1.25rem 3rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 0.96rem;
}

.article__faq-a p {
    margin: 0 0 0.75rem;
}

.article__faq-a p:last-child {
    margin-bottom: 0;
}

.article__faq-a code {
    background: rgba(6, 182, 212, 0.12);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ═══════════════════════════════════════════════════════════════
   Related posts
   ═══════════════════════════════════════════════════════════════ */
.article__related {
    margin: 3rem 0 2rem;
}

.article__related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.article__related-item {
    display: block;
}

.article__related-link {
    display: block;
    padding: 1.25rem;
    background: rgba(13, 27, 62, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.article__related-link:hover {
    border-color: rgba(201, 162, 39, 0.5);
    background: rgba(13, 27, 62, 0.75);
    transform: translateY(-2px);
}

.article__related-date {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #C9A227;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.article__related-title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.article__related-excerpt {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.87rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Article CTA — strong action block at the end
   ═══════════════════════════════════════════════════════════════ */
.article__cta {
    margin: 3rem 0 2rem;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12) 0%, rgba(13, 27, 62, 0.85) 100%);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.article__cta-title {
    margin: 0 0 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    position: relative;
}

.article__cta-text {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.article__cta-text strong {
    color: #C9A227;
}

.article__cta-button {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: #C9A227;
    color: #0D1B3E;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    border: 1px solid #C9A227;
}

.article__cta-button:hover {
    background: #D4B027;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

@media (max-width: 640px) {
    .article__tldr {
        padding: 1.25rem 1rem;
    }
    .article__cta {
        padding: 1.5rem 1.25rem;
    }
    .article__cta-title {
        font-size: 1.25rem;
    }
    .article__related-list {
        grid-template-columns: 1fr;
    }
}
