/* Version 2: every absent teacher has a clearly separated timetable. */
.result-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px;
}

.teacher-section {
  overflow: hidden;
  border: 1px solid #cbd8e6;
  border-radius: 22px;
  background: #edf4fa;
  box-shadow: 0 9px 28px #17365d12;
}

.teacher-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  background: var(--navy);
  color: #fff;
}

.teacher-section-head h3 { margin: 3px 0 0; font-size: 18px; }
.teacher-number { font-size: 10px; letter-spacing: .14em; font-weight: 900; color: #bfd6ec; }
.teacher-count { flex: 0 0 auto; text-align: right; }
.teacher-count strong { display: block; font-size: 22px; line-height: 1; }
.teacher-count span { display: block; margin-top: 4px; font-size: 10px; color: #d7e5f2; }
.teacher-lessons { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 10px; }
.teacher-lessons .lesson { border-radius: 15px; padding: 14px; }

@media (min-width: 680px) {
  .teacher-lessons { grid-template-columns: 1fr 1fr; padding: 12px; }
}

@media print {
  .teacher-section { break-inside: avoid; margin-bottom: 14px; box-shadow: none; }
  .teacher-lessons { grid-template-columns: 1fr 1fr; }
  .teacher-lessons .lesson { margin-bottom: 0; }
}
