.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cal-summary {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.cal-scroll-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(to right, #ffffff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #ffffff 70%) 100% 0,
    linear-gradient(to right, rgba(0,0,0,0.12), rgba(0,0,0,0)),
    linear-gradient(to left, rgba(0,0,0,0.12), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

.cal-scroll-wrapper:focus-visible {
  outline: 3px solid #0b3d63;
  outline-offset: 2px;
}

.calendar {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
  background-color: #ffffff;
  color: #1a1a1a;
}

.calendar th,
.calendar td {
  width: 20%;
  border: 1px solid #cbd2d9;
  vertical-align: top;
  padding: 0.5rem;
}

.calendar thead th {
  background-color: #0b3d63;
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.6rem 0.4rem;
}

.cal-day {
  background-color: #ffffff;
}

.cal-date-num {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #0b3d63;
}

#subpageText .calendar ul.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#subpageText .calendar ul.cal-list > li.item {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px dashed #dfe4ea;
}

#subpageText .calendar ul.cal-list > li.item::before {
  content: none;
  display: none;
}

#subpageText .calendar ul.cal-list > li.item::marker {
  content: "";
}

#subpageText .calendar ul.cal-list > li.item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.item-star {
  color: #9a6700;
  margin-right: 0.3em;
}

.item-desc {
  display: block;
  font-size: 0.85rem;
  color: #4a4a4a;
  margin-top: 0.15rem;
}

.cal-no-items {
  margin: 0;
  font-size: 0.85rem;
  color: #6b6b6b;
  text-align: center;
}

.cal-empty {
  background-color: #f4f6f8;
}

.calendar a:focus-visible {
  outline: 3px solid #0b3d63;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .calendar {
    min-width: 560px;
    font-size: 0.9rem;
  }
  .calendar th,
  .calendar td {
    padding: 0.4rem;
  }
}

@media print {
  .cal-scroll-wrapper {
    overflow: visible;
    border: none;
    background: none;
  }
  .calendar {
    min-width: 0;
    width: 100%;
  }
  .item-star,
  #subpageText .calendar ul.cal-list > li.item--special {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}