@charset "utf-8";

.schedule-page {
  --schedule-ink: #172023;
  --schedule-paper: #f4f5f2;
  --schedule-white: #fff;
  --schedule-muted: #687174;
  --schedule-line: #cbd1ce;
  --schedule-green: #2e7460;
  --schedule-red: #a54d43;
  --schedule-blue: #326d8b;
  overflow: clip;
  color: var(--schedule-ink);
  background: var(--schedule-paper);
}

.schedule-page *,
.schedule-page *::before,
.schedule-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.schedule-page :where(h1, h2, p, ul) {
  margin: 0;
}

.schedule-page ul {
  padding: 0;
  list-style: none;
}

.schedule-shell {
  width: min(92%, 1240px);
  margin-inline: auto;
}

.schedule-kicker {
  color: #7fb1c8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.schedule-hero {
  padding: calc(var(--header-height, 80px) + 86px) 0 86px;
  color: #f4f7f6;
  background: #1b292e;
}

.schedule-hero__grid,
.schedule-guide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 90px;
  align-items: end;
}

.schedule-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem);
  font-weight: 500;
  line-height: 1.2;
}

.schedule-hero__lead {
  color: #d5dddc;
  font-size: 0.9rem;
  line-height: 2;
}

.schedule-hero__lead p + p {
  margin-top: 16px;
  color: #9faeaf;
  font-size: 0.75rem;
}

.schedule-main {
  padding: clamp(72px, 9vw, 130px) 0;
}

.schedule-toolbar {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
  text-align: center;
}

.schedule-toolbar > a {
  display: grid;
  width: 56px;
  height: 48px;
  border: 1px solid var(--schedule-line);
  background: var(--schedule-white);
  place-items: center;
  font-size: 1.2rem;
}

.schedule-toolbar > a:hover,
.schedule-toolbar > a:focus-visible {
  color: #fff;
  background: var(--schedule-ink);
}

.schedule-toolbar h2 {
  margin-top: 7px;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  font-weight: 500;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--schedule-muted);
  font-size: 0.72rem;
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.schedule-legend i {
  width: 8px;
  height: 8px;
  background: var(--schedule-blue);
}

.schedule-legend i.is-available { background: var(--schedule-green); }
.schedule-legend i.is-unavailable { background: var(--schedule-red); }

.schedule-notice,
.schedule-empty {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--schedule-blue);
  background: #e7eef1;
  font-size: 0.78rem;
  line-height: 1.7;
}

.schedule-notice.is-error {
  border-left-color: var(--schedule-red);
  background: #f3e7e4;
}

.schedule-calendar {
  border-top: 1px solid var(--schedule-line);
  border-left: 1px solid var(--schedule-line);
  background: var(--schedule-white);
}

.schedule-calendar__weekdays,
.schedule-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.schedule-calendar__weekdays span {
  padding: 12px;
  border-right: 1px solid var(--schedule-line);
  border-bottom: 1px solid var(--schedule-line);
  color: var(--schedule-muted);
  font-size: 0.7rem;
  text-align: center;
}

.schedule-calendar__weekdays span:first-child { color: var(--schedule-red); }
.schedule-calendar__weekdays span:last-child { color: var(--schedule-blue); }

.schedule-day {
  min-width: 0;
  min-height: 142px;
  padding: 12px;
  border-right: 1px solid var(--schedule-line);
  border-bottom: 1px solid var(--schedule-line);
}

.schedule-day.is-other-month {
  color: #aeb4b4;
  background: #f1f2f0;
}

.schedule-day.is-today {
  box-shadow: inset 0 0 0 2px var(--schedule-blue);
}

.schedule-day__date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.schedule-day__date time {
  font-size: 0.76rem;
  font-weight: 700;
}

.schedule-day__weekday {
  display: none;
}

.schedule-day__events {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.schedule-event {
  overflow: hidden;
  padding: 6px 7px;
  border-left: 3px solid var(--schedule-blue);
  background: #e7eff3;
  font-size: 0.67rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.schedule-event span {
  display: block;
  color: var(--schedule-muted);
  font-size: 0.6rem;
}

.schedule-event.is-available {
  border-left-color: var(--schedule-green);
  background: #e2eee9;
}

.schedule-event.is-unavailable {
  border-left-color: var(--schedule-red);
  background: #f2e4e2;
}

.schedule-empty {
  margin-top: 20px;
  margin-bottom: 0;
  border-left-color: #8a9292;
  background: #e9ebea;
}

.schedule-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--schedule-muted);
  font-size: 0.7rem;
}

.schedule-meta a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--schedule-ink);
  color: var(--schedule-ink);
}

.schedule-guide {
  padding: clamp(78px, 9vw, 130px) 0;
  color: #edf2f1;
  background: #26373b;
}

.schedule-guide h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.45;
}

.schedule-guide li {
  padding: 15px 0 15px 22px;
  border-bottom: 1px solid #526165;
  color: #cbd4d2;
  font-size: 0.84rem;
  line-height: 1.8;
  position: relative;
}

.schedule-guide li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  width: 6px;
  height: 6px;
  background: #7fb1c8;
}

.schedule-guide a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 18px 0;
  border-bottom: 1px solid #7fb1c8;
}

@media (max-width: 900px) {
  .schedule-hero__grid,
  .schedule-guide__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .schedule-day {
    min-height: 112px;
    padding: 8px;
  }
}

@media (max-width: 680px) {
  .schedule-shell {
    width: min(100% - 32px, 1240px);
  }

  .schedule-hero {
    padding-top: calc(var(--header-height, 68px) + 58px);
  }

  .schedule-toolbar {
    grid-template-columns: 46px 1fr 46px;
    gap: 12px;
  }

  .schedule-toolbar > a {
    width: 46px;
    height: 44px;
  }

  .schedule-legend {
    justify-content: flex-start;
  }

  .schedule-calendar {
    border-left: 0;
    background: transparent;
  }

  .schedule-calendar__weekdays {
    display: none;
  }

  .schedule-calendar__grid {
    display: block;
  }

  .schedule-day {
    display: none;
  }

  .schedule-day.has-events.is-current-month {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    min-height: 0;
    padding: 16px 0;
    border-right: 0;
    background: transparent;
  }

  .schedule-day.is-today {
    box-shadow: none;
  }

  .schedule-day__date {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
  }

  .schedule-day__weekday {
    display: inline;
    color: var(--schedule-muted);
    font-size: 0.68rem;
  }

  .schedule-day__events {
    margin-top: 0;
  }

  .schedule-event {
    padding: 9px 10px;
    font-size: 0.74rem;
  }

  .schedule-meta {
    display: grid;
  }
}
