/* Distance Metrics (/distance-metrics): the picture (the plane, the vectors, the texts, the Venn diagram or the globe, with the
   Formula card beside it) fills the focus stage, with the tiles in the floating panel beside it. Tiles, panels and buttons come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.dm-landing-app .dm-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag A and B (or a city on the globe); the script sets the cursor over them. */
.dm-landing-app .dm-canvas {
    display: block;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 10;
    border-radius: var(--ak-radius, 8px);
    background: #f8fafc;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

:root[data-theme="dark"] .dm-landing-app .dm-canvas,
.dm-landing-app[data-theme="dark"] .dm-canvas {
    background: #0d1426;
}

/* Phones: a taller picture, the Formula card under the drawing. */
@media (max-width: 640px) {
    .dm-landing-app .dm-canvas {
        aspect-ratio: 3 / 4;
    }
}

/* The sections and rows the metric does not use. */
.dm-landing-app app-section[hidden],
.dm-landing-app .ak-row[hidden] {
    display: none;
}
