/* wgf-pet-journal.css - the battle pet detail page's Pet Journal body (battle_pet_journal_render.py).
 * Its own sheet because wgf-battle-pets.css carries no asset paths by contract
 * (tests/test_battle_pet_app_render.py); every url() here is client art from assets/ui/. */
/* =============================================================================
   PET JOURNAL (battle_pet_journal_render.py, 2026-10-10 in-game lane): Collections -> Pets,
   1:1 from Blizzard_PetCollection.xml. Frame = wgf-mount-journal.css; this is the Pets tab
   body: the LeftInset companion list (petlist-button* plate, shared .mj-btn) and the
   PetJournalPetCard well with its PetCardSpell buttons. Client art only.
   ============================================================================= */
.cj--pets .cj-petbody {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}
.cj--pets .cj-petbody > .mj-list { grid-area: auto; }   /* the Mount Journal grid area does not exist here */
.cj-petcard { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.cj-pet__head { display: flex; gap: 12px; align-items: center; }
.cj-pet__ring { flex: 0 0 auto; }
.cj-pet__id { min-width: 0; }
.cj .cj-pet__name {
  margin: 0 0 4px;
  font-family: var(--font-game);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--wgf-text);
  text-shadow: var(--text-ink-outline);
}
.cj-pet__family, .cj-pet__source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-game);
  font-size: 13px;
  color: var(--wgf-gold-primary);
  text-shadow: var(--text-ink-outline);
}
.cj-pet__source { color: var(--wgf-text); }
.cj-pet__lore {
  margin: 0;
  font-family: var(--font-game);
  font-size: 13px;
  line-height: 1.45;
  color: var(--wgf-gold-primary);
  text-shadow: var(--text-ink-outline);
}
.cj-pet__abh {
  margin: 0 0 6px;
  font-family: var(--font-game);
  font-size: 13px;
  color: var(--wgf-gold-primary);
  text-shadow: var(--text-ink-outline);
}
.cj-abs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.cj-ab { display: flex; gap: 8px; align-items: flex-start; }
.cj-ab__slot {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 45px;
  background: url("/assets/ui/ui-hud-actionbar-iconframe-background.png") center / 100% 100% no-repeat;
}
.cj-ab__slot img { position: absolute; left: 4px; top: 4px; width: 38px; height: 37px; display: block; }
.cj-ab__slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/ui/ui-hud-actionbar-iconframe.png") center / 100% 100% no-repeat;
  pointer-events: none;
}
.cj-ab__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cj-ab__name {
  font-family: var(--font-game);
  font-size: 13px;
  color: var(--wgf-gold-primary);
  text-decoration: none;
  text-shadow: var(--text-ink-outline);
}
a.cj-ab__name:hover, a.cj-ab__name:focus-visible { color: var(--wgf-gold-bright); text-decoration: underline; }
.cj-ab__meta { font-size: 12px; color: var(--wgf-gold-dim, var(--wgf-gold-primary)); }
.cj-ab__desc { font-size: 12.5px; line-height: 1.4; color: var(--wgf-text); }

@media (max-width: 760px) {
  .cj--pets .cj-petbody { grid-template-columns: minmax(0, 1fr); }
  .cj--pets .cj-petcard { order: -1; }
  .cj-abs { grid-template-columns: minmax(0, 1fr); }
  .cj--pets .mj-list__rows { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .cj--pets .mj-list__rows > li { flex: 0 0 232px; }
}
