/* NPC page (npc.js). Colors come from app.css only.
   No class or id here may contain "ad", "banner" or "sponsor": ad blockers hide those. */

.np-col { max-width: 860px; }
.np-crumb { margin: 0 0 6px; font-size: 13.5px; }
.np-crumb a, .np-zones a, .np-src a, .np-q a, .np-empty a, .np-dim a { color: var(--field); }
.np-item:not([class*="q-"]) { color: var(--text); }
.np h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.np-title { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.np-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.np-chip {
  font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); white-space: nowrap;
}
.np-elite, .np-rareelite, .np-boss, .np-worldboss { border-color: var(--gold); color: var(--gold); }
.np-rare { border-color: #c0c0c0; color: #d8d8d8; }
.np-friendly { border-color: var(--str); color: var(--str); }
.np-hostile { border-color: #e06c5a; color: #f08a78; }
.np-neutral { border-color: #e5c24a; color: #e5c24a; }
.np-svc { border-color: var(--field); color: var(--field); }

.np-sec { margin-top: 28px; }
.np-sec h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.01em; }
.np-world { margin-top: 10px; }
.np-world summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px 0; }
.np-h3 { margin: 16px 0 6px; font-size: 14.5px; }
.np-small { font-size: 13px; font-weight: 500; }
.np-dim { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.np-dim b { color: var(--text); }
.np-zones { margin: 0 0 10px; color: var(--muted); }
.np-map { margin: 8px 0 10px; }
.np-map .mv { max-height: 60vh; }

.np-spots { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.np-spots li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.np-coord { flex: 1 1 220px; }
.np-coord b { font-variant-numeric: tabular-nums; }
.np-btn {
  font: 600 13px var(--ui); padding: 5px 11px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--raise); color: var(--text);
}
.np-btn:hover { border-color: var(--gold); }
.np-btn:focus-visible { outline: 2px solid var(--field); outline-offset: 2px; }

.np-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.np-t td, .np-t th { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.np-t th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.np-t .np-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.np-t-xp { max-width: 380px; }
/* phones: text cells wrap, and a table still too wide (nav.js marks it np-t-wide) scrolls sideways inside
   itself, never the whole page */
@media (max-width: 640px) {
  table.np-t.np-t-wide { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .np-t td, .np-t th { padding: 5px 6px; }
  .np-t td:not(.np-n) { white-space: normal; } /* app.css keeps result cells on one line */
}
.np-item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.np-item img { width: 20px; height: 20px; border-radius: 3px; flex: none; }
.np-q { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

.np-xp { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.np-xp input {
  width: 64px; font: 600 14px var(--ui); padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--raise); color: var(--text);
}

.np-src { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.np-src p { margin: 4px 0; }
.np-empty { color: var(--muted); max-width: 60ch; line-height: 1.5; }

@media (max-width: 640px) {
  .np h1 { font-size: 25px; }
}

/* Header: name and chips, with the NPC's picture beside them (below them on narrow screens). */
.np-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; }
.np-head-text { flex: 1 1 300px; min-width: 0; }
.np-pic { margin: 0; flex: 0 0 auto; width: 200px; }
/* Blizzard's renders leave wide margins around the model: zoom in on screen (the image itself is untouched) */
.np-pic-frame { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #1b1b1b; }
.np-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; transform: scale(1.35); }
.np-pic figcaption { margin-top: 4px; font-size: 11.5px; color: var(--muted); text-align: right; }
@media (max-width: 560px) {
  .np-pic { width: 160px; }
}

/* Server-rendered pages (/item/…, /quest/…, /zone/…, browse pages) reuse the NPC page's look; these few are theirs. */
.ep-summary { margin: 10px 0 14px; max-width: 760px; line-height: 1.55; color: var(--text); }
.ep-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ep-facts th { width: 34%; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.ep-text { margin: 0; max-width: 760px; line-height: 1.6; color: var(--str); white-space: pre-line; }
.ep-pager { display: flex; gap: 18px; margin: 18px 0 0; }
.ep-list:has(> li > .ep-find) { padding-left: 0; list-style: none; }
.ep-zmap { display: inline-block; max-width: 100%; color: var(--field); text-decoration: none; }
.ep-zmap img { display: block; width: 501px; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.ep-zmap span { display: block; margin-top: 6px; font-size: 13.5px; }
.ep-list:has(> li > .ep-zmap) { padding-left: 0; list-style: none; }
.ep-find { display: flex; gap: 8px; max-width: 520px; }
.ep-find input { flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.ep-find input:focus { outline: none; border-color: var(--field); }
.ep-find button { font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: 0; background: var(--gold); color: #1a1400; cursor: pointer; }
.ep-langs, .ep-foot { margin-top: 28px; }
.np a.q-poor, .np a.q-common, .np a.q-uncommon, .np a.q-rare, .np a.q-epic, .np a.q-legendary, .np a.q-artifact, .np a.q-heirloom { text-decoration: none; }
.ep-pager a, .ep-langs a, .ep-list a:not([class]), .np-t a:not([class]), .ep-facts a:not([class]) { color: var(--field); }
/* the quest page's map (questpage.js): the drawer's map panel, in the page instead of slid out beside a drawer */
.qp-map .qmap, .qp-map .qmap .crowd-h { margin: 0; }
.qp-map .qmap .mv { max-height: 60vh; }
@media (min-width: 1180px) {
  .qp-map .qmap { position: static; width: auto; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; animation: none; }
}
