/* Pascal's triangle (/pascal-triangle): the canvas, the legend, the explanation with its formula and the buttons.
   Tiles, panels, callouts, legends and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on
   this app's page (StylePaths). */

.pt-landing-app .pt-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ak-space-2, 0.5rem);
}

.pt-landing-app .pt-canvas {
    display: block;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 8 / 7;
    border-radius: var(--ak-radius, 10px);
}

.pt-landing-app .pt-canvas:focus-visible { outline: 2px solid var(--ak-accent); outline-offset: 2px; }

.pt-landing-app .pt-legend { justify-content: center; }

.pt-landing-app .pt-explain {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    max-width: 720px;
}

.pt-landing-app .pt-explain .ak-callout { margin: 0; line-height: 1.5; }

.pt-landing-app .pt-formula {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--ak-fs-sm, 0.9rem);
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: center;
}

.pt-landing-app .pt-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ak-space-2, 0.5rem);
    width: 100%;
    max-width: 720px;
}
