/* Physical variation stays inside the display. Controls retain their straight baseline. */
.recent-grid.rack-view {
  display:block;
  padding:24px 26px 0;
  border:1px solid #b9c0bb;
  border-left:8px solid #535d57;
  border-right:8px solid #535d57;
  background:#e8ece9;
  box-shadow:0 3px 0 #c9cfca, 0 10px 18px rgb(28 38 31 / .08);
  overflow:visible;
}
.recent-grid.rack-view::after { display:none; }
.publication-shelf {
  position:relative;
  display:grid;
  grid-template-columns:1.06fr .94fr 1fr 1fr;
  align-items:end;
  gap:21px;
  padding:12px 8px 0;
  margin-bottom:28px;
  border-bottom:12px solid #626d65;
  box-shadow:0 4px 0 #a0aba3, 0 12px 10px -8px rgb(20 32 23 / .3);
}
.publication-shelf:last-child { margin-bottom:0; }
.publication-shelf::after {
  content:'';
  position:absolute;
  bottom:-3px;
  left:-8px;
  right:-8px;
  height:4px;
  background:#adb7af;
  z-index:3;
  pointer-events:none;
}
.recent-grid.rack-view .publication-shelf .material {
  --tilt:-1.2deg;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  align-self:end;
  width:100%;
  min-height:0;
  height:330px;
  padding:16px 18px 20px;
  margin:0 0 1px;
  border:1px solid #a8b0aa;
  border-left:4px solid #d6dbd7;
  background:#fff;
  color:#202020;
  transform:rotate(var(--tilt));
  transform-origin:50% 100%;
  box-shadow:2px 1px 0 #fff, 3px 2px 0 #b8bfb9, 5px 3px 0 #f7f8f7, 6px 4px 0 #aeb7af, 8px 6px 9px rgb(26 36 29 / .16);
  z-index:1;
  transition:transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.recent-grid.rack-view .publication-shelf .material:nth-child(2) { --tilt:1.1deg; height:300px; width:96%; margin-left:-3px; }
.recent-grid.rack-view .publication-shelf .material:nth-child(3) { --tilt:-.5deg; height:346px; width:98%; }
.recent-grid.rack-view .publication-shelf .material:nth-child(4) { --tilt:1.5deg; height:314px; margin-left:-4px; }
.recent-grid.rack-view .publication-shelf:nth-child(2) { grid-template-columns:.96fr 1.04fr 1fr 1fr; }
.recent-grid.rack-view .publication-shelf:nth-child(2) .material:nth-child(1) { --tilt:.8deg; height:306px; }
.recent-grid.rack-view .publication-shelf:nth-child(2) .material:nth-child(2) { --tilt:-1.4deg; height:338px; }
.recent-grid.rack-view .publication-shelf:nth-child(2) .material:nth-child(3) { --tilt:1.2deg; height:312px; }
.recent-grid.rack-view .publication-shelf:nth-child(2) .material:nth-child(4) { --tilt:-.8deg; height:324px; }
.recent-grid.rack-view .publication-shelf .material .meta { border-bottom:1px solid #d3d8d4; margin-bottom:8px; padding-bottom:8px; color:#555e57; }
.recent-grid.rack-view .publication-shelf .material .cover-art { width:128px; height:128px; align-self:center; aspect-ratio:1; background-size:200% 200%; flex-shrink:0; }
.recent-grid.rack-view .publication-shelf .material h3 { font-size:14px; line-height:1.45; margin-top:13px; letter-spacing:-.3px; }
.recent-grid.rack-view .publication-shelf .material .pick-label { font-size:10px; padding-top:12px; }
.recent-grid.rack-view .publication-shelf .material:hover,
.recent-grid.rack-view .publication-shelf .material:focus-visible {
  transform:translateY(-10px) rotate(0);
  box-shadow:3px 2px 0 #fff,4px 3px 0 #aeb7af,9px 13px 16px rgb(26 36 29 / .2);
  z-index:4;
}
.recent-grid.rack-view .publication-shelf .material.picked { opacity:.28; transform:translateY(-10px) rotate(0); }
.catalog-view .material { transform:none; }
@media(max-width:900px) {
  .recent-grid.rack-view { display:block; overflow-x:auto; padding:18px 18px 0; scroll-snap-type:none; }
  .publication-shelf,.recent-grid.rack-view .publication-shelf:nth-child(2) { min-width:850px; grid-template-columns:repeat(4,1fr); gap:20px; }
  .recent-grid.rack-view .publication-shelf .material { flex:none; }
}
@media(max-width:650px) {
  .recent-grid.rack-view { border-left-width:5px; border-right-width:5px; padding:14px 16px 0; }
  .publication-shelf,.recent-grid.rack-view .publication-shelf:nth-child(2) { min-width:790px; gap:18px; }
}
@media(prefers-reduced-motion:reduce) {
  .recent-grid.rack-view .publication-shelf .material { transition:none; }
  .recent-grid.rack-view .publication-shelf .material:hover,
  .recent-grid.rack-view .publication-shelf .material:focus-visible { transform:rotate(var(--tilt)); }
}
