/* The armory layer: material frames around the playable guide, quiet reading below. */
:root {
  color-scheme: dark;
  --night: #11141a;
  --depth: #0a0d12;
  --surface: #1b1c1e;
  --surface-raised: #282725;
  --bone: #e6d5aa;
  --body: #d0ccc2;
  --muted: #a5a39b;
  --brass: #b99a59;
  --blue: #5a7896;
  --rose: #a76e69;
  --sage: #a0b086;
  --line: #49463f;
  --display: 'Spectral', Georgia, serif;
  --sans: 'Golos Text', 'Segoe UI', sans-serif;
  --content: 1280px;
  --metal-light: #827661;
  --metal-dark: #292923;
  --ruby: #752e30;
}

html { scroll-padding-top: 28px; }
body { margin: 0; color: var(--body); background: #11141a; font: 400 15px/1.8 var(--sans); }
main, #main { width: 100%; max-width: none; margin: 0; padding: 0; }
::selection { background: #a1854f; color: #090b10; }
a { color: #d0b779; text-decoration-color: #726440; }
a:hover { color: #f0dba3; }
strong { color: #e4dbc6; font-weight: 600; }
h1, h2, h3, h4 { color: #e6d5aa; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(2.8rem, 4.8vw, 4.6rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 2.8vw, 2.65rem); font-weight: 500; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.35; font-weight: 500; }
p { max-width: 80ch; }
button, input, select { border-radius: 2px; font-family: var(--sans); }
button { color: #e7dcc4; background: #34312c; border: 1px solid #6f6656; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a6c5e6; outline-offset: 5px; }
.muted { color: #aaa69d; }
.small { font-size: 12px; }
.eyebrow, .section-number { display: none; }
.badge { border-radius: 2px; background: #353128; color: #d9c699; }
.badge.gold, .badge.holy { background: #3d3625; color: #e8d39c; }
.badge.ret, .badge.pink { background: #3e2529; color: #d8b4b1; }
.badge.green { background: #2e372a; color: #c3d2ae; }
.button, .wow-button, .copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 19px;
  border: 1px solid #a08a60;
  border-radius: 2px;
  background: linear-gradient(#55322c, #3d2221);
  color: #eeddb3;
  box-shadow: inset 0 1px #a57f4c66, inset 0 -2px #170d0b77, 0 1px 2px #0008;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 1px #000c;
  text-decoration: none;
}
.button.primary, .wow-button.primary { color: #f2dfb0; background: linear-gradient(#8a3c36, #542021); border-color: #b79a65; }
.button.secondary, .wow-button.secondary { color: #d8ceb6; background: linear-gradient(#343432, #242523); border-color: #726a59; }
.button:hover:not(:disabled), .wow-button:hover:not(:disabled), .copy-button:hover:not(:disabled) { color: #fff0c2; border-color: #d9bd7d; background: linear-gradient(#925048, #68312e); }
.button.secondary:hover:not(:disabled) { background: linear-gradient(#45443d, #30322e); }
.button:active:not(:disabled), .wow-button:active:not(:disabled), .copy-button:active:not(:disabled) { box-shadow: inset 0 2px 4px #0009; }
.button:disabled { opacity: .45; }

.armory-header {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  width: min(calc(100% - 88px), var(--content)); margin: 0 auto; min-height: 85px;
}
.wordmark { color: #e6d5aa; font-size: 21px; gap: 13px; }
.wordmark svg { color: #bca263; }
.wordmark small { color: #a09c91; font-size: 10px; }
.header-links { gap: 29px; }
.header-links a { color: #bdb7aa; font-size: 12px; }
.header-links a:hover { color: #e4cf97; }
.hero-armory {
  display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 72px; align-items: center;
  width: min(calc(100% - 88px), var(--content)); margin: 0 auto; padding: 15px 0 31px;
}
.hero-armory .hero-copy { padding: 0; }
.hero-armory h1 { max-width: 800px; font-size: clamp(2.8rem, 4.7vw, 4.5rem); line-height: 1.13; }
.hero-armory .hero-copy > p { font-size: 15px; color: #bebbb1; line-height: 1.85; max-width: 710px; }
.hero-armory .hero-intro { font-size: 17px; color: #cec9bc; margin-top: 20px; }
.hero-armory .hero-tag { margin: 0 0 13px; font-size: 12px; color: #ac9b79; }
.hero-armory .hero-buttons { margin-top: 22px; gap: 12px; }
.hero-armory .hero-art { width: 225px; max-width: 100%; margin: 0; padding: 0; align-self: stretch; display: flex; align-items: center; }
.hero-armory .hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 0; }
.hero-armory .hero-credit { font-size: 11px; margin-top: 18px; color: #99998d; }
.hero-armory .hero-credit a { color: #b6aa8e; }
.journey-strip { width: min(calc(100% - 88px), var(--content)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 5px auto 34px; }
.journey-strip a { display: flex; gap: 15px; align-items: center; padding: 14px 18px; background: #1e201f; border-left: 3px solid #8e784c; color: #c5bdac; text-decoration: none; line-height: 1.55; font-size: 12px; }
.journey-strip a:hover { background: #2a2924; color: #ead8b4; }
.journey-strip strong { display: block; color: #dfc88f; font: 500 23px/1.3 var(--display); white-space: nowrap; }
.journey-strip span, .journey-strip small { display: block; }
.journey-strip small { color: #a5a194; font-size: 11px; }
.journey-strip a:nth-child(2) { border-color: #aa6355; }
.journey-strip a:nth-child(3) { border-color: #718798; }
.edition-note { background: #24231f; color: #b4ae9e; border-radius: 2px; margin-bottom: 28px; }
.edition-note > span { color: #d2c49f; }

.armory-panel {
  position: relative; width: min(calc(100% - 48px), 1336px); margin: 0 auto 70px;
  padding: 35px 36px 31px;
  background: linear-gradient(110deg, #252522 0%, #1b1c1b 42%, #232321 100%);
  border: 2px solid #655d4d; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #9f917140, inset 0 0 0 6px #0d1010, inset 0 0 0 7px #514b3e, 0 7px 25px #0005;
  scroll-margin-top: 25px;
}
.panel-heading { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin: 0 0 25px; }
.panel-heading h2 { margin: 0; font-size: 31px; }
.panel-heading p { max-width: 530px; font-size: 13px; color: #b3ad9d; margin: 0; line-height: 1.7; }
.panel-heading .section-kicker { color: #aa9a7a; margin-bottom: 8px !important; }
.calc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 21px 23px; background: #111615; border: 1px solid #49483c; box-shadow: inset 0 2px 7px #0005; }
.calc-toolbar .level-control { width: min(100%, 430px); min-width: 300px; gap: 7px 18px; }
.level-control > label { font-size: 12px; color: #c4bba6; }
.level-input-row input { height: 36px; width: 55px; color: #f1db9e; background: #070b0d; border: 1px solid #85724d; border-radius: 2px; font-size: 21px; box-shadow: inset 0 2px 5px #000a; }
.level-input-row > span { color: #aaa18e; }
.level-control button { border: 1px solid #74654a; background: linear-gradient(#494537, #282b25); border-radius: 2px; color: #dacaa3; height: 34px; width: 34px; }
.level-control button:hover:not(:disabled) { border-color: #d6ba7b; background: #62573c; }
.level-control input[type='range'] { accent-color: #b99a59; }
.calc-stats { display: grid; grid-template-columns: auto minmax(155px, 1fr); align-items: center; gap: 0 29px; font-size: 11px; color: #aaa99d; line-height: 1.6; }
.calc-stats > div, .calc-stats > span { min-width: 75px; text-align: center; }
.calc-stats strong { display: block; font: 500 26px/1.35 var(--display); color: #e4d4a8; }
.calc-stats small { display: block; color: #9f9e93; font-size: 10px; }
.calc-stats > strong { grid-column: 1; grid-row: 1 / 3; text-align: center; }
.calc-stats > strong small { font: 400 10px/1.5 var(--sans); margin-top: 1px; }
.calc-stats > span { grid-column: 2; grid-row: 1; color: #d9c690; font: 500 25px/1.4 var(--display); }
.calc-stats > small { grid-column: 2; grid-row: 2; text-align: center; white-space: nowrap; font-size: 9px; }
.level-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 24px; }
.level-presets button { min-width: 37px; height: 30px; padding: 4px 10px; background: #292a26; border: 1px solid #555043; border-radius: 2px; color: #bdb49e; font-size: 11px; }
.level-presets button:hover { color: #eed7a3; border-color: #b19761; background: #38372e; }
.level-presets button[aria-pressed='true'], .level-presets button.active, .level-presets button.is-active { background: linear-gradient(#74372d, #4c2522); border-color: #ad8c55; color: #efdaa7; }
.stage-brief { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 24px; }
.stage-brief h3 { margin: 0; font-size: 23px; }
.stage-brief p { margin: 0; color: #b7b0a1; font-size: 12px; flex: 1 1 450px; }
.stage-brief > div { flex: 1 1 470px; }
.stage-range { display: block; margin-bottom: 5px; color: #b29d6c; font-size: 11px; }
.stage-brief > div h3 { margin-bottom: 8px; }
.stage-points { flex: 0 1 320px; align-self: start; margin: 0; background: #1b211b; border: 1px solid #53573f; }
.stage-points summary { padding: 12px 16px; font-size: 12px; }
.stage-points[open] summary { margin-bottom: 12px; }
.stage-points .stage-allocation { display: grid; gap: 6px; margin: 0 16px 15px; }
.stage-points .stage-allocation span { background: none; border: 0; padding: 0; color: #bfbea6; font-size: 11px; line-height: 1.7; }
.stage-points .stage-allocation strong { color: #d9c58b; font-weight: 500; white-space: nowrap; }
.stage-allocation { display: flex; align-items: center; gap: 7px; color: #d7c394; font-size: 12px; }
.stage-allocation span { background: #111713; border: 1px solid #5d5946; padding: 4px 8px; }
.talent-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.talent-tree {
  --school: #b9a165;
  position: relative; min-width: 0; border: 1px solid #665e4c;
  background: linear-gradient(145deg, #302c20, #171b17 42%, #19201c);
  box-shadow: inset 0 0 0 1px #121411, inset 0 0 22px #0008;
}
.talent-tree[data-school='Enhancement'] { --school: #8ba6b2; background: linear-gradient(145deg, #293139, #141c21 45%, #152125); }
.talent-tree[data-school='Restoration'] { --school: #b98b78; background: linear-gradient(145deg, #352729, #211a1b 45%, #291f1b); }
.tree-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; min-height: 54px; padding: 13px 18px 12px; background: linear-gradient(#302d27, #201f1b); border-bottom: 1px solid #6a6049; box-shadow: inset 0 1px #aaa08026; }
.tree-heading h3 { margin: 0; font: 500 23px/1.3 var(--display); color: #dfd1ad; }
.tree-heading h3 { display: flex; align-items: center; gap: 9px; }
.tree-heading h3 img { width: 26px; height: 26px; border: 1px solid #8e805e; border-radius: 1px; }
.tree-points { color: #bdad88; font-size: 12px; }
.tree-points strong { font: 500 19px/1.3 var(--display); color: #e2c98d; }
.tree-canvas { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, 65px); gap: 9px 4px; padding: 17px 12px 23px; min-width: 0; min-height: 549px; isolation: isolate; background-image: linear-gradient(#080c0d38, #080c0d79), var(--tree-bg); background-size: cover; background-position: center; box-shadow: inset 0 0 28px #0008; }
.tree-canvas .tree-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: -1; }
.tree-links path, .tree-links line, .tree-links polyline { fill: none; stroke: #746c55; stroke-width: 2; stroke-linejoin: round; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.tree-links path.learned, .tree-links path.active, .tree-links path[data-active='true'] { stroke: #c5ac68; }
.tree-canvas .talent-node {
  grid-row: var(--row); grid-column: var(--col); align-self: center; justify-self: center;
  display: block; position: relative; z-index: 1;
  width: 60px; height: 60px; min-height: 0; padding: 3px; margin: 0;
  border: 2px solid #766b51; border-radius: 3px;
  background: #0b100d; color: #e6d5aa;
  box-shadow: inset 0 0 0 1px #bab08b50, 0 2px 4px #0009;
  line-height: 1; cursor: pointer;
}
.tree-canvas .talent-node img.talent-icon { display: block; width: 50px; height: 50px; max-width: none; object-fit: cover; border: 0; border-radius: 1px; margin: 0; padding: 0; background: #131913; }
.tree-canvas .talent-node .talent-rank {
  position: absolute; display: block; bottom: -6px; right: -6px; z-index: 2;
  min-width: 28px; height: 18px; margin: 0; padding: 2px 4px;
  border: 1px solid #877951; border-radius: 2px; background: #070b07;
  color: #dfc783; font: 600 10px/12px var(--sans); text-align: center;
  text-shadow: 0 1px #000;
}
.tree-canvas .talent-node[data-state='learned'] { border-color: #ffdc61; background: #a3751b; box-shadow: inset 0 0 0 1px #fff5b5, 0 0 0 1px #241a07, 0 0 13px 3px #ffbe3499, 0 2px 5px #000; }
.tree-canvas .talent-node[data-state='learned'] img { filter: brightness(1.16) saturate(1.18); }
.tree-canvas .talent-node[data-state='learned'] .talent-rank { color: #201400; background: #ffe389; border-color: #fff6ce; text-shadow: none; font-weight: 700; }
.tree-canvas .talent-node[data-state='partial'] { border-color: #9cff7c; background: #416d22; box-shadow: inset 0 0 0 1px #ddffbb, 0 0 12px 2px #9cff6d88, 0 2px 5px #000; }
.tree-canvas .talent-node[data-state='partial'] img { filter: brightness(1.14) saturate(1.15); }
.tree-canvas .talent-node[data-state='partial'] .talent-rank { color: #142908; background: #b5f890; border-color: #e2ffd2; text-shadow: none; font-weight: 700; }
.tree-canvas .talent-node[data-state='locked'] { border-color: #424743; background: #080c0a; box-shadow: inset 0 0 0 1px #3a4436, 0 2px 4px #0007; }
.tree-canvas .talent-node[data-state='locked'] img { filter: grayscale(1) brightness(.36); }
.tree-canvas .talent-node[data-state='locked'] .talent-rank { color: #8c9289; border-color: #454b40; }
.tree-canvas .talent-node[data-state='next'] { border-color: #a4eeff; outline: 2px dashed #80d8f4; outline-offset: 4px; background: #295065; box-shadow: 0 0 12px #6ecaff77; }
.tree-canvas .talent-node[data-state='next'] .talent-rank { color: #d9f6ff; border-color: #a1e7ff; }
.tree-canvas .talent-node[data-next='true']::after { content: '+'; position: absolute; top: -9px; left: -8px; width: 17px; height: 17px; border: 1px solid #d5f7ff; background: #205775; color: white; font: 700 14px/15px var(--sans); text-align: center; border-radius: 2px; }
.tree-canvas .talent-node[data-selected='true'], .tree-canvas .talent-node[aria-pressed='true'] { outline: 2px solid #d8f1ff; outline-offset: 5px; }
.tree-canvas .talent-node:hover { border-color: #f3e3b2; background: #302d1e; box-shadow: inset 0 0 0 1px #e8dcb299, 0 0 0 1px #bca56b, 0 3px 5px #000b; }
.tree-canvas .talent-node:focus-visible { outline: 3px solid #afd0ed; outline-offset: 4px; }
.tree-canvas .talent-node[data-state='locked']:hover img { filter: grayscale(.8) brightness(.85); }
.tree-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #a7a591; margin-top: 20px; font-size: 11px; }
.calc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 24px; }
.next-talent { display: flex; align-items: center; gap: 16px; min-width: 0; }
.next-talent > img { flex: 0 0 46px; width: 46px; height: 46px; border: 2px solid #a28d52; box-shadow: 0 0 0 1px #181d13; border-radius: 2px; }
.next-talent h3 { font-size: 22px; margin: 2px 0 4px; }
.next-talent p { font-size: 12px; line-height: 1.65; color: #b9b29d; margin: 0; }
.next-talent .small, .next-talent small { display: block; color: #a39f8d; font-size: 11px; }
.next-talent > div > span { display: block; color: #aaa18b; font-size: 11px; margin-bottom: 4px; }
.next-talent > div > strong { display: block; color: #e6d09a; font: 500 22px/1.35 var(--display); margin-bottom: 5px; }
.calc-bottom #copy-build, .calc-bottom .button { flex-shrink: 0; width: auto; margin: 0; min-height: 41px; padding-inline: 17px; font-size: 11px; }
.route-notice, .respec-notice, .planner-warning { margin: 22px 0; padding: 18px 21px; border: 1px solid #726047; border-left: 4px solid #b29056; border-radius: 1px; background: #32291f; color: #d7c7a6; font-size: 13px; line-height: 1.75; }
.respec-notice { background: #392522; border-color: #815649; border-left-color: #bc8068; color: #e0bfae; }
.route-notice p, .respec-notice p { margin: 0; }
.route-notice h3, .respec-notice h3 { color: #e3cda2; font-size: 21px; margin-bottom: 8px; }
.inspector-panel { margin: 23px 0 0; padding: 22px 24px; background: #111513; border: 1px solid #625943; border-radius: 2px; }
.inspector-panel > h3 { margin-bottom: 12px; font-size: 23px; }
.inspector-panel p { color: #c0bdab; font-size: 13px; }
.talent-detail-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.talent-detail-head img { width: 45px; height: 45px; border: 2px solid #92805a; border-radius: 2px; }
.talent-detail-head h3 { margin: 0 0 3px; font-size: 24px; }
.talent-detail-head p, .talent-detail-head small { color: #b5ac95; font-size: 11px; margin: 0; }
.talent-detail-head .talent-rank { color: #c4cb8f; font-size: 12px; margin: 0; padding: 0; }
.inspector-stats { color: #aca895; }
.inspector-stats strong { color: #d2c59e; }
.rank-pips span { background: #2f3326; border-color: #5d6549; border-radius: 1px; }
.rank-pips span.is-filled { background: #b8a365; border-color: #d2c083; }
.planner-note { color: #a6a08f; font-size: 11px; }
.wow-tooltip {
  position: fixed; z-index: 150; width: 310px; max-width: calc(100vw - 24px);
  padding: 15px 17px; color: #f1ebdd; background: #090d14f7;
  border: 2px solid #9d9073; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #211f1a, 0 6px 18px #000b;
  pointer-events: none; font-size: 12px; line-height: 1.7;
}
.wow-tooltip h3, .wow-tooltip .tooltip-title { color: #e9cf83; font: 500 20px/1.25 var(--display); margin: 0 0 7px; }
.wow-tooltip p { color: #dbd9d0; font-size: 12px; margin: 7px 0 0; }
.wow-tooltip .tooltip-rank { color: #bed18c; font-size: 11px; }
.wow-tooltip .tooltip-source, .wow-tooltip .source { color: #9aadc3; font-size: 10px; }
.wow-tooltip .muted { color: #9eaaa9; }
.wow-tooltip small { color: #b9b4a5; font-size: 11px; }

#combat-lab, .combat-lab { width: min(calc(100% - 88px), var(--content)); margin: 0 auto 76px; scroll-margin-top: 26px; }
.combat-lab > h2 { margin-bottom: 20px; }
.combat-lab > p { color: #b2b0a6; font-size: 14px; }
.combat-lab .workbench-heading p { color: #b2ae9f; }
.combat-controls { align-items: center; gap: 25px; margin: 25px 0 22px; }
.combat-controls label { color: #bab19d; }
.combat-controls select { background: #1a1e1d; color: #dfd5bd; border: 1px solid #776a4e; border-radius: 2px; min-height: 43px; font-size: 12px; }
#combat-context { color: #b9b19c; }
.action-bar { display: flex; flex-wrap: wrap; gap: 13px; padding: 18px 19px 20px; margin: 25px 0 21px; border: 1px solid #6f614a; border-radius: 2px; background: linear-gradient(#2a2924, #1b1f1c); box-shadow: inset 0 0 0 3px #151914, inset 0 0 0 4px #524d3a; }
.action-bar .spell-button { position: relative; display: flex; flex: 1 1 120px; max-width: 220px; align-items: center; flex-direction: column; gap: 10px; min-height: 111px; padding: 12px 10px 10px; border: 1px solid transparent; background: transparent; color: #c9bea4; font-size: 11px; border-radius: 2px; line-height: 1.45; }
.action-bar .spell-button img { display: block; width: 46px; height: 46px; border: 2px solid #9a895b; border-radius: 2px; box-shadow: inset 0 0 0 1px #d6c486, 0 2px 5px #0008; }
.action-bar .spell-button > span:not(.step-index), .action-bar .spell-button label { display: block; max-width: 160px; font: 400 11px/1.5 var(--sans); text-align: center; cursor: pointer; }
.action-bar .spell-button .step-index { position: absolute; top: 8px; left: 10px; color: #bfa777; font-size: 10px; }
.action-bar .spell-button[aria-pressed='true'], .action-bar .spell-button.active, .action-bar .spell-button[data-selected='true'] { background: #393429; color: #f1dda6; border-color: #b8a16a; box-shadow: inset 0 0 0 1px #615331; }
.action-bar .spell-button[aria-pressed='true'] img { border-color: #e9d08c; }
.action-bar .spell-button:hover { color: #e6d8b8; background: #302e25; border-color: #7f7351; }
.combat-detail { background: #1b252b; border: 1px solid #4e6671; border-radius: 2px; color: #c4d0d5; padding: 26px 29px; }
.combat-detail h3 { color: #dcd4b5; }
.combat-detail strong { color: #e0d8bb; }
.combat-detail p { color: #c0c9cb; }
.combat-detail .source { color: #a0b4c6; }
.combat-nav { margin-top: 18px; }
.mana-hint { color: #adbecb; border-left-color: #70899b; padding-left: 17px; }
.training-note { padding: 20px 23px; margin: 26px 0 0; border: 1px solid #565c40; background: #252c22; }
.training-note h3 { color: #d4d2ad; font-size: 22px; margin-bottom: 11px; }
.training-note p { color: #bfc4aa; font-size: 12px; line-height: 1.85; margin-bottom: 9px; }
.training-note small { display: block; color: #a6ad94; font-size: 10px; line-height: 1.7; }

.reading-layout { width: min(calc(100% - 88px), var(--content)); grid-template-columns: 218px minmax(0, 1fr); gap: 62px; margin: 0 auto; }
#sidebar, .sidebar { top: 25px; max-height: calc(100vh - 50px); color: #b5ad99; scrollbar-color: #5e5c4c transparent; }
.sidebar-title { font-size: 20px; color: #d0c39f; }
.search-wrap label { color: #aaa591; font-size: 12px; }
#guide-search { color: #e3d5b2; background: #181d1b; border: 1px solid #605c47; border-radius: 2px; }
#guide-search::placeholder { color: #a09d8d; }
#search-status { color: #aea991; }
.nav a { color: #aaa694; border-radius: 1px; padding: 9px 11px; margin-left: -11px; font-size: 12px; }
.nav a:hover { background: #25281f; color: #d3c59c; }
.nav a.active, .nav a[aria-current='location'] { background: #343026; color: #dfc58b; box-shadow: inset 2px 0 #bca365; }
.sidebar-footer { color: #999b8b; }
.sidebar-footer .copy-button { min-height: 36px; font-size: 10px; padding: 8px 12px; }
#guide-content > section, #guide-content > .guide-section { padding-bottom: 68px; scroll-margin-top: 28px; }
.guide-section > h2 { margin-bottom: 25px; }
.guide-section > .lead { color: #cec8b8; font-size: 16px; line-height: 1.85; margin-bottom: 27px; }
.section-intro { font-size: 15px; color: #bdb6a6; line-height: 1.85; }
.section-kicker { color: #a59878; text-transform: none; letter-spacing: 0; }
.grid-2, .grid-3, .source-cards { gap: 28px; }
.card { border-radius: 2px; background: #21231f; padding: 25px; }
.card.ret { background: #2a2220; }
.card.holy { background: #28271f; }
.card p, .card li { color: #bab6a3; }
.callout { padding: 23px 26px; border-left: 3px solid #b09a61; border-radius: 0; background: #2b2b22; color: #cfc6ae; }
.callout h3 { color: #e1d0a1; }
.callout.correction, .callout.warning { background: #302520; border-left-color: #b7805e; color: #d6bea5; }
.callout.tip { background: #252f27; border-left-color: #93a278; color: #bdc9b1; }
.source, .source-line a { color: #aab6a4; text-decoration-color: #58644f; }
.source:hover, .source-line a:hover { color: #d6c88b; }
.quick-sheet { background: #263027; border: 1px solid #596344; border-radius: 2px; padding: 28px; }
.quick-sheet h3, .quick-sheet strong { color: #e1dfc0; }
.quick-sheet p, .quick-sheet li, .checklist label { color: #c6ccb5; }
.quick-sheet a, .quick-sheet .source { color: #b9ca98; }
.checklist label { padding: 14px 0; font-size: 13px; }
.checklist input { accent-color: #acba83; }
.checklist label + label { border-top-color: #485342; }
.checklist input:checked + span { color: #adb69e; }
.gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.gear-grid article { padding: 23px 0 0; border-top: 3px solid #80714b; }
.gear-grid article:nth-child(2) { border-top-color: #6f8492; }
.gear-grid article:nth-child(3) { border-top-color: #8d6858; }
.gear-grid article h3 { font-size: 22px; }
.gear-grid article p { color: #b4b0a1; font-size: 13px; }
.route-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 29px; margin: 32px 0 28px; }
.route-chapters article { padding-top: 20px; border-top: 2px solid #8a784b; }
.route-chapters article:nth-child(2) { border-top-color: #9c6652; }
.route-chapters article:nth-child(3) { border-top-color: #69818c; }
.chapter-level { display: block; color: #d3ba7b; font: 500 29px/1.25 var(--display); margin-bottom: 13px; }
.route-chapters h3 { font-size: 22px; margin-bottom: 14px; }
.route-chapters p { color: #b8b2a1; font-size: 13px; line-height: 1.8; }
.quest-steps { margin: 27px 0 30px; padding: 0; list-style: none; counter-reset: quest-step; }
.quest-steps > li { position: relative; counter-increment: quest-step; margin: 0 0 27px; padding: 0 0 0 49px; }
.quest-steps > li::before { content: counter(quest-step); display: grid; place-items: center; position: absolute; left: 0; top: 2px; width: 29px; height: 29px; border: 1px solid #8b7850; background: linear-gradient(#4b4130, #262b20); color: #e0c88f; font: 500 18px/1 var(--display); }
.quest-steps h3 { font-size: 23px; margin-bottom: 12px; }
.quest-steps p { color: #bcb5a5; font-size: 14px; }
.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; margin: 26px 0 30px; }
.emergency-grid article { border-left: 2px solid #956e53; padding: 0 0 0 21px; }
.emergency-grid article:nth-child(even) { border-color: #657c88; }
.emergency-grid h3 { font-size: 23px; margin-bottom: 13px; }
.emergency-grid p { font-size: 13px; color: #b8b3a2; }
.allocation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
.allocation-list p { display: grid; align-items: center; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 11px; margin: 0; padding: 11px 0; border-bottom: 1px solid #424a33; font-size: 12px; line-height: 1.5; }
.allocation-list p img { width: 28px; height: 28px; max-width: 28px; border: 1px solid #8b8151; margin: 0; }
.allocation-list span { color: #c2c5aa; overflow-wrap: anywhere; }
.allocation-list strong { color: #d5c381; font-weight: 500; }
.source-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.source-frames figure { min-width: 0; margin: 0; }
details .source-frames img { width: 100%; max-width: 100%; margin: 0; border: 1px solid #595f45; }
.source-frames figcaption { color: #a9ad98; font-size: 11px; padding-top: 10px; }
.source-cards > a:not(.source-card) { display: block; padding: 0 0 20px; color: #c3c5ad; text-decoration: none; }
.source-cards > a:not(.source-card) img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #595e45; margin-bottom: 15px; }
.source-cards > a:not(.source-card) strong { display: block; color: #d6c18b; font: 500 22px/1.3 var(--display); margin-bottom: 8px; }
.source-cards > a:not(.source-card) span { display: block; color: #b3b6a0; font-size: 12px; }
.source-cards > a:not(.source-card):hover strong { color: #ecd89f; }
.source-cards { margin: 28px 0 10px; }
.table-wrap { border: 1px solid #514f40; border-radius: 2px; background: #1b201c; scrollbar-color: #77785b #1b211a; }
th { background: #2e3227; color: #c4c7a7; font-size: 11px; }
td { border-top: 1px solid #404637; color: #b7bca8; font-size: 12px; }
td:first-child { color: #ded5b9; }
tbody tr:nth-child(even) { background: #21271e; }
details { border-radius: 2px; background: #20241e; border: 1px solid #484b3a; }
summary { color: #d4ceb2; padding: 19px 22px; }
summary::marker { color: #b6a369; }
details[open] summary { background: #2a3023; }
details img { border-radius: 1px; }
.timeline { border-left-color: #6a6d4b; }
.timeline-item::before, .talent-step::before { background: #bdac6e; border-color: #11141a; box-shadow: 0 0 0 1px #a3945e; }
.timeline-item p, .talent-step p { color: #b1b4a0; }
.level { color: #d1be81; }
.steps > li::before, .numbered > li::before { background: #4d4630; color: #eddaad; }
pre { background: #0c120e; border-color: #3c4b32; border-radius: 2px; color: #cfd2b3; }
code { color: #d5cca6; background: #30352a; border-radius: 2px; }
.source-card { background: #20241e; border: 1px solid #4b523d; border-radius: 2px; padding: 18px; }
.source-card:hover { background: #293022; }
.source-card img { border-radius: 1px; }
.source-card p { color: #b7b8a4; }
.source-card .author { color: #c4b784; }
.source-card .source { color: #cfbd82; }
.site-footer, body > footer { width: min(calc(100% - 88px), var(--content)); margin: 0 auto; padding: 20px 0 42px; font-size: 11px; color: #929b8c; }
.site-footer p { margin-bottom: 7px; }

dialog { background: #121912; color: #d9d6be; border: 2px solid #8e8161; border-radius: 3px; box-shadow: inset 0 0 0 1px #3f3b2c, 0 20px 70px #000b; }
dialog::backdrop { background: #050a0ee3; backdrop-filter: blur(3px); }
dialog > button:first-child, dialog .dialog-close, #close-talent, #close-image { background: linear-gradient(#78372e, #49211e); border-color: #9f8051; border-radius: 2px; color: #e6cca0; }
#talent-dialog { width: 490px; }
#talent-dialog h3 { color: #e7d09b; }
#talent-dialog p, #talent-dialog .inspector-body { color: #c5c6b1; font-size: 13px; }
#image-dialog { background: #0c1013; }
#image-dialog p { color: #b5b3a7; }
#menu-toggle { display: none; background: linear-gradient(#5f322c, #3b201f); border-color: #997c51; color: #e3cea1; border-radius: 2px; }

@media (max-width: 1180px) {
  .armory-header, .hero-armory, .journey-strip, #combat-lab, .combat-lab, .reading-layout, .site-footer, body > footer { width: calc(100% - 64px); }
  .hero-armory { gap: 45px; grid-template-columns: minmax(0, 1fr) 205px; }
  .hero-armory .hero-art { width: 205px; }
  .armory-panel { padding: 31px 28px 28px; }
  .talent-board { gap: 12px; }
  .tree-heading { padding-inline: 14px; }
  .tree-heading h3 { font-size: 21px; }
  .tree-canvas { padding-inline: 8px; gap: 9px 3px; }
  .tree-canvas .talent-node { width: 56px; height: 56px; padding: 3px; }
  .tree-canvas .talent-node img.talent-icon { width: 46px; height: 46px; }
  .calc-stats { gap: 0 18px; }
  .reading-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 42px; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 90px; }
  .armory-header { position: sticky; top: 0; z-index: 75; width: 100%; margin: 0; padding: 0 29px; min-height: 73px; gap: 24px; background: #11151bf5; backdrop-filter: blur(10px); border-bottom: 1px solid #443c2f; }
  .armory-header .header-links { gap: 19px; }
  #menu-toggle { display: inline-flex; min-height: 36px; padding: 7px 12px; font-size: 11px; }
  .hero-armory { padding-top: 25px; }
  .hero-armory h1 { font-size: 3.3rem; }
  .hero-armory .hero-copy > p { font-size: 14px; }
  .hero-armory .hero-intro { font-size: 16px; }
  .journey-strip { gap: 16px; }
  .journey-strip a { padding: 13px 15px; display: block; }
  .journey-strip strong { margin-bottom: 5px; }
  .panel-heading { align-items: start; display: block; }
  .panel-heading p { max-width: 760px; margin-top: 12px; }
  .calc-toolbar { gap: 25px; padding: 19px; }
  .calc-toolbar .level-control { min-width: 270px; width: 350px; }
  .calc-stats { gap: 0 11px; }
  .calc-stats > div, .calc-stats > span { min-width: 65px; }
  .tree-heading h3 { font-size: 20px; }
  .tree-canvas { padding-inline: 7px; grid-template-rows: repeat(7, 61px); min-height: 521px; gap: 9px 1px; }
  .tree-canvas .talent-node { width: 50px; height: 50px; padding: 2px; }
  .tree-canvas .talent-node img.talent-icon { width: 42px; height: 42px; }
  .tree-canvas .talent-node .talent-rank { min-width: 25px; height: 17px; font-size: 9px; line-height: 11px; bottom: -6px; right: -5px; }
  .reading-layout { display: block; }
  #sidebar, .sidebar { position: fixed; inset: 0 auto 0 0; top: 0; z-index: 70; padding: 91px 25px 30px; width: 275px; max-height: 100dvh; background: #1a211b; box-shadow: 15px 0 45px #0009; }
  #sidebar.is-open, .sidebar.is-open { transform: translateX(0); }
  #guide-content > section, #guide-content > .guide-section, #talent-planner, #combat-lab, #guide-content { scroll-margin-top: 95px; }
}
@media (max-width: 820px) {
  .armory-header .header-links { display: none; }
  .armory-header #menu-toggle { margin-left: auto; }
  .hero-armory { grid-template-columns: minmax(0, 1fr) 180px; gap: 30px; }
  .hero-armory h1 { font-size: 3rem; }
  .hero-armory .hero-art { width: 180px; align-self: start; padding-top: 8px; }
  .calc-toolbar { align-items: start; flex-direction: column; gap: 20px; }
  .calc-toolbar .level-control { width: 100%; min-width: 0; }
  .calc-stats { width: 100%; grid-template-columns: 1fr 1fr; padding: 12px 0 0; border-top: 1px solid #404638; }
  .calc-stats > div, .calc-stats > span { text-align: center; }
  .calc-stats strong { font-size: 24px; }
  .talent-board { grid-template-columns: 1fr; gap: 20px; }
  .tree-heading { padding: 13px 20px; }
  .tree-heading h3 { font-size: 24px; }
  .tree-canvas { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, 64px); gap: 8px; min-height: 536px; padding: 17px 18px 23px; }
  .tree-canvas .talent-node { width: 60px; height: 60px; padding: 3px; }
  .tree-canvas .talent-node img.talent-icon { width: 50px; height: 50px; }
  .tree-canvas .talent-node .talent-rank { min-width: 29px; height: 18px; font-size: 10px; line-height: 12px; bottom: -6px; right: -6px; }
  .calc-bottom { flex-wrap: wrap; gap: 19px; }
  .calc-bottom #copy-build { width: 100%; }
  .gear-grid { grid-template-columns: 1fr; gap: 19px; }
  .gear-grid article { padding-top: 18px; }
  .route-chapters { grid-template-columns: 1fr; gap: 22px; }
  .route-chapters article { padding-top: 17px; }
  .route-chapters h3 { margin-bottom: 10px; }
  .chapter-level { margin-bottom: 9px; }
  .stage-points { flex-basis: 100%; }
  .action-bar .spell-button { flex-basis: 110px; }
}
@media (max-width: 560px) {
  .armory-header { padding-inline: 19px; min-height: 68px; gap: 14px; }
  .wordmark { font-size: 18px; gap: 9px; }
  .wordmark small { font-size: 9px; }
  .wordmark svg { width: 24px; height: 30px; }
  .armory-header #menu-toggle { font-size: 10px; padding: 7px 9px; }
  .hero-armory, .journey-strip, #combat-lab, .combat-lab, .reading-layout, .site-footer, body > footer { width: calc(100% - 38px); }
  .hero-armory { grid-template-columns: minmax(0, 1fr) 98px; gap: 15px; padding: 25px 0 22px; align-items: start; }
  .hero-armory h1 { font-size: clamp(2.1rem, 8.3vw, 3rem); line-height: 1.12; }
  .hero-armory .hero-art { width: 98px; padding: 0; align-self: start; }
  .hero-armory .hero-copy > p { font-size: 12px; line-height: 1.8; }
  .hero-armory .hero-intro { font-size: 13px; margin-top: 14px; }
  .hero-armory .hero-tag { font-size: 10px; margin-bottom: 11px; }
  .hero-armory .hero-buttons { margin-top: 18px; gap: 9px; }
  .hero-armory .hero-buttons .button { font-size: 11px; min-height: 38px; padding: 9px 13px; }
  .hero-armory .hero-credit { font-size: 10px; }
  .journey-strip { grid-template-columns: 1fr; gap: 9px; margin-top: 0; margin-bottom: 24px; }
  .journey-strip a { display: flex; padding: 10px 13px; gap: 16px; font-size: 11px; }
  .journey-strip strong { min-width: 58px; margin: 0; font-size: 21px; }
  .journey-strip small { font-size: 10px; }
  .armory-panel { width: calc(100% - 18px); padding: 24px 15px 24px; margin-bottom: 48px; box-shadow: inset 0 0 0 1px #9f917140, inset 0 0 0 4px #0d1010, inset 0 0 0 5px #514b3e, 0 6px 20px #0005; }
  .panel-heading { margin-bottom: 20px; }
  .panel-heading h2 { font-size: 27px; }
  .panel-heading p { font-size: 12px; }
  .calc-toolbar { padding: 16px; }
  .calc-toolbar .level-control { gap: 9px 12px; }
  .level-control > label { font-size: 11px; }
  .level-input-row input { width: 46px; font-size: 20px; }
  .level-input-row > span { font-size: 10px; }
  .level-control button { width: 29px; min-width: 29px; height: 31px; }
  .calc-stats { gap: 0 15px; }
  .calc-stats > div, .calc-stats > span { min-width: 0; }
  .calc-stats strong { font-size: 23px; }
  .calc-stats small { font-size: 9px; }
  .level-presets { gap: 6px; margin: 14px 0 21px; }
  .level-presets button { min-width: 33px; padding: 4px 8px; font-size: 10px; height: 29px; }
  .stage-brief { gap: 9px 18px; margin-bottom: 19px; }
  .stage-brief h3 { font-size: 22px; }
  .stage-brief p { font-size: 12px; }
  .stage-allocation { font-size: 11px; }
  .talent-board { gap: 17px; }
  .tree-heading { min-height: 50px; padding: 12px 16px; }
  .tree-heading h3 { font-size: 23px; }
  .tree-canvas { padding: 16px 10px 23px; gap: 8px 4px; }
  .tree-canvas .talent-node { width: 55px; height: 55px; padding: 3px; }
  .tree-canvas .talent-node img.talent-icon { width: 45px; height: 45px; }
  .tree-canvas .talent-node .talent-rank { right: -5px; }
  .next-talent { gap: 13px; align-items: start; }
  .next-talent > img { width: 41px; height: 41px; flex-basis: 41px; }
  .next-talent h3 { font-size: 20px; }
  .next-talent p { font-size: 11px; }
  .next-talent > div > strong { font-size: 20px; }
  .inspector-panel { padding: 20px; }
  .inspector-panel p { font-size: 12px; }
  .talent-detail-head h3 { font-size: 22px; }
  .route-notice, .respec-notice { padding: 16px 18px; font-size: 12px; }
  #guide-content > section, #guide-content > .guide-section { padding-bottom: 52px; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
  .section-intro { font-size: 14px; }
  .quick-sheet { padding: 23px 20px; }
  .callout { padding: 21px; }
  .action-bar { gap: 8px; padding: 15px 12px; }
  .action-bar .spell-button { min-height: 112px; flex: 1 1 calc(50% - 10px); max-width: none; padding: 12px 10px; }
  .action-bar .spell-button img { width: 44px; height: 44px; }
  .combat-detail { padding: 22px; }
  .training-note { padding: 20px; }
  .training-note h3 { font-size: 21px; }
  .emergency-grid { grid-template-columns: 1fr; gap: 25px; }
  .allocation-list, .source-frames { grid-template-columns: 1fr; gap: 15px; }
  .quest-steps > li { padding-left: 42px; }
  .quest-steps h3 { font-size: 22px; }
  .quest-steps p { font-size: 13px; }
  .combat-nav .button { font-size: 10px; padding: 10px 12px; }
  .wow-tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { color-scheme: light; --bone: #29251c; --body: #333; --brass: #645020; }
  body { background: white; color: #222; font-size: 10pt; }
  .armory-header, .hero-buttons, .hero-art, .journey-strip, #sidebar, #menu-toggle, .level-presets, .calc-toolbar, .copy-button, #copy-build, .action-bar, .combat-controls, .combat-nav, .wow-tooltip { display: none !important; }
  .hero-armory, .armory-panel, .reading-layout, #combat-lab, .combat-lab, .site-footer { display: block; width: 100%; margin: 0 0 22px; padding: 0; border: 0; box-shadow: none; background: white; }
  .hero-armory h1 { font-size: 30pt; }
  .hero-armory .hero-copy > p, .hero-armory .hero-intro { color: #444; }
  h2 { font-size: 23pt; }
  h3 { font-size: 16pt; }
  .talent-board { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .talent-tree { background: white; box-shadow: none; border-color: #bbb; }
  .tree-heading { background: #eee; border-color: #aaa; padding: 7px 10px; }
  .tree-heading h3 { color: #333; font-size: 14pt; }
  .tree-points { color: #555; }
  .tree-canvas { grid-template-rows: repeat(7, 39px); min-height: 0; gap: 8px 2px; padding: 10px 7px 15px; }
  .tree-canvas { background: white; box-shadow: none; }
  .tree-canvas .talent-node { width: 35px; height: 35px; padding: 1px; box-shadow: none; }
  .tree-canvas .talent-node img.talent-icon { width: 29px; height: 29px; }
  .tree-canvas .talent-node .talent-rank { font-size: 7px; line-height: 9px; min-width: 20px; height: 13px; padding: 1px 2px; background: white; color: #333; bottom: -4px; right: -4px; }
  .inspector-panel, .route-notice, .respec-notice, .combat-detail, .quick-sheet, .callout, .card { background: white !important; color: #333; border: 1px solid #bbb; box-shadow: none; }
  .stage-brief p, .next-talent p, .inspector-panel p, .combat-detail p, .callout p, .card p, .quick-sheet p, .checklist label, .section-intro { color: #444; }
  .talent-detail-head h3, .next-talent h3, .callout h3, .quick-sheet h3, .quick-sheet strong { color: #333; }
  .tree-links path, .tree-links line { stroke: #999; }
  #guide-content > section, #guide-content > .guide-section { padding-bottom: 25px; }
  .gear-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .gear-grid article p { color: #444; }
  th { background: #eee; color: #333; }
  td, td:first-child { color: #333; }
  tbody tr:nth-child(even) { background: #f7f7f7; }
  summary, details[open] summary { color: #333; background: #eee; }
  .source, .source-line a, .muted { color: #555; }
}
