/* Goldbach conjecture tester (/goldbach-conjecture-tester): the list of splits as small buttons, and the table of the
   primes tried, which scrolls when the search was long. Tiles, panels, charts, fields and the theme come from the app
   kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.gb-landing-app .gb-pairs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 13rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.gb-landing-app .gb-pair {
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-sm, 6px);
    background: var(--ak-field);
    color: var(--ak-text);
    font: inherit;
    font-size: var(--ak-fs-sm);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.gb-landing-app .gb-pair:hover { background: var(--ak-hover); }

.gb-landing-app .gb-pair.is-on {
    border-color: var(--ak-series-2);
    background: color-mix(in srgb, var(--ak-series-2) 18%, var(--ak-field));
    font-weight: 600;
}

/* The search can take over a thousand tries (the hard cases): the table scrolls, and opens at the hit. */
.gb-landing-app .gb-tries-wrap {
    max-height: 18rem;
    overflow-y: auto;
}

.gb-landing-app .gb-tries td { font-variant-numeric: tabular-nums; }
.gb-landing-app .gb-tries td:nth-child(2) { white-space: nowrap; }
