/**
 * Generic news and event card.
 *
 * The homepage Agenda card is the canonical component everywhere.
 */

:root {
  --fsgt93-agenda-card-width: 220px;
  --fsgt93-agenda-card-height: 292px;
  --fsgt93-agenda-card-height-mobile: 249px;
}

.fsgt93-agenda-list > li {
  box-sizing: border-box !important;
  margin-bottom: var(--fsgt93-space-2) !important;
  border: 1px solid var(--fsgt93-line-soft) !important;
  border-radius: 12px !important;
  padding: var(--fsgt93-space-3) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(122, 62, 2, 0.06) !important;
}

.fsgt93-card-carousel > .fsgt93-agenda-list > li,
.single-sport .fsgt93-sport-agenda-list > li {
  --fsgt93-paginated-agenda-card-width: var(--fsgt93-agenda-card-width);
  flex: 0 0 var(--fsgt93-agenda-card-width) !important;
  width: var(--fsgt93-agenda-card-width) !important;
  min-width: var(--fsgt93-agenda-card-width) !important;
  max-width: var(--fsgt93-agenda-card-width) !important;
}

.single-sport .fsgt93-sport-agenda-list {
  grid-template-columns: repeat(auto-fit, var(--fsgt93-agenda-card-width));
}

.fsgt93-agenda-list .fsgt93-agenda-link,
.fsgt93-card-carousel > .fsgt93-agenda-list .fsgt93-agenda-link {
  height: var(--fsgt93-agenda-card-height) !important;
  min-height: var(--fsgt93-agenda-card-height) !important;
  max-height: var(--fsgt93-agenda-card-height) !important;
  border-color: rgba(214, 56, 51, 0.18);
  color: #0e2c4f !important;
  box-shadow: 0 16px 30px rgba(122, 62, 2, 0.12);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.fsgt93-agenda-list .fsgt93-agenda-link:hover,
.fsgt93-agenda-list .fsgt93-agenda-link:focus {
  border-color: rgba(214, 56, 51, 0.36);
  box-shadow: 0 22px 38px rgba(122, 62, 2, 0.16);
}

.fsgt93-agenda-list .fsgt93-agenda-date {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 14px 12px;
}

.fsgt93-agenda-list .fsgt93-agenda-day {
  color: #fff7e9;
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: clamp(2.75rem, 3.7vw, 3.35rem);
  font-weight: 800;
  line-height: 0.9;
}

.fsgt93-agenda-list .fsgt93-agenda-month-year {
  min-width: 0;
  padding-top: 3px;
}

.fsgt93-agenda-list .fsgt93-agenda-month,
.fsgt93-agenda-list .fsgt93-agenda-year {
  color: #fff7e9;
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: 0.8125rem !important;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
}

.fsgt93-agenda-list .fsgt93-agenda-month {
  padding-bottom: 5px;
  font-weight: 700;
}

.fsgt93-agenda-list .fsgt93-agenda-month::after {
  width: min(56px, 100%);
}

.fsgt93-agenda-list .fsgt93-agenda-year {
  font-weight: 500;
}

.fsgt93-agenda-list .fsgt93-agenda-card-body {
  grid-template-rows: auto auto minmax(12px, 1fr) auto auto;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  gap: 9px;
  overflow: hidden;
  padding: 16px 16px 18px;
  color: #0e2c4f;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.32;
}

.fsgt93-agenda-list .fsgt93-agenda-card-body h3 {
  display: -webkit-box;
  grid-row: 1;
  height: 3.45em !important;
  min-width: 0;
  min-height: 3.45em !important;
  max-height: 3.45em;
  margin: 0;
  overflow: hidden;
  color: #6f1111;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15 !important;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.fsgt93-agenda-list .fsgt93-agenda-location,
.fsgt93-agenda-list .fsgt93-agenda-end {
  margin: 0;
  overflow: hidden;
  color: #4a2a20;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.fsgt93-agenda-list .fsgt93-agenda-location {
  grid-row: 2;
  max-height: 2lh;
}

.fsgt93-agenda-list .fsgt93-agenda-location-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
}

.fsgt93-agenda-list .fsgt93-agenda-end {
  grid-row: 4;
  margin-top: 0;
  padding-top: 6px;
  font-weight: 700;
}

.fsgt93-agenda-list .fsgt93-calendar-event-type {
  grid-row: 5;
  align-self: end;
  justify-self: start;
  margin-top: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .single-sport .fsgt93-card-carousel > .fsgt93-sport-history-list {
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    margin-inline: -20px;
  }

  .fsgt93-card-carousel > .fsgt93-agenda-list > li {
    --fsgt93-paginated-agenda-card-width: calc(100vw - 72px);
    flex-basis: var(--fsgt93-paginated-agenda-card-width) !important;
    width: var(--fsgt93-paginated-agenda-card-width) !important;
    min-width: var(--fsgt93-paginated-agenda-card-width) !important;
    max-width: var(--fsgt93-paginated-agenda-card-width) !important;
  }

  .single-sport .fsgt93-sport-agenda-list {
    grid-template-columns: 1fr;
  }

  .single-sport .fsgt93-sport-agenda-list > li {
    flex-basis: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .fsgt93-agenda-list .fsgt93-agenda-link,
  .fsgt93-card-carousel > .fsgt93-agenda-list .fsgt93-agenda-link {
    height: var(--fsgt93-agenda-card-height-mobile) !important;
    min-height: var(--fsgt93-agenda-card-height-mobile) !important;
    max-height: var(--fsgt93-agenda-card-height-mobile) !important;
  }

  .fsgt93-agenda-list .fsgt93-agenda-card-body h3 {
    height: 2.3em !important;
    min-height: 2.3em !important;
    max-height: 2.3em;
    -webkit-line-clamp: 2 !important;
  }

  .fsgt93-agenda-list .fsgt93-agenda-location {
    max-height: 1lh;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fsgt93-agenda-list .fsgt93-agenda-location-text {
    display: inline;
    white-space: nowrap;
  }
}
