/* Traveling salesman (/traveling-salesman): the map beside the buttons and the table of methods (stacked on narrow
   screens), the thick swatch of the shortest tour, and the method buttons in the table. Tiles, panels, the table and
   the buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.ts-landing-app .ts-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--ak-space-3, 1rem);
    align-items: start;
}

@media (max-width: 860px) {
    .ts-landing-app .ts-main { grid-template-columns: minmax(0, 1fr); }
}

.ts-landing-app .ts-map-wrap,
.ts-landing-app .ts-side {
    display: flex;
    flex-direction: column;
    gap: var(--ak-space-2, 0.5rem);
    min-width: 0;
}

.ts-landing-app .ts-map {
    display: block;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    cursor: crosshair;
    touch-action: manipulation;
}

.ts-landing-app .ts-legend { margin: 0; justify-content: center; }
.ts-landing-app .ts-status { margin: 0; min-height: 1.3em; text-align: center; }

.ts-landing-app .ak-swatch.ts-thick {
    height: 0.4rem;
    border-radius: 0.2rem;
    opacity: 0.5;
}

.ts-landing-app .ts-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ak-space-2, 0.5rem);
}

.ts-landing-app .ts-pick {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.ts-landing-app .ts-pick:hover { color: var(--ak-accent); text-decoration: underline; }

.ts-landing-app .ts-pick:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
