/* Month route: the seven-column calendar and its mobile agenda form. */

.schedule-jump {
  white-space: nowrap;
}

.schedule-month .schedule-stat--new > b {
  color: var(--new);
}

.schedule-month .schedule-weekhead {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  background: var(--bg);
  padding: 8px 0 6px;
}

.schedule-month .schedule-weekhead span {
  padding-left: 12px;
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.schedule-month .schedule-weekhead span.is-weekend {
  color: var(--txt-dim);
}

.schedule-month .schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-month .schedule-day {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 10px 10px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--bg-2);
  transition: border-color .15s;
}

.schedule-month .schedule-day:hover {
  border-color: var(--line);
}

.schedule-month .schedule-day.is-blank {
  min-height: 0;
  border-color: transparent;
  background: transparent;
}

.schedule-month .schedule-day.is-weekend {
  background: color-mix(in srgb, var(--bg-2) 88%, var(--bg));
}

.schedule-month .schedule-day.is-past .schedule-day__episodes {
  opacity: .55;
}

.schedule-month .schedule-day.is-today {
  border-color: color-mix(in srgb, var(--tally) 40%, var(--line));
  background: color-mix(in srgb, var(--tally) 5%, var(--bg-2));
}

.schedule-month .schedule-day.is-today::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--tally);
}

.schedule-month .schedule-day__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.schedule-month .schedule-day__number {
  color: var(--txt-dim);
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.schedule-month .schedule-day.is-today .schedule-day__number {
  color: var(--tally);
}

.schedule-month .schedule-day__weekday {
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.schedule-month .schedule-day__episodes {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.schedule-month .schedule-month-episode {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-left: -4px;
  padding: 3px 6px 3px 4px;
  border-radius: 5px;
  font-size: 12.5px;
  line-height: 1.32;
  transition: background .1s;
}

.schedule-month .schedule-month-episode:hover {
  background: var(--bg-hover);
}

.schedule-month .schedule-time {
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.schedule-month .schedule-show {
  min-width: 0;
  overflow: hidden;
  color: var(--txt-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-month .schedule-month-episode.is-followed .schedule-show {
  color: var(--txt);
  font-weight: 500;
}

.schedule-month .schedule-month-episode.is-followed .schedule-show::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--new);
  vertical-align: middle;
  transform: translateY(-1px);
}

.schedule-month .schedule-month-episode.is-followed .schedule-time {
  color: var(--txt-dim);
}

.schedule-month .schedule-month-episode.is-watched .schedule-show {
  color: var(--txt-faint);
  font-weight: 400;
}

.schedule-month .schedule-month-episode.is-watched .schedule-show::before {
  background: var(--txt-faint);
  opacity: .5;
}

.schedule-month .schedule-empty {
  margin: 0;
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 10.5px;
  opacity: .55;
}

.schedule-month .schedule-day__more {
  display: inline-block;
  padding: 4px 0 0 4px;
  color: var(--txt-faint);
  font-family: var(--f-mono);
  font-size: 10.5px;
}

.schedule-month .schedule-day__more:hover {
  color: var(--link);
}

@media (max-width: 860px) {
  .schedule-month .schedule-weekhead {
    display: none;
  }

  .schedule-month .schedule-month-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .schedule-month .schedule-day {
    min-height: 0;
  }

  .schedule-month .schedule-day.is-blank,
  .schedule-month .schedule-day.is-empty {
    display: none;
  }

  .schedule-month .schedule-day__header {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-soft);
  }
}
