/* wgf-nav.css - the ONE site header (navigation redesign, owner 2026-11-11).
 *
 * Replaces wgf-header.css while nav_header.enabled() (wgf_site_theme.masthead_tags swaps the
 * <link>). One 56px row (logo, version switcher, nine sections, search, Realm) + one 30px
 * context line (breadcrumb left, version tag right) = 86px; phone: one 52px row + drawer.
 * Markup: nav_header.py. Behaviour: wgf-nav.js. Tokens only (static/css/_tokens.css), Blizzard
 * palette, FrizQuadrata labels, no pills/chips, no green chrome: the per-version accent is a
 * 2px line and an 8px dot, never a fill. Class prefix .wgf-n2 (scoped; nothing leaks).
 */

/* ---- header shell ------------------------------------------------------------------------ */
header.wgf-shell-topbar:has(.wgf-n2) {
  background: linear-gradient(180deg, #171a21, #0f1116);
  border-bottom: 1px solid var(--wgf-metal-soft, #3a3120);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
  z-index: 60;
}
header.wgf-shell-topbar:has(.wgf-n2) > .wgf-shell-topbar__inner {
  display: flex;
  max-width: none;
  margin: 0;
  height: 56px;
  padding: 0 16px;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
}
header.wgf-shell-topbar:has(.wgf-n2) .wgf-shell-logo {
  font: 700 19px/1 var(--font-game, 'FrizQuadrata', 'Cinzel', serif);
  letter-spacing: .02em;
  text-transform: none;
  color: var(--wgf-gold-primary, #ffd100);
  margin-right: 10px;
  white-space: nowrap;
  gap: 8px;
}
header.wgf-shell-topbar:has(.wgf-n2) .wgf-logo-coin { width: 26px; height: 26px; }
header.wgf-shell-topbar:has(.wgf-n2) > .wgf-shell-topbar__inner > .wgf-shell-right:empty { display: none; }

/* ---- nav root ---------------------------------------------------------------------------- */
.wgf-n2 {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 56px;
  margin: 0;
  gap: 0;
  font: 16px/1.4 var(--font-ui, 'Crimson Text', Georgia, serif);
  color: var(--wgf-text, #f4ecd8);
  --n2-line: var(--wgf-metal-soft, #3a3120);
  --n2-gold: var(--wgf-gold-primary, #ffd100);
  --n2-gold-b: var(--wgf-gold-bright, #ffe375);
  --n2-muted: #a79b80;
  --n2-faint: #6f6858;
}
.wgf-n2 a { color: inherit; text-decoration: none; }
.wgf-n2 ul { list-style: none; margin: 0; padding: 0; }
.wgf-n2 button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wgf-n2 :focus-visible { outline: 2px solid var(--n2-gold-b); outline-offset: 2px; }
.wgf-n2__body { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; height: 56px; }

/* ---- version switcher: the one place to change game version ------------------------------- */
.wgf-n2__vsw { position: relative; flex: 0 0 auto; }
.wgf-n2__vbtn {
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px;
  border-left: 1px solid var(--n2-line); border-right: 1px solid var(--n2-line);
  font: 600 14px/1 var(--font-game, 'FrizQuadrata', serif); white-space: nowrap;
}
.wgf-n2__vbtn:hover { background: rgba(255, 255, 255, .04); }
.wgf-n2__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--n2-acc)); box-shadow: 0 0 8px rgb(var(--n2-acc));
}
.wgf-n2__vname { color: var(--wgf-text, #f4ecd8); }
.wgf-n2__vlive { color: var(--n2-muted); font: 12px/1 var(--font-ui, serif); }
.wgf-n2__caret {
  width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--wgf-gold-muted, #b5a06a);
  margin-top: 4px;
}
.wgf-n2__vpanel {
  display: none; position: absolute; left: 0; top: 56px; width: 440px; padding: 6px 0;
  background: var(--wgf-panel-1, #14161c);
  border: 1px solid var(--wgf-border-strong, rgba(255, 209, 0, .38));
  border-top: 2px solid rgb(var(--n2-acc));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
}
.wgf-n2__vsw.is-open .wgf-n2__vpanel { display: block; }
.wgf-n2:not(.wgf-js) .wgf-n2__vsw:focus-within .wgf-n2__vpanel { display: block; }
.wgf-n2__vopt {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 10px; align-items: baseline;
  padding: 9px 16px; border-left: 3px solid transparent;
}
.wgf-n2__vopt:hover, .wgf-n2__vopt[aria-current] { background: var(--wgf-panel-2, #1a1d24); }
.wgf-n2__vopt[aria-current] { border-left-color: rgb(var(--vc)); }
.wgf-n2__vopt i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--vc)); align-self: center; }
.wgf-n2__vopt b { font: 600 14px/1.3 var(--font-game, serif); color: var(--wgf-text, #f4ecd8); }
.wgf-n2__vopt small { grid-column: 2; color: var(--n2-muted); font-size: 13px; }
.wgf-n2__vopt em { grid-row: 1; grid-column: 3; font: normal 12px var(--font-ui, serif); color: var(--wgf-gold-muted, #b5a06a); }
.wgf-n2__vfoot { margin: 6px 0 0; padding: 8px 16px 4px; border-top: 1px solid var(--n2-line); color: var(--n2-faint); font-size: 13px; }

/* ---- the nine sections -------------------------------------------------------------------- */
.wgf-n2__menu { display: flex; height: 56px; margin-left: 2px; flex: 0 0 auto; }
.wgf-n2__item { position: static; }
.wgf-n2__t {
  display: flex; align-items: center; gap: 5px; height: 56px; padding: 0 11px; white-space: nowrap;
  font: 600 14px/1 var(--font-game, 'FrizQuadrata', serif); color: var(--n2-gold-b);
  border-bottom: 2px solid transparent;
}
.wgf-n2__t:hover, .wgf-n2__item.is-open > .wgf-n2__t {
  color: #fff; background: rgba(255, 255, 255, .04); border-bottom-color: var(--n2-gold);
}
.wgf-n2__item.is-here > .wgf-n2__t { border-bottom-color: var(--wgf-gold-hover, #e8b923); }
.wgf-n2__item.is-off > .wgf-n2__t { color: var(--n2-faint); cursor: default; }
.wgf-n2__item.is-off > .wgf-n2__t:hover, .wgf-n2__item.is-off.is-open > .wgf-n2__t { color: var(--n2-muted); border-bottom-color: var(--n2-line); }
.wgf-n2__nd { font: italic 11px/1 var(--font-ui, serif); color: var(--n2-faint); margin-left: 4px; }

.wgf-n2__mega {
  display: none; position: absolute; left: 0; right: 0; top: 56px;
  padding: 18px max(24px, calc((100% - 1180px) / 2)) 20px;
  background: linear-gradient(180deg, #161920, #10121a);
  border-top: 2px solid var(--wgf-gold-hover, #e8b923);
  border-bottom: 1px solid var(--wgf-border-strong, rgba(255, 209, 0, .38));
  box-shadow: 0 22px 44px rgba(0, 0, 0, .75);
  grid-template-columns: 220px repeat(var(--n2-cols, 3), minmax(190px, 1fr));
  gap: 8px 28px;
  max-height: calc(100vh - 100px); overflow-y: auto; white-space: normal;
}
.wgf-n2__item.is-open > .wgf-n2__mega { display: grid; }
.wgf-n2:not(.wgf-js) .wgf-n2__item:hover > .wgf-n2__mega,
.wgf-n2:not(.wgf-js) .wgf-n2__item:focus-within > .wgf-n2__mega { display: grid; }
.wgf-n2__lh { display: block; margin: 0 0 6px; font: 700 20px/1.2 var(--font-game, serif); color: var(--n2-gold); }
.wgf-n2__lead p { margin: 0 0 10px; color: var(--n2-muted); font-size: 15px; }
.wgf-n2__all { font: 600 13px/1.3 var(--font-game, serif); color: var(--n2-gold-b); border-bottom: 1px solid var(--wgf-gold-dim, #8a7440); }
.wgf-n2__all:hover { color: #fff; }
.wgf-n2__why { color: var(--n2-faint); font-size: 14px; }
.wgf-n2__h {
  display: block; margin: 0 0 6px; padding-bottom: 5px; border-bottom: 1px solid var(--n2-line);
  font: 600 12px/1.3 var(--font-game, serif); letter-spacing: .08em; text-transform: uppercase; color: var(--wgf-gold-muted, #b5a06a);
}
.wgf-n2__col--retail .wgf-n2__h::after { content: " (leaves this version)"; text-transform: none; letter-spacing: 0; font-family: var(--font-ui, serif); font-style: italic; color: var(--n2-faint); }
.wgf-n2__col > a, .wgf-n2__off { display: flex; justify-content: space-between; gap: 10px; padding: 4px 6px; margin: 0 -6px; font-size: 16px; }
.wgf-n2__col > a:hover { background: var(--wgf-panel-3, #22252d); color: #fff; }
.wgf-n2__n { color: var(--n2-muted); font-size: 14px; }
.wgf-n2__off { color: var(--n2-faint); cursor: default; }
.wgf-n2__off .wgf-n2__n { font-size: 12px; color: var(--n2-faint); font-style: italic; }
.wgf-n2__note { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 9px; border-top: 1px solid var(--n2-line); color: var(--n2-faint); font-size: 14px; }
.wgf-n2__note a { color: var(--n2-gold-b); border-bottom: 1px solid var(--wgf-gold-dim, #8a7440); }

/* ---- search ------------------------------------------------------------------------------- */
.wgf-n2__search { position: relative; flex: 1 1 260px; min-width: 160px; margin: 0 0 0 8px; }
.wgf-n2__sbox {
  display: flex; align-items: center; height: 38px; background: #0b0c10;
  border: 1px solid var(--wgf-border-strong, rgba(255, 209, 0, .38)); border-radius: 3px;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .7);
}
.wgf-n2__sbox:focus-within { border-color: var(--n2-gold); box-shadow: 0 0 0 1px rgba(255, 209, 0, .35), inset 0 1px 6px rgba(0, 0, 0, .7); }
.wgf-n2__scope {
  display: flex; align-items: center; height: 100%; padding: 0 10px; white-space: nowrap;
  font: 600 12px/1 var(--font-game, serif); color: var(--wgf-gold-muted, #b5a06a); border-right: 1px solid var(--n2-line);
}
.wgf-n2__search .wgf-shell-search__input {
  flex: 1; min-width: 0; height: 100%; padding: 0 10px; background: none; border: 0; border-radius: 0;
  color: var(--wgf-text, #f4ecd8); font: 16px var(--font-ui, serif); box-shadow: none;
}
.wgf-n2__search .wgf-shell-search__input:focus { outline: none; box-shadow: none; }
.wgf-n2__kbd { font: 12px system-ui, sans-serif; color: var(--n2-faint); border: 1px solid #2e313a; padding: 1px 6px; margin-right: 6px; border-radius: 3px; }
.wgf-n2__search .wgf-shell-search__btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 100%; color: var(--wgf-gold-muted, #b5a06a); }
.wgf-n2__search .wgf-shell-search__btn:hover { color: var(--n2-gold-b); }
.wgf-n2__search .wgf-shell-search__btn svg { width: 18px; height: 18px; }
.wgf-n2__search .wgf-suggest { top: 42px; left: 0; right: 0; min-width: 100%; }
.wgf-n2__search .wgf-suggest__head { font-family: var(--font-game, serif); letter-spacing: .08em; text-transform: uppercase; }

/* ---- Realm slot (the Realm button is built by wgf-shell.js into this .wgf-shell-right) ---- */
.wgf-n2__realm { flex: 0 0 auto; margin: 0; gap: 0; display: flex; align-items: center; height: 56px; }
.wgf-n2__realm .wgf-sel { display: none; }   /* one version switcher; region lives in the Realm picker */
.wgf-n2__realm .wgf-realm-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px;
  height: 56px; min-width: 96px; padding: 0 10px 0 12px; margin: 0; white-space: nowrap;
  border: 0; border-left: 1px solid var(--n2-line); border-radius: 0; background: none; box-shadow: none;
  text-align: left; cursor: pointer;
}
.wgf-n2__realm .wgf-realm-btn::after { display: none; }
.wgf-n2__realm .wgf-realm-btn:hover { background: rgba(255, 255, 255, .04); }
.wgf-n2__realm .wgf-realm-btn small { font: 11px/1.1 var(--font-ui, serif); color: var(--n2-faint); }
.wgf-n2__realm .wgf-realm-btn b { font: 600 13px/1.2 var(--font-game, serif); color: var(--n2-gold-b); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.wgf-n2__util { display: none; }
.wgf-n2__vrow { display: none; }

/* ---- context line (30px) ------------------------------------------------------------------ */
header.wgf-shell-topbar .wgf-shell-searchband.wgf-n2__ctx {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 30px; margin: 0; padding: 0 16px; max-width: none; overflow: hidden;
  background: var(--wgf-panel-1, #14161c); border: 0; border-top: 0; box-shadow: none;
  color: var(--n2-muted, #a79b80); font-size: 14px; white-space: nowrap;
}
.wgf-n2__ctx .wgf-seo-breadcrumb { padding: 0; margin: 0; max-width: none; border: 0; background: none; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.wgf-n2__ctx .wgf-seo-breadcrumb ol { flex-wrap: nowrap; font: 13px/1 var(--font-game, serif); font-variant: small-caps; letter-spacing: .04em; }
.wgf-n2__ctx .wgf-seo-breadcrumb li { color: var(--wgf-text, #f4ecd8); }
.wgf-n2__ctx .wgf-seo-breadcrumb li:not(:last-child) { color: var(--n2-muted, #a79b80); }
.wgf-n2__ctx .wgf-seo-breadcrumb li::after { color: var(--wgf-gold-hover, #e8b923); padding: 0 8px; }
.wgf-n2__ctx .wgf-seo-breadcrumb a { color: inherit; }
.wgf-n2__ctx .wgf-seo-breadcrumb a:hover { color: var(--wgf-gold-bright, #ffe375); text-decoration: none; }
.wgf-n2__vtag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.wgf-n2__vtag i { font-style: normal; color: rgb(var(--n2-acc, 255, 227, 117)); }
header.wgf-shell-topbar:has(.wgf-n2) .wgf-n2__ctx { --n2-acc: 255, 227, 117; }

/* ---- laptop squeeze (900-1279) ----------------------------------------------------------- */
@media (min-width: 900px) and (max-width: 1279px) {
  header.wgf-shell-topbar:has(.wgf-n2) .wgf-shell-logo { font-size: 0; gap: 0; margin-right: 4px; }
  .wgf-n2__t { padding: 0 7px; font-size: 13px; }
  .wgf-n2__nd { display: none; }
  .wgf-n2__vlive, .wgf-n2__kbd { display: none; }
  .wgf-n2__search { flex-basis: 140px; min-width: 120px; margin-left: 4px; }
  .wgf-n2__scope { padding: 0 6px; }
  .wgf-n2__realm .wgf-realm-btn { min-width: 0; padding: 0 8px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .wgf-n2__vname { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .wgf-n2__t { padding: 0 5px; }
}

/* ---- phone / drawer (< 900px) ------------------------------------------------------------- */
@media (max-width: 899px) {
  header.wgf-shell-topbar:has(.wgf-n2) > .wgf-shell-topbar__inner { height: 52px; padding: 0 4px 0 12px; gap: 2px; }
  header.wgf-shell-topbar:has(.wgf-n2) .wgf-shell-logo { flex: 1 1 auto; font-size: 17px; margin-right: 0; order: 1; min-width: 0; }
  header.wgf-shell-topbar:has(.wgf-n2) .wgf-shell-nav-toggle { order: 3; display: flex; width: 44px; height: 44px; border: 0; justify-content: center; align-items: center; gap: 5px; padding: 0; }
  header.wgf-shell-topbar .wgf-n2 { display: contents; }
  header.wgf-shell-topbar .wgf-n2__vsw { order: 2; }
  header.wgf-shell-topbar .wgf-n2__vbtn { height: 52px; padding: 0 8px; font-size: 12px; max-width: 150px; border-right: 0; }
  header.wgf-shell-topbar .wgf-n2__vname { overflow: hidden; text-overflow: ellipsis; }
  header.wgf-shell-topbar .wgf-n2__vlive { display: none; }
  header.wgf-shell-topbar .wgf-n2__vpanel { position: fixed; left: 0; right: 0; top: 52px; width: auto; max-height: calc(100dvh - 52px); overflow-y: auto; z-index: 70; }
  header.wgf-shell-topbar .wgf-n2__vopt { padding: 12px 16px; min-height: 44px; }

  header.wgf-shell-topbar .wgf-n2__body {
    position: fixed; left: 0; right: 0; top: 52px; bottom: 0; z-index: 55; height: auto;
    flex-direction: column; align-items: stretch; overflow-y: auto; overscroll-behavior: contain;
    background: var(--wgf-bg-base, #0a0b0f);
    transform: translateX(100%); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s;
  }
  header.wgf-shell-topbar.is-open .wgf-n2__body { transform: none; visibility: visible; transition: transform .18s ease; }
  header.wgf-shell-topbar .wgf-n2__search { order: -2; margin: 12px; flex: none; min-width: 0; }
  header.wgf-shell-topbar .wgf-n2__scope { display: none; }
  header.wgf-shell-topbar .wgf-n2__kbd { display: none; }
  header.wgf-shell-topbar .wgf-n2__sbox { height: 44px; }
  header.wgf-shell-topbar .wgf-n2__vrow {
    order: -1; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px;
    border-top: 1px solid var(--n2-line); font: 600 16px var(--font-game, serif); color: var(--n2-gold-b); text-align: left; width: 100%;
  }
  header.wgf-shell-topbar .wgf-n2__vrow span { color: var(--n2-muted); font: 14px var(--font-ui, serif); }
  header.wgf-shell-topbar .wgf-n2__menu { display: block; height: auto; margin: 0; order: 0; }
  header.wgf-shell-topbar .wgf-n2__item { border-top: 1px solid var(--n2-line); }
  header.wgf-shell-topbar .wgf-n2__t { width: 100%; height: auto; min-height: 48px; padding: 0 16px; font-size: 16px; justify-content: space-between; border-bottom: 0; }
  header.wgf-shell-topbar .wgf-n2__t::after { content: ""; border: 5px solid transparent; border-top-color: var(--wgf-gold-muted, #b5a06a); margin-top: 5px; }
  header.wgf-shell-topbar .wgf-n2__item.is-open > .wgf-n2__t::after { transform: rotate(180deg); }
  header.wgf-shell-topbar .wgf-n2__item.is-open { background: var(--wgf-panel-1, #14161c); }
  header.wgf-shell-topbar .wgf-n2__mega {
    position: static; display: none; padding: 0 16px 10px; box-shadow: none; border: 0; background: none;
    grid-template-columns: 1fr; gap: 0; max-height: none; overflow: visible;
  }
  header.wgf-shell-topbar .wgf-n2__item.is-open > .wgf-n2__mega { display: block; }
  header.wgf-shell-topbar .wgf-n2__lead p, .wgf-n2__lh { display: none; }
  header.wgf-shell-topbar .wgf-n2__lead { padding: 0 0 4px; }
  header.wgf-shell-topbar .wgf-n2__all, .wgf-n2__why { display: flex; align-items: center; min-height: 44px; font-size: 15px; border-bottom: 0; }
  header.wgf-shell-topbar .wgf-n2__h { margin-top: 10px; font-size: 11px; color: var(--wgf-gold-dim, #8a7440); border-bottom: 0; }
  header.wgf-shell-topbar .wgf-n2__col > a, .wgf-n2__off { min-height: 44px; align-items: center; font-size: 17px; margin: 0; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
  header.wgf-shell-topbar .wgf-n2__note { border-top: 0; font-size: 15px; }
  header.wgf-shell-topbar .wgf-n2__note a { display: inline-block; padding: 10px 0; }
  header.wgf-shell-topbar .wgf-n2__realm { order: 1; height: auto; margin: 0; width: 100%; justify-content: flex-start; border-top: 1px solid var(--n2-line); }
  header.wgf-shell-topbar .wgf-n2__realm .wgf-realm-btn { width: 100%; height: 52px; border-left: 0; padding: 0 16px; }
  header.wgf-shell-topbar .wgf-n2__util { order: 2; display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 16px 40px; border-top: 1px solid var(--n2-line); color: var(--n2-muted); font-size: 15px; }
  header.wgf-shell-topbar .wgf-n2__util a { display: inline-flex; align-items: center; min-height: 44px; }
  header.wgf-shell-topbar .wgf-shell-searchband.wgf-n2__ctx { padding: 0 12px; }
  header.wgf-shell-topbar .wgf-n2__vtag { display: none; }
  header.wgf-shell-topbar .wgf-n2__ctx .wgf-seo-breadcrumb { overflow-x: auto; scrollbar-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  header.wgf-shell-topbar .wgf-n2__body { transition: none; }
}
