/* Recap · Timetable page · Desktop / wide screens (≥ 1024px)
   Loaded only on wide viewports (media attribute in schedule.html) → the phone layout is untouched.
   The day becomes a real timetable view: morning panel on one side, afternoon panel on the other,
   lunch break as a banner between the title and the panels. */

@media (min-width: 1024px) {

  #sched { padding-inline: clamp(40px, 5vw, 110px); padding-top: 84px; padding-bottom: 130px; }
  #sched > .hdr-note-wrap { width: 100%; max-width: 680px; margin-inline: auto; }
  #sched .hdr-note .sub { font-size: 1.2rem; }

  /* ---------- day tabs : centred, roomy ---------- */
  #sched .dtabs { width: 100%; max-width: 940px; margin: 6px auto 22px; padding: 9px; gap: 10px; top: 12px; }
  #sched .dtab { padding: 12px 6px 10px; font-size: 1.15rem; border-radius: 16px; transition: transform .18s ease, background .18s ease; }
  #sched .dtab small { font-size: .78rem; }
  #sched .dtab .dots { height: 6px; } #sched .dtab .dots i { width: 6px; height: 6px; }

  /* ---------- the day : [ title ] / [ break ] / [ morning | afternoon ] ---------- */
  #sched #sched-days { width: 100%; max-width: 1320px; margin-inline: auto; }
  #sched #sched-days .day { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3.4vw, 56px); row-gap: 0; align-items: start; }
  #sched #sched-days .day > h3 { grid-column: 1 / -1; grid-row: 1; justify-content: center; margin: 4px 0 18px; font-size: 2.1rem; }
  #sched #sched-days .day > h3::before { width: 10px; height: 10px; }
  #sched #sched-days .tod-break { grid-column: 1 / -1; grid-row: 2; margin: 0 0 22px; font-size: .95rem; }
  #sched #sched-days .tod.am { grid-column: 1; grid-row: 3; }
  #sched #sched-days .tod.pm { grid-column: 2; grid-row: 3; }
  /* only one half-day filled : a single centred column */
  #sched #sched-days .day:not(:has(.tod.am)) .tod.pm,
  #sched #sched-days .day:not(:has(.tod.pm)) .tod.am { grid-column: 1 / -1; width: 100%; max-width: 780px; margin-inline: auto; }
  #sched #sched-days .day:not(:has(.tod.am)) .tod.pm, #sched #sched-days .day:not(:has(.tod.pm)) .tod.am { grid-row: 3; }
  #sched #sched-days .rb-end { grid-column: 1 / -1; grid-row: 4; }
  #sched .day-empty { grid-column: 1 / -1; grid-row: 3; min-height: max(420px, calc(100svh - 440px)); }

  #sched .tod { padding: 18px 18px 18px; border-radius: 26px; }
  #sched .tod-h { margin: 0 4px 16px; gap: 14px; }
  #sched .tod-ic { width: 52px; height: 52px; border-radius: 16px; }
  #sched .tod-ic svg { width: 30px; height: 30px; }
  #sched .tod-tt b { font-size: 2rem; }
  #sched .tod-tt small { font-size: .84rem; }
  #sched .tod-t { font-size: .92rem; padding: 7px 14px; }
  #sched .stack { gap: 18px; }

  /* ---------- class cards ---------- */
  #sched .pcard { padding: 16px 16px 14px; gap: 12px; }
  #sched .p-head { gap: 14px; }
  #sched .ic { width: 46px; height: 46px; border-radius: 14px; }
  #sched .ic svg { width: 25px; height: 25px; }
  #sched .p-name b { font-size: 1.75rem; }
  #sched .chip { font-size: .84rem; padding: 5px 10px; }
  #sched .chip svg { width: 14px; height: 14px; }
  #sched .irow { height: 36px; }
  #sched .ilab { font-size: 1.2rem; }
  #sched .pill, #sched .ival { font-size: .92rem; }
  #sched .nit .nt { font-size: .95rem; }
  #sched .nadd input { font-size: .95rem; padding: 9px 12px; }
  #sched .nbody .t, #sched .nhead .t { font-size: 1.3rem; }
  #sched .pedit, #sched .pdel { width: 38px; height: 38px; }

  @media (hover: hover) {
    #sched .dtab:not(.on):hover { transform: translateY(-3px); background: color-mix(in srgb, var(--gold) 14%, var(--card)); }
    #sched .pcard { transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease; }
    #sched .pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 22%, transparent); }
  }

}

@media (min-width: 1700px) {
  #sched #sched-days { max-width: 1560px; }
  #sched .dtabs { max-width: 1040px; }
}
