/*
 * The row of topics over the blog's lists (resources/views/blog/partials/
 * topics.blade.php, 9 Nov 2026): one line of chips, the topic being shown
 * filled, scrolling sideways where it is wider than the page. The fade at an
 * edge that has more is public/js/blog-topics.js (`fade-start`/`fade-end`).
 * Only the site's own tokens, so both themes follow.
 */

.blog-topics { margin: 0 0 36px; }
.blog-topics ul { list-style: none; margin: 0; padding: 2px 2px 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.blog-topics ul::-webkit-scrollbar { display: none; }
.blog-topics li { flex: none; scroll-snap-align: start; }
.blog-topics a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.blog-topics a:hover { border-color: var(--primary); color: var(--primary-text); }
.blog-topics a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.blog-topics a[aria-current] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); font-weight: 600; }

.blog-topics.fade-end ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent); }
.blog-topics.fade-start ul { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 96px), transparent); }
.blog-topics.fade-start.fade-end ul { -webkit-mask-image: linear-gradient(to right, transparent, #000 96px, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(to right, transparent, #000 96px, #000 calc(100% - 96px), transparent); }
