.sf-events-day + .sf-events-day {
  margin-top: 1.6rem;
}

.sf-events-date {
  margin: 0 0 0.55rem;
  color: var(--sf-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.sf-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.75rem;
}

.sf-event-card {
  min-height: 164px;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.sf-event-card.has-media {
  display: grid;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
}

.sf-event-card-media {
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
  background: var(--sf-soft);
}

.sf-event-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.9rem;
}

.sf-event-time {
  color: var(--sf-accent);
  font-size: 0.77rem;
  font-weight: 750;
}

.sf-event-title {
  margin: 0.28rem 0 0.2rem;
  color: var(--sf-text);
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.3;
}

.sf-event-location {
  overflow: hidden;
  color: var(--sf-muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-event-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.35rem 0 0;
  color: var(--sf-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sf-event-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--sf-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.sf-event-card-foot strong {
  color: var(--sf-accent);
  font-size: 0.92rem;
}

.sf-events-empty {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--sf-line);
  border-radius: 8px;
  color: var(--sf-muted);
  text-align: center;
}

.sf-events-empty i {
  margin-bottom: 0.3rem;
  color: var(--sf-faint);
  font-size: 1.6rem;
}

.sf-events-empty strong {
  color: var(--sf-text);
}

.sf-events-empty span {
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .sf-events-grid {
    grid-template-columns: 1fr;
  }

  .sf-event-card.has-media {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .sf-event-card-media {
    min-height: 154px;
  }

  .sf-event-card-body {
    padding: 0.75rem;
  }

  .sf-event-description {
    display: none;
  }
}
