/* WowCamp - WoW-styled leveling guide */
:root {
  --bg: #0b0907;
  --panel: #18130e;
  --panel-2: #1f1912;
  --panel-hi: #2a2117;
  --line: #4a3a22;
  --line-soft: #2e2418;
  --gold: #e9c46a;
  --gold-hi: #ffd100; /* quest-title yellow */
  --gold-deep: #a9802f;
  --text: #e8dcc4;
  --text-dim: #b4a487;
  --text-mute: #9a8a6e; /* ≥ 4.8:1 on every panel */
  --horde: #c0392b;
  --rogue: #fff468; /* rogue class colour */
  --arcane: #6ec6ff; /* Forever-new accent - only for "new in Forever" */
  --ahead: #45d3b3; /* "take in advance" / "don't forget" */
  --hint: #b9c6d6; /* "level faster" tips */
  --ok: #8fd16a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --font-display: "Philosopher", "Times New Roman", serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --top-h: 72px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--top-h) + 16px);
}
body {
  margin: 0;
  background:
    radial-gradient(
      1200px 600px at 15% -10%,
      rgba(192, 57, 43, 0.13),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(110, 198, 255, 0.06),
      transparent 60%
    ),
    radial-gradient(
      1400px 900px at 50% 120%,
      rgba(169, 128, 47, 0.1),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  /* subtle stone grain, painted under all content */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.toc-open {
  overflow: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 10, 0.97),
    rgba(14, 11, 8, 0.94)
  );
  border-bottom: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(233, 196, 106, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.topbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand__sigil {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 6px rgba(233, 196, 106, 0.25));
  transition:
    filter 0.25s,
    transform 0.4s ease;
}
.brand:hover .brand__sigil {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 10px rgba(110, 198, 255, 0.45));
  transform: rotate(-8deg) scale(1.04);
}
.brand__name {
  font: 700 26px/1 var(--font-display);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
}
.brand__name small {
  font: 500 12px/1.4 var(--font-body);
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.picker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.chip {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  flex-shrink: 0;
}
.chip.is-active {
  background: linear-gradient(180deg, #3a2a16, #24190e);
  border-color: var(--gold-deep);
  color: var(--gold-hi);
  box-shadow: inset 0 0 8px rgba(233, 196, 106, 0.2);
}
.soon {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-left: auto;
}

.dd {
  position: relative;
  min-width: 0;
}
.dd summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.dd summary::-webkit-details-marker {
  display: none;
}
.dd summary:hover {
  filter: brightness(1.15);
}
.dd__label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd__label small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.dd__caret {
  color: var(--gold);
  font-size: 12px;
  transition: transform 0.15s;
}
.dd[open] .dd__caret {
  transform: rotate(180deg);
}
.dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 540px);
  overflow: hidden auto;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #221a12, #15100b);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.dd__item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.dd__item:hover:not(:disabled) {
  background: rgba(233, 196, 106, 0.1);
}
.dd__item.is-active {
  color: var(--gold-hi);
}
.dd__group {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.dd__item:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}
.dd__item:disabled img {
  filter: grayscale(1);
  opacity: 0.6;
}
.dd__check {
  margin-left: auto;
  color: var(--ok);
}

.total {
  width: 190px;
  flex-shrink: 0;
  display: grid;
  gap: 3px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 10px;
}
.total:hover {
  border-color: var(--line);
  background: rgba(233, 196, 106, 0.05);
}
.total__label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.total__label b {
  color: var(--gold-hi);
  font-size: 15px;
}
.total__go {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #0a0806;
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7a5a1c, var(--gold), #fff1b0);
  box-shadow: 0 0 10px rgba(233, 196, 106, 0.6);
  transition: width 0.4s ease;
}

/* ---------- Layout ---------- */
.layout {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
}

/* ---------- TOC ---------- */
.toc {
  position: relative;
  z-index: 30;
}
.toc__inner {
  position: sticky;
  top: calc(var(--top-h) + 20px);
  max-height: calc(100vh - var(--top-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(233, 196, 106, 0.06);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.toc__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 20px/1 var(--font-display);
  color: var(--gold);
  padding: 2px 6px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.toc__close {
  display: none;
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--text-dim);
  width: 40px;
  height: 40px;
}
.toc__hide {
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font: 700 20px/1 var(--font-body);
  color: var(--text-mute);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.toc__hide:hover,
.toc__hide:focus-visible {
  color: var(--gold);
  border-color: var(--line);
}

/* hidden menu (desktop): the guide takes the whole width, a tab on the left edge brings the menu back */
.toc-show {
  display: none;
  position: fixed;
  left: 0;
  top: calc(var(--top-h) + 24px);
  z-index: 35;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid #c99a3a;
  border-right: 0;
  border-radius: 10px 0 0 10px; /* rotated 180deg: visually flush left, rounded right */
  background: linear-gradient(90deg, #5c3f10, #8a6420);
  color: #fff3cf;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
  transition: padding 0.15s;
}
.toc-show:hover,
.toc-show:focus-visible {
  padding-left: 12px;
}
body.toc-hidden .layout {
  grid-template-columns: minmax(0, 1fr);
}
body.toc-hidden .toc {
  display: none;
}
body.toc-hidden .toc-show {
  display: flex;
}
.toc__tools {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}
.toc__group {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 12px 8px 4px;
}
.toc__link {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none !important;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    opacity 0.15s;
}
.toc__link:hover {
  background: rgba(233, 196, 106, 0.06);
  color: var(--text);
}
.toc__link.is-active {
  background: linear-gradient(
    90deg,
    rgba(233, 196, 106, 0.14),
    rgba(233, 196, 106, 0.02)
  );
  border-color: rgba(233, 196, 106, 0.25);
  color: var(--gold-hi);
}
.toc__link.is-filtered {
  opacity: 0.35;
  pointer-events: none;
}
.toc__lvl {
  grid-row: span 2;
  font: 700 13px/1 var(--font-body);
  color: var(--gold);
  text-align: center;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}
.toc__lvl.is-icon {
  font-size: 16px;
}
.toc__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.toc__name em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
}
.toc__mini {
  height: 3px;
  border-radius: 9px;
  background: #0a0806;
  overflow: hidden;
}
.toc__mini i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.4s;
}
.toc__link.is-done .toc__mini i {
  background: var(--ok);
}
.toc__link.is-done .toc__name::after {
  content: " ✓";
  color: var(--ok);
}
.toc__reset {
  width: 100%;
  margin-top: 12px;
}

.btn {
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--panel-hi);
  transition:
    filter 0.15s,
    transform 0.1s;
}
.btn:hover {
  filter: brightness(1.2);
}
.btn:active {
  transform: translateY(1px);
}
.btn--gold {
  background: linear-gradient(180deg, #8a6420, #5c3f10);
  border-color: #c99a3a;
  color: #fff3cf;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 160, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text-mute);
  font-weight: 500;
}
.btn--small {
  padding: 4px 10px;
  font-size: 13px;
  margin-left: 6px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch span {
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: #0a0806;
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-mute);
  transition:
    transform 0.2s,
    background 0.2s;
}
.switch input:checked + span {
  background: #3a2a10;
  border-color: var(--gold-deep);
}
.switch input:checked + span::after {
  transform: translateX(16px);
  background: var(--gold-hi);
}
.switch input:focus-visible + span {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.filter.is-on {
  border-color: var(--gold-deep);
  color: var(--gold-hi);
  background: rgba(233, 196, 106, 0.1);
}

/* ---------- Guide hero ---------- */
.guide {
  min-width: 0;
}
.hero {
  position: relative;
  border-radius: 14px;
  padding: 30px 32px 22px;
  background:
    radial-gradient(
      600px 260px at 85% 0%,
      rgba(192, 57, 43, 0.28),
      transparent 70%
    ),
    radial-gradient(
      500px 300px at 0% 100%,
      rgba(255, 244, 104, 0.07),
      transparent 70%
    ),
    linear-gradient(180deg, #1d1610, #120e0a);
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(233, 196, 106, 0.08),
    inset 0 0 60px rgba(0, 0, 0, 0.6);
}
/* background like the home page picker: home-city art of the race fading to the left, classic class icon in the top-right corner.
   The layer clips itself, so the hero can let the race/class dropdowns open over its edge. */
.hero__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background: 70% center / cover no-repeat;
  opacity: 0.65;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #17110c 5%,
      rgba(23, 17, 12, 0.88) 38%,
      rgba(23, 17, 12, 0.12) 85%
    ),
    linear-gradient(0deg, #110d09 2%, rgba(17, 13, 9, 0.7) 25%, transparent 75%);
}
.dd__guide-note {
  display: block;
  font-weight: 400;
}
.hero__cicon {
  position: absolute;
  top: 28px;
  right: 40px;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 3px solid color-mix(in srgb, var(--cc) 75%, #000);
  box-shadow:
    0 0 0 1px #000,
    0 0 0 4px rgba(233, 196, 106, 0.35),
    0 8px 22px rgba(0, 0, 0, 0.7),
    0 0 34px color-mix(in srgb, var(--cc) 30%, transparent);
}
.hero > :not(.hero__bg) {
  position: relative;
  z-index: 1;
}
.hero > .hero__eyebrow {
  z-index: 30;
}
@media (max-width: 760px) {
  .hero__photo {
    inset: 0;
    opacity: 0.3;
  }
  .hero__cicon {
    width: 56px;
    height: 56px;
    top: 16px;
    right: 14px;
    border-width: 2px;
    border-radius: 10px;
  }
}
.hero::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.hero__eyebrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.hero .picker {
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-right: 6px;
}
.hero .dd .dd__menu {
  left: 0;
  right: auto;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.35);
}
.tag--horde {
  color: #ffb4a8;
  border-color: rgba(192, 57, 43, 0.6);
  background: rgba(110, 26, 18, 0.35);
}
.tag--alliance {
  color: #b8d0ff;
  border-color: rgba(74, 122, 216, 0.6);
  background: rgba(20, 40, 100, 0.45);
}
.tag--rogue {
  color: var(--rogue);
  border-color: rgba(255, 244, 104, 0.4);
}
.tag--new {
  color: var(--arcane);
  border-color: rgba(110, 198, 255, 0.5);
  background: rgba(26, 74, 102, 0.35);
}
.hero h1 {
  margin: 0;
  font: 700 clamp(30px, 4.4vw, 50px)/1.02 var(--font-display);
  color: var(--gold);
  text-shadow:
    0 2px 0 #000,
    0 0 24px rgba(233, 196, 106, 0.25);
}
.hero h1 span {
  color: var(--rogue);
}
.hero__lead {
  max-width: 760px;
  color: var(--text-dim);
  font-size: 18px;
  margin: 12px 0 0;
}

.timeline {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}
.timeline__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.timeline__label {
  font: 700 13px/1 var(--font-body);
  color: var(--gold);
  text-align: right;
  letter-spacing: 0.02em;
}
.timeline__track {
  display: flex;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0806;
}
.timeline__seg {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9px;
  min-width: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
  color: #f6ead0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25)),
    var(--seg, #3a2a16);
  transition:
    filter 0.15s,
    opacity 0.15s;
}
.timeline__seg:hover {
  filter: brightness(1.25);
}
.timeline__seg:focus-visible {
  outline-offset: -3px;
}
.timeline__seg b {
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline__seg small {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
}
.timeline__seg.is-done {
  opacity: 0.55;
}
.timeline__seg.is-done b::before {
  content: "✓ ";
  color: var(--ok);
}
.timeline__seg.is-current {
  box-shadow: inset 0 0 0 2px var(--gold-hi);
  filter: brightness(1.2);
}

.legend-wrap {
  margin-top: 14px;
}
.legend-wrap summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  width: max-content;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filterbar {
  position: sticky;
  top: calc(var(--top-h) + 8px);
  z-index: 20;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--gold-hi);
  background: #2a1f12;
  border: 1px solid var(--gold-deep);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section {
  margin-top: 34px;
}
.section__head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section__lvl {
  flex-shrink: 0;
  font: 700 15px/1 var(--font-body);
  color: #1a1209;
  background: linear-gradient(180deg, #f6d98a, #b98a2e);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow:
    0 2px 0 #000,
    inset 0 1px 0 #fff3c4;
}
.section__title {
  flex: 1;
  min-width: 0;
}
.section__title h2 {
  margin: 0;
  font: 700 clamp(24px, 3vw, 32px)/1.05 var(--font-display);
  color: var(--gold);
}
.section__title p {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}
.section__count {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 700;
}
.section.is-complete .intro,
.section.is-complete .ahead,
.section.is-complete .steps {
  display: none;
}
.section.is-complete {
  margin-top: 14px;
}
.section.is-complete .section__head {
  opacity: 0.6;
  margin-bottom: 0;
}
.section.is-filtered .intro {
  display: none;
}

.intro {
  color: var(--text-dim);
  margin: 0 0 16px;
  max-width: 860px;
}

/* look-ahead box */
.ahead {
  border: 1px solid rgba(69, 211, 179, 0.3);
  border-left: 3px solid var(--ahead);
  background: linear-gradient(
    90deg,
    rgba(18, 84, 70, 0.38),
    rgba(18, 84, 70, 0.08)
  );
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
  max-width: 980px;
}
.ahead__title {
  font-weight: 800;
  color: var(--ahead);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ahead ul {
  margin: 0;
  padding-left: 18px;
}
.ahead li {
  margin: 6px 0;
}

/* shop / loot boxes inside route sections */
/* section map (assets/js/app.js renderMap, data/maps-<guide>.js): map + legend side by side */
.secmap {
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.secmap summary {
  padding: 9px 14px;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
}
.secmap summary::before {
  content: "🗺 ";
}
.secmap summary small {
  margin-left: 6px;
  color: var(--text-dim);
  font-weight: 400;
}
.secmap__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  border-top: 1px solid var(--line);
}
.secmap__fig {
  position: relative;
  align-self: start;
}
.secmap__svg {
  display: block;
  width: 100%;
  height: auto;
}
.secmap__full {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 13, 8, 0.85);
  color: var(--gold);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.secmap__area {
  fill: rgba(220, 70, 50, 0.16);
  stroke: rgba(240, 110, 80, 0.7);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.secmap__alabel {
  fill: #ffd9cf;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(30, 12, 6, 0.85);
  stroke-linejoin: round;
}
.secmap__edge {
  stroke: rgba(20, 12, 4, 0.75);
  stroke-linecap: round;
}
.secmap__route {
  fill: none;
  stroke-linecap: round;
}
.secmap__arrow {
  stroke: rgba(20, 12, 4, 0.9);
  stroke-linejoin: round;
}
.secmap__tip {
  display: none;
  position: fixed;
  z-index: 400;
  max-width: 300px;
  padding: 8px 10px;
  border: 1px solid #b18b38;
  border-radius: 8px;
  background: #1b150e;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.secmap__tip-head {
  display: flex;
  gap: 6px;
  align-items: center;
}
.secmap__tip b {
  color: var(--gold);
}
.secmap__tip ul {
  margin: 4px 0 0;
  padding-left: 16px;
}
.secmap__tip small {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
}
.secmap__area {
  cursor: help;
}
.secmap__leader {
  stroke: rgba(255, 236, 170, 0.85);
}
.secmap__dot {
  fill: #ffe7a3;
  stroke: #2a1d0c;
  stroke-width: 1;
}
.secmap__pt rect {
  fill: #2a1d0c;
  stroke: #e9c46a;
}
.secmap__pt--area rect {
  fill: #4a160f;
  stroke: #f07a5c;
}
.secmap__pt text {
  fill: #ffe7a3;
  font-weight: 700;
  text-anchor: middle;
  font-family: system-ui, sans-serif;
}
.secmap__pt:hover rect {
  fill: #5a3d12;
}
.secmap__pt.is-done rect,
.secmap__area.is-done {
  opacity: 0.35;
}
.secmap__pt.is-done text {
  opacity: 0.5;
}
.secmap__pt.is-current rect {
  fill: #b8862a;
}
.secmap__list {
  /* as tall as the map: contain:size keeps the long list from stretching the row, the grid stretches it back */
  contain: size;
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  overflow: auto;
  border-left: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
.secmap__item {
  /* number + title on one line, the actions below with the same indent for every item */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(74, 58, 34, 0.5);
}
.secmap__item:last-child {
  border-bottom: 0;
}
.secmap__item b {
  color: var(--gold);
}
.secmap__item > div {
  display: contents;
}
.secmap__item ul {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-left: 18px;
}
.secmap__item ul a {
  color: var(--text);
  text-decoration: none;
}
.secmap__item ul a:hover {
  text-decoration: underline;
}
.secmap__item.is-done {
  opacity: 0.5;
}
.secmap__num {
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border: 1.5px solid #e9c46a;
  border-radius: 9px;
  background: #2a1d0c;
  color: #ffe7a3;
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.secmap__num--area {
  border-color: #f07a5c;
  background: #4a160f;
}
.secmap__note {
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}
.secmap__key {
  display: inline-block;
  width: 14px;
  height: 12px;
  margin: 0 3px -1px 0;
  border-radius: 6px;
  border: 2px solid #e9c46a;
  background: #2a1d0c;
}
.secmap__key--route {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    hsl(210, 85%, 62%),
    hsl(300, 85%, 62%),
    hsl(30, 85%, 62%)
  );
}
.secmap__key--area {
  border-color: #f07a5c;
  background: #4a160f;
}
/* full screen: the map fills the window, the legend on the right (below on phones) */
.secmap.is-full {
  position: fixed;
  inset: 0;
  z-index: 300;
  margin: 0;
  border-radius: 0;
  overflow: auto;
  background: #120d08;
}
.secmap.is-full .secmap__body {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.secmap.is-full .secmap__list {
  max-height: calc(100vh - 110px);
}
.has-mapfull body {
  overflow: hidden;
}
@media (max-width: 900px) {
  .secmap__body,
  .secmap.is-full .secmap__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .secmap__list {
    contain: none;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.infoboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
  max-width: 1100px;
}
.infobox {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-deep);
  border-radius: 8px;
  padding: 12px 14px;
  background: linear-gradient(
    90deg,
    rgba(233, 196, 106, 0.08),
    rgba(233, 196, 106, 0.02)
  );
}
.infobox--loot {
  border-left-color: #6fae4f;
  background: linear-gradient(
    90deg,
    rgba(111, 174, 79, 0.1),
    rgba(111, 174, 79, 0.02)
  );
}
.infobox__title {
  font-weight: 800;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.infobox--loot .infobox__title {
  color: #9fd67f;
}
.infobox--hint {
  border-left-color: var(--hint);
  background: linear-gradient(
    90deg,
    rgba(185, 198, 214, 0.09),
    rgba(185, 198, 214, 0.02)
  );
}
.infobox--hint .infobox__title {
  color: var(--hint);
}
.infobox--pvp {
  border-left-color: #d0453a;
  background: linear-gradient(
    90deg,
    rgba(192, 57, 43, 0.14),
    rgba(192, 57, 43, 0.03)
  );
}
.infobox--pvp .infobox__title {
  color: #ff9c8f;
}
.infobox ul {
  margin: 0;
  padding-left: 18px;
}
.infobox li {
  margin: 6px 0;
}
.price {
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 0.92em;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
} /* air between the section boxes and the first step */
.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-left-width: 3px;
  transition:
    border-color 0.15s,
    opacity 0.5s,
    background 0.2s;
}
.step:hover {
  border-color: var(--line);
}
.step--new {
  border-left-color: rgba(110, 198, 255, 0.7);
}
.step--warn {
  border-left-color: rgba(255, 107, 90, 0.7);
}
.step.is-current {
  border-color: var(--gold-deep);
  border-left: 4px solid var(--gold-hi);
  background: linear-gradient(180deg, #33281a, #241b11);
  box-shadow:
    0 0 0 1px rgba(233, 196, 106, 0.3),
    0 0 26px rgba(233, 196, 106, 0.14);
}
.step.is-current::before {
  content: "ТЫ ЗДЕСЬ";
  position: absolute;
  top: -11px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1a1209;
  background: var(--gold-hi);
  padding: 2px 9px;
  border-radius: 99px;
}
.step.is-flash {
  animation: flash 1.2s ease;
}
@keyframes flash {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(233, 196, 106, 0.3);
  }
  30% {
    box-shadow:
      0 0 0 4px rgba(255, 209, 0, 0.55),
      0 0 40px rgba(255, 209, 0, 0.35);
  }
}
.step.is-done {
  opacity: 0.5;
}
.step.is-done .step__text,
.step.is-done .step__sub {
  text-decoration: line-through;
  text-decoration-color: rgba(232, 220, 196, 0.35);
}
.step.is-leaving {
  opacity: 0.15;
}
.step.is-hidden {
  display: none;
}

/* stops view (pilot): steps at one place make one card; "where to go" line; mini-map popover */
.step--joinnext {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.step--joined {
  margin-top: -15px;
  border-top: 1px dashed var(--line-soft);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.step--joined.is-current::before {
  top: 6px;
}
.where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.where__arrow {
  display: inline-block;
  margin-right: 2px;
  color: var(--gold-hi);
  font-style: normal;
  font-weight: 800;
}
.where__time {
  opacity: 0.85;
}
.where__map {
  padding: 1px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.where__map:hover,
.where__map[aria-expanded="true"] {
  border-color: var(--gold-deep);
  color: var(--gold-hi);
}
.wmap {
  position: absolute;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 16px);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}
.wmap__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
}
.wmap__head span {
  color: var(--text-dim);
  font-size: 12px;
}
.wmap__close {
  margin-left: auto;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.wmap__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.wmap__path {
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
}
.wmap__from {
  fill: #c9c2b3;
  stroke: #1a1209;
}
.wmap__to {
  fill: var(--gold-hi);
  stroke: #1a1209;
}
.wmap__num {
  fill: #1a1209;
  text-anchor: middle;
  font-weight: 800;
}
.wmap__label {
  fill: #fff;
  stroke: #000;
  paint-order: stroke;
  font-weight: 700;
}
.wmap__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}
.wmap__key {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: -1px;
  border: 1px solid #1a1209;
}
.wmap__key--from {
  background: #c9c2b3;
}
.wmap__key--to {
  background: var(--gold-hi);
}

.check {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid var(--gold-deep);
  background: #0a0806;
  display: grid;
  place-items: center;
  padding: 0;
}
.check::after {
  content: "✓";
  font-weight: 800;
  color: transparent;
  font-size: 16px;
  line-height: 1;
}
.check:hover {
  border-color: var(--gold-hi);
}
.step.is-done .check {
  background: linear-gradient(180deg, #4f7d2d, #2f4e18);
  border-color: var(--ok);
}
.step.is-done .check::after {
  color: #e9ffd9;
}

.icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-style: normal;
  font: 800 18px/1 var(--font-display);
  background: radial-gradient(circle at 35% 30%, #3b2d18, #120d07);
  border: 1px solid var(--line);
}
.icon--accept,
.icon--turnin {
  color: var(--gold-hi);
  font-family: var(--font-body);
  text-shadow: 0 0 6px rgba(255, 209, 0, 0.6);
}
.icon--do {
  color: #ff9a7a;
  font-size: 15px;
}
.icon--travel {
  color: #cfe3ff;
  font-size: 15px;
}
.icon--train {
  color: var(--rogue);
  font-size: 15px;
}
.icon--prof {
  color: #ffc27a;
  font-size: 15px;
}
.icon--hearth {
  color: #9ae0ff;
  font-size: 16px;
}
.icon--dungeon {
  color: #d29bff;
  font-size: 15px;
}
.icon--tip {
  color: var(--text-dim);
  font-size: 15px;
}
.icon--buy {
  color: #ffe08a;
  font-size: 16px;
}
.icon--coord {
  color: var(--gold);
  font-size: 16px;
}

.step__body {
  min-width: 0;
  max-width: 80ch;
}
.step__body {
  line-height: 1.85;
}
.step__text {
  margin: 0;
}
.step__sub {
  margin: 4px 0 0;
  padding-left: 20px;
}
.step__sub li {
  margin: 7px 0;
}
.step__sub li::marker {
  color: var(--gold-deep);
}
.step__src {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.step__src span {
  color: var(--gold);
  font-weight: 700;
}
.step__src b {
  color: #e8dcc4;
  font-weight: 700;
}
.step__note {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}
.step__note::before {
  content: "- ";
}

/* "Как делать квест - …" spoiler with tips from Wowhead comments */
.howto {
  margin: 10px 0 0;
}
.howto > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35em;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mute);
  text-align: right;
}
.howto > summary::-webkit-details-marker {
  display: none;
}
.howto > summary::before {
  content: "✦";
  color: var(--gold-deep);
}
.howto > summary::after {
  content: "▾";
  color: var(--gold-deep);
  transition: transform 0.2s;
}
.howto[open] > summary::after {
  transform: rotate(180deg);
}
.howto > summary:hover,
.howto > summary:focus-visible {
  color: var(--gold);
}
.howto__label {
  font-weight: 700;
}
.howto__name {
  color: var(--gold-hi);
  font-weight: 700;
}
.howto__box {
  margin-top: 8px;
  padding: 10px 14px 10px 16px;
  background: var(--panel-hi);
  border-left: 2px solid var(--gold-deep);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.7;
}
.howto__box ul {
  margin: 0;
  padding-left: 1.1em;
}
.howto__box li + li {
  margin-top: 6px;
}
.howto__more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
}
.howto__more:hover {
  color: var(--gold);
}
@media (max-width: 560px) {
  .howto > summary {
    justify-content: flex-start;
    text-align: left;
  }
}
.step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.step__meta .tag {
  padding: 2px 8px;
}
.tag--dungeon {
  color: #e1c0ff;
  border-color: rgba(163, 53, 238, 0.5);
  background: rgba(80, 20, 120, 0.25);
}
.tag--prof {
  color: #ffd2a0;
  border-color: rgba(255, 160, 70, 0.45);
}
.tag--class {
  color: var(--rogue);
  border-color: rgba(255, 244, 104, 0.4);
}
.tag--ahead {
  color: var(--ahead);
  border-color: rgba(69, 211, 179, 0.45);
}
.tag--warn {
  color: #ffb0a6;
  border-color: rgba(255, 107, 90, 0.5);
}

/* inline entities */
.e-q,
.e-npc,
.e-it,
.e-sp,
.e-zone,
.e-obj {
  font-weight: 700;
}
.e-q {
  color: var(--gold-hi);
}
.e-npc {
  color: #9ef08a;
}
.e-zone {
  color: #ffe9b8;
}
.e-obj {
  color: #d6c9ff;
}
.e-sp {
  color: #ffe7a8;
}
.e-it {
  color: #fff;
}
.e-it.q0 {
  color: #9d9d9d;
}
.e-it.q2 {
  color: #1eff00;
}
.e-it.q3 {
  color: #3fa0ff;
}
.e-it.q4 {
  color: #c06cff;
}
.e-q.is-new {
  text-shadow: 0 0 8px rgba(110, 198, 255, 0.45);
}
.e-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  margin-right: 0.3em;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.6);
}
a.e-q,
a.e-npc,
a.e-it,
a.e-sp,
a.e-zone,
a.e-obj {
  text-decoration: none;
  border-bottom: 1px dotted rgba(233, 196, 106, 0.35);
}
a.e-q:hover,
a.e-npc:hover,
a.e-it:hover,
a.e-sp:hover,
a.e-zone:hover,
a.e-obj:hover {
  border-bottom-style: solid;
  text-decoration: none;
}
.steplink {
  font-weight: 700;
  color: var(--arcane);
}
/* "!" / "?" quest markers: centred on the text's visual middle (sized in em, so it scales with the text). */
.qm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  margin: 0 0.4em 0 0.15em;
  vertical-align: middle;
  position: relative;
  top: var(--qm-shift, -0.08em);
  font: 800 0.76em/1 var(--font-body);
  font-style: normal;
  color: #1a1209;
  border-radius: 0.3em;
  background: linear-gradient(180deg, #ffe680, #d9a400);
  box-shadow: 0 0 6px rgba(255, 209, 0, 0.45);
}
.qm--turn {
  background: linear-gradient(180deg, #fff3b0, #e0b100);
}
.lvl-chip {
  font-size: 0.72em;
  font-weight: 800;
  color: var(--text-mute);
  margin-left: 0.3em;
}
/* a little air around every inline entity so names don't run into the words next to them */
.e-q,
.e-npc,
.e-it,
.e-sp,
.e-zone,
.e-obj {
  margin: 0 0.1em;
}
.coord {
  margin: 0 0.15em;
}
.qx {
  white-space: nowrap;
}
.qx > a {
  white-space: normal;
}
.coord {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: 1px;
  font:
    700 13px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #ffe9b8;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
}
.coord::before {
  content: "⌖";
  color: var(--gold);
  font-size: 14px;
}
.coord:hover {
  border-color: var(--gold-deep);
  background: rgba(233, 196, 106, 0.1);
}
.kbd {
  font:
    700 13px ui-monospace,
    Consolas,
    monospace;
  background: #0a0806;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
}
.money {
  white-space: nowrap;
  font-weight: 700;
}
.money .g {
  color: #ffd700;
}
.money .s {
  color: #d8d8d8;
}
.money .c {
  color: #e3955b;
}
.money > span + span {
  margin-left: 0.3em;
}
.coin {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.14em;
  border-radius: 50%;
  vertical-align: 0.02em;
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}
.money .g .coin {
  background: radial-gradient(circle at 35% 30%, #fff3a0, #e6b422 55%, #8a6410);
}
.money .s .coin {
  background: radial-gradient(circle at 35% 30%, #ffffff, #c4c4c4 55%, #6e6e6e);
}
.money .c .coin {
  background: radial-gradient(circle at 35% 30%, #ffd0a8, #c9733a 55%, #6d3612);
}

/* ---------- Cards (dungeons / professions / class) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.card {
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, 0.04);
}
.card h3 {
  margin: 0 0 4px;
  font: 700 22px/1.1 var(--font-display);
  color: var(--gold);
}
.card__sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}
.card ul,
.card ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.card li {
  margin: 8px 0;
}
.card p {
  margin: 8px 0 0;
}
.card--wide {
  grid-column: 1 / -1;
}
/* masonry cards (columns): cards of different height without holes, e.g. the addon lists */
.cards--masonry {
  display: block;
  columns: 320px auto;
  column-gap: 14px;
}
.cards--masonry > .card {
  break-inside: avoid;
  margin: 0 0 14px;
}
/* JS masonry (app.js layoutMasonry): grid of columns, each card goes to the shortest one */
.cards--masonry.cards--js {
  display: grid;
  columns: auto;
  gap: 14px;
  align-items: start;
}
.cards__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card--new {
  border-color: rgba(110, 198, 255, 0.4);
  background: linear-gradient(180deg, #16202a, #11171d);
}

.qlist {
  list-style: none;
  padding: 0 !important;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.qlist li {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-soft);
  margin: 0 !important;
}
.qlist__when {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 3px;
}
.qlist__when a {
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--panel);
}
th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  background: #120e0a;
}
tr:last-child td {
  border-bottom: 0;
}
td.lv {
  font-weight: 800;
  color: var(--gold);
  width: 60px;
}

.callout {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.callout--warn {
  border-color: rgba(255, 107, 90, 0.45);
  background: rgba(110, 26, 18, 0.2);
}
.callout--new {
  border-color: rgba(110, 198, 255, 0.45);
  background: rgba(26, 74, 102, 0.25);
}
.conf {
  font: 800 12px/1.4 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid;
  margin-left: 8px;
  white-space: nowrap;
  vertical-align: 4px;
}
.conf--official {
  color: var(--ok);
  border-color: rgba(143, 209, 106, 0.5);
}
.conf--data {
  color: var(--arcane);
  border-color: rgba(110, 198, 255, 0.5);
}
.conf--community {
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.45);
}
.conf--unknown {
  color: var(--text-mute);
  border-color: var(--line);
}

/* ---------- Footer / misc ---------- */
.footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px 90px;
  color: var(--text-mute);
  font-size: 14px;
  border-top: 1px solid var(--line-soft);
}
.footer a {
  color: var(--text-dim);
}
.footer ul {
  padding-left: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  background: #1b140c;
  border: 1px solid var(--gold-deep);
  color: var(--gold-hi);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 32px);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.is-selectable {
  pointer-events: auto;
  user-select: all;
}

/* ---------- Talent builds ---------- */
.builds {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.build {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.build > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 18px;
}
.build > summary::-webkit-details-marker {
  display: none;
}
.build > summary::before {
  content: "▸";
  color: var(--gold);
  transition: transform 0.2s;
}
.build[open] > summary::before {
  transform: rotate(90deg);
}
.build > summary:hover .build__name {
  color: var(--gold-hi);
}
.build__name {
  font: 700 22px/1.2 var(--font-display);
  color: var(--gold);
}
.build__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  color: var(--gold-hi);
}
.build__split {
  font:
    700 13px/1 ui-monospace,
    Consolas,
    monospace;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
}
.build__sub {
  flex-basis: 100%;
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 20px;
}
.build__body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line-soft);
}
.build__why {
  margin: 12px 0 14px;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 15px;
}
.build__why li {
  margin: 5px 0;
}

.tal-trees {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tal-tree {
  padding: 10px 12px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.tal-tree.is-empty {
  opacity: 0.55;
}
.tal-tree__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.tal-tree__head img {
  border-radius: 4px;
  border: 1px solid var(--line);
}
.tal-tree__head b {
  margin-left: auto;
  color: var(--gold-hi);
  font-size: 15px;
}
.tal-grid {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  grid-template-rows: repeat(7, 40px);
  gap: 9px 10px;
}
.tal {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  border: 2px solid #3a3226;
  background: #0a0806;
  text-decoration: none !important;
}
.tal img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  display: block;
}
.tal.is-off img {
  filter: grayscale(1) brightness(0.55);
}
.tal.is-off {
  border-color: #2a241b;
}
.tal.is-part {
  border-color: #6fbf4f;
  box-shadow: 0 0 6px rgba(111, 191, 79, 0.35);
}
.tal.is-max {
  border-color: var(--gold-hi);
  box-shadow: 0 0 8px rgba(255, 209, 0, 0.35);
}
.tal:hover {
  transform: translateY(-1px);
}
.tal__pts {
  position: absolute;
  right: -7px;
  bottom: -7px;
  font: 800 11px/1 var(--font-body);
  color: #fff3cf;
  background: #120d08;
  border: 1px solid var(--gold-deep);
  border-radius: 6px;
  padding: 2px 4px;
}
.tal.is-part .tal__pts {
  color: #b7f09a;
  border-color: #4f8f36;
}
.tal__lvl {
  position: absolute;
  left: -7px;
  top: -7px;
  font: 800 10px/1 var(--font-body);
  color: var(--text-dim);
  background: #120d08;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 3px;
}
.tal-order__title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.tal-order {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.tal-order li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  color: var(--text);
}
.tal-order img {
  border-radius: 50%;
}
.tal-order small {
  color: var(--text-mute);
  font-weight: 700;
}
.tal-order__lvl {
  font: 800 12px/1 var(--font-body);
  color: #1a1209;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 6px;
  min-width: 22px;
  text-align: center;
}
.build__calc {
  margin-left: 0;
}

/* ---------- Quest search ---------- */
.searchbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 220px;
  height: 40px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-mute);
  font-size: 14px;
  text-align: left;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.searchbtn:hover,
.searchbtn:focus-visible {
  border-color: var(--gold-deep);
  color: var(--text-dim);
}
.searchbtn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--gold);
}
.searchbtn__text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.searchbtn kbd,
.search kbd {
  font: 700 12px/1 var(--font-body);
  padding: 3px 6px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.search {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 16px 16px;
  background: rgba(5, 4, 3, 0.72);
  backdrop-filter: blur(2px);
}
.search[hidden] {
  display: none;
}
body.search-open {
  overflow: hidden;
}
.search__panel {
  width: min(680px, 100%);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #221a12, #15100b);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(233, 196, 106, 0.08);
}
.search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.search__field svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}
.search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: 500 18px/1.4 var(--font-body);
  -webkit-appearance: none;
  appearance: none;
}
.search__field input::placeholder {
  color: var(--text-mute);
}
.search__field input::-webkit-search-cancel-button {
  display: none;
}
.search__close {
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.search__close:hover,
.search__close:focus-visible {
  color: var(--gold);
  background: rgba(233, 196, 106, 0.08);
}
.search__results {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search__cap {
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.search__empty {
  padding: 18px 12px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}
.search__item {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.search__item:hover {
  background: rgba(233, 196, 106, 0.05);
}
.search__item.is-active {
  background: rgba(233, 196, 106, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}
.search__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold-hi);
}
.search__name small {
  color: var(--text-mute);
  font-weight: 700;
}
.search__name mark,
.search__en mark {
  background: rgba(233, 196, 106, 0.25);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.search__en {
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}
.search__where {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.search__go {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}
.search__go b {
  color: var(--gold);
  font-weight: 700;
}
.search__go small {
  color: var(--text-mute);
}
.search__go i {
  font-style: normal;
  color: var(--ok);
}
.search__go:hover {
  border-color: var(--gold-deep);
  color: var(--text);
}
.search__go.is-done {
  opacity: 0.75;
}
.search__foot {
  padding: 8px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-mute);
}
a.is-hit {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 3px;
}
li.is-flash,
tr.is-flash,
.card.is-flash {
  animation: flash 1.2s ease;
}

.fabs {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }
  .total {
    width: 150px;
  }
  .searchbtn {
    width: 170px;
  }
  .brand__name small {
    display: none;
  }
  .dd__label small {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --top-h: 60px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 40px;
  }
  .toc {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
  }
  .toc::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .toc__inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(330px, 88vw);
    max-height: none;
    border-radius: 0 12px 12px 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .toc.is-open {
    pointer-events: auto;
  }
  .toc.is-open::before {
    opacity: 1;
  }
  .toc.is-open .toc__inner {
    transform: none;
  }
  .toc__close {
    display: block;
  }
  .toc__hide,
  .toc-show {
    display: none !important;
  }
  body.toc-hidden .toc {
    display: block;
  } /* the drawer ignores the desktop "hidden menu" setting */
  .fabs {
    display: flex;
    gap: 8px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 45;
  }
  body.toc-open .fabs {
    display: none;
  }
  .fab {
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 15px;
    min-height: 48px;
    background: linear-gradient(180deg, #8a6420, #5c3f10);
    border: 1px solid #c99a3a;
    color: #fff3cf;
    box-shadow: var(--shadow);
  }
  .fab b {
    margin-left: 4px;
    color: #ffe9a6;
  }
  .fab--go {
    width: 48px;
    padding: 0;
    font-size: 18px;
  }
  .topbar__inner {
    gap: 10px;
    padding: 0 16px;
  }
  .brand__name {
    font-size: 22px;
  }
  .picker {
    justify-content: flex-end;
    gap: 6px;
  }
  .chip {
    font-size: 14px;
    padding: 4px 10px 4px 4px;
    gap: 6px;
  }
  .chip img {
    width: 26px;
    height: 26px;
  }
  .dd .dd__menu {
    left: auto;
    right: 0;
  }
  .total {
    display: none;
  }
  .searchbtn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .searchbtn__text,
  .searchbtn kbd {
    display: none;
  }
  .search {
    padding: 8px;
  }
  .search__panel {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .search__field input {
    font-size: 16px;
  }
  .search__foot {
    display: none;
  }
  .hero {
    padding: 22px 18px 18px;
  }
  .hero::after {
    left: 18px;
    right: 18px;
  }
  .filterbar {
    top: calc(var(--top-h) + 6px);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .brand__sigil {
    width: 36px;
    height: 36px;
  }
  .brand__name {
    font-size: 20px;
  }
  .dd__label {
    display: none;
  }
  .chip {
    padding: 3px 8px 3px 3px;
  }
  .step {
    grid-template-columns: 36px 22px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 12px 12px 10px;
  }
  .step .icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .check {
    width: 36px;
    height: 36px;
  }
  .coord {
    padding: 6px 9px;
  }
  .section__head {
    align-items: center;
    gap: 10px;
  }
  .section__count {
    display: none;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline__track {
    height: 40px;
  }
  .timeline__row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px;
  }
  .timeline__label {
    font-size: 11px;
  }
  .timeline__seg {
    padding: 0 2px;
    align-items: center;
  }
  .timeline__seg b {
    display: none;
  }
  .timeline__seg small {
    font-size: 11px;
    opacity: 1;
    font-weight: 700;
  }
}

/* wide screens (2K/4K): a wider guide, text blocks may use the room */
@media (min-width: 1700px) {
  .topbar__inner,
  .layout,
  .footer {
    max-width: 1760px;
  }
  .step__body {
    max-width: 100ch;
  }
  .intro {
    max-width: 1040px;
  }
  .ahead {
    max-width: 1240px;
  }
  .infoboxes {
    max-width: none;
  }
}
@media (min-width: 2200px) {
  .topbar__inner,
  .layout,
  .footer {
    max-width: 2160px;
  }
  .layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 36px;
  }
  .step__body {
    max-width: 112ch;
  }
  .ahead {
    max-width: 1400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
a.dd__item {
  text-decoration: none !important;
  color: var(--text);
}
a.dd__item:hover {
  color: var(--gold-hi);
}

/* chapters: a finished section folds to its header; chapters after the current one hide behind a bar */
.fold-open {
  display: none;
  margin: 6px 0 0;
  padding: 7px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ok);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.fold-open:hover {
  border-color: var(--ok);
}
.section.is-folded {
  margin-top: 14px;
}
.section.is-folded > :not(.section__head):not(.fold-open) {
  display: none;
}
.section.is-folded .fold-open {
  display: inline-flex;
}
.section.is-folded .section__head {
  opacity: 0.7;
  margin-bottom: 0;
}
.section.is-future {
  display: none;
}
.chapter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 28px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(58, 42, 22, 0.5),
    rgba(20, 15, 10, 0.8)
  );
  color: var(--text-dim);
}
.chapter-bar b {
  font: 700 19px/1.2 var(--font-display);
  color: var(--gold);
}
