:root {
  --activity-coral: #f25564;
  --activity-ink: #2c2928;
  --activity-muted: #7f7a76;
  --activity-line: #f0e3da;
}

.activity-list-shell {
  container: activity-list / inline-size;
  width: 100%;
  padding: 10px 0;
  color: var(--activity-ink);
}

.activity-list-head {
  margin-bottom: 18px;
}

.activity-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.activity-page-heading h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.4;
}

.activity-page-heading p {
  flex: 0 0 auto;
  margin: 0;
  color: var(--activity-muted);
  font-size: 13px;
  line-height: 1.5;
}

.activity-intro {
  margin: 8px 0 0;
  color: var(--activity-muted);
  font-size: 13px;
  line-height: 1.7;
}

.activity-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.activity-list-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--activity-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(91, 63, 43, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.activity-list-link {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
}

.activity-list-photo {
  position: relative;
  aspect-ratio: 1.56;
  overflow: hidden;
  background: #fff1e9;
}

.activity-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}

.activity-list-photo > span {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--activity-coral);
  font-size: 12px;
  font-weight: 750;
}

.activity-list-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

.activity-list-date {
  margin: 0 0 8px;
  color: #cf7653;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.activity-list-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--activity-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.activity-list-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: #746c66;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.activity-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 13px 16px;
  border-top: 1px solid var(--activity-line);
  background: #fffaf7;
}

.activity-hospital {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #817973;
}

.activity-hospital svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #cf7653;
}

.activity-hospital strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-detail-link {
  flex: 0 0 auto;
  color: var(--activity-muted);
  font-size: 12px;
  white-space: nowrap;
}

.activity-detail-link > span {
  margin-left: 3px;
  font-size: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .activity-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(91, 63, 43, .1);
  }
  .activity-list-card:hover .activity-list-photo img {
    transform: scale(1.035);
  }
  .activity-list-card:hover .activity-detail-link {
    color: var(--activity-coral);
  }
}

.activity-list-shell :is(a, button):focus-visible {
  outline: 2px solid #df8991;
  outline-offset: 3px;
}

.activity-empty {
  padding: 32px 20px;
  border: 1px solid var(--activity-line);
  border-radius: 20px;
  background: #fff9f4;
  color: var(--activity-muted);
  text-align: center;
}

.activity-empty > span {
  display: block;
  color: var(--activity-coral);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
}

.activity-empty strong {
  display: block;
  margin-top: 8px;
  color: var(--activity-ink);
  font-size: 20px;
}

.activity-empty p {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

.activity-empty a,
.activity-pager a,
.activity-pager .disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: linear-gradient(105deg, #ff857b, #f4516d);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
}

.activity-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.activity-pager .disabled {
  opacity: .42;
  cursor: not-allowed;
}

.activity-pager > span:not(.disabled) {
  color: var(--activity-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@container activity-list (max-width: 560px) {
  .activity-list-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .activity-list-copy {
    padding: 16px;
  }
  .activity-list-copy h3 {
    font-size: 17px;
  }
}

@container activity-list (max-width: 350px) {
  .activity-page-heading {
    gap: 10px;
  }
  .activity-page-heading h1 {
    font-size: 22px;
  }
  .activity-page-heading p {
    font-size: 12px;
  }
  .activity-list-meta {
    padding-inline: 13px;
  }
}
