/* Prices page: the ruler, the stepped listing, its filter row and the two-column closers. Phone first, wider screens in em. */

/* The price ruler: a scale from $40 to $85 on one sunflower baseline, each design laid at its true place. */
.vis-gauge { margin-top: 1.5rem; }
.vis-track { position: relative; min-width: 41rem; padding-right: 3rem; }
.vis-scale {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr)) 0;
  margin-bottom: 1.5rem;
  border-top: 0.1875rem solid var(--sunflower);
  font-size: var(--read-size);
  line-height: 1.2;
}
.vis-scale span { position: relative; padding: 0.85rem 0 0; white-space: nowrap; }
.vis-scale span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.1875rem;
  height: 0.6rem;
  background: var(--sunflower);
}
.vis-rung {
  display: grid;
  grid-template-columns: var(--left-edge) var(--run-length) minmax(0, 1fr);
  margin-bottom: 1.1rem;
}
.vis-rungtext { grid-column: 2 / -1; grid-row: 1; padding-bottom: 0.3rem; line-height: 1.3; }
.vis-rungname {
  display: block;
  font-family: var(--sign-face);
  font-size: 1.5rem;
  line-height: 1.2;
}
.vis-rungprice { display: block; margin-top: 0.2rem; font-size: var(--read-size); }
.vis-stroke { display: block; height: var(--bar-thick); background: var(--sunflower); }
.vis-rung > .vis-stroke { grid-column: 2; grid-row: 2; }
.vis-rung[data-mark="single"] .vis-rungtext { grid-column: 1 / 3; text-align: right; }
.vis-fifty {
  margin: 0 0 1.1rem 22.22%;
  padding-left: 0.75rem;
  background: linear-gradient(var(--sunflower), var(--sunflower)) 0 0 / 0.1875rem 100% no-repeat;
  font-size: var(--read-size);
  line-height: 1.45;
}
.vis-fifty strong { color: var(--sunflower); font-weight: 400; }

/* The filter row, written by the page script: equal blackberry slabs at reading size, the chosen one on a solid sunflower ground. */
.vis-sorting {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  max-width: 62rem;
  margin-top: 1.5rem;
  padding: 0.375rem;
}
.vis-pick {
  flex: none;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  background: var(--blackberry);
  color: var(--enclosure-white);
  font: inherit;
  font-size: var(--read-size);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.vis-pick:hover { color: var(--sunflower); }
.vis-pick[aria-pressed="true"] { background: var(--sunflower); color: var(--blackberry); }
.vis-tally { margin-top: 0.5rem; padding-left: 0.375rem; font-size: var(--small-size); }

/* The listing: seven entries, each one step deeper than the last, each with its own picture and shape.
   On a phone the picture sits under its words and never runs tall; from 56em it stands beside them
   in the right-hand 45% of the row, its height capped so the list stays a list. */
.vis-run { --entry-step: 0.25rem; margin-top: 1rem; }
.vis-entry {
  display: grid;
  margin: 2.25rem 0 0 calc(var(--entry-number, 0) * var(--entry-step));
}
.vis-entry:first-child { margin-top: 1rem; }
.vis-entry[data-state="away"] { display: none; }
.vis-entry:nth-child(1) { --crop: 4 / 3; }
.vis-entry:nth-child(2) { --crop: 3 / 2; }
.vis-entry:nth-child(3) { --crop: 1 / 1; }
.vis-entry:nth-child(4) { --crop: 16 / 10; }
.vis-entry:nth-child(5) { --crop: 4 / 5; }
.vis-entry:nth-child(6) { --crop: 4 / 3; }
.vis-entry:nth-child(7) { --crop: 3 / 2; }
.vis-entry .vis-photo img {
  width: 100%;
  aspect-ratio: var(--crop, 4 / 3);
  max-height: 58vh;
  object-fit: cover;
}
.vis-kind { margin-top: 0.2rem; color: var(--sunflower); font-size: var(--small-size); line-height: 1.4; }
.vis-mini { max-width: 16rem; padding-right: 0.6rem; margin-top: 0.7rem; }
.vis-mini .vis-stroke { margin-left: var(--left-edge); width: var(--run-length); }
.vis-pricetext { margin-top: 0.35rem; }
.vis-entrytext .vis-read { margin-top: 0.6rem; }
.vis-entrytext .vis-action { margin-top: 0.25rem; }

/* Closers: text with a card or a column of ways onward beside it. */
.vis-twin { display: grid; gap: 1.25rem; }
.vis-twin .vis-read + .vis-read { margin-top: 1em; }
.vis-onward { margin-top: 0; font-family: var(--sign-face); font-size: 1.5rem; line-height: 1.2; }
.vis-onward .vis-action { font-family: var(--slip-face); font-size: var(--read-size); }

@media (min-width: 56em) {
  .vis-sorting { flex-wrap: wrap; }
  .vis-run { --entry-step: 1.5vw; }
  .vis-entry {
    grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
    column-gap: var(--photo-shift);
    align-items: start;
    margin-top: 2.5rem;
  }
  .vis-entry:first-child { margin-top: 1.25rem; }
  .vis-entry .vis-photo { margin: 0; }
  .vis-entry .vis-photo img { max-height: 20rem; }
  .vis-entrytext { padding-right: 1.5rem; }
  .vis-twin {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    column-gap: var(--photo-shift);
    align-items: start;
  }
  .vis-twin .vis-enclosure { justify-self: start; margin-top: 0.5rem; }
  .vis-onward { flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
}
