/* ============================================================================
   Schedule grid — home page calendar of the 26 weeks
   4 columns: Week label | Lecture slots | Lab slots | Notes
   ============================================================================ */

.schedule-grid {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 1fr;
  gap: 0.5rem;
  margin: 1.5rem 0;
  font-size: 0.95em;
}

.schedule-grid .sg-header {
  font-weight: 600;
  color: #495057;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8em;
}

.schedule-grid .sg-row { display: contents; }

.schedule-grid .sg-week {
  background: #2c3e50;
  color: white;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85em;
}
.schedule-grid .sg-week .sg-week-date {
  display: block;
  font-weight: 400;
  font-size: 0.85em;
  color: #adb5bd;
  margin-top: 0.15rem;
}

.schedule-grid .sg-cell {
  background: white;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  border-left: 3px solid #dee2e6;
  font-size: 0.9em;
}
.schedule-grid .sg-cell .sg-tag {
  font-size: 0.8em;
  color: #6c757d;
  display: block;
  margin-top: 0.2rem;
}

.schedule-grid .sg-lecture  { border-left-color: #2780e3; }
.schedule-grid .sg-lab      { border-left-color: #fd7e14; }
.schedule-grid .sg-notes    { border-left-color: #6c757d; background: #fafafa; }

/* Special bands */
.schedule-grid .sg-special {
  grid-column: 2 / -1;
  background: repeating-linear-gradient(
    45deg, #fff3cd, #fff3cd 10px, #fcebb8 10px, #fcebb8 20px
  );
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-style: italic;
  color: #856404;
  font-size: 0.9em;
}

.schedule-grid .sg-assessment {
  grid-column: 2 / -1;
  background: #fff8e1;
  border-left: 4px solid #e0a800;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  color: #856404;
  font-weight: 500;
  font-size: 0.9em;
}

.schedule-grid .sg-warn {
  display: inline-block;
  margin-left: 0.4rem;
  color: #c0392b;
  font-size: 0.8em;
}

/* Section divider for the two semesters */
.schedule-section {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0.5rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #2780e3;
  font-size: 1.1em;
  font-weight: 600;
  color: #2780e3;
}

@media (max-width: 720px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-grid .sg-header { display: none; }
  .schedule-grid .sg-week {
    margin-top: 0.75rem;
  }
  .schedule-grid .sg-cell::before {
    display: block;
    font-size: 0.75em;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
  }
  .schedule-grid .sg-lecture::before { content: "Lectures"; }
  .schedule-grid .sg-lab::before { content: "Labs"; }
  .schedule-grid .sg-notes::before { content: "Notes"; }
}
