:root {
  --stone: #0c0a08;
  --stone-raised: #16120e;
  --stone-edge: #ecbd6338;   /* hairline gold: borders read as light catching an edge, not a bronze frame */
  --line-strong: #ecbd636b;
  --surface: #1a1510b3;      /* translucent, so the glow and gold dust show through cards */
  --gold: #ecbd63;
  --text: #e8dcc4;
  --muted: #a8875e;
  --bronze-dark: #5a3a1c;
  --bronze: #8c5a2b;
  --bronze-mid: #b5773a;
  --bronze-light: #d9a35b;
  --gold-text: #ffe2a8;
  --heading: #f1d9a8;
  --font-display: Spectral, Georgia, serif;
}

/* Fonts are served from this site, not Google Fonts, so no visitor's address reaches a third party (SIL OFL, see fonts/). */
@font-face { font-family: Spectral; font-weight: 600; font-display: swap; src: url("fonts/spectral-600.woff2") format("woff2"); }
@font-face { font-family: Spectral; font-weight: 700; font-display: swap; src: url("fonts/spectral-700.woff2") format("woff2"); }
@font-face { font-family: Spectral; font-weight: 800; font-display: swap; src: url("fonts/spectral-800.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk.woff2") format("woff2"); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* a component's own display rule (flex, grid) must never show a hidden element */

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--stone);
  /* a warm gold glow from above over the near-black stone */
  background-image:
    radial-gradient(120% 80% at 50% -8%, #ffd27a29, transparent 46%),
    linear-gradient(180deg, var(--stone-raised), var(--stone) 60%);
  color: var(--text);
  font: 16px/1.55 "Hanken Grotesk", system-ui, sans-serif;
}

/* Gold dust drifting up the page; motes.js scatters the specks. Behind content, and skipped for reduced motion. */
.motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gold-text);
  box-shadow: 0 0 6px #ffd27a99;
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  10% { opacity: .5; }
  90% { opacity: .35; }
  100% { transform: translate(var(--drift), -104vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .motes { display: none; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

a { color: var(--bronze-light); }
a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 2px; }

h1, h2, .brand { font-family: var(--font-display); letter-spacing: .01em; color: var(--heading); }
h1 { font-size: 1.9rem; margin: 1.5rem 0 1rem; }

.site-header { background: #0c0a08e6; border-bottom: 1px solid var(--stone-edge); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 1.05rem; letter-spacing: .16em; }
.nav nav a { color: #c9b48f; text-decoration: none; margin-left: 16px; font-size: .95rem; }
.nav nav a:first-child { margin-left: 0; }
.nav nav a:hover { color: var(--gold-text); }

/* Mulgore at dusk under the header; it fades into the page background, so it reads as scenery, not a box.
   Absolute without a top keeps it just below the header but out of the flow, so the page's content sits on
   top of the scene instead of being pushed down by it. */
.zone-banner {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  opacity: .65;
  height: clamp(260px, 35vw, 640px);  /* 35vw is the art's own aspect, so wide screens show the whole scene */
  background: url("mulgore.svg") 50% 100% / cover no-repeat;
  /* a long fade instead of the art's own dark foot, so the scene dissolves into the page with no visible edge */
  mask-image: linear-gradient(180deg, #000 40%, transparent 98%);
}

/* Countdown: a dark glass panel edged in gold, the digits set in sunken wells. */
.plate {
  margin: 20px 0 0;
  padding: 18px 16px 16px;
  text-align: center;
  border-radius: 4px;
  background: #0c0a08b3;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 #ecbd6322, 0 18px 40px #0009;
  backdrop-filter: blur(4px);
}
.plate-label {
  margin: 0;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.digits { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.digits span {
  min-width: 68px;
  padding: 6px 10px 4px;
  background: #0c0a08;
  border: 1px solid var(--stone-edge);
  border-radius: 3px;
}
.digits b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.digits small { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* News and blue posts: cards side by side on wide screens. */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px 18px; margin: 14px 0; }
.feed-grid > .entry { margin: 0; }

.entry {
  position: relative;
  margin: 14px 0;
  padding: 16px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--stone-edge);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #2e241a;
  overflow: hidden;
  transition: border-color .15s ease;
}
.entry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.entry:hover { border-color: var(--line-strong); }  /* no transform: it would anchor the fixed tooltips inside to the card */
.entry h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; font-size: 1.15rem; line-height: 1.3; margin: 6px 0 8px; color: var(--heading); }
.entry .summary { color: #d8cbb1; }
.entry .summary { margin: 0 0 8px; }
.meta { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.edited { margin-left: 8px; padding: 1px 6px; border-radius: 2px; background: var(--bronze-light); color: var(--stone); font-weight: 700; }
.source { font-weight: 600; font-size: .9rem; text-decoration: none; }
.source:hover { text-decoration: underline; }

/* Thumbnails: the article's header image, or a blue tile for forum (blue) posts. */
.entry:has(> .thumb) { display: flex; gap: 16px; align-items: flex-start; }
.entry-body { flex: 1; min-width: 0; }
.thumb { flex: none; width: 180px; height: 101px; margin-top: 4px; border: 1px solid var(--stone-edge); border-radius: 3px; object-fit: cover; background: #1c140d; }
.blue-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, #3e5677 0%, #2e425e 45%, #1d2a3d 100%); border-color: #3e5677; color: #e3eaf3;
  font-family: var(--font-display); font-weight: 800; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.blue-tile svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 0 #0006); }

/* Blue posts: Blizzard staff posts on the forums. */
.entry.blue-post { background: #16171b; border-color: #2c3340; box-shadow: inset 0 1px 0 #22262e; }
.entry.blue-post::before { background: linear-gradient(90deg, transparent, #7a9cc6, transparent); }
.entry.blue-post:hover { border-color: #4a6488; }
.entry.blue-post .source { color: #9dbbe0; }
.blue-tag { margin-left: 8px; padding: 1px 6px; border-radius: 2px; background: #34496a; color: #e8eef6; font-weight: 700; }

@media (max-width: 480px) {
  .entry:has(> .thumb) { gap: 10px; padding: 12px; }
  .thumb { width: 110px; height: 62px; }
  .blue-tile svg { width: 44px; height: 44px; }
  .blue-tile span, .entry:has(> .thumb) .summary { display: none; }
  .entry:has(> .thumb) h2 { font-size: 1rem; }
}

.empty, .note { padding: 16px; background: var(--stone-raised); border: 1px dashed var(--stone-edge); border-radius: 6px; }
.section-title { font-size: 1.6rem; margin: 2.4rem 0 .8rem; }

.patch-list { list-style: none; padding: 0; margin: 0; }
.patch-list li { position: relative; margin: 12px 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--stone-edge); border-radius: 4px; overflow: hidden; }
.patch-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.patch-list a { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; margin-right: 10px; }

/* Classes dropdown in the top menu. */
.class-menu { display: inline-block; position: relative; margin-left: 16px; }
.class-menu summary { list-style: none; cursor: pointer; color: #c9b48f; font-size: .95rem; }
.class-menu summary::-webkit-details-marker { display: none; }
.class-menu summary:hover, .class-menu[open] summary { color: var(--gold-text); }
.class-menu summary:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 2px; }
.class-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  min-width: 170px; margin: 0; padding: 4px 0; list-style: none;
  background: var(--stone-raised); border: 1px solid var(--bronze); border-radius: 3px; box-shadow: 0 8px 20px #000a;
}
.nav nav .class-menu a { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; font-weight: 600; }
.nav nav .class-menu a:hover, .nav nav .class-menu a:focus-visible { background: #221a13; }
.nav nav .class-menu a[aria-current="page"] { background: #221a13; box-shadow: inset 3px 0 0 currentColor; }
.class-menu img { border: 1px solid var(--stone-edge); border-radius: 2px; }

/* Home call to action: pick your class. */
.cta { margin: 18px 0 0; text-align: center; }
.cta a {
  display: inline-block; padding: 12px 24px; border-radius: 3px; text-decoration: none;
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #1a0f05;
  background: linear-gradient(180deg, var(--gold-text), var(--gold) 52%, var(--bronze-mid));
  box-shadow: inset 0 1px 0 #fff6, 0 10px 24px #0008;
}
.cta a:hover { filter: brightness(1.08); }

/* Class page. */
/* Sits over the banner's grass, where class colours like warrior tan lose contrast, so it gets a solid panel. */
.class-title {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--stone-edge); border-radius: 4px; box-shadow: 0 3px 0 #0007;
}
.class-title img { border: 1px solid var(--bronze); border-radius: 3px; }
.class-update .changes ul { margin: 6px 0 10px; padding-left: 20px; }
.class-update .changes li { margin: 3px 0; }
.class-update .changes strong { color: var(--bronze-light); }
.class-update .changes em { color: var(--muted); }
.class-dim { opacity: .6; }

.pager { display: flex; justify-content: space-between; margin: 20px 0; }
.pager .older { margin-left: auto; }
.crumb { margin: 20px 0 0; }

.site-footer { margin-top: 40px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--stone-edge); color: var(--muted); font-size: .85rem; }

@media (max-width: 420px) {
  .digits span { min-width: 58px; }
  .digits b { font-size: 1.5rem; }
  .plate-label { font-size: .75rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .entry { transition: none; }
  .entry:hover { transform: none; }
}

/* Countdown plate after launch: link to the latest patch notes. */
.plate-latest { margin: 6px 0 0; font-size: .9rem; }
.plate-latest a { font-weight: 700; }
/* Known Issues link under the plate. */
.known-issues { margin: 8px 0 0; font-size: .9rem; text-shadow: 0 1px 2px #000, 0 0 10px #000; }  /* over the banner */
.known-issues a { font-weight: 700; }

/* "New since your last visit" and "your class" highlights. */
.new-tag { margin-left: 8px; padding: 1px 6px; border-radius: 2px; background: #2f7a3e; color: #f2fff4; font-weight: 700; }  /* 5:1 contrast */
.my-class-tag { display: inline-block; margin-left: 14px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.my-class-tag:hover { text-decoration: underline; }
.entry.has-my-class { box-shadow: inset 3px 0 0 var(--my-class); }
.nav nav .class-menu a.my-class::after { content: "★"; margin-left: auto; color: var(--gold-text); }

/* Class page tools: my class, changes since, RSS. */
.class-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -4px 0 8px; font-size: .9rem; }
.class-tools button, .class-tools select, .search input, .search button {
  font: inherit; color: var(--text); background: var(--stone-raised); border: 1px solid var(--bronze); border-radius: 3px; padding: 6px 10px;
}
.class-tools button { cursor: pointer; }
.class-tools button[aria-pressed="true"] { color: var(--gold-text); border-color: var(--bronze-light); }
.class-tools button:focus-visible, .class-tools select:focus-visible, .search input:focus-visible, .search button:focus-visible {
  outline: 2px solid var(--gold-text); outline-offset: 2px;
}
.since select { margin-left: 6px; }
.feed-link { margin-left: auto; }
.since-status:empty, .search-status:empty { display: none; }
.since-status, .search-status { margin: 8px 0; color: var(--muted); }

/* Search. */
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; }
.search button { cursor: pointer; font-weight: 600; }
.results { list-style: none; padding: 0; margin: 0; }
.results h2 a { color: inherit; text-decoration: none; }
.results h2 a:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Launch time in the reader's own time zone. */
.plate-local { margin: 8px 0 0; font-size: .85rem; font-weight: 600; }

/* Secondary link next to the main one, e.g. the original forum post. */
.source.secondary { margin-left: 14px; font-weight: 400; color: var(--muted); }
.entry.blue-post .source.secondary { color: #97a3b4; }

/* Class page: link to one update. */
.copy-link {
  margin-left: 10px; padding: 0 6px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  color: var(--bronze-light); background: none; border: 1px solid var(--stone-edge); border-radius: 2px;
}
.copy-link:hover { border-color: var(--bronze); }
.copy-link:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.class-update { scroll-margin-top: 16px; }
.class-update:target { border-color: var(--bronze-light); box-shadow: 0 0 0 1px var(--bronze-light); }

/* Full notes page. */
.notes { margin-top: 16px; }
.notes h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.notes h3, .notes h4 { font-family: var(--font-display); color: var(--heading); margin: 1.2rem 0 .4rem; }
.notes ul { padding-left: 22px; }
.notes li { margin: 3px 0; }
.notes strong { color: var(--bronze-light); }
.notes em { color: var(--muted); }
.edit-log { margin: 14px 0; padding: 10px 14px; background: var(--stone-raised); border: 1px solid var(--stone-edge); border-radius: 4px; }
.edit-log summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.edit-log ul { margin: 8px 0 0; padding-left: 22px; }
.edit-log .added li::marker { content: "+  "; color: #6cc47e; }
.edit-log .removed li { color: var(--muted); text-decoration: line-through; }
.edit-log .removed li::marker { content: "−  "; color: #d77; }

/* Addons and Macros pages. */
.guide-intro { margin: 0 0 8px; font-size: .95rem; }
.guide-intro .meta { display: block; margin-top: 4px; }
.guide-intro code, .macro code { font-family: ui-monospace, Consolas, monospace; }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.addon, .macro { background: var(--surface); border: 1px solid var(--stone-edge); border-radius: 4px; }
.addon { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; }
.addon:hover { border-color: var(--bronze); }
.addon img { flex: none; object-fit: contain; background: #0d0b08; border: 1px solid var(--stone-edge); border-radius: 3px; }
.addon h3, .macro h3 { margin: 0; font-size: .95rem; line-height: 1.3; }
.addon h3 a { color: var(--heading); text-decoration: none; }
.addon h3 a:hover { text-decoration: underline; }
.addon h3 span { color: var(--muted); font-size: .8rem; }
.addon p, .macro p { margin: 2px 0 0; font-size: .85rem; line-height: 1.4; color: #cdbfa3; }
.class-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.class-tabs[hidden] { display: none; }
.class-tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; font-weight: 600; font-size: .9rem; text-decoration: none;
  background: var(--stone-raised); border: 1px solid var(--stone-edge); border-radius: 3px;
}
.class-tabs a:hover { border-color: var(--bronze); }
.class-tabs a[aria-current="page"] { background: #221a13; border-color: currentColor; }
.class-tabs img { border-radius: 2px; }
.class-tabs .all-classes { padding-left: 10px; color: var(--heading); }
.macro-class { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 10px 14px; align-items: start; }
.macro-class[hidden] { display: none; }
.macro { padding: 10px 12px; }
.macro-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.macro-head .copy-link { flex: none; font-size: .8rem; padding: 1px 8px; }
.macro pre {
  margin: 8px 0 0; padding: 8px 10px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: .8rem; line-height: 1.45; color: var(--gold-text); background: var(--stone); border: 1px solid var(--stone-edge); border-radius: 3px;
}

.realm-warning { padding: 10px 14px; border: 1px solid var(--bronze); border-radius: 3px; background: #2a2018; }
.table-wrap { overflow-x: auto; }
table.realms { width: 100%; border-collapse: collapse; }
table.realms th, table.realms td { padding: 8px 12px; border-bottom: 1px solid var(--bronze); text-align: left; white-space: nowrap; }
table.realms thead th { color: var(--heading); }
.realm-status { font-weight: 700; }
.realm-status::before { content: "● "; }
.realm-status.up { color: #7fd48a; }
.realm-status.down { color: #ff8a80; }
.realm-status.down::before { content: "✕ "; }

/* Game data pages: class abilities and talents, races, professions. */
.game-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .9rem; }
.game-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--stone-edge); }
.game-table td { padding: 7px 8px; border-bottom: 1px solid #221a13; vertical-align: top; }
.game-table .num { width: 1%; white-space: nowrap; color: var(--bronze-light); font-variant-numeric: tabular-nums; }
.game-table .ranks { color: var(--muted); font-size: .8rem; }
.spell { font-weight: 600; color: var(--heading); }
.desc { display: inline-block; margin-top: 2px; font-size: .82rem; line-height: 1.4; color: #cdbfa3; }
.tag { margin-left: 6px; padding: 0 6px; border: 1px solid var(--stone-edge); border-radius: 3px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.tree { font-size: 1.15rem; margin: 18px 0 4px; }
.game-note { margin: 10px 0; font-size: .82rem; color: var(--muted); }
.race h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 18px 0 10px; }
.race-icon { flex: none; border: 1px solid var(--stone-edge); border-radius: 50%; background: #000; }
.race-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.race h2 .meta { font-family: inherit; font-size: .8rem; letter-spacing: 0; }
.racials { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.racial { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--stone-edge); border-radius: 6px;
  background: var(--stone-raised); }
.racial .spell { display: block; font-size: 1rem; }
.racial .desc { display: block; margin-top: 4px; }
.racial-change { display: block; margin-top: 6px; font-size: .78rem; color: var(--gold-text); }
.icon { display: inline-block; flex: none; vertical-align: middle; border: 1px solid #000; border-radius: 3px; background: #070605; }
.with-icon { display: inline-flex; gap: 8px; align-items: center; }
.tab-count { margin-left: 4px; font-size: .75rem; color: var(--muted); }

/* Item quality colors, as in the game. */
.q0 { color: #9d9d9d; } .q1 { color: #fff; } .q2 { color: #1eff00; } .q3 { color: #3d9bff; } .q4 { color: #b469ff; } .q5 { color: #ff8000; }
.recipes .has-tip { border-radius: 3px; }
.recipes .has-tip:hover > .spell, .recipes .has-tip:focus-visible > .spell { text-decoration: underline; }
.recipes .source { color: #cdbfa3; }
.recipe-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; margin: 12px 0 4px; font-size: .8rem; color: var(--muted); }
.recipe-tools label { display: flex; flex-direction: column; gap: 3px; }
.recipe-tools input, .recipe-tools select { padding: 5px 8px; border: 1px solid var(--stone-edge); border-radius: 3px;
  background: var(--stone-raised); color: var(--text); font: inherit; font-size: .9rem; }
.recipe-tools .rt-search { width: 14rem; max-width: 100%; }
.recipe-tools .rt-skill { width: 6.5rem; }
.recipe-tools input:focus-visible, .recipe-tools select:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 1px; }
.rt-status { min-height: 1em; margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.recipes tr[class*="sc-"] td:first-child { box-shadow: inset 4px 0 var(--skill-color); }
.recipes tr.sc-orange { --skill-color: #ff8040; } .recipes tr.sc-yellow { --skill-color: #ffd200; }
.recipes tr.sc-green { --skill-color: #40c040; } .recipes tr.sc-grey { --skill-color: #808080; }
.recipes tr.too-high { opacity: .45; }
.tip-stat { display: block; font-size: .85rem; color: var(--text); }
.tip-effect { display: block; margin-top: 2px; font-size: .85rem; color: #1eff00; }
.tip-flavor { display: block; margin-top: 4px; font-size: .85rem; color: #ffd200; }
.reagents { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; font-size: .85rem; }

/* Abilities: one row per level, a tile per ability, details in a tooltip. */
.spell-level { display: grid; grid-template-columns: 2.2rem 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px solid #221a13; }
.spell-level .lvl { padding-top: 9px; color: var(--bronze-light); font-variant-numeric: tabular-nums; }
.spell-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 8px; margin: 0; padding: 0; list-style: none; }
.spell-tile { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 3px; border-radius: 4px; }
.spell-tile > .spell { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }
.spell-tile:hover, .spell-tile:focus-visible { background: var(--stone-raised); }

/* Tooltips: shown on hover and focus; tooltips.js keeps them inside the window. */
.has-tip { position: relative; }
.tip { display: none; position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 300px; max-width: calc(100vw - 32px);
  padding: 8px 10px; border: 1px solid var(--stone-edge); border-radius: 4px; background: #070605; box-shadow: 0 4px 14px #000a;
  text-align: left; font-weight: 400; pointer-events: none; }  /* it follows the pointer, so it must never catch it */
.has-tip:hover > .tip, .has-tip:focus > .tip { display: block; }
.tip .spell { font-size: .95rem; }
.tip .tag { margin-left: 4px; }
.tip-line { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.tip-line.unmet { color: #ff8a80; }
.tip .desc { display: block; margin-top: 6px; }
.tip .next { color: var(--muted); }

/* Names in patch notes and blue posts with an in-game tooltip (gamelinks.js). */
.gl { border-bottom: 1px dotted var(--bronze-mid); white-space: nowrap; }  /* one line, so a tapped name has its tooltip under it */
.gl.has-tip:hover, .gl.has-tip:focus-visible { color: var(--gold-text); }
.gl .tip { font-style: normal; font-size: .9rem; line-height: 1.4; color: var(--text); white-space: normal; }

/* Talent calculator: the class's three trees side by side. */
.talent-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 12px 0; }
.talent-summary b { color: var(--gold-text); font-variant-numeric: tabular-nums; }
.tc-reset { padding: 3px 10px; border: 1px solid var(--stone-edge); border-radius: 3px; background: var(--stone-raised); color: var(--text); font: inherit; cursor: pointer; }
.tc-reset:hover { border-color: var(--bronze); }
.talent-trees { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.talent-tree { padding: 6px 8px 14px; border: 1px solid var(--stone-edge); border-radius: 6px; background: var(--stone-raised); }
.talent-tree .tree { display: flex; justify-content: space-between; margin: 4px 0 10px; font-size: 1rem; }
.tree-points { color: var(--gold-text); font-variant-numeric: tabular-nums; }
.talent-calc { --t: 64px; }  /* talent icon size; the icons are exported at 56 px, so this upscales them a little */
.talent-grid { display: grid; grid-template-columns: repeat(4, var(--t)); grid-auto-rows: var(--t); grid-template-rows: repeat(7, var(--t)); gap: 18px; }
.talent { position: relative; z-index: 1; width: var(--t); height: var(--t); padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; }
.talent:hover, .talent:focus { z-index: 2; }  /* its tooltip above the other talents */
.talent .icon { width: var(--t); height: var(--t); border: 2px solid #4d4d4d; border-radius: 4px; filter: grayscale(1) brightness(.55); }
.talent.open .icon, .talent.learned .icon { filter: none; }
.talent.open .icon { border-color: #2fa82f; }
.talent.maxed .icon { border-color: var(--bronze-light); }
.talent:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.talent-rank { position: absolute; right: -7px; bottom: -7px; padding: 0 3px; border: 1px solid #4d4d4d; border-radius: 3px; background: #070605;
  font-size: .72rem; line-height: 1.3; color: #9d9d9d; font-variant-numeric: tabular-nums; }
.talent.open .talent-rank { color: #4fd34f; }
.talent.maxed .talent-rank { color: var(--gold-text); }
.talent-arrow { z-index: 0; background: #4d4d4d; }
.talent-arrow.down { justify-self: center; width: 4px; margin: calc(var(--t) / 2) 0; }
.talent-arrow.side { align-self: center; height: 4px; margin: 0 calc(var(--t) / 2); }
.talent-arrow.met { background: var(--bronze-light); }
.profession-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.profession-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--stone-edge);
  border-radius: 4px; text-decoration: none; transition: border-color .15s ease; }
.profession-card:hover { border-color: var(--bronze); }
.profession-card .icon { border: 1px solid var(--stone-edge); border-radius: 4px; }
.profession-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.crumb { margin: 16px 0 0; font-size: .85rem; }
.skill-yellow { color: #ffd200; }
.skill-grey { color: #9d9d9d; }
@media (max-width: 480px) {
  .game-table { font-size: .82rem; }
  .game-table td, .game-table th { padding: 6px 4px; }
  .spell-tiles { grid-template-columns: 1fr; }
}

/* Realm population over the last week: one bronze hue, brighter = busier; down is red, unchecked an outline. */
.pop-low { fill: #8a541c; } .pop-medium { fill: #cf8530; } .pop-high { fill: #f2bf78; } .pop-full { fill: #fff4dc; }
.pop-other { fill: #6b6156; } .pop-down { fill: #e05a5a; } .pop-none { fill: none; stroke: var(--bronze-dark); stroke-width: .8; }
.pop-strip { display: block; }
.pop-strip rect:hover { stroke: var(--gold-text); stroke-width: .8; }
.pop-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: .8rem; color: var(--muted); }
.pop-legend span { display: inline-flex; gap: 5px; align-items: center; }
/* Game data changes: what changed between two client builds, word by word. */
.data-section { margin: 10px 0; }
.data-section > summary { cursor: pointer; font-family: var(--font-display); color: var(--heading); }
.data-changes { margin: 6px 0 12px; padding-left: 18px; }
.data-changes li { margin: 6px 0; }
.change-added, .change-removed, .change-changed { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.change-added { color: #6cc47e; } .change-removed { color: #d77; } .change-changed { color: var(--bronze-light); }
.change-detail { margin: 2px 0 0 4px; font-size: .9rem; }
.change-field { color: var(--muted); }
.change-detail ins { background: #1e3a24; color: #b6f0c0; text-decoration: none; }
.change-detail del { background: #3a1e1e; color: #f0b6b6; }
/* Items page on a phone: type and crafter are in the tooltip and filters; keep the table within the screen. */
@media (max-width: 600px) {
  .items th:nth-child(3), .items td:nth-child(3), .items th:nth-child(6), .items td:nth-child(6) { display: none; }
}

.it-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 12px 0; color: var(--muted); }
.it-pager button:disabled { opacity: .4; cursor: default; }

/* Wide screens: a page's main column with a sidebar beside it, as on Wowhead. */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; margin-top: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--stone-edge); border-radius: 4px; font-size: .88rem; }
.sidebar h2 { margin: 0 0 8px; font-size: 1rem; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #221a13; }
.sidebar li.class-dim a { color: var(--muted); }
.sidebar time { color: var(--muted); white-space: nowrap; }
.notes { max-width: 920px; }
@media (max-width: 960px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }  /* the "changes since" picker does the same job on small screens */
}
.items td { padding: 3px 8px; vertical-align: middle; }  /* compact rows, as in an item database */
.items .icon { width: 22px; height: 22px; }
.class-menu ul a { white-space: nowrap; }

/* Search box in the top menu: sends the words to the Search page. */
.nav-search { display: inline-flex; margin-left: 16px; vertical-align: middle; }
.nav-search input { width: 13rem; max-width: 100%; padding: 5px 10px 5px 28px; font: inherit; font-size: .9rem; color: var(--text);
  background: var(--stone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a8875e' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m9.5 9.5 3.5 3.5'/%3E%3C/svg%3E") no-repeat 9px center;
  border: 1px solid var(--stone-edge); border-radius: 3px; }
.nav-search input:focus { border-color: var(--bronze-light); outline: none; }
@media (max-width: 600px) { .nav-search { display: flex; width: 100%; margin: 6px 0 0; } .nav-search input { width: 100%; } }

/* Suggestions under the menu's search box. */
.nav-search { position: relative; }
.suggestions { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; width: max(100%, 22rem); max-width: calc(100vw - 32px);
  margin: 0; padding: 4px 0; list-style: none; background: #0c0a08f2; border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: 0 14px 32px #000a; }
.nav nav .suggestions a { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 12px; color: var(--text); font-size: .9rem; }
.suggestions small { flex: none; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.nav nav .suggestions a:hover, .nav nav .suggestions a[aria-selected="true"] { background: #221a13; color: var(--gold-text); }
.nav nav .suggestions .see-all { border-top: 1px solid var(--stone-edge); color: var(--gold); }

/* Search results: compact cards, two columns on wide screens. */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 10px 18px; }
.results > .entry { margin: 0; padding: 10px 14px 8px; }
.results > .entry h2 { margin: 4px 0; font-size: 1.02rem; }
.results > .entry .summary { margin: 0; font-size: .9rem; }

/* Game data changes: each class, race, profession and Items as a card, side by side; long lists scroll inside. */
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; align-items: start; }
.data-grid .data-section { margin: 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--stone-edge); border-radius: 4px; }
.data-grid .data-changes { max-height: 420px; overflow-y: auto; margin: 6px 0 2px; padding-left: 16px; font-size: .9rem; }
.data-grid .data-changes li { margin: 3px 0; }
.data-grid .change-detail { font-size: .82rem; }
@media (max-width: 480px) { .talent-calc { --t: 52px; } .talent-grid { gap: 12px; } }

/* An item's own page (Items page, ?id=): its tooltip beside its facts. */
.item-page h1 { gap: 12px; }
.item-page h1 .icon { border: 1px solid var(--stone-edge); border-radius: 4px; }
.item-page-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tip.tip-static { display: block; position: static; width: 320px; pointer-events: auto; }
.item-facts { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 0; }
.item-facts dt { color: var(--muted); }
.item-facts dd { margin: 0; }
.items a.has-tip { text-decoration: none; }
.items a.has-tip:hover > .spell { text-decoration: underline; }
