/* The Misc entry, "clip": one clipped manuscript per paper, a sheet for every draft */
.ad-clip{margin-bottom:1.5rem}
.ad-clip .ad-shelf{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:26px 24px;margin:26px 6px 8px}
.ac,.ac:hover{display:block;color:inherit;text-decoration:none}
.ac{container-type:inline-size;border-radius:3px}
.ac:focus-visible{outline:2px solid var(--global-theme-color);outline-offset:6px}
.ac-pile{position:relative;display:block;aspect-ratio:112/150;transform:rotate(var(--tilt,0deg));transition:transform .35s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.ac:nth-child(6n+1){--tilt:-2.4deg}.ac:nth-child(6n+2){--tilt:1.6deg}.ac:nth-child(6n+3){--tilt:-1deg}.ac:nth-child(6n+4){--tilt:2.2deg}.ac:nth-child(6n+5){--tilt:-1.8deg}.ac:nth-child(6n+6){--tilt:1.2deg}
.ac-pile i,.ac-page{position:absolute;inset:0;background:#fffef9;box-shadow:0 0 0 .7px #d3cebf,.5px 1px 2.500px #3a2f1f24;transition:transform .4s cubic-bezier(.2,.8,.2,1);transform-origin:50% 0}
/* pile, sheets and page stay on their own layers at rest too, so a hover never re-rasterises the title or the ink */
.ac-pile,.ac-pile i,.ac-page{will-change:transform}
.ac-pile i:first-child{box-shadow:0 0 0 .7px #d3cebf,1px 5px 12px -2px #3a2f1f4d}
.ac-pile i{transform:rotate(var(--r,0deg)) translate(var(--x,0),var(--y,0))}
.ac-pile i:nth-last-of-type(1){--r:-1.74deg;--x:-0.72px;--y:1.45px}.ac-pile i:nth-last-of-type(2){--r:1.16deg;--x:1.45px;--y:2.17px}.ac-pile i:nth-last-of-type(3){--r:-3.04deg;--x:-1.45px;--y:1.45px}.ac-pile i:nth-last-of-type(4){--r:2.46deg;--x:0.72px;--y:3.62px}.ac-pile i:nth-last-of-type(5){--r:-0.72deg;--x:1.45px;--y:4.35px}.ac-pile i:nth-last-of-type(6){--r:-4.06deg;--x:-0.72px;--y:2.90px}.ac-pile i:nth-last-of-type(7){--r:3.33deg;--x:1.45px;--y:2.90px}.ac-pile i:nth-last-of-type(8){--r:0.58deg;--x:-2.17px;--y:5.80px}.ac-pile i:nth-last-of-type(9){--r:-4.78deg;--x:-0.72px;--y:4.35px}.ac-pile i:nth-last-of-type(10){--r:4.21deg;--x:0.72px;--y:4.35px}.ac-pile i:nth-last-of-type(11){--r:-2.32deg;--x:1.45px;--y:7.25px}
.ac-page{display:flex;flex-direction:column;gap:5cqw;padding:15.500cqw 8cqw 10cqw 17cqw;text-align:center}
.ac .ac-head{flex:none;color:#34343a;font:600 7.500cqw/1.16 "Libertinus Serif",Palatino,Georgia,serif;text-wrap:balance}
.ac .ac-stamp{position:absolute;left:5cqw;bottom:12cqw;writing-mode:vertical-rl;transform:rotate(180deg);color:#7d7f88;font:7.500cqw/1 "Libertinus Serif",Palatino,Georgia,serif;white-space:nowrap}
.ac-lines{position:relative;flex:1;background:repeating-linear-gradient(#c3c1ba 0 1px,#0000 1px 4.600cqw)}
.ac-pen{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#c4382e;stroke-width:1.300;stroke-linecap:round;stroke-linejoin:round}
/* ink of the sheets behind: faint through the page, plain where an edge looks out */
.ac-ghost{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#c4382e;stroke-width:1.300;stroke-linecap:round;stroke-linejoin:round;opacity:.2;filter:blur(.4px);transform:translate(4cqw,-5cqw) rotate(1.500deg)}
.ac-edge{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#c4382e;stroke-width:1.200;stroke-linecap:round;stroke-linejoin:round}
.ac-clip{position:absolute;top:-4cqw;left:50%;width:27cqw;height:13cqw;transform:translateX(-50%);border-radius:1.800cqw 1.800cqw 2.700cqw 2.700cqw;background:linear-gradient(#45464b,#1d1e21);box-shadow:0 1px 2px #0005,inset 0 .7px 0 #ffffff3a}
.ac-clip::before{content:"";position:absolute;left:24%;bottom:100%;width:52%;height:10cqw;border:1.350cqw solid #8d9096;border-bottom:0;border-radius:7cqw 7cqw 0 0}
html[data-theme=dark] :is(.ac-pile i,.ac-page){background:#e4e0d4;box-shadow:0 0 0 .7px #aaa596,.5px 1px 3px #0006}
html[data-theme=dark] .ac-lines{background:repeating-linear-gradient(#aeaca4 0 1px,#0000 1px 4.600cqw)}
html[data-theme=dark] .ac .ac-stamp{color:#63656d}
html[data-theme=dark] .ac-clip{background:linear-gradient(#55565c,#26272b)}
@media(hover:hover){.ac:hover .ac-pile{transform:translateY(-7px) rotate(0deg)}.ac:hover .ac-pile i{transform:rotate(calc(var(--r,0deg)*1.700)) translate(var(--x,0),calc(var(--y,0px)*1.300))}}
.ac:focus-visible .ac-pile{transform:translateY(-7px) rotate(0deg)}
@media(max-width:991px){.ad-clip .ad-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 22px}}
@media(max-width:440px){.ad-clip .ad-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 26px}}
@media(prefers-reduced-motion:reduce){.ac-pile,.ac-pile i{transition:none}}
/* more than six papers: six in view, the rest a slide away */
.ad-view{position:relative}
.ad-clip .ad-shelf.is-long{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 144px)/6.28);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:-14px -28px -14px;padding:40px 34px 22px;scroll-padding:34px}
.ad-clip .ad-shelf.is-long::-webkit-scrollbar{display:none}
.ac-go{position:absolute;top:50%;z-index:2;width:36px;height:36px;margin-top:-18px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;color:#222;background:#fffefbee;box-shadow:0 1px 2px #0003,0 4px 14px #0003;opacity:0;transition:opacity .25s;cursor:pointer}
.ac-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.600;stroke-linecap:round;stroke-linejoin:round}
.ac-go.is-back{left:-14px}.ac-go.is-more{right:-14px}
.ad-view:hover .ac-go:not([aria-disabled=true]),.ac-go:focus-visible:not([aria-disabled=true]){opacity:1}
.ac-go[aria-disabled=true]{pointer-events:none}
@media(hover:none){.ac-go{display:none}}
@media(max-width:991px){.ad-clip .ad-shelf.is-long{grid-template-rows:repeat(2,auto);grid-auto-columns:calc((100% - 44px)/3.2);margin-top:-22px;padding-top:52px;row-gap:44px}}
@media(max-width:767px){.ad-clip .ad-shelf.is-long{margin-inline:-19px;padding-inline:25px}}
@media(max-width:440px){.ad-clip .ad-shelf.is-long{grid-template-rows:repeat(3,auto);grid-auto-columns:calc((100% - 26px)/2.160)}}
