/* Collections group cards by exam. Search results are direct children. */
.store-page #results .product {
  --listing-paper: #f2e8d8;
  --listing-band: #382c29;
  background: var(--listing-paper);
  color: #000;
  box-shadow: inset 0 0 0 1px rgb(56 44 41 / .09), 0 3px 10px -7px rgb(56 44 41 / .35);
}
#results .product.tone-1, #results > .product:nth-child(4n+2) {
  --listing-paper: #d7dfcf;
  --listing-band: #344b40;
}
#results .product.tone-2, #results > .product:nth-child(4n+3) {
  --listing-paper: #ecdaa9;
  --listing-band: #293848;
}
#results .product.tone-3, #results > .product:nth-child(4n) {
  --listing-paper: #e8cec0;
  --listing-band: #5d2620;
}
.store-page #results .product.paper-white,
.store-page #results > .product:is(:nth-child(5n+1), :nth-child(5n+4)) {
  background-color: #fff;
}
.store-page #results .product.paper-banded,
.store-page #results > .product:nth-child(5n+3) {
  background-image: linear-gradient(to bottom, transparent 75%, var(--listing-band) 75%);
}
.store-page #results .product .surface {background: transparent}

/* Extend the band behind a long title when it wraps above the bottom quarter. */
.store-page #results.cover-first {--listing-pad: clamp(18px, 2.1vw, 33px)}
.store-page #results.cover-first .product.paper-banded h3,
.store-page #results.cover-first > .product:nth-child(5n+3) h3 {
  margin: auto calc(-1 * var(--listing-pad)) calc(-1 * var(--listing-pad));
  padding: .32em var(--listing-pad) var(--listing-pad);
  color: white;
  background: var(--listing-band);
}
@media (max-width:550px) {
  .store-page #results.cover-first {--listing-pad: 21px}
}
