/* src/web/static/css/character_editions_rail.css
   The compact "Collected in N editions" cover rail at the bottom of
   /character/<slug> (_character_editions_rail.html + character_editions_rail.js).
   Reuses the app's shared theme tokens (theme.css) so it stays consistent
   across light/dark, same pattern as character_appearances.css. */

.character-editions-rail .cer-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.character-editions-rail .cer-browse-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand, inherit);
  text-decoration: none;
  margin-left: auto;
}

.character-editions-rail .cer-browse-all:hover {
  text-decoration: underline;
}

.character-editions-rail .cer-strip {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding: .6rem 0 .9rem;
  scrollbar-width: thin;
}

.character-editions-rail .cer-card {
  flex: 0 0 auto;
  width: 92px;
}

.character-editions-rail .cer-card img {
  width: 92px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: var(--surface-2, #f5f5f5);
}

.character-editions-rail .cer-more {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-radius: 6px;
  background: var(--surface-2, #f5f5f5);
  border: 1px solid var(--border, #ddd);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

/* --- loading state --- */

/* Inline "Loading editions…" label that replaces the count in the head.
   .skel-spinner + skel-sheen keyframes come from the globally-bundled
   skeleton.css, so no extra include or bundle rebuild is needed. */
.character-editions-rail .cer-loading {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted, #888);
  font-weight: 500;
}

/* Ghost cover cards sized to exactly match .cer-card img (92x140) so the real
   covers replace them with zero layout shift. Reuses the shared .skel-cover
   sheen; the overrides just pin the box to the rail's card geometry. */
.character-editions-rail .cer-skel-card {
  flex: 0 0 auto;
  width: 92px;
}

.character-editions-rail .cer-skel-card .skel-cover {
  width: 92px;
  height: 140px;
  aspect-ratio: auto;
  margin-bottom: 0;
}
