.wp-block-post.page .wp-block-post-link {
    overflow: visible;
    transform: translateY(0);
    transition: transform 0.25s ease-out;
}

.wp-block-post.page .wp-block-post-link__link:focus,
.wp-block-post.page .wp-block-post-link:has(.wp-block-post-link__link:focus) {
    outline: none;
}

.wp-block-post.page .wp-block-post-link:has(.wp-block-post-link__link:focus),
.wp-block-post.page .wp-block-post-link:has(.wp-block-post-link__link:hover) {
    transform: translate(0.4em, -0.4em);
}

.wp-block-post.page .wp-block-post-link:has(.wp-block-post-link__link:active) {
    transform: translate(0, 0);
    transition-duration: 0.1s;
}

.wp-block-post.page > .wp-block-post-link::after,
.wp-block-post.page > .wp-block-post-link::before {
    border-radius: inherit;
    content: '';
    inset: 0;
    pointer-events: auto;
    position: absolute;
    z-index: -1;
}

.wp-block-post.page > .wp-block-post-link::after {
    background-color: inherit;
}

.wp-block-post.page > .wp-block-post-link::before {
    background-color: var(--wp--preset--color--grey);
    inset: 1px;
    transition: transform 0.25s ease-out;
    transform: translate(0, 0);
    z-index: -1;
}

.wp-block-post.page > .wp-block-post-link:has(.wp-block-post-link__link:focus)::before,
.wp-block-post.page > .wp-block-post-link:has(.wp-block-post-link__link:hover)::before {
    transform: translate(-0.4em, 0.4em);
}

.wp-block-post.page > .wp-block-post-link:has(.wp-block-post-link__link:active)::before {
    transition-duration: 16ms;
    transform: translate(0, 0);
}
