/* Events and Workshops: heading, "Coming Up Next", the empty state and a month calendar.
   Desktop values are measured on the original (reference/DESIGN.md, reference/measure/events.desktop.json). */
.events { padding: 36px 20px 56px; text-align: center; }
.events__title {
  max-width: 956px;
  margin: 0 auto;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 26px;
  line-height: 34px;
  color: var(--brown);
}
.events__next {
  margin-top: 14px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 21px;
  line-height: 28px;
  color: var(--navy);
}
.events__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 907px;
  min-height: 110px;
  margin: 10px auto 0;
}
.events__empty-text {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--teal);
}
.events__rule { width: 30px; height: 3px; margin: 8px auto 28px; background: var(--teal); }

/* ---------- Calendar ---------- */
.calendar { max-width: 849px; margin: 0 auto; text-align: left; color: var(--teal); }
.calendar__bar { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.calendar__nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
}
.calendar__nav::before {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(45deg);
}
.calendar__nav--next::before { transform: rotate(-135deg); }
.calendar__nav:hover { color: var(--brown); }
.calendar__month { position: relative; display: inline-flex; align-items: center; margin-right: auto; }
.calendar__select {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 22px 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 16px;
  line-height: 22.4px;
  color: var(--teal);
  cursor: pointer;
}
.calendar__select:hover { color: var(--brown); }
.calendar__caret {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid var(--teal);
  border-width: 0 1.5px 1.5px 0;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.calendar__today {
  flex: none;
  width: 80px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--brown);
  background: none;
  font-size: 14px;
  line-height: 19.6px;
  color: var(--brown);
}
.calendar__today:hover { background: var(--brown); color: var(--white); }

.calendar__grid { width: 100%; margin-top: 24px; border-collapse: collapse; table-layout: fixed; }
.calendar__grid th {
  height: 29px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  text-align: left;
  vertical-align: top;
  color: var(--teal);
}
.calendar__grid td {
  height: 56px;
  padding: 6px 0 0 8px;
  border: 1px solid var(--light-teal);
  font-size: 16px;
  line-height: 24px;
  vertical-align: top;
  color: var(--teal);
}
.calendar__grid td.is-weekend { background: rgba(72, 141, 149, 0.04); }
.calendar__grid td.is-other { color: rgba(72, 141, 149, 0.35); }
.calendar__grid td.is-today { background: rgba(142, 101, 80, 0.2); }
.calendar__noscript { padding: 24px 0; text-align: center; color: var(--teal); }

/* /workshops/ keeps a taller gap before the calendar on small screens too */
.events--workshops .events__rule { margin-top: 56px; }

@media (min-width: 760px) {
  .calendar__nav { display: none; }
  .calendar__grid td { height: 100px; padding: 10px 0 0 12px; font-size: 20px; line-height: 28px; }
}

@media (min-width: 1200px) {
  .events { padding: 63px 20px 60px; }
  .events__title { font-size: 33px; line-height: 41px; }
  .events__next { margin-top: 19px; font-size: 23px; }
  .events__empty { min-height: 132px; margin-top: 0; }
  .events__rule { margin: 11px auto 30px; }
  .calendar__grid { margin-top: 24px; }
  .calendar__grid td { height: 140px; padding: 12px 0 0 15px; font-size: 24px; line-height: 33.6px; }

  /* /workshops/ is a copy of the page with a taller gap before the calendar, as on the original */
  .events--workshops .events__empty { max-width: 937px; margin-top: 18px; }
  .events--workshops .events__rule { margin-top: 614px; }
  .events--workshops .calendar { max-width: 857px; }
}
