/* Flowers page: the price ladder and the stacked crops. Everything else comes from site.css. */

/* caf-lad = ladder: an ol of rungs, one bar and one name-and-price line each; --place-of-the-minimum is $85 over $600 */
.caf-lad {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* caf-rng = rung: one step of the ladder (li) */
.caf-rng { margin: 0; }

/* caf-trk = track: the full-width lane a bar lies in; its dotted upright is the $85 minimum, at the same place in every rung */
.caf-trk {
  position: relative;
  display: block;
  padding-block: 0.375rem;
}
.caf-trk::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--place-of-the-minimum, 14.17%);
  border-inline-start: 0.1875rem dotted var(--colour-of-the-type);
}

/* caf-bar = bar: rounded aubergine length; its width is the price over $600, set in --share-of-the-top-price */
.caf-bar {
  display: block;
  inline-size: var(--share-of-the-top-price, 100%);
  block-size: 2.5rem;
  border-radius: var(--corner-of-a-pill);
  background: var(--colour-of-the-pills);
}

.caf-rng > .caf-tag { padding-block-start: 0.375rem; }

/* caf-key = key: the line under the ladder saying what the dotted upright is; caf-swt = swatch of that upright */
.caf-key {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.caf-swt {
  flex: none;
  block-size: 2rem;
  border-inline-start: 0.1875rem dotted var(--colour-of-the-type);
}

/* caf-fl = flowers: the stacked list of the four; every crop is full column width, shape 4 / 3 */
.caf-fl { --shape-of-the-crop: 4 / 3; }
.caf-fl > li { margin: 0; }
.caf-fl .caf-nam { color: inherit; }
.caf-fl .caf-pic:focus-visible { outline-offset: 0.25rem; }

/* caf-row = row: the wrap as a text row, since its photograph already opens the page */
.caf-row > .caf-tag { padding-block-start: 0; }

/* caf-srv = service: how the piece leaves the shop, as a link line in the caption */
.caf-srv {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-block-start: 0;
}
.caf-srv a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
}

/* the note on the $85 minimum and the closing hand-off keep the column's rhythm */
.caf-rim h2 { margin-block-end: 0.75rem; }
.caf-rim p { margin-block-end: var(--space-between-paragraphs); }
.caf-rim p:last-child { margin-block-end: 0; }
.caf-fwd .caf-duo { margin-block-start: 1.25rem; }

@media (max-width: 40rem) {
  .caf-lad { gap: 1.25rem; }
  .caf-bar { block-size: 2.25rem; }
}
