/* Reaction rates (/reaction-rates): the box and its four charts in one picture on a focus stage with the five tiles in the
   floating panel beside it (docs/app-kit.md). Tiles, panels and buttons come from the app kit (css/app-kit, docs/app-kit.md).
   Loaded only on this app's page (StylePaths). */

.rr-landing-app .rr-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag the energy profile or the distribution to set Ea, tap the solid to break it up; the script sets the cursor. */
.rr-landing-app .rr-canvas {
    display: block;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 10;
    border-radius: var(--ak-radius, 8px);
    background: #e9eef5;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

:root[data-theme="dark"] .rr-landing-app .rr-canvas,
.rr-landing-app[data-theme="dark"] .rr-canvas {
    background: #111827;
}

/* Phones: the focus stage makes the picture a square; the box goes on top and the charts under it (Charts picks one to see
   it larger). */
@media (max-width: 640px) {
    .rr-landing-app .rr-canvas {
        aspect-ratio: 1 / 1;
    }
}

/* Rows that do not apply (B molecules for 2A → A₂ and a solid, the pieces without a solid, Ea with the catalyst off). */
.rr-landing-app .ak-row[hidden] {
    display: none;
}
