/* ==========================================================================
   GRID (.verser-grid). CSS only. The kit's one responsive grid: as many equal columns as fit, each at least
   --verser-grid-min wide, so a row of cards shrinks and grows with the space it has and drops to one column when a
   card would get too narrow, instead of squeezing two cards side by side at every width (the lead, 27 Oct: "shrink
   accordingly, grow"). auto-fit, so two cards in a wide row share it rather than leaving an empty third column.

     --verser-grid-min   the narrowest a column may get before the row loses a column (tier 3, default --grid-min)
     --verser-grid-gap   the gap between cards (default --grid-gap, fluid)
     --verser-grid-max   optional: at most this many columns (default: no limit)

   Set the variables on the grid itself (.home-stats{--verser-grid-min:...}): they are read where the grid is drawn.
   Module grids that cannot carry the class (markup drawn in several places) write the same line:
   grid-template-columns:repeat(auto-fit,minmax(min(var(--verser-grid-min),100%),1fr)).
   A child with .verser-grid-wide spans the whole row. Children get min-width:0, so long words wrap inside their card
   instead of widening the column.
   ========================================================================== */

.verser-grid{
  display:grid;gap:var(--verser-grid-gap,var(--grid-gap));
  grid-template-columns:repeat(auto-fit,minmax(min(max(var(--verser-grid-min,var(--grid-min)),(100% - (var(--verser-grid-max,99) - 1) * var(--verser-grid-gap,var(--grid-gap))) / var(--verser-grid-max,99)),100%),1fr))
}
.verser-grid>*{min-inline-size:0}
.verser-grid>.verser-grid-wide{grid-column:1/-1}
