/* YAT — pack gallery. Cards read like classified listings: a rule on top,
   the render, then the facts. No shadows, no rounded corners, no hover lift. */

.cards-grid {
  display: grid;
  gap: 2.75rem clamp(1.5rem, 3.5vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}

/* Cards stretch to their grid row; the meta line rides the bottom so the
   footing rules line up across a row even when descriptions differ. */
.card { border-top: 2px solid var(--ink); padding-top: 0.9rem; display: flex; flex-direction: column; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.card-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.card-name .en { display: block; font-family: var(--sans); font-size: 0.62em; color: var(--ink-3); margin-top: 0.15rem; }
.card-id {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3);
  white-space: nowrap; padding-top: 0.2rem;
}

.card-shot { margin: 0.9rem 0 0.85rem; border: 1px solid var(--rule); background: #fff; padding: 5px; line-height: 0; }
.card-shot img { display: block; width: 100%; height: auto; }

.card-shot.placeholder {
  aspect-ratio: 800 / 480;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; background: var(--paper-2); border-style: dashed; line-height: 1.4;
  text-align: center; padding: 1rem;
}
.card-shot.placeholder .ph-mark { width: 1.6rem; height: 1.6rem; color: var(--rule); }
.card-shot.placeholder .ph-text { font-size: 0.76rem; color: var(--ink-3); max-width: 22ch; }

.card-desc { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 0.7rem; }
.card-desc .en { display: block; color: var(--ink-3); font-size: 0.92em; margin-top: 0.3rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.chip {
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.5;
  border: 1px solid var(--rule); background: #fff; color: var(--ink-2);
  padding: 0.15rem 0.45rem; white-space: nowrap;
}
.chip .k { color: var(--ink); }
.chip .v { color: var(--ink-3); }
.chip.req { border-color: var(--seal); }
.chip.more { border-style: dashed; color: var(--ink-3); }

.card-meta {
  margin-top: auto;
  border-top: 1px solid var(--rule); padding-top: 0.5rem;
  font-size: 0.75rem; color: var(--ink-3); line-height: 1.6;
  display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; justify-content: space-between;
}
.card-meta .hosts { font-family: var(--mono); font-size: 0.95em; word-break: break-all; }
.card-meta a { border-bottom-color: transparent; }
.card-meta a:hover { border-bottom-color: var(--seal); }

#showcase-canvas { display: block; width: 100%; height: auto; background: #fff; }
#render-note { flex: 1 1 14rem; }

@media (max-width: 30rem) {
  .cards-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
