/* wgf-ah-page.css - furniture for the two HAND-AUTHORED Auction House pages
   (/wow-auction-house/ and /wow-auction-house/deals/). Created 2026-09-03 by the
   static:wow-auction-house lane.

   Scope, so this file never grows into a second AH stylesheet:
     - the app chrome (toolbar, table, sidebar, rows) stays in assets/ah/base.css;
     - the deal finder's own controls stay in assets/ah-deals.css;
     - every TEXTURE comes from assets/wgf-blizzard-textures.css (.wgf-tex-*) and every
       nine-slice control from assets/wgf-chrome.css (.wgf-navbtn, .wgf-qborder,
       .wgf-btn-red). This file declares NO new art path and NO new colour literal -
       only layout, and only for the header band, the hub rails, and the prose block
       that used to carry an inline style attribute.

   Palette: tokens only (static/css/_tokens.css after the 2026-09-02 green purge).
   No gradients, no glows, no green chrome. */

/* ---------------------------------------------------------------------------
   The header band. A real in-game surface (marble fill + the classic
   UI-Tooltip-Border nine-slice, both from the textures sheet) carrying the page
   title and one Blizzard icon in the achievement ring.
   --------------------------------------------------------------------------- */
/* Kept low-profile on purpose: wgf-site-shell.css trims this page's header so the
   browser fills the viewport, and the band must not undo that. */
.wgf-ah-band {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
}

.wgf-ah-band__crest {
  flex: 0 0 auto;
}

.wgf-ah-band__text {
  min-width: 0;
}

.wgf-ah-band h1 {
  margin: 0;
  font-family: var(--font-game);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--tex-gold);
}

.wgf-ah-band__sub {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--tex-ink-muted);
}

.wgf-ah-band__meta {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--tex-ink-dim);
}

@media (max-width: 599px) {
  .wgf-ah-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------------------------------------------------------------------------
   Inline 16px art: the client's own star on the Tracked Items control, and the
   datamined icons on the quicklink chips. Square, bronze-ruled, never a glyph.
   --------------------------------------------------------------------------- */
.wgf-ah-icon16 {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  vertical-align: -3px;
  border: 1px solid var(--wgf-gold-dark);
  object-fit: cover;
}

.ah-filter-button .wgf-ah-icon16,
.wgf-ah-quicklinks .wgf-ah-icon16 {
  margin-right: var(--space-1);
}

/* ---------------------------------------------------------------------------
   Hub rails. .wgf-navbtn is the client's own auctionhouse-nav-button plate
   (wgf-chrome.css); here it is laid out as a wrapping grid instead of the
   vertical .wgf-navrail, and each button carries a real datamined icon in the
   achievement ring (img.wgf-tex-icon-frame).
   --------------------------------------------------------------------------- */
.wgf-ah-hubs {
  max-width: 940px;
  margin: 0 auto var(--space-4);
  padding: 0 var(--space-3);
}

.wgf-ah-hubs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--wgf-gold-dark);
}

.wgf-ah-hubs__head h2 {
  margin: 0;
  font-family: var(--font-game);
  font-size: var(--text-lg);
  line-height: 1.2;
  color: var(--wgf-gold);
}

.wgf-ah-hubs__note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--wgf-muted);
}

.wgf-ah-hubs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The plate is .wgf-navbtn; only the icon slot and the two-line label are new. */
.wgf-ah-hubs .wgf-navbtn {
  gap: var(--space-2);
  min-height: 56px;
  text-decoration: none;
}

.wgf-ah-hubs .wgf-navbtn:hover,
.wgf-ah-hubs .wgf-navbtn:focus-visible {
  text-decoration: none;
}

.wgf-ah-hubs .wgf-tex-icon-frame {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.wgf-ah-hubs__label {
  display: block;
  min-width: 0;
}

.wgf-ah-hubs__sub {
  display: block;
  font-size: var(--text-xs);
  font-variant: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--wgf-muted);
}

/* ---------------------------------------------------------------------------
   The prose block. Replaces the inline style attribute the page carried
   (max-width / margin / padding / line-height / a hardcoded ink colour).
   --------------------------------------------------------------------------- */
.wgf-ah-prose {
  max-width: 940px;
  margin: var(--space-5) auto 0;
  padding: var(--space-3) var(--space-3) 0;
  line-height: 1.65;
  color: var(--wgf-text);
}

.wgf-ah-prose h2,
.wgf-ah-prose h3 {
  font-family: var(--font-game);
  color: var(--wgf-gold);
}

.wgf-ah-prose h2 { font-size: var(--text-xl); line-height: 1.2; }
.wgf-ah-prose h3 { font-size: var(--text-md); line-height: 1.3; margin-top: var(--space-4); }

.wgf-ah-prose a { color: var(--wgf-gold-link); }

/* A definition list of the facts the page states, on the client's tooltip surface. */
.wgf-ah-facts {
  display: grid;
  grid-template-columns: minmax(140px, max-content) minmax(0, 1fr);
  gap: var(--space-1) var(--space-3);
  margin: var(--space-3) 0 0;
  padding: var(--space-3);
  font-size: var(--text-sm);
}

.wgf-ah-facts dt {
  margin: 0;
  font-family: var(--font-game);
  color: var(--tex-gold);
}

.wgf-ah-facts dd {
  margin: 0;
  color: var(--tex-ink);
}

@media (max-width: 599px) {
  .wgf-ah-facts { grid-template-columns: minmax(0, 1fr); }
  .wgf-ah-facts dd { margin-bottom: var(--space-2); }
}
