/* Big-O Race (/big-o-race): the picture fills the focus stage (the shafts of floors with the chart beside them). Tiles,
   panels and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.bor-landing-app .bor-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag along the chart to scrub (the script sets an ew-resize cursor over it). */
.bor-landing-app .bor-canvas {
    display: block;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 10;
    border-radius: var(--ak-radius, 8px);
    touch-action: pan-y;
}

/* The class chips: a checkbox in a pill, filled with its class colour when on, dashed when off (as on Big-O Comparison). */
.bor-landing-app .bor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bor-landing-app .ak-chip.bor-chip {
    position: relative;
    border-color: var(--bor-chip);
    background: transparent;
    color: var(--ak-muted);
    border-style: dashed;
    white-space: nowrap;
    user-select: none;
}

.bor-landing-app .ak-chip.bor-chip:hover {
    border-color: var(--bor-chip);
    background: color-mix(in srgb, var(--bor-chip) 12%, transparent);
}

.bor-landing-app .ak-chip.bor-chip:has(input:checked) {
    border-style: solid;
    color: var(--ak-text);
    background: color-mix(in srgb, var(--bor-chip) 18%, var(--ak-panel));
}

.bor-landing-app .ak-chip.bor-chip:focus-within {
    outline: 2px solid var(--ak-accent);
    outline-offset: 1px;
}

.bor-landing-app .bor-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.bor-landing-app .bor-chip-dot {
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid var(--bor-chip);
    border-radius: 50%;
    flex: none;
}

.bor-landing-app .bor-chip:has(input:checked) .bor-chip-dot {
    background: var(--bor-chip);
}

/* Phones: a taller picture, the chart under the shafts. */
@media (max-width: 640px) {
    .bor-landing-app .bor-canvas {
        aspect-ratio: 3 / 4;
    }
}
