/* A choice between a few views, one of them current: a tray with the current one raised out of it. */
.segmented {
    display: inline-flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    background-color: var(--color-secondary);
}

.segmented--full-width {
    display: flex;
}

.segmented__item {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: calc(var(--radius-sm) - var(--spacing-xs) / 2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-on-surface-muted);
    text-decoration: none;
    white-space: nowrap;
}

.segmented__item:hover {
    color: var(--color-on-surface);
}

.segmented__item[aria-current] {
    color: var(--color-on-surface);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.segmented__icon {
    width: 1rem;
    height: 1rem;
}
