/* The Pets tab of a profile (pages/players/tabs/pets.py). A grid of pet cards: the head at 64 px, the name and a Level pill, then rows of label
   (text-3, left) and value (right, tabular figures). The growth numbers sit on one line above a thin bar. */

.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--sp-3); }

.pt-card { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: var(--sp-4); }

.pt-top { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }

.pt-head { display: block; flex: none; width: 64px; height: 64px; image-rendering: pixelated; }

.pt-tile { display: grid; place-items: center; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
           color: var(--text-2); font-weight: 700; font-size: 24px; }

.pt-id { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); min-width: 0; }

.pt-name { margin: 0; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }

.pt-facts { margin: 0; display: grid; gap: var(--sp-1); }

.pt-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin: 0; font-size: 14px; }

.pt-row dt { margin: 0; color: var(--text-3); font-weight: 500; }

.pt-row dd { margin: 0; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

.pt-perk { color: var(--text) !important; font-weight: 600; }

.pt-card .pf-of-n { white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }

.pt-bar { display: block; height: 6px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }

.pt-bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--flame); }

.pt-foot { margin: 0; color: var(--text-2); font-size: 13px; }

.pt-empty { margin: 0; color: var(--text-3); }

.pt-pills { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

.pt-gen { color: var(--mc-aqua); }

.pt-mark { font-weight: 700; }
.pt-mark--mining { color: var(--trade-mining); }
.pt-mark--fishing { color: var(--trade-fishing); }
.pt-mark--gathering { color: var(--trade-gathering); }
.pt-mark--farming { color: var(--trade-farming); }

.pt-note { color: var(--text-3); font-weight: 400; }

/* each pet drawn as its card in game, its face beside it (Ross, 3 Nov 2026) */
.pt-grid--gc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--sp-4); align-items: start; }
.pt-gc { display: flex; gap: var(--sp-3); align-items: flex-start; min-width: 0; max-width: 100%; }
.pt-gc-face { flex: none; }
.pt-gc .gc { margin: 0; flex: 1 1 0; min-width: 0; }
@media (max-width: 480px) { .pt-gc { flex-direction: column; } }
