
        .gradient-bg {
            background: linear-gradient(135deg, #4f63cd 0%, #764ba2 100%);
        }
        
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .premium-shadow {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .article-header {
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);
            background-size: cover;
            background-position: center;
            color: white;
            padding: 80px 0;
        }
        
        .category-badge {
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            color: white;
            display: inline-block;
            margin-bottom: 20px;
        }
        
        .css-badge { background: #1572b6; }
        
        .toc-sidebar {
            position: sticky;
            top: 100px;
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
        }
        
        .toc-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 15px;
            color: #1f2937;
        }
        
        .toc-list {
            list-style: none;
            padding: 0;
        }
        
        .toc-item {
            margin-bottom: 8px;
        }
        
        .toc-link {
            color: #6b7280;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 14px;
        }
        
        .toc-link:hover, .toc-link.active {
            color: #4f46e5;
        }
        
        .toc-link.level-2 {
            padding-left: 15px;
        }
        
        .toc-link.level-3 {
            padding-left: 30px;
            font-size: 13px;
        }
        
        .article-content {
            font-size: 18px;
            line-height: 1.7;
            color: #374151;
        }
        
        .article-content h2 {
            font-size: 28px;
            font-weight: 700;
            margin: 40px 0 20px;
            color: #1f2937;
        }
        
        .article-content h3 {
            font-size: 22px;
            font-weight: 600;
            margin: 30px 0 15px;
            color: #1f2937;
        }
        
        .article-content p {
            margin-bottom: 20px;
        }
        
        .article-content code {
            background: #f3f4f6;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 16px;
            color: #be123c;
        }

        .article-content .code-content .hljs-comment { color: #94a3b8; }

        /* code blocks: the inline-code look above must not paint light patches over the dark block (contrast fix) */
        .article-content .code-content pre code {
            background: transparent;
            padding: 0;
            color: #e2e8f0;
            font-size: inherit;
        }
        
        .code-block {
            background: #1e293b;
            border-radius: 8px;
            overflow: hidden;
            margin: 25px 0;
        }
        
        .code-header {
            background: #0f172a;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #e2e8f0;
            font-size: 14px;
        }
        
        .code-content {
            padding: 20px;
            overflow-x: auto;
        }
        
        .code-content pre {
            margin: 0;
            font-family: 'Fira Code', monospace;
            font-size: 14px;
            line-height: 1.5;
        }
        
        .copy-btn {
            background: #334155;
            border: none;
            color: #e2e8f0;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        .copy-btn:hover {
            background: #475569;
        }
        
        .example-preview {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 20px;
            margin: 25px 0;
        }
        
        .example-title {
            font-weight: 600;
            margin-bottom: 15px;
            color: #1f2937;
        }
        
        .author-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            margin-bottom: 25px;
        }
        
        .author-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 15px;
            background: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            color: #4f46e5;
        }
        
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            color: #6b7280;
            font-size: 14px;
        }
        
        .meta-item i {
            margin-right: 8px;
        }
        
        .social-share {
            display: flex;
            gap: 10px;
            margin: 30px 0;
        }
        
        .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: transform 0.3s ease;
        }
        
        .share-btn:hover {
            transform: translateY(-2px);
        }
        
        .twitter { background: #1da1f2; }
        .linkedin { background: #0077b5; }
        .facebook { background: #3b5998; }
        .link { background: #6b7280; }
        
        .related-article-card {
            transition: all 0.3s ease;
            border-radius: 12px;
            overflow: hidden;
            height: 100%;
        }
        
        .related-article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        
        .related-thumbnail {
            height: 160px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            margin: 40px 0;
            padding: 30px 0;
            border-top: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .nav-btn {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            color: #374151;
            text-decoration: none;
            transition: all 0.3s ease;
            max-width: 300px;
        }
        
        .nav-btn:hover {
            border-color: #4f46e5;
            color: #4f46e5;
        }
        
        .nav-btn.prev {
            text-align: left;
        }
        
        .nav-btn.next {
            text-align: right;
            margin-left: auto;
        }
        
        .nav-btn i {
            margin: 0 10px;
        }
        
        .comment-section {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin: 40px 0;
        }
        
        .comment-form {
            margin-top: 30px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        
        .form-control:focus {
            border-color: #4f46e5;
            outline: none;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }
        
        .submit-btn {
            background: #4f46e5;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        .submit-btn:hover {
            background: #4338ca;
        }
        
        @media (max-width: 768px) {
            .article-content {
                font-size: 16px;
            }
            
            .article-content h2 {
                font-size: 24px;
            }
            
            .article-content h3 {
                font-size: 20px;
            }
            
            .navigation-buttons {
                flex-direction: column;
                gap: 15px;
            }
            
            .nav-btn {
                max-width: 100%;
            }
        }
    

/* the site logo was an <h1>: Bootstrap (loaded on this page only) gave it margin-bottom .5rem - kept, so the header looks the same */
.hcj-logo { margin-bottom: .5rem; }

/* the live grid example (was inline style attributes: the strict policy allows none) */
.example-preview .grid-demo { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 100px 200px; gap: 20px; }
.example-preview .grid-demo > div { background: #4f46e5; color: white; padding: 20px; border-radius: 8px; }
