/* The switch above the demo. The demo iframes hold 28px of air above the window at full size, scaling with their
   width; the margin leaves about 22px of visible gap. It sits above the iframe so the overlap never takes its clicks. */
.apps {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: max(-6px, calc(22px - 2.37vw));
    font-size: 14.5px;
    color: var(--color-on-surface-muted);
}

.apps__title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-on-surface-muted);
    text-wrap: balance;
    text-align: center;
}

/* Without JavaScript there is only the still of the Slack demo to show. */
.apps__tabs {
    display: none;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgb(20 20 20 / 0.06);
}

.js-enabled .apps__tabs {
    display: inline-flex;
}

.apps__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font: 500 14.5px var(--font-family);
    color: var(--color-on-surface-muted);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s var(--ease-press);
}

.apps__item:active {
    transform: scale(0.97);
}

.apps__item[aria-selected="true"] {
    color: var(--color-on-surface);
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgb(20 20 20 / 0.12);
}

.apps__logo {
    display: block;
    width: 15px;
    height: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .apps__item:hover {
        color: var(--color-on-surface);
    }
}
