.calendar-preview {
  margin: 0;
  color: #1d1d1d;
  font-family: system-ui, sans-serif;
}

.calendar-preview > main {
  max-width: 68rem;
  margin: auto;
  padding: 1rem;
}

#closure-calendar {
  scroll-margin-top: 5.5rem;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .calendar-months {
    grid-template-columns: minmax(0, 1fr);
  }
}

.calendar-months table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
}

.calendar-months caption {
  caption-side: top;
  padding: 0.5rem;
  font-weight: bold;
}

.calendar-months th,
.calendar-months td {
  border: 1px solid #d9d3cd;
  padding: 0.35rem 0;
}

.calendar-months th {
  background: #f4f0ec;
}

.calendar-months td {
  height: 3rem;
  vertical-align: top;
}

.calendar-months th:first-child {
  background-color: #f9e8e8;
}

.calendar-months th:last-child {
  background-color: #e8f1fa;
}

.calendar-months .calendar-closed {
  background: #f9e8e8;
  color: #822323;
}

.calendar-status {
  display: block;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .calendar-months {
    gap: 0.75rem;
  }

  .calendar-months table {
    font-size: 0.9375rem;
  }

  .calendar-months caption {
    padding: 0.375rem;
  }

  .calendar-months th,
  .calendar-months td {
    padding-block: 0.25rem;
  }

  .calendar-months td {
    height: 2.65rem;
  }

  .calendar-months .calendar-status {
    font-size: 0.8rem;
  }
}
