:root {
  --bg: #0c0d0f;
  --bg-raise: #14161a;
  --bg-panel: #171a1f;
  --bg-panel-2: #1e2228;
  --line: #2c3138;
  --line-strong: #3d3424;
  --gold: #e2c56a;
  --gold-dim: #a6863c;
  --ink: #ece7dc;
  --muted: #9a9386;
  --link: #6eb6ff;
  --link-hover: #b9dcff;
  --horde: #c4453c;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --serif: "Cinzel", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --mast: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(226, 197, 106, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 69, 60, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.4rem 0.7rem;
  background: var(--gold);
  color: #1a1408;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 15, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.mast-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.crest { width: 42px; height: 42px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.tabs { display: flex; gap: 0.25rem; }
.tabs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.tabs a:hover { color: var(--ink); background: var(--bg-panel); }
.tabs a.is-current {
  color: #1a1408;
  background: var(--gold);
}
.find { margin-left: auto; }
.find input {
  width: 220px;
  background: #0e1013;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
}
.find input::placeholder { color: #6e685e; }

.shell { max-width: 1180px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.hero { max-width: 46rem; margin-bottom: 1.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  margin: 1rem 0 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.lede { margin: 0; color: var(--muted); font-size: 1.12rem; }
.pip {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
}
.pip-horde { background: var(--horde); box-shadow: 0 0 0 2px rgba(196, 69, 60, 0.25); }
.pip-alliance { background: #3d7dcc; box-shadow: 0 0 0 2px rgba(61, 125, 204, 0.28); }
.pips { display: inline-flex; align-items: center; gap: 0.28rem; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.home-grid > .panel { min-width: 0; }
.specs-panel { max-width: 760px; }
.panel {
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.panel-head h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.panel-head a {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.panel-head a:hover { color: var(--link-hover); }
.count {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.cards { list-style: none; margin: 0; padding: 0.75rem; }
.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(8, 9, 11, 0.45);
  border: 1px solid transparent;
}
.card:hover { border-color: var(--gold-dim); background: rgba(226, 197, 106, 0.06); }
.card-kicker {
  grid-column: 1;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-range {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}
.card-title {
  grid-column: 1;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
}
.card-summary { grid-column: 1 / -1; color: var(--muted); }
.card-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.route { margin-top: 1rem; }
.route-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.route-steps li {
  margin: 0;
  padding: 1rem 1.05rem 1.15rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.route-steps li:last-child { border-right: 0; }
.route-range {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.1;
}

.guide-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  align-items: start;
}
.guide-shell:has(.talent-calc) { max-width: 1520px; }
.toc {
  position: sticky;
  top: var(--mast);
  max-height: calc(100vh - var(--mast));
  overflow: auto;
  padding: 1.1rem 1rem 2rem 0;
  border-right: 1px solid var(--line);
}
.toc-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc-head h2 {
  margin: 0.15rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.toc-search input {
  width: 100%;
  margin-bottom: 0.7rem;
  background: #0e1013;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.92rem;
}
.toc-list, .toc-list ol { list-style: none; margin: 0; padding: 0; }
.toc-list a {
  display: block;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.3;
}
.toc-h2 > a { color: var(--ink); font-weight: 700; margin-top: 0.45rem; }
.toc-h3 a { padding-left: 0.9rem; font-size: 0.86rem; }
.toc-list a:hover, .toc-list a.is-active {
  color: #1a1408;
  background: var(--gold);
}
.toc-list ol:empty { display: none; }

.article {
  padding: 1.4rem 0 2rem 1.6rem;
  max-width: 760px;
  min-width: 0;
}
.article.is-wide { max-width: none; }
.article:has(.talent-calc) { max-width: none; }
.article:has(.talent-calc) > :not(.talent-calc) { max-width: 760px; }
.talent-calc {
  display: block;
  width: min(1100px, 100%);
  height: 1060px;
  margin: 0.8rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e1013;
  overflow: hidden;
}
.article .table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.article .table-wrap table { margin: 0; }
.article th,
.article td {
  padding: 0.32rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.article th:first-child,
.article td:first-child {
  text-align: left;
}
.article .spells th:nth-child(2),
.article .spells td:nth-child(2) {
  text-align: left;
}
.article thead th {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.28);
}
.article tbody tr:last-child td { border-bottom: 0; }
.article h1 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.article h2 {
  margin: 2.1rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}
.article h2::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  background: var(--gold);
  transform: translateY(-0.12rem) rotate(45deg);
}
.article h3 {
  margin: 1.35rem 0 0.35rem;
  color: #f0e2b0;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.article p { margin: 0.55rem 0; }
.article ul, .article ol { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.article li { margin: 0.28rem 0; }
.article li::marker { color: var(--gold-dim); }
.article strong { color: #fff8e8; font-weight: 700; }
.article em { color: #d9d0c0; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.article code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: #0e1013;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
.article blockquote {
  margin: 0.8rem 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--gold-dim);
  color: var(--muted);
}
.article a.shot,
.article a.zone-map { position: relative; white-space: nowrap; }
.article a.shot:hover::after,
.article a.shot:focus-visible::after,
.article a.zone-map:hover::after,
.article a.zone-map:focus-visible::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: calc(100% + 0.4rem);
  width: min(360px, 72vw);
  aspect-ratio: 4 / 3;
  background: #0e1013 var(--shot) center / contain no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.article h3.is-horde,
.article h3.is-alliance,
.article h3.is-both { padding-left: 0.5rem; }
.article h3.is-horde { border-left: 3px solid #b55249; }
.article h3.is-alliance { border-left: 3px solid #3d7dcc; color: #d6e6ff; }
.article h3.is-both { border-left: 3px solid var(--gold-dim); }
.article h4 {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.92rem;
}
.article h4.is-horde {
  color: #ff8f86;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.faction {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: baseline;
}
.faction-horde { color: #ff8f86; }
.faction-alliance { color: #9ec9ff; }
.faction-both { color: #f0e2b0; }
.faction-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin-right: 0.35rem;
  vertical-align: -0.15em;
}
.faction-icon, .quest-icon {
  height: 15px;
  width: auto;
  image-rendering: pixelated;
}
.faction-mark .faction-icon { display: block; }
.quest-icon {
  display: inline-block;
  margin-right: 0.18rem;
  vertical-align: -2px;
}
.article .note-alliance {
  padding: 0.25rem 0.6rem 0.25rem 0.5rem;
  border-left: 3px solid #3d7dcc;
  border-radius: 0 8px 8px 0;
  background: rgba(61, 125, 204, 0.12);
  color: #d7e6fb;
}
.article li.note-alliance { margin-left: -0.15rem; }
.article .note-alliance strong { color: #f4f8ff; }
.toc-h3.is-horde > a { box-shadow: inset 3px 0 0 #b55249; }
.toc-h3.is-alliance > a { box-shadow: inset 3px 0 0 #3d7dcc; }
.toc-h3.is-both > a { box-shadow: inset 3px 0 0 #a6863c; }

.colophon {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: #6e685e;
  font-size: 0.85rem;
}
.colophon p { margin: 0; border-top: 1px solid var(--line); padding-top: 0.8rem; }

@media (max-width: 860px) {
  .mast-row { flex-wrap: wrap; }
  .find { margin-left: 0; width: 100%; }
  .find input { width: 100%; }
  .home-grid, .guide-shell { grid-template-columns: 1fr; }
  .route-steps { grid-template-columns: 1fr 1fr; }
  .route-steps li:nth-child(2) { border-right: 0; }
  .route-steps li { border-bottom: 1px solid var(--line); }
  .route-steps li:nth-last-child(-n+2) { border-bottom: 0; }
  .toc {
    position: static;
    max-height: 40vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }
  .article { padding-left: 0; }
}

@media (max-width: 560px) {
  .route-steps { grid-template-columns: 1fr; }
  .route-steps li,
  .route-steps li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-steps li:last-child { border-bottom: 0; }
}
