/* Half-life calculator (/half-life-calculator): only what is the app's own, the chart's legend and the written-out
   calculation. Panels, tiles, fields, buttons, the table, the chart and the colours come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this app's page (StylePaths). */

/* The legend: the curve, the half-life points and the user's point, the time axis's unit at the end. */
.hl-landing-app .hl-legend {
    margin-bottom: 0.5rem;
}

.hl-landing-app .hl-swatch-point {
    --ak-swatch: var(--ak-text);
    box-shadow: 0 0 0 2px var(--ak-panel);
}

.hl-landing-app .hl-axis {
    margin-inline-start: auto;
    font-variant-numeric: tabular-nums;
}

/* The calculation under the curve: the formula, then the numbers, left to right in every language (it is maths). */
.hl-landing-app .hl-calc {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ak-border);
}

.hl-landing-app .hl-formula {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    font-size: var(--ak-fs-sm);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.hl-landing-app .hl-formula-line:first-child {
    color: var(--ak-muted);
}

.hl-landing-app .hl-formula sup {
    font-size: 0.75em;
    line-height: 0;
}
