/* WoW Forever DB: twilight vellum.
   Night-blue vellum, antique gold rules, and each class's own color as --c.
   No inline styles anywhere (strict CSP): per-class and per-tree colors come from classes.css. */

@font-face {
  font-family: "Fell SC";
  src: url("/fonts/im-fell-english-sc-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-normal-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("/fonts/barlow-semi-condensed-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("/fonts/barlow-semi-condensed-normal-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
/* Fallbacks scaled to each web font's width and line box, so the swap does not shift layout (SEO-M8,
   UX-P3-08). Generated by tools/font_fallbacks.py from the woff2 files; rerun it when a font changes. */
@font-face {
  font-family: "Literata Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  font-display: swap;
  size-adjust: 118.65%;
  ascent-override: 99.20%;
  descent-override: 25.96%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: "Fell SC Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  font-display: swap;
  size-adjust: 108.12%;
  ascent-override: 83.73%;
  descent-override: 33.60%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: "Barlow SC Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo");
  font-display: swap;
  size-adjust: 88.66%;
  ascent-override: 112.79%;
  descent-override: 22.56%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: "Barlow SC Caps Fallback";
  src: local("Arial Bold"), local("Liberation Sans Bold"), local("Arimo Bold");
  font-display: swap;
  font-weight: 500 700;
  size-adjust: 76.97%;
  ascent-override: 129.93%;
  descent-override: 25.99%;
  line-gap-override: 0.00%;
}

:root {
  /* Every color is light-dark(light, dark): color-scheme picks one, from the device unless the reader
     chose (data-theme, set by js/head-init.js before first paint). "Vellum by day", the night sky by night. */
  --ink-0: light-dark(#f5efe0, #0d0f17);
  /* A zone map pin's halo: a dark disc under the icon and a light ring round it, the same in both themes because
     the map art is. One of the two reaches 3:1 on any color; tools/pin_contrast.py checks it on every pin. */
  --focus-ring: 2px solid var(--gold-2); /* the one focus outline; a few controls draw it on a pseudo-element or in --gold */
  --halo-in: #1d1408;
  --halo-out: #f4e7c5;
  --ink-1: light-dark(#fbf7ee, #131726);
  --ink-2: light-dark(#f0e8d6, #1a1f31);
  --ink-3: light-dark(#e6dbc3, #242a40);
  --line: light-dark(#dccfb2, #2e3550);
  --line-2: light-dark(#c9b994, #3d4566); /* decorative rules only */
  --line-ui: light-dark(
    #8c7b57,
    #616a8d
  ); /* the edge of a control: 3:1 on ink-1 and ink-2 (WCAG 1.4.11) */
  /* Row 1's height at 16 px text (D-368; test_masthead_offsets fails on drift); head-init.js measures the real box. */
  --mast1-h: 3.3125rem; /* 53 px */
  --mast-h: var(--mast1-h); /* all that is pinned */
  --anchor-gap: 22px; /* air between the masthead and a heading a link scrolled to */
  /* Text: 4.5:1 on ink-0 to ink-2 in both themes (tests/test_contrast.py). */
  --text: light-dark(#221c12, #e8e2d3);
  --muted: light-dark(#5b5242, #aaa392);
  --faint: light-dark(#675d4a, #969183);
  --head: light-dark(#2b2112, #f4ead0);
  --strong: light-dark(#1c160d, #f6f0e1);
  --gold: light-dark(#7a5814, #d4b26a);
  --gold-2: light-dark(#6b4a0c, #f1d99a);
  --gold-dim: light-dark(#6f5829, #a78e5c);
  /* A link's resting underline: 3:1 on every surface (WCAG 1.4.11). */
  --underline: light-dark(#7d6a3f, #8f7a4c);
  --link-hover: light-dark(#3d2a05, #fff3cf);
  --pressed: light-dark(#1c160d, #fff7e2);
  --code: light-dark(#1d5146, #d8f0e9);
  --blue-text: light-dark(#1d58a5, #9cc5f2);
  /* The accents as text; as fills (below) they stay bright in both themes, under dark text. */
  --verd-ink: light-dark(#1d6b5c, #63b3a2);
  --sky-ink: light-dark(#2554a0, #79a5e6);
  --amber-ink: light-dark(#835400, #e0a646);
  --rose-ink: light-dark(#9e3450, #d9798f);
  --mast-bg: light-dark(rgb(245 239 224 / 0.92), rgb(13 15 23 / 0.92));
  --mast-line: var(--line);
  --mast-edge: rgb(212 178 106 / 0.14); /* the hairline of light under the masthead */
  /* A table's column heads: a theme (css/skins.css) recolors them here, and nothing below the head. */
  --thead-bg: var(--ink-2);
  --thead-text: var(--gold);
  /* The page's two faint washes of color, behind everything. */
  --wash-a: rgb(99 179 162 / 0.07);
  --wash-b: rgb(212 178 106 / 0.06);
  --ic-edge: light-dark(#8c7b57, var(--black));
  /* Fills, the same in both themes, and the text on them. */
  --verd: #63b3a2;
  --sky: #79a5e6;
  --amber: #e0a646;
  --rose: #d9798f;
  --violet: #a68bdc;
  --ember: #d9674f;
  --gold-fill: #d4b26a;
  --muted-fill: #aaa392;
  --slate-fill: #8d93a8;
  --frost-fill: #b9c2d9;
  --on-fill: #0d0f17;
  --blue-edge: #4f8fd6; /* the border of a Blizzard-post (blue) news item */
  --gold-hi: #e7c57d; /* the gold button's gradient, top to bottom, its text and its edge */
  --gold-lo: #b9934c;
  --on-gold: #1b1408;
  --on-gold-hover: var(--black);
  --gold-edge: #f1d99a;
  --wtt-silver: #c9c9d6; /* the card's secondary text, hover fill and rule, on the client's dark card */
  --wtt-hover: #2a2a40;
  --wtt-rule: #3a3a52;
  --map-label: #fbf3dc; /* pin labels on the client's map, which is the same picture in both themes */
  --c: var(--gold);
  --t: var(--gold);
  --radius: 10px;
  --display: "Fell SC", "Fell SC Fallback", "Iowan Old Style", Georgia, serif;
  --body: "Literata", "Literata Fallback", Georgia, "Times New Roman", serif;
  --label: "Barlow SC", "Barlow SC Fallback", "Arial Narrow", system-ui, sans-serif;
  --label-caps:
    "Barlow SC", "Barlow SC Caps Fallback", "Arial Narrow", system-ui, sans-serif; /* uppercase labels */
  /* The uppercase label recipe's sizes and trackings, smallest first (S-052 C1). --label-1 is the text floor,
     0.75rem (N-24, OD-2): nothing is set smaller, so the old 0.62, 0.72 and 0.74 steps are gone. */
  --label-1: 0.75rem;
  --label-4: 0.76rem;
  --label-5: 0.78rem;
  --label-6: 0.8rem;
  --label-7: 0.82rem;
  --label-8: 0.84rem;
  --label-9: 0.85rem;
  --label-10: 0.86rem;
  --label-11: 0.9rem;
  --label-12: 0.95rem;
  --space-1: 4px; /* the spacing scale (N-25): padding, margin and gap take these and no other px, and 10px has none */
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 24px;
  --black: #000;
  --track-1: 0.05em;
  --track-2: 0.06em;
  --track-3: 0.08em;
  --track-4: 0.1em;
  --track-5: 0.12em;
  --track-6: 0.16em;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--mast-h) + var(--anchor-gap));
}
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font:
    1.0625rem / 1.62 var(--body); /* 17px at the browser's default size, and it follows a larger one */
  font-optical-sizing: auto;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--wash-a), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--wash-b), transparent 60%);
  background-attachment: fixed;
}
img {
  max-width: 100%;
}
a {
  color: var(--gold-2);
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}
b,
strong {
  font-weight: 650;
  color: var(--strong);
}
/* Text we quote (the quote token, S-152) keeps the straight marks the prose used before it became a <q>. */
q.vq {
  quotes: '"' '"';
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--head);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  text-wrap: balance; /* L-38 */
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}
h2 {
  font-size: 1.65rem;
  margin-top: 1.2em;
}
h3 {
  font-size: 1.28rem;
}
/* Section anchors (UX-P3-06, anchors.py): a heading's text links to itself; a # shows on hover and
   focus, and stays out of its accessible name where the browser supports alt text for content. */
.hl {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere; /* one long word (Resourcefulness) at 200% text must wrap, not widen the page (L-046) */
  display: inline-block;
  min-width: 24px;
  min-height: 24px;
} /* WCAG 2.5.8 on a short or one-letter heading */
.hl:hover::after,
.hl:focus-visible::after {
  content: " #";
  /* biome-ignore lint/suspicious/noDuplicateProperties: a fallback for browsers without alt text */
  content: " #" / "";
  color: var(--gold-dim);
}
.hl-row {
  display: inline-block;
  min-width: 24px;
  margin-left: 2px;
  text-align: center;
  color: var(--gold-dim);
  text-decoration: none;
  visibility: hidden;
}
tr:hover .hl-row,
tr:focus-within .hl-row,
.hl-row:focus-visible {
  visibility: visible;
}
@media (hover: none) {
  .hl-row {
    visibility: visible;
  }
} /* a touch screen has no hover to reveal it */
h4 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 0.9em;
  text-wrap: pretty; /* L-38: no one-word last lines in body text */
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--gold);
  color: var(--ink-0);
  padding: var(--space-3) 14px;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}
.skip-table {
  position: absolute;
  left: -9999px;
}
.skip-table:focus {
  position: static;
  display: inline-block;
  margin: var(--space-1) 0;
}
main:focus {
  outline: none;
}

/* masthead */
.mast,
.mast2 {
  background: var(--mast-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mast-line);
}
.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 var(--mast-edge);
}
.mast-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--space-5);
  display: flex;
  flex-wrap: wrap; /* only at a large text size (WCAG 1.4.4): never sideways */
  align-items: center;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gold-2);
  text-decoration: none;
  font: 1.35rem / 1 var(--display);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sigil {
  width: 26px;
  height: 26px;
  color: var(--gold);
}
.sigil circle {
  stroke: var(--ink-0);
}
/* Row 2 (D-368): links, then the menu. */
.mast2-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
/* Tall desktop (D-368): row 2 pins too; --mast-h is both rows. */
/* bp: 1010 */
@media (min-width: 1010px) and (min-height: 850px) {
  :root {
    --mast2-h: 3.0625rem; /* 49 px */
    --mast-h: calc(var(--mast1-h) + var(--mast2-h));
  }
  :root[data-mast2="off"] {
    --mast-h: var(--mast1-h);
  }
  .mast2 {
    position: sticky;
    top: var(--mast1-h);
    z-index: 20;
  }
}
/* Under three links fit (head-init.js): no height, the width stays. */
:root[data-mast2="off"] .mast2 {
  height: 0;
  overflow: clip;
  visibility: hidden;
  border-bottom-width: 0;
}
:root[data-mast2="off"] .nav-more {
  visibility: visible;
}
/* Priority+ (D-368): the nav takes the row's room in one line. With a script, links that do not fit go inert and
   unseen (head-init.js) and the menu lists them; without, the line scrolls and the menu lists all. */
#site-nav {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.mast-nav,
.nav-more {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mast-nav {
  display: flex;
  gap: var(--space-1);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
:root.js .mast-nav {
  overflow: clip;
}
/* A link past the edge leaves the row (it is in the menu): the row clips nothing. */
.mast-nav > [inert] {
  display: none;
}
.mast-nav a,
.nav-more a {
  white-space: nowrap;
  font: 600 var(--label-12) / 2rem var(--label-caps);
  letter-spacing: var(--track-3);
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0 var(--space-3);
  border-radius: 6px;
  display: block;
}
/* The row clips at its edges, so the focus ring is drawn inside the link. */
.mast-nav a:focus-visible {
  outline-offset: -2px;
}
.mast-nav a:hover,
.mast-nav a[aria-current],
.nav-more a:hover,
.nav-more a[aria-current] {
  color: var(--gold-2);
  background: var(--ink-2);
}
/* The menu button is an icon button (.icon-btn, L-17): row 1's size, so row 2 keeps its height. */
.nav-btn {
  flex: none;
}
.nav-btn:hover,
.nav-btn[aria-expanded="true"] {
  color: var(--gold-2);
}
/* Row 1's menu, while row 2 is collapsed or scrolled out (head-init.js); two classes outrank .icon-btn. */
.nav-btn.nav-btn-top {
  display: none;
}
:root[data-mast2="off"] .nav-btn-top,
:root[data-mast2-gone] .nav-btn-top {
  display: inline-flex;
}
:root[data-mast2-gone] .nav-btn-row {
  visibility: hidden;
}
.nav-more {
  margin: 0;
  inset: auto;
  top: calc(var(--mast-h) + 4px);
  right: 16px; /* under its button, the row's last control (head-init.js sets the exact place) */
  left: auto;
  min-width: 200px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - var(--mast-h) - 16px);
  padding: var(--space-1);
  background: var(--ink-1);
  border: 1px solid var(--line-ui);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}
.nav-more a {
  line-height: 44px;
}

.crumbbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.crumbs {
  margin: 0;
  padding: 0;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font: 500 var(--label-10) / 1.4 var(--label);
  letter-spacing: 0.04em;
  color: var(--faint);
}
.crumbs li + li::before {
  content: "›";
  margin-right: var(--space-2);
  color: var(--gold-dim);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--gold-2);
}

/* hero */
.hero {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 var(--space-5);
}
.hero-in {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background:
    radial-gradient(
      520px 260px at 0% 0%,
      color-mix(in srgb, var(--c) 30%, transparent),
      transparent 70%
    ),
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
}
.hero-home .hero-in,
.hero:not(:has(.tabs)) .hero-in {
  border-radius: var(--radius);
}
.hero-in::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c), var(--gold) 40%, transparent);
}
.hero .ic-lg {
  border-radius: 12px;
  border: 2px solid var(--c);
  box-shadow:
    0 0 0 4px var(--ink-0),
    0 0 28px color-mix(in srgb, var(--c) 45%, transparent);
  flex: none;
}
.hero h1 {
  margin-bottom: 0.2em;
}
/* The gap between a heading's icon or portrait and its name: the width of the space the markup used to carry (POL-08),
   measured at 0.2245em of the display face. */
.hero h1 > .ic {
  margin-right: 0.2245em;
}
/* --c and --t darkened for a light page (S-052 C7). A custom property's var() resolves where it is declared, so
   each element that uses one declares it here rather than :root. */
.eyebrow,
.cc-head h2,
.cc-head h3 {
  --c-ink: color-mix(in oklab, var(--c) 50%, var(--black));
}
.role .eyebrow,
ol.prio li::before,
.tree-h {
  --t-ink: color-mix(in oklab, var(--t) 50%, var(--black));
}
.eyebrow {
  font: 600 var(--label-6) / 1.2 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-6);
  color: light-dark(var(--c-ink), var(--c));
  margin: 0 0 0.4em;
}
.hero-home .hero-in {
  padding: 30px 28px 46px;
}
.hero-compact .hero-in {
  padding: 18px var(--space-6) var(--space-5);
  gap: var(--space-5);
}
.hero-compact .ic-lg {
  width: 48px;
  height: 48px;
  border-radius: 9px;
}
.hero-compact h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.1em;
}
.hero-home h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--gold-2);
}

/* class tabs */
.tabs {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--ink-1);
  overflow-x: auto;
  scrollbar-width: thin;
}
/* A row that scrolls fades at its right edge, so the reader sees there is more (UX-P2-10). */
.tabs {
  position: relative; /* site.js reads the current tab's offsetLeft against the row (M-02) */
}
/* site.js sets .scrolls while the row overflows and is not scrolled to its end (M-02): a chevron with a fade
   under it, held at the row's right edge however far the row has scrolled. */
.tabs ul::after {
  content: none;
}
.tabs.scrolls ul::after {
  content: "\203A";
  position: sticky;
  right: 0;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 var(--space-2) 0 22px;
  margin-left: -28px;
  font: 700 1.2rem / 1 var(--label);
  color: var(--gold-2);
  background: linear-gradient(to right, transparent, var(--ink-1) 60%);
  pointer-events: none;
}
.tabs + .tabs.scrolls ul::after {
  background: linear-gradient(to right, transparent, var(--ink-0) 60%);
}
.tabs ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0 var(--space-3);
  min-width: max-content;
}
.tabs a {
  display: block;
  padding: var(--space-4) 13px 11px;
  font: 600 var(--label-11) / 1 var(--label-caps);
  letter-spacing: var(--track-2);
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tabs a:hover {
  color: var(--text);
}
.tabs a[aria-current] {
  color: var(--gold-2);
  border-bottom-color: var(--c);
}
/* A second tab row under the first: a spec page's under its class tabs, the Legacy trees' under the Tools row (S-088). */
.tabs:has(+ .tabs) {
  border-radius: 0;
}
.tabs + .tabs {
  background: var(--ink-0);
}
.tabs + .tabs a {
  padding: var(--space-3) 13px 9px;
  font-size: var(--label-7);
}
.go-row {
  margin: var(--space-4) 0 0;
  font: 600 var(--label-9) / 1.6 var(--label);
  letter-spacing: 0.04em;
}
details.more > summary {
  cursor: pointer;
  list-style-position: inside;
}

/* body column */
.guide {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5) 40px;
}
.sec {
  margin-top: 26px;
}
.sec > h2:first-child {
  margin-top: 0;
}
.lede {
  font-size: 1.12rem;
}
/* A class overview's intro is one whole paragraph, not a one-sentence lede: body size keeps the top ad above a laptop's fold. */
.intro-full .lede {
  font-size: 1rem;
}
.note {
  color: var(--muted);
  font-size: var(--label-12);
}
/* A profit cell's second line: the item and how many are listed (/making-gold/, D-347) */
.profit-item {
  display: block;
  color: var(--muted);
  font-size: var(--label-12);
}
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 34px;
}
.tl-entry li {
  overflow-wrap: anywhere;
}
.tl-entry .ic-w {
  white-space: normal;
}
ul.tight,
ol.tight {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
ul.tight li {
  margin: 0.32em 0;
}
ul.tight li::marker {
  color: var(--gold-dim);
}
details.how {
  margin: -0.4em 0 1em;
  color: var(--muted);
}
details.how summary {
  cursor: pointer;
  font: 600 var(--label-10) / 1.6 var(--label-caps);
  letter-spacing: var(--track-2);
  text-transform: uppercase;
  color: var(--gold);
}
.more {
  font-size: var(--label-12);
}
/* The spell filter's empty state (site.js): it keeps the space the tables left, so the footer does not jump up. */
.no-match {
  min-height: 12em;
  padding: 1em 0;
}
.no-match p {
  margin: 0 0 0.6em;
  font-size: 1.05rem;
}

/* icons and references */
.ic {
  vertical-align: -3px;
  border-radius: 4px;
  border: 1px solid var(--ic-edge);
  box-shadow: 0 0 0 1px var(--line-2);
  background: var(--ink-3);
}
.ic-xs {
  width: 18px;
  height: 18px;
}
.ic-sm {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
.ic-md {
  width: 40px;
  height: 40px;
}
.ic-lg {
  width: 56px;
  height: 56px;
}
.ic-none {
  display: inline-block;
}
.ref {
  white-space: nowrap;
  text-decoration: none;
}
/* On a phone a long crosslink wraps like text, or 200% text pushes the page sideways (L-046). */
/* bp: 480 */
@media (max-width: 480px) {
  a.ref {
    white-space: normal;
  }
}
/* A crosslink keeps its icon on its word's line (S-003 2.10). */
/* A crosslink's icon and first word stay together (markup.entity_link); the rest wraps (L-22). */
.ic-w {
  white-space: nowrap;
}
:is(.ref, .ml, .ent, .ic-w) > .ic:first-child {
  margin-right: var(--space-1);
}
a.ref b {
  color: var(--gold-2);
  border-bottom: 1px dotted color-mix(in srgb, var(--gold-2) 50%, transparent);
}
a.ref:hover b {
  border-bottom-style: solid;
}

/* chips */
.chip {
  display: inline-block;
  font: 600 var(--label-1) / 1 var(--label-caps);
  letter-spacing: var(--track-3);
  text-transform: uppercase;
  padding: var(--space-1) 7px 3px;
  border-radius: 99px;
  vertical-align: 2px;
  white-space: nowrap;
}
.cert,
.sk {
  border: 1px solid currentColor;
  background: transparent;
}
.c-announced {
  color: var(--sky-ink);
}
.c-unconfirmed,
.c-untested,
[data-state="mixed"] > .srv-ico,
[data-state="mixed"] > [data-srv-word] {
  color: var(--amber-ink);
}
.c-rumored,
[data-state="down"] > .srv-ico,
[data-state="down"] > [data-srv-word] {
  color: var(--rose-ink);
}
.c-classic,
[data-state="unknown"] > .srv-ico,
[data-state="unknown"] > [data-srv-word] {
  color: var(--muted);
}
.c-tested,
[data-state="up"] > .srv-ico,
[data-state="up"] > [data-srv-word] {
  color: var(--verd-ink);
}
.chg {
  color: var(--on-fill);
  background: var(--muted-fill);
}
.g-new {
  background: var(--verd);
}
.g-changed {
  background: var(--gold-fill);
}
.g-reworded {
  background: var(--slate-fill);
}
.g-baseline {
  background: var(--violet);
}
.g-earlier {
  background: var(--sky);
}
.g-renamed {
  background: var(--amber);
}
.g-race {
  background: var(--rose);
}
.g-talent {
  background: var(--frost-fill);
}
.g-same {
  background: var(--ink-3);
  color: var(--muted);
}
.g-added {
  background: var(--verd);
}
.g-modified {
  background: var(--gold-fill);
}
.g-moved {
  background: var(--sky);
}
.legend-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: var(--space-3);
}
.legend-list .chip {
  min-width: 108px;
  text-align: center;
  margin-right: var(--space-3);
}
/* A PvP tab's leveling timeline (S-046): an ordered list drawn as a track, so it reads in order without CSS. */
.pvp-track {
  list-style: none;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--line);
}
.pvp-track li {
  margin: 0 0 var(--space-3);
}
.pvp-track .lvl {
  display: inline-block;
  min-width: 5.5em;
  font-weight: 600;
}
/* /pvp/'s claims (S-046): each line led by its status chip, which wraps onto its own line on a phone. */
.claims {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.claims .chip {
  margin-right: var(--space-2);
}
/* A recipe's skill-up colors: always the word and the number, outlined in the color, never color alone (S-019). */
.sk-orange {
  color: var(--amber-ink);
}
.sk-yellow {
  color: var(--gold-2);
}
.sk-green {
  color: var(--verd-ink);
}
.sk-gray {
  color: var(--muted);
}
.skills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.role-tag {
  font: 500 var(--label-6) / 1 var(--label);
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}

/* tables */
.tablewrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}
thead th {
  font: 600 var(--label-6) / 1.2 var(--label-caps);
  letter-spacing: var(--track-4);
  text-transform: uppercase;
  color: var(--thead-text);
  background: var(--thead-bg);
}
/* A scroll box can be scrolled from the keyboard (UX-P1-04); site.js drops the tab stop when it fits. */
.tablewrap:focus-visible,
.macro pre:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
/* Column heads stay in view on wide screens. Only a table that fits (site.js marks it) can stick:
   a scroll box is the sticky element's scroll container, so the page scroll would not move it. */
/* bp: 900 */
@media (min-width: 900px) {
  .tablewrap.fits {
    overflow: visible;
  }
  .tablewrap.fits thead th {
    position: sticky;
    top: var(--mast-h);
    z-index: 1;
  }
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody th {
  font-weight: 650;
  color: var(--strong);
}
tbody th small,
td small {
  display: block;
  font: 500 var(--label-6) / 1.3 var(--label);
  color: var(--faint);
  letter-spacing: 0.03em;
}
td p:last-child {
  margin-bottom: 0;
}
.pros-cons {
  table-layout: fixed;
}
.pros-cons th:first-child {
  color: var(--verd-ink);
}
.pros-cons td:first-child {
  border-right: 1px solid var(--line);
}
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ic-cell {
  width: 44px;
  padding-right: 0;
}
tr:target,
li:target {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
/* Beyond the reader's level: quieter color, never faded text (UX-P1-05); the Level column says why. */
tr.later > * {
  color: var(--muted);
  background: var(--ink-0);
}
tr.later .ic,
.band.past .ic {
  filter: grayscale(0.85);
}
table.spells .ranks {
  font: 500 var(--label-8) / 1.45 var(--label);
  color: var(--muted);
  letter-spacing: 0.02em;
}
table.spells .ranks b {
  color: var(--text);
  font-weight: 600;
}
.spell-tab h2 .n {
  font: 600 var(--label-9) / 1 var(--label);
  color: var(--faint);
  vertical-align: middle;
}
.jump {
  font: 500 var(--label-12) / 1.6 var(--label);
  letter-spacing: 0.03em;
}
.removed li {
  margin: 0.5em 0;
}

/* controls */
/* Script-only parts stay hidden until head-init.js sets .js. They show with the display their own rule gives
   them, so a component needs no exception, and `hidden` (below) still hides them (L-14). */
:root:not(.js) [data-js] {
  display: none;
}
/* site.js did not run (head-init.js, L-045): the controls it would wire stay hidden. The theme and menu
   controls are wired by head-init.js itself, so they stay. */
:root.site-failed [data-js]:not(.theme-pick, .theme-btn) {
  display: none;
}
[hidden] {
  display: none !important;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) 20px;
  margin: 14px 0 18px;
}
.seg-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.seg-lbl,
.lvl > span,
.filters label > span,
.range-form label > span,
.pick > span {
  font: 600 var(--label-5) / 1 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-ui);
  border-radius: 8px;
  overflow: hidden;
}
/* .seg clips its children to the rounded border, which cut the focus ring's top and bottom off: draw it inside. */
.seg > :focus-visible {
  outline-offset: -3px;
}
.seg button,
.seg a {
  font: 600 var(--label-11) / 1 var(--label);
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--ink-1);
  border: 0;
  border-right: 1px solid var(--line);
  padding: 9px var(--space-4);
  cursor: pointer;
}
.seg button:last-child,
.seg a:last-child {
  border-right: 0;
}
/* A list 9 page's PvE / PvP pair is two links, one per list page; the current one reads as pressed. */
.seg a {
  text-decoration: none;
}
.seg button[aria-pressed="true"],
.seg a[aria-current] {
  background: color-mix(in srgb, var(--c) 30%, var(--ink-2));
  color: var(--pressed);
}
/* The open class is marked by more than a shade (WCAG 1.4.1). */
.seg a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
}
.lvl {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.lvl input {
  accent-color: var(--gold);
  width: 180px;
  height: 24px;
} /* WCAG 2.5.8 */
.lvl output {
  font: 600 1.05rem / 1 var(--label);
  color: var(--gold-2);
  min-width: 2ch;
}
.route-status {
  font: 500 var(--label-10) / 1.4 var(--label);
  color: var(--faint);
  margin: 0;
}
.filters,
.range-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) 18px;
  align-items: end;
  margin: 14px 0 0;
}
.filters label,
.range-form label,
.pick {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
}
input[type="search"],
select,
.tc-import input,
.filters input[type="number"],
.range-form input[type="number"] {
  font: 500 0.98rem / 1.2 var(--label);
  color: var(--text);
  background: var(--ink-1);
  border: 1px solid var(--line-ui);
  border-radius: 7px;
  padding: var(--space-3) var(--space-4);
}
input[type="search"],
select {
  min-width: 170px;
  max-width: 100%;
}
.shown {
  font: 500 var(--label-11) / 1 var(--label);
  color: var(--muted);
  padding-bottom: var(--space-4);
}
/* L-03 (WP-2): filter controls have a fixed width, not the width of their longest option, so the web font
   arriving cannot re-wrap the row and shift the page below it (CLS 0.146 on six recipe pages). */
.filters select,
.filters input[type="search"] {
  box-sizing: border-box;
  width: 15rem;
  max-width: 100%;
}
.filters input[type="number"],
.range-form input[type="number"] {
  width: 7em;
}
/* Find a Pet (S-174): the name search, count and chips stay out; the other filters fold into "Filters",
   closed on a phone (site.js) so the table starts near the top. */
.pet-filters .more-filters {
  flex: 1 1 100%;
}
.more-filters > summary {
  cursor: pointer;
  font: 600 var(--label-12) / 1 var(--label);
  color: var(--text);
  padding: var(--space-2) 0;
  min-height: 24px;
}
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) 18px;
  align-items: end;
  margin-top: var(--space-2);
}
.pet-filters select {
  width: 9rem;
}
.pet-filters .filter-grid {
  gap: var(--space-3) 14px;
}
.pet-filters .pick {
  flex: 1 1 100%;
}
.level-range {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3) var(--space-4);
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.level-range {
  flex: 1 1 100%;
}
.level-range .rng {
  flex: 1 1 9rem;
  max-width: 20rem;
}
.level-range input[type="range"] {
  width: 100%;
  min-height: 32px;
}
.filters .level-range .num-in input[type="number"] {
  width: 4.5em;
}
.range-out {
  flex: 1 1 16rem;
  font: 500 var(--label-12) / 1.4 var(--label);
  color: var(--text);
  margin: 0;
}
/* The Beast column stays in view while the rest scrolls sideways. It is capped by a share of the screen as well as by
   size, so 200% text cannot let it take the table, and the scroll box keeps that much clear on its left, so a focused
   link is never scrolled under it. */
.tablewrap:has(table.pets) {
  --beast-w: min(10rem, 36vw);
  scroll-padding-inline-start: var(--beast-w);
}
table.pets th:first-child,
table.pets td:first-child {
  position: sticky;
  left: 0;
  box-sizing: border-box;
  width: var(--beast-w);
  min-width: var(--beast-w);
  max-width: var(--beast-w);
  overflow-wrap: anywhere; /* a long single word wraps in its cell, not onto the Family column */
  background: var(--ink-1);
}
/* bp: 600 */
@media (max-width: 599.98px) {
  .tablewrap:has(table.pets) {
    --beast-w: min(8rem, 35vw);
  }
  /* Less padding gives the name room, so fewer words break mid-word. */
  table.pets th:first-child,
  table.pets td:first-child {
    padding-inline: 0.4rem;
  }
}
table.pets thead th:first-child {
  background: var(--ink-2);
  z-index: 2;
}
table.pets td:first-child {
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}
/* A leveling page's range total (site.js) and its band totals. */
.range-total {
  flex: 1 1 100%;
  font: 500 var(--label-12) / 1.5 var(--label);
  color: var(--text);
}
.band-total {
  margin: var(--space-4) 0 0;
}
tr.gap td {
  color: var(--muted);
  font-style: italic;
}
/* The applied filters (site.js): each one a button that removes it. */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}
.active-filters:empty {
  display: none;
}
.chip-x {
  font: 500 0.88rem / 1.2 var(--label);
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--gold-dim);
  border-radius: 99px;
  padding: 5px var(--space-4);
  min-height: 30px;
  cursor: pointer;
} /* WCAG 2.5.8 */
.chip-x::after {
  content: " ×";
  color: var(--gold-2);
}
.chip-x:hover {
  border-color: var(--gold);
}
.chk {
  font: 500 var(--label-12) / 1 var(--label);
  color: var(--muted);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.chk input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--gold);
} /* WCAG 2.5.8 */
.btn {
  display: inline-block;
  font: 600 var(--label-11) / 1 var(--label-caps);
  letter-spacing: var(--track-2);
  text-transform: uppercase;
  color: var(--gold-2);
  background: var(--ink-2);
  border: 1px solid var(--gold-dim);
  border-radius: 7px;
  padding: var(--space-4) 14px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--link-hover);
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: var(--on-gold);
  border-color: var(--gold-edge);
}
.btn-gold:hover {
  color: var(--on-gold-hover);
}

/* role cards and class cards */
.roles,
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.role,
.cc {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) 18px;
}
.role-top {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-3);
}
.role-top .ic {
  border-color: var(--t);
}
.role h2 {
  margin: 0;
  font-size: 1.28rem;
}
.role h2 a {
  color: var(--head);
  text-decoration: none;
}
.role .eyebrow {
  color: light-dark(var(--t-ink), var(--t));
}
.go {
  font: 600 var(--label-10) / 1.3 var(--label-caps);
  letter-spacing: var(--track-2);
  text-transform: uppercase;
  text-decoration: none;
}
.go::after {
  content: " →";
}
/* A spec card's two lists (list 9): a matched pair, the same link twice, PvE and PvP kept in their own case. */
.tl-modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 20px;
}
.tl-modes .go {
  text-transform: none;
}
.cc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: var(--space-3);
}
.cc-head .ic {
  border-color: var(--c);
}
.cc-head h2,
.cc-head h3 {
  min-width: 0; /* a flex item: let a long name wrap rather than push the page sideways at 200% text (L-046) */
  overflow-wrap: anywhere;
  margin: 0;
  color: light-dark(var(--c-ink), color-mix(in srgb, var(--c) 74%, #fff));
  font-size: 1.6rem;
}
/* The whole card is its head link's target, through ::after (as .news-go); the links and tooltip
   buttons inside the card sit above that layer, so they still go where they say. */
.cc-head::after,
.role h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.cc :is(a, button):not(.cc-head),
.role :is(a, button):not(h2 a) {
  position: relative;
  z-index: 1;
}
.cc-head:focus-visible,
.role h2 a:focus-visible {
  outline: none;
}
.cc-head:focus-visible::after,
.role h2 a:focus-visible::after {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.cc:hover,
.role:hover {
  border-color: var(--line-2);
}
.cc p {
  font-size: var(--label-12);
  color: var(--muted);
}
.cc-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-1);
}
.cc-specs a {
  font-weight: 600;
  text-decoration: none;
}
.cc-specs li > span {
  font: 500 var(--label-7) / 1 var(--label);
  color: var(--faint);
  margin-left: var(--space-1);
}
.updates time {
  font: 500 var(--label-9) / 1 var(--label);
  color: var(--faint);
  margin-left: var(--space-2);
}

/* leveling bands */
.bands {
  display: grid;
  gap: 14px;
  margin-top: var(--space-4);
}
.band {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  overflow: hidden;
}
.band-lv {
  padding: var(--space-5) var(--space-4);
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  text-align: center;
}
.band-lv > span {
  display: block;
  font: 1.6rem / 1 var(--display);
  color: var(--gold-2);
}
.band-lv small {
  display: block;
  margin-top: var(--space-2);
  font: 600 var(--label-1) / 1.3 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-3);
  color: var(--muted);
}
.band-body {
  padding: 14px 18px var(--space-3);
  min-width: 0;
}
.band-body h3 {
  margin-bottom: 0.35em;
}
.band dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--space-2) 14px;
  margin: var(--space-4) 0 var(--space-3);
}
.band dt {
  font: 600 var(--label-4) / 1.9 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-4);
  color: var(--gold);
  grid-column: 1;
}
.band dd {
  margin: 0;
  grid-column: 2;
}
.band dd p {
  margin: 0 0 0.3em;
}
.who {
  font: 600 var(--label-11) / 1 var(--label);
  color: var(--muted);
  letter-spacing: 0.03em;
}
.learn {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 14px;
}
.learn a,
.learn span {
  text-decoration: none;
  white-space: nowrap;
}
.lv-n {
  font: 500 var(--label-6) / 1 var(--label);
  color: var(--faint);
}
.ranks span {
  font: 500 0.92rem / 1.5 var(--label);
  color: var(--muted);
}
.band.cur {
  border-color: var(--c);
  box-shadow:
    0 0 0 1px var(--c),
    0 0 26px color-mix(in srgb, var(--c) 25%, transparent);
}
.band.cur .band-lv {
  background: color-mix(in srgb, var(--c) 28%, var(--ink-2));
}
.band.cur .band-lv small {
  color: var(--text);
}
.band.past {
  border-color: var(--line);
  background: var(--ink-0);
  color: var(--muted);
}
.band.past .band-lv {
  background: var(--ink-1);
}
.band.past .band-lv > span,
.band.past dt {
  color: var(--muted);
}
.js [data-race].off,
.js [data-races-mode].off,
.js [data-faction].off {
  display: none !important;
}
.fac {
  font: 600 var(--label-1) / 1 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-4);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 3px var(--space-2);
  margin-left: var(--space-3);
  vertical-align: middle;
}
.callout {
  border-left: 3px solid var(--gold);
  background: var(--ink-2);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child {
  margin: 0;
}

/* spec pages */
.toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: var(--space-4) 0 0;
}
.toc a {
  display: block;
  font: 600 var(--label-8) / 1 var(--label-caps);
  letter-spacing: var(--track-1);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-3) 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
}
.toc a:hover {
  color: var(--gold-2);
  border-color: var(--gold-dim);
}
ol.stats {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}
ol.stats li {
  counter-increment: s;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
}
ol.stats li::before {
  content: counter(s);
  font: 600 var(--label-6) / 1 var(--label);
  color: var(--on-fill);
  background: var(--t);
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: var(--space-3);
  vertical-align: 1px;
}
.prio {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: var(--space-2);
  counter-reset: p;
}
.prio li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: 9px var(--space-4);
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
ol.prio li {
  counter-increment: p;
  position: relative;
  padding-left: 40px;
}
ol.prio li::before {
  content: counter(p);
  position: absolute;
  left: 12px;
  top: 13px;
  font: 600 var(--label-11) / 1 var(--label);
  color: light-dark(var(--t-ink), var(--t));
}
.prio b a {
  text-decoration: none;
}
.when {
  color: var(--text);
}
.macro {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  overflow: hidden;
}
.macro figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 14px;
  background: var(--ink-2);
}
.macro pre {
  margin: 0;
  padding: var(--space-4) 14px;
  font: var(--label-11) / 1.5 var(--mono);
  color: var(--code);
  overflow-x: auto;
  white-space: pre;
}
.macro p {
  padding: 0 14px var(--space-4);
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.macro-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.macro-about {
  margin: -8px 0 18px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.94rem;
}
.macro-about p {
  margin: 0 0 var(--space-1);
}

/* talents */
.trees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.tree {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      260px 180px at 50% 0%,
      color-mix(in srgb, var(--t) 20%, transparent),
      transparent 70%
    ),
    var(--ink-1);
  padding: var(--space-4);
}
.tree-h {
  font-size: 1.28rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 var(--space-1) var(--space-4);
  color: light-dark(var(--t-ink), color-mix(in srgb, var(--t) 76%, #fff));
}
.tree-n {
  font: 600 1.1rem / 1 var(--label);
  color: var(--gold-2);
}
.tree-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(7, 60px);
  gap: 0;
  place-items: center;
  position: relative;
}
/* The prerequisite lines: an SVG under the grid, in the same 4 x 7 box (talents.py req_lines). */
.tree-body {
  position: relative;
}
.req-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.req-lines path {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linejoin: round;
}
.req-lines path.on {
  stroke: var(--gold);
}
.tal {
  position: relative;
  width: 48px;
  height: 48px;
}
/* An unlearned talent is grayed out, and its 0/5 rank badge says the same in text: keep the badge through
   any restyle, since it is what makes this pass WCAG 1.4.1 (color is not the only cue; UX-P3-07). */
.tal .ic {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  filter: grayscale(1) brightness(0.55);
}
.tal.is-some .ic,
.tal.is-full .ic {
  filter: none;
}
.tal.is-some .ic {
  box-shadow: 0 0 0 2px var(--verd);
}
.tal.is-full .ic {
  box-shadow: 0 0 0 2px var(--gold);
}
.tal-pts {
  position: absolute;
  right: -6px;
  bottom: -6px;
  font: 600 var(--label-1) / 1 var(--label);
  background: var(--ink-0);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 2px var(--space-1);
}
.tal.is-some .tal-pts {
  color: var(--verd-ink);
  border-color: var(--verd-ink);
}
.tal.is-full .tal-pts {
  color: var(--gold-2);
  border-color: var(--gold);
}
.tal-card {
  display: none;
  position: absolute;
  z-index: 10;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 32px));
}
.tal:hover .tal-card,
.tal:focus-within .tal-card {
  display: block;
} /* a #t- link focuses it (js/talents.js) */
.tal[data-dismissed] .tal-card {
  display: none;
} /* Esc (js/talents.js), until focus or the pointer leaves */
.tal-btn {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
/* A tooltip as the game client draws one: dark navy, a thin silver frame, white header lines,
   the description in the client's yellow. */
/* The client's own dark card in both themes (D-112): color-scheme keeps light-dark() on its dark side. */
.wtt {
  /* The client's palette, named once (S-052 C7); every card that uses it is a .wtt. */
  --wtt-white: #fff;
  --wtt-gold: #ffd100; /* the description yellow */
  --wtt-gray: #9d9d9d;
  --wtt-frame: #a7a7b4;
  --wtt-shade: #1b1b2a;
  color-scheme: dark;
  background: rgb(8 8 24 / 0.96);
  border: 1px solid var(--wtt-frame);
  border-radius: 4px;
  padding: 7px var(--space-3) var(--space-3);
  box-shadow:
    0 0 0 1px var(--wtt-shade),
    0 10px 30px rgb(0 0 0 / 0.6);
  font:
    400 var(--label-10) / 1.32 Arial,
    "Helvetica Neue",
    sans-serif;
  color: var(--wtt-white);
  text-align: left;
  white-space: normal;
}
.wtt p {
  margin: 0;
}
.wtt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.wtt-row span:last-child {
  text-align: right;
}
.wtt-h {
  margin-bottom: 1px;
}
.wtt-h b {
  font-size: 1rem;
  font-weight: 400;
  color: var(--wtt-white);
}
.wtt-h span {
  color: var(--wtt-gray);
}
.wtt-req {
  color: var(--wtt-white);
}
.wtt-was {
  color: var(--wtt-gray);
}
.wtt-desc {
  color: var(--wtt-gold);
  margin-top: 2px !important;
}
/* The client's red and green also color description cells on the page, so they darken on a light one. */
.wtt .tt-red,
.desc .tt-red {
  color: light-dark(#b0000c, #ff2020);
}
.wtt .tt-green,
.desc .tt-green {
  color: light-dark(#146a17, #20ff20);
}
.wtt .tt-white {
  color: var(--wtt-white);
}
.wtt .tt-gray {
  color: #808080;
}
.wtt .tt-blue {
  color: #71d5ff;
}
.wtt-item p {
  color: var(--wtt-white);
}
.wtt-item p.tt-green {
  color: #20ff20;
}
.wtt-item p.tt-gold {
  color: var(--wtt-gold);
}
/* The client's quality colors (rare and epic lightened to 4.5:1), shared with the AH browser's names (.q0-.q5);
   the card is color-scheme: dark, so it takes the second value, and the light theme the first (4.5:1 on --ink-0). */
.wtt-h b.tt-q0,
.q0 {
  color: light-dark(#666, #9d9d9d);
}
.wtt-h b.tt-q2,
.q2 {
  color: light-dark(#1b7300, #1eff00);
}
.wtt-h b.tt-q3,
.q3 {
  color: light-dark(#0b5ec0, #4c9bff);
}
.wtt-h b.tt-q4,
.q4 {
  color: light-dark(#7b30c2, #b764f7);
}
.wtt-h b.tt-q5,
.q5 {
  color: light-dark(#a14b00, #ff8000);
}
.wtt-line {
  margin-top: 3px !important;
  max-width: 30ch;
}
.wtt-meta {
  color: var(--wtt-gray);
  font-size: var(--label-6);
  margin-top: var(--space-2) !important;
}
.wtt-ours {
  border-top: 1px solid var(--wtt-rule);
  margin-top: 7px;
  padding-top: var(--space-2);
  color: var(--text);
  font: var(--label-10) / 1.42 var(--body);
}
.wtt-ours .ref b {
  color: var(--gold-2);
}
#wtt-pop {
  position: fixed;
  z-index: 60;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
} /* hoverable (WCAG 1.4.13) */
/* Map coordinates: a /way card with a copy button (js/tooltip.js). */
button.way {
  cursor: copy;
  border-bottom: 1px dotted color-mix(in srgb, var(--gold-2) 40%, transparent);
}
.wtt-way {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}
.wtt-way-name {
  font-weight: 700;
  color: var(--wtt-white);
}
.wtt-way code {
  font: var(--label-10) / 1.3 var(--mono);
  color: var(--wtt-gold);
  user-select: all;
}
.way-copy {
  font: 600 var(--label-6) / 1 var(--label);
  padding: 5px var(--space-3);
  border: 1px solid var(--wtt-frame);
  border-radius: 3px;
  background: var(--wtt-shade);
  color: var(--wtt-white);
  cursor: pointer;
}
.way-copy:hover,
.way-copy:focus-visible {
  background: var(--wtt-hover);
}
/* Tooltip triggers that are not links are buttons (UX-P1-03, markup.tt_button); they look like the text they were. */
button.tt,
.tal-btn {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
button.tt {
  display: inline;
  cursor: help;
}
.tt-name.tt {
  border-bottom: 1px dotted color-mix(in srgb, var(--gold-2) 40%, transparent);
}
td .desc {
  color: var(--text);
  margin: 0;
}
td .desc + .wtk {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.92em;
}
.wtk b {
  font: 600 var(--label-7) / 1 var(--label);
  letter-spacing: 0.04em;
  color: var(--gold);
}
.c0 {
  grid-column: 1;
}
.c1 {
  grid-column: 2;
}
.c2 {
  grid-column: 3;
}
.c3 {
  grid-column: 4;
}
.r0 {
  grid-row: 1;
}
.r1 {
  grid-row: 2;
}
.r2 {
  grid-row: 3;
}
.r3 {
  grid-row: 4;
}
.r4 {
  grid-row: 5;
}
.r5 {
  grid-row: 6;
}
.r6 {
  grid-row: 7;
}
.c2 .tal-card,
.c3 .tal-card {
  left: auto;
  right: -8px;
  transform: none;
}
.c0 .tal-card {
  left: -8px;
  transform: none;
}
.spent {
  font: 600 var(--label-12) / 1 var(--label);
  color: var(--muted);
  margin: 0;
}
.spent span {
  color: var(--gold-2);
}
/* The talent calculator's export button: last in the controls row, pushed to its right end. */
.export {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 0 auto;
}
.export .btn {
  white-space: nowrap;
}
/* A spec's Talents tab: the link that opens the build shown in the talent calculator (/talents/<class>/). */
.calc-link {
  margin: 0 0 var(--space-4);
  font: 600 var(--label-12) / 1.4 var(--label);
}
.calc-link a {
  display: inline-block;
  min-height: 24px;
} /* WCAG 2.5.8 */
.export-said {
  font: 600 var(--label-12) / 1 var(--label);
  color: var(--muted);
}

/* Legacy (S-030): the talents tree drawing on a 3 x 4 grid, one color per tree. */
.lg-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 60px);
}
.lg-trees .tr0 {
  --t: var(--amber);
}
.lg-trees .tr1 {
  --t: var(--verd);
}
.lg-trees .tr2 {
  --t: var(--sky);
}
.perks dt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font: 600 1.05rem / 1.3 var(--label);
  scroll-margin-top: var(--anchor-gap);
}
.perks dt .note {
  font-weight: 400;
}
.perks dd {
  margin: var(--space-1) 0 0 32px;
}
.perks dd p {
  margin: 0 0 var(--space-2);
}
/* A rank's value sits under its number: both centered, the row's label left as every row head is. */
table.ranks td,
table.ranks thead th:not(:first-child) {
  text-align: center;
}
/* The planner (S-031): a perk whose gate is not met is dimmer still, and its card says what it needs; the
   card's own Add and Take back buttons are the phone's way in (no long-press). */
.tal.is-locked .ic {
  filter: grayscale(1) brightness(0.35);
}
.lg-act,
.tc-act {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.lg-act fieldset {
  flex-basis: 100%;
  margin: 0;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lg-act label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-right: var(--space-4);
}
.lg-msg {
  min-height: 1.5em;
  margin: 0;
  color: var(--gold-2);
}
/* The planners' message line takes no room until there is something to say: the note above already spaces the
   trees, and a held empty line left a gap no other page has. */
.lg-msg:empty {
  display: none;
}
.lg-tick,
.fun-spec-head h3 a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.js .static-note {
  display: none;
}
.builds {
  display: grid;
  gap: var(--space-4);
}
.build {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  padding: 14px var(--space-5);
}
.build:target {
  border-color: var(--gold);
}
.build h3 {
  font-size: 1.15rem;
}
.split {
  font: 600 var(--label-11) / 1 var(--label);
  color: var(--gold-2);
  margin-left: var(--space-1);
}
.bt {
  margin: 0.2em 0;
  font-size: 0.94rem;
}

/* pager and footer */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pager a {
  font: 1.15rem / 1.2 var(--display);
  text-decoration: none;
  padding: var(--space-4) 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pager a small {
  display: block;
  font: 600 var(--label-1) / 1.4 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
}
.pager .next {
  text-align: right;
  margin-left: auto;
}
/* The one 32 px icon button (L-17): the theme and search buttons in the masthead, the share row, the launch
   banner's close, the masthead's Menu (.nav-btn). 32 px clears WCAG 2.5.8's 24 px minimum. Each adds only what differs. */
.icon-btn,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-ui);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover {
  color: var(--gold-2);
}
/* The masthead's calendar icon (js/time.js, events_page.masthead_runs): the plain glyph and, while an event that has a page runs
   on the reader's date, a small gold dot at the corner (data-live). Static, so reduced motion has nothing to stop. */
.cal-btn {
  position: relative;
}
.cal-btn[data-live]::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
@media (forced-colors: active) {
  .cal-btn[data-live]::after {
    background: Highlight;
  }
}
/* Share (S-013): small round marks on the breadcrumb line, at its right; under the crumbs on a narrow
   screen. 32 px targets, above WCAG 2.5.8's 24 px minimum. */
.share {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.share-lbl {
  font: 600 var(--label-1) / 1 var(--label-caps);
  letter-spacing: var(--track-3);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}
.share-btn,
.share-net {
  border-color: var(--line);
  border-radius: 50%;
  background: var(--ink-1);
}
.share-btn:hover,
.share-net:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}
.share-said {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  font: 500 var(--label-6) / 1.2 var(--label);
  color: var(--muted);
  white-space: nowrap;
}
/* Once it says something it is a pill above whatever sits under the row (the hero, on a phone), not drawn
   beneath it. */
.share-said:not(:empty) {
  z-index: 3;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px var(--space-2);
}
/* bp: 420 */
@media (max-width: 420px) {
  .share-lbl {
    display: none;
  }
}
.foot {
  border-top: 1px solid var(--line);
  background: var(--ink-1);
  margin-top: 30px;
}
.foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) 34px;
  font-size: var(--label-11);
  color: var(--muted);
}
.foot .legal {
  font-size: var(--label-6);
  margin: 0.5em 0 0;
}
.foot .ver {
  font: 500 var(--label-1) / 1.3 var(--label);
  letter-spacing: 0.04em;
  margin: 0.5em 0 0;
}
/* The copyright on the left and the client build and app's version on the right of one line; a narrow screen wraps
   the version under. */
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1em;
}
.foot-base .legal,
.foot-base .ver {
  margin-top: 0.5em;
}
/* The footer map (S-092): two rows of section hubs, each one wrapped inline list with its heading in the line. */
.foot-map {
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-5);
  margin: 0 0 var(--space-1);
}
.foot-h {
  font: 600 var(--label-6) / 1.3 var(--label-caps);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--head);
  margin: 0;
}
.foot-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-row a {
  display: inline-block;
  min-height: 24px;
} /* WCAG 2.5.8: a one-word link is shorter than 24 px */

/* bp: 640 */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  /* Trimmed for the phone fold (test_mobile_fold, test_ads_fold_work) */
  .hero {
    margin-top: var(--space-2);
  }
  .hub-hero .hub-search {
    margin-top: var(--space-3);
  }
  .hub-hero .hub-search input,
  .hub-hero .hub-search .btn {
    min-height: 32px;
  }
  .hub-hero .hub-search .btn {
    padding-block: var(--space-3);
  }
  .hero-in {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
    gap: 14px;
  }
  .band {
    grid-template-columns: 1fr;
  }
  .band-lv {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    display: flex;
    gap: var(--space-4);
    align-items: baseline;
    padding: var(--space-4) 14px;
  }
  .band-lv small {
    margin: 0;
  }
  .band dl {
    grid-template-columns: minmax(0, 1fr);
  }
  /* L-50: a no-wrap item could not shrink the single track below its own width, so words were cut off by
     the band's overflow: hidden. At phone width the items wrap like text. */
  .band .learn a,
  .band .learn span,
  .band dd .ref {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .band dt,
  .band dd {
    grid-column: 1;
  }
  .tal,
  .tal .ic {
    width: 40px;
    height: 40px;
  }
  .tree-grid {
    grid-template-rows: repeat(7, 52px);
  }
  .lvl input {
    width: 140px;
  }
  /* A talent card offset from a 48 px icon cannot fit beside it on a phone (UX-P1-07): it opens as
     a sheet along the bottom of the screen instead, the same for every column. */
  .tal-card,
  .c0 .tal-card,
  .c2 .tal-card,
  .c3 .tal-card {
    position: fixed;
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    max-height: 60vh;
    overflow-y: auto;
  }
}
/* Ads (S-021, plan §5.3–§5.7). A frame is the page surface with a 3:1 control edge and a label: never
   a card, callout or chip, so it is plainly not ours. Every unit has a fixed size per breakpoint, so its
   space is reserved before the ad arrives and nothing moves when it does. Its own stacking context keeps
   every ad iframe under the tooltip card and the theme popover; the masthead stays above the rail. */
/* A quiet frame (owner, 2026-10-21): a panel one step off the page with a decorative hairline, not a control's
   3:1 edge. The label and the panel are what set the ad apart; the padding keeps a stray tap off our links.
   Outside it, the 16 px that separates the site's cards and blocks, no more (owner, 2026-10-21). */
.ad {
  position: relative;
  z-index: 0;
  margin: var(--space-5) 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  text-align: center;
}
.ad-lbl {
  margin: 0 0 var(--space-2);
  font-size: var(--label-1);
  line-height: 1;
  color: var(--muted);
}
.ad-unit {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: 250px;
}
/* Exactly 16 px after an ad, whatever comes next: its own top margin (the pager's 40 px, a block's negative
   pull) would otherwise collapse with the frame's and change the gap. Inside main only: the rail's next
   sibling is the footer. */
main .ad + * {
  margin-top: 0;
}
/* After a hero header the top unit sits outside the column, and the column's 8 px padding and its first
   section's 26 px margin would add to the 16 px: the column starts right at the gap instead. */
main > .ad-top + .guide {
  padding-top: 0;
}
main > .ad-top + .guide > :first-child {
  margin-top: 0;
}
/* An end unit with nothing after it is 16 px from the footer too, not the column's 40 px end plus the
   footer's 30 px. */
.guide:has(> .ad-end:last-child) {
  padding-bottom: 0;
}
body:has(.guide > .ad-end:last-child):not(:has(.where-next)) > .foot {
  margin-top: var(--space-5);
}
/* An end unit with the Where next block (S-091) below it: the block keeps the ad's 16 px, not its own 2.5rem. */
.guide:has(> .ad-end:last-child) + .where-next {
  margin-block-start: var(--space-5);
}
/* The networks' share row follows the column (S-094): 16 px after the end unit, as anything is. */
.guide:has(> .ad-end:last-child) + .share-end {
  margin-top: 0;
}
/* The rail lives only in the gutter beside the centered 1180 px column: a 16 px gap, the 302 px frame and
   12 px to spare on each side make 1840 px, so a 1920 px desktop gets it and the column never narrows. A narrower
   gutter takes a 160 x 600 rail: its 162 px frame makes 1560 px (owner, 2026-10-21). Its frame
   ends about 640 px under the masthead's bottom (ads.js keeps it there, launch banner or not), and the anchor
   shows on desktop too (2026-10-21): 900 px of height leaves room for the banner, the anchor's ~100 px and a
   gap, so the two ads never overlap (AdSense sticky-ad rules, answer 10734935). */
.ad-rail {
  display: none;
}
/* The top unit, just after the lede, is the wide screen's first ad, above the fold on a desktop. Below 900 px
   it never shows, so the phone's first screen stays the title, tabs and first glance rows, and the first
   in-content unit (.ad-narrow) shows in its place. Never displayed, never requested (js/ads.js). */
.ad-top {
  display: none;
}
/* A page with no in-content unit has no other ad on a phone's screens until its end, so there the top unit
   shows below 900 px too, at 320 x 100: a band, not a box, so the first glance rows stay in view (owner,
   2026-10-21). The density check decides it (ads.py). */
/* bp: 900 */
@media (max-width: 899.98px) {
  .ad-top.ad-phone {
    display: block;
  }
  .ad-phone .ad-unit {
    width: 320px;
    height: 100px;
  }
  main > .ad-top {
    width: auto;
    margin-inline: var(--space-5);
  }
}
/* After a hero header (home, races, news, tier lists and the section indexes) the top unit is a child of
   main, outside the .guide column: hold it to the column's width so it lines up with the content. */
main > .ad-top {
  width: min(1148px, calc(100% - 32px));
  margin-inline: auto;
}
/* bp: 900 */
@media (min-width: 900px) {
  .ad-top {
    display: block;
  }
  .ad-narrow {
    display: none;
  }
  .ad-unit {
    width: 728px;
    height: 90px;
  }
}
/* Below 400 px a 300 px unit and the column's padding do not fit: the frame runs to the screen's edges
   (no side borders), so it never makes the page scroll sideways (WCAG 1.4.10). */
/* bp: 400 */
@media (max-width: 399.98px) {
  .ad {
    margin-inline: -16px;
    border-inline: 0;
    border-radius: 0;
    padding-inline: 0;
  }
  main > .ad-top {
    margin-inline: 0; /* a child of the full-width main already, so edge to edge without the pull */
  }
}
/* bp: 400, 900 */
@media (min-width: 400px) and (max-width: 899.98px) {
  .ad-unit {
    width: 336px;
    height: 280px;
  }
  .ad-phone .ad-unit {
    width: 320px;
    height: 100px;
  }
}
/* bp: 1560 */
@media (min-width: 1560px) and (min-height: 900px) {
  .ad-rail {
    display: block;
    position: fixed;
    z-index: 1;
    top: calc(var(--mast-h) + 24px);
    left: calc(50% + 606px);
    width: 162px;
    margin: 0;
    padding-inline: 0;
  }
  .ad-rail .ad-unit {
    width: 160px;
    height: 600px;
  }
}
/* bp: 1840 */
@media (min-width: 1840px) and (min-height: 900px) {
  .ad-rail {
    width: 302px;
  }
  .ad-rail .ad-unit {
    width: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Print (UX-P2-01): the light theme, on white; the
   page's shell is left off; closed sections print open; a link in prose prints where it goes (its
   path: the browser prints the page's own address, which gives the site). */
@media print {
  /* A tier list prints every entry, without the step controls (tierlist.js). */
  .tl-entry[hidden] {
    display: block !important;
  }
  .tl-nav,
  .tl-back {
    display: none !important;
  }
  :root,
  :root[data-theme] {
    color-scheme: light;
  }
  .mast,
  .mast2,
  .tabs,
  .controls,
  .filters,
  .range-form,
  .pager,
  .toc,
  .skip,
  .foot,
  .share,
  .crumbs,
  .jump,
  details.legend,
  .ad,
  :root.js [data-js],
  .map-layers-d,
  .pin-card {
    display: none !important;
  }
  /* The zone map at full width, unzoomed, its pins numbered to the key below it (S-022 22.4). */
  .zone-art:has(.map-layers) {
    display: block;
  }
  .zone-map,
  .pin-b {
    transform: none !important;
  }
  .pin .pin-n {
    display: inline;
    visibility: visible;
    fill: var(--black);
    stroke: #fff;
  }
  .print-only {
    display: block;
  }
  .map-print-key {
    columns: 2;
    font-size: var(--label-9);
  }
  body,
  .hero,
  .hero-in,
  .cc,
  .news-item,
  .band,
  .tablewrap {
    background: #fff !important;
    color: var(--black);
    box-shadow: none !important;
    text-shadow: none !important;
  }
  h1,
  h2,
  h3,
  h4,
  b,
  strong,
  th,
  a {
    color: var(--black) !important;
  }
  .tablewrap {
    overflow: visible;
  }
  thead th {
    position: static;
  }
  details::details-content {
    content-visibility: visible;
    display: contents;
  }
  details > summary {
    list-style: none;
  }
  .chip {
    background: none !important;
    color: var(--black) !important;
    border: 1px solid #666;
  }
  .crumbs a,
  .cc-head a,
  .cc-specs a,
  .go,
  a.ml,
  th a,
  td a,
  .jump a {
    display: inline;
    min-height: 0;
  }
  main :is(p, li, dd):not(td *, th *) > a[href^="/"]:not(.ref)::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  tr,
  figure,
  .macro,
  .cc {
    break-inside: avoid;
  }
}

/* Races (site/races.py). */
.race-icons {
  display: flex;
  gap: var(--space-1);
  margin: var(--space-2) 0;
}
.race-card .cc-head h3 {
  margin: 0;
}
.fac-alliance {
  --c: #6f9fe0;
}
.fac-horde {
  --c: #d0574a;
}
.prof-crafting {
  --c: #c98b4f;
}
.prof-gathering {
  --c: #7cb36a;
}
.prof-secondary {
  --c: #8fa9c4;
}
.race-matrix td {
  text-align: center;
}
.race-matrix td.yes {
  color: var(--gold-2);
  font-weight: 700;
}
.race-matrix td.no {
  color: var(--faint);
}
.level-range legend,
.vh,
.js .tl-mode-h {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.racials th[scope="row"] {
  white-space: nowrap;
  vertical-align: top;
}
.racials td {
  vertical-align: top;
}
.racials .note {
  margin: var(--space-1) 0 0;
}
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr); /* minmax(0, ...): a long value wraps, never widens the page (L-046) */
  gap: var(--space-1) 14px;
  margin: 0 0 var(--space-4);
}
.facts dt {
  color: var(--muted);
  font: 600 var(--label-9) / 1.6 var(--label-caps);
  letter-spacing: var(--track-2);
  text-transform: uppercase;
}
.facts dd {
  margin: 0;
  min-width: 0;
}
/* On a phone the label sits above its value: beside it, 200% text left a long name (Orgrimmar) less room than it
   needs and pushed the page sideways (L-046). */
/* bp: 480 */
@media (max-width: 480px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .facts dd {
    margin-bottom: var(--space-2);
    overflow-wrap: anywhere;
  }
}

/* Narrow phones: a tighter row. */
/* bp: 480 */
@media (max-width: 480px) {
  :root {
    --mast1-h: 3.0625rem; /* 49 px */
  }
  .mast-in {
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
  }
  .mast2-in {
    padding-inline: var(--space-4);
  }
}
/* Under 680 px the brand is its sigil, its name kept for screen readers as .vh does: the name would take the room the
   search and buttons need, and push the menu button under a theme's seal (Orgrimmar's is 109 px wide; D-368). */
/* bp: 680 */
@media (max-width: 679.98px) {
  .brand span {
    position: absolute;
    top: 0; /* its text's box stays at the bar's top, clear of a theme's seal under the bar */
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* News: Blizzard's posts in our own words, each linking to the original */
.news-list {
  container-type: inline-size;
  display: grid;
  gap: 14px;
}
/* A card: a title of up to two lines and a summary of two, the whole of it a link to the topic page. */
.news-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-5);
  align-items: center;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-dim);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.news-item.kind-blue {
  border-left-color: var(--blue-edge);
}
.news-item.kind-log {
  border-left-color: var(--line-2);
}
.news-item:hover,
.news-item:focus-within {
  background: var(--ink-2);
  border-color: var(--line-2);
}
.news-body {
  min-width: 0;
  grid-column: -2;
}
/* The title wraps to two lines at most (UX-P2-09); the whole card is its target, through ::after. */
.news-item h3 {
  margin: 2px 0 var(--space-1);
  font-size: 1.05rem;
  line-height: 1.4;
}
.news-item h3 .news-go {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 24px;
}
.news-go {
  text-decoration: none;
}
.news-go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.news-go:focus-visible {
  outline: none;
}
.news-go:focus-visible::after {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.news-meta,
.fun-help {
  margin: 0;
  color: var(--muted);
  font-size: var(--label-9);
}
.news-sum {
  margin: 0;
  min-height: 3.2em;
  max-height: 3.2em;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.kind-blue .chip {
  color: var(--blue-text);
  border-color: var(--blue-edge);
}
.news-more {
  margin: var(--space-1) 0 var(--space-6);
}
.news-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
}
.news-thumb.thumb-avatar {
  width: 64px;
}
.news-thumb img,
.news-hero-thumb img {
  display: block;
  border: 1px solid var(--line);
}
.thumb-image img {
  width: 160px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
}
.thumb-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.thumb-by {
  max-width: 100%;
  margin-top: var(--space-1);
  color: var(--blue-text);
  font: 600 var(--label-1) / 1.2 var(--label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The status log: one entry per notice, each an anchor its old address redirects to */
.status-log {
  container-type: inline-size;
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-log li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-5);
  align-items: start;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--mast-h) + var(--anchor-gap));
}
.status-body {
  min-width: 0;
  grid-column: -2;
}
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
.status-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.status-src {
  flex: none;
  font-size: var(--label-9);
}
.status-log li:first-child {
  border-top: 0;
}
.status-log h2 {
  margin: var(--space-1) 0;
  font-size: 1.05rem;
}
.status-log p {
  margin: 0;
}
.status-log li:target {
  background: var(--ink-2);
}
/* Server status (D-365): a dot in the state's color; the word beside it, or the link's name, says the state */
.srv .legend-list {
  grid-template-columns: repeat(3, auto); /* auto, not max-content: the name wraps at 200% text */
  justify-content: start;
  column-gap: 0.5em;
}
.srv .legend-list > li {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: baseline;
  overflow-wrap: anywhere; /* at 320 px with 200% text only: a word breaks rather than the page scrolls sideways */
}
.srv [data-srv-word] {
  font-weight: 700;
}
.srv-ico {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.05em;
}
.srv-badge {
  font-size: 16px;
}
/* The topic page */
.news-topic .hero-in {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
}
.news-hero-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.news-hero-thumb.thumb-image img {
  width: 320px;
  height: 180px;
}
.news-hero-thumb.thumb-avatar img {
  width: 96px;
  height: 96px;
}
/* Blizzard's video player: the frame's width, 16:9, so a phone never scrolls sideways */
.news-video {
  margin: 0 0 var(--space-6);
}
.video-frame {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.news-video figcaption {
  margin-top: var(--space-2);
  font-size: var(--label-11);
}
.news-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
/* The full write-up (S-015): change tables and the source of each part */
.news-build h3,
.news-topic .sec h3 {
  margin: 18px 0 var(--space-2);
  font-size: 1rem;
}
.delta {
  font: 600 var(--label-1) / 1.4 var(--label-caps);
  letter-spacing: var(--track-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.delta-new,
.delta-buff,
.delta-fix {
  color: var(--verd-ink);
}
.delta-nerf,
.delta-removed {
  color: var(--rose-ink);
}
.delta-change {
  color: var(--amber-ink);
}
/* /what-changed/ on a phone (OWN-23, L-186): the five columns squeezed the Change text or pushed it off screen, so
   each change is a card: subject and kind on top, then the area, the change, and its source. The column heads
   are hidden (the cells read in the same order); tr[hidden] stays hidden through the global [hidden] rule. */
/* bp: 640 */
@media (max-width: 640px) {
  .wc-build .tablewrap {
    overflow-x: visible;
    border: 0;
    background: none;
  }
  .wc-build table,
  .wc-build tbody {
    display: block;
  }
  .wc-build thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .wc-build tbody tr:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink-1);
  }
  .wc-build tbody tr > * {
    padding: 0;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .wc-build tbody th {
    grid-column: 1;
    grid-row: 1;
  }
  .wc-build tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }
  .wc-build tbody td:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--muted);
  }
  .wc-build tbody td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: var(--space-1);
  }
  .wc-build tbody td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: var(--space-1);
  }
}
.said {
  color: var(--muted);
  font-size: 0.9em;
}
.news-topic .src {
  color: var(--muted);
  font-size: var(--label-11);
}
/* Summary's heading row: Blizzard's post, linked once, at the right */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
}
.sec-head h2 {
  margin: 0;
}
.src-link {
  font-size: var(--label-12);
}
.news-issues small {
  color: var(--muted);
}
.news-step {
  display: block;
  padding: var(--space-4) 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.news-step small {
  display: block;
  color: var(--muted);
  font: 600 var(--label-1) / 1.4 var(--label-caps);
  letter-spacing: var(--track-3);
  text-transform: uppercase;
}
/* A card's thumbnail shrinks with the list the card sits in; a list is the page's width less its 32 px. */
/* cq: 528 */
@container (max-width: 528px) {
  .news-thumb {
    width: 96px;
  }
  .news-thumb.thumb-avatar {
    width: 52px;
  }
  .thumb-image img {
    width: 96px;
    height: 54px;
  }
  .thumb-avatar img {
    width: 40px;
    height: 40px;
  }
}
/* bp: 560 */
@media (max-width: 560px) {
  .news-topic .hero-in {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-hero-thumb.thumb-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* WCAG 2.2 SC 2.5.8: every target is at least 24 px tall, except a link inside a sentence (UX-P2-10).
   These are the links that stand alone: crumbs, card heads and spec lists, table cells, class lists. Every
   crumb sits on that line too, the current page as well. Not a.ml: a mention is inside a sentence, and as a
   flex box it lost the space after its icon's word ("FrostArmor"). */
/* A mention stays inline so its name wraps and keeps its spaces; inline padding grows its hit area to 24 px
   without moving the line, for the lines that are only mentions ("Restoration: Naturalist, Nature's Focus"). */
a.ml {
  padding-block: 1px;
}
.crumbs li,
.crumbs a,
.cc-head a,
.cc-specs a,
.go,
th a,
td a,
.jump a,
.news-step {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
summary {
  min-height: 24px;
}

/* The theme choice (templates/layout.html, js/head-init.js): a button in the masthead opens it as a
   popover; the footer shows it inline. */
.theme-pop {
  margin: 0;
  inset: auto;
  top: calc(var(--mast-h) + 4px);
  right: 16px;
  padding: var(--space-4) 14px;
  background: var(--ink-1);
  color: var(--text);
  border: 1px solid var(--line-ui);
  border-radius: var(--radius);
}
.theme-pop::backdrop {
  background: transparent;
}
/* Below the popover's Baseline year (D-145, panel review L-23) the button would do nothing and the popover would
   sit open in the masthead: both go, and the footer's inline choice is the theme control. */
@supports not selector(:popover-open) {
  :root .theme-btn,
  .theme-pop,
  .nav-btn,
  .nav-more {
    display: none;
  }
  .mast-nav {
    flex-wrap: wrap;
  }
  .mast-nav > [inert] {
    visibility: visible;
  }
}
.foot .theme-pick {
  margin: 1em 0 0;
}

/* Search (S-007): Pagefind's Component UI resets its elements with `all: initial`, so it is themed only
   through its --pf-* variables, set here from ours so both themes follow. Its own icons are data: URIs,
   which the CSP's img-src 'self' blocks: ours is served from /img/. */
.search-ui {
  --pf-text: var(--text);
  --pf-text-secondary: var(--muted);
  --pf-text-muted: var(--muted);
  --pf-background: var(--ink-1);
  --pf-border: var(--line-ui);
  --pf-border-focus: var(--gold-2);
  --pf-hover: var(--ink-2);
  --pf-skeleton: var(--ink-2);
  --pf-skeleton-shine: var(--ink-3);
  --pf-mark: var(--strong);
  --pf-outline-focus: var(--gold-2);
  --pf-scroll-shadow: transparent;
  --pf-font: var(--body);
  --pf-border-radius: var(--radius);
  --pf-input-height: 44px;
  --pf-input-font-size: 1.05rem;
  --pf-result-title-font-size: 1.1rem;
  --pf-result-excerpt-font-size: 0.95rem;
  --pf-summary-font-size: 0.95rem;
  --pf-icon-search: url("/img/search.svg");
  --pf-icon-arrow: none; /* filter dropdowns only, which this site does not use */
  max-width: 760px;
}
.search-ui pagefind-input {
  display: block;
  margin-bottom: 14px;
}
.search-nojs {
  padding: 14px var(--space-5);
  background: var(--ink-1);
  border: 1px solid var(--line-ui);
  border-radius: var(--radius);
}
/* The masthead search: row 1's growing item. Under 360 px only its button shows, which opens /search/. */
.mast-search {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}
.mast-search input[type="search"] {
  display: none;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  height: 32px;
  padding: 0 var(--space-3);
  border-radius: 8px 0 0 8px;
  border-right: 0;
}
/* One ring round the box and its button, not round the box alone, which stopped at the button. */
.mast-search {
  border-radius: 10px;
}
.mast-search input[type="search"]:focus-visible {
  outline: none;
}
.mast-search:has(input:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
/* bp: 360 */
@media (min-width: 360px) {
  .mast-search {
    flex: 1 1 6rem;
    min-width: 6rem;
  }
  .mast-search input[type="search"] {
    display: block;
  }
  .mast-search button {
    border-radius: 0 8px 8px 0;
    background: var(--ink-1);
  }
}
/* A placeholder is read at the body's muted color, 4.5:1 in every skin and theme (L-187); Firefox dims it unless told not to. */
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
/* The masthead's and the hero's suggestions (S-101): a list under the box, over the page. */
.mast-search,
.hub-search {
  position: relative;
}
.suggest {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}
.suggest a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.suggest [aria-selected="true"] a,
.suggest a:hover {
  background: var(--ink-2);
  outline: 1px solid var(--gold-2);
}
.suggest-kind {
  flex: none;
  color: var(--muted);
  font-size: 0.85em;
}
/* /search/'s type chips (S-101): one row of toggles; the pressed one is marked by more than a shade. */
.search-types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.search-types button {
  padding: 5px var(--space-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-1);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.search-types button[aria-pressed="true"] {
  background: var(--ink-2);
  border-color: var(--gold-2);
  font-weight: 700;
}
.search-types .n {
  color: var(--muted);
}
.search-types .note {
  flex-basis: 100%;
  margin: 0;
}
.nf-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: 1.2em;
}
.nf-results {
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
}
.nf-results a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.nf-search label {
  font: 500 1rem / 1.2 var(--body);
  color: var(--muted);
}
/* Zone maps (S-022): the game client's own map image, with the default pins laid over it in its pixels. */
.zone-art {
  position: relative; /* the pin card (js/zonemap.js) is placed in it */
  margin: 0 0 1.2rem;
}
.zone-top {
  display: grid;
  gap: 0 34px;
}
/* bp: 900 */
@media (min-width: 900px) {
  .zone-top {
    grid-template-columns: 1fr 1fr; /* the overview's words on the left, the zone's map on the right, half each */
    align-items: start;
  }
  .zone-top .zone-art {
    margin-top: 1.2rem; /* level with the first heading's top */
  }
}
.zone-map {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* The map page's zoom (js/zonemap.js, Panzoom): the frame clips the map as it grows, and each pin's inner group
   is scaled back by --pin-k, so pins and their names keep their size. */
.map-zoom {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 0 var(--space-2) auto;
}
.map-zoom button {
  min-width: 2.75rem;
  min-height: 2.75rem; /* 44 px: a touch target (2.5.8 asks 24) */
}
.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-frame .zone-map {
  border: 0;
  border-radius: 0;
}
.map-frame.zoomed .zone-map {
  cursor: grab;
}
.pin-b {
  transform: scale(var(--pin-k, 1));
}
/* A herb's or ore's area: where it spawns, shown while its kind is ticked in "Which" (zones.areas, layers_css).
   The light edge over a dark one reads on any art, as the pins' halo does. */
.node-area {
  display: none;
  pointer-events: none;
}
.area-fill {
  fill: var(--halo-out);
  fill-opacity: 0.3;
}
.area-under,
.area-edge {
  fill: none;
  vector-effect: non-scaling-stroke; /* the edge keeps its width as the map zooms, like the pins */
}
.area-under {
  stroke: var(--halo-in);
  stroke-width: 4;
}
.area-edge {
  stroke: var(--halo-out);
  stroke-width: 2;
}
.pin-halo {
  fill: var(--halo-in);
  stroke: var(--halo-out);
}
@media screen {
  .pin .pin-n,
  .print-only {
    display: none; /* print's pin numbers and key (zones.map_art); ads.drawn skips .print-only too */
  }
}
.pin text {
  font: 600 26px / 1 var(--label); /* map pixels: about 13 px on the overview's half-width map */
  dominant-baseline: central;
  fill: var(--map-label);
  stroke: var(--on-fill);
  stroke-width: 6;
  stroke-linejoin: round;
  paint-order: stroke; /* a dark outline under light letters, legible on any part of the painted map */
  visibility: hidden; /* the name shows only while the pointer is on its icon */
  pointer-events: none;
}
.pin:hover text,
.pin:focus text {
  visibility: visible;
}
/* 72 map pixels across: 24 px or more on screen at any map width (WCAG 2.5.8), held there as the map zooms. */
.pin-hit {
  r: calc(36px * var(--pin-k, 1));
  fill: transparent;
  pointer-events: all;
}
.pin:focus-visible {
  outline: 3px solid var(--gold);
}
:root.js .pin {
  cursor: pointer;
}
/* With the script, a mouse on a pin gets the /way card (js/tooltip.js), which names it: no label as well. */
:root.js .pin:hover text {
  visibility: hidden;
}
:root.js .pin:focus text {
  visibility: visible;
}
/* A gatherer's Route tab (D-316, professions/gather_route.html, js/gather-route.js): each zone's /way and a small
   map of the node there, its area, its densest patch (gold), the other patches worth a stop (dashed) and the red
   loop through them. The same drawing opens larger in a dialog that zooms like the zone map (site.mapZoom). */
.rt-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-3);
}
.rt-table th[scope="row"] a {
  display: block;
}
.rt-n {
  display: block;
  font-weight: 400;
  font-size: 0.875em;
  color: var(--muted);
}
.rt-chip {
  display: inline-block;
  margin-top: var(--space-1);
  padding: 1px 7px;
  font: 600 var(--label-1) / 1.4 var(--label);
  color: var(--on-gold);
  background: var(--gold-fill);
  border-radius: 99px;
}
.rt-way code {
  overflow-wrap: anywhere;
}
.rt-way .btn {
  margin-left: var(--space-2);
}
.rt-all {
  margin-top: var(--space-2);
}
.rt-all pre {
  margin: var(--space-2) 0;
  overflow-x: auto;
}
.rt-all .btn {
  margin-left: 0;
}
.rt-pick > th,
.rt-pick > td {
  background: color-mix(in srgb, var(--gold-fill) 16%, transparent);
}
.rt-pick > th {
  box-shadow: inset 4px 0 0 var(--gold);
}
.rt-map {
  position: relative;
  display: block;
  width: 15rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  --pin-k: 2.4; /* the pins at a size the eye finds on a map this small */
}
.rt-map img {
  display: block;
  width: 100%;
  height: auto;
}
.rt-over {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.rt-map .pin {
  pointer-events: none; /* the whole small map is one link */
}
.rt-map:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.rt-area {
  display: inline;
}
.rt-loop,
.rt-loop-under {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.rt-loop-under {
  stroke: rgb(0 0 0 / 0.7);
  stroke-width: 5;
}
.rt-loop {
  stroke: #e5322d;
  stroke-width: 3;
}
.rt-arrow {
  fill: #e5322d;
  stroke: rgb(0 0 0 / 0.8);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.rt-stop circle {
  fill: #fff;
  stroke: #1a1a1a;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.rt-stop text {
  font: 700 30px / 1 var(--label);
  text-anchor: middle;
  dominant-baseline: central;
  fill: #1a1a1a;
  pointer-events: none;
}
.rt-stop-1 circle {
  fill: var(--gold-hi);
  stroke-width: 3;
}
.rt-stop-1 text {
  font-size: 38px;
}
.rt-modal {
  width: min(64rem, calc(100% - 1rem));
  max-height: 94dvh;
  margin: auto;
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  background: var(--ink-1);
  border: 2px solid var(--gold-dim);
  border-radius: 12px;
  overflow: auto;
}
.rt-modal::backdrop {
  background: rgb(8 6 2 / 0.72);
}
.rt-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.rt-modal-top h2 {
  margin: 0;
  font-size: 1.15rem;
}
.rt-modal .map-zoom {
  margin-top: var(--space-2);
}
.rt-modal-way {
  margin: var(--space-2) 0 0;
  font-family: var(--mono);
}
/* A pin's card (js/zonemap.js): the /way card's look, placed under the pin inside the map. */
.pin-card {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: min(300px, calc(100% - 16px));
}
.pin-card:focus-visible {
  outline: var(--focus-ring);
}
.pin-card .pc-name {
  font-weight: 700;
}
.pin-card .pc-meta,
.pin-card .pc-at {
  color: var(--wtt-silver);
}
.pin-card .pc-acts {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.pin-card a {
  color: var(--wtt-gold);
}
/* The map page's legend: a checkbox per layer, and the generated rules in classes.css hide a layer's pins while its
   box is clear (zones.layers_css), so it works with no script. Beside the map on a wide screen, under it otherwise. */
/* bp: 900 */
@media (min-width: 900px) {
  .zone-art:has(.map-layers) {
    display: grid;
    grid-template-columns: 1fr 17rem;
    gap: 0 1.2rem;
    align-items: start;
  }
  .zone-art:has(.map-layers) figcaption {
    grid-column: 1 / -1;
  }
}
.map-layers {
  margin: 0.6rem 0 0;
  padding: 0.3rem 0.8rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-layers legend {
  padding: 0 0.3em;
  font-weight: 600;
}
.map-layers .lg {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: 0.2rem 0 0.4rem;
}
.map-layers .lg-h {
  flex-basis: 100%;
  margin: 0.2rem 0 0;
  font-family: var(--label-caps);
  color: var(--muted);
}
.map-layers label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 28px; /* a target at least 24 px tall (2.5.8) */
  cursor: pointer;
}
/* A layer's "Which" choice: a box per kind, folded under its layer's own box (zones.which, site.js) */
.map-layers .map-pick {
  flex-basis: 100%;
  margin: 0 0.4rem 0.2rem 1.6rem; /* under its own box's label, so it reads as that layer's */
}
.map-layers .map-pick > summary {
  min-height: 28px; /* the boxes' own target height (2.5.8) */
  display: flex;
  align-items: center;
  gap: 0.3em;
  cursor: pointer;
  color: var(--muted);
}
.map-pick:has(input:checked) .pick-all {
  display: none; /* the script names the kinds instead; with none it says "all" */
}
.map-pick .pick-some {
  color: var(--text);
}
.map-pick .pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  padding: 0.1rem 0 0.3rem 0.9rem;
  border-left: 2px solid var(--line);
}
.map-pick .pick-clear {
  min-height: 28px;
  font: inherit;
}
.map-layers .n {
  color: var(--muted);
  white-space: nowrap; /* "(17)" stays with its label */
}
.map-layers .presets {
  margin: 0.4rem 0 0.2rem;
}
.map-layers .seg-wrap {
  margin: 0.4rem 0;
}
.map-hidden {
  margin: 0.2rem 0;
  color: var(--muted);
}
.map-layers-d > summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 28px;
}
/* bp: 640 */
@media (min-width: 641px) {
  :root.js .map-layers-d > summary {
    display: none; /* site.js keeps the panel open beside or under the map; only a phone folds it */
  }
}
.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.map-key img {
  margin-right: 0.4em;
  vertical-align: -0.25em;
}

/* Forced colors (L-12): the browser replaces every color with the reader's palette, so the fills and accent
   colors that mark a pressed button or the current page disappear. A border or outline stays. */
@media (forced-colors: active) {
  .seg button[aria-pressed="true"],
  .seg a[aria-current] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .mast-nav a[aria-current] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .tabs a {
    border-bottom-color: transparent;
  }
  .tabs a[aria-current] {
    border-bottom-color: Highlight;
    border-bottom-width: 4px;
  }
}

/* Tier lists (S-023). The graphic: six rows S→F, a colored label cell and a row of framed icons, each
   framed in its class color (--c, from classes.css). The tier ramp runs warm to cold: S gold, A amber,
   B verd, C sky, D violet, F slate. Without JavaScript every write-up below shows. */
.tierlist {
  container-type: inline-size;
  display: grid;
  gap: 3px;
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.tier {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  background: var(--ink-1);
  min-height: 5.5rem;
}

.tier-label {
  display: grid;
  place-items: center;
  margin: 0;
  font: 700 2rem / 1 var(--display);
  color: var(--on-fill);
  background: var(--t);
}

.tier-s {
  --t: var(--gold-fill);
}
.tier-a {
  --t: var(--amber);
}
.tier-b {
  --t: var(--verd);
}
.tier-c {
  --t: var(--sky);
}
.tier-d {
  --t: var(--violet);
}
.tier-f {
  --t: var(--slate-fill);
}

.tier-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
}

/* Every tile one size, wide enough for the longest name on one line ("Marksmanship", 93 px at 0.8rem); names
   never wrap, so no tile is taller. test_tierlist checks fit, centering and size. */
.tier-item {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  width: 7rem;
  padding: 0.35rem 0.25rem;
  border: 2px solid var(--c, var(--line-2));
  border-radius: var(--radius);
  background: var(--ink-0);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

/* An entry whose tier waits on an untested input (tier rework R-C): a corner mark on its tile, out of the flow. */
.tier-item:has(.tl-pending-mark) {
  position: relative;
}

.tl-pending-mark {
  position: absolute;
  top: 0.15rem;
  right: 0.3rem;
  color: var(--amber-ink);
  font-size: var(--label-1);
  font-weight: 700;
  line-height: 1;
}

.tl-pending {
  border-left: 3px solid var(--amber);
  padding-left: 0.5rem;
}

/* A close call (tier rework R-D): within 0.05 of a tier line. The mark sits in the tile's other top corner, out of
   the grid flow like the pending mark, and the write-up says which line and which way. */
.tier-item:has(.tl-close-mark) {
  position: relative;
}

.tl-close-mark {
  position: absolute;
  top: 0.15rem;
  left: 0.3rem;
  color: var(--muted);
  font-size: var(--label-1);
  font-weight: 700;
  line-height: 1;
}

.tl-close {
  border-left: 3px solid var(--line-2);
  padding-left: 0.5rem;
}

/* A small list (five entries or fewer) prints each tile's weighted score under its name; every tile on the page
   has one, so the tiles stay one size. */
.tier-score {
  color: var(--muted);
  font-size: var(--label-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* A list resting on unreleased content says so under its heading (tier rework R-C). */
.tl-label {
  border-left: 3px solid var(--amber);
  padding-left: 0.5rem;
  font-weight: 600;
}

.tier-item:hover,
.tier-item:focus-visible,
.tier-item[aria-current] {
  background: var(--ink-2);
}

.tier-name {
  font-size: var(--label-6);
  line-height: 1.2;
  white-space: nowrap;
}

.tier-name span {
  display: block;
  color: var(--muted);
}

/* A class pair's tile (list 10): two crests side by side, each framed in its own class's color. */
.tl-pair-ics {
  display: flex;
  gap: 0.25rem;
}

.tl-pair-ics > span .ic {
  border: 2px solid var(--c);
}

/* A pair list's pickers (list 10): shown by tierlist.js; without it every pair shows. A pair the pickers
   rule out is hidden on the chart and in the write-ups alike. */
.tl-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
}

.tier-items > li[data-off],
.tl-entry[data-off] {
  display: none;
}

.tl-filter label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}
.tl-filter select {
  max-width: 100%;
}

.tl-filter-count {
  margin: 0;
}

.tier-none {
  align-self: center;
  margin: 0;
  padding: 0 1rem;
  color: var(--faint);
}

/* A run of empty tiers as one line (S-104): "No spec rated S or A". */
.tier-gap {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--ink-1);
  color: var(--faint);
}

.tl-meta,
.tl-headline {
  color: var(--muted);
}

/* A note with a colored bar at its left (S-052 C4): the archived tier list and the PvP forecast. */
.tl-archived,
.pvp-forecast {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--amber);
  background: var(--ink-1);
}

.tier-chip {
  color: var(--on-fill);
  background: var(--t);
}

/* Definition rows (S-052 C5): a 9rem label column and the text beside it, one column on a narrow screen. */
:is(.tl-tiers, .pvp-verdict, .pvp-fight) > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

:is(.tl-tiers, .pvp-verdict, .pvp-fight) dd {
  margin: 0;
}

.tl-tiers > div {
  padding: 0.4rem 0;
}

.tl-entry {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--c, var(--line-2));
  background: var(--ink-1);
  scroll-margin-top: var(--anchor-gap);
}

.tl-entry h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tl-mini .tier-item {
  width: auto;
  padding: 0.15rem;
}

/* The index filter (S-038, site.js): a facet is a row of pills, each a real checkbox, ticked ones gold. */
.tl-filters {
  align-items: center;
  margin-bottom: 18px;
}
.tl-filters .shown {
  padding-bottom: 0;
}
/* The class and profession pickers are sized to their longest option ("Leatherworking (30)") rather than the
   15rem every filter select gets, still fixed so a late font cannot re-wrap the row (L-03). At the 1148px column
   that keeps the pickers and the pills on two lines, with Level beside Content (tierlists.FACETS). */
.tl-filters select {
  min-width: 0;
}
.tl-filters select[name="class"] {
  width: 7.5rem;
}
.tl-filters select[name="profession"] {
  width: 10.75rem;
}
.facet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  margin: 0;
  padding: 0;
}
.facet legend {
  float: left;
  margin-right: var(--space-1);
  font: 600 var(--label-5) / 1 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
}
.filters .pill,
.fun-form .pill {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px; /* WCAG 2.5.8 */
  padding: var(--space-1) var(--space-4);
  border: 1px solid var(--line-ui);
  border-radius: 99px;
  background: var(--ink-1);
  cursor: pointer;
}
.filters .pill > span,
.fun-form .pill > span {
  font: 600 var(--label-11) / 1 var(--label);
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text);
}
.filters .pill > .n {
  color: var(--muted);
}
.pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
/* Ticked shows in the shape too, not only the color (WCAG 1.4.1): the ring doubles in weight. It is an inset
   shadow, not a wider border or a "✓", so ticking a pill never changes its width and re-wraps the row. */
.pill:has(input:checked) {
  background: color-mix(in srgb, var(--gold) 22%, var(--ink-2));
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.pill:has(input:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* The rows follow the width of the list they sit in (a full page, or the ranking's column beside its filters),
   not the screen's. The list's content box is the screen less the page's 32 px and the list's own 2 px border. */
/* cq: 446 */
@container (max-width: 446px) {
  .tier {
    grid-template-columns: 3rem 1fr;
  }
  .tier-item {
    width: 6rem;
    padding-inline: 0.15rem;
  }
  .tier-name {
    font-size: var(--label-1);
  }
}

/* 320 px at 200% text: label over a column of full-width tiles. */
/* cq: 240 */
@container (max-width: 15rem) {
  .tier {
    grid-template-columns: 1fr;
  }
  .tier-items > li {
    flex: 1 1 100%;
  }
  .tier-item {
    width: auto;
  }
}

/* ---- Tier lists: the build picker (WP-1, OD-6) ----------------------------------------------------
   A <details> of links, top right of the list's header, once a list has two builds. .hero-in clips its
   overflow, so the open list grows the header in flow instead of floating over the page. */
.tierlist-page .hero-in {
  flex-wrap: wrap;
}
/* The picker sits on the meta line ("As of ... · Forecast"); the open list grows the row downward, in flow. */
.tl-metarow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.tl-metarow > .tl-meta {
  margin: 0;
}
.tl-builds {
  position: relative; /* above .hero-in::after */
  z-index: 1;
  max-width: 100%;
}
.tl-builds > summary {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  cursor: pointer;
}
.tl-builds > ol {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.tl-builds li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}
.tl-builds a[aria-current] {
  font-weight: 700;
}
.tl-builds-moves {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
}
/* ---- end of the build picker ---------------------------------------------------------------------- */

/* The tier list panel (S-024, js/tierlist.js). Its hooks are data-tierlist, not data-js: [data-js] marks a
   control that only works with a script, and is hidden without one; the chart and write-ups are content. */
.tier-item[aria-current] {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.tl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

/* A .btn as a step control (S-052 C2): a 44 px target, in the case it is written in. */
.btn-step {
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  min-height: 44px;
}

.tl-next {
  margin-left: auto;
}

.tl-entry h3:focus {
  outline: none;
}

.tl-entry h3:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

/* L-39 (WP-4): on a short screen (a phone on its side) the masthead scrolls away instead of taking a
   quarter of the height. Nothing then sits under it, so the offsets that read --mast-h go to zero. */
@media (max-height: 500px) {
  :root {
    --mast-h: 0px;
  }
  .mast {
    position: static;
  }
}

/* A spec's Races tab (S-055): the spec's section of a race-per-spec list, every race it can be, best first. */
.tl-stakes {
  border: 1px solid var(--line-ui);
}
.tl-stakes-big {
  color: var(--rose-ink);
}
.tl-stakes-some {
  color: var(--amber-ink);
}
.tl-stakes-little {
  color: var(--muted);
}
.tl-spec {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 3px solid var(--c, var(--line));
}
.tl-best {
  list-style: none;
  padding: 0;
}
.tl-races {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.tl-race {
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--c, var(--line));
  background: var(--ink-1);
}
.tl-race h4 {
  margin: 0;
}
.tl-race .tl-headline {
  margin: 0.25rem 0;
}

/* A spec's PvP tab (S-044): the forecast note (with .tl-archived), the verdict per list, the profile table. */

.pvp-verdict dd p {
  margin: 0.25rem 0 0;
}

/* Phase C (S-047): the fight plan and battleground lines as labeled rows, the matchup verdicts by color. */
.mu-favored {
  color: var(--verd-ink);
}

.mu-even {
  color: var(--muted);
}

.mu-unfavored {
  color: var(--rose-ink);
}

.mu-c-low {
  color: var(--amber-ink);
}

/* Five columns do not fit a phone: below 600 px each matchup is a card, its cells labeled (plan §3.7). */
/* bp: 600 */
@media (max-width: 37.5rem) {
  .pvp-fight > div {
    grid-template-columns: 1fr;
  }

  .pvp-mu thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .pvp-mu :is(tr, th, td) {
    display: block;
  }

  .pvp-mu tr {
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
  }

  .pvp-mu td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
}

/* The pips are a picture of the number beside them (aria-hidden), so a narrow screen keeps only the number. */
/* bp: 640 */
@media (max-width: 40rem) {
  :is(.tl-tiers, .pvp-verdict) > div {
    grid-template-columns: 1fr;
  }

  .pvp-profile .pips {
    display: none;
  }

  .pvp-profile :is(th, td) {
    padding-inline: 0.4rem;
    white-space: normal;
  }
}

/* The class's other specs drop below 400 px, so the profile fits a phone with no sideways scroll (plan §3.7). */
/* bp: 400 */
@media (max-width: 25rem) {
  .pvp-profile {
    font-size: 0.875rem;
  }

  .pvp-n1 :is(th, td):nth-child(n + 4),
  .pvp-n2 :is(th, td):nth-child(n + 5) {
    display: none;
  }
}

/* A spec's Races tab (S-055): one heading and a PvE / PvP drop-down; site.js hides the other list. With no
   script both lists show, each under its own heading, which the drop-down makes redundant once it works. */
.tl-mode-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.tl-mode-bar h2 {
  margin-right: auto;
}
.tl-mode-bar select {
  min-width: 0;
}

/* The camp composer (S-074): the campfire, then one row per player it holds, then the answers. */
.camp-form fieldset {
  margin: 0 0 14px;
  padding: var(--space-4) var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.camp-form legend {
  padding: 0 var(--space-1);
  font: 600 var(--label-5) / 1.3 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
}
.camp-form label,
.duo-pick {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.camp-form select {
  min-height: 32px; /* WCAG 2.5.8 */
}
.camp-seat-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.camp-seat {
  display: grid;
  grid-template-columns: 5rem minmax(0, 10rem) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.camp-seat-n {
  font-weight: 600;
  color: var(--muted);
  padding-top: var(--space-2);
}
.camp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A seat's add buttons, one per profession it may still take, wrapping under its tags. */
.camp-seat-add {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.camp-seat-add .btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--label-9);
}
.camp-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 2px 2px var(--space-3);
  border: 1px solid var(--line-ui);
  border-radius: 999px;
  background: var(--ink-2);
}
.camp-tag-name {
  font-weight: 600;
}
.camp-tag-skill {
  min-width: 0; /* a fixed width (L-03), not the 170px every filter select gets */
  width: 4.75rem;
  padding: var(--space-1) var(--space-2);
}
.camp-tag-remove {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.camp-tag-remove:hover,
.camp-tag-remove:focus-visible {
  background: var(--ink-3);
  color: var(--strong);
}
/* bp: 640 */
@media (max-width: 40rem) {
  .camp-seat {
    grid-template-columns: minmax(0, 1fr);
  }
  .camp-seat-n {
    padding-top: 0;
  }
}
.camp-kit {
  margin: 0 0 var(--space-4);
  max-width: 24rem;
}
.camp-out {
  margin-top: var(--space-5);
}
/* L-59: the board, the seat rows and the answers are drawn by camp.js into empty boxes, which pushed the rest
   of the page down by about 480 px. Each reserves the height it takes for the default party, measured at
   each width (the board's tiles and the seat rows stack as the page narrows); a party that differs moves
   less than the page did, and only inside the composer. */
.camp-board {
  min-height: 205px;
}
.camp-seat-list {
  min-height: 133px;
}
.camp-out {
  min-height: 367px;
}
/* bp: 900 */
@media (max-width: 899.98px) {
  .camp-board {
    min-height: 230px;
  }
  .camp-out {
    min-height: 390px;
  }
}
/* bp: 640 */
@media (max-width: 40rem) {
  .camp-seat-list {
    min-height: 259px;
  }
}
/* bp: 420 */
@media (max-width: 420px) {
  .camp-board {
    min-height: 320px;
  }
  .camp-out {
    min-height: 404px;
  }
}
/* bp: 400 */
@media (max-width: 399.98px) {
  .camp-board {
    min-height: 380px;
  }
  .camp-out {
    min-height: 510px;
  }
}
/* The camp board: the fire, then one tile per slot, placed features first and free slots dashed. */
.camp-board {
  margin: 0 0 18px;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-1);
}
.camp-fire {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
}
.camp-fire .camp-used {
  margin: 0;
  font-weight: 600;
}
.camp-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.camp-slot {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: var(--space-3);
  align-items: start;
  min-height: 56px;
  padding: var(--space-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--ink-2);
}
.camp-slot > .ic {
  grid-row: 1 / 4;
}
.camp-slot-name {
  font-weight: 600;
  line-height: 1.25;
}
.camp-slot-what {
  font-size: var(--label-5);
  line-height: 1.3;
  color: var(--muted);
}
.camp-slot-badge {
  justify-self: start;
  margin-top: var(--space-1);
  padding: 0 var(--space-2);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--label-5);
  color: var(--amber-ink);
}
.camp-slot.is-wasted > .ic,
.camp-slot.is-over > .ic {
  opacity: 0.45;
  filter: grayscale(1);
}
.camp-slot.is-free {
  align-items: center;
  border-style: dashed;
  background: none;
  color: var(--muted);
}
.camp-slot.is-free .camp-slot-name {
  grid-row: 1 / 4;
  align-self: center;
  font-weight: 400;
}
.camp-extra {
  margin: var(--space-4) 0 0;
}
.camp-warn li {
  color: var(--amber-ink);
}

/* The duo planner (S-076): two spec pickers, then the four sections. */
.duo-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--space-3) 14px;
  margin: 0 0 var(--space-4);
}
.duo-pick select {
  min-height: 32px; /* WCAG 2.5.8 */
}
/* The verdict and the professions: one column per mode shown. Each column spans as many rows as it has
   slots (duo.js) and shares them with its neighbor, so the two line up row by row. */
.duo-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0 28px;
}
.duo-col {
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
}
.duo-col > :first-child {
  margin-top: 0;
}
/* One spec picked: its class's partners, each a button that picks it into the empty picker. */
.duo-partner-tbl th .btn {
  min-height: 32px; /* WCAG 2.5.8 */
  text-align: start;
}
.duo-partner-tbl td:last-child {
  min-width: 18rem;
}
/* The Loot section and each instance in it fold, closed; a summary holds no heading (UX-P2-02). */
.duo-fold > summary {
  cursor: pointer;
}
.duo-fold .duo-fold {
  margin: var(--space-3) 0;
}
/* The talent calculator (/talents/): the card's Add and Take back, as on the Legacy trees, and the class list. */
.tc-bar {
  align-items: center;
}
/* The class links over the calculator: one per class, the open one pressed. */
.tc-switch {
  margin-bottom: var(--space-4);
}
/* The import box, left of Copy export string: fixed width, so a long pasted string scrolls inside it. */
.tc-strings {
  flex-wrap: wrap;
}
.tc-import input {
  box-sizing: border-box;
  width: 16rem;
  max-width: 100%;
  font-family: var(--mono);
}
/* Start from a build: Spec, Build and Load on one row that wraps. */
.tc-presets {
  margin: var(--space-4) 0 var(--space-5);
}
.tc-preset-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3) var(--space-4);
  margin: var(--space-3) 0 0;
}
.tc-help {
  margin-top: var(--space-6);
}
/* Effects, under the trees: each talent taken, its rank, then the client's text at that rank on its own line. */
.tc-effects {
  margin-top: var(--space-6);
}
.tc-effects h3 {
  margin: var(--space-5) 0 var(--space-2);
}
.tc-eff-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-eff-list li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}
.tc-eff-rank {
  color: var(--muted);
  font: 600 var(--label-11) / 1 var(--label);
}
/* Each click focuses the talent, and :focus-within would then hold its card over the row below, where the next click
   lands. With a mouse, a card that only a click's focus holds closes once the pointer leaves; keyboard focus still
   holds it, and a tap on a phone (no hover) still opens the sheet. */
@media (hover: hover) {
  [data-talent-calc] .tal:focus-within:not(:hover):not(:has(:focus-visible)) .tal-card {
    display: none;
  }
}
.tc-classes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}
.tc-classes li {
  padding: var(--space-4) 14px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tc-classes li > a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tc-classes .tc-trees {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
}

/* The first phone screen (S-094; OD-UX3 amends D-190 for phones). Every rule needs the
   script (:root.js), so without one the page is as it was: the hero at its full padding. */
/* bp: 600 */
@media (max-width: 599.98px) {
  /* the hero at half its padding; a news article's skips the box and its picture */
  :root.js .hero-in {
    padding: 11px 14px;
    gap: var(--space-3);
  }
  /* an icon beside the title rather than over it: one row, not two */
  :root.js .hero-in:has(> .ic-lg) {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  :root.js .hero-in > .ic-lg {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }
  :root.js .hero-home .hero-in {
    padding: 14px var(--space-5);
  }
  :root.js .hero-home h1 {
    font-size: 2rem;
  }
  /* the hub's longer H1 (owner, 2026-10-26) and the news strip's heading, smaller, so the first headline
     starts in the phone's first 400 px (S-096) */
  :root.js .hero-home.hub-hero h1 {
    font-size: 1.5rem;
  }
  :root.js .hub-news {
    margin-top: 0;
  }
  :root.js .hub-news h2 {
    font-size: 1.125rem;
  }
  /* :root twice: outweighs the share bar's padding-top below (0,4,1), as the flag's attribute once did */
  :root:root.js .news-topic .hero-in {
    padding: var(--space-1) 0 var(--space-3);
    border: 0;
    background: none;
  }
  :root.js .news-topic .news-hero-thumb {
    display: none;
  }
}
/* The networks at the end of <main>: their own row, not pushed right as the top one is,
   and left-aligned with the text above it in .guide's column. The row sits one section step (24 px) under the
   column, whose 40 px bottom padding it replaces. */
.share-end {
  max-width: 1180px;
  margin: var(--space-6) auto 0;
  padding: 0 var(--space-5);
  flex-wrap: wrap;
}
.share-end .share-row {
  margin-left: 0;
}
.guide:has(+ .share-end) {
  padding-bottom: 0;
}

/* The full share bar in the top-right corner of the page's hero (owner 2026-10-26), laid over the hero from
   the top of <main>; a page with no hero keeps it at the right of the breadcrumb bar (.share-crumb). The hero
   keeps clear of it: its text wraps before the bar on a wide screen, and starts below the bar on a phone. */
main {
  position: relative;
}
.share-hero {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: max(28px, calc((100% - 1180px) / 2 + 28px));
  margin: 0;
}
.share-hero .share-row {
  flex-wrap: nowrap;
}
/* bp: 640 */
@media (min-width: 640px) {
  /* a float in the title block: its first lines wrap before the bar, the rest run the full width */
  main:has(> .share-hero) .hero-in > div:first-of-type {
    /* the block takes the row's width: shrink-wrapped to the title, the eyebrow wrapped beside the float below */
    flex: 1 1 auto;
  }
  main:has(> .share-hero) .hero-in > div:first-of-type::before {
    content: "";
    float: right;
    width: 236px;
    height: 24px;
  }
  .share-hero .share-lbl {
    display: none;
  }
}
/* bp: 640 */
@media (min-width: 640px) {
  .share-hero .share-toggle {
    display: none;
  }
}
/* bp: 640 */
@media (max-width: 639.98px) {
  /* Below 640 the bar collapses into one Share button that opens the networks and Copy link (share.js).
     Without the script the button is not there and the end-of-page row is the way to share. */
  .share-hero {
    top: 3px;
    right: 22px;
  }
  :root:not(.js) .share-hero {
    display: none;
  }
  .share-hero .icon-btn {
    width: 28px;
    height: 28px;
  }
  .share-hero .share-lbl {
    display: none;
  }
  .share-hero .share-row {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 3;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: max-content;
    max-width: calc(100vw - 44px);
    padding: var(--space-2);
    background: var(--ink-1);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .share-hero .share-toggle[aria-expanded="true"] + .share-lbl + .share-row {
    display: flex;
  }
  /* :root twice: the fold's slimmer hero padding (specificity 0,3,0) would otherwise win */
  :root:root main:has(> .share-hero) .hero-in {
    padding-top: 33px;
  }
  :root:root main:has(> .share-hero) .hero-home .hero-in {
    padding-top: var(--space-6);
  }
}

/* Where next (S-091): three to six cards at the end of a leaf page */
.where-next {
  margin-block-start: 2.5rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}
.wn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The where-next and hub cards share one look (S-091, S-096) */
.wn-card,
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  text-decoration: none;
}
.wn-card:hover,
.wn-card:focus-visible,
.hub-card:hover,
.hub-card:focus-visible {
  border-color: var(--gold);
}
.wn-kind {
  color: var(--muted);
  font-size: 0.8125rem;
}
.wn-name {
  color: var(--gold);
  font-weight: 600;
}

/* The home page as a hub (S-096). The news rail comes first in the page: under the hero on a phone,
   where it shows three headlines, and beside the first three blocks from 1010 px. */
.hub-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.hub-hero .hero-in > div {
  max-width: 100%;
}
.hub-search {
  display: flex;
  gap: 0.5rem;
  max-width: 34rem;
  margin-top: 0.75rem;
}
.hub-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-ui);
  border-radius: var(--radius);
  background: var(--ink-1);
  color: inherit;
  font: inherit;
}
.hub-search .btn {
  min-height: 44px;
}
.hub-news {
  margin-top: var(--space-5);
}
.hub-news h2 {
  margin-top: 0;
}
.hub-heads {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-heads li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.hub-heads a {
  font-weight: 600;
}
.hub-when {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.hub-heads p {
  margin: 0.25rem 0 0;
}
.hub-all {
  margin: 0.5rem 0 0;
}
.hub-event {
  margin: 0.75rem 0 0;
  font-weight: 600;
}
/* bp: 1010 */
@media (max-width: 1009px) {
  .hub-heads li:nth-child(n + 4),
  .hub-heads p {
    display: none;
  }
}
/* bp: 1010 */
@media (min-width: 1010px) {
  .hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 32px;
    align-items: start;
  }
  .hub > * {
    grid-column: 1;
  }
  .hub > .hub-news {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 26px;
  }
}
.hub-class-grid {
  display: grid;
  /* 10rem (160 px at 100% text) holds Druid's four 32 px spec targets in one row, and two cards side by side on a
     390 px phone; at 200% text it is 320 px, so the cards stack instead of cutting a class name off (L-046) */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-class-grid li {
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
}
.hub-class {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.hub-class span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hub-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
}
.hub-specs a {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
}
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-card b {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
}
.hub-card span {
  color: var(--muted);
  font-size: 0.875rem;
}
.hub-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-strip a {
  display: inline-block;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hub-strip small {
  color: var(--muted);
}
.hub-changes summary {
  cursor: pointer;
}
/* The /contact/ mistake form (S-113). The Worker's 303 lands on #report-sent or
   #report-failed, and :target shows that note with no script; js/report.js writes its answer in .report-answer. */
.report-form label {
  display: block;
  font-weight: 600;
}
.report-form .opt {
  color: var(--muted);
  font-weight: 400;
}
.report-form input,
.report-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  padding: 0.5rem;
  border: 1px solid var(--line-ui);
  border-radius: 4px;
  background: var(--ink-1);
  color: var(--text);
  font: inherit;
}
.report-form .hint {
  display: block;
  max-width: 40rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875em;
}
.report-note {
  display: none;
}
.report-note:target {
  display: block;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--line-ui);
}
.report-form .btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}
.report-answer {
  scroll-margin-block: 0.75rem; /* a little air when scrollIntoView brings it up to the screen edge */
}
.report-answer:empty {
  display: none;
}
.report-answer.is-ok {
  color: var(--verd-ink);
}
.report-answer.is-bad {
  color: var(--rose-ink);
}

/* The Most Fun list (plan 2026-10-28): the preferences form, then each spec's profile card. */
.fun-form {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-1) 0 0;
}
.fun-form > .fun-h {
  margin: 0 0 -8px; /* the heading belongs to the help under it, so closer than the grid's gap */
}
/* The preferences come first in the page: above the chart and folded on a phone, beside it and open on a wide
   screen, so a change to a trait shows in the rows straight away. */
.fun-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin: var(--space-5) 0 var(--space-6);
}
.fun-main {
  min-width: 0;
}
.fun-main:focus {
  outline: none;
}
.fun-panel {
  padding: var(--space-4) 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-1);
}
.fun-panel > summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 32px;
  cursor: pointer;
}
/* A flex summary loses the browser's marker, so the fold draws its own chevron: down folded, up open. */
.fun-panel > summary::after {
  content: "";
  align-self: center;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 var(--space-1) 0 auto;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.fun-panel[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
@media (prefers-reduced-motion: no-preference) {
  .fun-panel > summary::after {
    transition: transform 0.15s;
  }
}
/* Styled as the heading it stands for: a heading inside a summary is lost (a summary is a button), so the real h2
   sits just before the panel, visually hidden. */
.fun-panel-h {
  font: 600 1.15rem / 1.2 var(--display);
  color: var(--head);
}
.fun-set {
  font-size: var(--label-6);
  font-weight: 400;
  color: var(--muted);
}
.fun-key {
  margin: 0 0 var(--space-4);
}
.fun-key .tl-close-mark {
  position: static; /* in the tiles it sits in a corner; here it is a word in the sentence */
  display: inline;
  font-size: inherit;
}
.fun-hint {
  margin: 0 0 var(--space-4);
}
.fun-main .no-match {
  min-height: 0;
}
.fun-chart {
  margin-top: 0;
}
.tier-pool {
  --t: var(--slate-fill);
}
/* Level with the first row of tiles, not halfway down a row that holds every spec. */
.tier-pool .tier-label {
  place-items: start center;
  padding-top: 2.75rem;
}
.fun-chart .tier-item {
  position: relative;
}
.fun-pool-note {
  margin: 0 0 var(--space-4);
}
/* A letter no spec reached stays as a slim row, so the scale reads S to F without a band of empty space. */
.fun-chart .tier-empty {
  min-height: 0;
}
.fun-chart .tier-empty .tier-label {
  font-size: 1.1rem;
  padding: var(--space-1) 0;
}
.fun-chart .tier-empty .tier-none {
  padding: var(--space-1) 1rem;
  font-size: var(--label-6);
}
.fun-side .fun-traits {
  gap: 0;
}
/* Each filter on one line: its name in a column, its pills beside it. */
.fun-filters .facet {
  display: block; /* a legend is never a flex or grid item, so it floats and the pills sit beside it */
}
.fun-filters .facet legend {
  float: left;
  width: 5.5rem;
  margin: 0;
  padding: var(--space-2) 0 0;
}
.fun-filters .facet .pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.fun-form .fun-filters .pill {
  min-height: 26px;
  padding: 2px 9px;
}
.fun-form .fun-filters .pill > span {
  font-size: var(--label-6);
}
/* bp: 900 */
@media (min-width: 900px) {
  .fun-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
    grid-template-areas: "main side";
    align-items: start;
  }
  .fun-main {
    grid-area: main;
  }
  /* Always open here (funlist.js), so the fold's heading has nothing to do; the form says what is set. */
  .fun-panel > summary {
    display: none;
  }
  .fun-form {
    margin: 0;
  }
  .fun-side {
    grid-area: side;
    position: sticky;
    top: calc(var(--mast-h) + 8px);
    max-height: calc(100vh - var(--mast-h) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: var(--space-1);
  }
  .fun-side .fun-traits {
    grid-template-columns: 1fr;
  }
}
.fun-filters > .fun-help,
.fun-filters > .facet {
  margin-top: var(--space-3);
}
.fun-h {
  font: 600 var(--label-5) / 1.2 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
}
.fun-traits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-4);
}
.fun-trait {
  margin: 0;
  padding: var(--space-4) 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.fun-trait > legend {
  float: left; /* a floated legend sits inside the fieldset, so the divider above it is the fieldset's */
  width: 100%;
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 600;
  font-size: var(--label-12);
  color: var(--head);
}
/* What the trait means, behind its "i": a button, not a hover title, so a phone and a keyboard reach it. */
/* Drawn at 18px so it sits with the legend's text; the ::after keeps the target 24px (WCAG 2.5.8). */
.fun-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: var(--space-1);
  padding: 0;
  border: 1px solid var(--line-ui);
  border-radius: 50%;
  background: var(--ink-1);
  font: italic 600 var(--label-1) / 1 var(--body);
  color: var(--muted);
  vertical-align: middle;
  cursor: pointer;
}
.fun-info::after {
  content: "";
  position: absolute;
  inset: -3px;
}
.fun-info[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--head);
}
.fun-what {
  clear: both;
  margin: 0 0 var(--space-2);
  font-size: var(--label-6);
  line-height: 1.35;
  color: var(--muted);
}
.fun-trait > .fun-scale {
  clear: both;
}
/* Any and the scale's steps as one segmented control; an at-least trait has one step fewer. */
.fun-scale {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
}
.fun-scale[data-n="2"] {
  grid-template-columns: 1.4fr repeat(2, 1fr);
}
.fun-scale[data-n="3"] {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.fun-scale[data-n="4"] {
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
.fun-form .fun-scale .pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  margin-left: -1px;
}
.fun-form .fun-scale .pill:first-child {
  margin-left: 0;
  border-radius: 6px 0 0 6px;
}
.fun-form .fun-scale .pill:last-child {
  border-radius: 0 6px 6px 0;
}
.fun-form .fun-scale .pill:has(input:checked) {
  position: relative; /* its gold ring over the neighbors' borders */
}
.fun-form .fun-scale .pill > span {
  font-size: var(--label-9);
}
/* The scale's two ends, and the word for the step picked between them. */
.fun-ends {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  margin: 3px 0 0;
  font-size: var(--label-1);
  line-height: 1.2;
  color: var(--muted);
}
.fun-ends > b {
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.fun-ends > :last-child {
  text-align: right;
}
.fun-weight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--label-6);
  color: var(--muted);
}
.fun-weight input {
  flex: 1;
  min-height: 24px; /* WCAG 2.5.8 */
  accent-color: var(--gold);
}
/* Only with "Adjust weights" on (funlist.js); then off, not gone, until its trait is set, so the row stays put and
   setting a trait moves nothing below it. */
.fun-form:not(.fun-weighted) .fun-weight {
  display: none;
}
.fun-adv {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 24px; /* WCAG 2.5.8 */
  font-size: var(--label-9);
  cursor: pointer;
}
.fun-adv input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
}
.fun-weight:has(input:disabled) {
  opacity: 0.45;
}
.fun-more > summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 32px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}
.fun-more > .fun-traits {
  margin-top: 0;
}
/* The heading on the left, the count and Reset on the right; they drop below it when the line is too short. */
.fun-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}
.fun-actions .fun-h {
  margin: 0 auto 0 0;
}
.fun-actions .fun-count {
  margin-left: auto;
  font-size: var(--label-6);
  color: var(--muted);
}
.fun-actions .btn {
  min-height: 28px;
  padding: 2px var(--space-3);
  font-size: var(--label-6);
}
.fun-weak {
  padding: var(--space-4) var(--space-4);
  border-left: 3px solid var(--amber-ink);
  background: var(--ink-2);
}
.fun-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.fun-spec {
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--line-2));
  border-radius: 8px;
  background: var(--ink-1);
}
.fun-spec-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.fun-spec-head h3 {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
}
.fun-fit {
  white-space: nowrap;
}
.fun-tags,
.fun-why {
  margin: var(--space-2) 0 0;
}
.fun-profile > summary {
  cursor: pointer;
  margin-top: var(--space-2);
}
.fun-table {
  width: 100%;
  margin-top: var(--space-2);
  font-size: var(--label-11);
}
.fun-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
}
@media print {
  /* Printed, the chart and the profiles carry the ranking. */
  .fun-layout {
    display: block;
  }
  .fun-side {
    display: none !important;
  }
}

/* A pet ability that opens a card (autolink.mark_pets): dotted, with a help cursor, so a reader can tell it does something. */
button.pab {
  text-decoration: underline dotted color-mix(in srgb, var(--gold-2) 55%, transparent);
  text-underline-offset: 0.2em;
  cursor: help;
}
button.pab:hover {
  text-decoration-style: solid;
}
#analytics-switch {
  min-height: 6rem;
  margin-bottom: 1rem;
}
/* /auction-house/ (AHB plan §12, D-382): the category list beside the results, the sortable table in its own scroll box,
   the house tabs along the bottom, quality-colored names. */
.ah-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
/* bp: 1010 */
@media (min-width: 1010px) {
  .ah-body {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
/* Categories: a disclosure on phones, the left-hand list from 1010 px, with or without script (D-382). */
.ah-catbox > summary {
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}
/* bp: 1010 */
@media (min-width: 1010px) {
  .ah-catbox > summary {
    display: none;
  }
  .ah-catbox::details-content {
    content-visibility: visible;
    display: block;
  }
}
.ah-cats ul {
  list-style: none;
  margin: 0;
  padding-left: var(--space-3);
}
.ah-cats [aria-current] {
  font-weight: 700;
  color: var(--strong);
}
.ah-results {
  min-width: 0; /* a long name scrolls inside the table's own box, never the page (320 px) */
}
.ah-results tbody td:first-child {
  text-align: right;
}
.ah-scroll {
  position: relative;
  overflow: auto;
  max-height: min(70vh, 38rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
}
.ah-scroll:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.ah-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.ah-scroll :is(th, td) {
  padding: var(--space-2) var(--space-3);
}
.ah-sort {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  min-height: 24px;
  cursor: pointer;
}
.ah-short {
  display: none;
}
.ah-dir {
  display: inline-block;
  min-width: 1em;
  margin-left: 0.25em;
}
.ah-itembar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
}
.ah-tabs {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
  border-top: 1px solid var(--line-ui);
}
.ah-tabs button {
  font: 600 var(--label-11) / 1 var(--label);
  color: var(--muted);
  background: var(--ink-1);
  border: 1px solid var(--line-ui);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: var(--space-3) var(--space-4);
  min-height: 2.75rem;
  cursor: pointer;
}
.ah-tabs button[aria-selected="true"] {
  background: color-mix(in srgb, var(--c) 30%, var(--ink-2));
  color: var(--pressed);
}
.ah-tabs button:disabled {
  opacity: 0.5;
  cursor: default;
}
/* Phase 3 (§12.4): the Rarity boxes and the favorite star before each name. */
.ah-rarity {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.ah-rarity .chk {
  flex-direction: row;
}
.ah-rarity legend {
  font: 600 var(--label-5) / 1 var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
  padding: 0 0 var(--space-2);
}
.ah-star {
  font: 1.1rem / 1 var(--label);
  color: var(--gold-2);
  background: none;
  border: 0;
  padding: 0;
  margin-right: var(--space-2);
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
} /* WCAG 2.5.8 */
.ah-star::before {
  content: "☆";
}
.ah-star[data-on="true"]::before {
  content: "★";
}
/* Phase 5 (§12.7): the name opens the item's auctions in place of the list. */
.ah-open {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  min-height: 24px;
  text-align: left;
  cursor: pointer;
}
.ah-open:hover > span {
  text-decoration: underline;
}
/* Phase 6 (§4.5): the price history under each house's auctions: lowest solid, median lighter and dashed. */
.ah-h svg {
  display: block;
  width: 100%;
  height: 7rem;
  overflow: visible;
}
.ah-h path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ah-ln {
  stroke: var(--gold);
}
.ah-md {
  stroke: var(--muted);
  stroke-dasharray: 4 3;
}
.ah-sub {
  width: 100%;
  font-size: 0.85rem;
}
.ah-sub :is(th, td) {
  padding: var(--space-1) var(--space-2);
}
.ah-ax {
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.ah-lg::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  margin-right: 0.3em;
  vertical-align: middle;
  border-top: 2px solid var(--gold);
}
.ah-lg.ah-md::before {
  border-top: 2px dashed var(--muted);
}
/* bp: 600 */
@media (max-width: 37.5rem) {
  /* One line per row, short heads, Name takes the spare width (D-382) */
  .ah-results td.ah-name {
    width: 100%;
  }
  .ah-results .ah-star {
    min-width: 2rem;
    min-height: 2.75rem;
    margin-right: 0;
  }
  .ah-results .ah-open {
    display: inline;
    min-height: 0;
  }
  .ah-results :is(.ah-open, .ah-star) {
    vertical-align: middle;
  }
  .ah-scroll :is(th, td) {
    padding: var(--space-2);
  }
  .ah-short {
    display: inline;
  }
  .ah-full {
    position: absolute;
    clip-path: inset(50%);
  }
}
/* The faction themes (S-175): the build adds this file to the end of site.css, so
   they cost no request of their own. Each overrides site.css's tokens under data-skin, which js/head-init.js sets from
   the reader's choice before first paint; a light-dark() pair then follows the mode as everywhere else. Only @media
   screen: print stays on the default light palette, with no art. A theme never touches the semantic colors: class and
   tree colors, item quality, tiers, profession kinds, the status inks and fills, the .fac-* chips, the tooltip card. */
@media screen {
  /* Alliance: Stormwind, white stone under royal blue and gold. Gold is too pale to read on a light page, so there
     it is a fill or a rule, and gold-colored text is bronze. */
  :root[data-skin="stormwind"] {
    --ink-0: light-dark(#f5f2e8, #0c1322);
    /* No lighter in dark: the client's red text (#ff2020) needs 4.5:1 on it. */
    --ink-1: light-dark(#ffffff, #10172c);
    --ink-2: light-dark(#f0ecdf, #172138);
    --ink-3: light-dark(#ece6d6, #1b2740);
    --line: light-dark(#c9c0a8, #34435f);
    --line-2: light-dark(#b7ac8f, #445577);
    --line-ui: light-dark(#7d7558, #6f80a6);
    --text: light-dark(#17203a, #e9ecf3);
    --muted: light-dark(#4a5468, #a9b3c9);
    --faint: light-dark(#525c70, #98a3ba);
    --head: light-dark(#14295a, #f3ead0);
    --strong: light-dark(#101830, #f6f7fb);
    --gold: light-dark(#6e5200, #d6b13c);
    --gold-2: light-dark(#1b4a9c, #8db2ff);
    --gold-dim: light-dark(#675a2c, #b09a54);
    --underline: light-dark(#5f7db8, #6e8fd0);
    --link-hover: light-dark(#0f2f6b, #c6d9ff);
    --head-link: light-dark(#10316d, #b8d0ff);
    --panel-a-light: 22%;
    --panel-a-dark: 20%;
    --pressed: light-dark(#101830, #f6f7fb);
    --mast-bg: light-dark(#14295a, #101d3f);
    --mast-line: #c9a227;
    --mast-edge: transparent;
    --mast-gold: #d6b13c;
    --mast-link-hover: #f1d99a;
    --thead-bg: light-dark(#14295a, #1f3161);
    --thead-text: #e0bf56;
    --thead-rule: inset 0 -2px 0 #c9a227;
    --wash-a: transparent;
    --wash-b: transparent;
    --gold-hi: light-dark(#c9a227, #d6b13c);
    --gold-lo: light-dark(#c9a227, #d6b13c);
    --on-gold: light-dark(#17203a, #0c1322);
    --on-gold-hover: light-dark(#000000, #000000);
    --gold-edge: light-dark(#6e5200, #f1d99a);
  }
  /* Horde: Orgrimmar, warm iron under deep red. Red is too dark to read on a dark page, so there it is a fill or a
     border, and red-colored text is ember. Warm neutrals, so the dark variant is not near-black plus one vermilion. */
  :root[data-skin="orgrimmar"] {
    --ink-0: light-dark(#f0e7d8, #110e0d);
    --ink-1: light-dark(#fbf6ec, #1b1716);
    --ink-2: light-dark(#f4ecdd, #211c1a);
    --ink-3: light-dark(#e6d9c4, #272120);
    --line: light-dark(#bfab90, #4b3e3a);
    --line-2: light-dark(#a99478, #5f4f49);
    --line-ui: light-dark(#81705a, #86756d);
    --text: light-dark(#221914, #eee5db);
    --muted: light-dark(#5b4c41, #b3a59a);
    --faint: light-dark(#5f4f44, #a29489);
    --head: light-dark(#3a120c, #f3e4cf);
    --strong: light-dark(#1a120e, #f7efe6);
    --gold: light-dark(#a51f16, #ff8566);
    --gold-2: light-dark(#9b1c13, #ff8566);
    --gold-dim: light-dark(#7f3a2a, #c98a73);
    --underline: light-dark(#a85a48, #b5614c);
    --link-hover: light-dark(#6a120b, #ffb6a0);
    --head-link: light-dark(#6f110b, #ffb097);
    --panel-a-light: 14%;
    --panel-a-dark: 24%;
    --pressed: light-dark(#1a120e, #fff4ec);
    --mast-bg: light-dark(#6b1510, #3a0f0b);
    --mast-line: light-dark(#3a0f0b, #a51f16);
    --mast-edge: transparent;
    --mast-gold: #ffb49c;
    --mast-link-hover: #fff4ec;
    --thead-bg: light-dark(#6b1510, #2e2422);
    --thead-text: #fbe6d4;
    --thead-rule: inset 0 -3px 0 light-dark(#a51f16, #ff8566);
    --wash-a: transparent;
    --wash-b: transparent;
    --gold-hi: light-dark(#a51f16, #b8301e);
    --gold-lo: light-dark(#a51f16, #b8301e);
    --on-gold: light-dark(#fff7ee, #ffffff);
    --on-gold-hover: light-dark(#ffffff, #ffffff);
    --gold-edge: light-dark(#6b1510, #ff8566);
  }
  /* The masthead is a dark band in either mode: its contents take the dark tokens, while .mast keeps the page's own
     scheme so the band itself can differ by mode. The theme menu opens from it and stays on the page's own scheme. */
  :root[data-skin] .mast-in > :not(.theme-pop),
  :root[data-skin] .mast2-in {
    color-scheme: dark;
    --gold-2: var(--mast-gold);
    --gold: var(--mast-gold);
    --link-hover: var(--mast-link-hover);
    --pressed: var(--mast-link-hover);
    --focus-ring: 2px solid var(--mast-gold);
  }
  /* A head's eyebrow in its class's or faction's color: lifted in dark, where the raw color reads too low on these
     raised surfaces and on the scene through the translucent panel. The chips and class names drawn on the page already do the same. */
  :root[data-skin] .eyebrow:not(.role .eyebrow) {
    color: light-dark(var(--c-ink), color-mix(in srgb, var(--c) 60%, white));
  }
  /* A table's head: light words on a dark band in either mode. The row keeps the page's scheme, and nothing below the
     head changes. Its rule is a shadow, not a border, so the row keeps its height. */
  :root[data-skin] thead th {
    --gold-2: var(--thead-text);
    --gold: var(--thead-text);
    --link-hover: #ffffff;
    --focus-ring: 2px solid #ffffff;
    box-shadow: var(--thead-rule);
  }
  /* The two heads that style their first cell apart from the rest (site.css: the pets table's sticky Beast cell on the
     page's own surface, the strengths table's green) keep the band's pair, so the cell is not light on light. */
  :root[data-skin] table.pets thead th:first-child {
    background: var(--thead-bg);
    color: var(--thead-text);
  }
  :root[data-skin] .pros-cons thead th:first-child {
    background: var(--thead-bg);
    color: var(--thead-text);
  }
}

/* The themes' art, all of it from the game client (tools/skin_art.py, docs/skin-art-provenance.md): the city itself on
   the home and 404 heads, the town outside its gates on every other head, the mission table's gold or iron trim on the
   chrome's edges and its crest header as the footer's seal. Art goes on the chrome only: the masthead's edge, the heads,
   the footer, the feature cards, the gaps between sections and the table head's rule. No table body, data card or
   running text carries any, and words never sit on the bare picture: a head's words keep a translucent panel of the default flat
   head color (as clear as WCAG AA allows, set per skin and mode), and the scene shows through and around it. None moves the layout: a head's background, or an absolutely placed
   pseudo-element in space the default look already leaves empty. Forced colors and print keep the default look. */
@media screen and (forced-colors: none) {
  /* The art block: the one place each file is named. Swap a picture here and in tools/skin_art.py's ART. */
  :root[data-skin="stormwind"] {
    --seal-h: 24px; /* the small seal, on every band but the footer's: it fits the 26 px gap above a section */
    --seal-ws: 66px;
    --art-crest: url("/img/skins/stormwind-crest.2fa2235464.webp");
    --art-city: url("/img/skins/stormwind-city.64b1aa9f3e.webp");
    --art-town: url("/img/skins/stormwind-town.06f65e3d5f.webp");
    --art-trim: url("/img/skins/stormwind-trim.e16129eff4.webp");
    --art-seal: url("/img/skins/stormwind-seal.5c40d8fb22.webp");
    --city-at: 100% 30%; /* the cathedral */
    --town-at: 100% 70%; /* the inn and the smithy */
    --seal-w: 110px;
  }
  :root[data-skin="orgrimmar"] {
    --seal-h: 24px;
    --seal-ws: 109px;
    --art-crest: url("/img/skins/orgrimmar-crest.b6ba9d8ce2.webp");
    --art-city: url("/img/skins/orgrimmar-city.0a0704b32d.webp");
    --art-town: url("/img/skins/orgrimmar-town.6b4254ae35.webp");
    --art-trim: url("/img/skins/orgrimmar-trim.96c5803e83.webp");
    --art-seal: url("/img/skins/orgrimmar-seal.8c7f6154c3.webp");
    --city-at: 60% 40%; /* Grommash Hold */
    --town-at: 100% 75%; /* the watchtower and the barracks */
    --seal-w: 182px;
  }
  /* A head: the scene, with the words on a panel of the flat head color and a mat around it at part strength.
     head-init.js fits the panel to the words (--panel, --panel-mat); until then, and without a script, it covers all
     but a thin frame, so no word ever sits on the bare picture. */
  :root[data-skin] .hero-in {
    --panel-ink: linear-gradient(var(--ink-2), var(--ink-2));
    --mat-ink: linear-gradient(
      color-mix(in srgb, var(--ink-2) 72%, transparent),
      color-mix(in srgb, var(--ink-2) 72%, transparent)
    );
    background:
      var(--panel-ink) var(--panel, 8px 8px / calc(100% - 16px) calc(100% - 16px)) no-repeat,
      var(--mat-ink) var(--panel-mat, 0 0 / 100% 100%) no-repeat,
      var(--scene, var(--art-town)) var(--scene-at, var(--town-at)) / cover no-repeat,
      var(--ink-2);
  }
  :root[data-skin] :is(.hero-home, .hero:has(.nf-search)) .hero-in {
    --scene: var(--art-city);
    --scene-at: var(--city-at);
  }
  :root[data-skin] .hero-in::after {
    background: var(--c);
  }
  /* Every head's panel lets the scene show through (owner, S-175): the share of the head color it keeps is the lowest
     at which every word on any head still passes against the art itself, found for each skin and mode on its own
     (--panel-a-light, --panel-a-dark, set with the skin's tokens; tests/browser/test_skins.py measures one page of
     each type at five widths, and fails when new art needs more). A --panel-alpha on the head overrides both: the
     measurement sets it, and reduced transparency sets it to 100%. Forced colors and print draw no scene at all. */
  :root[data-skin] .hero-in {
    --panel-ink: linear-gradient(
      light-dark(
        color-mix(in srgb, var(--ink-2) var(--panel-alpha, var(--panel-a-light)), transparent),
        color-mix(in srgb, var(--ink-2) var(--panel-alpha, var(--panel-a-dark)), transparent)
      ),
      light-dark(
        color-mix(in srgb, var(--ink-2) var(--panel-alpha, var(--panel-a-light)), transparent),
        color-mix(in srgb, var(--ink-2) var(--panel-alpha, var(--panel-a-dark)), transparent)
      )
    );
  }
  /* The head's muted and faint words (the note, the date, a tier list's meta line, the 404 label) are the page's
     weakest ink, and the panel they sit on is the part of the page with the least solid ground. Inside it they take
     the skin's own text color at part strength, so each keeps the skin's hue and reads one step under the body. Its
     links take a deeper (light) or paler (dark) step of the skin's link color, --head-link, for the same reason. */
  :root[data-skin] .hero-in {
    --muted: color-mix(in srgb, var(--text) 80%, var(--ink-2));
    --faint: color-mix(in srgb, var(--text) 80%, var(--ink-2));
    --gold-2: var(--head-link);
  }
  /* The same for a head's eyebrow in dark, where the scene behind the panel is the brightest thing under it. */
  :root[data-skin] .hero-in .eyebrow:not(.role .eyebrow) {
    color: light-dark(var(--c-ink), color-mix(in srgb, var(--c) 40%, white));
  }
  @media (prefers-reduced-transparency: reduce) {
    :root[data-skin] .hero-in {
      --panel-alpha: 100%;
    }
  }

  /* The share buttons float over the head's top corner, where the scene can show: each keeps a solid disc of the head
     color, so its mark has the default look's contrast whatever is behind it. */
  :root[data-skin] .share-hero .icon-btn {
    background: var(--ink-2);
  }
  /* The crest takes the sigil's box, so the masthead keeps its size whether or not the picture has loaded. */
  :root[data-skin] .mast .sigil {
    transform: scale(1.2);
  }
  :root[data-skin] .mast .sigil > * {
    visibility: hidden;
  }
  :root[data-skin="stormwind"] .mast .sigil {
    background: var(--art-crest) center / contain no-repeat;
  }
  /* Its red would sink into the red band, so it sits on a pale disc. */
  :root[data-skin="orgrimmar"] .mast .sigil {
    background: var(--art-crest) center / 20px no-repeat #f0e2c8;
    border-radius: 50%;
  }
  /* The trim: under the masthead, in the gap between two sections, along the footer's top edge and in the bottom padding of a table head. */
  :root[data-skin] .mast::after,
  :root[data-skin] main :not(.cols) > .sec + .sec::before,
  :root[data-skin] .foot::before,
  :root[data-skin] thead th:not(:has(svg, img))::after {
    content: "";
    position: absolute;
    background: var(--art-trim) 0 50% / auto 100% repeat-x;
    pointer-events: none;
  }
  :root[data-skin] .mast::after {
    inset: calc(100% + 1px) 0 auto;
    height: 9px;
  }
  :root[data-skin] main :not(.cols) > .sec + .sec,
  :root[data-skin] .foot {
    position: relative;
  }
  :root[data-skin] main :not(.cols) > .sec + .sec::before {
    inset: -19px 0 auto;
    height: 8px;
  }
  /* A table head that sticks on a wide screen is already positioned; :where() keeps that rule winning. */
  :where(:root[data-skin]) thead th {
    position: relative;
  }
  :root[data-skin] thead th:not(:has(svg, img)) {
    box-shadow: none;
  }
  :root[data-skin] thead th:not(:has(svg, img))::after {
    inset: auto 0 0;
    height: 5px;
  }
  /* The footer: the trim on its top edge, and the crest header over it as a seal, in the gap above. */
  :root[data-skin] .foot::before {
    inset: -5px 0 auto;
    height: 9px;
  }
  :root[data-skin] .foot::after {
    content: "";
    position: absolute;
    top: -26px;
    left: calc(50% - var(--seal-w) / 2);
    width: var(--seal-w);
    height: 40px;
    background: var(--art-seal) center / contain no-repeat;
    pointer-events: none;
  }
  /* The crest on the rule (S-175, 10 Nov): the footer's seal, smaller, centered on the other thick gold bands: under the
     masthead and between two sections. Never on a thin line (the pager's, a Where next block's, a spec's 1 to 3 px
     border; owner, 10 Nov), a card, a tab bar, a table or list row or a rule inside the footer. --seal-at is the
     band's own middle, measured from the top of the element that holds it. Decorative: a background on a
     pseudo-element, no pointer events. */
  :root[data-skin] .mast::before,
  :root[data-skin] :is(main :not(.cols) > .sec + .sec)::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: calc(var(--seal-at) - var(--seal-h) / 2);
    left: calc(50% - var(--seal-ws) / 2);
    width: var(--seal-ws);
    height: var(--seal-h);
    background: var(--art-seal) center / contain no-repeat;
    pointer-events: none;
  }
  /* 60% size, 3 px lower: clear of row 1's controls */
  :root[data-skin] .mast::before {
    --seal-at: calc(100% + 3px);
    top: calc(var(--seal-at) - var(--seal-h) * 0.3);
    width: calc(var(--seal-ws) * 0.6);
    height: calc(var(--seal-h) * 0.6);
  }
  /* The Horde seal is red art and sinks into the red band, as the sigil does: a pale rim lifts it. */
  :root[data-skin="orgrimmar"] .mast::before {
    filter: drop-shadow(0 0 1px #f0e2c8) drop-shadow(0 0 1px #f0e2c8) drop-shadow(0 0 3px #f0e2c8);
  }
  :root[data-skin] main :not(.cols) > .sec + .sec::after {
    --seal-at: -14px; /* its top is the section's 26 px gap's top: it never enters the section above */
  }
  /* Buttons: a round-headed door in Stormwind, a squared plank in Orgrimmar. */
  :root[data-skin="stormwind"] .btn {
    border-radius: 14px 14px 3px 3px;
  }
  :root[data-skin="orgrimmar"] .btn {
    border-radius: 2px;
  }
  /* Stitched note boxes in Orgrimmar. */
  :root[data-skin="orgrimmar"] .callout {
    outline: 1px dashed var(--line-ui);
    outline-offset: -5px;
  }
}
/* A phone takes the scene's smaller cut, centered on the same building, and a thinner panel edge, as its head keeps
   only half the padding. */
/* bp: 600 */
@media screen and (forced-colors: none) and (max-width: 599.98px) {
  :root[data-skin="stormwind"] {
    --art-city: url("/img/skins/stormwind-city-s.eb669af785.webp");
    --art-town: url("/img/skins/stormwind-town-s.0254d7115c.webp");
  }
  :root[data-skin="orgrimmar"] {
    --art-city: url("/img/skins/orgrimmar-city-s.723fc24b9a.webp");
    --art-town: url("/img/skins/orgrimmar-town-s.fce1fd300a.webp");
    --city-at: 50% 40%;
  }
  :root[data-skin] {
    --panel-ring: 6px;
  }
  /* The seals are smaller still, so one never crowds a line of text at 390 px, and the masthead's hangs lower, clear of
     the buttons in its bar. */
  :root[data-skin] .mast::before {
    --seal-at: calc(100% + 5px);
  }
  :root[data-skin="stormwind"] {
    --seal-h: 20px;
    --seal-ws: 55px;
  }
  :root[data-skin="orgrimmar"] {
    --seal-h: 20px;
    --seal-ws: 91px;
  }
}

/* "Choose your faction" (S-175): the same choice as the footer's Faction control, in the home head's bottom-right corner, as far
   in from the corner as the share icons are from the top-right one (26 px from the head's edge, and 28 px from the page's side).
   It sits outside .hero-in so the scene's panel is not fitted around it, and it sits on a solid box of its own, its label above the three choices. A radio
   group: the inputs are hidden and each label is a segment. On a narrow head the space for it is reserved under the
   search row, so nothing moves when it appears. Without a script it is hidden (data-js).
   Every offset is in rem and the head is a size container asked in rem, so the offsets and the reserved space grow with
   the text (WP-6, L-02): a media query's rem is the browser's own size, not the page's, so it could not see a larger
   root font. On a very narrow head, or at very large text, the picker stops being an overlay and sits under the
   search row. */
.hub-hero {
  position: relative;
  container: hub-hero / inline-size;
}
.side-pick {
  position: absolute;
  right: 1.75rem;
  bottom: 1.625rem;
  z-index: 1;
  box-sizing: border-box;
  margin: 0;
  padding: 0.25rem 0.375rem 0.375rem;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
}
.side-pick legend {
  display: block;
  float: left;
  clear: both;
  padding: 0;
  margin: 0 0 4px;
  font: 600 var(--label-5) / 20px var(--label-caps);
  text-transform: uppercase;
  letter-spacing: var(--track-5);
  color: var(--muted);
}
.side-seg {
  display: flex;
  clear: both;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--line-ui);
  border-radius: 8px;
}
.side-seg label {
  display: flex;
  position: relative;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 1.875rem;
  padding: 0 var(--space-4);
  font: 600 var(--label-11) / 1 var(--label);
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--ink-1);
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.side-seg label:last-child {
  border-right: 0;
}
.side-seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
/* The checked segment also follows <html data-skin>, which head-init.js sets before first paint: the radios are
   checked at DOMContentLoaded, and until then the right segment already shows (L-24). */
.side-seg label:has(input:checked),
:root:not([data-skin]) .side-seg label:has(input[value="default"]),
:root[data-skin="stormwind"] .side-seg label:has(input[value="stormwind"]),
:root[data-skin="orgrimmar"] .side-seg label:has(input[value="orgrimmar"]) {
  background: color-mix(in srgb, var(--gold) 30%, var(--ink-2));
  color: var(--pressed);
}
.side-seg label:has(input:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: -3px;
}
/* 67.5rem is the old 1080 px. Under it the space is reserved. At 17rem or less of head width the picker is in flow
   below the head's panel instead, so nothing is reserved. The container is the head's content box (the page's side
   padding is gone from it): a 320 px phone at normal size is 18rem, the line it must stay above (the phone's first
   400 px of text, test_mobile_fold, has no room for a picker in flow), and the segments wrap to three rows from about
   16rem, which 6.5rem cannot hold. */
@container hub-hero (17rem < width <= 67.5rem) {
  :root.js:not([data-side-gone]) .hero-home.hub-hero .hero-in {
    padding-bottom: 6.5rem;
  }
}
/* Up to 30rem of head (a phone) the reserve is smaller and the picker sits lower: the first 400 px must hold the first
   headline (S-096, test_mobile_fold). */
@container hub-hero (17rem < width <= 30rem) {
  :root.js:not([data-side-gone]) .hero-home.hub-hero .hero-in {
    padding-bottom: 5.25rem;
  }
  .side-pick {
    bottom: 0.5rem;
  }
}
@container hub-hero (width <= 17rem) {
  .side-pick {
    position: relative;
    inset: auto;
    max-width: none;
    margin: 0.75rem 1rem 1rem auto;
    width: fit-content;
  }
}
/* Dismissed: gone before first paint (head-init.js marks <html>), and its reserved space with it. */
:root[data-side-gone] .side-pick {
  display: none;
}
.side-x {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: 400 1.25rem / 24px var(--label);
  text-align: center;
  cursor: pointer;
}
.side-x:hover {
  color: var(--pressed);
}
.side-x:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}
@media (forced-colors: active) {
  .side-pick,
  .side-seg {
    border-color: CanvasText;
  }
  .side-seg label:has(input:checked) {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .side-x {
    color: ButtonText;
  }
  .side-seg label:has(input:focus-visible) {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }
}
@media print {
  .side-pick {
    display: none;
  }
}
