/* Year review prints (round 7): one shared component for the home page, the end of the story page and the end of
   every review page. Markup: an <ol class="pr7-row"> of <li class="pr7-li"> (src/partials/review-print.html,
   stamped by the build, newest first) inside an element with class "pr7". Uses only site.css tokens.
   Without prints.js: a simple wrapping row. With it (class pr7-on): from 4 prints up they get a little smaller
   and overlap like photos on a table; hover and keyboard focus lift a print, and its neighbours give way.
   Phones (and any width where the overlap would leave too thin a strip): a swipe row, every print whole. */
.pr7{overflow-x:clip}
.pr7-w{padding-top:var(--s-160);scroll-margin-top:calc(24px - var(--s-160))}   /* /#years: the heading lands just under the bar */
.pr7-h{margin:0;font-weight:700;font-size:60px;line-height:1;letter-spacing:-.025em}
.pr7-row{list-style:none;margin:var(--s-64) 0 0;padding:0 0 var(--s-24);display:flex;flex-wrap:wrap;gap:var(--s-32);align-items:flex-start;position:relative}
.pr7-li{position:relative;flex:0 1 calc((100% - 64px) / 3);min-width:220px;max-width:420px}
.pr7-print{--pr7-ly:0px;--pr7-r:var(--pr7-t,0deg);--pr7-s:1;position:relative;display:block;text-decoration:none;color:inherit;
  background:var(--white);padding:16px 16px 0;border-radius:4px;
  box-shadow:0 1px 2px rgba(16,20,24,.06),0 10px 28px -12px rgba(16,20,24,.22);
  transform:translate3d(var(--pr7-gx,0px),calc(var(--pr7-dy,0px) + var(--pr7-ly)),0) rotate(var(--pr7-r)) scale(var(--pr7-s));
  transition:transform .26s cubic-bezier(.22,.8,.3,1),opacity .35s ease;-webkit-tap-highlight-color:transparent}
.pr7-print::after{content:'';position:absolute;inset:0;border-radius:4px;pointer-events:none;opacity:0;
  box-shadow:0 2px 4px rgba(16,20,24,.06),0 30px 56px -18px rgba(16,20,24,.34);transition:opacity .26s ease}
.pr7-print picture{display:block}
.pr7-img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:2px;background:#E9EBEE}
.pr7-cap{display:block;padding:20px 8px 24px}
.pr7-s{display:block;font-size:var(--pr7-cs,18px);font-weight:500;line-height:1.3;text-wrap:balance}
.pr7-n{display:inline-block;margin-top:4px;font-size:var(--pr7-ns,56px);font-weight:700;line-height:1;letter-spacing:-.025em;
  text-decoration:underline;text-decoration-color:var(--marker-deep);text-decoration-thickness:3px;text-underline-offset:.14em;text-decoration-skip-ink:none}

/* the lay (prints.js sets, per row: --pr7-f print width as a share of the row, --pr7-m space between (negative once
   they overlap), --pr7-k share of a print left uncovered, --pr7-ns year size, --pr7-cs caption size; per print:
   --pr7-i place, --pr7-z stacking, --pr7-t tilt, --pr7-dy drop, --pr7-gx how far it gives way) */
.pr7-on{flex-wrap:nowrap;gap:0}
.pr7-on .pr7-li{flex:0 0 var(--pr7-f);width:var(--pr7-f);min-width:0;max-width:none;margin-left:var(--pr7-m);z-index:var(--pr7-z);transition:z-index 0s linear .26s}
.pr7-on .pr7-li:first-child{margin-left:0}
.pr7-over .pr7-li:not(:last-child) .pr7-cap{max-width:calc(var(--pr7-k) * (100% + 32px) - 40px)}

/* lifted: pointed at or focused. It comes to the top, straightens and lifts. */
@media (hover:hover){
  .pr7-on .pr7-li:hover{z-index:50;transition-delay:0s}
  .pr7-li:hover>.pr7-print{--pr7-ly:-14px;--pr7-r:0deg;--pr7-s:1.035}
  .pr7-li:hover>.pr7-print::after{opacity:1}
}
.pr7-on .pr7-li:focus-within{z-index:50;transition-delay:0s}
.pr7-li:focus-within>.pr7-print{--pr7-ly:-14px;--pr7-r:0deg;--pr7-s:1.035}
.pr7-li:focus-within>.pr7-print::after{opacity:1}
.pr7-print:focus{outline:none}
.pr7-print:focus-visible{outline:3px solid var(--ink);outline-offset:6px}
a.pr7-print:active{--pr7-ly:-6px}

/* first view: waiting below the fold, then landing one by one */
.pr7-pre .pr7-print{opacity:0;--pr7-ly:72px;--pr7-r:calc(var(--pr7-t,0deg) * 4)}
.pr7-go .pr7-print{transition:transform .7s cubic-bezier(.3,1.35,.5,1),opacity .45s ease;transition-delay:calc(var(--pr7-i,0) * 130ms)}

@media (max-width:1100px){
  .pr7-print{padding:12px 12px 0}
  .pr7-cap{padding:16px 4px 20px}
  .pr7-over .pr7-li:not(:last-child) .pr7-cap{max-width:calc(var(--pr7-k) * (100% + 24px) - 36px)}
  .pr7-s{font-size:16px}
  .pr7-n{font-size:36px}
}
@media (max-width:1023px){ .pr7-w{padding-top:var(--s-128);scroll-margin-top:calc(24px - var(--s-128))} }

/* the swipe row: phones, and (class pr7-tight) any width where the lay would leave too thin a strip */
@media (max-width:640px){
  .pr7-h{font-size:44px}
  .pr7-row,.pr7-on{flex-wrap:nowrap;margin:var(--s-24) calc(var(--side) * -1) 0;padding:24px var(--side) 40px;gap:var(--s-16);overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;scroll-padding-inline:var(--side);overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .pr7-row::-webkit-scrollbar{display:none}
  .pr7-row::after{content:'';flex:0 0 8px}
  .pr7-li,.pr7-on .pr7-li{flex:0 0 min(76%,320px);width:auto;min-width:0;max-width:none;margin-left:0;scroll-snap-align:start}
  .pr7-print{--pr7-r:calc(var(--pr7-t,0deg) * .5);transform:translate3d(0,calc(var(--pr7-dy,0px) * .5 + var(--pr7-ly)),0) rotate(var(--pr7-r)) scale(var(--pr7-s))}
  .pr7-over .pr7-li:not(:last-child) .pr7-cap{max-width:none}
  .pr7-n{font-size:40px}
}
.pr7-row.pr7-tight{margin:40px calc(var(--side) * -1) 0;padding:24px var(--side) 40px;gap:var(--s-24);overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;scroll-padding-inline:var(--side);overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.pr7-row.pr7-tight::-webkit-scrollbar{display:none}
.pr7-row.pr7-tight::after{content:'';flex:0 0 8px}
.pr7-tight .pr7-li{flex:0 0 28%;width:auto;margin-left:0;scroll-snap-align:start}
.pr7-tight .pr7-print{--pr7-r:calc(var(--pr7-t,0deg) * .5);transform:translate3d(0,calc(var(--pr7-dy,0px) * .5 + var(--pr7-ly)),0) rotate(var(--pr7-r)) scale(var(--pr7-s))}
.pr7-tight.pr7-over .pr7-li:not(:last-child) .pr7-cap{max-width:none}

@media (prefers-reduced-motion:reduce){
  .pr7 *,.pr7 *::after{transition:none !important;animation:none !important}
  .pr7-pre .pr7-print{opacity:1;--pr7-ly:0px;--pr7-r:var(--pr7-t,0deg)}
}
/* cover_focus from each review's front matter (added by tools/build.py) */
.cf-2025{object-position:35% 50%}
.cf-2024{object-position:50% 35%}
.cf-2023{object-position:45% 50%}
