/* The pages sent to teachers and music schools (/for-teachers) and to conductors, ensembles and concert producers
   (/for-stages). They share the creators page's look and parts (for-creators.css: the first screen's corner, the
   phases, Starling's reply, the showcase band, the files, the steps, the two ways, the last card and the phone's dock);
   this file lays out each page's own story stage and scenes. Decisions: docs/modules/website/pages.md#partnership-pages. */

/* ── The story stage both pages open on ────────────────────────────────────────────────────────────────────────────
   One stage of a fixed height under the headline, as the creators page has it. The script moves it through its beats
   (data-beat) and phases (data-phase); without a beat, which reduced motion and a browser without the script show, it
   stands on its end frame. */
.pp-story {
  --stage: clamp(340px, 100vh - 386px, 470px);
  position: relative;
  display: grid;
  gap: var(--space-4) var(--space-9);
  height: var(--stage);
  margin-top: clamp(24px, 3vw, 40px);
  overflow-x: clip;
}
.pp-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "phases phases"
    "reply again"
    "work work";
  gap: var(--space-3) var(--space-4);
  min-width: 0;
  min-height: 0;
}
.pp-desk .fc-reply {
  min-height: 47px;
}
.pp-story .fc-again {
  grid-area: again;
  align-self: center;
  visibility: hidden;
}
.pp-story[data-done] .fc-again {
  visibility: visible;
}
/* The phases, as on the creators page and /agent-transcription: to come grey, being done orange, done ink. */
.pp-story[data-beat] .fc-phase {
  color: var(--muted);
}
.pp-story[data-beat] .fc-phase[data-state="todo"] i::after {
  transform: scaleX(0);
}
.pp-story[data-beat] .fc-phase[data-state="doing"],
.pp-story[data-beat] .fc-phase[data-state="doing"] b {
  color: var(--accent-text);
}
.pp-story[data-beat] .fc-phase[data-state="doing"] i::after {
  background: var(--accent);
}
.pp-story[data-beat] .fc-phase[data-state="done"] {
  color: var(--ink);
}
/* The cursors are the AI & MCP film's, named for what they do (styles.css, .film-cur). */
.pp-flock {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  --film-ink: var(--ink);
  --film-live: var(--accent);
}
.pp-flock .film-cur {
  display: block;
  opacity: 0;
  transition: opacity 0.25s;
}
.pp-flock .film-cur.is-on {
  opacity: 1;
}
.pp-flock .film-cur.is-up span {
  top: auto;
  bottom: 6px;
  left: 10px;
  border-radius: 8px 8px 8px 2px;
}
/* A copy on its way, as on the creators page's routes: an orange dot with a soft edge. */
.pp-token {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  pointer-events: none;
}
/* What a phase looks at: an orange outline on a tint, as the creators page marks the key it checks. */
.pp-mark {
  position: absolute;
  z-index: 2;
  border-radius: 4px;
  background: var(--accent-tint);
  box-shadow: 0 0 0 1.5px var(--accent);
  pointer-events: none;
}

/* ── For teachers: one page, every student ─────────────────────────────────────────────────────────────────────────
   The page from a teacher's book on the left; beside it the phases, Starling, and the five students' versions. */
/* No line stands under this title, so the stage takes that room: on a 1280 by 720 screen it still ends above the
   fold, and every card keeps a readable staff. */
.tp-story {
  --stage: clamp(400px, 100vh - 320px, 470px);
  grid-template-columns: calc((var(--stage) - 56px) * 0.773) minmax(0, 1fr);
}
.tp-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  min-height: 0;
  margin: 0;
}
.tp-page-label,
.tp-page-cap {
  font: 500 12px / var(--lh-ui) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tp-page-cap {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 13px;
}
/* The photo keeps its own shape, so the marks laid on it stay on its bars at every size. */
.tp-photo {
  position: relative;
  justify-self: start;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 1275 / 1650;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #6f5b49;
}
.tp-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
/* Bars 1 to 4 on the photographed page (both staves of its first system), as shares of the photo. */
.tp-take {
  position: absolute;
  left: 13.6%;
  top: 13.4%;
  width: 64.8%;
  height: 11.6%;
  border-radius: 4px;
  background: var(--accent-tint);
  box-shadow: 0 0 0 2px var(--accent);
}
.tp-scan {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  opacity: 0;
}
.tp-desk .fc-phases {
  grid-area: phases;
}
/* The class: five students, each a card with what they play and at what level over their version. The piano's two
   staves take two rows. */
.tp-class {
  grid-area: work;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "piano violin"
    "piano ukulele"
    "clarinet trombone";
  gap: var(--space-3);
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-seat {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-1);
  min-width: 0;
  min-height: 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hair-strong);
}
.tp-seat:nth-child(1) {
  grid-area: piano;
}
.tp-seat:nth-child(2) {
  grid-area: violin;
}
.tp-seat:nth-child(3) {
  grid-area: ukulele;
}
.tp-seat:nth-child(4) {
  grid-area: trombone;
}
.tp-seat:nth-child(5) {
  grid-area: clarinet;
}
.tp-seat-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
  font: 600 14px / var(--lh-snug) var(--sans);
  color: var(--ink);
}
.tp-seat-head span {
  font: 500 11px / var(--lh-snug) var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.tp-tick {
  align-self: center;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  color: var(--ink);
}
/* One row as tall as the card leaves, so the line's max-height has a height to hold to. */
.tp-seat-music {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  direction: ltr;
}
.tp-seat-music .engraved {
  display: block;
  width: calc(var(--w, 1) * 100%);
  height: auto;
  max-height: 100%;
}
/* The bar being played turns orange as on the play-along page; the playhead is the pen's mark with a soft edge. */
.tp-seat-music g.measure .layer {
  transition:
    color 0.2s,
    fill 0.2s;
}
.tp-seat-music g.measure.is-active .layer {
  color: var(--accent);
  fill: var(--accent);
}
.tp-head {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  opacity: 0;
  pointer-events: none;
}
.tp-seat.is-playing .tp-head {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  /* Until the script arrives the stage waits empty, so its end frame is not seen and then taken away; where no
     script comes it stands complete after six seconds. */
  .pp-story:not([data-beat], [data-done]) > * {
    animation: fc-hold 6s step-end both;
  }
  .pp-story[data-beat] .fc-phase[data-state="doing"] i::after {
    animation: fc-fill var(--fill, 3s) linear both;
  }
  .pp-story [data-say].is-new {
    animation: fc-arrive 0.4s var(--ease) both;
  }
  /* Read: the scan runs down the page, then the bars to arrange are marked. */
  .tp-story[data-beat] .tp-take {
    opacity: 0;
    transform: scale(1.04);
    transition:
      opacity 0.3s,
      transform 0.5s var(--ease-spring);
  }
  .tp-story[data-beat].is-taken .tp-take {
    opacity: 1;
    transform: none;
  }
  .tp-story[data-beat="read"] .tp-scan {
    animation: tp-scan 1.6s cubic-bezier(0.45, 0, 0.25, 1) 0.2s both;
  }
  /* Arrange: each student's card waits, its version written in behind the pen once its copy arrives. */
  .tp-story[data-beat] .tp-seat:not(.is-written) .tp-seat-head {
    opacity: 0.45;
  }
  .tp-story[data-beat] .tp-seat-head {
    transition: opacity 0.3s;
  }
  .tp-story[data-beat] .tp-seat:not(.is-written) .engraved {
    clip-path: inset(0 100% 0 0);
  }
  .tp-story[data-beat] .tp-seat.is-writing .engraved {
    animation: fc-ink 0.95s cubic-bezier(0.3, 0, 0.6, 1) both;
  }
  .tp-story[data-beat] .tp-seat.is-writing .tp-head {
    opacity: 1;
    box-shadow: none;
    animation: fc-pen 0.95s cubic-bezier(0.3, 0, 0.6, 1) both;
  }
  .tp-story[data-beat] .tp-seat.is-in {
    animation: pp-ping 1.1s var(--ease) both;
  }
  /* Check: the tick lands on a spring once the card's grade has been checked. */
  .tp-story[data-beat] .tp-seat:not(.is-checked) .tp-tick {
    opacity: 0;
    transform: scale(0.4);
  }
  .tp-story[data-beat] .tp-tick {
    transition:
      opacity 0.2s,
      transform 0.66s var(--ease-spring);
  }
}
@keyframes tp-scan {
  0% {
    top: 6%;
    opacity: 0;
  }
  8%,
  88% {
    opacity: 1;
  }
  100% {
    top: 94%;
    opacity: 0;
  }
}
@keyframes pp-ping {
  from {
    box-shadow:
      0 0 0 1px var(--accent),
      0 0 0 4px var(--accent-tint);
  }
  to {
    box-shadow: 0 0 0 1px var(--hair-strong);
  }
}

/* ── For teachers: the showcase band, practice between lessons ────────────────────────────────────────────────────── */
/* A card in the band without a video: the sheet alone, every one the same height, its music centred on the page. The
   creators' band hangs each sheet under its video without a top edge; here the sheet is the whole card, so it keeps
   its edge and its rounded corners all round. */
.pp-card .fc-sheet {
  min-height: 236px;
  border-top: 1px solid var(--hair-strong);
  border-radius: var(--radius-md);
}
.pp-card .fc-sheet-music {
  display: grid;
  place-items: center;
  min-height: 132px;
}
.pp-card .fc-sheet-music img {
  width: auto;
  max-width: 100%;
  max-height: 132px;
}
.tp-kit {
  display: grid;
  gap: var(--space-5);
}
.tp-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-7);
}
.tp-speeds {
  align-items: baseline;
}
.tp-speed-label {
  font: 500 11px / var(--lh-ui) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── For stages: the film, its full score and the parts ───────────────────────────────────────────────────────────
   The film on the left as a screen shows it; beside it the phases, Starling, the full score following the film and
   the string parts. The film's column is as wide as a 9:16 picture of the stage's height leaves room for. */
.sp-story {
  --stage: clamp(400px, 100vh - 320px, 520px);
  grid-template-columns: calc((var(--stage) - 74px) * 0.5625) minmax(0, 1fr);
}
.sp-film {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  min-height: 0;
  margin: 0;
}
.sp-film-label,
.sp-score-cap {
  font: 500 12px / var(--lh-ui) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sp-screen {
  position: relative;
  justify-self: start;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0b0a0e;
}
.sp-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-film-cap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  font: 400 13px / var(--lh-snug) var(--sans);
  color: var(--muted);
}
.sp-film-cap .fc-sound {
  flex: none;
  margin-top: 0;
}
.sp-film-title {
  min-width: 0;
}
.sp-desk .fc-phases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* The work: the score as tall as the stage leaves (a size container, so the page's width follows from its height),
   the parts in the rest. */
.sp-work {
  grid-area: work;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5);
  min-height: 0;
  container-type: size;
}
.sp-score {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--space-2);
  min-height: 0;
  margin: 0;
  padding-left: 60px;
}
/* Both systems share one frame (3640 by 2896), so the page turns in place. */
.sp-page {
  position: relative;
  display: block;
  height: calc(100cqh - 26px);
  aspect-ratio: 3640 / 2896;
}
.sp-system {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.sp-system.is-shown {
  opacity: 1;
}
/* Each staff's name where it stands, short as a score's later pages print them; the section with the melody orange. */
.sp-names {
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-names li {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font: 500 11px / 1 var(--mono);
  white-space: nowrap;
  color: var(--muted);
}
.sp-names li.is-lead {
  color: var(--accent-text);
}
/* The bar the film is in, and the melody's bars on its staff: an orange line, and an orange outline on a tint. */
.sp-head {
  position: absolute;
  left: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  opacity: 0;
  pointer-events: none;
}
.sp-theme {
  position: absolute;
  border-radius: 4px;
  background: var(--accent-tint);
  box-shadow: 0 0 0 1.5px var(--accent);
  opacity: 0;
  pointer-events: none;
}
.sp-head.is-on,
.sp-theme.is-on {
  opacity: 1;
}
/* The parts: one card for each string section, its name, the bars where it has the melody, and those bars. */
.sp-parts {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-part {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: 0;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hair-strong);
}
.sp-part-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "name tick"
    "bars bars";
  align-items: center;
  gap: 2px var(--space-1);
  margin: 0;
}
.sp-part-head b {
  grid-area: name;
  font: 600 14px / var(--lh-snug) var(--sans);
  white-space: nowrap;
  color: var(--ink);
}
.sp-part-head span {
  grid-area: bars;
  font: 500 11px / var(--lh-snug) var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.sp-part-head .tp-tick {
  grid-area: tick;
  margin-inline-start: 0;
}
.sp-part-music {
  position: relative;
  display: block;
  height: 100%;
  max-height: 58px;
  min-width: 0;
}
.sp-part-music img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.sp-part.is-lead {
  box-shadow: 0 0 0 1.5px var(--accent);
}
.sp-part.is-lead b {
  color: var(--accent-text);
}
/* The sources under the files. */
.sp-sources {
  margin: var(--space-4) 0 0;
  font: 400 13px / var(--lh-body) var(--sans);
  color: var(--muted);
}
.sp-sources a {
  color: inherit;
}
/* The files under the band of parts stand apart from it, as the band stands apart from its heading. */
.sp-wall .fc-files {
  margin-top: clamp(24px, 3vw, 40px);
}
/* Between the phone's single column and a wide screen, a file's Open or Download goes under its words, so the words
   keep to about two lines instead of a narrow column; the titles line up along the top, the actions along the foot. */
@media (min-width: 861px) and (max-width: 1280px) {
  :is(.tp-files, .sp-files) .fc-file {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    row-gap: var(--space-2);
  }
  :is(.tp-files, .sp-files) .fc-file-icon {
    grid-row: span 2;
    align-self: center;
  }
  :is(.tp-files, .sp-files) .fc-file-go {
    grid-column: 2;
  }
}
/* A part in the band: its first page, four bars a line. */
.sp-card .fc-sheet-music img {
  max-height: 150px;
}
.pp-card.sp-card .fc-sheet-music {
  min-height: 150px;
}

@media (prefers-reduced-motion: no-preference) {
  .sp-system {
    transition: opacity 0.35s var(--ease);
  }
  .sp-names li {
    transition:
      top 0.4s var(--ease-settle),
      color 0.2s;
  }
  .sp-theme {
    transition:
      opacity 0.25s,
      left 0.35s var(--ease-settle),
      top 0.35s var(--ease-settle),
      width 0.35s var(--ease-settle),
      height 0.35s var(--ease-settle);
  }
  .sp-head {
    transition: opacity 0.25s;
  }
  .sp-part,
  .sp-part b {
    transition:
      box-shadow 0.25s,
      color 0.25s;
  }
  /* Parts: each card waits, its bars written in behind the pen once its copy arrives from the score, then ticked. */
  .sp-story[data-beat] .sp-part:not(.is-written) .sp-part-music img {
    clip-path: inset(0 100% 0 0);
  }
  .sp-story[data-beat] .sp-part.is-writing .sp-part-music img {
    animation: fc-ink 0.95s cubic-bezier(0.3, 0, 0.6, 1) both;
  }
  .sp-story[data-beat] .sp-part.is-writing .sp-part-music::after {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    animation: fc-pen 0.95s cubic-bezier(0.3, 0, 0.6, 1) both;
  }
  .sp-story[data-beat] .sp-part.is-in {
    animation: pp-ping 1.1s var(--ease) both;
  }
  .sp-story[data-beat] .sp-part:not(.is-written) .tp-tick {
    opacity: 0;
    transform: scale(0.4);
  }
  .sp-story[data-beat] .sp-part .tp-tick {
    transition:
      opacity 0.2s,
      transform 0.66s var(--ease-spring);
  }
}

/* ── Phones ───────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pp-story {
    --stage: auto;
    height: auto;
    margin-top: var(--space-5);
  }
  .tp-story {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The page as a strip across the top: its title and first lines (photo pixels 40 to 520 of 1650), the bars to
     arrange marked on it. The strip keeps one shape, so the mark stays on bars 1 to 4 at every width. */
  .tp-page {
    grid-template-rows: auto auto;
  }
  .tp-page-cap {
    display: none;
  }
  .tp-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1275 / 480;
  }
  .tp-photo img {
    object-fit: cover;
    object-position: 50% 3.4%;
  }
  .tp-take {
    top: 37.7%;
    height: 39.8%;
  }
  .pp-desk {
    grid-template-rows: auto auto auto;
  }
  .tp-class {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: none;
  }
  .tp-seat:nth-child(n) {
    grid-area: auto;
  }
  .tp-seat-music .engraved {
    max-height: none;
  }
  .tp-controls {
    flex-direction: column;
  }
  /* The stage: the phases across the top, the film beside Starling's line, then the score and the parts below,
     each as wide as the screen. */
  .sp-story {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    grid-template-areas:
      "phases phases"
      "film reply"
      "film again"
      "work work";
    gap: var(--space-3) var(--space-4);
  }
  .sp-desk {
    display: contents;
  }
  .sp-film {
    grid-area: film;
    grid-template-rows: auto auto auto;
  }
  .sp-screen {
    width: 100%;
    height: auto;
  }
  .sp-film-cap {
    flex-wrap: wrap;
  }
  .sp-film-title {
    display: none;
  }
  .sp-story .fc-again {
    align-self: start;
    justify-self: start;
  }
  .sp-story .fc-reply {
    align-self: end;
  }
  .sp-work {
    grid-template-columns: minmax(0, 1fr);
    container-type: inline-size;
  }
  .sp-page {
    width: 100%;
    height: auto;
  }
  .sp-parts {
    grid-template-rows: none;
  }
  .sp-part {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 60px;
  }
  .sp-part-music {
    height: 46px;
  }
}

/* Commissioning pages open with the work a recipient can watch or take into a session. */
.pp-intro {
  max-width: 64ch;
  margin: var(--space-4) 0 var(--space-7);
  font-size: var(--lede);
  text-wrap: pretty;
}
.pp-films,
.pp-edition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
}
.pp-film,
.pp-example-still {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
  color: var(--ink);
  text-decoration: none;
}
.pp-example-wide {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
.pp-still {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.pp-still img {
  display: block;
  width: 100%;
  height: auto;
}
.pp-watch {
  display: block;
  margin-top: var(--space-4);
  font: 600 var(--small) / var(--lh-ui) var(--sans);
}
:is(.pp-film, .pp-example-still):is(:hover, :focus-visible) .pp-watch {
  text-decoration: underline;
}
.pp-place {
  display: block;
  margin-block: var(--space-4) var(--space-2);
  color: var(--muted);
  font: 500 var(--small) / var(--lh-ui) var(--mono);
}
.pp-film h2,
.pp-edition h2 {
  margin: 0;
  font-size: var(--display-3);
}
.pp-film p,
.pp-example-still p,
.pp-edition-files > p {
  margin: var(--space-2) 0 0;
  text-wrap: pretty;
}
.pp-edition {
  padding: var(--space-7);
  background: var(--layer-1);
  border-radius: var(--radius-lg);
  align-items: center;
}
.pp-paper {
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-5);
  text-align: center;
  background: var(--white);
  box-shadow: 0 1px 4px var(--hair-strong);
}
.pp-paper:is(:hover, :focus-visible) h2 {
  text-decoration: underline;
}
.pp-paper .pp-place {
  margin-top: 0;
}
.pp-paper img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--space-4);
}
.pp-edition-files .fc-files {
  grid-template-columns: 1fr;
  margin-top: var(--space-5);
}
@media (max-width: 740px) {
  .pp-films,
  .pp-edition {
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-edition {
    padding: var(--space-4);
  }
}

.pp-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}
.pp-examples figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.pp-example-score {
  padding: var(--space-5);
  background: var(--layer-1);
}
.pp-example-score img {
  display: block;
  width: 100%;
  height: clamp(104px, 10vw, 156px);
  padding: var(--space-3);
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 1px 4px var(--hair);
}
.pp-examples h3 {
  margin: 0;
  font: 600 var(--lede) / var(--lh-heading) var(--sans);
}
.pp-examples li > p:last-child {
  margin: var(--space-2) 0 0;
  max-width: 52ch;
  text-wrap: pretty;
  color: var(--ink-soft);
}
[data-reel-preview] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
[data-reel-preview].is-playing {
  opacity: 1;
}
@media (max-width: 620px) {
  .pp-examples {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pp-film .pp-place,
.pp-example-still .pp-place {
  margin-block-start: 0;
}
@media (max-width: 740px) {
  .for-stages .pp-examples {
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-film h2 {
    font-size: 22px;
  }
  .pp-film p,
  .pp-example-still p {
    font-size: 1rem;
  }
}
