/* wgf-transmog-sets.css - /transmog-sets/ + /transmog-set/<slug>-<id>/ only.
 *
 * Linked through transmog_app's extra_css seam; nothing else pulls it, so every selector here
 * is safe to keep short. It exists because the transmog family shipped markup that NO sheet
 * styled: `.wgf-loot-grid` / `.wgf-loot-tile` (the piece grid) and `.wgf-stat-chip` (the meta
 * chips) are declared in no stylesheet the page links, so 4,904 pages rendered their primary
 * content as an unstyled list. The grid is rebuilt here as `.wgf-tmset-pieces`.
 *
 * Palette: tokens from static/css/_tokens.css only - near-black slate plates, bronze/gold
 * rules, parchment text, item-quality colours. No green chrome, no gradients, no glows.
 */

/* ── identity header: set icon in the client's metal quality ring ─────────────────────── */
.wgf-tmset-hero__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wgf-tmset-hero__frame {
  flex: 0 0 auto;
  line-height: 0;
}
.wgf-tmset-hero__text {
  flex: 1 1 260px;
  min-width: 0;
}
.wgf-tmset-hero .wgf-seo-h1.q-uncommon  { color: var(--q-uncommon); }
.wgf-tmset-hero .wgf-seo-h1.q-rare      { color: var(--q-rare); }
.wgf-tmset-hero .wgf-seo-h1.q-epic      { color: var(--q-epic); }
.wgf-tmset-hero .wgf-seo-h1.q-legendary { color: var(--q-legendary); }
.wgf-tmset-hero .wgf-seo-h1.q-artifact,
.wgf-tmset-hero .wgf-seo-h1.q-heirloom  { color: var(--q-artifact); }

/* ── piece grid ───────────────────────────────────────────────────────────────────────── */
.wgf-tmset-pieces {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.wgf-tmset-piece {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  background: var(--wgf-well);
  border: 1px solid var(--wgf-border-neutral);
  border-left: 2px solid var(--wgf-metal);
  min-width: 0;
}
.wgf-tmset-piece__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: block;
  border: 1px solid var(--wgf-metal);
  background: var(--wgf-well-edge);
}
.wgf-tmset-piece__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wgf-tmset-piece__name {
  font-weight: 600;
  text-decoration: none;
  color: var(--wgf-text);
  overflow-wrap: anywhere;
}
a.wgf-tmset-piece__name:hover,
a.wgf-tmset-piece__name:focus-visible { text-decoration: underline; }
.wgf-tmset-piece__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--wgf-neutral-text);
}
.wgf-tmset-piece__slot {
  color: var(--wgf-gold-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
}
.wgf-tmset-piece__src a { color: var(--wgf-gold-link); }

/* Item-quality colours, the client's own ramp. Uncommon green is item quality, not chrome. */
.q-poor      { color: var(--q-poor); }
.q-common    { color: var(--q-common); }
.q-uncommon  { color: var(--q-uncommon); }
.q-rare      { color: var(--q-rare); }
.q-epic      { color: var(--q-epic); }
.q-legendary { color: var(--q-legendary); }
.q-artifact,
.q-heirloom  { color: var(--q-artifact); }
a.q-poor      { color: var(--q-poor); }
a.q-common    { color: var(--q-common); }
a.q-uncommon  { color: var(--q-uncommon); }
a.q-rare      { color: var(--q-rare); }
a.q-epic      { color: var(--q-epic); }
a.q-legendary { color: var(--q-legendary); }
a.q-artifact  { color: var(--q-artifact); }

/* ── cohort rail ──────────────────────────────────────────────────────────────────────── */
.wgf-tmset-cohort {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wgf-tmset-cohort__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  background: var(--wgf-panel-1);
  border: 1px solid var(--wgf-border-neutral);
  text-decoration: none;
  color: var(--wgf-text);
  min-width: 0;
}
.wgf-tmset-cohort__row:hover,
.wgf-tmset-cohort__row:focus-visible {
  border-color: var(--wgf-border-strong);
  background: var(--wgf-panel-2);
}
.wgf-tmset-cohort__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: block;
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-well-edge);
}
.wgf-tmset-cohort__name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--wgf-gold-link);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wgf-tmset-cohort__meta {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--wgf-neutral-text);
}

/* ── hub: the icon grid keeps the shared .wgf-ag-card chrome; only the art strip is ours ── */
.wgf-tmset-hubart {
  margin: 0 0 14px;
  border: 1px solid var(--wgf-metal);
  background: var(--wgf-well-edge);
  line-height: 0;
}
.wgf-tmset-hubart img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}
.wgf-tmset-hubart figcaption {
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--wgf-neutral-text);
  background: var(--wgf-panel-1);
  border-top: 1px solid var(--wgf-metal-soft);
}

@media (max-width: 600px) {
  .wgf-tmset-pieces,
  .wgf-tmset-cohort { grid-template-columns: 1fr; }
}

/* ══ HUB: the header page (2026-09-03) ═════════════════════════════════════════════════════
   /transmog-sets/ measured 1,287,846 bytes, 20,083 visible words, 2,431 images and ZERO
   tables: one alphabetical run of 2,608 identical cards under a single header. Everything
   below is the spine that made it readable - a counted strip, an expansion table, a
   largest-sets rail, chip filters and the catalogue grouped into collapsible expansions.
   Tokens only (near-black slate, bronze rules, parchment text). No green, no gradients,
   no glows, no rounded pills.
   ────────────────────────────────────────────────────────────────────────────────────── */

/* counted facts */
.wgf-tmset-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 14px;
}
.wgf-tmset-stat {
  padding: 10px 12px;
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-well);
}
.wgf-tmset-stat__n {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--wgf-gold-link);
  font-variant-numeric: tabular-nums;
}
.wgf-tmset-stat__k {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--wgf-neutral-text);
}

/* the expansion table. Its own table rather than the shared M29 primitive on purpose:
   wgf-data-table.css sets .wgf-table-wrap{display:none} under 680px and expects a duplicate
   .wgf-card-list beside it, so borrowing it here would have doubled the markup or blanked
   the table on every phone. This one just scrolls. */
.wgf-tmset-xt-wrap { overflow-x: auto; }
.wgf-tmset-xt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wgf-tmset-xt th,
.wgf-tmset-xt td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--wgf-metal-soft);
}
.wgf-tmset-xt thead th {
  color: var(--wgf-neutral-text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--wgf-metal);
  white-space: nowrap;
}
.wgf-tmset-xt tbody tr:last-child th,
.wgf-tmset-xt tbody tr:last-child td { border-bottom: 0; }
.wgf-tmset-xt tbody tr:nth-child(even) { background: var(--wgf-well); }
.wgf-tmset-xt__name { color: var(--wgf-text); font-weight: 600; white-space: nowrap; }
.wgf-tmset-xt__n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--wgf-text);
  white-space: nowrap;
}
.wgf-tmset-xt__set { min-width: 200px; }
.wgf-tmset-xt__go { text-align: right; white-space: nowrap; }
.wgf-tmset-xt__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* icon + name, used by the table and the rail */
.wgf-tmset-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-decoration: none;
}
.wgf-tmset-cell .wgf-ag-card__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--wgf-metal-soft);
}
.wgf-tmset-cell__name {
  color: var(--wgf-gold-link);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wgf-tmset-cell:hover .wgf-tmset-cell__name,
.wgf-tmset-cell:focus-visible .wgf-tmset-cell__name { text-decoration: underline; }

/* largest-sets rail */
.wgf-tmset-top {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.wgf-tmset-top__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-well);
  min-width: 0;
}
.wgf-tmset-top__row .wgf-tmset-cell { flex: 1 1 auto; min-width: 0; }
.wgf-tmset-top__meta {
  flex: 0 1 auto;
  font-size: 11px;
  color: var(--wgf-neutral-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wgf-tmset-top__n {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--wgf-muted);
  font-variant-numeric: tabular-nums;
}

/* chip filters. Buttons, not links: they filter what is already on the page. */
.wgf-tmset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
}
.wgf-tmset-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  color: var(--wgf-text);
  background: var(--wgf-well);
  border: 1px solid var(--wgf-metal-soft);
  cursor: pointer;
}
.wgf-tmset-chip:hover,
.wgf-tmset-chip:focus-visible {
  border-color: var(--wgf-metal);
  color: var(--wgf-gold-link);
}
.wgf-tmset-chip__n {
  font-size: 11px;
  color: var(--wgf-neutral-text);
  font-variant-numeric: tabular-nums;
}
.wgf-tmset-chip__icon {
  width: 18px;
  height: 18px;
  border: 1px solid var(--wgf-metal-soft);
}
.wgf-tmset-count {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--wgf-neutral-text);
  min-height: 1em;
}

/* the catalogue, grouped */
.wgf-tmset-group {
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-well);
  margin: 8px 0 0;
}
.wgf-tmset-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  cursor: pointer;
  list-style: none;
}
.wgf-tmset-group__head::-webkit-details-marker { display: none; }
.wgf-tmset-group__head::before {
  content: "+";
  margin-right: 7px;
  color: var(--wgf-muted);
  font-variant-numeric: tabular-nums;
}
.wgf-tmset-group[open] > .wgf-tmset-group__head::before { content: "2"; }
.wgf-tmset-group__name {
  flex: 1 1 auto;
  color: var(--wgf-gold-link);
  font-weight: 600;
}
.wgf-tmset-group__n {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--wgf-neutral-text);
  font-variant-numeric: tabular-nums;
}
.wgf-tmset-group > .wgf-ag-grid { padding: 0 11px 11px; }

/* out-links */
.wgf-tmset-rel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wgf-tmset-rel li {
  padding: 7px 9px;
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-well);
}
.wgf-tmset-rel__d {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--wgf-neutral-text);
}

@media (max-width: 600px) {
  .wgf-tmset-top { grid-template-columns: 1fr; }
  .wgf-tmset-top__meta { display: none; }
  .wgf-tmset-stat__n { font-size: 19px; }
}

/* .wgf-xlink is the cross-link class transmog_render.facts_table, the Related rail and the
   expansion table all emit, and NO sheet this family links declares it - grep-verified across
   assets/*.css, where the only .wgf-xlink rule is scoped to #cpc in
   wgf-classic-plus-copium.css. There is also no base `a` colour in wgf-site-shell.css /
   wgf-chrome.css / wgf-seo-pages.css, so every one of those links rendered in the browser's
   default blue-and-purple on a near-black plate. Declared here, the way every other family
   sheet declares its own link colour. */
.wgf-tmset-xt a.wgf-xlink,
.wgf-tmset-rel a.wgf-xlink,
.wgf-ifacts a.wgf-xlink {
  color: var(--wgf-gold-link);
  text-decoration: none;
}
.wgf-tmset-xt a.wgf-xlink:hover,
.wgf-tmset-xt a.wgf-xlink:focus-visible,
.wgf-tmset-rel a.wgf-xlink:hover,
.wgf-tmset-rel a.wgf-xlink:focus-visible,
.wgf-ifacts a.wgf-xlink:hover,
.wgf-ifacts a.wgf-xlink:focus-visible { text-decoration: underline; }
