.category-archive-intro {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--category-color, currentColor) 42%, transparent);
  border-left-width: 5px;
  background: color-mix(in srgb, var(--category-color, currentColor) 10%, transparent);
}

.category-archive-kicker {
  margin: 0 0 0.45rem;
  color: var(--category-color, currentColor);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-archive-title {
  margin: 0;
}

.category-archive-description {
  margin: 0.65rem 0 0;
}

.category-archive-back {
  display: inline-flex;
  margin-top: 0.9rem;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.widget-categories {
  margin-bottom: 1.5rem;
}

.category-list {
  display: grid;
  gap: 0.55rem;
}

.category-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--category-color, currentColor) 28%, transparent);
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--category-color, currentColor) 7%, transparent);
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--category-color, currentColor);
  background: color-mix(in srgb, var(--category-color, currentColor) 16%, transparent);
}

.category-color {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--category-color, currentColor);
}

.category-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count {
  min-width: 1.55rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid color-mix(in srgb, var(--category-color, currentColor) 35%, transparent);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-category {
  color: var(--category-color, currentColor);
}

a.post-category {
  text-decoration: none;
}

a.post-category:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
