/* 일정 화면의 달력 (10/27, static/schedule_calendar.js가 #schedule-calendar 안을 채운다). 색·모서리·그림자·간격은 common.css의 토큰(var(--…))만 쓴다.
   카드는 일정 목록 카드와 같은 토큰(--surface · 1px --line · --r-lg · --shadow-card). 화면 읽기용 caption은 schedule.css의 .schedule-sr-only를 같이 쓴다.
   표는 칸 폭을 똑같이 나눠(table-layout: fixed) 320px 폰에서도 7칸이 가로 스크롤 없이 들어간다 (320 − 화면 양옆 40 − 카드 선 2 − 안쪽 24 − 칸 사이 16 = 238px → 칸 약 34px, 숫자 원 28px). 칸 높이 44px.
   글자: 날짜 숫자 15px, 요일 머리글 13px, 범례 14px. 칸은 누르는 것이 아니다 (hover·포커스 모양 없음).
   명암비: 위험색 글자 흰 바탕 6.45:1 · 쉬는 날 칸(--danger-soft) 위 5.54:1, 오늘 원 흰 글자 14.30:1, 요일 머리글(--text-sub) 6.32:1.
   행사 점은 --accent 바탕 + 1px --warning 테두리라 흰 칸 위에서도 보인다 (테두리 --warning 흰 바탕 6.78:1). */

.schedule-calendar {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.schedule-cal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.schedule-cal-weekday {
  padding: var(--space-1) 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}

.schedule-cal-weekday.is-sunday { color: var(--danger); }

.schedule-cal-day {
  height: 44px;
  padding: 2px 0;
  border-radius: var(--r-sm);
  text-align: center;
  vertical-align: top;
}

.schedule-cal-day.is-off { background: var(--danger-soft); }

.schedule-cal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.schedule-cal-day.is-sunday .schedule-cal-num,
.schedule-cal-day.is-off .schedule-cal-num { color: var(--danger); }

.schedule-cal-day.is-today .schedule-cal-num {
  background: var(--primary);
  color: var(--on-primary);
}

.schedule-cal-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 2px auto 0;
  border: 1px solid var(--warning);
  border-radius: var(--r-pill);
  background: var(--accent);
}

.schedule-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.schedule-cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.schedule-cal-legend-text {
  color: var(--text-sub);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.schedule-cal-swatch {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: var(--r-pill);
}

.schedule-cal-swatch.is-off { border: 1px solid var(--danger); background: var(--danger-soft); }
.schedule-cal-swatch.is-event { border: 1px solid var(--warning); background: var(--accent); }
.schedule-cal-swatch.is-today { background: var(--primary); }
