/*
 * THE REGISTER'S SUMMARY BAND. The root's gap is half of what a page puts
 * BETWEEN this band and its neighbours: the parts are one group — a figure, the
 * shape of what it counts, and that shape's key — so they have to sit closer to
 * each other than the band sits to the register below it. At near-parity with
 * the page gap every block on the screen is an equal peer, nothing grouped,
 * which is what "no rhythm" means.
 *
 * The header and both pairs align on the BASELINE, because figures of different
 * sizes sitting on one line is the whole reason the row exists.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  /* `flex-shrink: 0` because a flex item shrinks at 1 by default: stated so a
     narrow parent squeezes the ROW rather than the boxes on it. */
  .lotics-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--lotics-space-12);
    flex-shrink: 0;
  }

  .lotics-summary__header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: var(--lotics-space-16);
    row-gap: var(--lotics-space-8);
    flex-shrink: 0;
  }

  .lotics-summary__total,
  .lotics-summary__metric {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: var(--lotics-space-8);
    flex-shrink: 0;
  }
}
