/* wgf-dungeons.css - the Adventure Guide pages (/dungeons/ + /dungeon/<slug>-<id>/).
   Owner: dungeons_app.py / dungeons_render.py (page-lane sheet, 2026-09-03).

   Replaces the two inline <style> blocks the module used to print into the shell, one of
   which carried the last hardcoded greens on this page family (the .wgf-dt--n pill pair).
   Everything below is palette tokens (docs/ui-ux/17-blizzard-palette.md) plus real client
   nine-slice art from assets/ui/; there is no colour literal and no green in this file.

   Difficulty pills read as a bronze->gold ladder (LFR muted, Mythic full gold) because that
   is what the client's own difficulty chrome does: brighter metal for higher difficulty. */

/* ── difficulty pills ──────────────────────────────────────────────────────────────── */

.wgf-diff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 3px;
}

.wgf-dt {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-well);
  color: var(--wgf-neutral-text);
}
.wgf-dt--lfr { color: var(--wgf-muted); }
.wgf-dt--n   { color: var(--wgf-text); }
.wgf-dt--h   { color: var(--wgf-gold-muted); border-color: var(--wgf-metal); }
.wgf-dt--m   { color: var(--wgf-gold); border-color: var(--wgf-gold-accent); }
.wgf-dt--o   { color: var(--wgf-neutral-text); }

.wgf-dg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  font-size: 12px;
  color: var(--wgf-muted);
}
.wgf-dg-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── detail hero: the Adventure Guide art plate beside the identity ────────────────── */

.wgf-dg-hero--art {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-4);
}
.wgf-dg-hero__id { flex: 1 1 320px; min-width: 0; }

.wgf-dg-hero__art {
  position: relative;
  flex: 0 0 auto;
  width: 288px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wgf-metal);
  background: var(--wgf-well);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
}
.wgf-dg-hero__art img {
  display: block;
  width: 100%;
  height: auto;
}
/* real client window corners (assets/ui/ui-frame-metal-corner*-2x.png), the same four
   slices .gw-corner uses - so the plate is framed in the game's own metal, not a CSS box */
.wgf-dg-hero__art::before,
.wgf-dg-hero__art::after {
  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}
.wgf-dg-hero__art::before {
  top: -6px;
  left: -6px;
  background-image: url("/assets/ui/ui-frame-metal-cornertopleft-2x.png");
}
.wgf-dg-hero__art::after {
  bottom: -6px;
  right: -6px;
  background-image: url("/assets/ui/ui-frame-metal-cornerbottomright-2x.png");
}

.wgf-dg-title {
  font-family: "FrizQT", "Friz Quadrata TT", Georgia, "Times New Roman", serif;
}

.wgf-dg-lore {
  margin: var(--space-3) 0 0;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--wgf-gold-muted);
}

/* ── quick facts ───────────────────────────────────────────────────────────────────── */

.wgf-dg-facts {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.wgf-dg-facts th,
.wgf-dg-facts td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--wgf-border-neutral-soft);
}
.wgf-dg-facts th {
  width: 34%;
  font-weight: 700;
  color: var(--wgf-neutral-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11.5px;
}
.wgf-dg-facts td { color: var(--wgf-text); }
.wgf-dg-facts tr:last-child th,
.wgf-dg-facts tr:last-child td { border-bottom: 0; }

/* ── encounter jump rail ───────────────────────────────────────────────────────────── */

.wgf-dg-bossnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.wgf-dg-bossnav__cell {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--wgf-metal-soft);
  background: var(--wgf-panel-1);
  color: var(--wgf-text);
  text-decoration: none;
  font-size: 13px;
  transition: border-color var(--motion-fast) var(--ease-standard);
}
.wgf-dg-bossnav__cell:hover,
.wgf-dg-bossnav__cell:focus-visible {
  border-color: rgba(var(--wgf-gold-rgb), .55);
  color: var(--wgf-gold-bright);
}
.wgf-dg-bossnav__cell:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wgf-dg-bossnav__meta {
  font-size: 11px;
  color: var(--wgf-neutral-text);
}

/* ── hub art strip ─────────────────────────────────────────────────────────────────── */

.wgf-dg-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  margin: var(--space-3) 0 var(--space-1);
  border: 1px solid var(--wgf-metal);
  background: var(--wgf-well);
  padding: 2px;
}
.wgf-dg-strip__cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 104px;
  padding: 8px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--wgf-text);
  box-shadow: inset 0 -46px 42px -30px rgba(0, 0, 0, .92);
}
.wgf-dg-strip__cell span {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}
.wgf-dg-strip__cell:hover span,
.wgf-dg-strip__cell:focus-visible span { color: var(--wgf-gold-bright); }
.wgf-dg-strip__cell:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wgf-dg-strip__credit {
  margin: 0 0 var(--space-3);
  font-size: 11px;
  color: var(--wgf-neutral-text);
}

/* ── cards: the meta line under a tile name, and the tighter cohort rail ───────────── */

.wgf-dg-card__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--wgf-neutral-text);
}
.wgf-ag-grid--rail {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

@media (max-width: 640px) {
  .wgf-dg-hero__art { width: 100%; }
  .wgf-dg-facts th { width: 42%; }
}
