
    /* === HERO SECTION (DYNAMIC) === */
    .hero-section {
        position: relative;
        min-height: 60vh;
        padding: 120px 16px 140px;
        background: linear-gradient(135deg,
                var(--hero-primary, var(--ink)) 0%,
                var(--hero-secondary, var(--ink)) 25%,
                var(--hero-primary, var(--ink)) 50%,
                var(--hero-secondary, var(--ink)) 75%,
                var(--hero-primary, var(--ink)) 100%);
        background-size: 200% 200%;
        animation: hero-gradient-flow 15s ease infinite;
        overflow: hidden;
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }

    @keyframes hero-gradient-flow {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    /* Hero Responsive Adjustments */
    @media (min-width: 480px) {
        .hero-section {
            min-height: 65vh;
            padding: 140px 20px 150px;
        }
    }

    @media (min-width: 768px) {
        .hero-section {
            min-height: 68vh;
            padding: 150px 24px 160px;
        }
    }

    @media (min-width: 1024px) {
        .hero-section {
            min-height: 70vh;
            padding: 160px 32px 180px;
        }
    }

    /* iPad Pro Portrait */
    @media (min-width: 768px) and (max-width: 1024px) {
        .hero-section {
            min-height: 50vh;
            padding: 140px 40px 160px;
        }
    }

    /* iPad Pro Landscape */
    @media (width: 1366px) and (height: 1024px) {
        .hero-section {
            min-height: 75vh;
            padding: 140px 48px 170px;
        }
    }

    /* === HERO BUTTON SECONDARY === */
    .hero-content .btn-secondary {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--paper) !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        text-decoration: none !important;
        padding: 10px 20px !important;
        border-radius: 50px !important;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    @media (min-width: 480px) {
        .hero-content .btn-secondary {
            font-size: 14px !important;
            padding: 12px 24px !important;
        }
    }

    .hero-content .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        transform: translateY(-2px);
    }

    .hero-content .btn-secondary svg {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        stroke: white !important;
        stroke-width: 2px !important;
        fill: none !important;
        flex-shrink: 0;
    }

    @media (min-width: 480px) {
        .hero-content .btn-secondary svg {
            width: 16px !important;
            height: 16px !important;
            min-width: 16px !important;
        }
    }

    /* === JUMP TO TOP === */
    .jump-to-top {
        position: fixed !important;
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--ink), var(--ink-2)) !important;
        color: var(--paper) !important;
        border: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 10px 30px -8px rgba(22, 22, 22, 0.5) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease !important;
        z-index: 9999 !important;
    }

    @media (min-width: 480px) {
        .jump-to-top {
            right: 16px;
            bottom: 16px;
            width: 48px;
            height: 48px;
        }
    }

    @media (min-width: 768px) {
        .jump-to-top {
            right: 20px;
            bottom: 20px;
            width: 52px;
            height: 52px;
        }
    }

    .jump-to-top.visible {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .jump-to-top:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 16px 40px -8px rgba(22, 22, 22, 0.5) !important;
    }

    /* === FEATURED IMAGE OVERLAY === */
    .featured-image-wrapper {
        position: relative;
        max-width: 100%;
        margin: -80px auto 0;
        padding: 0 10px;
        z-index: 20;
    }

    @media (min-width: 480px) {
        .featured-image-wrapper {
            margin-top: -90px;
            padding: 0 20px;
            max-width: 480px;
        }
    }

    @media (min-width: 640px) {
        .featured-image-wrapper {
            margin-top: -100px;
            padding: 0 24px;
            max-width: 560px;
        }
    }

    @media (min-width: 768px) {
        .featured-image-wrapper {
            margin-top: -110px;
            padding: 0 32px;
            max-width: 620px;
        }
    }

    @media (min-width: 1024px) {
        .featured-image-wrapper {
            margin-top: -120px;
            padding: 0 40px;
            max-width: 700px;
        }
    }

    /* iPad Pro Portrait */
    @media (min-width: 768px) and (max-width: 1024px) {
        .featured-image-wrapper {
            margin-top: -100px;
            max-width: 600px;
            padding: 0 48px;
        }
    }

    /* iPad Pro Landscape */
    @media (width: 1366px) and (height: 1024px) {
        .featured-image-wrapper {
            margin-top: -120px;
            max-width: 680px;
        }
    }

    .featured-image-container {
        position: relative;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3),
            0 8px 20px -8px rgba(0, 0, 0, 0.2);
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    }

    @media (min-width: 640px) {
        .featured-image-container {
            border-radius: 18px;
            box-shadow: 0 25px 50px -18px rgba(0, 0, 0, 0.32),
                0 10px 25px -8px rgba(0, 0, 0, 0.2);
        }
    }

    @media (min-width: 1024px) {
        .featured-image-container {
            border-radius: 20px;
            box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35),
                0 10px 30px -10px rgba(0, 0, 0, 0.2);
        }
    }

    .featured-image-container:hover {
        transform: translateY(-8px);
        box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4),
            0 15px 40px -10px rgba(0, 0, 0, 0.25);
    }

    .featured-image-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
        z-index: 2;
        pointer-events: none;
    }

    .featured-image-main {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @media (min-width: 768px) {
        .featured-image-main {
            aspect-ratio: 7 / 4;
        }
    }

    .featured-image-container:hover .featured-image-main {
        transform: scale(1.03);
    }

    .featured-image-frame {
        position: absolute;
        inset: 8px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        pointer-events: none;
        z-index: 3;
    }

    @media (min-width: 640px) {
        .featured-image-frame {
            inset: 10px;
            border-radius: 14px;
        }
    }

    @media (min-width: 1024px) {
        .featured-image-frame {
            inset: 12px;
            border-radius: 16px;
        }
    }

    .featured-image-accent {
        position: absolute;
        width: 40px;
        height: 40px;
        z-index: 4;
    }

    @media (min-width: 768px) {
        .featured-image-accent {
            width: 50px;
            height: 50px;
        }
    }

    @media (min-width: 1024px) {
        .featured-image-accent {
            width: 60px;
            height: 60px;
        }
    }

    .featured-image-accent::before,
    .featured-image-accent::after {
        content: '';
        position: absolute;
        background: var(--hero-accent, var(--ink-2));
        transition: all 0.3s ease;
    }

    /* Hero Background Effects */
    .hero-section::before {
        pointer-events: none;
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 30%, var(--hero-glow, rgba(22, 22, 22, 0.5)) 0%, transparent 40%),
            radial-gradient(ellipse at 80% 70%, var(--hero-glow, rgba(22, 22, 22, 0.5)) 0%, transparent 40%),
            radial-gradient(ellipse at 50% 50%, var(--hero-primary, var(--ink)) 0%, transparent 60%);
        animation: hero-pulse 15s ease-in-out infinite;
        opacity: 0.45;
    }

    @keyframes hero-pulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }
    }


    /* Blockchain Grid */
    .blockchain-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: grid-move 20s linear infinite;
    }

    @media (min-width: 768px) {
        .blockchain-grid {
            background-size: 50px 50px;
        }
    }

    @media (min-width: 1024px) {
        .blockchain-grid {
            background-size: 60px 60px;
        }
    }

    @keyframes grid-move {
        0% {
            transform: translate(0, 0);
        }

        100% {
            transform: translate(60px, 60px);
        }
    }

    /* Floating Particles */
    .particle {
        position: absolute;
        border-radius: 50%;
        background: var(--hero-accent, var(--ink-2));
        opacity: 0.4;
        animation: float-particle 8s ease-in-out infinite;
    }

    @keyframes float-particle {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
            opacity: 0.2;
        }

        50% {
            transform: translateY(-30px) rotate(180deg);
            opacity: 0.6;
        }
    }

    /* === HERO CONTENT === */
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 3;
        padding: 0 8px;
    }

    @media (min-width: 480px) {
        .hero-content {
            max-width: 90%;
            padding: 0;
        }
    }

    @media (min-width: 768px) {
        .hero-content {
            max-width: 800px;
        }
    }

    @media (min-width: 1024px) {
        .hero-content {
            max-width: 900px;
        }
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 16px;
        animation: badge-glow 3s ease-in-out infinite;
    }

    @media (min-width: 480px) {
        .hero-badge {
            gap: 8px;
            padding: 8px 16px;
            font-size: 12px;
            margin-bottom: 20px;
        }
    }

    @media (min-width: 768px) {
        .hero-badge {
            margin-bottom: 24px;
        }
    }

    @keyframes badge-glow {

        0%,
        100% {
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        }

        50% {
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        }
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 3.5rem);
        font-weight: 800;
        line-height: 1.15;
        color: var(--paper);
        margin-bottom: 16px;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    @media (min-width: 480px) {
        .hero-title {
            font-size: clamp(1.75rem, 5vw, 3rem);
            margin-bottom: 20px;
        }
    }

    @media (min-width: 768px) {
        .hero-title {
            font-size: clamp(2rem, 4.5vw, 3.25rem);
            margin-bottom: 24px;
        }
    }

    @media (min-width: 1024px) {
        .hero-title {
            font-size: clamp(2.25rem, 4vw, 3.5rem);
        }
    }

    /* iPad Pro Portrait */
    @media (min-width: 768px) and (max-width: 1024px) {
        .hero-title {
            font-size: 2.5rem;
        }
    }

    .hero-meta {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    @media (min-width: 480px) {
        .hero-meta {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 16px;
        }
    }

    @media (min-width: 768px) {
        .hero-meta {
            gap: 24px;
            margin-bottom: 32px;
        }
    }

    .hero-meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
    }

    @media (min-width: 480px) {
        .hero-meta-item {
            gap: 8px;
            font-size: 13px;
        }
    }

    @media (min-width: 768px) {
        .hero-meta-item {
            font-size: 14px;
        }
    }

    .hero-author {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    @media (min-width: 480px) {
        .hero-author {
            gap: 12px;
        }
    }

    .hero-author-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.3);
        object-fit: cover;
    }

    @media (min-width: 480px) {
        .hero-author-avatar {
            width: 40px;
            height: 40px;
        }
    }

    @media (min-width: 768px) {
        .hero-author-avatar {
            width: 44px;
            height: 44px;
        }
    }

    /* Subtle full-screen hero background: kept very faint under a strong dark
       overlay so baked-in thumbnail text cannot clash with the headline, while
       the image still adds texture behind the gradient. */
    .hero-featured-image {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .hero-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.1;
    }

    .hero-featured-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
                rgba(15, 23, 42, 0.57) 0%,
                rgba(15, 23, 42, 0.65) 45%,
                rgba(15, 23, 42, 0.73) 100%);
    }

    /* === SCROLL PROGRESS === */
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
        z-index: 100;
        transform-origin: left;
        transform: scaleX(0);
        transition: transform 0.1s ease;
    }

    /* === ARTICLE LAYOUT === */
    .article-container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 40px 10px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    @media (min-width: 480px) {
        .article-container {
            padding: 50px 20px;
            gap: 36px;
        }
    }

    @media (min-width: 768px) {
        .article-container {
            padding: 60px 24px;
            gap: 40px;
        }
    }

    @media (min-width: 1024px) {
        .article-container {
            padding: 80px 32px;
            grid-template-columns: 260px 1fr;
            gap: 48px;
        }
    }

    @media (min-width: 1200px) {
        .article-container {
            grid-template-columns: 280px 1fr;
        }
    }

    /* iPad Pro Portrait */
    @media (min-width: 900px) and (max-width: 1024px) {
        .article-container {
            grid-template-columns: 240px 1fr;
            padding: 60px 40px;
            gap: 40px;
        }
    }

    
    /* === SIDEBAR === */
    .sidebar {
        position: relative;
        order: 1;
    }

    @media (min-width: 1024px) {
        .sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
            order: 1;
        }
    }

    .sidebar-card {
        background: var(--paper);
        border-radius: 16px;
        padding: 20px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: var(--shadow-card);
        margin-bottom: 20px;
    }

    @media (min-width: 768px) {
        .sidebar-card {
            border-radius: 18px;
            padding: 22px;
            margin-bottom: 22px;
        }
    }

    @media (min-width: 1024px) {
        .sidebar-card {
            border-radius: 20px;
            padding: 24px;
            margin-bottom: 24px;
        }
    }

    .sidebar-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--color-dark);
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    @media (min-width: 768px) {
        .sidebar-title {
            font-size: 14px;
            margin-bottom: 16px;
        }
    }

    /* === TABLE OF CONTENTS === */
    .toc-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
        color: var(--paper);
        border: none;
        border-radius: 14px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    @media (min-width: 768px) {
        .toc-toggle {
            padding: 16px 20px;
            border-radius: 16px;
            font-size: 14px;
        }
    }

    .toc-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px -8px var(--color-secondary-glow);
    }

    .toc-toggle.active svg {
        transform: rotate(180deg);
    }

    .toc-toggle svg {
        transition: transform 0.3s ease;
    }

    .toc-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .toc-content.open {
        max-height: 500px;
        overflow-y: auto;
    }

    .toc-list {
        padding: 16px 0;
        list-style: none;
    }

    @media (min-width: 768px) {
        .toc-list {
            padding: 20px 0;
        }
    }

    .toc-item {
        padding: 8px 14px;
        border-left: 2px solid rgba(0, 0, 0, 0.05);
        margin-left: 8px;
        transition: all 0.3s ease;
    }

    @media (min-width: 768px) {
        .toc-item {
            padding: 10px 16px;
        }
    }

    .toc-item:hover {
        border-color: var(--color-primary);
    }

    .toc-link {
        color: var(--color-muted);
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    @media (min-width: 768px) {
        .toc-link {
            font-size: 13px;
        }
    }

    .toc-link:hover,
    .toc-link.active {
        color: var(--color-primary);
    }

    /* === SHARE BUTTONS === */
    .share-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    @media (min-width: 768px) {
        .share-buttons {
            gap: 10px;
        }
    }

    .share-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        background: var(--paper);
        color: var(--color-muted);
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    @media (min-width: 768px) {
        .share-btn {
            width: 44px;
            height: 44px;
            border-radius: 12px;
        }
    }

    .share-btn:hover {
        transform: translateY(-3px);
    }

    .share-btn.twitter:hover {
        background: #1DA1F2;
        color: var(--paper);
        border-color: #1DA1F2;
    }

    .share-btn.facebook:hover {
        background: #4267B2;
        color: var(--paper);
        border-color: #4267B2;
    }

    .share-btn.linkedin:hover {
        background: #0077B5;
        color: var(--paper);
        border-color: #0077B5;
    }

    .share-btn.whatsapp:hover {
        background: #25D366;
        color: var(--paper);
        border-color: #25D366;
    }

    .share-btn.copy:hover {
        background: var(--color-primary);
        color: var(--paper);
        border-color: var(--color-primary);
    }

    /* === MAIN CONTENT === */

    /* === FIX BOLD TEXT === */
    .article-content strong,
    .article-content b {
        /* 700 is the standard numeric value for "Bold" */
        font-weight: 700 !important;

        /* Optional: Ensure it uses the dark color for better contrast */
        color: var(--color-dark);
    }

    .article-content {
        background: var(--paper);
        border-radius: 20px;
        padding: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: var(--shadow-card);
        order: 2;
    }

    @media (min-width: 480px) {
        .article-content {
            padding: 28px;
        }
    }

    @media (min-width: 640px) {
        .article-content {
            border-radius: 22px;
            padding: 36px;
        }
    }

    @media (min-width: 768px) {
        .article-content {
            padding: 40px;
        }
    }

    @media (min-width: 1024px) {
        .article-content {
            border-radius: 24px;
            padding: 48px;
            order: 2;
        }
    }

    /* iPad Pro Portrait */
    @media (min-width: 768px) and (max-width: 1024px) {
        .article-content {
            padding: 40px;
        }
    }

    .article-content h2 {
        font-size: 1.375rem;
        font-weight: 800;
        color: var(--color-dark);
        margin: 36px 0 16px;
        padding-left: 16px;
        border-left: 3px solid var(--color-primary);
    }

    @media (min-width: 640px) {
        .article-content h2 {
            font-size: 1.5rem;
            margin: 40px 0 18px;
            padding-left: 18px;
        }
    }

    @media (min-width: 768px) {
        .article-content h2 {
            font-size: 1.625rem;
            margin: 44px 0 20px;
            padding-left: 20px;
            border-left-width: 4px;
        }
    }

    @media (min-width: 1024px) {
        .article-content h2 {
            font-size: 1.75rem;
            margin: 48px 0 20px;
        }
    }

    .article-content h2:first-child {
        margin-top: 0;
    }

    .article-content h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--color-dark);
        margin: 28px 0 12px;
    }

    @media (min-width: 640px) {
        .article-content h3 {
            font-size: 1.25rem;
            margin: 32px 0 14px;
        }
    }

    @media (min-width: 768px) {
        .article-content h3 {
            font-size: 1.375rem;
            margin: 36px 0 16px;
        }
    }

    .article-content p {
        font-size: 0.9375rem;
        line-height: 1.75;
        color: var(--color-slate);
        margin-bottom: 10px !important;
    }

    @media (min-width: 640px) {
        .article-content p {
            font-size: 1rem;
            margin-bottom: 10px !important;
        }
    }

    @media (min-width: 768px) {
        .article-content p {
            font-size: 1.0625rem;
            line-height: 1.8;
            margin-bottom: 10px !important;
        }
    }

    .article-content ul,
    .article-content ol {
        margin-bottom: 10px !important;
        padding-left: 20px !important;
    }

    @media (min-width: 768px) {

        .article-content ul,
        .article-content ol {
            margin-bottom: 10px !important;
            padding-left: 24px !important;
        }
    }

    .article-content li {
        font-size: 0.9375rem;
        line-height: 1.75;
        color: var(--color-slate);
        margin-bottom: 1px !important;
        list-style-position: inside;
        /* NEW: Forces the bullet inside the li box */
        list-style-type: disc;
        /* NEW: Explicitly define the bullet type */
    }

    @media (min-width: 640px) {
        .article-content li {
            font-size: 1rem;
        }
    }

    @media (min-width: 768px) {
        .article-content li {
            font-size: 1.0625rem;
            line-height: 1.8;
            margin-bottom: 1px !important;
        }
    }

    .article-content img {
        width: 100%;
        border-radius: 6px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        margin: 16px 0;
        height: auto;
        object-fit: contain;
    }


    @media (min-width: 768px) {
        .article-content img {
            border-radius: 16px;
            margin: 32px 0;
        }
    }

    .article-content .research-figure {
        margin: 30px 0;
    }

    .article-content .research-figure img {
        margin: 0 0 10px;
    }

    .article-content .research-figure figcaption {
        font-size: 14px;
        line-height: 1.75;
        color: var(--ink-2);
    }

    .article-content blockquote {
        background: linear-gradient(135deg, rgba(22, 22, 22, 0.05), rgba(22, 22, 22, 0.05));
        border-left: 3px solid var(--color-primary);
        padding: 20px 24px;
        margin: 24px 0;
        border-radius: 0 12px 12px 0;
        font-style: italic;
        color: var(--color-secondary);
    }

    @media (min-width: 768px) {
        .article-content blockquote {
            border-left-width: 4px;
            padding: 24px 32px;
            margin: 32px 0;
            border-radius: 0 16px 16px 0;
        }
    }

    .article-content a {
        color: var(--color-primary);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color 0.3s ease;
    }

    .article-content a:hover {
        color: var(--color-primary-light);
    }

    .article-content code {
        background: rgba(0, 0, 0, 0.05);
        padding: 2px 6px;
        border-radius: 4px;
        font-family: 'Fira Code', monospace;
        font-size: 0.85em;
    }

    @media (min-width: 768px) {
        .article-content code {
            padding: 2px 8px;
            font-size: 0.9em;
        }
    }

    .article-content pre {
        background: var(--color-dark);
        color: var(--rule);
        padding: 20px;
        border-radius: 12px;
        overflow-x: hidden;
        margin: 24px 0;
        font-size: 13px;
    }

    @media (min-width: 768px) {
        .article-content pre {
            padding: 24px;
            border-radius: 16px;
            margin: 32px 0;
            font-size: 14px;
        }
    }

    .article-content pre code {
        background: none;
        padding: 0;
    }

    /* === FAQ SECTION === */
    /* .faq-section {
        margin-top: 48px;
        padding-top: 36px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    @media (min-width: 768px) {
        .faq-section {
            margin-top: 64px;
            padding-top: 48px;
        }
    } */

    .faq-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--color-dark);
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    @media (min-width: 768px) {
        .faq-title {
            font-size: 1.5rem;
            margin-bottom: 32px;
            gap: 12px;
        }
    }

    .faq-item {
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    @media (min-width: 768px) {
        .faq-item {
            border-radius: 16px;
            margin-bottom: 16px;
        }
    }

    .faq-item:hover {
        border-color: rgba(22, 22, 22, 0.2);
    }

    .faq-question {
        width: 100%;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: rgba(0, 0, 0, 0.01);
        border: none;
        cursor: pointer;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--color-dark);
        text-align: left;
        transition: all 0.3s ease;
    }

    @media (min-width: 768px) {
        .faq-question {
            padding: 20px 24px;
            font-size: 1rem;
        }
    }

    .faq-question:hover {
        background: rgba(22, 22, 22, 0.03);
    }

    .faq-question svg {
        transition: transform 0.3s ease;
        color: var(--color-primary);
        flex-shrink: 0;
    }

    .faq-question.active svg {
        transform: rotate(180deg);
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .faq-answer.open {
        max-height: 500px;
    }

    .faq-answer-inner {
        padding: 0 20px 20px;
        color: var(--color-muted);
        line-height: 1.7;
        font-size: 0.875rem;
    }

    @media (min-width: 768px) {
        .faq-answer-inner {
            padding: 0 24px 24px;
            font-size: 0.9375rem;
        }
    }

    /* === TAGS === */
    .tags-section {
        margin-top: 36px;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    @media (min-width: 768px) {
        .tags-section {
            margin-top: 48px;
            padding-top: 32px;
        }
    }

    .tags-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    @media (min-width: 768px) {
        .tags-list {
            gap: 10px;
        }
    }

    .tag {
        padding: 6px 12px;
        background: rgba(22, 22, 22, 0.08);
        color: var(--color-primary);
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    @media (min-width: 768px) {
        .tag {
            padding: 8px 16px;
            font-size: 13px;
        }
    }

    .tag:hover {
        background: var(--color-primary);
        color: var(--paper);
    }

    /* === AUTHOR BOX === */
    .author-box {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        background: linear-gradient(135deg, rgba(22, 22, 22, 0.03), rgba(22, 22, 22, 0.03));
        border-radius: 16px;
        margin-top: 36px;
        align-items: center;
        text-align: center;
    }

    @media (min-width: 480px) {
        .author-box {
            flex-direction: row;
            gap: 20px;
            text-align: left;
            align-items: center;
        }
    }

    @media (min-width: 768px) {
        .author-box {
            gap: 24px;
            padding: 32px;
            border-radius: 20px;
            margin-top: 48px;
        }
    }

    .author-box-avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid white;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }

    @media (min-width: 768px) {
        .author-box-avatar {
            width: 80px;
            height: 80px;
        }
    }

    .author-box-info h4 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--color-dark);
        margin-bottom: 4px;
    }

    @media (min-width: 768px) {
        .author-box-info h4 {
            font-size: 1.125rem;
        }
    }

    .author-box-info p {
        color: var(--color-muted);
        font-size: 0.875rem;
        margin: 0;
    }

    @media (min-width: 768px) {
        .author-box-info p {
            font-size: 0.9375rem;
        }
    }

    /* === FADE ANIMATIONS === */
    .fade-up {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-in {
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .fade-in.visible {
        opacity: 1;
    }

    .stagger-1 {
        transition-delay: 0.1s;
    }

    .stagger-2 {
        transition-delay: 0.2s;
    }

    .stagger-3 {
        transition-delay: 0.3s;
    }

    .stagger-4 {
        transition-delay: 0.4s;
    }

    /* === RELATED POSTS === */
    .related-section {
        padding: 60px 16px;
        background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
    }

    @media (min-width: 480px) {
        .related-section {
            padding: 70px 20px;
        }
    }

    @media (min-width: 768px) {
        .related-section {
            padding: 80px 24px;
        }
    }

    .related-section h3 {
        font-size: 1.375rem;
        font-weight: 800;
        color: var(--color-dark);
        margin-bottom: 24px;
        text-align: center;
    }

    @media (min-width: 768px) {
        .related-section h3 {
            font-size: 1.75rem;
            margin-bottom: 32px;
        }
    }

    .related-grid {
        display: grid;
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: 1fr;
    }

    @media (min-width: 480px) {
        .related-grid {
            gap: 24px;
        }
    }

    @media (min-width: 640px) {
        .related-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .related-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* iPad Pro Portrait */
    @media (min-width: 768px) and (max-width: 1024px) {
        .related-grid {
            grid-template-columns: repeat(2, 1fr);
            max-width: 800px;
        }
    }

    .related-card {
        background: var(--paper);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.04);
        box-shadow: var(--shadow-card);
        transition: all 0.4s ease;
        text-decoration: none;
    }

    @media (min-width: 768px) {
        .related-card {
            border-radius: 20px;
        }
    }

    .related-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px -12px rgba(22, 22, 22, 0.15);
    }

    .related-card-image {
        aspect-ratio: 16/9;
        overflow: hidden;
    }

    .related-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.5s ease;
    }

    .related-card:hover .related-card-image img {
        transform: scale(1.05);
    }

    .related-card-content {
        padding: 16px;
    }

    @media (min-width: 768px) {
        .related-card-content {
            padding: 20px;
        }
    }

    .related-card-title {
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--color-dark);
        line-height: 1.4;
        margin-bottom: 10px;
    }

    @media (min-width: 768px) {
        .related-card-title {
            font-size: 1rem;
            margin-bottom: 12px;
        }
    }

    .related-card-meta {
        font-size: 0.75rem;
        color: var(--color-muted);
    }

    @media (min-width: 768px) {
        .related-card-meta {
            font-size: 0.8125rem;
        }
    }

    /* === NEWSLETTER === */
    .newsletter-section {
        padding: 60px 16px;
        background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
        position: relative;
        overflow: hidden;
    }

    @media (min-width: 480px) {
        .newsletter-section {
            padding: 70px 20px;
        }
    }

    @media (min-width: 768px) {
        .newsletter-section {
            padding: 80px 24px;
        }
    }

    .newsletter-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 50% 50%, rgba(22, 22, 22, 0.1) 0%, transparent 70%);
    }

    .newsletter-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 1;
        padding: 0 8px;
    }

    @media (min-width: 480px) {
        .newsletter-content {
            max-width: 500px;
            padding: 0;
        }
    }

    @media (min-width: 768px) {
        .newsletter-content {
            max-width: 600px;
        }
    }

    .newsletter-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--paper);
        margin-bottom: 12px;
    }

    @media (min-width: 480px) {
        .newsletter-title {
            font-size: 1.75rem;
            margin-bottom: 14px;
        }
    }

    @media (min-width: 768px) {
        .newsletter-title {
            font-size: 2rem;
            margin-bottom: 16px;
        }
    }

    .newsletter-description {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    @media (min-width: 768px) {
        .newsletter-description {
            font-size: 1rem;
            margin-bottom: 32px;
        }
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
    }

    @media (min-width: 480px) {
        .newsletter-form {
            flex-direction: row;
            gap: 0;
            max-width: 400px;
        }
    }

    @media (min-width: 768px) {
        .newsletter-form {
            max-width: 450px;
        }
    }

    .newsletter-input {
        flex: 1;
        padding: 14px 18px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        color: var(--paper);
        font-size: 14px;
        outline: none;
        transition: all 0.3s ease;
    }

    @media (min-width: 480px) {
        .newsletter-input {
            border-radius: 50px 0 0 50px;
            padding: 16px 20px;
        }
    }

    .newsletter-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .newsletter-input:focus {
        border-color: var(--color-primary);
        background: rgba(255, 255, 255, 0.15);
    }

    .newsletter-submit {
        padding: 14px 24px;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
        border: none;
        border-radius: 50px;
        color: var(--paper);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    @media (min-width: 480px) {
        .newsletter-submit {
            border-radius: 0 50px 50px 0;
            padding: 16px 28px;
        }
    }

    .newsletter-submit:hover {
        box-shadow: 0 10px 30px -8px var(--color-primary-glow);
    }

    /* Toast notification */
    .toast {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        padding: 12px 24px;
        background: var(--color-dark);
        color: var(--paper);
        border-radius: 50px;
        font-size: 13px;
        font-weight: 600;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
        white-space: nowrap;
    }

    @media (min-width: 768px) {
        .toast {
            bottom: 100px;
            padding: 14px 28px;
            font-size: 14px;
        }
    }

    .toast.visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Hidden canvas for color extraction */
    #colorCanvas {
        display: none;
    }

    /* === CORE READS CONTINUE LEARNING === */
    .core-learn {
        margin: 48px 0 8px;
        padding: 24px;
        border: 1px solid rgba(22, 22, 22, 0.18);
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(22, 22, 22, 0.06), rgba(22, 22, 22, 0.04));
    }

    .core-learn h2 {
        margin: 0 0 8px;
        font-size: 1.25rem;
        color: var(--color-slate-900, var(--ink));
    }

    .core-learn p {
        margin: 0 0 12px;
        color: var(--color-slate-600, var(--ink-2));
    }

    .core-learn ul {
        margin: 0 0 14px;
        padding-left: 1.1rem;
    }

    .core-learn li {
        margin-bottom: 6px;
    }

    .core-learn a {
        color: var(--color-primary, var(--ink));
        font-weight: 600;
        text-decoration: none;
    }

    .core-learn a:hover {
        text-decoration: underline;
    }

    .core-learn-link {
        margin: 0;
    }

/* === CONTROLLED PARAGRAPH GAP (replaces double <br>) === */
.article-content .ths-para-gap {
    display: block;
    height: 0.7em;
}

    /* Rules that replace the inline style attributes that used to live in single.php */
    .particle.hero-particle-1 { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
    .particle.hero-particle-2 { width: 3px; height: 3px; top: 40%; left: 25%; animation-delay: 1s; }
    .particle.hero-particle-3 { width: 6px; height: 6px; top: 60%; right: 15%; animation-delay: 2s; }
    .particle.hero-particle-4 { width: 4px; height: 4px; top: 30%; right: 30%; animation-delay: 3s; }
    .particle.hero-particle-5 { width: 5px; height: 5px; top: 70%; left: 40%; animation-delay: 4s; }

    .hero-author-name {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
        font-size: 13px;
    }

    .toc-toggle-label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .related-inner {
        max-width: 1200px;
        margin: 0 auto;
    }

    .related-empty {
        padding: 20px;
        color: #666;
    }

    /* The Site Editor additional CSS used to replace the theme.json article
       typography. That blob was malformed and never applied, but its presence
       kept this rule dormant. With the blob removed, pin the values that have
       been live so paragraph rendering does not move. */
    .article-content p,
    .article-content li {
        font-family: inherit;
        letter-spacing: inherit;
    }
