/* A ticket post: the folded quote, a customer's mail, the picture viewer and the files of an article. Its own file beside portal.css, which holds the tokens these rules use. */
/* Customer text keeps its line breaks without becoming markup. */
/* The quoted history of a customer's mail, folded away (E222, § 65). */
.post__quote {
  margin-top: 0.5rem;
}

.post__quote > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--accent, inherit);
}

.post__quote[open] > summary {
  margin-bottom: 0.25rem;
}

.post__quote > :not(summary) {
  border-left: 2px solid currentColor;
  padding-left: 0.75rem;
  opacity: 0.8;
}

.post__body {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* A customer's mail as written (#549): its own layout, never wider than the post. */
.post__mail {
  overflow-x: auto;
  overflow-wrap: break-word;
}

.post__mail img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* A picture of the mail, large over the page (portal-images.js). */
.lightbox {
  max-width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 0.75rem;
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-dialog);
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.lightbox__close {
  display: block;
  margin: 0 0 0.75rem auto;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 5rem);
  margin: 0 auto;
}

/* The files of an article (#506): a download link, or the scan's state in quiet text. */
.attachments {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  overflow-wrap: break-word;
}

.attachments__size,
.attachments__state {
  color: var(--text-muted);
  font-size: 0.875em;
}


/* One earlier post in the folded history: its header line, then its words (E222, § 65). */
.quote__line {
  margin: 0.5rem 0 0;
}

.quote__head {
  font-weight: 600;
}
