/* Gradient Descent (/gradient-descent): the loss surface (with its chart beside or under it) fills a focus stage, with the four
   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). */

/* Drag the start point or click the map to move it; the script sets the cursor. No scrolling or zooming while a finger drags. */
.gd-landing-app .gd-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

.gd-landing-app .gd-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* Each optimiser's checkbox carries a swatch of its path's colour. */
.gd-landing-app .gd-opt > span::before {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-inline-end: 0.45em;
    border-radius: 2px;
    vertical-align: -0.08em;
    background: var(--gd-opt);
    box-shadow: 0 0 0 1px rgba(8, 12, 28, 0.55);
}

/* Phones: a square picture (the map above the chart). */
@media (max-width: 640px) {
    .gd-landing-app .gd-canvas {
        aspect-ratio: 1 / 1;
    }
}
