@layer infine.components {
/* The supplier's CO₂ readouts: a title, a card and a note, each readout a subgrid of three rows of the grid it
   sits in, so that side by side their cards and notes start level however long a title wraps. */
.co2-readout {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

/* The assortment's intensity tiles, the average twice as wide as the share of low-carbon products.
   Laid out by the room the tiles have rather than the window's, which the module's own padding and the sudo bar already take from. */
.co2-tiles-holder {
  container-type: inline-size;
}
.co2-tiles {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 14px;
}
/* The counts of products and of what they lack, side by side,
   and one a row where their notes would wrap word by word. */
.co2-data-tiles {
  display: grid;
  /* One row of however many tiles are drawn: the language tile is drawn only when somebody lacks it. */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 14px;
  container-type: inline-size;
}
/* Below this the average's figure runs into its rule: one tile a row. */
@container (max-width: 1000px) {
  .co2-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .co2-tiles > .co2-readout {
    margin-bottom: var(--mantine-spacing-xl);
  }
}
@container (max-width: 760px) {
  .co2-data-tiles {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }
  .co2-data-tiles > .co2-readout {
    margin-bottom: var(--mantine-spacing-xl);
  }
}
}

@layer infine.components {
/* What a heading's figures are counted per, read as one phrase: Per, the measure's icon on a blue disc, then kg or unit,
   in small capitals apart from the words of the heading itself. */
.co2-measure-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--infine-blue);
  font-family: var(--mantine-font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.co2-measure-tag__disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--infine-blue);
  color: var(--mantine-color-white);
}
}
