.categories-page {
  width: 100%;
  padding: 0.85rem 0 2rem;
}

.categories-hero h1 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.categories-hero .lede {
  max-width: 34rem;
  margin: 0 0 1.1rem;
}

.categories-block {
  margin-bottom: 1.25rem;
}

.categories-block h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.4rem 0.5rem;
}

.category-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.category-chip:hover {
  border-color: rgba(15, 122, 95, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

.category-chip strong {
  font-size: 0.85rem;
  line-height: 1.25;
  word-break: break-word;
}

.category-chip span {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
