.tags-page {
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.tags-header {
  margin-top: 24px;
  margin-bottom: 0.75rem;
}

.tags-header h2::before {
  display: none;
}

/* Description */
.tags-description {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Tags list */
.tags-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tag-block {
  border-top: 1px solid var(--border);
}

.tag-posts {
  list-style: none;
  padding-left: 0;
}

.tag-posts li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tag-posts a {
  text-decoration: none;
  color: var(--primary);
}

.tag-posts a:hover {
  text-decoration: underline;
}

/* Post date */
.post-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Active tag block */
.tag-block.active > h2::before {
  display: none !important;
}

.tag-heading {
  scroll-margin-top: 80px;
  transition: background-color 0.3s ease;
  padding: 4px 6px;
  border-radius: 6px;
}

/* Active state styling */
.tag-block.active > .tag-heading {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin-left: -14px;
}

/* Back button */
#backButton {
  cursor: pointer;
}
