/* wgf-trading-post.css - page-scoped styling for /trading-post/ (trading_post_render.py).

   Palette: the Blizzard tokens only (docs/ui-ux/17-blizzard-palette.md) - near-black slate
   panels #0d0f14 / #14161c, bronze/gold rules #6e5a2a / #b7912f, gold #ffd100, parchment
   #f4ecd8, muted #9d9d9d. No green chrome, no gradients, no glows. Item-quality colour comes
   from wgf-item-card.css (.q-*); the metal quality rings come from wgf-chrome.css
   (.wgf-qborder, /assets/ui/auctionhouse-itemicon-border-*.png) - neither is redefined here.
   Everything below is layout for elements only this page emits. */

/* --- header art strip: the costliest items in their real quality frames ---------------- */
.wgf-tp-strip {
  margin: 0 0 1rem;
  padding: .75rem .75rem .5rem;
  background: var(--wgf-panel, #14161c);
  border: 1px solid var(--wgf-gold-dark, #4a3c1c);
  border-radius: 4px;
}
.wgf-tp-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
}
.wgf-tp-strip__tile { text-decoration: none; }
.wgf-tp-strip__cap {
  margin: .6rem 0 0;
  color: var(--wgf-muted, #9d9d9d);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}

/* --- category jump links --------------------------------------------------------------- */
.wgf-tp-catnav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}
.wgf-tp-catnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .3rem .6rem;
  background: var(--wgf-bg-2, #0d0f14);
  border: 1px solid #6e5a2a;
  border-radius: 3px;
  color: var(--wgf-gold-link, #ffe375);
  font-size: .84rem;
  text-decoration: none;
}
.wgf-tp-catnav__link:hover,
.wgf-tp-catnav__link:focus-visible { border-color: #b7912f; color: #ffd100; }
.wgf-tp-catnav__n { color: var(--wgf-muted, #9d9d9d); font-size: .78rem; }

/* --- facts table ----------------------------------------------------------------------- */
.wgf-tp-facts {
  width: 100%;
  max-width: 40rem;
  margin: 0 0 1rem;
  border-collapse: collapse;
  background: var(--wgf-bg-2, #0d0f14);
  border: 1px solid #6e5a2a;
}
.wgf-tp-facts__cap {
  padding: .4rem .7rem;
  color: var(--wgf-muted, #9d9d9d);
  font-size: .78rem;
  text-align: left;
  border-bottom: 1px solid #6e5a2a;
}
.wgf-tp-facts th,
.wgf-tp-facts td {
  padding: .42rem .7rem;
  font-size: .88rem;
  text-align: left;
  vertical-align: baseline;
  border-top: 1px solid rgba(110, 90, 42, .45);
}
.wgf-tp-facts th {
  width: 44%;
  color: var(--wgf-muted, #9d9d9d);
  font-weight: 400;
}
.wgf-tp-facts td { color: var(--wgf-text, #f4ecd8); }

/* --- Trader's Tender amount ------------------------------------------------------------ */
.wgf-tp-price {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}
.wgf-tp-price__icon { width: 16px; height: 16px; border-radius: 2px; }
.wgf-tp-price__n { color: var(--wgf-gold-soft, #d4ad3d); font-variant-numeric: tabular-nums; }
.wgf-tp-price__u { color: var(--wgf-muted, #9d9d9d); font-size: .8em; }

/* --- catalog cards --------------------------------------------------------------------- */
.wgf-tp-card__ring { width: 38px; height: 38px; flex: 0 0 auto; }
.wgf-tp-card__ring .wgf-qborder__icon { width: 26px; height: 26px; }
.wgf-tp-card .wgf-ag-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
}
.wgf-tp-card__cat { color: var(--wgf-muted, #9d9d9d); }
.wgf-tp-card__now { color: #ffd100; }
.wgf-tp-count { color: var(--wgf-muted, #9d9d9d); font-size: .8em; font-weight: 400; }

/* --- cross-family rail ----------------------------------------------------------------- */
.wgf-tp-rail { margin-top: .25rem; }

/* --- rotation panel (2026-09-03): which month, and when the shop restocks ------------- */
.wgf-tp-rot__lede {
  margin: .35rem 0 0;
  max-width: 60ch;
  color: var(--wgf-text, #f4ecd8);
  font-size: .92rem;
  line-height: 1.55;
}
.wgf-tp-rot__lede strong { color: #ffd100; font-weight: 600; }

/* --- ranked tables (Item / Shop category / Cost) -------------------------------------- */
.wgf-tp-t td {
  padding: .34rem .7rem;
  border-top: 1px solid rgba(110, 90, 42, .45);
  vertical-align: middle;
}
.wgf-tp-t__num { text-align: right; font-variant-numeric: tabular-nums; }
.wgf-tp-t__cat { color: var(--wgf-muted, #9d9d9d); }
.wgf-tp-t__jump { color: var(--wgf-gold-link, #ffe375); text-decoration: none; }
.wgf-tp-t__jump:hover, .wgf-tp-t__jump:focus-visible { color: #ffd100; }
.wgf-tp-ref { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.wgf-tp-ref__ring { width: 30px; height: 30px; flex: 0 0 auto; }
.wgf-tp-ref__ring .wgf-qborder__icon { width: 20px; height: 20px; }
.wgf-tp-ref__n { text-decoration: none; }
.wgf-tp-ref:hover .wgf-tp-ref__n { text-decoration: underline; }
@media (max-width: 34rem) { .wgf-tp-t__cat { display: none; } }

/* --- the full catalog: filter box + one <details> per shop category -------------------- */
.wgf-tp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0; }
.wgf-tp-filter__l { color: var(--wgf-muted, #9d9d9d); font-size: .84rem; }
.wgf-tp-filter__i {
  flex: 1 1 14rem;
  max-width: 24rem;
  padding: .35rem .6rem;
  background: var(--wgf-bg-2, #0d0f14);
  border: 1px solid #6e5a2a;
  border-radius: 3px;
  color: var(--wgf-text, #f4ecd8);
  font-size: .88rem;
}
.wgf-tp-filter__i:focus-visible { border-color: #b7912f; outline: none; }
.wgf-tp-filter__none { flex: 1 1 100%; margin: 0; color: var(--wgf-muted, #9d9d9d); font-size: .84rem; }
.wgf-tp-dets__s {
  padding: .3rem .6rem;
  background: var(--wgf-bg-2, #0d0f14);
  border: 1px solid #6e5a2a;
  border-radius: 3px;
  color: var(--wgf-gold-link, #ffe375);
  cursor: pointer;
  font-size: .84rem;
  list-style: none;
}
.wgf-tp-dets__s::-webkit-details-marker { display: none; }
.wgf-tp-dets__s::before { content: "\25B8"; margin-right: .45rem; color: var(--wgf-muted, #9d9d9d); }
.wgf-tp-dets[open] > .wgf-tp-dets__s::before { content: "\25BE"; }
.wgf-tp-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0 1rem;
  margin-top: .5rem;
}
.wgf-tp-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .22rem .35rem;
  border-bottom: 1px solid rgba(110, 90, 42, .28);
  text-decoration: none;
}
.wgf-tp-row:hover, .wgf-tp-row:focus-visible { background: var(--wgf-panel, #14161c); }
.wgf-tp-row > img { width: 20px; height: 20px; border-radius: 2px; flex: 0 0 auto; }
.wgf-tp-row__n { flex: 1 1 auto; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgf-tp-row__p { flex: 0 0 auto; font-size: .82rem; }
