/* Project cards. Opt-in: link tokens.css first, then this file.
   Fallbacks match the light lab palette when tokens are absent. */

.rv-cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 800px) {
  .rv-cards { grid-template-columns: 1fr 1fr; }
}

.rv-cards > li,
.rv-cards > .rv-card { display: flex; min-width: 0; }

/* Inside a status band the cards fill as many columns as fit, so the
   summaries keep a readable measure. */
.rv-register .rv-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: 0.5rem 2rem;
}

/* A card is an entry in a list, not a tile: a hairline above, no box, no colored bar. */
.rv-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 1rem 0 0.5rem;
  background: transparent;
  color: var(--rv-ink, #293727);
  border-top: 1px solid var(--rv-line, #bec8b1);
}

.rv-card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.25rem 0 0;
  color: var(--rv-brass, #3d4e36);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rv-card[data-status="shipped"] .rv-card-kicker { color: var(--rv-shipped, #245c32); }
.rv-card[data-status="building"] .rv-card-kicker { color: var(--rv-building, #6a4e16); }
.rv-card[data-status="exploring"] .rv-card-kicker { color: var(--rv-exploring, #2a3f68); }
.rv-card[data-status="learning"] .rv-card-kicker { color: var(--rv-learning, #6b3d28); }

.rv-card h4 {
  margin: 0;
  font-family: var(--rv-serif, Georgia, serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rv-card > p { margin: 0; color: var(--rv-muted, #3d4e36); }

.rv-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rv-line, #d2cbb8);
  color: var(--rv-ink, #1c2618);
  background: transparent;
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.04em;
}

.rv-chip-fictional { border-color: var(--rv-exploring, #2a3f68); }
.rv-chip-instrument { border-color: var(--rv-shipped, #245c32); }
.rv-chip-open { border-color: var(--rv-learning, #6b3d28); }

.rv-generated {
  display: inline-flex;
  align-items: center;
  margin: 0 0.45rem 0 0;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--rv-brass, #6a4e16);
  color: var(--rv-ink, #1c2618);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.rv-limit { margin: 0; max-width: 62ch; color: var(--rv-muted, #3d4e36); text-wrap: pretty; }

.rv-limit-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--rv-brass, #6a4e16);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-limit-text { display: block; }

.rv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rv-tags li {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--rv-line, #bec8b1);
  color: var(--rv-muted, #3d4e36);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.04em;
}

.rv-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: auto;
}

.rv-card-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rv-brass, #3d4e36);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* An empty group is one line, not a box. */
.rv-empty {
  max-width: 90ch;
  margin: 0;
  color: var(--rv-muted, #3d4e36);
}

/* The entrance starts from a visible card: a short settle, never a fade in from nothing. */
@media (prefers-reduced-motion: no-preference) {
  .rv-card { animation: rv-settle 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}

@keyframes rv-settle {
  from { opacity: 0.85; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-card { animation: none; }
}

.rv-legend {
  max-width: 42rem;
  margin: 0 0 1.75rem;
  color: var(--rv-muted, #3d4e36);
}

/* Plates sit in a compact grid separated by rules, so the empty frames
   read as one reserved series rather than eleven boxes in boxes. */
.rv-plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: 2.25rem 1.5rem;
}

.rv-plate {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 1rem 0 0;
  color: var(--rv-ink, #1c2618);
  border-top: 1px solid var(--rv-line, #d2cbb8);
}

.rv-plate h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.rv-plate-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
  color: var(--rv-brass, #6a4e16);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rv-fig {
  margin-right: 0.35rem;
  color: var(--rv-brass, #6a4e16);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rv-slot { margin: 0; min-width: 0; }

.rv-slot-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 7.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.9rem;
  background: var(--rv-surface, #fbf8f2);
  color: var(--rv-ink, #1c2618);
  border: 1px dashed var(--rv-line, #d2cbb8);
}

.rv-slot-kicker {
  margin: 0;
  color: var(--rv-brass, #6a4e16);
  font: 12px/1.4 var(--rv-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-slot-empty {
  margin: 0;
  max-width: 62ch;
  color: var(--rv-ink, #1c2618);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rv-slot figcaption,
.rv-portrait figcaption {
  margin-top: 0.7rem;
  color: var(--rv-muted, #3d4e36);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rv-reserve {
  display: block;
  margin-top: 0.35rem;
  color: var(--rv-muted, #3d4e36);
  font: 12px/1.45 var(--rv-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.rv-slot-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.rv-contact-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-contact-sheet li {
  display: flex;
  align-items: flex-end;
  min-height: 3rem;
  min-width: 0;
  margin: 0;
  padding: 0.45rem;
  background: var(--rv-bg, #f4f0e6);
  color: var(--rv-muted, #3d4e36);
  font: 12px/1.35 var(--rv-mono, ui-monospace, Consolas, monospace);
}

.rv-type-lines {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-type-lines li {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rv-line, #d2cbb8);
  color: var(--rv-ink, #1c2618);
}
