/* Two records that are one (records/merges/_preview, crm-v2 "Merge"): the
   pair and every field of the merged record on the same four tracks — a
   label, the kept one, the swap, the other — so a choice stands under the
   record it comes from. The fields are a record's .attributes, retuned. */
@layer components {
  .merge {
    --attributes-columns: 6.5rem minmax(0, 1fr) 2.25rem minmax(0, 1fr);
  }

  .merge__pair {
    display: grid;
    grid-template-columns: var(--attributes-columns);
    column-gap: var(--inline-space);
  }

  /* A value that is the merged record's alone, across both records' tracks. */
  .merge__whole {
    grid-column: 2 / -1;
  }

  /* A phone's page has no room beside: one under the other. */
  @container main (width < 32rem) {
    .merge {
      --attributes-columns: minmax(0, 1fr);
    }

    .merge__whole {
      grid-column: auto;
    }
  }
}
