/* Grade 2–5 and Grade 6–8 schedule pages (design artboards 4d/4e desktop, 4f/4g mobile). */

/* One grid holds heading, lede, photo and the schedule so the photo can sit
   beside the schedule on desktop and between the heading and lede on a phone. */
.sched-layout { display: grid; gap: 0; padding-block: clamp(22px, 4.4vw, 56px) clamp(24px, 3vw, 40px); }
.sched-head { order: 1; }
.sched-photo { order: 2; }
.sched-lede { order: 3; }
.sched-body { order: 4; }
.sched-foot { order: 5; }
@media (min-width: 900px) {
  .sched-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-areas: "head head" "lede lede" "body photo" "foot foot";
    column-gap: 48px;
  }
  .sched-head { grid-area: head; }
  .sched-lede { grid-area: lede; }
  .sched-body { grid-area: body; }
  .sched-photo { grid-area: photo; }
  .sched-foot { grid-area: foot; }
}

.sched-head .eyebrow { margin: 0; }
.sched-head h1 { margin: 14px 0 10px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; }
.sched-lede { margin: 0 0 32px; font-size: 18px; line-height: 1.65; max-width: 660px; }
.sched-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 10px; }
/* Grade 2–5 and 6–8: four square photos in place of the single photo (Karen, Nov 2026). */
.sched-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sched-photo .sched-collage img { height: auto; max-height: none; aspect-ratio: 1 / 1; object-position: center 25%; margin: 0; }
.sched-photo .sched-collage .sched-collage__img--left { object-position: 20% 25%; }
.sched-photo .sched-collage .sched-collage__img--mid { object-position: 55% 50%; }
.sched-photo .sched-collage .sched-collage__img--right { object-position: 62% 50%; }
.sched-photo .sched-collage .sched-collage__img--low { object-position: 45% 52%; }
@media (max-width: 899px) {
  .sched-head h1 { margin: 10px 0; }
  .sched-photo img { height: 200px; margin-bottom: 12px; }
  .sched-lede { font-size: 15px; margin-bottom: 16px; }
}

/* "A typical day" timeline. */
.sched-label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--navy); margin: 0 0 20px; }
.sched-day { margin: 0; }
.sched-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 22px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.sched-row dt { font-size: 14px; font-weight: 700; color: var(--brick); letter-spacing: .04em; padding-top: 3px; }
.sched-row dd { margin: 0; }
.sched-row strong { display: block; font-size: 17px; font-weight: 700; color: var(--navy); }
.sched-row span { display: block; font-size: 15px; line-height: 1.6; color: var(--warm-600); margin-top: 4px; }
@media (max-width: 599px) {
  .sched-label { margin-bottom: 6px; }
  .sched-row { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .sched-row dt { font-size: 13px; padding-top: 0; }
  .sched-row strong { font-size: 16px; }
  .sched-row span { font-size: 14px; margin-top: 3px; }
}

/* Note under the schedule. */
.sched-note {
  background: var(--cream); border-left: 3px solid var(--tan); padding: 18px 20px;
  border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.6; color: var(--warm-600);
  margin-top: 26px; max-width: 640px;
}
.sched-note p { margin: 0; font-size: inherit; color: inherit; max-width: none; }
@media (max-width: 599px) { .sched-note { padding: 14px 16px; font-size: 14px; margin-top: 18px; } }

/* Photo gallery under the Grade 2–5 and 6–8 schedules (Karen, Nov 2026): equal squares,
   three across on a computer and two across on a phone, so every row is full. The 6–8 page
   has two landscape photos left, shown as a pair. */
.sched-gallery { order: 5; margin-top: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .sched-gallery { grid-area: gallery; } .sched-layout { grid-template-areas: "head head" "lede lede" "body photo" "gallery gallery" "foot foot"; } }
.sched-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sched-gallery__grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sched-gallery__item { margin: 0; overflow: hidden; border-radius: 10px; background: var(--cream); }
.sched-gallery__item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; display: block; }
.sched-gallery__grid--pair img { aspect-ratio: 4 / 3; }
.sched-gallery__img--top { object-position: center 12% !important; }
.sched-gallery__img--mid { object-position: center 50% !important; }
.sched-gallery__img--low { object-position: center 65% !important; }
.sched-gallery__img--left { object-position: 4% 50% !important; }
@media (max-width: 899px) {
  .sched-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.sched-foot { order: 6; }

/* Back button: quiet outline in the rule color. */
.sched-foot { margin-top: clamp(18px, 3vw, 40px); }
.sched-back { border-color: var(--rule); padding: 14px 22px; font-size: 13px; }
@media (max-width: 599px) { .sched-back { padding: 12px 18px; } }
