/* The dynamic programming apps (Science > Dynamic Programming: /dp-fibonacci, /coin-change ...): the table board,
   the step slider and the playback row. The canvas gets its height from the table it draws (filter-engines/dp.js).
   Tiles, the callout, the legend, the buttons and the fields come from the app kit.
   Loaded only on their pages (Views/SeoLanding/_DpApp.cshtml). */

.dp-app .dp-board {
    border-radius: var(--ak-radius-sm);
}

.dp-app .dp-board:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: 3px;
}

.dp-app .dp-chart {
    height: 360px;
}

.dp-app .dp-legend {
    margin-bottom: var(--ak-space-2);
}

.dp-app .dp-timeline {
    display: flex;
    align-items: center;
    gap: var(--ak-space-3);
    margin-top: var(--ak-space-2);
}

.dp-app .dp-scrub {
    flex: 1 1 auto;
    min-width: 0;
}

.dp-app .dp-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;
}

.dp-app .dp-actions {
    margin-top: var(--ak-space-2);
}

.dp-app .dp-say {
    min-height: 3.1rem;
}

/* A whole-number slider: the current value sits on the label line, the track under it. */
.dp-app .dp-slider-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.dp-app .dp-slider-value {
    margin: 0;
    color: var(--ak-text);
    font-size: var(--ak-fs-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

@media (max-width: 560px) {
    .dp-app .dp-step-of {
        min-width: 0;
    }
}
