/* Steganography (/steganography): the photos (or their bit planes, the difference, the charts) fill a focus stage, with the
   tiles in the floating panel beside them (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). */

.sg-landing-app .sg-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: manipulation;
}

.sg-landing-app .sg-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* Phones: the cover above the stego picture needs a taller picture than the kit's square. */
@media (max-width: 960px) {
    .sg-landing-app.ak-app > .ak-stage.ak-stage--focus > .ak-panel.sg-main {
        height: min(140dvw, max(100dvw, calc(100dvh - var(--seo-chrome-height, 4rem) - 11rem)));
    }

    body .filter-landing-app.sg-landing-app > .filter-landing-stage.ak-stage--focus {
        max-height: max(100dvw, calc(100dvh - var(--seo-chrome-height, 4rem) - 11rem)) !important;
    }
}

/* The message and what is read back: long texts wrap inside the box (never wider than the panel). */
.sg-landing-app .sg-text,
.sg-landing-app .sg-output {
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.sg-landing-app .sg-output {
    color: #1d4ed8;
}

:root[data-theme="dark"] .sg-landing-app .sg-output,
.sg-landing-app[data-theme="dark"] .sg-output {
    color: #93c5fd;
}

.sg-landing-app .sg-warning {
    margin: 0;
}
