/* The graph apps (Science > Graph Algorithms: /breadth-first-search ...): the graph board, the step slider and the
   playback row. Tiles, the callout, the legend, the buttons and the fields come from the app kit.
   Loaded only on their pages (Views/SeoLanding/_GraphApp.cshtml). */

.graph-app .graph-board {
    border-radius: var(--ak-radius-sm);
}

.graph-app .graph-board:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: 3px;
}

.graph-app .graph-chart {
    height: clamp(380px, 56vw, 560px);
}

.graph-app .graph-legend {
    margin-bottom: var(--ak-space-2);
}

.graph-app .graph-timeline {
    display: flex;
    align-items: center;
    gap: var(--ak-space-3);
    margin-top: var(--ak-space-2);
}

.graph-app .graph-scrub {
    flex: 1 1 auto;
    min-width: 0;
}

.graph-app .graph-step-of {
    flex: none;
    min-width: 7.5rem;
    color: var(--ak-muted);
    font-size: var(--ak-fs-sm);
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.graph-app .graph-actions {
    margin-top: var(--ak-space-2);
}

.graph-app .graph-say {
    min-height: 3.1rem;
}

/* A board with a panel beside the graph (Floyd–Warshall's table); under it on narrow screens, so taller there. */
@media (max-width: 639px) {
    .graph-app--tall .graph-chart {
        height: clamp(560px, 150vw, 760px);
    }
}

@media (max-width: 560px) {
    .graph-app .graph-step-of {
        min-width: 0;
    }
}
