.blog-posts {
  margin: 0 0 2rem;
}

body.blog-page {
  justify-content: flex-start;
}

body.blog-page app-footer {
  margin-top: auto;
}

.blog-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.category-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-chip {
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.post-main {
  min-width: 0;
}

.posts-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 2rem 0 1rem;
}

.posts-year:first-child {
  margin-top: 0;
}

.posts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.post-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.post-item:last-child {
  border-bottom: none;
}

.post-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.post-link:hover .post-title {
  color: var(--accent);
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.post-category {
  margin-top: 0.2rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.post-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.no-posts {
  color: var(--text-secondary);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .post-title {
    font-size: 1rem;
  }
}
