/* ============================================================
   侧边小组件：日历卡片
   ============================================================ */

#np-calendar {
  padding: 0;
}

#np-calendar .np-cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

#np-calendar .np-cal-head b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}

#np-calendar .np-cal-head span {
  font-size: 12px;
  color: var(--muted);
}

#np-calendar .np-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

#np-calendar .np-cal-week {
  padding-bottom: 6px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

#np-calendar .np-cal-day {
  height: 27px;
  line-height: 27px;
  border-radius: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink);
  cursor: default;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

#np-calendar .np-cal-day:hover {
  background: rgba(91, 124, 153, .14);
  transform: translateY(-1px);
}

#np-calendar .np-cal-day.muted {
  color: rgba(0, 0, 0, .18);
}

#np-calendar .np-cal-day.today {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(91, 124, 153, .45);
}

#np-calendar .np-cal-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

[data-theme='dark'] #np-calendar .np-cal-day.muted {
  color: rgba(255, 255, 255, .18);
}

[data-theme='dark'] #np-calendar .np-cal-day:hover {
  background: rgba(143, 183, 209, .16);
}
