.events-list {
  --events-list-green: #1b2f1e;
  --events-list-accent: #4d8b31;
  --events-list-accent-soft: #f0f5ea;
  --events-list-primary: #82bb25;
  --events-list-text-muted: #6b7280;
  --events-list-row-bg: #ffffff;
  --events-list-date-width: 180px;
  --events-list-type-width: 240px;
  --events-list-action-width: 150px;
  --events-list-date-title-gap: 16px;
  --events-list-meta-gap: 20px;

  width: 100%;
  color: var(--events-list-green);
  font-family: var(--font-body);
}

.events-list__item {
  display: grid;
  grid-template-columns:
    var(--events-list-date-width)
    minmax(0, 1fr)
    var(--events-list-type-width)
    var(--events-list-action-width);
  column-gap: var(--events-list-meta-gap);
  align-items: center;
}

.events-list__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.events-list__item {
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--events-list-row-bg);
}

.events-list__date-col,
.events-list__detail-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.events-list__date {
  color: var(--events-list-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.events-list__time {
  color: var(--events-list-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.events-list__title {
  min-width: 0;
  color: var(--events-list-green);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.events-list__location {
  min-width: 0;
  color: var(--events-list-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.events-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.events-list__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 4px;
  background: var(--events-list-accent-soft);
  padding: 4px 8px;
  color: var(--events-list-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.events-list__tag--empty {
  color: var(--events-list-accent);
}

.events-list__action {
  width: 100%;
}

.events-list__action-button {
  width: 100%;
  border-color: #d1d5db;
  background: transparent;
  color: var(--events-list-green);
}

.events-list__action-button:hover,
.events-list__action-button:focus {
  border-color: var(--events-list-accent);
  background: var(--events-list-accent-soft);
  color: var(--events-list-green);
}

.events-list__empty {
  margin: 0;
  color: var(--events-list-text-muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .events-list__items {
    margin-top: 0;
  }

  .events-list__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .events-list__action {
    width: auto;
  }

  .events-list__action-button {
    width: auto;
  }
}
