/* The mail view: the headers of a message over its plain text, the names of its attachments under it. Shared tokens
   and layout words only, on the root of the view (packages/components/src/styles.ts); logical properties only. The text
   keeps its line breaks and wraps; each name wraps wherever it must. */
.mail {
  display: block;
  padding: var(--nw-space-16);
  overflow-wrap: anywhere;
}

.mail h2 {
  margin: 0 0 var(--nw-space-8);
  font-size: var(--nw-font-size-label);
  font-weight: var(--nw-font-weight-semibold);
}

.mail .mail-headers {
  display: block;
  margin: 0 0 var(--nw-space-16);
  padding-block-end: var(--nw-space-12);
  border-style: solid;
  border-width: 0;
  border-block-end-width: var(--nw-border-width-1);
  border-color: var(--nw-color-border-subtle);
}

.mail dt {
  color: var(--nw-color-text-muted);
  font-size: var(--nw-font-size-label);
}

.mail dd {
  margin: 0 0 var(--nw-space-8);
}

.mail .mail-body {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
}

.mail .mail-attachments {
  margin-block-start: var(--nw-space-16);
  padding-block-start: var(--nw-space-12);
  border-style: solid;
  border-width: 0;
  border-block-start-width: var(--nw-border-width-1);
  border-color: var(--nw-color-border-subtle);
}

.mail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
