.public-site .home-editorial > section {
  min-width: 0;
}
.public-site .home-calendar {
  --calendar-training: #eed98c;
  --calendar-official: #c4d8ef;
  --calendar-holiday: #b8dfc0;
  min-width: 0;
  margin-bottom: 36px;
  color: var(--text);
}
.home-calendar-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.home-calendar-heading {
  margin-right: auto;
}
.home-calendar-heading > span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.public-site .home-calendar-heading h2 {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1.3;
}
.home-calendar-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-calendar button:not(.home-calendar-event) {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.home-calendar .home-calendar-types [aria-pressed='true'],
.home-calendar button:not(.home-calendar-event):hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--sub);
}
.home-calendar-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}
.home-calendar-navigation strong {
  min-width: 112px;
  text-align: center;
  font-size: 16px;
}
.home-calendar .home-calendar-navigation button {
  min-width: 44px;
  font:
    26px/1 Georgia,
    serif;
}
.home-calendar-panel {
  min-width: 0;
  padding: 10px 10px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
}
.home-calendar-feedback {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.home-calendar-feedback:not(:empty) {
  padding: 8px 4px 12px;
}
.home-calendar-feedback button {
  margin-left: 4px;
}
.home-calendar-scroll {
  position: relative;
  min-width: 0;
  max-height: 520px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  overscroll-behavior: contain;
}
.home-calendar-grid {
  min-width: 570px;
  padding-right: 6px;
}
.home-calendar-weekdays,
.home-calendar-dates,
.home-calendar-week-lane {
  display: grid;
  grid-template-columns: 46px repeat(7, minmax(0, 1fr));
}
.home-calendar-weekdays {
  position: sticky;
  top: 0;
  z-index: 3;
  border: 1px solid var(--border);
  background: var(--sub);
}
.home-calendar-weekdays span {
  padding: 9px 2px;
  text-align: center;
  font-size: 12px;
}
.public-site .home-calendar-month-heading {
  margin: 13px 5px 8px;
  font-size: 19px;
}
.home-calendar-week {
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.home-calendar-dates > * {
  min-height: 29px;
  padding: 5px 2px;
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.home-calendar-dates > :last-child {
  border-right: 0;
}
.home-calendar-dates .is-adjacent {
  color: var(--muted);
  font-weight: 400;
}
.home-calendar-dates .is-today {
  color: var(--gold);
  background: var(--sub);
  box-shadow: inset 0 -2px var(--gold);
}
.home-calendar-week-lane {
  position: relative;
  grid-template-rows: minmax(50px, auto) minmax(50px, auto);
}
.home-calendar-period {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  grid-row: 1;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--sub);
  font-size: 12px;
}
.home-calendar-period.is-evening {
  grid-row: 2;
}
.home-calendar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
.home-calendar-cell:nth-of-type(7n + 2) {
  border-right: 0;
}
.home-calendar-event {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  width: auto;
  margin: 3px 2px;
  padding: 5px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--calendar-training);
  color: #242619;
  text-align: center;
  font: 600 12px/1.3 var(--brand-body);
  overflow: hidden;
  cursor: pointer;
}
.home-calendar-event.is-official {
  background: var(--calendar-official);
  color: #172738;
}
.home-calendar-event.is-holiday {
  background: var(--calendar-holiday);
  color: #173b23;
}
.home-calendar-event > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.home-calendar-event > small {
  color: inherit;
  font-size: 10px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.home-calendar-event:hover {
  filter: brightness(0.96);
  border-color: currentColor;
}
.home-calendar button:focus-visible,
.home-calendar-scroll:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.home-calendar-event:focus-visible {
  outline-color: var(--text);
  outline-offset: -3px;
}
.home-calendar-scroll-hint {
  margin: 0;
  padding: 9px 3px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.home-calendar-detail {
  color: var(--text);
}
.home-calendar-detail dl {
  display: grid;
  margin: 0;
}
.home-calendar-detail dl > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.home-calendar-detail dt {
  color: var(--muted);
}
.home-calendar-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.home-calendar-detail section {
  margin-top: 24px;
}
.public-site .home-calendar-detail h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.home-calendar-detail p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.public-site #modal:has(.home-calendar-detail) .mh h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.public-site #modal:has(.home-calendar-detail) .mh .btn {
  min-height: 44px;
  flex-shrink: 0;
}
html[data-public-theme='battle'] .home-calendar {
  --calendar-training: #e9cf70;
  --calendar-official: #b5cce8;
  --calendar-holiday: #aad6b3;
}
@media (max-width: 760px) {
  .home-calendar-toolbar {
    gap: 9px;
  }
  .home-calendar-heading {
    flex-basis: 100%;
  }
  .public-site .home-calendar-heading h2 {
    font-size: 25px;
  }
  .home-calendar-types {
    margin-right: auto;
  }
  .home-calendar-panel {
    padding: 8px 8px 0;
  }
  .home-calendar-scroll {
    max-height: 480px;
  }
}
@media (max-width: 400px) {
  .home-calendar-types {
    width: 100%;
  }
  .home-calendar-navigation {
    flex: 1 1 auto;
  }
  .home-calendar-navigation strong {
    min-width: 96px;
  }
}
