/*
 * homepage.css — Top-level layout for homepage
 */

.canvas-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 3rem;
    width: 100%;
    height: calc(100dvh - 48px);
    padding: 1rem;
    box-sizing: border-box;
}

/* Chat fills the left column */
.chat-container {
    min-width: 400px;
    max-width: 400px;
}

/* Canvas + colour picker span columns 2 and 3 */
.canvas-controls-group {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .canvas-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        overflow-y: auto;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .chat-container {
        width: 100%;
        max-width: min(95vw, 500px);
        height: 220px;
    }

    .canvas-controls-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}