.home-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #c4cad2;
  border-radius: 999px;
  background: #fff;
  color: #29313d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.category-pill-count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.category-pill:hover {
  border-color: #3b82f6;
  background: #edf3ff;
}
.category-pill[aria-current="page"] {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.category-pill[aria-current="page"]:hover { background: #2563eb; border-color: #2563eb; }
.category-pill:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}
.home-category-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
}
.home-category-empty h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 16px;
}
.home-category-empty a { color: #2454c6; }
.home-category-heading { margin: 4px 0 24px; }
.home-category-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  font-weight: 850;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.home-category-heading p {
  max-width: 78ch;
  margin: 0;
  color: #526071;
  font-size: 15px;
  line-height: 1.6;
}

/* Larger category controls above the existing mobile breakpoint. */
@media (min-width: 701px) {
  .home-categories { gap: 8px; }
  .category-pill {
    gap: 6px;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 15px;
  }
}
