.article-nav,
.hy-prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding-top: 26px;
    border-top: 1px solid #e2e8f0;
}

.article-nav .nav-item,
.hy-prev-next .hy-pn-item {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    min-height: 116px;
    padding: 17px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.article-nav .nav-item:focus-within,
.hy-prev-next .hy-pn-item:focus-within {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
}

.article-nav .next-article {
    text-align: right;
}

.article-nav .nav-label,
.hy-prev-next .hy-pn-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.article-nav .next-article .nav-label {
    justify-content: flex-end;
}

.article-nav .nav-label i,
.hy-prev-next .hy-pn-label i {
    color: #2563eb;
}

.article-nav .nav-link,
.hy-prev-next .hy-pn-link {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
}

.article-nav .nav-link a,
.hy-prev-next .hy-pn-link a {
    display: block;
    min-height: 44px;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    text-decoration: none;
}

.article-nav .nav-link a:hover,
.hy-prev-next .hy-pn-link a:hover {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-nav a:focus-visible,
.hy-prev-next a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 3px;
}

.article-nav .article-nav-empty,
.hy-prev-next .article-nav-empty {
    display: block;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.hy-prev-next {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 28px 0 20px;
    padding-top: 16px;
}

.hy-prev-next .hy-pn-item {
    min-height: 0;
    padding: 14px 16px;
}

.hy-prev-next .hy-pn-label {
    margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .article-nav .nav-item,
    .hy-prev-next .hy-pn-item {
        transition: none;
    }
}

@media (max-width: 640px) {
    .article-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-nav .next-article {
        text-align: left;
    }

    .article-nav .next-article .nav-label {
        justify-content: flex-start;
    }
}
