
:root {
    --desmos-embed-container-bg-colour: #eee;
}


.footer-container {
    max-width: 1100px;
}

.footer-container a {
    color: var(--text-secondary);
    text-decoration: none;
}



/* ==========================================================================
   Desmos Interactive Sub-Page Styles
   ========================================================================== */

.desmos-feature {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-colour);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.desmos-feature h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.desmos-embed-container {
    width: 100%;
    height: 500px;
    background-color: var(--desmos-embed-container-bg-colour);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-colour);
}

.desmos-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.desmos-grid-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.desmos-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.desmos-gallery-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-colour);
    border-radius: 8px;
    overflow: hidden;
}

.mini-embed-container {
    width: 100%;
    height: 320px;
    border-bottom: 1px solid var(--border-colour);
}

.card-details {
    padding: 1.5rem;
}

.card-details h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Custom tablet adjustments */
@media (max-width: 768px) {
    .desmos-embed-container {
        height: 350px;
    }
    
    .desmos-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-embed-container {
        height: 280px;
    }
}



