/* True Size (/true-size): the Mercator map fills the focus stage; under the toolbar the mode, the example, the field,
   the countries on the map as chips, and the quiz's two answers. Tiles and buttons come from the app kit; the canvas and
   its zoom buttons from css/apps/atlas-map.css. */

.true-size-stage {
    min-height: 520px;
}

/* The map fills the stage edge to edge: no frame of its own. */
.true-size-wrap {
    min-height: 420px;
}

.true-size-wrap .atlas-map.true-size-map {
    border-radius: 0;
    box-shadow: none;
    background: #2c6ead;
    cursor: grab;
}

.true-size-wrap .atlas-map.true-size-map:active {
    cursor: grabbing;
}

.true-size-entry {
    display: flex;
    gap: var(--ak-space-2);
}

.true-size-entry .ak-field {
    flex: 1 1 auto;
    min-width: 0;
}

.true-size-entry .ak-btn {
    flex: none;
}

/* The countries on the map: a chip each in its colour, to select it or take it off. */
.true-size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.true-size-chip {
    display: inline-flex;
    align-items: stretch;
    border-radius: 999px;
    border: 2px solid var(--ts-chip);
    background: color-mix(in srgb, var(--ts-chip) 14%, var(--ak-panel));
    overflow: hidden;
}

.true-size-chip.is-selected {
    background: color-mix(in srgb, var(--ts-chip) 32%, var(--ak-panel));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ts-chip) 35%, transparent);
}

.true-size-chip button {
    border: 0;
    background: transparent;
    color: var(--ak-text);
    font: inherit;
    font-size: var(--ak-fs-sm);
    cursor: pointer;
}

.true-size-chip-name {
    padding: 4px 4px 4px 12px;
    font-weight: 700;
}

.true-size-chip-remove {
    padding: 0 10px 0 6px;
    font-size: 1.1rem !important;
    line-height: 1;
    color: var(--ak-muted) !important;
}

.true-size-chip-remove:hover,
.true-size-chip-name:hover {
    color: var(--ak-text) !important;
}

.true-size-chip button:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: -2px;
}

/* The quiz's answers: each in the colour of its country on the map (darker, for the white label). */
.ak-app .true-size-pick {
    --ak-btn-fill: color-mix(in srgb, var(--ts-pick, #2563eb) 78%, #000);
    font-weight: 700;
    min-height: 3rem;
    white-space: normal;
}

/* Answered: the bigger one stays bright with a ring and a check mark, the other fades. */
.ak-app .true-size-pick.is-right:disabled {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--ak-success);
}

.true-size-status {
    margin: 0;
    color: var(--ak-text);
    font-weight: 600;
    font-size: var(--ak-fs-sm);
    overflow-wrap: anywhere;
}

.true-size-status[data-tone="good"] {
    color: var(--ak-success);
}

.true-size-status[data-tone="bad"] {
    color: var(--ak-danger);
}

@media (max-width: 800px) {
    .true-size-stage {
        min-height: 0;
    }

    .true-size-wrap {
        min-height: 300px;
    }
}

/* The panel: each area on one line, the factor under it. */
.true-size-landing-app .ak-stats--float .ak-stat-value {
    white-space: nowrap;
}

.true-size-landing-app .ak-stats--float .ak-stat-hint {
    display: block;
    margin-inline-start: 0;
}
