/* Mobile category bar (below 1000px). Colours use Blocksy variables for dark mode. */
.sn-catbar {
  position: relative;
  background: var(--theme-palette-color-8);
  border-bottom: 1px solid var(--theme-border-color, rgba(128, 128, 128, 0.25));
}
.sn-catbar::after { /* soft fade on the right edge: scroll hint */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--theme-palette-color-8));
}
.sn-catbar__list {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 24px 0 8px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sn-catbar__list::-webkit-scrollbar { display: none; }
.sn-catbar__item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.sn-catbar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--theme-text-color);
  border-bottom: 3px solid transparent;
}
.sn-catbar__link:hover { color: var(--theme-palette-color-1); }
.sn-catbar__link:focus-visible { outline: 2px solid var(--theme-palette-color-1); outline-offset: -2px; }
.sn-catbar__link.is-current {
  font-weight: 700;
  color: var(--theme-palette-color-1);
  border-bottom-color: var(--theme-palette-color-1);
}
@media (min-width: 1000px) {
  .sn-catbar { display: none; }
}
