.twis-calendar,
.twis-month {
  --cal-navy: #183451;
  --cal-orange: #ec7f2d;
  --cal-sky: #eaf5fb;
  --cal-muted: #637082;
  --cal-line: rgba(24, 52, 81, .14);
  font-family: "Inter", system-ui, sans-serif;
}
.twis-calendar-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.twis-calendar-filter button {
  border: 1px solid var(--cal-line);
  background: #fff;
  color: var(--cal-navy);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.twis-calendar-filter button.is-active {
  background: var(--cal-navy);
  color: #fff;
}
.twis-event-list {
  display: grid;
  gap: 12px;
}
.twis-event {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--cal-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 52, 81, .07);
}
.twis-event.is-hidden { display: none; }
.twis-event-date {
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cal-sky);
  color: var(--cal-navy);
}
.twis-event-date span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.twis-event-date strong {
  font-size: 34px;
  line-height: 1;
}
.twis-event-type {
  color: var(--cal-orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.twis-event h3 {
  margin: 3px 0 8px;
  color: var(--cal-navy);
  font-size: 22px;
  line-height: 1.2;
}
.twis-event-copy p,
.twis-event-copy {
  margin: 0;
  color: var(--cal-muted);
}
.twis-event dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}
.twis-event dl div {
  display: flex;
  gap: 6px;
}
.twis-event dt {
  color: var(--cal-navy);
  font-weight: 900;
}
.twis-event dd {
  margin: 0;
  color: var(--cal-muted);
}
.twis-event-link {
  color: #fff;
  background: var(--cal-orange);
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 900;
}
.twis-calendar-empty {
  padding: 22px;
  border: 1px dashed var(--cal-line);
  border-radius: 8px;
  color: var(--cal-muted);
}
.twis-month {
  border: 1px solid var(--cal-line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 34px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(24, 52, 81, .09);
}
.twis-month-head {
  padding: 26px 30px;
  background:
    linear-gradient(135deg, rgba(24, 52, 81, .96), rgba(46, 111, 159, .9)),
    var(--cal-navy);
  color: #fff;
}
.twis-month-head h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}
.twis-month-head p {
  margin: 0;
  color: rgba(255,255,255,.76);
}
.twis-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--cal-line);
  gap: 1px;
}
.twis-month-label,
.twis-month-day {
  min-height: 126px;
  padding: 12px;
  border: 0;
  background: #fff;
}
.twis-month-label {
  min-height: auto;
  background: #f4f9fc;
  color: var(--cal-navy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.twis-month-day > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f7fbfd;
  color: var(--cal-navy);
  font-weight: 900;
}
.twis-month-day.is-empty {
  background: #fbfbfb;
}
.twis-month-event {
  display: block;
  margin-top: 8px;
  color: #fff;
  background: var(--cal-navy);
  border-left: 4px solid var(--cal-orange);
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}
.twis-month-event:hover {
  background: var(--cal-orange);
}
@media (max-width: 760px) {
  .twis-event {
    grid-template-columns: 1fr;
  }
  .twis-event-date {
    width: 86px;
  }
  .twis-month-grid {
    grid-template-columns: 1fr;
    background: transparent;
    gap: 10px;
  }
  .twis-month-label {
    display: none;
  }
  .twis-month-day {
    min-height: auto;
    border: 1px solid var(--cal-line);
    border-radius: 8px;
  }
  .twis-month-day:not(.has-event) {
    display: none;
  }
  .twis-month-day.is-empty {
    display: none;
  }
}
