/* Lyapunov Fractal (/lyapunov-fractal): the square picture with its zoom buttons in a corner, the colour scale, the
   status line with the progress bar, and the pairs of fields. Tiles, panels, fields, the chart and the theme come from
   the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.ly-landing-app .ly-main {
    display: flex;
    flex-direction: column;
    gap: var(--ak-space-2);
}

.ly-landing-app .ly-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: min(100%, 72vh);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--ak-radius-sm);
}

/* The canvas takes every pointer: a click marks a point, drag moves, wheel and pinch zoom. */
.ly-landing-app .ly-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.ly-landing-app .ly-canvas:active { cursor: grabbing; }

.ly-landing-app .ly-canvas:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: -2px;
}

.ly-landing-app .ly-zoom {
    position: absolute;
    inset-block-start: var(--ak-space-2);
    inset-inline-end: var(--ak-space-2);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* a and b are mathematical names, not words: italic, and never upper case. */
.ly-landing-app .ly-symbol {
    font-style: italic;
    text-transform: none;
}

.ly-landing-app .ly-scale {
    display: grid;
    grid-template-columns: auto minmax(4rem, 22rem) auto;
    justify-content: center;
    align-items: center;
    gap: var(--ak-space-2);
    color: var(--ak-muted);
    font-size: var(--ak-fs-sm);
}

.ly-landing-app .ly-scale-bar {
    height: 0.75rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ak-text) 25%, transparent);
}

.ly-landing-app .ly-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(6rem, 14rem);
    align-items: center;
    gap: var(--ak-space-3, 1rem);
    min-height: 1.5rem;
}

.ly-landing-app .ly-status {
    margin: 0;
    color: var(--ak-muted);
    font-size: var(--ak-fs-sm);
    font-variant-numeric: tabular-nums;
}

.ly-landing-app .ly-progress[hidden] { display: none; }

.ly-landing-app .ly-legend { margin: 0; }

.ly-landing-app .ly-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ak-space-2);
}

.ly-landing-app .ly-pair > .ak-row { min-width: 0; }

.ly-landing-app .ly-sequence { text-transform: uppercase; }

@media (max-width: 480px) {
    .ly-landing-app .ly-scale { grid-template-columns: auto minmax(2rem, 1fr) auto; }
}
