/*
 * THE FILTER PILL, and the disclosure ROW it becomes inside a collapsed band.
 *
 * An APPLIED filter wears the accent: a filter bar answers "is anything on?"
 * from across the screen, and ink is the only channel that carries at that
 * distance — a state rather than decoration.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  /* A column's two bounds on one line, with the en-dash between them. */
  .lotics-filter-chip__range {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: var(--lotics-space-8);
    flex-shrink: 0;
  }

  /* TWO classes deep, so the run's ink is decided here rather than by whichever
     of `text.css` and this sheet a bundler emits last. */
  .lotics-filter-chip .lotics-filter-chip__label,
  .lotics-filter-chip .lotics-filter-chip__preview {
    color: var(--lotics-filter-chip-ink);
  }

  .lotics-filter-chip__summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: var(--lotics-space-4);
    flex-shrink: 0;
  }

  /* The editor's own band inside the popup, and its children spaced. */
  .lotics-filter-chip__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: var(--lotics-space-8);
  }

  /* Inside a collapsed band the pill is a full-width row on a hairline. */
  .lotics-filter-chip__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 0;
    width: 100%;
    gap: var(--lotics-space-12);
    padding-block: var(--lotics-space-12);
    padding-inline: 0;
    border: 0 solid var(--border);
    border-top-width: 1px;
    border-radius: 0;
    background-color: transparent;
    background-image: none;
    font-family: var(--font-sans);
    font-size: var(--lotics-text-sm);
    line-height: var(--lotics-leading-sm);
    letter-spacing: var(--lotics-tracking-sm);
    color: var(--lotics-ink-default);
    appearance: none;
    cursor: auto;
    text-align: start;
    touch-action: manipulation;
    user-select: none;
  }

  .lotics-filter-chip__header:focus-visible {
    outline: var(--lotics-ring-width) solid var(--ring);
    outline-offset: 0;
  }

  .lotics-filter-chip__value {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    gap: var(--lotics-space-8);
  }

  .lotics-filter-chip__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    min-width: 0;
    padding-bottom: var(--lotics-space-12);
  }
}
