/* BODY BAY: opening mount, working notes, the profile set piece, the build entry. Adds to site.css only. */

/* Opening: the print leads on desktop and crosses into the label gutter; the note sheet starts on the
   print's top edge, on the "Body bay" label line, and hangs from there. */
.body-open .split { align-items: start; }
.body-open .mount__print img {
  aspect-ratio: 4 / 3;
  max-height: 58vh;
}
.body-open .opening__lede { margin-top: .5rem; }
@media (min-width: 60rem) {
  .body-open .mount { order: -1; }
}

/* Working notes under the keep tab: a periwinkle edge on the sheet, headings in periwinkle, each note
   closed off from the one above by its own ledger rule and the space around it. */
.notes { border-left: var(--rule-w) solid var(--keep); }
.notes h2 { font-size: var(--fs-h2); }
.notes h3 {
  margin-top: 1.75rem;
  padding-top: .7rem;
  border-top: .0625rem solid var(--back);
  color: var(--keep);
}
.notes h3 + p { margin-top: .4rem; }

/* Build entry: orange edge, shorter measure. */
.make { border-left: var(--rule-w) solid var(--build); }
.make h2 { font-size: var(--fs-h2); }
/* The split it describes is the point of the picture: half the matter column, never a thumbnail. */
@media (min-width: 60rem) {
  .row--build .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row--build .mount__print img { aspect-ratio: 3 / 2; }
}

/* Set piece: the wagon profile. The two sheets share one height, the drawing takes the room between the
   cue and the controls, and the chosen stretch snaps to periwinkle, no easing. */
.row--keep .split { align-items: stretch; }
.profile { display: flex; flex-direction: column; }
.profile h3 {
  font-family: var(--hand);
  font-size: var(--fs-h3);
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1.3;
}
.profile .diagram {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 8rem;
}
.profile svg { width: 100%; height: auto; }
.profile .ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}
.profile [data-part] {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile [data-part].is-on {
  stroke: var(--keep);
  stroke-width: 6;
}
.profile .options {
  margin-top: auto;
  padding-top: .5rem;
  border-top: var(--rule-w) solid var(--back);
}
.profile .text-btn { font-size: var(--fs-body); }
.profile .text-btn[aria-pressed="true"] { text-decoration-color: var(--keep); }

/* The fixed cell: every note occupies the same grid area, so the cell never changes height. */
.profile .swap {
  padding-top: .75rem;
  border-top: var(--rule-w) solid var(--keep);
}
.profile .swap__item { margin: 0; }

@media (max-width: 47.99rem) {
  .body-open .mount__print img { max-height: 46vh; }
  .profile .diagram { min-height: 0; }
  .profile .options { gap: 0 .5rem; }
  .profile .options > * + *::before { margin-right: .5rem; }
}
