.pascal-grid {
            font-family: 'Courier New', 'Fira Code', monospace;
            overflow-x: auto;
            padding: 1rem 0;
        }
        .pascal-row {
            display: flex;
            justify-content: center;
            flex-wrap: nowrap;
            margin: 0.25rem 0;
        }
        .pascal-cell {
            min-width: 3.2rem;
            text-align: center;
            padding: 0.3rem 0.5rem;
            margin: 0 0.1rem;
            background-color: #f8f9fc;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.1s ease;
            font-size: 0.9rem;
        }
        .pascal-cell.odd-highlight {
            background-color: #ffe0b5;
            color: #a34e00;
        }
        .pascal-cell.even-highlight {
            background-color: #d4e6f1;
            color: #0a4275;
        }
        .pascal-cell.mod2-gray {
            background-color: #ced4da;
            color: #2c3e50;
        }
        .pascal-cell:hover {
            transform: scale(1.05);
            background-color: #cbd5e0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        .binom-card {
            background: #f1f5f9;
            border-radius: 16px;
            padding: 1rem;
            margin-top: 1.5rem;
        }
        .sierpinski-preview {
            background: #1e293b;
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
        }
        .section-subtitle {
            font-size: 1.4rem;
            font-weight: 600;
            margin: 2rem 0 1rem 0;
            border-left: 5px solid var(--primary-color);
            padding-left: 1rem;
        }
        .example-badge {
            background: #e2e8f0;
            border-radius: 30px;
            padding: 0.3rem 1rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .example-badge:hover {
            background: var(--primary-color);
            color: white;
        }
        .legend-color.small-rect {
            width: 20px;
            height: 12px;
            border-radius: 2px;
        }
        .precision-warning {
            font-size: 0.8rem;
            margin-top: 0.5rem;
            color: #b85c00;
        }
        @media (max-width: 768px) {
            .pascal-cell { min-width: 2.2rem; font-size: 0.7rem; padding: 0.2rem 0.3rem; }
        }