.changelog-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid rgba(120, 130, 150, 0.3);
}

.changelog-meta {
  position: sticky;
  top: 4.75rem;
  align-self: start;
}

.changelog-date {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.changelog-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.changelog-tags li {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  border: 1px solid transparent;
  color: #fff;
}

/* 10-swatch deterministic palette — index matches hash(tag) % 10 */
.changelog-tags li.tag-c0 { background: #4361ee; border-color: #3451d1; }
.changelog-tags li.tag-c1 { background: #7209b7; border-color: #5e07a0; }
.changelog-tags li.tag-c2 { background: #f72585; border-color: #d41e72; }
.changelog-tags li.tag-c3 { background: #0077b6; border-color: #005f92; }
.changelog-tags li.tag-c4 { background: #2a9d8f; border-color: #217a72; }
.changelog-tags li.tag-c5 { background: #e76f51; border-color: #c95a3d; }
.changelog-tags li.tag-c6 { background: #457b9d; border-color: #35607d; }
.changelog-tags li.tag-c7 { background: #6d6875; border-color: #56505c; }
.changelog-tags li.tag-c8 { background: #3a86ff; border-color: #2570e0; }
.changelog-tags li.tag-c9 { background: #06d6a0; border-color: #05ab80; color: #0a2a22; }

.changelog-body h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.changelog-refs {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #5d6778;
  font-size: 0.86rem;
}

.changelog-file {
  margin-bottom: 0.85rem;
}

.changelog-file h4 {
  margin-bottom: 0.35rem;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.changelog-file ul {
  margin-top: 0;
}

@media (max-width: 900px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .changelog-meta {
    position: static;
  }

  .changelog-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
