.shop-card .shop-art.shop-cover {
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #e9e3d5;
}

.shop-cover > img,
.detail-visual--cover > .detail-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-visual.detail-visual--cover {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-color: #d3c7b5;
  background: #e9e3d5;
}

.detail-visual--cover .detail-page {
  position: absolute;
  inset: auto .7rem .7rem auto;
  width: 31%;
  max-width: 10.5rem;
  margin: 0;
  padding: .3rem;
  border: 1px solid #c6b7a5;
  background: #fffdf7;
  box-shadow: 0 .4rem 1rem #332b2338;
}

img.detail-page {
  display: block;
  height: auto;
  max-height: calc(100% - 4rem);
  object-fit: contain;
}

.detail-visual--cover figcaption {
  font-size: .72rem;
  line-height: 1.3;
  padding: .3rem;
  border-radius: 0;
}

.detail-visual--cover > figcaption {
  position: absolute;
  inset: auto .7rem .7rem auto;
  max-width: min(34%, 11rem);
}

.detail-visual--cover:has(> figcaption) .detail-page {
  inset-block-end: 4.4rem;
}

.sample-cover,
.collection-cover {
  display: block;
  width: 100%;
  height: auto;
  max-width: 15rem;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  align-self: flex-start;
  margin: 0 0 .45rem;
  border: 1px solid #d3c7b5;
  border-radius: 3px;
  background: #e9e3d5;
}

.sample-card .sample-cover { max-width: 12rem; }

.edition-label {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  margin: 0 0 .35rem;
  padding: .25rem .5rem;
  border: 1px solid #c7d0c4;
  border-radius: 3px;
  background: #eaf0e7;
  color: #2b4538;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
}

.edition-label[hidden] { display: none; }

.catalog-filters:has(#catalog-edition) {
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem) minmax(7rem, 9rem) minmax(10rem, 12rem);
  max-width: 65rem;
}

.guide-entry-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
  margin-top: .7rem;
}

.guide-entry-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.guide-entry-links .guide-resource-jump { text-decoration: none; }
#guide-resources { scroll-margin-top: 1rem; }

.guide-figure {
  display: grid;
  gap: .5rem;
  justify-items: start;
  margin: 0 0 1.6rem;
}

.guide-figure > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 24rem;
  border: 1px solid #d3c7b5;
  border-radius: 3px;
  background: #fffdf7;
  object-fit: contain;
}

.guide-figure > figcaption {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .catalog-filters:has(#catalog-edition) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters:has(#catalog-edition) .catalog-filter-field:first-child { grid-column: 1 / -1; }
  .catalog-filters:has(#catalog-edition) .catalog-clear { justify-self: start; }
}

@media (max-width: 580px) {
  .shop-card .shop-art.shop-cover { order: 0; }
  .sample-cover, .collection-cover { max-width: 11rem; }
  .detail-visual--cover .detail-page { inset-inline-end: .45rem; width: 29%; }
}

@media (max-width: 340px) {
  .catalog-filters:has(#catalog-edition) { grid-template-columns: minmax(0, 1fr); }
}
