.ep-events {
  margin: 18px 0;
}

.ep-events__title {
  margin: 0 0 12px 0;
}

.ep-events__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.ep-events__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-cat-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.ep-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #c3c4c7;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 1;
  background: #fff;
}

.ep-cat-input:checked + .ep-cat-btn {
  border-color: #2271b1;
  box-shadow: inset 0 0 0 1px #2271b1;
}

.ep-events__years {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ep-year-label {
  font-size: 14px;
}

.ep-year-select {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #c3c4c7;
}

.ep-events__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .ep-events__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ep-events__grid {
    grid-template-columns: 1fr;
  }
}

.ep-card {
  border: 1px solid #e2e4e7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ep-card__link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ep-card__thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f6f7f7;
}

.ep-card__thumb--placeholder {
  width: 100%;
  height: 180px;
  background: #f6f7f7;
}

.ep-card__body {
  padding: 12px 12px 14px 12px;
  display: grid;
  gap: 6px;
}

.ep-card__date {
  font-size: 13px;
  opacity: 0.8;
}

.ep-card__title {
  margin: 0;
  font-size: 16px;
}

.ep-card__cats {
  font-size: 13px;
  opacity: 0.85;
}

.ep-card__excerpt {
  font-size: 14px;
  opacity: 0.95;
}

.ep-card__report {
  margin-top: 6px;
  display: inline-flex;
  font-weight: 600;
  text-decoration: none;
}

.ep-events__actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.ep-events__status {
  margin-top: 10px;
  opacity: 0.8;
}
