       :root {
            --primary: #047857;
            --primary-light: #059669;
            --secondary: #78716c;
            --accent: #d97706;
            --background: #fafaf9;
            --surface: #ffffff;
            --text-primary: #1c1917;
            --text-secondary: #57534e;
            --border: #e7e5e4;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.7;
            color: var(--text-primary);
            background-color: var(--background);
            overflow-x: hidden;
        }
        
        .serif {
            font-family: 'Playfair Display', serif;
        }
        
        .toc-fixed {
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            background: var(--surface);
            border-right: 1px solid var(--border);
            z-index: 40;
            overflow-y: auto;
            padding: 2rem 1.5rem;
        }
        
        .main-content {
            margin-left: 280px;
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, rgba(4, 120, 87, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
        }
        
        .bento-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-items: center;
        }
        
        .toc-link {
            display: block;
            padding: 0.5rem 0;
            color: var(--text-secondary);
            text-decoration: none;
            border-left: 2px solid transparent;
            padding-left: 1rem;
            margin-left: -1rem;
            transition: all 0.2s ease;
        }
        
        .toc-link:hover {
            color: var(--primary);
            border-left-color: var(--primary);
        }
        
        .toc-link.active {
            color: var(--primary);
            border-left-color: var(--primary);
            font-weight: 500;
        }
        
        .section-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border), transparent);
            margin: 4rem 0;
        }
        
        .quote-highlight {
            border-left: 4px solid var(--accent);
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            color: var(--text-secondary);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .stat-card {
            background: var(--surface);
            padding: 1.5rem;
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            text-align: center;
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            display: block;
        }
        
        @media (max-width: 768px) {
            .toc-fixed {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }
            
            .toc-fixed.open {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .bento-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1024px) {
            .mermaid-control-btn:not(.reset-zoom) {
                display: none;
            }
            .mermaid-controls {
                top: auto;
                bottom: 15px;
                right: 15px;
            }
        }

        .citation {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }
        
        .citation:hover {
            text-decoration: underline;
        }
        
        .strategy-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 1rem;
            padding: 2rem;
            margin: 1.5rem 0;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .strategy-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .progress-indicator {
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            margin: 2rem 0;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--primary);
            width: 0%;
            transition: width 0.3s ease;
        }

        /* Mermaid chart styling */
        .mermaid-container {
            display: flex;
            justify-content: center;
            min-height: 300px;
            max-height: 800px;
            background: #ffffff;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            padding: 30px;
            margin: 30px 0;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }

        .mermaid-container .mermaid {
            width: 100%;
            max-width: 100%;
            height: 100%;
            cursor: grab;
            transition: transform 0.3s ease;
            transform-origin: center center;
            display: flex;
            justify-content: center;
            align-items: center;
            touch-action: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .mermaid-container .mermaid svg {
            max-width: 100%;
            height: 100%;
            display: block;
            margin: 0 auto;
        }

        .mermaid-container .mermaid:active {
            cursor: grabbing;
        }

        .mermaid-container.zoomed .mermaid {
            height: 100%;
            width: 100%;
            cursor: grab;
        }

        .mermaid-controls {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            gap: 10px;
            z-index: 20;
            background: rgba(255, 255, 255, 0.95);
            padding: 8px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .mermaid-control-btn {
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #374151;
            font-size: 14px;
            min-width: 36px;
            height: 36px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mermaid-control-btn:hover {
            background: #f8fafc;
            border-color: #3b82f6;
            color: #3b82f6;
            transform: translateY(-1px);
        }

        .mermaid-control-btn:active {
            transform: scale(0.95);
        }

        /* Mermaid theme customization for better contrast */
        .mermaid .node rect,
        .mermaid .node circle,
        .mermaid .node ellipse,
        .mermaid .node polygon {
            stroke: #374151 !important;
            stroke-width: 2px !important;
        }
        
        /* Primary nodes - green theme */
        .mermaid .node.primary rect,
        .mermaid .node.primary circle,
        .mermaid .node.primary ellipse,
        .mermaid .node.primary polygon {
            fill: #ecfdf5 !important;
            stroke: #047857 !important;
        }
        
        .mermaid .node.primary .label {
            color: #047857 !important;
            font-weight: 600 !important;
        }
        
        /* Secondary nodes - orange theme */
        .mermaid .node.secondary rect,
        .mermaid .node.secondary circle,
        .mermaid .node.secondary ellipse,
        .mermaid .node.secondary polygon {
            fill: #fffbeb !important;
            stroke: #d97706 !important;
        }
        
        .mermaid .node.secondary .label {
            color: #92400e !important;
            font-weight: 600 !important;
        }
        
        /* Tertiary nodes - neutral theme */
        .mermaid .node.tertiary rect,
        .mermaid .node.tertiary circle,
        .mermaid .node.tertiary ellipse,
        .mermaid .node.tertiary polygon {
            fill: #f8fafc !important;
            stroke: #64748b !important;
        }
        
        .mermaid .node.tertiary .label {
            color: #374151 !important;
            font-weight: 500 !important;
        }
        
        /* Default node styling */
        .mermaid .node .label {
            color: #1f2937 !important;
            font-weight: 500 !important;
            font-size: 13px !important;
            font-family: 'Inter', sans-serif !important;
        }
        
        /* Edge styling */
        .mermaid .edgePath .path {
            stroke: #6b7280 !important;
            stroke-width: 2px !important;
        }
        
        .mermaid .edgeLabel {
            background-color: #ffffff !important;
            color: #374151 !important;
            font-family: 'Inter', sans-serif !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            padding: 4px 8px !important;
            border-radius: 4px !important;
            border: 1px solid #e5e7eb !important;
        }
        
        /* Cluster styling */
        .mermaid .cluster rect {
            fill: #f9fafb !important;
            stroke: #d1d5db !important;
            stroke-width: 1px !important;
        }
        
        .mermaid .cluster .label {
            color: #374151 !important;
            font-weight: 600 !important;
            font-family: 'Inter', sans-serif !important;
        }
