.categories.with-tool-entry {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 20px 12px;
  overflow: visible;
  scroll-snap-type: none;
}
.categories .tool-category-link {
  display: grid;
  grid-template-rows: 96px auto;
  justify-items: center;
  align-items: start;
  min-width: 0;
  border-radius: 16px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}
.tool-category-stage {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 96px;
}
.tool-category-link img {
  display: block;
  width: min(100%, 78px);
  height: 78px;
  object-fit: contain;
  animation: float 4.8s ease-in-out -.9s infinite;
}
.tool-category-link > span:last-child {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.tool-category-link:hover > span:last-child { text-decoration: underline; }
.tool-category-link:focus-visible {
  outline: 2px solid var(--brand-green, #4c6817);
  outline-offset: 4px;
}
.test-dark .tool-category-link:focus-visible {
  outline-color: var(--brand-accent, #c6f332);
}
@media (max-width: 1160px) {
  .categories.with-tool-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .categories.with-tool-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.paused .tool-category-link img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tool-category-link img { animation: none; }
}
