/* Item sets: a sticky search + class bar over a grid of set cards. Each card lists its pieces
   (icon, quality-coloured name, slot) and then the bonuses by piece count. Colours come from app.css only. */

.st { max-width: 1100px; }
.st h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.st-lede { margin: 4px 0 14px; color: var(--muted); font-size: 14px; max-width: 75ch; line-height: 1.55; }

.st-controls {
  position: sticky; top: 0; z-index: 4; padding: 12px 0 8px; margin-bottom: 12px;
  background: linear-gradient(var(--bg) 85%, transparent);
}
.st-controls input[type="search"] {
  width: 100%; max-width: 460px; box-sizing: border-box; padding: 8px 12px; margin-bottom: 10px;
  font: 15px var(--ui); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.st-controls input[type="search"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip {
  padding: 4px 12px; font: 13px var(--ui); color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.st-chip:hover { border-color: var(--muted); }
.st-chip[aria-pressed="true"] { border-color: var(--gold); background: var(--raise); }
.st-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.st-count { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.st-none { color: var(--muted); }
.st-set {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.st-set h2 { margin: 0; font-size: 16px; color: var(--gold); }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.st-ilvl { font: 600 12px var(--code); color: var(--num); padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; }
.st-cls { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--raise); color: var(--text); }
.st-any { color: var(--muted); }

.st-pieces, .st-bonus { list-style: none; margin: 0; padding: 0; }
.st-pieces li { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 13.5px; min-width: 0; cursor: default; }
.st-pieces img { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.st-pieces a { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pieces a:hover { text-decoration: underline; }
.st-pieces span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pieces small { margin-left: auto; color: var(--muted); font-size: 11.5px; flex: none; }
.st-bonus { border-top: 1px solid var(--line); padding-top: 6px; }
.st-bonus li { font-size: 13px; line-height: 1.45; color: var(--str); padding: 2px 0; cursor: default; }
.st-bonus b { color: var(--muted); font-weight: 600; margin-right: 2px; }
.st-find { align-self: flex-start; font-size: 12.5px; color: var(--field); }

@media (max-width: 760px) {
  .st-grid { grid-template-columns: 1fr; }
}
