/* jeeps.css: the finished bay. Adds to site.css; chrome is untouched. */

/* Opening: the note beside the print, both the same height inside the first window. */
.bay-open { padding-bottom: clamp(.75rem, 2.5vh, 1.5rem); }
.bay-open .opening__title { max-width: 22ch; }
.bay-open .split { align-items: stretch; }
.bay-open .sheet { align-self: stretch; }
.bay-open .mount__caption { margin-inline-start: calc(var(--gutter) * -.5); }

/* Controls: only exist when the script does; without it every listing simply shows. */
.controls { display: none; }
.js .controls { display: grid; }
.sort { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.sort > * + *::before { content: none; }
.kinds { display: grid; row-gap: .5rem; padding-block: .5rem; }
.kinds > * { margin: 0; }
.kinds__row { padding-block: .25rem; }
.kinds__count { color: var(--keep); font-size: var(--fs-small); line-height: 1.4; }
@media (min-width: 48rem) {
  .sort { flex-direction: row; flex-wrap: wrap; gap: 0 .4rem; }
  .sort > * + *::before { content: "/"; display: inline-block; margin-right: .4rem; }
}
@media (max-width: 47.99rem) {
  .kinds__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .kinds__row .text-btn { flex: none; }
  /* the pinned call control sits at the right edge; the opening caption keeps clear of it */
  .bay-open .mount__caption { max-width: calc(100% - 5.5rem); }
}

/* Entries: one sheet holds the title and its keep-sentence; one column division, shared by
   every listing, lines the keep rows and the build rows up down the whole bay. */
.bay { display: block; }
.keepnote { display: grid; gap: .5rem; }
.keepnote > * { margin: 0; }
.keepnote h2 { text-wrap: pretty; }
.car .price { margin-top: .5rem; }
.car .mount__caption { margin-inline-start: calc(var(--gutter) * -.5); }
@media (min-width: 60rem) {
  .keepnote, .split--car {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
}

/* The build-to-order listing uses the standard sheet edge; its facts are ruled in deep olive. */
.car--order .facts dd { border-bottom-color: var(--ground); }

/* Specified within a build: plain linked rows, ruled in the two ledger colours, no prices. */
.within { margin: 1rem 0 0; padding: 0; list-style: none; }
.within li {
  display: grid;
  gap: .1rem 1.5rem;
  margin: 0;
  padding-block: .5rem;
  border-bottom: var(--rule-w) solid var(--keep);
}
.within li:nth-child(even) { border-bottom-color: var(--build); }
.within a {
  display: inline-block;
  padding-block: .35rem;
  font-family: var(--hand);
  font-size: var(--fs-h3);
  line-height: 1.25;
  text-transform: lowercase;
}
.within__kind { color: var(--keep); font-size: var(--fs-small); }
@media (min-width: 60rem) {
  .within li {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
    align-items: center;
  }
}

/* Hand-off: the visit sheet beside the appointment door. */
.handoff .split { align-items: center; }
.handoff .mount__print img { aspect-ratio: 16 / 9; }
.handoff .sheet > p:first-child { max-width: 36rem; }
