/* Convex hull algorithms (/convex-hull): the field of points (with the chart beside or under it) fills a focus stage, with the five
   tiles in the floating panel beside it (docs/app-kit.md). Tiles, panels and buttons come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this app's page (StylePaths). */

/* Click to add points, drag them; the script sets the cursor. No scrolling or zooming while a finger drags. */
.ch-landing-app .ch-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

.ch-landing-app .ch-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* The algorithm's tile in its colour (the script sets --ch-algo). */
.ch-landing-app .ch-stat-algo {
    --ak-stat-color: var(--ch-algo, #2563eb);
}

/* Phones: a square picture (the field above the caption and the chart). */
@media (max-width: 640px) {
    .ch-landing-app .ch-canvas {
        aspect-ratio: 1 / 1;
    }
}
