/* Two envelopes paradox (/two-envelopes-paradox): the pair of envelopes. Tiles, the callout, the chart, the table
   and the buttons come from the app kit. Loaded only on this page. */

.te-landing-app .te-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2.25rem;
    margin: 0.35rem 0 0.85rem;
}

.te-landing-app .te-env {
    position: relative;
    width: 10.5rem;
    height: 7.15rem;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: color-mix(in srgb, var(--ak-field) 78%, var(--ak-accent));
    color: var(--ak-text);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ak-accent) 28%, var(--ak-border));
    cursor: pointer;
}

.te-landing-app .te-env.is-yours {
    box-shadow: inset 0 0 0 3px var(--ak-accent);
}

.te-landing-app .te-env:focus-visible {
    outline: 2px solid var(--ak-accent);
    outline-offset: 3px;
}

.te-landing-app .te-flap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 46%;
    background: color-mix(in srgb, var(--ak-panel) 55%, var(--ak-accent));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-radius: 0.4rem 0.4rem 0 0;
    pointer-events: none;
}

.te-landing-app .te-env.is-open .te-flap {
    height: 28%;
    opacity: 0.85;
}

.te-landing-app .te-amt {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 1.5rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.te-landing-app .te-badge {
    position: absolute;
    left: 50%;
    bottom: 0.28rem;
    transform: translateX(-50%);
    color: var(--ak-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.te-landing-app .te-actions {
    margin-bottom: 0.9rem;
}

.te-landing-app .te-legend {
    margin-bottom: 0.45rem;
}

.te-landing-app .te-swatch-dash {
    background: repeating-linear-gradient(90deg, var(--ak-swatch) 0 5px, transparent 5px 8px);
}

.te-landing-app .te-chart {
    min-height: 200px;
}

/* Three columns on a phone: the headings and strategy names wrap instead of pushing the last column out of view. */
.te-landing-app .te-table th {
    white-space: normal;
}

.te-landing-app .te-sim-note {
    margin: 0.65rem 0 0;
    color: var(--ak-muted);
    font-size: var(--ak-fs-sm);
}

.te-landing-app .te-sim-note:empty {
    display: none;
}

@media (max-width: 640px) {
    .te-landing-app .te-env {
        width: 8.4rem;
        height: 5.8rem;
    }

    .te-landing-app .te-amt {
        bottom: 1.3rem;
        font-size: 1.2rem;
    }
}
