/* Roadmap Hub – shared loading primitives (pairs with assets/loading.js).
 * Plain CSS on purpose: it must render before (and without) Tailwind or any script.
 * Design: dark neutral surfaces, 1px borders, existing card radii, a barely-there opacity pulse.
 * No shimmer, no spinners, no overlays. Skeletons only exist inside [data-rh-region] containers. */
:root{--rh-skel:#171c18;--rh-skel-line:#1d241f;--rh-skel-border:#232b25;--rh-skel-radius:14px}

/* Skeletons only show when JS is present (loading.js adds .rh-js) so they can always be removed. */
.rh-skel-wrap{display:none}
.rh-js .rh-skel-wrap{display:contents}

.rh-sk{display:block;width:var(--w,100%);height:var(--h,12px);max-width:100%;border-radius:6px;background:var(--rh-skel-line);flex:none;animation:rh-pulse 2.4s ease-in-out infinite}
.rh-sk-card{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-height:var(--h,120px);padding:20px;border:1px solid var(--rh-skel-border);border-radius:var(--rh-skel-radius);background:var(--rh-skel);animation:rh-pulse 2.4s ease-in-out infinite}
.rh-sk-card .rh-sk{animation:none}
.rh-sk-row{box-sizing:border-box;display:flex;align-items:center;gap:14px;min-height:var(--h,56px);padding:0 16px;border:1px solid var(--rh-skel-border);border-radius:10px;background:var(--rh-skel);animation:rh-pulse 2.4s ease-in-out infinite}
.rh-sk-row .rh-sk{animation:none}
.rh-sk-chip{box-sizing:border-box;display:block;flex:none;width:var(--w,90px);height:var(--h,36px);border:1px solid var(--rh-skel-border);border-radius:8px;background:var(--rh-skel);animation:rh-pulse 2.4s ease-in-out infinite}
.rh-sk-stack{display:flex;flex-direction:column;gap:var(--g,14px);width:100%}
@media (max-width:639px){.rh-sk-card,.rh-sk-row{min-height:var(--hm,var(--h))}}
@keyframes rh-pulse{0%,100%{opacity:1}50%{opacity:.7}}

/* A page script collapses its lesson list on small screens; do not show a taller skeleton than that. */
@media (max-width:850px){.rh-skel-wrap.rh-hide-850{display:none!important}}

/* Graceful failure message (loading.js) */
.rh-skel-fail{margin:0;padding:16px 18px;border:1px solid var(--rh-skel-border);border-radius:10px;background:var(--rh-skel);color:#a0aaa0;font-size:14px}

/* Lucide placeholders reserve their space until the (deferred) library swaps in the <svg>. Zero specificity:
   any Tailwind/page rule (w-4, hidden, …) still wins. */
:where(i[data-lucide]){display:inline-block;width:1em;height:1em;flex:none}

/* Roadmap hero button is filled by JS: show a neutral placeholder instead of an empty accent block. */
.cta-btn:empty{min-width:15.5rem;background:var(--rh-skel);border-color:var(--rh-skel-border);pointer-events:none}

@media (prefers-reduced-motion:reduce){.rh-sk,.rh-sk-card,.rh-sk-row,.rh-sk-chip{animation:none}}
