/* Delnik: readable article cards, with native links and full titles. */
.delnik-article-navigation {
    --delnik-nav-accent: #282828;
    --delnik-nav-ink: #292929;
    clear: both;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid #e4e4e4;
    font-family: inherit;
}
.delnik-article-navigation *,
.delnik-article-navigation *::before,
.delnik-article-navigation *::after {
    box-sizing: border-box;
}
.delnik-article-navigation .delnik-article-navigation__category {
    margin: 0 0 1rem;
    padding: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.delnik-article-navigation__category a {
    color: var(--delnik-nav-accent);
    font-weight: 700;
    text-decoration: none;
}
.delnik-article-navigation__category a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.delnik-article-navigation__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    align-items: stretch;
}
.delnik-article-navigation a[data-direction] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    min-height: 160px;
    max-width: 100%;
    padding: 22px;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #f8f8f8;
    color: var(--delnik-nav-ink);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 2px 5px rgb(0 0 0 / 3%);
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.delnik-article-navigation a[data-direction]:only-child {
    grid-column: 1 / -1;
}
.delnik-article-navigation__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.delnik-article-navigation__label {
    display: block;
    min-width: 0;
    color: #616161;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .07em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.delnik-article-navigation__arrow {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaeaea;
    color: var(--delnik-nav-accent);
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
.delnik-article-navigation__title {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
}
.delnik-article-navigation a[data-direction]:hover {
    border-color: var(--delnik-nav-accent);
    background: #fff;
    box-shadow: 0 5px 15px rgb(0 0 0 / 7%);
}
.delnik-article-navigation a[data-direction]:focus-visible,
.delnik-article-navigation__category a:focus-visible {
    outline: 3px solid var(--delnik-nav-accent);
    outline-offset: 4px;
}
.delnik-article-navigation .delnik-article-navigation__empty {
    margin: .75rem 0 0;
    padding: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .delnik-article-navigation__links {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .delnik-article-navigation a[data-direction] {
        min-height: 140px;
        gap: 12px;
        padding: 18px;
    }
    .delnik-article-navigation__title {
        font-size: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .delnik-article-navigation a[data-direction] { transition: none; }
}

/* One centered shape in both badges; direction changes only by rotation. */
.delnik-article-navigation__arrow svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}
.delnik-article-navigation a[data-direction="next"] .delnik-article-navigation__arrow svg {
    transform: rotate(180deg);
}
