/* EverlookDB. Tooltip-midnight base, WoW UI gold for focus/keywords, item quality colors as data. */

:root {
  color-scheme: dark;
  --bg: #121826;
  --panel: #182033;
  --raise: #1f2940;
  --line: #2b3652;
  --text: #e6eaf2;
  --muted: #8c97ae;
  --gold: #ffd100;
  --field: #8fc7ff;
  --str: #9fe07e;
  --num: #f2b56b;
  --err: #ff6b6b;
  --ally: #4a8cff;
  --horde: #ff5a4a;

  --q-poor: #9d9d9d;
  --q-common: #e6eaf2;
  --q-uncommon: #1eff00;
  --q-rare: #3d9bff;
  --q-epic: #b65cff;
  --q-legendary: #ff8000;
  --q-artifact: #e6cc80;
  --q-heirloom: #00ccff;

  --r-orange: #ff8040;
  --r-yellow: #ffd100;
  --r-green: #40c040;
  --r-gray: #808080;

  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --code: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  /* where an item comes from (obtain.js chips) */
  --src-vendor: #7fc4ff;
  --src-crafted: #3fd0b8;
  --src-drop: #f2876f;
  --src-quest: #ffd100;
  --src-skinning: #d0a77c;
  --src-pickpocket: #b993f5;
  /* quest color by level (questfacts.js) */
  --qd-red: #ff5a4a;
  --qd-orange: #ff9a3c;
  --qd-yellow: #ffd84a;
  --qd-green: #5fd068;
  --qd-gray: #9a9a9a;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #f1f4f8;
    --panel: #ffffff;
    --raise: #e8edf4;
    --line: #d3dae6;
    --text: #141b2b;
    --muted: #5b667c;
    --gold: #9a7300;
    --field: #1d5ea8;
    --str: #2e7a10;
    --num: #a3570a;
    --err: #c62828;
    --ally: #1d5ec8;
    --horde: #b82222;
    --q-poor: #6f6f6f;
    --q-common: #141b2b;
    --q-uncommon: #1b8a00;
    --q-rare: #0062c4;
    --q-epic: #8a2bd1;
    --q-legendary: #c25e00;
    --q-artifact: #8a7330;
    --q-heirloom: #00809f;
    --r-yellow: #d9a800;
    --src-vendor: #1d68b5;
    --src-crafted: #0b8a77;
    --src-drop: #c2452b;
    --src-quest: #9a7300;
    --src-skinning: #8a5a2b;
    --src-pickpocket: #7046b8;
    --qd-red: #c8281c;
    --qd-orange: #c25e00;
    --qd-yellow: #9a7a00;
    --qd-green: #1f8a2e;
    --qd-gray: #6b6b6b;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
/* a select's open list is drawn by the browser: give it the site's colours, not inherited text on a white list */
select option, select optgroup { background-color: var(--panel); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.top {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px var(--gutter) 0;
  max-width: 1400px; margin: 0 auto;
}
.brand { font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.build { color: var(--muted); font-size: 13px; }

main { max-width: 1400px; margin: 0 auto; padding: 18px var(--gutter) 48px; }

/* ---------- the query line: the one loud element ---------- */
.query { position: relative; }
.editor {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .12s;
}
.editor:focus-within { border-color: var(--gold); }
.editor textarea, .editor .hl {
  font: 20px/1.4 var(--code);
  padding: 14px 16px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  letter-spacing: 0;
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0, "liga" 0;
}
.editor textarea {
  position: relative; display: block;
  width: 100%; resize: none; overflow: hidden;
  background: transparent;
  border: 0;
  outline: none;
  color: transparent;
  caret-color: var(--gold);
}
.editor textarea::placeholder { color: var(--muted); }
.editor .hl {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--text);
}
.hl .kw { color: var(--gold); }
.hl .field { color: var(--field); }
.hl .str { color: var(--str); }
.hl .num { color: var(--num); }
.hl .op, .hl .pipe { color: var(--muted); }
.hl .bad { text-decoration: underline wavy var(--err); text-underline-offset: 4px; }

.suggest {
  position: absolute; z-index: 5; left: 0; top: 58px;
  min-width: 260px; max-width: 520px; max-height: 300px; overflow: auto;
  margin: 0; padding: 4px; list-style: none;
  background: var(--raise); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.suggest li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 6px 10px; border-radius: 5px; cursor: pointer;
  font-family: var(--code); font-size: 14px;
}
.suggest li small { font-family: var(--ui); color: var(--muted); font-size: 12px; }
.suggest li[aria-selected="true"] { background: var(--line); }

/* ---------- builder blocks ---------- */
.builder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 32px; align-items: center; }
.block {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 4px 0 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  font-size: 13.5px; white-space: nowrap; cursor: pointer;
}
.block:hover { border-color: var(--muted); }
.block.source { padding-right: 10px; font-weight: 600; }
.block .k { color: var(--muted); }
.block .f { color: var(--field); }
.block .v { color: var(--text); font-weight: 600; }
.block .x {
  border: 0; background: none; width: 22px; height: 22px; border-radius: 4px;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.block .x:hover { background: var(--raise); color: var(--text); }
.add {
  height: 30px; padding: 0 10px; border-radius: 6px; cursor: pointer;
  background: none; border: 1px dashed var(--line); color: var(--muted); font-size: 13.5px;
}
/* the NPC list's quick filters (creatures, townspeople, vendors) */
.nk-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 6px; }
.nk-chips .k { color: var(--muted); font-size: 13.5px; }
.nk-chips .add.on { border-style: solid; border-color: var(--field); color: var(--text); }
.add:hover { color: var(--text); border-color: var(--muted); }
.add .count { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }

.pop {
  position: absolute; z-index: 6;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px; background: var(--raise); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.pop select, .pop input {
  height: 30px; padding: 0 8px; border-radius: 5px;
  background: var(--panel); border: 1px solid var(--line);
}
.pop input { width: 140px; }
.pop button {
  height: 30px; padding: 0 12px; border-radius: 5px; cursor: pointer;
  background: var(--gold); color: #1a1400; border: 0; font-weight: 600;
}

.statusbar { display: flex; align-items: center; gap: 12px; margin: 12px 2px 8px; }
.statusbar .status { margin: 0; flex: 1; }
.status-tools, .tools { display: flex; gap: 6px; flex-shrink: 0; }
.tools[hidden], .tool[hidden] { display: none; }
/* phones: the count on its own line, the tools under it (scrolling sideways if they must) */
@media (max-width: 640px) {
  .statusbar { flex-wrap: wrap; }
  .statusbar .status { flex: 1 1 100%; }
  .status-tools { max-width: 100%; overflow-x: auto; }
}
.pop.sq .sq-l { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pop.sq .sq-l input { width: min(320px, 60vw); }
.pop.sq .sq-hint { font-size: 12px; color: var(--muted); flex-basis: 100%; }
.pop.sq .sq-hint[hidden] { display: none; }
.sq-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 2px; }
.sq-list li { display: flex; align-items: stretch; gap: 4px; }
.sq-list li[hidden] { display: none; }
.pop .sq-list button { height: auto; background: transparent; color: var(--text); font-weight: 400; text-align: left; }
.pop .sq-list .sq-open { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 6px 8px; }
.pop .sq-list .sq-open:hover, .pop .sq-list .sq-open:focus-visible { background: var(--panel); }
.sq-list .sq-open code { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop .sq-list .sq-del { padding: 0 10px; color: var(--muted); font-size: 16px; }
.pop .sq-list .sq-del:hover { color: var(--text); }
.sq-done { color: var(--gold); font-size: 13px; }
.tool {
  height: 28px; padding: 0 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
}
.tool:hover { border-color: var(--muted); }
.tool:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.tool .count { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }

/* column picker and CSV export popovers */
.pop.wide { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 560px); }
.pop.wide .colsearch { width: 100%; }
.pop .colgroups { overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.pop .colgroup[hidden] { display: none; }
.pop .colgroup h4 { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pop .colgroup .opts { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.pop .colgroup label, .pop .choice label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.pop .colgroup label[hidden] { display: none; }
.pop .colgroup input, .pop .choice input { width: auto; height: auto; margin: 0; }
.pop .row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pop .row .grow { flex: 1; text-align: right; color: var(--muted); font-size: 12px; }
.pop button.link { background: none; color: var(--field); padding: 0 6px; font-weight: 500; height: 24px; }
.pop button.link:hover { color: var(--gold); }
.pop .choice { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; }
.pop .choice legend { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; padding: 0; }
.pop .note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

.status { margin: 12px 2px 8px; color: var(--muted); font-size: 13px; min-height: 19px; }
.status .err { color: var(--err); }
.status b { color: var(--text); font-weight: 600; }

/* ---------- results ---------- */
.results { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th {
  position: sticky; top: 0;
  background: var(--bg);
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  cursor: pointer; white-space: nowrap; user-select: none;
}
th:hover { color: var(--text); }
/* row headers (a table's first column as th) are plain cells, not the sticky column headers above */
tbody th { position: static; background: none; cursor: auto; user-select: auto; font-size: inherit; color: inherit; }
th[aria-sort] { color: var(--text); }
th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
td.n { text-align: right; }
th.n { text-align: right; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--panel); }
tbody tr.sel td { background: var(--raise); }
td.dim { color: var(--muted); }

.q-poor { color: var(--q-poor); } .q-common { color: var(--q-common); } .q-uncommon { color: var(--q-uncommon); }
.q-rare { color: var(--q-rare); } .q-epic { color: var(--q-epic); } .q-legendary { color: var(--q-legendary); }
.q-artifact { color: var(--q-artifact); } .q-heirloom { color: var(--q-heirloom); }

.examples { color: var(--muted); padding: 8px 2px; }
.examples ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.examples button {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--text); text-align: left;
}
.examples button:hover { color: var(--gold); }
.qnotes { margin: 2px 2px 6px; font-size: 12px; color: var(--muted); }
.qnotes p { margin: 0; }
.big-count { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; padding: 12px 2px; font-variant-numeric: tabular-nums; }

/* ---------- detail drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw);
  background: var(--panel); border-left: 1px solid var(--line);
  padding: 20px 20px 32px; overflow: auto; z-index: 10;
  box-shadow: -20px 0 40px rgba(0, 0, 0, .25);
}
/* the close button stays in reach while the drawer scrolls */
.drawer .close {
  position: sticky; top: 0; float: right; margin: -10px -10px 0 8px; z-index: 1; width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: var(--panel); color: var(--muted); font-size: 22px; cursor: pointer;
}
.drawer .close:hover { background: var(--raise); color: var(--text); }
/* result names are links for Tab, middle-click and long-press; they look like the rest of the row */
a.rl { color: inherit; text-decoration: none; }
a.rl:hover { text-decoration: underline; }
a.rl:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 2px; }
.drawer h2 { margin: 0 40px 2px 0; font-size: 21px; line-height: 1.25; }
.drawer .sub { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; }
.drawer .desc { margin: 0 0 16px; color: var(--str); }
.drawer dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 13.5px; }
.drawer dt { color: var(--muted); }
.drawer dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.drawer a { color: var(--field); }

/* recipe skill bar: orange -> yellow -> green -> gray */
.skillbar { margin: 4px 0 18px; }
.skillbar .bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; }
.skillbar .bar span { display: block; height: 100%; }
.skillbar .ticks { position: relative; height: 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.skillbar .ticks span { position: absolute; transform: translateX(-50%); top: 3px; white-space: nowrap; }
.skillbar .ticks span:first-child { transform: none; }
.skillbar .ticks span:last-child { transform: translateX(-100%); }

@media (max-width: 640px) {
  .editor textarea, .editor .hl { font-size: 16px; padding: 12px; }
  .suggest { top: 48px; }
  .big-count { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- shell: left sidebar + centered content (shared by every page) ---------- */
body.has-side { padding-left: 188px; min-height: 100vh; position: relative; isolation: isolate; }
.side {
  position: fixed; top: 0; left: 0; bottom: 0; width: 188px; z-index: 4; background: var(--bg);
  display: flex; flex-direction: column;
  padding: 18px 10px 16px 14px; border-right: 1px solid var(--line);
}
.side-brand { font-weight: 700; font-size: 18px; color: #4A8BE0; text-decoration: none; padding: 0 10px 14px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px; }
.side-brand span { color: var(--gold); margin-left: -8px; }
.side-search { padding: 0 6px 12px; }
.side-search input { width: 100%; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; }
.side-search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.side-mark { width: 18px; height: 21px; flex: none; }
.side-state { display: flex; align-items: center; gap: 7px; margin: -6px 6px 12px; padding: 3px 4px; border-radius: 6px;
  color: var(--muted); font-size: 12px; line-height: 1.3; text-decoration: none; }
.side-state[hidden] { display: none; }
.side-state:hover, .side-state[aria-current="page"] { color: var(--text); background: var(--panel); }
.side-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--qd-green); }
.side-state[data-level="amber"] .side-dot { background: var(--qd-orange); }
.side-state[data-level="red"] .side-dot { background: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 25%, transparent); }
.side-state[data-level="amber"], .side-state[data-level="red"] { color: var(--text); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side ul[hidden] { display: none; }
.side-groups { gap: 6px !important; overflow-y: auto; min-height: 0; }
.side-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 6px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; font: inherit;
  color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-align: left;
}
.side-head::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.side-head[aria-expanded="true"]::after { transform: rotate(45deg); }
.side-head:hover { background: var(--panel); }
.side-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.side-group > ul { margin: 2px 0 2px 10px; padding-left: 6px; border-left: 1px solid var(--line); }
.side-group > ul a { font-size: 14px; padding: 6px 10px; }
/* a fold inside a section (Addons > Our addons): a link-sized head, its links one step further in */
.side-sub > .side-head { font-size: 14px; font-weight: 500; padding: 6px 10px; color: var(--text); }
.side-sub > ul { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .side-head::after { transition: none; } }
.side li a {
  display: block; padding: 7px 10px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 14.5px;
}
.side li a:hover { color: var(--text); background: var(--panel); }
.side li a[aria-current="page"] { color: var(--text); background: var(--raise); box-shadow: inset 2px 0 0 var(--gold); }
/* site footer (nav.js): data sources, disclaimer and legal links, under every page. Thin and muted. */
.site-foot {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px var(--gutter) 20px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px;
  color: var(--muted); font-size: 12px; line-height: 1.5;
}
.site-foot p { margin: 0; }
.site-foot-text { flex: 1 1 420px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.site-foot a:hover { color: var(--text); text-decoration-color: currentColor; }
/* optional sidebar card (EthicalAds, Carbon or our own), only drawn when the server configures one.
   No "ad"/"banner"/"sponsor" in class names: ad blockers hide those. */
.side-card { margin: auto 6px 12px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.side-card + .langs { margin-top: 0; }
.side-card img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 6px; }
.side-card a { color: var(--muted); text-decoration: none; }
.side-card a:hover { color: var(--text); }
.side-card-link { display: block; }
.side-card #carbonads { max-width: 100%; }
.side-card #carbonads > span, .side-card #carbonads a { display: block; }
.side-card .carbon-poweredby { display: block; margin-top: 4px; font-size: 10.5px; opacity: .75; }
/* the card goes before it pushes the navigation off a short screen */
.side-spot { min-height: 0; }
.side-spot .side-card-label { margin: 0 0 4px; }
/* end-of-page spot: thin, below everything, never sticky */
.page-spot { width: calc(100% - 32px); max-width: 970px; margin: 40px auto 16px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-spot .side-card-label { margin: 0 0 4px; }
.page-spot .adsbygoogle { max-height: 100px; overflow: hidden; }
.page-note { width: calc(100% - 32px); max-width: 760px; margin: 40px auto 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.page-note a { color: var(--field); }
.page-note button { margin-left: 6px; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.page-note button:hover { color: var(--text); }

@media (max-height: 860px) { .side-card { display: none; } .side-card + .langs, .side-card + .side-house { margin-top: auto; } }
body.has-side > .top, body.has-side > main { width: 100%; max-width: 1180px; margin: 0 auto; }
body.has-side > .top .brand { display: none; }
/* an open drawer makes room instead of covering the results */
@media (min-width: 1180px) {
  body:has(> .drawer:not([hidden])) > main { padding-right: calc(480px + var(--gutter)); max-width: none; box-sizing: border-box; }
  body:has(> .drawer:not([hidden])) > .site-foot { padding-right: calc(480px + var(--gutter)); box-sizing: border-box; }
}

/* home: the query box alone in the middle of the page, like an early search engine */
body.home main { min-height: calc(100vh - 60px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 18vh; }
body.home .query { width: min(640px, 100%); margin: 0 auto; }
body.home .hero { display: block; }
.hero { display: none; text-align: center; margin-bottom: 26px; }
.hero h1 { margin: 0; font-size: clamp(54px, 9vw, 92px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--gold); }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
body.home .editor { border-radius: 26px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
body.home .editor textarea, body.home .editor .hl { padding: 13px 22px; font-size: 18px; }
body.home .suggest { top: 54px; }
body.home .builder, body.home .status { display: none; }
/* while the database loads, the home page says so under the box */
body.home.loading .status { display: block; text-align: center; }
body.home .results { width: min(640px, 100%); margin: 22px auto 0; }
body.home .examples { text-align: center; }
body.home .examples ul { justify-items: center; }

/* icons */
.ic { width: 20px; height: 20px; border-radius: 3px; vertical-align: -5px; margin-right: 8px; background: var(--raise); }
.ic-lg { width: 52px; height: 52px; border-radius: 6px; float: left; margin: 2px 14px 6px 0; border: 1px solid var(--line); }
td.name-cell { max-width: 460px; }

/* the Menu button only exists on phones (see below) */
.side-menu { display: none; }
@media (max-width: 760px) {
  body.has-side { padding-left: 0; }
  /* phones: a top bar (logo, search, Menu); the grouped sidebar opens from Menu as a full-screen sheet */
  .side { position: sticky; top: 0; bottom: auto; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
          gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px var(--gutter); }
  .side-brand { padding: 0; flex: none; }
  /* phones: in the top bar, a dot alone while all is well; words only when something is wrong */
  .side-state { order: 0; margin: 0; padding: 6px 4px; flex: none; }
  .side-state[data-level="green"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .side-state[data-level="red"] span, .side-state[data-level="amber"] span { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-search { flex: 1 1 0; min-width: 0; padding: 0; }
  .side-search input { height: 36px; font-size: 16px; } /* 16px: phones don't zoom into the box */
  .side-menu { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; flex: none; height: 36px; padding: 0 12px;
               border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: 600 14px/1 var(--ui); cursor: pointer; }
  .side-menu svg { width: 16px; height: 16px; flex: none; }
  .side-menu .x { display: none; }
  .side-js .side-groups, .side-js .langs, .side-js .side-house, .side-card { display: none !important; }
  .side-js.open .side-house { display: flex !important; flex: 0 0 100%; margin: 18px 0 0; }
  /* the open sheet: every group spread out, the languages at the bottom */
  .side.open { position: fixed; inset: 0; z-index: 60; align-content: flex-start; overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; padding-bottom: 24px; }
  .side.open .side-menu .x { display: block; }
  .side.open .side-menu .bars { display: none; }
  .side-js.open .side-groups { display: grid !important; flex: 0 0 100%; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 12px !important;
                               overflow: visible; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .side.open .side-sub > .side-head { pointer-events: none; text-transform: none; font-size: 13px; letter-spacing: 0; }
  .side.open .side-head { pointer-events: none; padding: 4px 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
  .side.open .side-head::after { display: none; }
  .side.open .side-group > ul, .side.open .side-group > ul[hidden] { display: grid; margin: 2px 0 0; padding-left: 0; border-left: 0; }
  .side.open .side-group > ul a { font-size: 15px; padding: 8px 10px; }
  .side-js.open .langs { display: flex !important; flex: 0 0 100%; flex-wrap: wrap; margin: 18px 0 0; }
  .side.open .langs button { padding: 8px 10px; font-size: 13px; }
  html.side-open { overflow: hidden; }
  /* the server's plain-link sidebar (no JavaScript yet, or none at all): one row that scrolls sideways */
  .side:not(.side-js) { flex-wrap: nowrap; overflow-x: auto; }
  .side:not(.side-js) .side-groups, .side:not(.side-js) .side-group { display: contents !important; }
  .side:not(.side-js) .side-head { display: none; }
  .side:not(.side-js) ul { display: contents; }
  .side:not(.side-js) li a { white-space: nowrap; padding: 6px 9px; }
  body.home main { padding-bottom: 10vh; }
}
@media (max-width: 360px) { .side-brand { font-size: 0; gap: 0; } }

/* my auction house (nav.js), above the language switcher: every price on the site comes from it */
.side-house { display: flex; flex-direction: column; gap: 3px; margin: auto 6px 6px; font: 600 11px/1.2 var(--ui); color: var(--muted); }
.side-house select { width: 100%; min-width: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: 12px/1.2 var(--ui); }
.side-house + .langs, .side-card + .side-house { margin-top: 0; }
@media (max-height: 860px) { .side-card + .side-house { margin-top: auto; } }
/* language switcher, bottom of the sidebar */
.langs {
  display: flex; flex-wrap: wrap; gap: 2px; margin: auto 6px 12px; padding: 3px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
}
.langs button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 11.5px/1 var(--ui); letter-spacing: .02em; padding: 5px 6px; border-radius: 5px;
}
.langs button:hover { color: var(--text); }
.langs button[aria-pressed="true"] { background: var(--raise); color: var(--gold); }


/* ---------- in-game tooltip card ---------- */
.tt-wrap { display: flex; gap: 6px; align-items: flex-start; margin: 4px 36px 10px 0; }
.tt-ic { width: 46px; height: 46px; flex: none; border-radius: 4px; border: 1px solid #5d5d5d; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tt {
  flex: 1; min-width: 0; padding: 8px 10px 9px;
  background: rgba(8, 10, 24, .96); color: #fff;
  border: 1px solid #6e7180; border-radius: 5px; box-shadow: inset 0 0 0 1px #11131c, 0 4px 16px rgba(0,0,0,.45);
  font: 13px/1.38 var(--ui);
}
.tt-l { display: flex; justify-content: space-between; gap: 14px; }
.tt-l > span:first-child { overflow-wrap: anywhere; }
.tt-r { flex: none; text-align: right; }
.tt-name { font-size: 15px; font-weight: 600; margin-bottom: 1px; }
.tt-desc { margin-top: 2px; }
/* quest text: the reader's own name, race or class ({name} in the game's text) */
.ph { color: var(--field); font-style: italic; white-space: nowrap; }
.coin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 2px; vertical-align: -1px; }
.coin.g { background: radial-gradient(circle at 35% 35%, #fff3a0, #d4a017 60%, #8a6400); }
.coin.s { background: radial-gradient(circle at 35% 35%, #ffffff, #b8bcc4 60%, #6b6f78); }
.coin.c { background: radial-gradient(circle at 35% 35%, #ffd0a0, #b8682a 60%, #6d3a12); }
.fields summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 6px 0 8px; }
.fields summary:hover { color: var(--text); }


/* ---------- hover card (follows the mouse) ---------- */
.hc {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  display: flex; gap: 8px; align-items: flex-start; max-width: 330px;
  padding: 8px 10px; border-radius: 6px;
  background: rgba(8, 10, 24, .97); color: #fff;
  border: 1px solid #6e7180; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  font: 12.5px/1.38 var(--ui);
}
.hc[hidden] { display: none; }
.hc-ic { width: 36px; height: 36px; flex: none; border-radius: 4px; border: 1px solid #5d5d5d; }
.hc-body { min-width: 0; }
.hc-name { font-size: 14px; font-weight: 600; display: flex; gap: 10px; justify-content: space-between; }
.hc-name small { color: #9a9a9a; font-weight: 400; font-size: 12px; white-space: nowrap; }
.hc-l { display: flex; justify-content: space-between; gap: 14px; }
.hc-gold { color: #ffd100; }
.hc-dim { color: #9a9a9a; }
.hc-desc {
  color: #ffd100; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-hint { position: absolute; right: 8px; bottom: -18px; color: var(--muted); font-size: 11px; }
.fpill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fpill img { width: 14px; height: 14px; border-radius: 3px; }
.fpill.f-alliance { color: var(--ally); } .fpill.f-horde { color: var(--horde); }
@media (hover: none) { .hc { display: none; } }


/* ---------- backdrop art (loading-screen paintings) ---------- */
.backdrop {
  position: absolute; z-index: -1; top: 0; left: 188px; right: 0; height: 460px; overflow: hidden;
  pointer-events: none;
}
.backdrop img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: 0; transition: opacity .9s ease;
  /* clear middle, soft sides, long fade into the page at the bottom */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 86%), linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 86%), linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.backdrop.in img { opacity: .34; }
.backdrop-cap {
  position: absolute; right: 16px; top: 12px; color: var(--muted); font-size: 10.5px; opacity: 0;
  transition: opacity .9s ease .3s;
}
.backdrop.in .backdrop-cap { opacity: .55; }
/* the home page lets the painting carry the screen behind the search box */
.backdrop-home { height: 100vh; }
.backdrop-home img { object-position: center 45%; }
.backdrop-home.in img { opacity: .42; }
body:not(.home) .backdrop-home { height: 460px; }
body:not(.home) .backdrop-home.in img { opacity: .22; }
body.home .hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
body.home .hero p { color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
@media (max-width: 760px) { .backdrop { left: 0; height: 300px; } .backdrop-home { height: 70vh; } }
@media (prefers-color-scheme: light) { :root[data-theme="system"] .backdrop.in img { opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .backdrop img, .backdrop-cap { transition: none; } }

/* long queries: a step smaller, wrapped over as many lines as they need */
.editor.long textarea, .editor.long .hl { font-size: 16.5px; line-height: 1.55; padding-top: 12px; padding-bottom: 12px; }
body.home .editor.long { border-radius: 18px; }
body.home .editor.long textarea, body.home .editor.long .hl { font-size: 16px; }
@media (max-width: 760px) { .editor.long textarea, .editor.long .hl { font-size: 14.5px; } }
.editor textarea, .editor .hl { transition: font-size .12s ease; }
@media (prefers-reduced-motion: reduce) { .editor textarea, .editor .hl { transition: none; } }


/* ---------- compare: pin button, tray, side-by-side panel ---------- */
.pin-btn {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px; height: 26px; padding: 0 9px;
  border-radius: 6px; border: 1px solid var(--line); background: var(--raise); color: var(--text); cursor: pointer; font-size: 12.5px;
}
.pin-btn:hover { border-color: var(--muted); }
.pin-btn small { color: var(--muted); font-size: 12px; }
.pin-btn.on { border-color: var(--gold); color: var(--gold); }

.cmp-tray {
  position: fixed; z-index: 9; bottom: 14px; left: calc(188px + 16px); max-width: calc(100vw - 188px - 32px);
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  font-size: 13.5px;
}
.cmp-tray[hidden] { display: none; }
.cmp-tray-label { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cmp-tray ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; min-width: 0; overflow-x: auto; }
.cmp-tray li { display: flex; align-items: center; background: var(--raise); border-radius: 6px; min-width: 0; }
.cmp-chip { display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 3px 2px 3px 4px; min-width: 0; }
.cmp-chip img { border-radius: 3px; flex: none; }
.cmp-chip span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-tray .x, .cmp .x {
  border: 0; background: none; width: 24px; height: 24px; border-radius: 4px; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; flex: none;
}
.cmp-tray .x:hover, .cmp .x:hover { background: var(--line); color: var(--text); }
.cmp-open {
  height: 30px; padding: 0 12px; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
  background: var(--gold); color: #1a1400; font-weight: 600;
}
.cmp-clear { height: 30px; padding: 0 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cmp-clear:hover { color: var(--text); }
.cmp-flash {
  position: fixed; z-index: 30; left: 50%; bottom: 70px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.cmp-flash[hidden] { display: none; }

.cmp {
  position: fixed; inset: 0; z-index: 20; overflow: auto; padding: 28px 16px;
  background: rgba(6, 9, 18, .62); backdrop-filter: blur(2px);
}
.cmp[hidden] { display: none; }
body.cmp-on { overflow: hidden; }
.cmp-box {
  margin: 0 auto; max-width: calc(var(--n) * 340px + 40px); min-width: min(100%, 360px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.cmp-head { display: flex; align-items: center; gap: 10px; }
.cmp-head h2 { margin: 0; font-size: 20px; flex: 1; }
.cmp-link {
  height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; font-size: 13px;
}
.cmp-link:hover { border-color: var(--muted); }
.cmp-head .close { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.cmp-head .close:hover { background: var(--raise); color: var(--text); }
.cmp-note { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.cmp-cards { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; align-items: start; }
.cmp-card { min-width: 0; }
.cmp-card-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.cmp-tag { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cmp-card .tt-wrap { margin: 2px 0 12px; }
.cmp-tablewrap { overflow-x: auto; margin-top: 6px; }
.cmp-table { font-size: 13.5px; }
.cmp-table th, .cmp-table td { cursor: default; position: static; background: none; }
.cmp-table thead th { vertical-align: bottom; white-space: normal; color: var(--text); font-size: 13px; }
.cmp-table thead th .ic { margin-right: 6px; }
.cmp-table tbody th { text-align: left; font-weight: 400; color: var(--muted); font-family: var(--code); font-size: 12.5px; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-table td { max-width: none; }
.cmp-table tbody tr:hover td, .cmp-table tbody tr:hover th { background: var(--raise); }
.cmp-table td.best { color: var(--gold); font-weight: 700; }
.cmp-enum td { color: var(--muted); }
.cmp-d { display: inline-block; min-width: 3.2em; margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: right; }
.cmp-d.up { color: #3ccf5a; }
.cmp-d.down { color: #ff6b6b; }
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .cmp-d.up { color: #1b8a2e; }
  :root[data-theme="system"] .cmp-d.down { color: #c62828; }
  :root[data-theme="system"] .cmp { background: rgba(20, 27, 43, .35); }
}

@media (max-width: 760px) {
  .cmp-tray { left: 8px; right: 8px; bottom: 8px; max-width: none; padding-left: 10px; }
  .cmp-tray-label { display: none; }
  .cmp-chip span { max-width: 90px; }
  .cmp { padding: 0; }
  .cmp-box { border-radius: 0; min-height: 100%; padding: 14px 12px 24px; border: 0; }
  /* cards scroll sideways, one and a bit per screen, so the next one peeks in */
  .cmp-cards { grid-template-columns: repeat(var(--n), 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .cmp-card { scroll-snap-align: start; }
  .cmp-table thead th { font-size: 12px; }
  .cmp-table thead th .ic { display: block; margin: 0 0 4px auto; }
  .cmp-table td, .cmp-table tbody th { padding: 6px 6px; }
  .cmp-d { display: block; margin-left: 0; min-width: 0; }
}
@media (max-width: 760px) and (min-width: 0) { .cmp-cards:has(.cmp-card:only-child) { grid-template-columns: 100%; } }

/* ---------- EverlookDB addon data: item details, and the note under the home search ---------- */
.crowd { margin: 10px 0 0; padding: 2px 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.crowd-h { margin: 10px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.crowd-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.crowd-t td { padding: 4px 0; border-bottom: 1px solid var(--line); white-space: normal; max-width: none; }
.crowd-t tr:last-child td { border-bottom: 0; }
.crowd-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.crowd-dim { color: var(--muted); font-size: 12.5px; }
.crowd-l { margin: 0; padding-left: 18px; font-size: 13.5px; }
.crowd-src { color: var(--muted); font-size: 12px; font-style: italic; line-height: 1.35; margin: 8px 0 0; }
.fw-note { font-size: 13px; line-height: 1.4; margin: 6px 0 10px; color: var(--text); }
.fw-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 9px; border: 1px solid currentColor; margin-right: 2px; }
.fw-new { color: var(--q-uncommon); }
.fw-chg { color: var(--num); }
.home-more { display: none; }
body.home .home-more { display: block; text-align: center; color: var(--muted); font-size: 13.5px; margin: 26px auto 0; max-width: 640px; }
body.home .home-more a { color: var(--field); }
/* home: tiles for the guides and tools, under the search box */
.home-tiles { display: none; }
body.home .home-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; margin: 30px auto 0; }
.home-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--text); text-decoration: none; min-width: 0; }
.home-tile:hover { border-color: var(--gold); }
.home-tile img { width: 36px; height: 36px; border-radius: 6px; flex: none; }
.home-tile span { display: flex; flex-direction: column; min-width: 0; }
.home-tile b { font-size: 14.5px; font-weight: 600; }
.home-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
@media (max-width: 640px) {
  body.home .home-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 22px; }
  .home-tile { padding: 8px 10px; gap: 8px; }
  .home-tile img { width: 30px; height: 30px; }
}
.crowd-t tbody tr { cursor: default; }
.crowd-t tbody tr:hover td { background: none; }

/* ---------- quest details: the "done yet?" macro ---------- */
.macro { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.macro code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12.5px/1.4 var(--code); padding: 6px 8px; border-radius: 6px; background: var(--raise); border: 1px solid var(--line); user-select: all; }
.copy-btn { flex: none; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--raise); color: var(--text); cursor: pointer; font-size: 13px; }
.copy-btn:hover { border-color: var(--muted); }

/* auction house prices in the item drawer */
.ah-house { margin: 8px 0 4px; font-size: 13.5px; }
.ah-sold { margin: 0 0 6px; font-size: 13px; }
.ah-sold a { color: inherit; }
.ah .crowd-t th { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0 4px; text-align: left; }
.ah .crowd-t th.crowd-n { text-align: right; }
.ah-spark { display: block; margin-left: auto; }
.ah-spark path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }

/* What's new: the log on updates.html and the latest three on the home page (updates-data.js) */
.wn-col { max-width: 760px; }
.wn h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.wn-lede { margin: 8px 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.5; max-width: 60ch; }
.wn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.wn-chip { height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 13px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.wn-chip[aria-pressed="true"] { color: var(--text); border-color: var(--gold); }
.wn-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.wn-chip .wn-n { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .7; }
.wn-item:target { outline: 1px solid var(--gold); }
.wn-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.wn-kind {
  justify-self: start; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  border: 1px solid currentColor; line-height: 1.4;
}
.wn-site { color: var(--field); }
.wn-addon { color: var(--gold); }
.wn-app { color: var(--str); }
.wn-name { font-weight: 650; font-size: 15px; }
.wn-name a { color: var(--text); text-decoration: none; }
.wn-name a:hover { color: var(--gold); }
.wn-ver { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.wn-body p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.wn-item time { color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-top: 2px; }
.wn-home { display: none; }
body.home .wn-home { display: block; max-width: 760px; margin: 34px auto 0; text-align: left; }
.wn-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wn-home-head h2 { margin: 0; font-size: 17px; }
.wn-home-head a { color: var(--field); font-size: 14px; }
@media (max-width: 640px) {
  .wn-item { grid-template-columns: 1fr auto; }
  .wn-kind { grid-row: 1; }
  .wn-body { grid-column: 1 / -1; }
  .wn-item time { grid-row: 1; grid-column: 2; }
}

/* CurseForge note while the projects wait for approval (nav.js curseforgeLink) */
.hp-btn.hp-cf[aria-disabled] { cursor: default; color: var(--muted); border-style: dashed; white-space: normal; font-weight: 500; }
.hp-btn.hp-cf[aria-disabled]:hover { border-color: var(--line); color: var(--muted); }
.aon-cf[aria-disabled] { color: var(--muted); }

/* NPC drawer: link to the full NPC page (npc.html) */
.npc-open { margin: 10px 0 0; font-size: 14px; }
.npc-open a { color: var(--field); }

/* How to get it (obtain.js). No class here may contain "ad", "banner" or "sponsor". */
.ob { margin: 10px 0 0; padding: 2px 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ob p { margin: 6px 0; font-size: 13.5px; line-height: 1.45; }
.ob-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; }
.ob-prof { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--src-crafted); text-align: right; }
.ob-top { padding-top: 10px; }
.ob .ob-exact { margin: 6px 0 2px; font-size: 12.5px; }
.ob-badge { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ob-chip { --c: var(--muted); font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.ob-chip.s-vendor { --c: var(--src-vendor); } .ob-chip.s-crafted { --c: var(--src-crafted); } .ob-chip.s-drop { --c: var(--src-drop); }
.ob-chip.s-quest { --c: var(--src-quest); } .ob-chip.s-skinning { --c: var(--src-skinning); } .ob-chip.s-pickpocket { --c: var(--src-pickpocket); }
.ob-facts { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 13px; }
@media (max-width: 420px) { .ob-facts { grid-template-columns: auto 1fr; } }
.ob-facts dt { color: var(--muted); }
.ob-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ob-h4 { margin: 14px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ob-sub { color: var(--muted); }
.ob-dim, .crowd-t tr.est td:first-child .crowd-dim { color: var(--muted); }
.ob-item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; vertical-align: middle; }
.ob-item img { width: 18px; height: 18px; border-radius: 3px; flex: none; }
.ob-n { display: inline-block; min-width: 2.2em; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ob-mats tfoot td { padding-top: 6px; font-size: 13.5px; color: var(--muted); }
.ob-mats tfoot b { color: var(--text); font-weight: 600; }
.crowd-t tr.est .crowd-n { color: var(--muted); }
.ob .skillbar { margin: 2px 0 6px; }
.ob .skillbar .bar { height: 6px; }
.ob .skillbar .ticks { height: 15px; font-size: 11px; }
.drawer > .fields, .drawer .fields { margin-top: 14px; }
/* plain search: shortcut to a dungeon page */
.jumps { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.jump { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--text); }
.jump b { color: var(--gold); font-weight: 600; }
.jump span { color: var(--muted); font-size: 13px; }
.jump:hover { border-color: var(--gold); }
/* plain search: a profession's guide card (profHits in app.js) */
.profcards { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; margin: 2px 0 10px; }
.profcard { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.profcard img { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.profcard .pc-name { text-decoration: none; font-size: 17px; }
.profcard .pc-name b { color: var(--gold); font-weight: 600; }
.profcard .pc-kind { color: var(--muted); font-size: 13px; }
.pc-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 5px; font-size: 14px; }
.pc-links a, .pc-links button { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent);
  text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pc-links a:hover, .pc-links button:hover { color: var(--gold); }
.pc-links .count { color: var(--muted); font-size: 12px; }
.pc-links .pc-via, .pc-links .pc-sub { color: var(--muted); }
/* "In guides: ..." in a drawer (the guides that cover the thing) */
.in-guides { margin: 8px 0; font-size: 14px; }
.in-guides span { color: var(--muted); }
.in-guides a { color: var(--gold); }

/* quest quick facts (questfacts.js) */
.qf-colors { display: flex; gap: 9px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: help; }
.qd-red { color: var(--qd-red); } .qd-orange { color: var(--qd-orange); } .qd-yellow { color: var(--qd-yellow); }
.qd-green { color: var(--qd-green); } .qd-gray { color: var(--qd-gray); }
.qf-who { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 13px; }
.qf-who dt { color: var(--muted); padding-top: 1px; }
.qf-who dd { margin: 0; }
.qf-who dt[class^="qf-k-"] { padding-top: 0; }
.qf-who dt[class^="qf-k-"] span { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.qf-who dt.qf-k-start span { color: #ffd34d; background: rgba(255, 211, 77, .14); border: 1px solid rgba(255, 211, 77, .45); }
.qf-who dt.qf-k-end span { color: #4dd8e6; background: rgba(77, 216, 230, .12); border: 1px solid rgba(77, 216, 230, .45); }
.qf-who dt.qf-k-both span { color: #ffd34d; background: linear-gradient(90deg, rgba(255, 211, 77, .14), rgba(77, 216, 230, .14)); border: 1px solid rgba(255, 211, 77, .45); }
:root[data-theme="light"] .qf-who dt.qf-k-start span { color: #8a6500; }
:root[data-theme="light"] .qf-who dt.qf-k-end span { color: #0b7480; }
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .qf-who dt.qf-k-start span { color: #8a6500; }
  :root[data-theme="system"] .qf-who dt.qf-k-end span { color: #0b7480; }
}
.qf-who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.qf-side { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; border: 1px solid currentColor; }
.qf-side.s-alliance { color: var(--ally); } .qf-side.s-horde { color: var(--horde); }
.qf-pin { font: inherit; font-size: 11.5px; padding: 0 7px; margin-left: 4px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); cursor: pointer; vertical-align: 1px; }
.qf-pin:hover { color: var(--text); border-color: var(--gold); }
.qf-chain ol { margin: 6px 0 2px; padding-left: 22px; font-size: 13px; display: grid; gap: 3px; }
.qf-chain span.cur { font-weight: 700; color: var(--gold); }
.qf-chain li.cur::marker { color: var(--gold); font-weight: 700; }
.qf-chain ol.qf-near { list-style: none; padding-left: 0; }
.qf-chain .qf-near li.cur { padding-left: 10px; border-left: 2px solid var(--gold); }
.qf-whole { margin-top: 8px; }
.qf-whole summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.qf-goal p { margin: 6px 0; font-size: 13px; }
.qf-goal .crowd-l li { line-height: 1.45; }
.qf-text summary { cursor: pointer; font-size: 12px; color: var(--muted, #9aa3b2); margin-top: 6px; }
.qf-text p { white-space: pre-line; }

/* item blade (blade.js): item details from the right on pages without their own drawer */
.blade-head { display: flex; align-items: center; gap: 12px; margin: 0 40px 12px 0; }
.blade-head h2 { margin: 0; }
.blade-ic { width: 44px; height: 44px; border-radius: 6px; border: 1px solid #5d5d5d; flex: none; }
.blade-tt { background: rgba(8, 10, 24, .97); color: #fff; border: 1px solid #6e7180; border-radius: 6px;
  padding: 8px 10px; margin: 0 0 14px; font-size: 13px; line-height: 1.4; }
.blade-tt:empty { display: none; }
.blade-h { font-size: 14px; margin: 18px 0 6px; color: var(--muted); font-weight: 600; }
.blade-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.blade-list li { display: flex; gap: 8px; align-items: baseline; }
.blade-list li > .blade-dim:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.blade-dim { color: var(--muted); font-size: 12.5px; }
.blade-full { margin-top: 20px; }

/* filter popover: tick list for text columns with few values; "show more rows" */
.pop .pop-find { flex: 1 1 100%; width: auto; }
.pop-ticks { flex: 1 1 100%; max-height: 240px; overflow: auto; display: grid; gap: 1px; margin: 2px 0; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.pop-ticks label { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.pop-ticks label:hover { background: var(--panel); }
.pop .pop-ticks input { width: 14px; height: 14px; padding: 0; margin: 0; accent-color: var(--gold); }
.pop-ticks label[hidden] { display: none; }
.more-hint { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.more-sentinel { height: 1px; }
.more-rows { font: inherit; font-size: 12.5px; margin-left: 4px; padding: 2px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.more-rows:hover { border-color: var(--gold); }

/* skip link: hidden until it gets keyboard focus */
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 6px; background: var(--gold); color: #1a1400; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
.crowd-more summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 4px 0; }

/* quest objectives map (questmap.js): under the objectives, or a wide second panel slid out left of the drawer */
.qmap { margin: 14px 0; }
.qmap .mv { max-height: none; }
.qmap-zones { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.qmap-z { border: 1px solid var(--line); background: var(--raise); color: var(--text); border-radius: 999px; padding: 2px 10px; cursor: pointer; font: inherit; }
.qmap-z.on { border-color: var(--gold); color: var(--gold); }
.qmap-key { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.qmap-legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.qmap-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: start; }
.qm-sw { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; border: 1.5px solid #14100a; }
.qm-btns { display: flex; gap: 6px; }
/* phones: the Show, /way and Map pin buttons go under the name, so the name and its facts keep the width */
@media (max-width: 520px) {
  .qmap-legend li { grid-template-columns: 12px 1fr; }
  .qm-btns { grid-column: 2; flex-wrap: wrap; }
}
.qm-rare { font-size: 11.5px; color: var(--q-rare, #4a9eff); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
/* the large blade beside the drawer (app.js uses the same 1180px) */
@media (min-width: 1180px) {
  .qmap {
    position: fixed; top: 0; bottom: 0; right: min(480px, 100vw); margin: 0; z-index: 9;
    width: clamp(460px, calc(100vw - 480px - 200px), 960px);
    padding: 20px 20px 32px; overflow: auto; background: var(--panel); border-left: 1px solid var(--line);
    box-shadow: -20px 0 40px rgba(0, 0, 0, .25); animation: qmap-out .24s cubic-bezier(.2, .8, .2, 1);
  }
  .qmap .crowd-h { margin-top: 0; }
}
@keyframes qmap-out { from { transform: translateX(60px); opacity: 0; } }
/* the item blade (itemblade.js): one map, then each way to get it under its own heading, best first */
.ib-sec { margin: 16px 0 0; }
.ib-sec + .ib-sec, .qmap-key + .ib-sec, .qmap-zones + .ib-sec { padding-top: 12px; border-top: 1px solid var(--line); }
.ib-h { margin: 0 0 8px; font-size: 13.5px; font-weight: 650; color: var(--gold); }
.ib-qname { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.ib-goal { margin: 8px 0; font-size: 13.5px; line-height: 1.45; }
.ib-legend { margin-top: 8px; }
.ib-chain, .ib-rw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; font-size: 13.5px; }
.ib-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 5px; border: 1.5px solid var(--qc, var(--line)); overflow: hidden; flex: none; }
.ib-ic img { width: 100%; height: 100%; }
.ib-ic.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.qm-sw.ib-none { background: transparent; border: 1.5px dashed var(--muted); }
.ib-facts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12.5px; }
.ib-price { font-variant-numeric: tabular-nums; }
.ib-react { white-space: nowrap; color: var(--muted); }
.ib-sub { margin: 12px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.ib-cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ib-mats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.ib-craft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13.5px; }
.ib-more { margin: 6px 0 0; font-size: 13px; }
.ib p { font-size: 13.5px; }
/* a part of the drawer that did not load (network, server busy or restarting): say so, offer to try again */
.load-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .qmap { animation: none; } }

/* spell drawer (spelllearn.js): learn it (trainers by side, map: the qmap panel), ranks, improved by */
.lp-facts { margin: 0 0 4px; }
.lp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.lp-h { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; }
.lp-t { display: grid; gap: 1px; padding: 4px 6px; border-radius: 6px; border: 1px solid transparent; }
.lp-t.on { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.lp-who { overflow-wrap: anywhere; }
.lp-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; }
.lp-at { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.lp-at:hover, .lp-at:focus-visible { color: var(--text); text-decoration: underline; }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #14100a; flex: none; }
.lp-cost { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-more summary { cursor: pointer; margin: 4px 6px; font-size: 12.5px; color: var(--field); }
.lp-map { margin: 12px 0 0; }
.lp .mv { max-height: none; }
.lp-also { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; font-size: 13px; }
.lp p { font-size: 13.5px; }
.lp-plain p { margin: 6px 0; font-size: 13.5px; }
.sp-ranks th { padding: 2px 0 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); }
.sp-ranks th.crowd-n { text-align: right; }
.crowd-t.sp-ranks tbody tr[data-open] { cursor: pointer; }
.crowd-t.sp-ranks tbody tr[data-open]:hover td { background: var(--raise); }
.sp-ranks tr.cur td, .sp-ranks tr.cur b { color: var(--gold); }
.sp-imp { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; font-size: 13.5px; }
.sp-class { margin: 14px 0 0; font-size: 13.5px; }

/* "Did you mean": the search found only close matches (typos allowed) */
.dym { display: block; margin-bottom: 4px; color: var(--text); }
.dym a { color: var(--gold); font-weight: 600; }

/* "API call" panel (apicall.js), on the search and auctions pages */
.apic {
  position: absolute; z-index: 30; padding: 12px 14px; display: grid; gap: 10px;
  background: var(--raise); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.apic-h { margin: 0; font-weight: 600; }
.apic-l { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.apic-row { display: flex; gap: 6px; }
.apic-row input {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 6px; font: 12.5px ui-monospace, Consolas, monospace;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.apic-row button {
  height: 30px; padding: 0 12px; border-radius: 6px; cursor: pointer; border: 0; font-weight: 600;
  background: var(--gold); color: #1a1400;
}
.apic-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.apic-note a { color: var(--field); }

/* Promos for our own projects (house.js): a quiet sidebar card and one slim line above the footer.
   Site tokens only; the bolt keeps Iskra's violet-to-cyan as its one touch of colour. No motion, nothing sticky. */
.hs-side {
  display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
}
.side-card a.hs-side { color: var(--muted); }
.hs-side:hover { border-color: color-mix(in srgb, var(--field) 45%, var(--line)); }
.hs-name { display: inline-flex; align-items: center; gap: 5px; font: 650 13px var(--ui); color: var(--text); white-space: nowrap; }
.hs-name svg { width: 13px; height: 13px; flex: none; }
.hs-line { display: block; margin: 3px 0 4px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.hs-cta { font-weight: 600; font-size: 11.5px; color: var(--field); white-space: nowrap; }
.hs-card .side-card-label { font-size: 10px; margin-top: 3px; padding-left: 2px; }
.hs-side:focus-visible, .hs-strip-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* slim line under the page content: one row on desktop (about 40px), wraps on phones */
.hs-strip { width: 100%; max-width: 1180px; margin: 8px auto 0; padding: 0 var(--gutter); box-sizing: border-box; }
.hs-strip-link {
  display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 9px 14px; border-radius: 8px;
  text-decoration: none; color: var(--muted); font-size: 12.5px; line-height: 1.4;
  background: var(--panel); border: 1px solid var(--line);
}
.hs-strip-link:hover { border-color: color-mix(in srgb, var(--field) 45%, var(--line)); }
.hs-strip-link:hover .hs-cta { text-decoration: underline; text-underline-offset: 2px; }
.hs-strip-text { flex: 1 1 260px; min-width: 0; }
.hs-strip-by { font-size: 11px; opacity: .8; white-space: nowrap; }
.hs-strip .hs-cta { font-size: 12.5px; }
@media (max-width: 760px) {
  .hs-strip-link { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 9px 12px; }
  .hs-strip-text { grid-column: 1 / -1; }
  .hs-strip-by { grid-row: 1; grid-column: 2; justify-self: end; align-self: center; }
  .hs-strip .hs-cta { grid-column: 1 / -1; }
}

/* ---------- page comments (comments.js): under the drawer's details and on npc.html ---------- */
.cm { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.cm[hidden] { display: none; }
.cm-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.cm-title { margin: 0; font-size: 16px; }
.cm-count { color: var(--muted); font-weight: 400; font-size: 14px; }
.cm-sorts { display: flex; gap: 4px; }
.cm-sort { font: inherit; font-size: 12.5px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.cm-sort[aria-pressed="true"] { color: var(--text); border-color: var(--gold); }
.cm-form { margin: 12px 0 0; }
.cm-text, .cm-name { font: inherit; font-size: 14px; color: var(--text); background: var(--bg, var(--panel)); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; box-sizing: border-box; }
.cm-text { width: 100%; resize: vertical; min-height: 64px; display: block; }
.cm-text:focus, .cm-name:focus { border-color: var(--gold); outline: none; }
.cm-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cm-name { flex: 1 1 auto; min-width: 0; max-width: 220px; }
.cm-left { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.cm-send { font: inherit; font-size: 13.5px; font-weight: 600; background: var(--gold); color: #1a1400; border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.cm-send:disabled { opacity: .6; cursor: default; }
.cm-note, .cm-foot { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.cm-status { font-size: 13px; color: var(--gold); margin: 6px 0 0; min-height: 0; }
.cm-status:empty { display: none; }
.cm-list, .cm-own { list-style: none; margin: 10px 0 0; padding: 0; }
.cm-c { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm-c:last-child { border-bottom: 0; }
.cm-off { opacity: .85; }
.cm-meta { font-size: 12.5px; color: var(--muted); }
.cm-who { color: var(--text); font-weight: 600; }
.cm-yours { color: var(--gold); }
.cm-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.cm-why { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 8px; }
.cm-why a, .cm-foot a, .cm-note a { color: var(--field); }
.cm-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; }
.cm-up { font: inherit; font-size: 12.5px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 1px 9px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cm-up[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); cursor: default; }
.cm-linkbtn { font: inherit; font-size: 12.5px; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; }
.cm-linkbtn:hover, .cm-up:not([aria-pressed="true"]):hover, .cm-sort:hover { color: var(--text); }
.cm-none { color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.cm-more { height: 1px; }
/* profession recipes and enchants (obtain.js craftHtml, app.js enchantWhatHtml) */
.ob-effect { color: var(--gold); }
.ob-prof-line { font-weight: 600; color: var(--src-crafted); }
.ob-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 2px; font-size: 13.5px; }
.ob-kv dt { color: var(--muted); }
.ob-kv dd { margin: 0; }
.ob-ups { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.ob-up { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ob-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.ob-mats .crowd-n { white-space: nowrap; }
.ob-mats td + td { padding-left: 10px; }

/* a rare tame's summary in the side panel, linking to its guide (rare-tames.js) */
.npc-rare { margin: 10px 0; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--raise); border-radius: 6px; font-size: 13.5px; line-height: 1.5; }
.npc-rare p { margin: 4px 0 0; }
.npc-rare a { color: var(--field); }

/* a pointer to a guide page (rare-tames.js guideTeaser) */
.rt-teaser { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; max-width: 640px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; text-decoration: none; color: var(--text) !important; }
.rt-teaser:hover { border-color: var(--gold); }
.rt-teaser img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #0b0f18; }
.rt-teaser b { font-size: 15.5px; }
.rt-teaser small { color: var(--muted); font-size: 13px; }
.rt-teaser em { display: block; margin: 2px 0 4px; font-style: normal; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.rt-teaser u { text-decoration: none; color: var(--field); font-size: 13.5px; }

/* Hunter bestiary (bestiary.js): what a beast teaches when tamed, with a state label per fact */
.bz { display: inline-block; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 17px; font-weight: 600; letter-spacing: .02em; border: 1px solid; cursor: help; vertical-align: 1px; white-space: nowrap; }
.bz-confirmed { color: var(--qd-green); border-color: color-mix(in srgb, var(--qd-green) 55%, transparent); background: color-mix(in srgb, var(--qd-green) 12%, transparent); }
.bz-seen { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.bz-classic { color: var(--muted); border-color: var(--line); border-style: dashed; }
.bz-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.bz-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bz-row b { font-family: var(--code); white-space: nowrap; }
.bz-row > span { white-space: nowrap; }
.bz-dim { color: var(--muted); }
.bz-teach { margin: 8px 0 0; font-size: 13px; }
.bz-teach summary { cursor: pointer; color: var(--field); }
.bz-teach dl { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; }
.bz-teach dt { color: var(--muted); font-family: var(--code); font-size: 12px; padding-top: 1px; }
.bz-teach dd { margin: 0; line-height: 1.6; }
.bz-teach dd a { color: var(--text); }
.bz-teach dd .bz { margin: 0 6px 0 4px; }
.bz-more { background: none; border: 0; padding: 0; color: var(--field); cursor: pointer; font: inherit; }
.nowrap { white-space: nowrap; }

/* the other page about the same thing (pets.html and /pets, zones.html and /zones), right under the title (nav.js) */
.twin-link { display: inline-block; margin: 2px 0 10px; color: var(--field); font-size: 14px; text-decoration: none; }
.twin-link:hover { text-decoration: underline; }
tr.sub-q td.name-cell { padding-left: 1.75em; }
