/*
 * A FIGURE'S RANGE — the slider over a bounded domain, then the two ends, each headed by its word. Each end is as
 * wide as the figures it takes and shares what room the row has beyond that, so the panel is as wide as its widest
 * piece and a sheet's ends span it.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-number-filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: var(--lotics-space-12);
  }

  /* Seated on the fields, so the unit picker stands level with them under the ends' words. */
  .lotics-number-filter__ends {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    min-width: 0;
    gap: var(--lotics-space-8);
    flex-shrink: 0;
  }

  .lotics-number-filter__end {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: var(--lotics-space-4);
  }

  /* The unit a range is typed in keeps its word whole; the ends give way first. */
  .lotics-number-filter__unit {
    flex-shrink: 0;
  }
}
