/*
 * @author  Agence Dn'D <contact@dnd.fr>
 * @license https://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @link    https://www.dnd.fr/
 */

.article {
    .pagination-row-tabular {
        margin-block-start: var(--gutter-xl);

        @media (min-width: 768px) {
            margin-block-start: var(--gutter-3xl);
        }

        .back a,
        .prev > a > span:not(.icon--small),
        .next > a > span:not(.icon--small) {
            position: relative;
            font-weight: var(--font-weight-500);
            text-decoration: unset;

            &::after {
                position: absolute;
                bottom: -1px;
                left: 0;
                z-index: 1;
                transition:
                    right 0.3s,
                    width 0.3s;
                background-color: currentColor;
                width: 0;
                height: 1px;
                content: "";
            }

            &:hover {
                color: var(--color-neutral-600);
                text-decoration: unset;

                &::after {
                    right: 0;
                    width: 100%;
                }
            }
        }
    }
}
