/* Search, filter chips, and category shelves for /stack/design/. */
.shelf-tools { display: grid; gap: .9rem; margin-block: 1.25rem 1.75rem; }
.shelf-search {
  width: 100%;
  max-width: 30rem;
  min-height: 44px;
  padding: .65rem .9rem;
  background: var(--panel);
  color: #e4f3e8;
  border: 1px solid var(--hair);
  font: .9rem/1.4 var(--mono);
}
.shelf-search::placeholder { color: #8ab097; }
.shelf-search:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 2px; }
.shelf-count { margin: 0; font-size: .78rem; color: #9fc4ab; }
.shelf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.shelf-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .8rem;
  background: var(--panel);
  color: #c2decb;
  border: 1px solid var(--hair);
  font: .78rem/1.2 var(--mono);
  cursor: pointer;
}
.shelf-chip[aria-pressed="true"] {
  border-color: var(--phosphor);
  color: var(--phosphor);
}
.shelf-chip:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 2px; }
.shelf-chip span { color: #8ab097; font-size: .72rem; }
.shelf-chip[aria-pressed="true"] span { color: var(--phosphor); }
.shelf-grid { display: grid; gap: 1.75rem; }
.shelf { background: var(--panel); border: 1px solid var(--hair); padding: 1.25rem; }
.shelf[hidden] { display: none; }
.shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: .9rem; }
.shelf-head h3 { margin: 0; font-size: 1.05rem; color: #d0e9d8; }
.shelf-head span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--phosphor); }
.shelf-list { list-style: none; margin: 0; padding: 0; }
.shelf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem 1rem;
  align-items: baseline;
  padding-block: .7rem;
  border-top: 1px solid var(--hair);
}
.shelf-row[hidden] { display: none; }
.shelf-row-main { min-width: 0; }
.shelf-row-main a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.shelf-row-main a:hover { text-decoration: underline; }
.shelf-row-main p { margin: .2rem 0 0; font-size: .86rem; color: #b7d7c2; }
.shelf-row-meta { display: flex; gap: .6rem; align-items: baseline; font-size: .74rem; color: #8ab097; white-space: nowrap; }
.shelf-tier { border: 1px solid var(--hair); padding: .12rem .4rem; text-transform: uppercase; letter-spacing: .06em; }
.shelf-empty { margin-top: 1rem; color: #9fc4ab; }
@media (max-width: 640px) {
  .shelf-row { grid-template-columns: minmax(0, 1fr); }
  .shelf-row-meta { white-space: normal; }
}
