/* Class talent trees (content/game-pages.mjs treeTable), loaded only on class wiki pages.
   Article bodies must survive the editor sanitizer, so no classes: each tree is h3[id] + p (caption) + ol (one li per point gate: h4 + ul of cards).
   A card is li > strong (name) + small (ranks) + p (effect) + optional small (Referenced). Milestone/Capstone effects open with <strong>, which marks the gold cards.
   Class colours mirror the .cls-* tokens in content.css; the article body sits outside .article-heading, so they are re-scoped here. */
.article-page:has(.article-heading.cls-warrior) .article-body{--c:#C79C6E}
.article-page:has(.article-heading.cls-paladin) .article-body{--c:#F58CBA}
.article-page:has(.article-heading.cls-hunter) .article-body{--c:#ABD473}
.article-page:has(.article-heading.cls-rogue) .article-body{--c:#FFF569}
.article-page:has(.article-heading.cls-priest) .article-body{--c:#FFFFFF}
.article-page:has(.article-heading.cls-shaman) .article-body{--c:#0070DE;--c-text:#4A9CF2}
.article-page:has(.article-heading.cls-mage) .article-body{--c:#69CCF0}
.article-page:has(.article-heading.cls-warlock) .article-body{--c:#9482C9}
.article-page:has(.article-heading.cls-druid) .article-body{--c:#FF7D0A}
.article-body #talents ~ h3[id]{margin:38px 0 4px;color:var(--c-text,var(--c,var(--gold)))}
.article-body #talents ~ h3[id] + p{margin:0 0 18px;font-size:13px;color:var(--muted)}
.article-body #talents ~ h3[id] + p + ol{list-style:none;margin:0;padding:0;border-top:1px solid color-mix(in srgb,var(--c,var(--gold)) 40%,var(--line))}
.article-body #talents ~ h3[id] + p + ol>li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;margin:0;padding:14px 0;border-bottom:1px solid var(--line);line-height:1.6}
.article-body #talents ~ h3[id] + p + ol>li>h4{margin:6px 0 0;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-variant-numeric:tabular-nums}
.article-body #talents ~ h3[id] + p + ol>li>ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.article-body #talents ~ h3[id] + p + ol li li{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:4px;background:var(--panel);font-size:14px;line-height:1.55;color:var(--text-2)}
.article-body #talents ~ h3[id] + p + ol li li>strong{color:var(--text);font-size:15px;font-weight:600}
.article-body #talents ~ h3[id] + p + ol li li>small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.article-body #talents ~ h3[id] + p + ol li li>p{margin:4px 0 0}
.article-body #talents ~ h3[id] + p + ol li li:has(>p>strong:first-child){border-color:var(--bronze-hi);background:linear-gradient(180deg,#f0c75e14,transparent 70%),var(--panel)}
.article-body #talents ~ h3[id] + p + ol li li:has(>p>strong:first-child)>strong{color:var(--gold)}
.article-body #talents ~ h3[id] + p + ol li li>p>strong:first-child{display:inline-block;margin-right:4px;padding:0 6px;border:1px solid var(--bronze-hi);border-radius:3px;font-size:12px;font-weight:600;letter-spacing:.04em;line-height:1.6;color:var(--gold)}
@media(max-width:850px){.article-body #talents ~ h3[id] + p + ol>li>ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .article-body #talents ~ h3[id] + p + ol>li{grid-template-columns:1fr;gap:8px;padding:12px 0}
 .article-body #talents ~ h3[id] + p + ol>li>h4{margin:0}
 .article-body #talents ~ h3[id] + p + ol>li>ul{grid-template-columns:1fr;gap:8px}
 .article-body #talents ~ h3[id] + p + ol li li{padding:10px 12px}
}
@media (prefers-reduced-motion:no-preference){
 .article-body #talents ~ h3[id] + p + ol li li{transition:transform .2s cubic-bezier(.16,1,.3,1),border-color .2s,box-shadow .2s}
 .article-body #talents ~ h3[id] + p + ol li li:hover{transform:translateY(-2px);border-color:var(--bronze);box-shadow:0 8px 16px -10px #000b}
 .article-body #talents ~ h3[id] + p + ol li li:has(>p>strong:first-child):hover{border-color:var(--gold)}
}
