/* Technique Horde PvE. One stylesheet for every page.
   Look: a clean near-black page, bone-colored type, the banner's green kept for small accents and Horde red for the crest.
   Layout: sticky nav, banner card, a reading column up to 1120px, sticky filters on the tool pages. Race colors are the only other colors. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #131313; --surface2: #1c1c1b; --ink: #ece8d8; --ink2: #b4b0a2; --muted: #85837a;
  --line: #242423; --axis: #3b3c39; --border: rgba(255,255,255,.08); --focus: #ece8d8;
  --accent: #6aa84f; --red: #c8352b;
  --r-tr: #d95926; --r-or: #e66767; --r-ud: #d55181; --r-ta: #898781; --r-sk: #c98500;
  --r-ne: #3987e5; --r-gn: #199e70; --r-hu: #9085e9; --r-dw: #008300;
  --i-tr: #fff; --i-or: #fff; --i-ud: #fff; --i-ta: #fff; --i-sk: #121212;
  --i-ne: #fff; --i-gn: #fff; --i-hu: #fff; --i-dw: #fff;
  --nav-h: 56px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ef; --surface: #fdfdfb; --surface2: #ebeae4; --ink: #151513; --ink2: #51504a; --muted: #7d7b72;
  --line: #deddd5; --axis: #c2c0b6; --border: rgba(0,0,0,.09); --focus: #151513;
  --accent: #3f7a2e; --red: #b3261e;
  --r-tr: #eb6834; --r-or: #e34948; --r-ud: #e87ba4; --r-ta: #898781; --r-sk: #eda100;
  --r-ne: #2a78d6; --r-gn: #1baf7a; --r-hu: #6250d6; --r-dw: #008300;
  --i-tr: #fff; --i-or: #fff; --i-ud: #121212; --i-ta: #fff; --i-sk: #121212;
  --i-ne: #fff; --i-gn: #121212; --i-hu: #fff; --i-dw: #fff;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 64px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1120px; height: 100%; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 6px; display: block; }
.brand span { color: var(--red); font-weight: 800; }
.tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 14px; color: var(--ink2); white-space: nowrap; letter-spacing: .02em; }
.tabs a:hover { background: var(--surface2); color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent); }
.iconbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover { background: var(--surface2); }

/* guild banner: the full logo, shown as a card in the page column */
.banner { width: min(1120px, calc(100% - 32px)); margin: 18px auto 0; aspect-ratio: 2000 / 640; min-height: 150px; border-radius: 12px; border: 1px solid var(--line); background: #050805 url("banner.webp") center 43% / cover no-repeat; }
/* page frame */
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 26px; }
h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.08; letter-spacing: .03em; text-transform: uppercase; font-weight: 800; text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
h2 { font-size: 17px; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; font-weight: 750; text-wrap: balance; }
.lede { color: var(--ink2); max-width: 66ch; margin-top: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.meta span { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.note { color: var(--ink2); font-size: 13.5px; max-width: 74ch; }

/* controls */
.controls { position: sticky; top: var(--nav-h); z-index: 20; background: var(--bg); padding: 10px 0 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.crow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--axis); border-radius: 8px; overflow: hidden; max-width: 100%; flex-wrap: wrap; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--ink2); padding: 7px 13px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--axis); }
.seg button:hover { background: var(--surface2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
.seg.small button { padding: 5px 10px; font-size: 12.5px; }
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
select { padding: 7px 10px; border-radius: 6px; border: 1px solid var(--axis); background: var(--surface); max-width: 100%; font-size: 14px; }
.lens { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.wnote { font-size: 12.5px; color: var(--muted); }

/* chips and bars */
.chip { display: inline-block; border-radius: 4px; padding: 3px 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.35; }
.chip small { font-weight: 500; opacity: .9; margin-left: 5px; font-size: 11px; }
.chip.tie { opacity: .6; outline: 1px dashed var(--ink2); outline-offset: -2px; }
.sw { width: 11px; height: 11px; border-radius: 2px; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.arr { color: var(--muted); font-size: 12px; }

/* spec cards */
.cls h2 { margin: 6px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.cls h2 small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.spec.raid { border-color: var(--axis); box-shadow: inset 0 0 0 1px var(--axis); }
.sh { display: flex; align-items: center; gap: 8px; }
.sh h3 { font-size: 15.5px; font-weight: 700; flex: 1; min-width: 0; text-wrap: balance; }
.tag { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; border: 1px solid var(--axis); border-radius: 4px; padding: 1px 6px; color: var(--ink2); white-space: nowrap; }
.more { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 3px 9px; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.more:hover { background: var(--surface2); color: var(--ink); }
.rk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rk li { display: grid; grid-template-columns: 18px 74px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; }
.rk .n { color: var(--muted); font-size: 12px; text-align: right; }
.rk .chip { text-align: center; padding: 3px 4px; }
.trk { height: 9px; background: var(--surface2); border-radius: 5px; overflow: hidden; }
.trk i { display: block; height: 100%; border-radius: 5px; }
.rk .g { text-align: right; color: var(--ink2); font-size: 12.5px; }
.rk li:first-child .g { color: var(--ink); font-weight: 700; }
.rk li.tied .trk i { opacity: .55; }
.rk li.tied .chip { outline: 1px dashed var(--ink2); outline-offset: -2px; }
.verdict { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 9px; }
.verdict b { color: var(--ink); font-weight: 700; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 9px; }
.strip .st { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.strip small { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.strip .chip { font-size: 10.5px; padding: 2px 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
#view { display: flex; flex-direction: column; gap: 26px; }
.meta a { text-decoration: none; }
.meta a span { border-color: var(--axis); color: var(--ink2); }

/* grid (by length) */
.scroll { overflow-x: auto; }
.hm { --n: 4; min-width: calc(180px + var(--n) * 84px); display: flex; flex-direction: column; gap: 3px; }
.hr { display: grid; grid-template-columns: 180px repeat(var(--n), minmax(80px, 1fr)); gap: 3px; align-items: stretch; }
.hl { position: sticky; left: 0; background: var(--surface); font-size: 13px; display: flex; align-items: center; padding-right: 8px; z-index: 1; }
.hh .hc { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0 6px; border-bottom: 1px solid var(--line); }
.hh .hc.key { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.hg { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 12px 0 3px; position: sticky; left: 0; }
.cell { border: 0; border-radius: 4px; height: 42px; padding: 0 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; cursor: pointer; }
.cell b { font-size: 12px; font-weight: 700; white-space: nowrap; }
.cell i { font-style: normal; font-size: 10.5px; opacity: .92; white-space: nowrap; }
.cell.tie { opacity: .62; outline: 1px dashed var(--ink2); outline-offset: -2px; }
.cell.top { box-shadow: inset 0 0 0 2px var(--ink); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td, .table tbody th { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.sub { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 18px 16px; min-width: 0; }
.panel > .note { margin: 4px 0 12px; }

/* tiles */
.finds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.find { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; min-width: 0; border-top: 2px solid var(--accent); }
.find b { display: block; font-size: 15px; margin-bottom: 4px; }
.find span { color: var(--ink2); font-size: 14px; }

/* charts, legends, crossovers */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.axis-text { fill: var(--ink2); font-size: 11px; }
.lab { fill: var(--ink2); font-size: 12px; }
.legend, .fac { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink2); }
.fac { margin: 0 0 12px; }
.fac .g { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.fac b { color: var(--ink); font-weight: 700; margin-right: 2px; }
.xrow { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; padding: 9px 0; border-top: 1px solid var(--line); align-items: center; }
.xrow:first-child { border-top: 0; }
.xs { font-size: 13.5px; font-weight: 600; }
.path { display: flex; flex-wrap: wrap; gap: 5px 4px; align-items: center; min-width: 0; }
@media (max-width: 620px) { .xrow { grid-template-columns: 1fr; } }

/* dialog */
dialog { border: 1px solid var(--axis); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(0,0,0,.65); }
.dlg { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.dlg-h { display: flex; gap: 10px; align-items: flex-start; }
.dlg-h h2 { flex: 1; font-size: 20px; }
.dlg table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dlg th { text-align: right; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.dlg th:first-child, .dlg td:first-child { text-align: left; }
.dlg td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.dlg td.best { font-weight: 700; }
.dlg ul { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 13.5px; display: flex; flex-direction: column; gap: 5px; }
.closebtn { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.closebtn:hover { background: var(--surface2); }

/* article text (method page) */
.prose { max-width: 74ch; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; color: var(--ink2); }
.prose p { color: var(--ink2); }
.prose code { background: var(--surface2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.prose b { color: var(--ink); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink2); }

/* tooltip */
#tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.45; max-width: 270px; opacity: 0; transition: opacity .08s; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
#tip.on { opacity: 1; }
#tip .tr { display: flex; justify-content: space-between; gap: 14px; }
#tip .tr span:last-child { font-variant-numeric: tabular-nums; }
#tip .sw { width: 9px; height: 9px; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { #tip { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 560px) { .nav-in { gap: 10px; } .brand span { display: none; } .rk li { grid-template-columns: 16px 68px 1fr 48px; } }

/* Raid Comp Sim */
:root { --c-druid: #ff7d0a; --c-hunter: #abd473; --c-mage: #69ccf0; --c-paladin: #f58cba; --c-priest: #e8e8e8; --c-rogue: #fff569; --c-shaman: #0070de; --c-warlock: #9482c9; --c-warrior: #c79c6e; }
:root[data-theme="light"] { --c-priest: #8a8a8a; --c-rogue: #d8c800; --c-hunter: #7aa83c; --c-mage: #2ba3d4; }
.btn { border: 1px solid var(--axis); background: var(--surface); border-radius: 8px; padding: 6px 12px; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.btn:hover { background: var(--surface2); color: var(--ink); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.mini { margin-left: auto; display: flex; align-items: baseline; gap: 10px; }
.mini b { font-size: 20px; letter-spacing: .01em; }
.builder { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.palette { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: calc(var(--nav-h) + 62px); max-height: calc(100vh - var(--nav-h) - 80px); overflow-y: auto; }
.pgh { display: flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pgh i { width: 9px; height: 9px; border-radius: 2px; display: block; }
.pg { display: flex; flex-wrap: wrap; gap: 5px; }
.pg .pgh { width: 100%; margin-top: 4px; }
.pal { border: 1px solid var(--line); background: var(--surface2); border-radius: 6px; padding: 5px 9px; font-size: 12.5px; cursor: grab; text-align: left; }
.pal:hover { border-color: var(--axis); background: var(--bg); }
.pal small { margin-left: 5px; color: var(--muted); font-size: 10.5px; }
.pal.sup { border-style: dashed; }
.raid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; min-width: 0; }
.grp { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-width: 0; }
.gh { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.gh .num { color: var(--ink2); letter-spacing: 0; }
.slots { display: flex; flex-direction: column; gap: 6px; }
.slot { border: 1px solid var(--line); border-left: 4px solid var(--cc, var(--axis)); border-radius: 7px; padding: 6px 9px 7px; background: var(--surface2); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top dps" "cls dps" "bot bot"; gap: 1px 10px; cursor: grab; min-height: 78px; }
.slot.empty { border: 1px dashed var(--axis); border-left: 1px dashed var(--axis); background: transparent; display: grid; place-items: center; cursor: default; min-height: 78px; color: var(--muted); font-size: 12px; }
.slot.over { outline: 2px solid var(--accent); outline-offset: 1px; }
.sl-top { grid-area: top; display: flex; gap: 6px; align-items: center; min-width: 0; }
.sl-top b { font-size: 13.5px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-cls { grid-area: cls; font-size: 11.5px; color: var(--muted); }
.sl-dps { grid-area: dps; align-self: center; font-size: 17px; font-weight: 700; }
.sl-bot { grid-area: bot; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.sl-bot select { padding: 3px 6px; font-size: 12.5px; }
.role { font-size: 12px; color: var(--muted); }
.x { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 3px; border-radius: 4px; }
.x:hover { color: var(--ink); background: var(--bg); }
.flags { display: inline-flex; gap: 4px; }
.fl { border: 1px solid var(--axis); background: transparent; border-radius: 4px; font-size: 11px; font-weight: 700; padding: 1px 6px; color: var(--muted); cursor: pointer; }
.fl.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ph { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.buffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.bg { border: 0; padding: 0; margin: 0; min-width: 0; }
.bg legend { padding: 0; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bx { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.bx input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.bl small.warn { margin-left: 7px; font-size: 10.5px; color: var(--red); border: 1px solid var(--red); border-radius: 4px; padding: 0 5px; }
.dv { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.dv.p { color: var(--accent); font-weight: 700; }
.dv.n { color: var(--red); font-weight: 700; }
.dv.z { color: var(--muted); }
.total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 6px 0 16px; }
.total .big { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; display: block; letter-spacing: .01em; }
.sub2 { color: var(--ink2); font-size: 13.5px; }
.cols2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.h3 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.br { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 70px 48px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.bn { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.bn i { width: 9px; height: 9px; border-radius: 2px; background: var(--cc); flex: none; }
.bn small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.bt { height: 9px; background: var(--surface2); border-radius: 5px; overflow: hidden; }
.bt i { display: block; height: 100%; background: var(--cc); border-radius: 5px; }
.bv { text-align: right; font-weight: 700; }
.bp { text-align: right; color: var(--muted); font-size: 12.5px; }
.pill { border: 1px solid var(--axis); border-radius: 4px; padding: 0 5px; font-size: 10.5px; color: var(--ink2); }
.orow { display: grid; grid-template-columns: 1fr auto 52px; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dim { color: var(--muted); text-align: right; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } .palette { position: static; max-height: none; } .cols2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .raid { grid-template-columns: 1fr; } .br { grid-template-columns: minmax(110px, 1fr) 60px 44px; } .br .bt { display: none; } }

/* Raid Comp Sim, compact layout: class boxes on top, four group columns of thin rows */
:root { --c-druid: #ff7d0a; --c-hunter: #abd473; --c-mage: #69ccf0; --c-paladin: #f58cba; --c-priest: #f0f0f0; --c-rogue: #fff569; --c-shaman: #2f8cf0; --c-warlock: #9d8fd6; --c-warrior: #c79c6e; }
:root[data-theme="light"] { --c-druid: #c25a00; --c-hunter: #5e8a22; --c-mage: #1f86b3; --c-paladin: #c2518a; --c-priest: #6b6b6b; --c-rogue: #8a7d00; --c-shaman: #0058b8; --c-warlock: #6a58a8; --c-warrior: #8f6a3a; }
.builder { display: flex; flex-direction: column; gap: 16px; }
.rc { text-align: center; text-transform: none; letter-spacing: 0; font-size: 24px; font-weight: 500; }
.palette { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 0; background: none; border: 0; }
.pbox { border: 1px solid color-mix(in srgb, var(--cc) 35%, var(--line)); background: color-mix(in srgb, var(--cc) 9%, var(--surface)); border-radius: 6px; padding: 6px 8px 8px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.pbh { width: 100%; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--cc); font-weight: 700; }
.pal { border: 1px solid transparent; background: color-mix(in srgb, var(--cc) 12%, var(--surface2)); color: var(--cc); font-weight: 600; border-radius: 4px; padding: 3px 8px; font-size: 12.5px; cursor: grab; }
.pal:hover { border-color: var(--cc); }
.pal small { margin-left: 5px; color: var(--muted); font-weight: 400; font-size: 10.5px; }
.pal.sup { border-style: dashed; border-color: var(--axis); }
.raid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grp { background: none; border: 0; padding: 0; }
.gh { justify-content: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.gh .num { font-weight: 400; font-size: 12px; }
.slots { gap: 4px; }
.slot, .slot.empty { min-height: 54px; border-radius: 4px; }
.slot.empty { border: 1px solid var(--line); background: var(--surface); }
.slot { border: 1px solid var(--line); border-left: 3px solid var(--cc); background: var(--surface2); padding: 4px 8px 5px; grid-template-columns: 1fr auto auto; grid-template-areas: "n d x" "b b b"; gap: 0 8px; align-items: center; }
.slot .sn { grid-area: n; color: var(--cc); font-size: 13.5px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .sl-dps { grid-area: d; font-size: 14px; font-weight: 700; }
.slot .x { grid-area: x; margin: 0; }
.slot .sl-bot { grid-area: b; margin-top: 2px; gap: 5px; }
.slot .sl-bot select { padding: 1px 4px; font-size: 11.5px; border-radius: 4px; }
.fl { font-size: 10.5px; padding: 0 5px; }
@media (max-width: 980px) { .raid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .raid { grid-template-columns: 1fr; } .palette { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (min-width: 981px) { .palette { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.raid { width: 100%; }
.dv[data-t] { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.dv[data-t]:focus-visible { outline-offset: 3px; }

/* Spec Tier List */
.tier { display: grid; grid-template-columns: 64px 1fr; gap: 0; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.tl { display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #151513; background: var(--tc); }
.t-S { --tc: #e5584d; } .t-A { --tc: #f0a13a; } .t-B { --tc: #e4cc4a; } .t-C { --tc: #7fc46b; } .t-D { --tc: #8d9a98; }
.tc { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; padding: 8px; }
.tcard { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-left: 3px solid var(--cc); background: var(--surface2); border-radius: 5px; padding: 6px 9px; min-width: 0; }
.tcard .rk { color: var(--muted); font-size: 12px; text-align: right; }
.tn { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tn b { color: var(--cc); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn small { color: var(--muted); font-size: 11.5px; }
.tv { text-align: right; display: flex; flex-direction: column; line-height: 1.25; }
.tv b { font-size: 14px; }
.tv small { color: var(--muted); font-size: 11.5px; }
.tr2 .chip { font-size: 11px; padding: 2px 6px; }
@media (max-width: 560px) { .tier { grid-template-columns: 44px 1fr; } .tc { grid-template-columns: 1fr; } }

/* campfire buttons, rule tags and the swap list */
.bx { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; cursor: default; }
.bxl { display: flex; gap: 9px; align-items: center; cursor: pointer; min-width: 0; }
.bxl input { flex: none; }
.fire { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 5px; width: 24px; height: 22px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.fire:hover { color: #ff8a3d; border-color: #ff8a3d; }
.fire.on { background: #ff8a3d; border-color: #ff8a3d; color: #1a1209; }
.fire.none { border: 0; cursor: default; }
.bl small.camp { margin-left: 7px; font-size: 10.5px; color: #ff8a3d; border: 1px solid #ff8a3d; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.bl small.note2 { margin-left: 7px; font-size: 10.5px; color: var(--muted); border: 1px solid var(--axis); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.swap { margin-top: 22px; }
.srow { display: grid; grid-template-columns: 1fr auto 56px; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.srow .neg { color: var(--red); }
.dim2 { color: var(--muted); }
.srow .dv { text-align: right; }

/* Race Crossovers */
.cx { font-size: 12px; font-weight: 700; color: var(--ink); border: 1px solid var(--axis); border-radius: 99px; padding: 1px 9px; white-space: nowrap; background: var(--surface2); }
.xl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink2); }

.fl.duty { border-color: var(--axis); }
.fl.duty.on { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.fl.on.x2 { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.fl.on.x3 { background: #e0a02f; border-color: #e0a02f; color: #0a0a0a; }

/* Race Picker: class colours. The colour marks and tints; the class name is always written out too, and text colours are pulled toward the ink in the light theme (--mx) so they stay readable. */
:root { --mx: 100%; }
:root[data-theme="light"] { --mx: 72%; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; position: relative; }
.cc { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, var(--cc, var(--ink2)) 45%, var(--axis)); background: color-mix(in srgb, var(--cc, transparent) 7%, var(--surface)); color: var(--ink2); border-radius: 99px; padding: 4px 11px 4px 9px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cc i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); display: block; flex: none; }
.cc:hover { color: var(--ink); border-color: var(--cc, var(--ink2)); }
.cc[aria-pressed="true"] { background: color-mix(in srgb, var(--cc) 26%, var(--surface)); border-color: var(--cc); color: var(--ink); font-weight: 700; }
.cc[data-cls="all"] { padding-left: 12px; }
.cc[data-cls="all"][aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cls h2 { color: color-mix(in srgb, var(--cc) var(--mx), var(--ink)); align-items: center; padding-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--cc) 55%, var(--line)); }
.cls h2::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--cc); flex: none; }
.cls h2 small { color: var(--muted); }
.spec { border-left: 3px solid var(--cc); background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 12%, var(--surface)) 0, var(--surface) 76px); }
.spec .sh h3 { color: color-mix(in srgb, var(--cc) var(--mx), var(--ink)); }
.spec .more:hover { border-color: var(--cc); }
.spec .verdict, .spec .strip { border-top-color: color-mix(in srgb, var(--cc) 22%, var(--line)); }
.spec .trk { background: color-mix(in srgb, var(--cc) 10%, var(--surface2)); }
.hg { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--cc) var(--mx), var(--ink)); border-bottom: 1px solid color-mix(in srgb, var(--cc) 40%, var(--line)); padding: 14px 0 5px; }
.hg::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--cc); flex: none; }
.hl { border-left: 3px solid var(--cc, transparent); padding-left: 9px; }
.dlg { border-top: 4px solid var(--cc); }
.dlg-h h2 { color: color-mix(in srgb, var(--cc) var(--mx), var(--ink)); }
@media (max-width: 560px) {
  #clsWrap { display: block; width: 100%; min-width: 0; }
  #clsWrap .lbl { display: block; margin-bottom: 6px; }
  #lensRow { min-width: 0; }
  .cchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cchips::-webkit-scrollbar { display: none; }
}
