/* =========================================================
   Post Archive – category/date filter UI
   ========================================================= */

.page-header--news {
  padding: 28px 0 24px;
}

.page-header--news .page-header-inner {
  justify-content: center;
}

.page-header--news .page-header-body {
  text-align: center;
}

.page-header--news .page-header-title {
  font-size: 40px;
}

.page-header--news .page-header-label {
  text-align: center;
}

/* ----- Section wrapper ----- */
.post-archive-section {
  padding: 64px 0 96px;
}

/* ----- Filters row ----- */
.post-archive-filters {
  margin-bottom: 32px;
}

.post-archive-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----- Category tabs ----- */
.post-archive-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.post-archive-cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.post-archive-cat-btn:hover {
  background: #e8eef8;
  color: var(--blue);
  border-color: #b3c5e8;
}

.post-archive-cat-btn.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ----- Month/year dropdown ----- */
.post-archive-month-filter {
  flex-shrink: 0;
}

.post-archive-month-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 36px 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md, 8px);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555570' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  transition: border-color 0.18s;
}

.post-archive-month-select:hover,
.post-archive-month-select:focus {
  border-color: var(--blue);
  outline: none;
}

/* ----- Post list ----- */
.post-archive-list {
  border-top: 1px solid var(--border);
}

/* ----- Empty state ----- */
.post-archive-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-sub);
  font-size: 15px;
}

/* ----- Pagination ----- */
.post-archive-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.post-archive-pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.post-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-sub);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.post-archive-pagination .page-numbers:hover {
  background: #e8eef8;
  color: var(--blue);
  border-color: #b3c5e8;
}

.post-archive-pagination .page-numbers.current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.post-archive-pagination .prev,
.post-archive-pagination .next {
  font-size: 13px;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .post-archive-section {
    padding: 40px 0 64px;
  }

  .post-archive-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-archive-month-filter {
    width: 100%;
  }

  .post-archive-month-select {
    width: 100%;
  }
}
