/* The mounted photograph from V13: a warm print border, a wider foot and
   a translucent strip straddling the print and the chart beneath it. */
.photo-print {
  --tilt: -1deg;
  --edge: clamp(3px, .36vw, 6px);
  --foot: clamp(6px, .7vw, 11px);
  --tape-width: clamp(2.1rem, 24%, 5rem);
  --tape-height: clamp(9px, 1.15vw, 15px);
  --tape-centre: 49%;
  --tape-angle: -4deg;
  display: block;
  position: relative;
  isolation: isolate;
  align-self: start;
  box-sizing: border-box;
  min-width: 0;
  padding: var(--edge) var(--edge) var(--foot);
  background: #fff9e9;
  outline: 1px solid rgb(87 88 65 / .13);
  box-shadow: 1px 2px 0 rgb(66 82 70 / .30), 0 3px 5px rgb(44 61 56 / .10);
  transform: rotate(var(--tilt));
}
.photo-print::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: var(--tape-width);
  height: var(--tape-height);
  left: var(--tape-centre);
  top: 0;
  transform: translate(-50%, -48%) rotate(var(--tape-angle));
  background-color: rgb(203 192 147 / .65);
  background-image: repeating-linear-gradient(94deg, transparent 0 3px, rgb(248 244 218 / .19) 4px, transparent 5px);
  box-shadow: inset 0 -1px 0 rgb(125 118 78 / .13);
  clip-path: polygon(0 3%, 99% 0, 98.5% 19%, 100% 34%, 98.5% 56%, 100% 74%, 99% 98%, 0 100%, 1% 78%, 0 62%, 1.2% 40%, 0 24%);
}
/* A single print surface also holds all three interchangeable slip images. */
.fleet.chart .photo-print img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  box-shadow: none;
  transform: none;
}
.fleet.chart .photo-print img[hidden] { display: none; }

/* Each kitchen photograph is mounted separately. The menu titles stay level. */
.print-slip {
  --tilt: -2deg;
  --edge: 3px;
  --foot: 6px;
  --tape-width: 32%;
  --tape-height: 9px;
  margin: .5rem .18rem .22rem;
  align-self: center;
}
.fleet.chart .print-slip img { aspect-ratio: 3 / 2; object-fit: contain; }
.print-dish { margin: .65rem .42rem .5rem; }
.sunday-dish:nth-child(2) .print-dish { --tilt: 1.4deg; --tape-centre: 54%; --tape-angle: 3deg; }
.sunday-dish:nth-child(3) .print-dish { --tilt: -.65deg; --tape-centre: 44%; }
.print-day {
  --tilt: -.85deg;
  --tape-width: clamp(3.25rem, 19%, 6rem);
  --tape-height: clamp(12px, 1.3vw, 19px);
  --tape-centre: 45%;
  align-self: center;
  margin: clamp(1.05rem, 2.15vw, 2rem);
}
/* The meal pins are inside the image plane, so their coordinates rotate with it. */
.fleet.chart .sample-box .plated-day { overflow: visible; }
.print-portrait {
  --tilt: -.74deg;
  --tape-width: clamp(1.75rem, 22%, 4.2rem);
  --tape-height: clamp(8px, 1vw, 13px);
  --tape-centre: 41%;
  --tape-angle: -3deg;
  margin: .5rem .35rem .22rem;
  width: calc(100% - .7rem);
}
.directory-profile:nth-child(2) .print-portrait { --tilt: .85deg; --tape-centre: 57%; --tape-angle: 2deg; }
.directory-profile:nth-child(3) .print-portrait { --tilt: -.55deg; --tape-centre: 51%; }
@media (max-width: 48rem) {
  .print-day { margin: 1.1rem .9rem .2rem; }
}

/* The chart's lower margin holds two sets of evidence on the same stock. */
.chart-opening__map { container-type: inline-size; }
.opening-evidence {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 4%;
  margin: 0;
  padding: 0 3.5%;
  min-height: clamp(6.6rem, 23cqi, 9.3rem);
  background: var(--myrtle-caption);
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom: 2px solid var(--green);
}
.opening-evidence a {
  position: relative;
  display: block;
  isolation: isolate;
  min-width: 0;
  height: clamp(5.7rem, 20cqi, 8.3rem);
}
.opening-evidence a:focus-visible {
  outline: 2px dashed var(--bearing);
  outline-offset: 3px;
}
.opening-evidence__dishes .photo-print {
  --edge: clamp(2px, .55cqi, 4px);
  --foot: clamp(4px, .95cqi, 7px);
  --tape-width: 32%;
  --tape-height: clamp(5px, 1.2cqi, 8px);
  position: absolute;
  width: 26%;
  top: 33%;
  transform: translateY(-50%) rotate(var(--tilt));
}
.opening-evidence__dishes .photo-print:nth-child(even) { top: 65%; }
.opening-evidence__dishes .photo-print:nth-child(1) { left: 0; --tilt: -7deg; }
.opening-evidence__dishes .photo-print:nth-child(2) { left: 18.5%; --tilt: 4deg; --tape-angle: 5deg; }
.opening-evidence__dishes .photo-print:nth-child(3) { left: 37%; --tilt: -3deg; --tape-centre: 44%; }
.opening-evidence__dishes .photo-print:nth-child(4) { left: 55.5%; --tilt: 6deg; }
.opening-evidence__dishes .photo-print:nth-child(5) { left: 74%; --tilt: -5deg; --tape-angle: 4deg; }
.opening-evidence__documents img {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 55%;
  height: auto;
  box-sizing: border-box;
  transform-origin: 50% 92%;
  background: #fffef8;
  border: 1px solid rgb(66 77 61 / .24);
  box-shadow: 0 1px 2px rgb(32 47 40 / .23);
}
.opening-evidence__documents img:first-child { transform: translateX(-63%) rotate(-22deg); }
.opening-evidence__documents img:nth-child(2) { transform: translate(-50%, -3%) rotate(-3deg); }
.opening-evidence__documents img:last-child { transform: translateX(-37%) rotate(15deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .opening-evidence__documents img, .opening-evidence__dishes .photo-print {
    transition: transform .18s ease-out;
  }
  .opening-evidence__documents:hover img:first-child { transform: translateX(-67%) rotate(-25deg); }
  .opening-evidence__documents:hover img:last-child { transform: translateX(-33%) rotate(18deg); }
  .opening-evidence__dishes:hover .photo-print { transform: translateY(-54%) rotate(var(--tilt)); }
}
@container (max-width: 25rem) {
  .opening-evidence { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 5%; }
  .opening-evidence__dishes .photo-print { width: 29%; top: 32%; }
  .opening-evidence__dishes .photo-print:nth-child(2) { left: 17.75%; }
  .opening-evidence__dishes .photo-print:nth-child(3) { left: 35.5%; }
  .opening-evidence__dishes .photo-print:nth-child(4) { left: 53.25%; }
  .opening-evidence__dishes .photo-print:nth-child(5) { left: 71%; }
  .opening-evidence__documents img { width: 57%; bottom: 15%; }
}
