/* INK-CF-ADOPT FR-6 — works showcase inside an article.
 *
 * Separate file on purpose: article.css is carrying another session's uncommitted work, and
 * splicing into it would tangle two unrelated changes in one diff.
 *
 * Everything here uses the existing design-system tokens, so the block follows the site's
 * theme instead of carrying its own palette. Own `article-showcase` namespace — a generic
 * class here would eventually be swept up by someone else's cleanup, which is exactly how the
 * translations panel lost both of its tabs.
 */

.article-showcase {
    margin: var(--space-xl, 40px) 0 var(--space-lg, 28px);
    padding-top: var(--space-lg, 28px);
    border-top: 1px solid var(--color-border, #2a2a2a);
}

.article-showcase__title {
    font-family: var(--article-font-display, inherit);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 var(--space-md, 16px);
    color: var(--color-text, #f2f2f2);
}

/* One row that scrolls sideways on a phone and never pushes the page wider than the viewport.
   Six cards is a comfortable desktop row; below that the strip simply keeps scrolling. */
.article-showcase__strip {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--space-xs, 8px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 1fr);
    gap: var(--space-sm, 12px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .article-showcase__strip {
        grid-auto-flow: row;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-columns: auto;
        overflow-x: visible;
    }
}

.article-showcase__cell {
    scroll-snap-align: start;
    min-width: 0;
}

.article-showcase__link {
    display: block;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    background: var(--color-bg-card, #1a1a1a);
    transition: transform var(--transition-fast, 0.18s) ease;
}

.article-showcase__link:hover,
.article-showcase__link:focus-visible {
    transform: translateY(-2px);
}

.article-showcase__link:focus-visible {
    outline: 2px solid var(--color-brand-accent, #f0b429);
    outline-offset: 2px;
}

.article-showcase__img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.article-showcase__more {
    display: inline-block;
    margin-top: var(--space-md, 16px);
    font-family: var(--article-font-ui, inherit);
    font-size: 0.95rem;
    color: var(--color-brand-accent, #f0b429);
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .article-showcase__link {
        transition: none;
    }
    .article-showcase__link:hover,
    .article-showcase__link:focus-visible {
        transform: none;
    }
}
