/* Skeleton loaders: the shape of what's coming, with a soft shimmer.
   Hidden for the first 300 ms so fast loads never flash; static when Reduce Motion is on; tuned for light and dark. */
:root { --sk-base: rgba(11, 40, 91, .07); --sk-glint: rgba(11, 40, 91, .13); }
html[data-theme="dark"] { --sk-base: rgba(255, 255, 255, .07); --sk-glint: rgba(255, 255, 255, .15); }
.sp-skeleton { animation: sp-skel-in var(--sp-dur-glide) var(--sp-ease-glide) .3s both; }
.sp-skel { display: block; border-radius: 10px; background: linear-gradient(100deg, var(--sk-base) 30%, var(--sk-glint) 50%, var(--sk-base) 70%); background-size: 300% 100%; animation: sp-skel-shimmer 1.4s ease-in-out infinite; }
.sp-skel.line { height: 12px; margin: 8px 0; }
.sp-skel.title { height: 18px; width: 45%; margin: 4px 0 10px; }
.sp-skel.price { height: 26px; width: 60%; margin: 6px 0; }
.sp-skel.pill { height: 40px; width: 210px; border-radius: 999px; margin: 4px 0 14px; }
.sp-skel.short { width: 55%; } .sp-skel.mid { width: 75%; }
.sp-skel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 18px; }
.sp-skel-card { padding: 16px; border-radius: 22px; border: 1.5px solid var(--line, #d7def0); }
/* Real content fades in where the skeleton was. */
.sp-fade-in { animation: sp-skel-in var(--sp-dur-glide) var(--sp-ease-glide) both; }
@keyframes sp-skel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-skel-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sp-skeleton, .sp-skel, .sp-fade-in { animation: none; } }
