/* ── Skeleton loaders ──────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    color-mix(in srgb, var(--border) 50%, var(--surface)) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton--day {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.skeleton--week {
  flex: 1;
  border-radius: var(--radius-sm);
  height: 28px;
  align-self: center;
  width: 40px;
}

/* stagger shimmer phase per cell so the wave sweeps across */
.skeleton--day:nth-child(7n+2), .skeleton--week:nth-child(2) { animation-delay: 0.05s; }
.skeleton--day:nth-child(7n+3), .skeleton--week:nth-child(3) { animation-delay: 0.10s; }
.skeleton--day:nth-child(7n+4), .skeleton--week:nth-child(4) { animation-delay: 0.15s; }
.skeleton--day:nth-child(7n+5), .skeleton--week:nth-child(5) { animation-delay: 0.20s; }
.skeleton--day:nth-child(7n+6)                               { animation-delay: 0.25s; }
.skeleton--day:nth-child(7n+7)                               { animation-delay: 0.30s; }
