/* Quiet visual cues for the Zennegat agenda: date, image, content, details. */
.calendar-day {
  overflow: hidden;
  justify-content: flex-start;
}

.calendar-day-number {
  position: relative;
  z-index: 2;
}

.calendar-event-visual {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(29, 24, 17, .18);
}

.calendar-event-icon {
  position: absolute;
  right: 7px;
  bottom: 4px;
  color: var(--accent, #9c795b);
  font-size: .72rem;
}

.day-event {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.day-event-visual,
.event-list-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ece2d3;
  color: #8e6f54;
  font-size: .9rem;
  line-height: 1;
}

.day-event-visual {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.day-event-visual img,
.event-list-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-event-copy {
  min-width: 0;
}

.event-list-row {
  display: grid !important;
  grid-template-columns: 64px 62px minmax(0, 1fr) max-content !important;
  column-gap: 16px;
  align-items: center !important;
  padding: 17px 0 !important;
}

.event-list-row > * {
  min-width: 0;
}

.event-list-row .event-list-date {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 3px;
}

.event-list-row .event-list-visual {
  grid-column: 2;
  grid-row: 1;
  width: 62px;
  height: 54px;
  border-radius: 0;
}

.event-list-row > div:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.event-list-row .event-list-meta {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  margin: 0 !important;
  min-width: 112px;
  text-align: right;
  white-space: nowrap;
}

.event-list-row .event-list-count {
  display: block;
  margin: 0 0 3px;
}

.event-list-row h4 {
  margin: 0 0 3px !important;
  max-width: none;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem) !important;
  line-height: 1.05 !important;
}

.event-list-row p {
  margin: 0 !important;
  max-width: 64ch;
  color: #5f584f;
  font-size: .9rem !important;
  line-height: 1.45 !important;
}

@media (max-width: 760px) {
  .event-list-row {
    grid-template-columns: 43px 50px minmax(0, 1fr) !important;
    column-gap: 10px;
    align-items: start !important;
  }

  .event-list-row .event-list-visual {
    width: 50px;
    height: 46px;
  }

  .event-list-row .event-list-meta {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    margin-top: 8px !important;
    min-width: 0;
    text-align: left;
  }

  .event-list-row h4 {
    font-size: 1.12rem !important;
  }

  .event-list-row p {
    font-size: .84rem !important;
  }
}

/* Public agenda cards: date, square image, then category. */
.events-experience .calendar-day {
  overflow: visible;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
}
.events-experience .calendar-day-number {
  position: static;
  align-self: center;
  width: 100%;
  text-align: center;
}
.events-experience .calendar-event-visual {
  position: static !important;
  display: grid !important;
  place-items: center;
  align-self: center;
  width: min(100%, 96px) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.events-experience .calendar-event-category {
  width: 100%;
  text-align: center;
}
@media (max-width: 700px) {
  .events-experience .calendar-event-visual { width: min(100%, 48px) !important; }
}
/* Compact category filter: only the label and available category buttons. */
.events-experience .agenda-filter-strip {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0 0 26px;
  border: 0;
  background: transparent;
}
.events-experience .event-categories {
  flex: 0 1 auto;
}
@media (max-width: 700px) {
  .events-experience .agenda-filter-strip { width: 100%; }
}