/* Bézier curves (/bezier-curves): the curve, its construction and the Bernstein basis fill a focus stage, with the five tiles in the
   floating panel beside them (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 control points, and along the curve or the basis graph to set t; the script sets the cursor. No scrolling or zooming
   while a finger drags. */
.bz-landing-app .bz-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.bz-landing-app .bz-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* The tiles: the degree in the curve's rose, t in the violet of the tangent. */
.bz-landing-app .bz-stat-degree {
    --ak-stat-color: #e11d48;
}

.bz-landing-app .bz-stat-t {
    --ak-stat-color: #7c3aed;
}

/* Rows that only a path has (Closed path, Continuity) are hidden for a single curve. */
.bz-landing-app .ak-row[hidden] {
    display: none;
}

/* Phones: a square picture (the curve above the basis graph). */
@media (max-width: 640px) {
    .bz-landing-app .bz-canvas {
        aspect-ratio: 1 / 1;
    }
}
