/* ==========================================================
   calendar.css — Calendar cards (行事曆與教節)
   Loaded on front page; will also load on any future
   page template that includes the calendar pattern.
   ========================================================== */

.cal-card {
  background-color: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-sizing: border-box;
}

.cal-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.cal-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--wp--preset--color--secondary);
  border-radius: 8px;
  color: var(--wp--preset--color--muted);
  flex-shrink: 0;
}

.cal-card-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.cal-card-title:hover {
  color: var(--wp--preset--color--accent);
}

.cal-events {
  display: flex;
  flex-direction: column;
}

.cal-event {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.cal-event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cal-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--muted);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.cal-event-content {
  flex: 1;
}

.cal-event-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
  margin: 0 0 0.125rem;
  line-height: 1.45;
}

.cal-event-sub {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin: 0;
  line-height: 1.3;
}
