/* EmailComposeComponent (app/components/email_compose_component.rb): the sheet that writes an email. A heading, one line saying whom it goes to, the callout that says what will
   happen when Send is pressed, and the form (subject, message, the actions), stacked in one reading column. The line "To" is a label and the person's name and address, which
   wrap: an address is one long word and must break rather than widen the page. When nothing can be sent there is no form, and the actions are the two ways on.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell
   and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds
   words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.email-compose {
  display: grid;
  gap: var(--density-gap);
  min-inline-size: 0;
}

.email-compose__title {
  margin-block: 0;
}

.email-compose__to {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-block: 0;
  min-inline-size: 0;
}

.email-compose__to-label {
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 650;
}

.email-compose__who {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.email-compose__address {
  color: var(--fg2);
  overflow-wrap: anywhere;
}

.email-compose__note {
  margin-block: 0;
  color: var(--fg2);
}

.email-compose__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
