/* The root's gap is half the page's gap around the band, since figure, shape and key are one group; near
   parity, nothing reads as grouped. Header and pairs align on the baseline, since figures of different
   sizes on one line is the row's reason. */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  /* So a narrow parent squeezes the row, not its boxes. */
  .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;
  }
}
