/* Activity archive alignment: one shared grid for the header, category index and cards. */
.activity-library-head {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(38px, 7vw, 104px);
  align-items: end;
  margin-bottom: 34px;
}

.activity-library-head h2 {
  font-size: clamp(36px, 3.3vw, 48px);
  line-height: 1.28;
}

.activity-library-overview {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.activity-library-overview > p {
  max-width: 650px;
  margin: 0;
  color: #607167;
  line-height: 1.9;
}

.activity-filter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: min(100%, 560px);
  margin-top: 0;
  padding-top: 0;
}

.activity-filter label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-filter-label {
  flex: 0 0 auto;
  color: #3b584b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.activity-filter input {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.activity-filter .btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 78px;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border-color: rgba(52, 79, 65, .24);
  color: #2d604d;
  background: #fffdf8;
  white-space: nowrap;
}

.activity-filter .btn:hover {
  border-color: #2d604d;
  color: #fffdf8;
  background: #2d604d;
}

.activity-category-nav a > b {
  align-self: center;
  color: #718077;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.activity-category-nav a.active > b,
.activity-category-nav a:hover > b {
  color: #9a6e35;
}

.activity-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(52, 79, 65, .18);
}

.activity-pagination-bar > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  color: #708077;
  font-size: 13px;
}

.activity-pagination-bar > p strong {
  color: #345548;
  font-weight: 700;
}

.activity-pagination-complete {
  color: #89948d;
  font-size: 12px;
}

.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.activity-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(52, 79, 65, .24);
  color: #416053;
  background: #fffdf8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.activity-pagination a:hover,
.activity-pagination a.active {
  border-color: #2d604d;
  color: #fffdf8;
  background: #2d604d;
}

.activity-page-control svg {
  width: 16px;
}

.activity-page-ellipsis {
  color: #879289;
  line-height: 1;
}

@media (max-width: 920px) {
  .activity-library-head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .activity-filter {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .activity-filter {
    width: 100%;
  }

  .activity-filter .btn {
    width: 72px;
    padding: 0 10px;
  }

  .activity-pagination-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .activity-pagination {
    justify-content: flex-start;
  }
}
