/* Calendar timeline (js/calendar.js): grouped event rows. */

/* ---------- Calendar timeline (js/calendar.js) ---------- */
.timeline { display: flex; flex-direction: column; gap: var(--sp-6); }
.timeline-group { display: flex; flex-direction: column; gap: var(--sp-3); }
/* .timeline-group-title takes the shared eyebrow rule in base.css (F-81). */
.cal-event {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
  width: 100%;
  transition: transform 0.08s ease, border-color 0.08s ease;
}
.cal-event:hover { transform: translateY(-1px); border-color: var(--accent); }
.cal-event.overdue { border-left-color: var(--danger); }
.cal-event.this-week { border-left-color: var(--warning); }
/* 88px holds "Nov 24" and "19d overdue" on one line each; the year shows
   only when it is not this year (issue #16 F-72). */
.cal-event .cal-date {
  flex-shrink: 0;
  width: 5.5rem;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cal-event .cal-date-main { font-size: var(--fs-sm); font-weight: 700; }
.cal-event .cal-date-rel { font-size: var(--fs-2xs); font-weight: 500; margin-top: var(--sp-0); }
.cal-event .cal-body { flex: 1; min-width: 0; }
.cal-event .cal-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event .cal-course { font-size: var(--fs-sm); color: var(--text-muted); }
