/* REUSE: none - the talent window is drawn after the WoW Forever in-game talent window (Phil's screenshot, 21 Nov 2026);
   colours and buttons come from style.css (read only), which this page loads first. */
.topnav a.on { color: var(--gold); }
.tcmain { padding-top: 22px; display: flex; flex-direction: column; gap: 22px; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.small { font-size: 12px; }
.srcb.you { background: #2a2433; color: #d4c4f0; border: 1px solid #5b4b75; }
.srcb.est { background: #3b2f10; color: #f6c24b; border: 1px solid #8a6a22; }

/* the window */
.tcwin { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.tcbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tctitle { font-family: Cinzel, serif; color: var(--gold); font-size: 18px; letter-spacing: 1px; }
.tcfield { color: var(--dim); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tcfield select, .pset input, .pset select { background: var(--input); color: var(--text); border: 1px solid var(--line2); border-radius: 6px; height: 30px; padding: 0 6px; font: inherit; }
.tcpts { color: var(--dim); font-size: 13px; } .tcpts b { color: var(--gold); font-size: 18px; margin-left: 4px; font-family: Cinzel, serif; }
/* three trees side by side at every width (Phil, 21 Nov 2026: "Without the tabs make 3 different columns. So that we
   see everything at 1 glance."); the icon size follows the column width */
.tctrees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tctree { container-type: inline-size; padding: 14px 10px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid #000; min-width: 0; }
.tcgrid { --s: clamp(18px, calc((100cqi - 4px) / 5.3), 50px); --g: calc(var(--s) * .43); }
.tctree:last-child { border-right: 0; }
.t-bm { background: radial-gradient(120% 70% at 30% 20%, #2f4b78 0%, #172238 55%, #0c1220 100%); }
.t-mm { background: radial-gradient(120% 70% at 60% 25%, #5b5a7e 0%, #4a4258 45%, #4f4128 80%, #2a2214 100%); }
.t-sv { background: radial-gradient(120% 70% at 50% 30%, #4d7a62 0%, #284a39 55%, #10231a 100%); }
.tchead { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; padding-bottom: 10px; border-bottom: 1px solid #d7a32655; }
.tchead img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #8a6a22; box-shadow: 0 0 0 2px #000; flex: none; }
.tchead b { font-family: Cinzel, serif; font-size: clamp(11px, 7cqi, 20px); font-weight: 600; color: var(--text); text-shadow: 0 2px 4px #000; text-align: center; line-height: 1.15; }
.tcspent { font-family: Cinzel, serif; font-weight: 700; color: var(--gold); background: #000a; border: 1px solid #8a6a22; border-radius: 4px; padding: 0 6px; font-size: 14px; }
.tcgrid { position: relative; width: calc(4 * var(--s) + 3 * var(--g)); height: calc(var(--rows) * var(--s) + (var(--rows) - 1) * var(--g)); }
.tal { position: absolute; left: calc(var(--c) * (var(--s) + var(--g))); top: calc(var(--r) * (var(--s) + var(--g))); width: var(--s); height: var(--s);
  padding: 0; border: 2px solid #5d5d5d; border-radius: 8px; background: #000; cursor: pointer; box-shadow: 0 0 0 1px #000, 0 3px 6px #000c; z-index: 2; }
.tal img { width: 100%; height: 100%; display: block; border-radius: 5px; }
.tal.locked img { filter: grayscale(1) brightness(.55); }
.tal.locked { border-color: #4a4a4a; }
.tal.avail { border-color: #2fbf3a; }
.tal.has { border-color: #2fbf3a; box-shadow: 0 0 0 1px #000, 0 0 10px #2fbf3a66; }
.tal.max { border-color: #ffd100; box-shadow: 0 0 0 1px #000, 0 0 10px #ffd10066; }
.tal:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tal .rk { position: absolute; right: -6px; bottom: -6px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 4px; background: #000; font: 700 13px/18px Inter, sans-serif; color: #2fe03c; border: 1px solid #2fbf3a; }
@container (max-width: 220px) {
  .tcgrid { --s: clamp(18px, calc((100cqi - 2px) / 4.75), 50px); --g: calc(var(--s) * .25); }
  .tal { border-width: 1px; border-radius: 4px; } .tal img { border-radius: 3px; }
  .tal .rk { right: -5px; bottom: -5px; min-width: 13px; height: 13px; padding: 0 2px; font-size: 10px; line-height: 12px; border-radius: 3px; }
}
.tal.max .rk { color: #ffd100; border-color: #ffd100; }
.arw { position: absolute; z-index: 1; width: 4px; border-radius: 2px; background: #6d6d6d; box-shadow: 0 0 0 1px #000;
  left: calc(var(--c) * (var(--s) + var(--g)) + var(--s) / 2 - 2px);
  top: calc(var(--r1) * (var(--s) + var(--g)) + var(--s));
  height: calc((var(--r2) - var(--r1)) * (var(--s) + var(--g)) - var(--s) - 2px); }
.arw::after { content: ""; position: absolute; left: -5px; bottom: -6px; border: 7px solid transparent; border-top-color: inherit; border-top: 8px solid #6d6d6d; border-bottom: 0; }
.arw.lit { background: #ffd100; } .arw.lit::after { border-top-color: #ffd100; }
.tchint { margin: 0; padding: 8px 14px; font-size: 12px; color: var(--dim); background: var(--panel); border-top: 1px solid var(--line); }

/* tooltip, and the sheet at the bottom on a phone */
.ttip { position: fixed; z-index: 60; width: 330px; max-width: calc(100vw - 16px); background: #0a0d14f2; border: 1px solid #6a6a7a; border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 13px; box-shadow: 0 8px 30px #000c; }
.ttip .th { display: flex; align-items: center; gap: 10px; } .ttip .th img { width: 34px; height: 34px; border-radius: 5px; border: 1px solid #555; }
.ttip .th div { flex: 1; } .ttip .th b { display: block; color: #fff; font-size: 15px; } .ttip .th small { color: var(--dim); }
.ttip p { margin: 8px 0 0; color: #ffd100; line-height: 1.4; }
.ttip .tnext span { color: #fff; display: block; } .ttip .tnext { color: #d8c26a; }
.ttip .tpet { color: var(--blue-soft); } .ttip .tpet b { color: #fff; }
.treq { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; } .treq .no { color: #ff5a4f; } .treq .ok { color: #8a8a8a; }
.tbtn { display: none; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ttip.sheet { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; width: auto; }
.ttip.sheet .tbtn { display: flex; }
.tbtn .btn[disabled] { opacity: .4; cursor: default; }

/* pet and ranking */
.tc2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.rkwhy { margin-left: auto; color: var(--dim); font-size: 13px; }
.rksort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 14px; color: var(--dim); font-size: 13px; }
.rkhow { margin-top: 10px; font-size: 12px; color: var(--dim); }
.rkhow summary { cursor: pointer; color: var(--dim2); width: max-content; }
.rkhow summary:hover { color: var(--text); }
.rkhow p { margin: 8px 0 0; line-height: 1.6; }
.petov { position: fixed; inset: 0; z-index: 80; background: #000c; }
.petov[hidden] { display: none; }
.petov iframe { width: 100%; height: 100%; border: 0; background: transparent; display: block; }
.petov-x[hidden] { display: none; }
.petov-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: #fff; font-size: 16px; cursor: pointer; }
/* top 10 as one row of cards (Phil, 21 Nov 2026: "a top 10 list as a horizontal card row with small portraits") */
/* no sideways scroll (Phil, 21 Nov 2026): one row of 10 when the box is wide, 2 rows of 5 below that, 5 rows of 2 on a phone */
#rank { container-type: inline-size; }
.rkrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 4px 0 6px; }
@container (min-width: 1240px) { .rkrow { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; } .rkc { padding: 14px 8px 12px; } }
@container (max-width: 700px) { .rkrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.rkc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid #57534b; border-radius: 10px;   /* the pet card border (style.css .card.r-normal) */ scroll-snap-align: start; min-width: 0; transition: transform .12s, border-color .12s; }
.rkc:hover { transform: translateY(-2px); }
.rkhead { display: flex; flex-direction: column; gap: 3px; min-height: 52px; justify-content: flex-start; }
.rkchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 22px; }
.rkchip { font-style: normal; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--card2); color: var(--text2); border: 1px solid var(--line2); white-space: nowrap; }
.rkchip.good { background: #14361f; color: #6ee7a0; border-color: #2f9e5a; }
.rkchip.pvp { background: var(--blue-bg); color: var(--blue-soft); border-color: var(--blue-line); }
.rkchip.off { color: var(--dim2); }
.rkc:hover { background: var(--card2); }
.rkc.r-rare { border-color: var(--q-rare); box-shadow: 0 0 16px -6px var(--q-rare); } .rkc.r-elite { border-color: var(--q-elite); box-shadow: 0 0 16px -6px var(--q-elite); }
.rkc.me { background: var(--card2); outline: 2px solid var(--gold); outline-offset: -2px; }
.rkn { position: absolute; top: 6px; left: 8px; font: 700 15px Cinzel, serif; color: var(--gold); }
.rkpic.pic { background: var(--pic) center / 125% no-repeat, radial-gradient(circle at 50% 40%, var(--card2), var(--deep) 70%); }
.rkpic { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--card2), var(--deep) 70%); border: 2px solid var(--line2); overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.rkpic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.rkpic.ico img { width: 44px; height: 44px; transform: none; border-radius: 6px; }
.rkname { font-size: 14px; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.rkc.r-rare .rkname { color: #4da3ff; } .rkc.r-elite .rkname { color: #ffd100; }
.rkc small { color: var(--dim); font-size: 12px; }
.rkdps { display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 3px; }
.rkdps b { font: 700 26px Cinzel, serif; color: var(--gold); } .rkdps small { font-size: 11px; color: var(--dim2); }
.rkwhere { width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.35; color: var(--dim2); overflow-wrap: anywhere; }   /* the whole zone name on two lines, never cut (site check, 22 Nov 2026) */
.tcbox { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.tch2 { font-family: Cinzel, serif; font-weight: 600; font-size: 22px; margin: 0 0 10px; color: var(--text); }
.pick { position: relative; }
.pick input { width: 100%; height: 40px; background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; }
.picklist { position: absolute; left: 0; right: 0; top: 44px; z-index: 30; max-height: 340px; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 10px 30px #000a; }
.picklist button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--card2); padding: 8px 12px; cursor: pointer; }
.picklist button:hover { background: var(--blue-bg); } .picklist small { color: var(--dim); white-space: nowrap; }
.r-normal { color: #fff; } .r-rare { color: #0070dd; } .r-elite { color: #ffd100; }
.picklist .r-rare, .stt .r-rare { color: #4da3ff; }
.stt { width: 100%; border-collapse: collapse; font-size: 14px; }
.stt th, .stt td { padding: 7px 8px; border-bottom: 1px solid var(--card2); text-align: left; vertical-align: top; }
.stt thead th { color: var(--dim); font-weight: 500; font-size: 12px; }
.stt tbody th { font-weight: 600; color: var(--text); } .stt th small, .stt td small { display: block; color: var(--dim2); font-weight: 400; font-size: 11px; }
.stt td b { color: #fff; } .stt .up { color: #46d36a; } .stt .dn { color: #ff6b5f; } .stt .z { color: var(--dim2); }
.stt .srcb { margin: 0 4px 2px 0; } .stt .srcs { display: block; margin-top: 3px; }
.stt.rk td:first-child { color: var(--gold); font-family: Cinzel, serif; font-weight: 700; }
.petlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.pe { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; opacity: .72; }
.pesrc { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; flex: none; }
.pe.on { opacity: 1; border-color: var(--blue-line2); background: var(--card); }
.pe img { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line2); flex: none; }
.pe > div { flex: 1; min-width: 0; } .pe b { color: #fff; } .pe small { color: var(--dim); }
.pe p { margin: 4px 0; font-size: 13px; color: var(--text2); }
.prk { display: flex; flex-wrap: wrap; gap: 4px; } .prk span { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--card2); color: var(--dim); }
.prk span.lit { background: #4d3d15; color: var(--gold); }
.tcsrc p { margin: 0 0 10px; color: var(--text2); font-size: 14px; line-height: 1.55; }

@media (max-width: 1100px) { .tc2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tcmain.wrap { padding: 0 8px; }
  .tctree { padding: 8px 2px 14px; gap: 8px; }
  .tchead { flex-direction: column; gap: 4px; padding-bottom: 6px; }
  .tchead img { width: 24px; height: 24px; }
  .tcspent { font-size: 12px; }
  .arw { width: 2px; } .arw::after { left: -4px; bottom: -5px; border-width: 5px; border-top-width: 6px; }
}
@media (max-width: 700px) {
  .tchint { font-size: 11px; }
  .tcbox { padding: 14px 12px; }
  .stt { font-size: 13px; } .stt th, .stt td { padding: 6px 4px; }
  .petlist { grid-template-columns: 1fr; }
}

/* Your pet (Phil, 21 Nov 2026: "just a table with a lot of empty space"): the pet card and your numbers on the left,
   one tile per number on the right, damage per second as the big tile */
.pgrid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pleft { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pp, .pp-empty, .pset { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.pp { border-left: 4px solid #57534b; display: flex; flex-direction: column; gap: 12px; }
.pp.r-rare { border-left-color: var(--q-rare); } .pp.r-elite { border-left-color: var(--q-elite); }
.pp-top { display: flex; align-items: center; gap: 14px; }
.pp-top .rkpic { width: 84px; height: 84px; }
.pp-id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pp-id .pn { font: 700 20px/1.15 Cinzel, serif; font-variant: small-caps; color: #fff; }
.pp.r-rare .pn { color: #4da3ff; } .pp.r-elite .pn { color: #ffd100; }
.pp-id small { color: var(--dim); font-size: 12px; }
.pp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-facts > span { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.pp-facts i, .pp-kit > i, .pset-h { font-style: normal; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--dim2); font-weight: 700; }
.pp-facts b { font-size: 16px; color: var(--gold); } .pp-facts small { font-size: 11px; color: var(--dim); }
.pp-facts .fm { align-self: flex-start; }
.pp-kit div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pp-ab { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px 2px 3px; }
.pp-ab img, .pm img { width: 18px; height: 18px; border-radius: 4px; }
.pp-empty { display: flex; align-items: center; gap: 12px; } .pp-empty p { margin: 0; font-size: 13px; color: var(--dim); }
.pset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.pset-h { grid-column: 1 / -1; } .pset-h + label { } .pset-n { grid-column: 1 / -1; font-size: 11px; color: var(--dim2); line-height: 1.45; } .pset-h small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--dim2); margin-left: 4px; }
.pset label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.pset input, .pset select { width: 100%; height: 32px; }
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.pt-l { font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--dim2); font-weight: 700; }
.pt-v { font: 700 26px/1.1 Cinzel, serif; color: var(--gold); } .pt-v small { font: 600 13px Inter, sans-serif; color: var(--dim); margin-left: 3px; }
.pt-d { font-size: 12px; color: var(--dim); } .pt-d i { font-style: normal; font-weight: 700; }
.pt-d .up { color: #46d36a; } .pt-d .dn { color: #ff6b5f; } .pt-d .z { color: var(--dim2); font-weight: 400; }
.pt-n { font-size: 11px; color: var(--dim2); line-height: 1.35; }
.pt-s { margin-top: auto; padding-top: 4px; } .pt-s .srcb { margin: 0 3px 0 0; }
.pt-hero { grid-column: span 3; }
.pt-hero .pt-v { font-size: 40px; }
.pbar { height: 8px; border-radius: 4px; background: var(--blue); overflow: hidden; margin-top: 6px; }
.pbar span { display: block; height: 100%; background: var(--gold); }
.pbar-l { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text2); }
.pbar-l .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.pbar-l .sw.a { background: var(--gold); } .pbar-l .sw.s { background: var(--blue); }
.pms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px 3px 4px; }
.pm b { color: var(--text); font-weight: 600; } .pm i { font-style: normal; color: var(--gold); font-weight: 700; } .pm small { color: var(--dim2); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ptiles { grid-template-columns: 1fr 1fr; } .pt-hero { grid-column: span 2; } .pt-v { font-size: 22px; } .pt-hero .pt-v { font-size: 32px; } }
.tcbox { scroll-margin-top: 70px; }   /* a jump to a box lands below the sticky top bar */
/* compare two pets (Phil, 21 Nov 2026): your numbers on the left, pet A and pet B side by side */
.pgrid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
.pcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.pcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pcol .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcol .pt-hero { grid-column: span 2; }
.pp { position: relative; }
.pp-slot { position: absolute; top: -1px; left: -4px; font: 700 12px/1 Inter, sans-serif; color: #2a1f05; background: var(--gold); border-radius: 10px 0 8px 0; padding: 4px 8px; }
.pp-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line2); background: var(--card); color: var(--dim); cursor: pointer; font-size: 12px; }
.pp-x:hover { color: var(--text); border-color: var(--blue-line2); }
.pp-top { padding-top: 6px; }
.pt.win { border-color: #2f9e5a; background: linear-gradient(180deg, rgba(47,158,90,.12), var(--panel) 60%); }
.pt-vs { font-size: 12px; font-weight: 700; } .pt-vs.w { color: #46d36a; } .pt-vs.l { color: #c98a84; font-weight: 600; } .pt-vs.eq { color: var(--dim2); font-weight: 400; }
.rkslot { position: absolute; top: 6px; right: 8px; font: 700 12px/1 Inter, sans-serif; color: #2a1f05; background: var(--gold); border-radius: 4px; padding: 3px 6px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pcols { grid-template-columns: 1fr; } }
.chk { margin: 0 0 10px; padding-left: 18px; color: var(--text2); font-size: 13px; line-height: 1.7; } .chk b { color: var(--text); margin-right: 6px; }
