/* Colour Mixing (/color-mixing-rgb-cmy): the 4:3 picture (square on phones) with the stage of circles above the spectrum and
   the cones, and the swatch in the colour tile. Tiles, panels and buttons come from the app kit (css/app-kit, docs/app-kit.md).
   Loaded only on this app's page (StylePaths). */

.cm-landing-app .cm-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag the circles and the probe; the script sets the cursor. No scrolling or zooming while a finger drags. */
.cm-landing-app .cm-canvas {
    display: block;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 4 / 3;
    border-radius: var(--ak-radius, 8px);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.cm-landing-app .cm-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: 2px;
}

/* Phones: a squarer picture, so the circles keep a size a finger can grab. */
@media (max-width: 640px) {
    .cm-landing-app .cm-canvas {
        aspect-ratio: 1 / 1;
    }
}

/* The colour at the probe, beside the tile's name. */
.cm-landing-app .cm-swatch {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-inline-end: 0.35em;
    vertical-align: -0.12em;
    border-radius: 0.2em;
    border: 1px solid color-mix(in srgb, var(--ak-text, #0f172a) 30%, transparent);
    background: #ffffff;
}

.cm-landing-app .cm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
