/* hunter-pets: every selector starts with the tool's root class (TOOLS.md).
   The idea: the hunter's Beast Training window. Abilities are rows with their rank buttons; a chosen rank is lit in
   the game's yellow, a rank the pet is too young for is red, training points read like the pet frame's own counter.
   The beast lists are plain game lists (level, speed, where) so a hunter scans them with the game in another tab. */

/* finder / filter form */
.kc-t-hunter-pets .kc-t-hp-finder { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; margin: 0 0 14px;
  padding: 14px; border: 1px solid #5d5132; background: rgba(6, 8, 26, 0.7); font: 14px/1.4 var(--sans); color: #c9c0a8; }
.kc-t-hunter-pets .kc-t-hp-finder label { display: grid; gap: 4px; }
.kc-t-hunter-pets .kc-t-hp-finder select, .kc-t-hunter-pets .kc-t-hp-finder input,
.kc-t-hunter-pets .kc-t-hp-tpsum select { font: 16px/1.2 var(--sans); padding: 7px 9px; background: #0a0d16; color: var(--ink); border: 1px solid var(--gold-soft); border-radius: 0; width: 100%; font-variant-numeric: tabular-nums; }
.kc-t-hunter-pets .kc-t-hp-finder button, .kc-t-hunter-pets .kc-t-hp-tpform button { font: 700 14px/1.2 var(--sans); padding: 10px 14px; background: var(--gold); color: #171105; border: 1px solid #efcd7b; border-radius: 0; cursor: pointer; }
.kc-t-hunter-pets .kc-t-hp-count { font: 14px/1.4 var(--sans); color: var(--muted); margin: 0 0 6px; }

/* lists */
.kc-t-hunter-pets .kc-t-hp-beasts td, .kc-t-hunter-pets .kc-t-hp-abilities td { vertical-align: top; }
.kc-t-hunter-pets .kc-t-hp-beasts td:last-child, .kc-t-hunter-pets .kc-t-hp-abilities td:last-child,
.kc-t-hunter-pets .kc-t-hp-families td:last-child { white-space: normal; min-width: 220px; }
.kc-t-hunter-pets .kc-t-hp-abilities tr.kc-t-hp-first td { border-top: 1px solid rgba(221, 180, 94, 0.35); }
.kc-t-hunter-pets .kc-t-hp-cont { color: #4b4a45; }
.kc-t-hunter-pets .kc-t-hp-fam, .kc-t-hunter-pets .kc-t-hp-abname { display: inline-flex; align-items: center; gap: 8px; }
.kc-t-hunter-pets .kc-t-hp-rank { color: var(--muted); font-size: 13px; }
.kc-t-hunter-pets .kc-t-hp-xy { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kc-t-hunter-pets .kc-t-hp-sub { color: var(--muted); font-size: 13px; }
.kc-t-hunter-pets .kc-t-hp-none { color: #6f6a5c; }
.kc-t-hunter-pets .kc-t-hp-kind { font: 600 12px/1 var(--sans); padding: 2px 5px; border: 1px solid; margin-inline-start: 4px; white-space: nowrap; }
.kc-t-hunter-pets .kc-t-hp-elite { color: #ffd100; border-color: #8a6d00; }
.kc-t-hunter-pets .kc-t-hp-rare, .kc-t-hunter-pets .kc-t-hp-rareelite { color: #c0c0d8; border-color: #6c6c84; }
.kc-t-hunter-pets .kc-t-hp-boss { color: #ff8040; border-color: #8a3d1a; }
.kc-t-hunter-pets .kc-t-hp-top { display: flex; gap: 18px; align-items: flex-start; max-width: 760px; margin-bottom: 8px; }
.kc-t-hunter-pets .kc-t-hp-top > .kc-icon { flex: 0 0 auto; border-width: 2px; border-radius: 6px; }
.kc-t-hunter-pets .kc-t-hp-others ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 15px/1.4 var(--sans); }

/* the training-point calculator: the Beast Training window */
.kc-t-hunter-pets .kc-t-hp-tp { scroll-margin-top: 12px; }
.kc-t-hunter-pets .kc-t-hp-tpform { margin: 0 0 8px; }
.kc-t-hunter-pets .kc-t-hp-tpapp { max-width: 820px; border: 1px solid #5d5132; background: rgba(6, 8, 26, 0.78); padding: 12px 14px; }
.kc-t-hunter-pets .kc-t-hp-tpsum { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font: 14px/1.4 var(--sans); color: #c9c0a8; margin-bottom: 10px; }
.kc-t-hunter-pets .kc-t-hp-tpsum label { display: inline-flex; align-items: center; gap: 8px; }
.kc-t-hunter-pets .kc-t-hp-tpsum select { width: auto; }
.kc-t-hunter-pets .kc-t-hp-tpnums { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-variant-numeric: tabular-nums; color: #d9cfb6; }
.kc-t-hunter-pets .kc-t-hp-good { color: #1eff00; }
.kc-t-hunter-pets .kc-t-hp-bad { color: #ff2020; }
.kc-t-hunter-pets .kc-t-hp-problems { flex-basis: 100%; margin: 0; padding-inline-start: 1.2em; color: #ff6060; }
.kc-t-hunter-pets .kc-t-hp-tpgrid { display: grid; gap: 4px; }
.kc-t-hunter-pets .kc-t-hp-tprow { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(154, 160, 174, 0.12); font: 15px/1.3 var(--sans); }
.kc-t-hunter-pets .kc-t-hp-tpname { display: inline-flex; align-items: center; gap: 8px; color: #d9cfb6; }
.kc-t-hunter-pets .kc-t-hp-on .kc-t-hp-tpname { color: #ffd100; }
.kc-t-hunter-pets .kc-t-hp-tpranks { display: flex; flex-wrap: wrap; gap: 4px; }
.kc-t-hunter-pets .kc-t-hp-rk { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 2px 4px;
  border: 1px solid #4a4a4a; background: #0b0d14; color: #e8e8e8; text-decoration: none; font: 700 14px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.kc-t-hunter-pets .kc-t-hp-rk small { font-weight: 400; font-size: 11px; color: #9aa0ae; }
.kc-t-hunter-pets .kc-t-hp-rk:hover { border-color: var(--gold); }
.kc-t-hunter-pets .kc-t-hp-rk-on { border-color: #ffd100; color: #ffd100; box-shadow: 0 0 6px rgba(255, 209, 0, 0.4); }
.kc-t-hunter-pets .kc-t-hp-rk-high { color: #ff6060; }
@media (max-width: 720px) {
  .kc-t-hunter-pets .kc-t-hp-finder { grid-template-columns: 1fr 1fr; }
  .kc-t-hunter-pets .kc-t-hp-tprow { grid-template-columns: 1fr; gap: 4px; }
  .kc-t-hunter-pets .kc-t-hp-top { flex-direction: column; }
}

.kc-t-hunter-pets .kc-t-hp-quiet { font: 13px/1.5 var(--sans); color: var(--muted); margin: 4px 0 0; }

