/* Hunter pet guides beside /pets (pages/petguides.rs, petguide.js): tabs between the guides, beast cards by level
   band with filters, and a table of teachers per ability rank. Builds on guide.css and pets.css; colours from app.css only. */
.pg { max-width: 1180px; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.pg-nav a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text) !important; text-decoration: none; font-size: 14px;
}
.pg-nav a:hover { border-color: var(--muted); }
.pg-nav a[aria-current="page"] { border-color: var(--gold); background: var(--raise); color: var(--gold) !important; font-weight: 600; }
.pg-nav a.pg-nav-x { background: none; color: var(--field) !important; }
.pg-nav-sp { flex: 1; }

/* how to tame (the reading column may shrink below the macro's width; the macro scrolls inside) */
.pg .gd-main, .pg .gd-side { min-width: 0; }
.pg-macro { position: relative; background: #0b0f18; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.pg-macro pre { margin: 0 0 8px; overflow-x: auto; font: 13px/1.55 var(--code); color: var(--str); white-space: pre; }
.pg-tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; }
.pg-addon { list-style: none; margin: 6px 0 0 -20px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; background: var(--panel); }
.pg-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.pg-next span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }

/* notable pets */
.pg-filters { margin: 16px 0 4px; padding: 10px 12px; display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.pg-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-fl { font-size: 12.5px; color: var(--muted); min-width: 72px; }
.pg-none { margin: 0; color: var(--muted); font-size: 14px; }
.pg-band { margin-top: 22px; }
.pg-band h2 { margin: 0 0 10px; font-size: 19px; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.pg-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.pg-card:target { border-color: var(--gold); }
.pg-fam { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.pg-cb { min-width: 0; }
.pg-cb h3 { margin: 0 0 2px; font-size: 16px; overflow-wrap: anywhere; }
.pg-cb p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.pg-meta { color: var(--muted); }
.pg-resp { color: var(--muted); font-size: 13px !important; }
.pg-teach { font-size: 13px !important; }
.pg-how b, .pg-rep b { color: var(--gold); font-weight: 600; }
.pg-rep b { color: var(--muted); }
.pg-rep { color: var(--text); font-style: italic; }
.pg-rep b { font-style: normal; }
.pg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.pg-btns .qf-pin { text-decoration: none; }
.pg-chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; vertical-align: 2px; white-space: nowrap; }
.pg-chip-rare { color: var(--q-rare, #4a9eff); }
.pg-chip-rareelite { color: var(--q-epic, #b36bff); }
.pg-chip-elite { color: var(--gold); }
.pg-dim { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

/* the map drawer */
.pg-drawer .qmap { position: static; width: auto; padding: 0; box-shadow: none; border: 0; animation: none; overflow: visible; }
.pg-drawer h2 { margin-bottom: 8px; }

/* pets by ability */
.pg-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }
.pg-jump a { text-decoration: none; }
.pg-ab { margin-top: 22px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 12px; }
.pg-ab header { display: flex; gap: 12px; align-items: center; }
.pg-ab header h2 { margin: 0; font-size: 19px; }
.pg-ab .pt-desc { margin: 8px 0 0; }
.pg-rank { margin-top: 12px; }
.pg-rank h3 { margin: 0 0 6px; font-size: 15px; }
.pg-tw { overflow-x: auto; }
.pg-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pg-t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pg-t td { padding: 5px 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
.pg-n { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .pg .gd-side { grid-row: auto; }
}
@media (max-width: 720px) {
  .pg-nav-sp { flex-basis: 100%; height: 0; }
  .pg-cards { grid-template-columns: minmax(0, 1fr); }
  .pg-fl { min-width: 0; width: 100%; }
  /* phones: the teacher table becomes rows of short lines */
  .pg-t thead { display: none; }
  .pg-t, .pg-t tbody, .pg-t tr, .pg-t td { display: block; width: auto; }
  .pg-t tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pg-t td { border: 0; padding: 1px 0; }
  .pg-t td:first-child { font-weight: 600; }
}
