/* assets/wcl-extras.css — styles for the WCL "Archon extras" blocks (Consumables
   / Tier Set), now server-rendered into the guide HTML by scripts/build-guide-pages.mjs
   (renderConsumables / renderTierSet). All classes are .wclx- prefixed to avoid
   collisions with .geo-* / .tt* / .ab. Uses the site's global CSS vars
   (--void/--panel/--line/--gold/--gold2/--text/--muted/--cc). */

.wclx {
  margin: 14px 0;
  padding: 16px 18px;
  background: var(--panel, #16181d);
  border: 1px solid var(--line, #2a2e36);
  border-radius: 10px;
}
.wclx[hidden] {
  display: none;
}

.wclx-h {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold2, #e0c187);
  letter-spacing: 0.2px;
}
.wclx-sub,
.wclx-tiername {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted, #8a8f99);
}
.wclx-tiername {
  color: var(--gold, #c89b5e);
  text-decoration: none;
}
.wclx-tiername:hover {
  text-decoration: underline;
}

/* multi-column consumables grid */
.wclx-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 20px;
}
.wclx-col {
  min-width: 0;
}
.wclx-colh {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #8a8f99);
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line, #2a2e36);
}

/* % bar rows */
.wclx-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  margin: 3px 0;
  border-radius: 6px;
  background: var(--void2, #131418);
  overflow: hidden;
  min-height: 28px;
}
.wclx-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--cc, var(--gold, #c89b5e)) 26%, transparent),
    color-mix(in srgb, var(--cc, var(--gold, #c89b5e)) 8%, transparent)
  );
  border-right: 1px solid color-mix(in srgb, var(--cc, var(--gold, #c89b5e)) 40%, transparent);
  z-index: 0;
}
.wclx-rowname {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  color: var(--text, #e6e7ea);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wclx-pct {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold2, #e0c187);
}
.wclx-pct i {
  font-style: normal;
  font-size: 0.7em;
  color: var(--muted, #8a8f99);
  margin-left: 1px;
}

.wclx-name {
  color: var(--text, #e6e7ea);
  text-decoration: none;
}
.wclx-name:hover {
  text-decoration: underline;
}
.wclx-ico {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  vertical-align: -5px;
  margin-right: 6px;
  border: 1px solid var(--line, #2a2e36);
}

/* tier set bonus text rows */
.wclx-sets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.wclx-set {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.wclx-setn {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold, #c89b5e);
  min-width: 56px;
}
.wclx-sett {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text, #e6e7ea);
}

.wclx-plus {
  color: var(--muted, #8a8f99);
  font-weight: 700;
  margin: 0 2px;
}

@media (max-width: 560px) {
  .wclx {
    padding: 13px 13px;
  }
  .wclx-cols {
    grid-template-columns: 1fr;
  }
}

/* Tier B "Recommended" desktop reading bump for the consumables / tier-set
   block, matched to the spec-guide sizing in styles.css. Guide-scoped via
   body[data-spec] and gated to >=768px so mobile density is unchanged. */
@media (min-width: 768px) {
  body[data-spec] .wclx-h { font-size: 1.2rem; }
  body[data-spec] .wclx-sub,
  body[data-spec] .wclx-tiername { font-size: 0.92rem; }
  body[data-spec] .wclx-colh { font-size: 0.8rem; }
  body[data-spec] .wclx-rowname { font-size: 1rem; }
  body[data-spec] .wclx-pct { font-size: 0.95rem; }
  body[data-spec] .wclx-setn { font-size: 0.9rem; }
  body[data-spec] .wclx-sett { font-size: 1rem; }
}
