.events {
  --events-gap: 20px;
  --events-pad: 20px;
  --events-surface: #fff;
  --events-muted: #a6acb1;
  --events-meta: #c2c7cd;
  --events-title-bg: #73787d;
  --events-title-color: #ecf1f7;
  --events-heading: #73787d;
  --events-more-bg: var(--bg-primary-blue, #ecf1f7);
  --events-text: var(--bg-dark, #2c3135);
  --events-date: var(--bg-primary-red, #ee2d2f);
  --events-radius: 8px;

  padding-block: 24px 0;
  font-family: "ITCOfficinaSansW10-Book_862508", Arial, sans-serif;
}

.events__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.events__title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
}

.events__note {
  margin: 0;
  flex: 1 1 12rem;
  color: var(--events-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.events__note-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.events__note-link:hover,
.events__note-link:focus-visible {
  color: var(--events-text);
}

.events__body {
  background-color: var(--events-surface);
  border-radius: 0 var(--events-radius) 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.events__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--events-gap);
  padding: var(--events-pad);
  margin: 0;
  list-style: none;
}

.events__list:not(.events__list--expanded) .events__item:nth-child(n + 4) {
  display: none;
}

.events__item {
  min-width: 0;
}

.events__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.events__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.events__date {
  color: var(--events-date);
}

.events__meta-sep,
.events__meta-label {
  color: var(--events-meta);
}

.events__heading {
  margin: 0;
  color: var(--events-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  hyphens: auto;
}

.events__link:hover .events__heading,
.events__link:focus-visible .events__heading {
  text-decoration: none;
  color: var(--bg-lightdark, #5a5f64);
}

.events__text {
  color: var(--events-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  hyphens: auto;
}

.events__link:hover .events__text,
.events__link:focus-visible .events__text {
  color: var(--bg-lightdark, #5a5f64);
}

.events__more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0 0 var(--events-radius) var(--events-radius);
  background-color: var(--events-more-bg);
  color: var(--events-muted);
  font: inherit;
  cursor: pointer;
}

.events__more:hover,
.events__more:focus-visible {
  color: var(--events-text);
}

.events__more-label {
  border-bottom: 1px dashed currentColor;
}

@media (max-width: 991.98px) {
  .events__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events__list:not(.events__list--expanded) .events__item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .events {
    --events-pad: 16px;
    --events-gap: 16px;
  }

  .events__list {
    grid-template-columns: 1fr;
  }

  .events__list:not(.events__list--expanded) .events__item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .events__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .events__title {
    border-radius: var(--events-radius);
    width: fit-content;
  }

  /* flex-basis 12rem in a column head inflates note height */
  .events__note {
    flex: 0 1 auto;
  }

  .events__text {
    -webkit-line-clamp: 4;
  }
}
