/* ═══════════════════════════════════════
   styles/schedule.css — 주간 시간표 그리드
   책 오른쪽 페이지 안에 표시됩니다.
   ═══════════════════════════════════════ */

.schedule-grid {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}

.schedule-grid-header {
  display: grid;
  grid-template-columns: 36px repeat(7, 1fr);
  border-bottom: 1.5px solid rgba(44, 36, 22, .12);
  background: rgba(244, 240, 230, .5);
}

.schedule-grid-header div {
  text-align: center;
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 700;
  color: var(--ink-light);
  padding: 5px 0;
  border-right: 1px solid rgba(44, 36, 22, .06);
}

.schedule-grid-header div:last-child {
  border-right: none
}

.schedule-grid-body {
  position: relative;
  overflow-y: auto;
  max-height: 400px;
  scrollbar-width: none;
}

.schedule-grid-body::-webkit-scrollbar {
  display: none
}

.schedule-grid-body.print-mode {
  max-height: none;
  overflow: visible
}

.schedule-row {
  display: grid;
  grid-template-columns: 36px repeat(7, 1fr);
  height: 18px;
  border-bottom: 1px solid rgba(44, 36, 22, .04);
}

.schedule-time {
  font-family: var(--font-sans);
  font-size: .5rem;
  color: var(--ink-faint);
  text-align: right;
  padding-right: 4px;
  line-height: 18px;
  border-right: 1px solid rgba(44, 36, 22, .06);
  background: rgba(244, 240, 230, .3);
}

.schedule-cell {
  border-right: 1px solid rgba(44, 36, 22, .03);
}

.schedule-cell:last-child {
  border-right: none
}

/* 블록 공통 */
.sched-block {
  position: absolute;
  width: 90%;
  left: 5%;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1px 3px;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.sched-block-title {
  font-family: var(--font-sans);
  font-size: .52rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-block-time {
  font-family: var(--font-sans);
  font-size: .45rem;
  opacity: .85;
  margin-top: 1px;
}

/* 고정 일정 (회색) */
.sched-block.fixed {
  background: var(--cover);
  color: var(--paper)
}

/* 공부 일정 (과목별 색상) */
.sched-block.study-0 {
  background: #7a5c1e;
  color: #fff
}

.sched-block.study-1 {
  background: #2e5040;
  color: #fff
}

.sched-block.study-2 {
  background: #4a2a50;
  color: #fff
}

.sched-block.study-3 {
  background: #8b4513;
  color: #fff
}

.sched-block.study-4 {
  background: #2a4060;
  color: #fff
}

.sched-block.study-5 {
  background: #5a2838;
  color: #fff
}

.sched-block.study-6 {
  background: #3a5a3a;
  color: #fff
}