    /* ── Reading Progress Bar ─────────────────────────────── */
    #reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 3px;
        background: linear-gradient(90deg, #1e88e5, #42a5f5);
        z-index: 9999;
        transition: width 0.1s linear;
        border-radius: 0 2px 2px 0;
    }

    #reading-progress::after {
        content: '';
        position: absolute;
        right: -1px;
        top: -2px;
        width: 7px;
        height: 7px;
        background: #42a5f5;
        border-radius: 50%;
        box-shadow: 0 0 8px 2px rgba(66,165,245,0.6);
        opacity: 0;
        transition: opacity 0.3s;
    }

    #reading-progress.active::after {
        opacity: 1;
    }

    /* ── Floating Progress Pill ───────────────────────────── */
    #progress-pill {
        position: fixed;
        bottom: 32px;
        left: 28px;
        right: auto;
        background: #0e1e30;
        border: 1px solid rgba(30,136,229,0.25);
        border-radius: 20px;
        padding: 7px 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.7rem;
        color: #4a6280;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s, transform 0.3s;
        pointer-events: none;
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

    #progress-pill.visible {
        opacity: 1;
        transform: translateY(0);
    }

    #progress-pill.finished {
        border-color: rgba(31,186,90,0.35);
        color: #1fba5a;
    }

    .pill-ring {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        position: relative;
    }

    .pill-ring svg {
        transform: rotate(-90deg);
    }

    .pill-ring-track {
        fill: none;
        stroke: rgba(255,255,255,0.06);
        stroke-width: 2.5;
    }

    .pill-ring-fill {
        fill: none;
        stroke: #1e88e5;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-dasharray: 57;
        stroke-dashoffset: 57;
        transition: stroke-dashoffset 0.2s linear, stroke 0.3s;
    }

    .pill-ring-fill.finished {
        stroke: #1fba5a;
    }

    #pill-label {
        letter-spacing: 0.08em;
        min-width: 28px;
        text-align: right;
    }

    /* ── Section wrapper ──────────────────────────────────── */
    .detail-section {
        padding: 80px 0 120px;
        overflow-x: hidden;
        background: #021327;
        min-height: 100vh;
    }

    /* ── Entry animation ──────────────────────────────────── */
    @keyframes focusDoc {
        0%  { transform: rotate(-5deg) translateY(50px) scale(0.9); opacity: 0; }
        100%{ transform: none; opacity: 1; }
    }

    /* ── Main article card ────────────────────────────────── */
    .article-focus-card {
        background: #1e293b;
        border: 1px solid rgba(30, 136, 229, 0.15);
        border-radius: 16px;
        padding: 72px 80px;
        max-width: 900px;
        margin: 0 auto;
        box-shadow:
            0 0 0 1px rgba(30,136,229,0.06),
            0 40px 120px rgba(0, 0, 0, 0.7),
            0 0 80px rgba(30, 136, 229, 0.04);
        animation: focusDoc 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        position: relative;
        backface-visibility: visible;
    }

    .article-focus-card::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, #1e88e5 0%, #42a5f5 50%, transparent 100%);
        border-radius: 16px 16px 0 0;
    }

    .article-focus-card::after {
        content: "";
        position: absolute;
        top: -60px; left: -60px;
        width: 300px; height: 300px;
        background: radial-gradient(circle, rgba(30,136,229,0.06) 0%, transparent 70%);
        pointer-events: none;
        border-radius: 50%;
    }

    /* ── Back button ──────────────────────────────────────── */
    .back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #4a6280;
        text-decoration: none;
        margin-bottom: 36px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition: color 0.25s;
    }
    .back-btn:hover { color: #1e88e5; }
    .back-btn svg { transition: transform 0.25s; }
    .back-btn:hover svg { transform: translateX(-3px); }

    /* ── Article header ───────────────────────────────────── */
    .article-header {
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding-bottom: 44px;
        margin-bottom: 52px;
    }

    .article-meta {
        font-family: 'JetBrains Mono', monospace;
        color: #1e88e5;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .article-meta::before {
        content: "";
        display: inline-block;
        width: 6px; height: 6px;
        border-radius: 50%;
        background: #1e88e5;
        opacity: 0.7;
        flex-shrink: 0;
    }

    .meta-sep {
        color: #2d4a63;
        font-size: 0.6rem;
    }

    .meta-reading {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #4a6280;
    }

    .meta-clock {
        display: inline-block;
        width: 11px;
        height: 11px;
        border: 1.5px solid #4a6280;
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
    }
    .meta-clock::before {
        content: '';
        position: absolute;
        top: 1px; left: 4px;
        width: 1.5px; height: 4px;
        background: #4a6280;
        border-radius: 1px;
    }
    .meta-clock::after {
        content: '';
        position: absolute;
        top: 4px; left: 4px;
        width: 3px; height: 1.5px;
        background: #4a6280;
        border-radius: 1px;
    }

    .article-title {
        font-size: clamp(2rem, 4.5vw, 2.9rem);
        font-weight: 800;
        color: #f0f4f8;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-top: 16px;
    }

    .article-byline {
        margin-top: 18px;
        font-size: 0.88rem;
        color: #7fa8c8;
    }
    .article-byline a { color: #cbd5e1; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(66,165,245,0.3); }
    .article-byline a:hover { color: #90caf9; }
    .article-byline-credentials { color: #4a6280; font-size: 0.8rem; margin-top: 2px; }

    /* ── Hero image ───────────────────────────────────────── */
    .detail-hero-img {
        width: 100%;
        max-height: 460px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 52px;
        border: 1px solid rgba(30,136,229,0.15);
        box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    }

    /* ── Article body typography ──────────────────────────── */
    .article-content {
        font-family: 'Inter', sans-serif;
        color: #94a3b8;
        line-height: 1.85;
        font-size: 1.05rem;
        font-weight: 300;
    }

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        color: #e2e8f0 !important;
        font-weight: 700;
        letter-spacing: -0.01em;
        line-height: 1.25;
    }

    .article-content h2 {
        font-size: 1.55rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid rgba(30,136,229,0.15);
    }

    .article-content h3 {
        font-size: 1.15rem;
        margin-top: 2.2rem;
        margin-bottom: 0.7rem;
        color: #cbd5e1 !important;
    }

    .article-content p {
        margin-bottom: 1.6em;
        color: #94a3b8 !important;
    }

    .article-content b,
    .article-content strong {
        color: #e2e8f0 !important;
        font-weight: 500;
    }

    .article-content span { color: inherit !important; }

    .article-content li {
        color: #94a3b8 !important;
        margin-bottom: 0.5rem;
    }

    .article-content li::marker { color: #1e88e5; }

    .article-content ul,
    .article-content ol {
        padding-left: 1.4rem;
        margin-bottom: 1.6em;
    }

    /* ── Links ────────────────────────────────────────────── */
    .article-content a {
        color: white !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(66,165,245,0.3);
        transition: border-color 0.2s, color 0.2s;
        padding-bottom: 1px;
    }
    .article-content a:hover {
        color: #90caf9 !important;
        border-color: rgba(144,202,249,0.6);
    }

    /* ── Blockquote / callout ─────────────────────────────── */
    .article-content blockquote {
        border-left: 3px solid #1e88e5;
        padding: 16px 28px;
        margin: 2.2rem 0;
        background: rgba(30, 136, 229, 0.06);
        border-radius: 0 8px 8px 0;
        font-style: italic;
        color: #7fa8c8 !important;
    }

    .article-content blockquote p {
        margin: 0;
        color: #7fa8c8 !important;
    }

    /* ── Code blocks ──────────────────────────────────────── */
    .article-content pre {
        background: #040f1e;
        padding: 28px;
        border-radius: 10px;
        border: 1px solid rgba(30,136,229,0.15);
        border-top: 2px solid rgba(30,136,229,0.35);
        color: #42a5f5;
        overflow-x: auto;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.88rem;
        line-height: 1.7;
        margin: 2rem 0;
        box-shadow: inset 0 2px 20px rgba(0,0,0,0.4);
    }

    .article-content code {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.84em;
        background: rgba(30,136,229,0.1);
        border: 1px solid rgba(30,136,229,0.18);
        padding: 2px 7px;
        border-radius: 4px;
        color: #60a5fa !important;
    }

    .article-content pre code {
        background: none;
        border: none;
        padding: 0;
        font-size: inherit;
        color: inherit !important;
    }

    /* ── Images inside content ────────────────────────────── */
    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 2.5rem 0;
        border: 1px solid rgba(30,136,229,0.15);
        box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    }

    /* ── Tag footer ───────────────────────────────────────── */
    .tag-footer {
        margin-top: 64px;
        padding-top: 32px;
        border-top: 1px solid rgba(255,255,255,0.07);
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .tag-footer-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.65rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #2d4a63;
        margin-right: 4px;
        flex-shrink: 0;
    }

    .tag-item {
        background: rgba(30, 136, 229, 0.08);
        color: #42a5f5;
        padding: 5px 14px;
        border-radius: 5px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        border: 1px solid rgba(30, 136, 229, 0.18);
        transition: background 0.2s, border-color 0.2s;
        white-space: nowrap;
    }

    .tag-item:hover {
        background: rgba(30, 136, 229, 0.15);
        border-color: rgba(30, 136, 229, 0.35);
    }

    /* ── Table of Contents ────────────────────────────────── */
    .article-layout {
        display: block;
        max-width: 900px;
        margin: 0 auto;
    }

    #toc-sidebar {
        display: none;
    }

    @media (min-width: 1100px) {
        .article-layout {
            max-width: 900px;
            margin: 0 auto;
        }

        #toc-sidebar {
            display: flex;
            flex-direction: column;
            width: 200px;
            position: fixed;
            top: 180px;
            left: max(20px, calc(50% - 670px));
            max-height: calc(100vh - 200px);
            overflow-y: auto;
            scrollbar-width: none;
        }

        #toc-sidebar::-webkit-scrollbar {
            display: none;
        }
    }

    .toc-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #2d4a63;
        margin-bottom: 14px;
        flex-shrink: 0;
    }

    .toc-nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .toc-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 7px 10px 7px 12px;
        border-radius: 6px;
        text-decoration: none;
        transition: background 0.2s;
        position: relative;
        border-left: 2px solid transparent;
    }

    .toc-item:hover {
        background: rgba(255,255,255,0.04);
    }

    .toc-item.active {
        background: rgba(30,136,229,0.1);
        border-left-color: #1e88e5;
    }

    .toc-item-num {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        color: #2d4a63;
        margin-top: 2px;
        flex-shrink: 0;
        transition: color 0.2s;
    }

    .toc-item.active .toc-item-num {
        color: #1e88e5;
    }

    .toc-item-text {
        font-size: 0.75rem;
        color: #4a6280;
        line-height: 1.4;
        transition: color 0.2s;
    }

    .toc-item.active .toc-item-text {
        color: #e2e8f0;
        font-weight: 500;
    }

    .toc-progress-wrap {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
        flex-shrink: 0;
    }

    .toc-progress-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        color: #2d4a63;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .toc-progress-track {
        background: rgba(255,255,255,0.06);
        border-radius: 4px;
        height: 3px;
        overflow: hidden;
    }

    .toc-progress-fill {
        height: 100%;
        background: #1e88e5;
        border-radius: 4px;
        width: 0%;
        transition: width 0.1s linear;
    }

    .toc-progress-pct {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.62rem;
        color: #2d4a63;
        margin-top: 6px;
    }

    .article-main {
        width: 100%;
    }

    /* ── Responsive ───────────────────────────────────────── */
    @media (max-width: 768px) {
        .article-focus-card {
            padding: 40px 28px;
            border-radius: 12px;
        }
        .article-title { font-size: 1.7rem; }
        .article-content { font-size: 1rem; }
        #progress-pill { bottom: 20px; left: 16px; right: auto; }
    }

    @media (max-width: 480px) {
        .detail-section { padding: 48px 0 80px; }
        .article-focus-card { padding: 32px 20px; }
    }

    html {
        scroll-padding-top: 110px;
    }
