/*
 * A company's peers (shared/_peers): up to eight in two tables of four,
 * stacked on a phone and side by side from 768px. The name gives way to the
 * figures — it truncates, the ticker never does.
 */
@layer components {
  .peers {
    display: grid;
    gap: var(--space-md);

    @media (width >= 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-xl);
    }
  }

  .peers__table {
    table-layout: fixed;

    & .data-table__label {
      inline-size: 55%;
    }

    & a {
      display: flex;
      align-items: baseline;
      gap: var(--space-xs);
      min-inline-size: 0;
    }
  }

  .peers__ticker {
    flex: none;
    font-weight: var(--weight-semibold);
  }

  .peers__name {
    overflow: hidden;
    color: var(--color-ink-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
