/* Caesar cipher (/caesar-cipher): the text and the result beside the cipher wheel (stacked on narrow screens), the
   ranked table with its best row and short previews. Tiles, panels, editors, the chart and the buttons come from the
   app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.cc-landing-app .cc-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--ak-space-3, 1rem);
    align-items: center;
}

@media (max-width: 860px) {
    .cc-landing-app .cc-main { grid-template-columns: minmax(0, 1fr); }
}

.cc-landing-app .cc-texts {
    display: flex;
    flex-direction: column;
    gap: var(--ak-space-2, 0.5rem);
    min-width: 0;
}

.cc-landing-app .cc-text { min-height: 6.5rem; resize: vertical; }

.cc-landing-app .cc-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ak-space-2, 0.5rem);
}

.cc-landing-app .cc-wheel {
    display: block;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    cursor: grab;
    touch-action: none;
    border-radius: 50%;
}

.cc-landing-app .cc-wheel:active { cursor: grabbing; }
.cc-landing-app .cc-wheel:focus-visible { outline: 2px solid var(--ak-accent); outline-offset: 4px; }

.cc-landing-app .cc-table-wrap { max-height: 22rem; overflow-y: auto; }
.cc-landing-app .cc-table tr.cc-best td,
.cc-landing-app .cc-table tr.cc-best th { background: color-mix(in srgb, var(--ak-success) 12%, transparent); }

.cc-landing-app .cc-preview {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--ak-fs-xs, 0.8rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    width: 60%;
}

.cc-landing-app .cc-pick {
    min-width: 2rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-sm, 6px);
    background: var(--ak-field);
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cc-landing-app .cc-pick:hover { border-color: var(--ak-accent); color: var(--ak-accent); }
